热更新
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
<template>
|
||||
<view style="padding: 0 0; font-size: 28rpx" class="commonPage commonPageBox">
|
||||
<view
|
||||
style="
|
||||
padding: 0 0;
|
||||
font-size: 28rpx;
|
||||
background-color: #39b4a84d !important;
|
||||
"
|
||||
class="commonPage commonPageBox"
|
||||
>
|
||||
<!-- 公共组件-每个页面必须引入 -->
|
||||
<public-module></public-module>
|
||||
<view class="bg_top">
|
||||
@@ -18,24 +25,31 @@
|
||||
|
||||
<view class="mine_box" :style="`top:${(45 + statusBarHeight) * 2}rpx`">
|
||||
<view class="per_mes">
|
||||
<image @click="goUserInfo"
|
||||
<image
|
||||
@click="goUserInfo"
|
||||
:src="userMes.avatar"
|
||||
v-if="userMes.avatar != null"
|
||||
class="per_mes_img color_shandow"
|
||||
></image>
|
||||
<image
|
||||
<view class="user_vip_box">
|
||||
<view v-if="userMes.vip == 1" class="user_vip super">超级VIP</view>
|
||||
<view v-if="userMes.vip == 2" class="user_vip">众妙之门VIP</view>
|
||||
<view v-if="userMes.vip == 3" class="user_vip">吴门医述VIP</view>
|
||||
</view>
|
||||
|
||||
<image
|
||||
src="@/static/icon/home_icon_logo.png"
|
||||
v-if="userMes.avatar == null"
|
||||
class="per_mes_img color_shandow"
|
||||
></image>
|
||||
|
||||
<view class="userInfoBox">
|
||||
<template v-if="userMes.nickname != null">
|
||||
<view class="name">昵称:{{ userMes.nickname }}</view>
|
||||
</template>
|
||||
<template v-else>
|
||||
<view class="name">未设置</view>
|
||||
<view class="userInfoBox" style="width: calc(100% - 220rpx)">
|
||||
<template>
|
||||
<view class="name"
|
||||
>昵称:{{ userMes.nickname ? userMes.nickname : "未设置" }}</view
|
||||
>
|
||||
</template>
|
||||
|
||||
<template v-if="userMes.tel">
|
||||
<view class="phone">手机号:({{ userMes.tel }})</view>
|
||||
</template>
|
||||
@@ -65,96 +79,164 @@
|
||||
</text>
|
||||
<b class="kt_btn" @click="onPageJump('./opeVip')">立即续费</b>
|
||||
</view> -->
|
||||
|
||||
<view
|
||||
class="chong_zhi boxShadow box_fillet chongzhi_box"
|
||||
style="padding-top: 50rpx"
|
||||
style="
|
||||
padding: 20rpx;
|
||||
height: 200rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
"
|
||||
>
|
||||
<!-- <view
|
||||
<view class="chong_zhi boxShadow box_fillet chongzhi_box">
|
||||
<!-- <view
|
||||
class="zhanghu"
|
||||
@click="onPageJump('/pages/mine/wallet/index/index')"
|
||||
>
|
||||
我的账户
|
||||
<image src="@/static/icon/icon_right.png" class="rightArrow"></image>
|
||||
</view> -->
|
||||
<view class="chong_list">
|
||||
<view class="left"
|
||||
>
|
||||
|
||||
|
||||
<view
|
||||
class="chong_list_item"
|
||||
style="
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
"
|
||||
@click="onPageJump('/pages/mine/wallet/index/index')"
|
||||
>
|
||||
<view class="pay_item_img">
|
||||
<image
|
||||
<view class="chong_list">
|
||||
<view class="left">
|
||||
<view
|
||||
class="chong_list_item"
|
||||
style="
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
"
|
||||
@click="onPageJump('/pages/mine/wallet/index/index')"
|
||||
>
|
||||
<view class="pay_item_img">
|
||||
天医币<u-icon
|
||||
@click.native.stop="openInfo()"
|
||||
name="question-circle"
|
||||
style="float: right; margin: 0 6rpx"
|
||||
></u-icon>
|
||||
<!-- <image
|
||||
style="width: 100%; height: 100%"
|
||||
src="@/static/icon/pay_3.png"
|
||||
mode="aspectFil"
|
||||
>
|
||||
</image>
|
||||
</image> -->
|
||||
</view>
|
||||
|
||||
<view class="text" style="line-height: 40rpx; display: flex">{{
|
||||
userMes.peanutCoin ? userMes.peanutCoin : 0
|
||||
}}</view>
|
||||
</view>
|
||||
|
||||
<view class="text" style="line-height: 40rpx"
|
||||
>天医币 {{ userMes.peanutCoin ? userMes.peanutCoin : 0 }}</view
|
||||
<view
|
||||
class="chong_list_item"
|
||||
style="
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
"
|
||||
@click="onPageJump('/pages/mine/wallet/jf/index')"
|
||||
>
|
||||
<view class="pay_item_img">
|
||||
积分
|
||||
<!-- <image
|
||||
style="width: 100%; height: 100%"
|
||||
src="@/static/icon/jifen2.png"
|
||||
mode="aspectFil"
|
||||
>
|
||||
</image> -->
|
||||
</view>
|
||||
|
||||
<view class="text" style="line-height: 40rpx">{{
|
||||
userMes.jf ? userMes.jf : 0
|
||||
}}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- v-if="iosHide" -->
|
||||
|
||||
<!-- <view v-if="iosHide" class="chong_list_item">
|
||||
<b>{{ userMes.conponsCount }}</b>
|
||||
优惠券
|
||||
</view> -->
|
||||
<!-- <b class="chong_btn" @click="onPageJump('../sdkDemo/pay')">充 值</b> -->
|
||||
<view
|
||||
class="chong_list_item"
|
||||
style="
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
"
|
||||
@click="onPageJump('/pages/mine/wallet/jf/index')"
|
||||
>
|
||||
<view class="pay_item_img">
|
||||
<image
|
||||
style="width: 100%; height: 100%"
|
||||
src="@/static/icon/jifen2.png"
|
||||
mode="aspectFil"
|
||||
>
|
||||
</image>
|
||||
</view>
|
||||
|
||||
<view class="text" style="line-height: 40rpx"
|
||||
>积分 {{ userMes.jf ? userMes.jf : 0 }}</view
|
||||
>
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
</view
|
||||
>
|
||||
<!-- v-if="iosHide" -->
|
||||
|
||||
<!-- <view v-if="iosHide" class="chong_list_item">
|
||||
<b>{{ userMes.conponsCount }}</b>
|
||||
优惠券
|
||||
</view> -->
|
||||
<!-- <b class="chong_btn" @click="onPageJump('../sdkDemo/pay')">充 值</b> -->
|
||||
<view class="chong_list_item" style="
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-right:0;
|
||||
margin-right: 0;
|
||||
justify-content: center;
|
||||
"> <view
|
||||
class="chong_btn"
|
||||
v-if="iosHide"
|
||||
@click="onPageJump('/pages/mine/wallet/recharge/index')"
|
||||
>充 值</view
|
||||
></view>
|
||||
|
||||
"
|
||||
>
|
||||
<view
|
||||
class="chong_btn"
|
||||
v-if="iosHide"
|
||||
@click="onPageJump('/pages/mine/wallet/recharge/index')"
|
||||
>充 值</view
|
||||
></view
|
||||
>
|
||||
</view>
|
||||
</view>
|
||||
<view
|
||||
class="chong_zhi boxShadow box_fillet vip_box"
|
||||
@click="onPageJump('/pages/mine/vip/index')"
|
||||
>
|
||||
<view v-if="!userMes.userVip" class="noVip">
|
||||
<view class="zhanghu PM_font" style="text-align: center">
|
||||
<image
|
||||
class="vip_image"
|
||||
src="@/static/icon/noquanyi.png"
|
||||
mode="aspectFit"
|
||||
>
|
||||
</image>
|
||||
<text style="color: #c4d3d4">VIP</text>
|
||||
</view>
|
||||
|
||||
<swiper
|
||||
:autoplay="true"
|
||||
:interval="3000"
|
||||
:duration="1000"
|
||||
style="width: 100%; height: 60rpx"
|
||||
>
|
||||
<swiper-item
|
||||
v-for="(item, index) in swiperList"
|
||||
style="width: 100%; height: 100%"
|
||||
>
|
||||
<view
|
||||
style="
|
||||
background: linear-gradient(
|
||||
130deg,
|
||||
rgb(46, 103, 106) 0%,
|
||||
rgb(114, 173, 146) 100%
|
||||
)
|
||||
text;
|
||||
text-align: center;
|
||||
"
|
||||
:style="item.style"
|
||||
v-html="item.name"
|
||||
></view>
|
||||
<!-- <image :src="curriculumData.explainsImg" mode="widthFix" class="headImage"></image> -->
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
</view>
|
||||
<view v-else class="noVip hasVip">
|
||||
<view class="zhanghu PM_font" style="text-align: center">
|
||||
<image
|
||||
class="vip_image"
|
||||
src="@/static/icon/quanyi.png"
|
||||
mode="aspectFit"
|
||||
>
|
||||
</image>
|
||||
<text style="">VIP</text>
|
||||
</view>
|
||||
|
||||
<view class="time"
|
||||
>{{ userMes.userVip.endTime.split(" ")[0] }}到期</view
|
||||
>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="list_box">
|
||||
<view class="xiugai boxShadow box_fillet">
|
||||
<common-list
|
||||
@@ -163,9 +245,11 @@
|
||||
label="name"
|
||||
>
|
||||
<template slot="rightSlot" slot-scope="slotProps">
|
||||
<text class="fdButtonBox aui-text-success" style="line-height:40rpx">{{
|
||||
slotProps.row.content
|
||||
}}</text>
|
||||
<text
|
||||
class="fdButtonBox aui-text-success"
|
||||
style="line-height: 40rpx"
|
||||
>{{ slotProps.row.content }}</text
|
||||
>
|
||||
|
||||
<view> </view>
|
||||
</template>
|
||||
@@ -215,6 +299,46 @@
|
||||
<uni-popup-share @select="haveSelected"></uni-popup-share>
|
||||
</uni-popup>
|
||||
|
||||
<u-popup :show="infoShow" mode="center" round="6" backgroundColor="#fff">
|
||||
<view class="popup_box">
|
||||
<view class="title">温馨提示</view>
|
||||
|
||||
<view class="content">
|
||||
<view class="center">
|
||||
【天医币】仅为我平台支付使用币种 。
|
||||
一人民币=一天医币,仅为了方便用户支付使用。<br />【天医币】可以用于在我平台支付书籍或课程使用。
|
||||
<br />【天医币】这个名称是为适应我们平台的定位属性,所起名称。与区块链虚拟货币无任何关系。
|
||||
</view>
|
||||
|
||||
<view class="bottom">
|
||||
<view
|
||||
class="button_box"
|
||||
style="
|
||||
align-items: center;
|
||||
|
||||
justify-content: center;
|
||||
"
|
||||
>
|
||||
<!-- <u-button
|
||||
size="small"
|
||||
text="不同意"
|
||||
@click="protocolShow=false"
|
||||
></u-button> -->
|
||||
<u-button
|
||||
style="width: 200rpx; float: center"
|
||||
:plain="true"
|
||||
text="知道啦"
|
||||
color="#9b9b9b"
|
||||
size="small"
|
||||
@click="infoShow = false"
|
||||
></u-button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</u-popup>
|
||||
|
||||
<!-- <u-modal :show="infoShow" title="提示信息" :content=""></u-modal> -->
|
||||
<music-play :playData="playData"></music-play>
|
||||
<z-navigation></z-navigation>
|
||||
</view>
|
||||
@@ -228,6 +352,19 @@ import { mapState, mapMutations } from "vuex";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
swiperList: [
|
||||
{ name: "开通会员畅享更多活动" },
|
||||
{ name: "众妙之门视频" },
|
||||
{
|
||||
name: "吴门医述视频",
|
||||
},
|
||||
{ name: "专属视频视听" },
|
||||
{
|
||||
name: "读书相关权益",
|
||||
},
|
||||
{ name: "活动报名<text style='color:red'>(折扣价)</text>" },
|
||||
],
|
||||
infoShow: false, // 显示电子书相关
|
||||
showEbook: false, // 显示电子书相关
|
||||
userMes: {},
|
||||
signShow: false,
|
||||
@@ -304,7 +441,9 @@ export default {
|
||||
//方法
|
||||
methods: {
|
||||
...mapMutations(["setUserInfo"]),
|
||||
|
||||
openInfo() {
|
||||
this.infoShow = true;
|
||||
},
|
||||
goSetting() {
|
||||
this.onPageJump("/pages/mine/set/index");
|
||||
},
|
||||
@@ -354,9 +493,9 @@ export default {
|
||||
scene: "WXSceneSession",
|
||||
type: 0,
|
||||
href: this.$apkUrl,
|
||||
title: "疯子读书",
|
||||
summary: "我正在使用疯子读书提升自己,赶紧跟我一起来体验吧!",
|
||||
imageUrl: "static/fengziIcon.jpg",
|
||||
title: "众妙之门",
|
||||
summary: "我正在使用众妙之门提升自己,赶紧跟我一起来体验吧!",
|
||||
imageUrl: "static/icon/fengziIcon.png",
|
||||
success: function (res) {
|
||||
console.log("success:" + JSON.stringify(res));
|
||||
},
|
||||
@@ -371,9 +510,9 @@ export default {
|
||||
scene: "WXSceneTimeline",
|
||||
type: 0,
|
||||
href: this.$apkUrl,
|
||||
title: "疯子读书",
|
||||
summary: "我正在使用疯子读书提升自己,赶紧跟我一起来体验吧!",
|
||||
imageUrl: "static/fengziIcon.jpg",
|
||||
title: "众妙之门",
|
||||
summary: "我正在使用众妙之门提升自己,赶紧跟我一起来体验吧!",
|
||||
imageUrl: "static/icon/fengziIcon.png",
|
||||
success: function (res) {
|
||||
console.log("success:" + JSON.stringify(res));
|
||||
},
|
||||
@@ -391,13 +530,17 @@ export default {
|
||||
getData() {
|
||||
// 获取个人信息
|
||||
if (this.userInfo.id != undefined) {
|
||||
this.$http.post("book/user/info/" + this.userInfo.id).then((res) => {
|
||||
this.userMes = res.user;
|
||||
if (this.userMes.vip == 1) {
|
||||
this.userMes.vipValidtime = this.userMes.vipValidtime.substring(
|
||||
0,
|
||||
this.userMes.vipValidtime.indexOf(" ")
|
||||
);
|
||||
this.$http.post("common/user/getUserInfo").then((res) => {
|
||||
this.userMes = res.result;
|
||||
if (this.userMes.userVip) {
|
||||
// console.log(
|
||||
// "this.userMes.vipValidtime at line 510:",
|
||||
// this.userMes.vipValidtime
|
||||
// );
|
||||
// this.userMes.vipValidtime = this.userMes.vipValidtime.substring(
|
||||
// 0,
|
||||
// this.userMes.vipValidtime.indexOf(" ")
|
||||
// );
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -463,17 +606,20 @@ export default {
|
||||
@import "@/style/mixin.scss";
|
||||
|
||||
.per_mes {
|
||||
position: relative;
|
||||
margin: 0rpx 40rpx 60rpx 40rpx;
|
||||
align-items: center;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
|
||||
.per_mes_img {
|
||||
width: 160rpx;
|
||||
height: 160rpx;
|
||||
background-color: #fff;
|
||||
border-radius: 160rpx;
|
||||
margin: 0 30rpx 0 0;
|
||||
// @include themeBorder(10rpx,10rpx,#4E79A3, #A6D8DC);
|
||||
width: 140rpx;
|
||||
height: 140rpx;
|
||||
// background-color: #fff;
|
||||
border-radius: 140rpx;
|
||||
margin: 0 0 0 0;
|
||||
float: left;
|
||||
}
|
||||
|
||||
@@ -545,21 +691,24 @@ export default {
|
||||
}
|
||||
}
|
||||
.commonPageBox {
|
||||
background-color: #d8f8e4 !important;
|
||||
background-image: url("@/static/icon/mine_bg.png");
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100% 100%;
|
||||
// background-color: #d8f8e4 !important;
|
||||
}
|
||||
.chong_zhi {
|
||||
box-shadow: none;
|
||||
border-bottom-left-radius: 0rpx !important;
|
||||
border-bottom-right-radius: 0rpx !important;
|
||||
background-color: #d8f8e4;
|
||||
// border-bottom-left-radius: 0rpx !important;
|
||||
// border-bottom-right-radius: 0rpx !important;
|
||||
// background-color: #d8f8e4;
|
||||
// margin: 0 0 30upx 0;
|
||||
padding: 0 30upx;
|
||||
height: auto;
|
||||
|
||||
.zhanghu {
|
||||
width: 100%;
|
||||
margin-bottom: 40rpx;
|
||||
font-size: 32upx;
|
||||
margin-bottom: 10rpx;
|
||||
|
||||
// line-height: 80rpx;
|
||||
font-weight: bold;
|
||||
display: flex;
|
||||
@@ -568,19 +717,54 @@ export default {
|
||||
color: $themeColor;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.chong_list {
|
||||
.noVip {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-around;
|
||||
flex-direction: column;
|
||||
.zhanghu {
|
||||
font-size: 40rpx;
|
||||
width: 120rpx;
|
||||
margin-top: 20rpx;
|
||||
margin-bottom: 0rpx;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
// justify-content: space-around;
|
||||
image {
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.hasVip {
|
||||
.time {
|
||||
padding: 4rpx 20rpx;
|
||||
font-size: 26rpx;
|
||||
border-radius: 20rpx;
|
||||
background: linear-gradient(
|
||||
to right,
|
||||
rgb(204, 229, 244) 0%,
|
||||
rgb(197, 227, 215) 100%
|
||||
) !important;
|
||||
}
|
||||
}
|
||||
.chong_list {
|
||||
display: flex;
|
||||
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 60rpx;
|
||||
margin-bottom: 40rpx;
|
||||
.left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.chong_list_item {
|
||||
width: auto;
|
||||
height: 128rpx;
|
||||
height: 100rpx;
|
||||
margin-right: 60rpx;
|
||||
text-align: center;
|
||||
display: inline-block;
|
||||
@@ -597,27 +781,30 @@ export default {
|
||||
}
|
||||
|
||||
.chong_btn {
|
||||
position: absolute;
|
||||
font-size: 26rpx;
|
||||
display: block;
|
||||
top: 0px;
|
||||
right: 0px;
|
||||
float: right;
|
||||
border-radius: 50rpx;
|
||||
color: #fffbf6;
|
||||
padding: 10rpx 32rpx;
|
||||
// margin-top: -60rpx;
|
||||
// margin: 20rpx 0 0 0;
|
||||
background-image: linear-gradient(90deg, #3AB3AE 0%, #d5ecdd 200%);
|
||||
background-image: linear-gradient(90deg, #3ab3ae 0%, #d5ecdd 200%);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.xiugai {
|
||||
border-radius: 20rpx !important;
|
||||
margin: 0 30rpx;
|
||||
margin: 0 20rpx;
|
||||
// padding:0 40rpx;
|
||||
background: #edfcf7;
|
||||
background: #edf6f5ad;
|
||||
|
||||
.nav_list {
|
||||
background-color: #edfcf7;
|
||||
background-color: #b7e0e2;
|
||||
padding: 15rpx 0 15rpx 10rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -664,8 +851,42 @@ export default {
|
||||
}
|
||||
|
||||
.chongzhi_box {
|
||||
padding: 30rpx 50rpx 10rpx;
|
||||
background-color: #d8f8e4;
|
||||
position: relative;
|
||||
width: calc(100% - 320rpx);
|
||||
height: 100%;
|
||||
float: left;
|
||||
padding: 30rpx 20rpx 10rpx;
|
||||
background-color: #edf6f5ad;
|
||||
border-radius: 20rpx;
|
||||
}
|
||||
.vip_box {
|
||||
padding: 0;
|
||||
|
||||
float: right;
|
||||
position: relative;
|
||||
width: 300rpx;
|
||||
height: 100%;
|
||||
border-radius: 20rx;
|
||||
// background: rgba(255, 255, 255, 0.85);
|
||||
|
||||
// padding: 30rpx 20rpx 10rpx;
|
||||
// background-color: $themeBgColor;
|
||||
// @include themeBorder(6rpx, 20rpx, #3ab3ae, #a6d8dc);
|
||||
@include themeBorder(
|
||||
10rpx,
|
||||
20rpx,
|
||||
(
|
||||
linear-gradient(#edf6f5ad, #edf6f5ad),
|
||||
linear-gradient(to bottom left, #bed1b1, #a6d8dc)
|
||||
)
|
||||
);
|
||||
|
||||
.zhanghu {
|
||||
font-size: 80rpx;
|
||||
text-align: center;
|
||||
line-height: 100%;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/deep/.scroll-view-item:nth-child(2n-1) {
|
||||
@@ -673,15 +894,13 @@ export default {
|
||||
}
|
||||
|
||||
uni-page-body {
|
||||
background: #d8f8e4 !important;
|
||||
// background: #d8f8e4 !important;
|
||||
}
|
||||
|
||||
.bg_top {
|
||||
background-image: url("@/static/icon/login_bg.png");
|
||||
// background-position: center center;
|
||||
padding: 0 30rpx;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100% 100%;
|
||||
|
||||
height: 30vh;
|
||||
position: relative;
|
||||
|
||||
@@ -701,19 +920,107 @@ uni-page-body {
|
||||
}
|
||||
|
||||
.list_box {
|
||||
background: #d8f8e4 !important;
|
||||
// background: #d8f8e4 !important;
|
||||
padding: 20rpx 0;
|
||||
margin-top: -10rpx;
|
||||
}
|
||||
.pay_item_img {
|
||||
width: 80rpx;
|
||||
height: 80rpx;
|
||||
display: flex;
|
||||
color: #333;
|
||||
// color: #dac4b7;
|
||||
align-items: center;
|
||||
// width: 80rpx;
|
||||
// height: 80rpx;
|
||||
padding: 8rpx;
|
||||
box-sizing: border-box;
|
||||
font-weight: bold;
|
||||
// float: left;
|
||||
// margin-right: 20rpx;
|
||||
margin: 0 auto;
|
||||
margin-bottom: 10rpx;
|
||||
//margin-top:-10rpx;
|
||||
}
|
||||
.popup_box {
|
||||
padding-bottom: 20rpx;
|
||||
width: 88vw;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
height: auto;
|
||||
.title {
|
||||
font-family: PangMenZhengDaoBiaoTiTiMianFeiBan;
|
||||
font-weight: normal;
|
||||
font-size: 46rpx;
|
||||
color: $themeColor;
|
||||
background-color: #f5f5f5;
|
||||
// line-height: 46rpx;
|
||||
padding: 20rpx;
|
||||
// border-leradius: 6px;
|
||||
border-top-left-radius: 6px;
|
||||
border-top-right-radius: 6px;
|
||||
}
|
||||
|
||||
.content {
|
||||
font-size: 26rpx;
|
||||
letter-spacing: 0.15rpx;
|
||||
padding: 20rpx;
|
||||
color: #3f3f3f;
|
||||
|
||||
.top {
|
||||
margin: 30rpx 0;
|
||||
}
|
||||
|
||||
.center {
|
||||
line-height: 40rpx;
|
||||
// padding:0 10rpx;
|
||||
}
|
||||
|
||||
.bottom {
|
||||
width: 100%;
|
||||
margin-top: 60rpx;
|
||||
|
||||
font-size: 24rpx;
|
||||
line-height: 26rpx;
|
||||
color: #b0b0b0;
|
||||
}
|
||||
}
|
||||
.button_box {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-top: 20rpx;
|
||||
|
||||
.u-button {
|
||||
margin-left: 40rpx;
|
||||
}
|
||||
|
||||
.u-button:nth-child(1) {
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
.user_vip_box {
|
||||
min-width: 130rpx;
|
||||
|
||||
position: absolute;
|
||||
bottom: -20rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.user_vip {
|
||||
font-size: 24rpx;
|
||||
width: auto;
|
||||
padding: 4rpx 10rpx;
|
||||
font-weight: 800;
|
||||
border-radius: 20rpx;
|
||||
background: linear-gradient(
|
||||
to right,
|
||||
rgb(204, 229, 244) 0%,
|
||||
rgb(197, 227, 215) 100%
|
||||
);
|
||||
}
|
||||
.super {
|
||||
background: linear-gradient(to right, #5bc9c1 0%, #268798 100%);
|
||||
color: #f4f2e4;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
>点击绑定</view
|
||||
>
|
||||
</view>
|
||||
<view v-if="slotProps.row.type == 'password'">
|
||||
<view v-if="slotProps.row.type == 'password'" @click="handleClickRightContent(slotProps.row, 'bind')">
|
||||
{{
|
||||
userData[slotProps.row.indexValue] ? "更改密码" : "设置密码"
|
||||
}}
|
||||
|
||||
962
pages/mine/vip/index.vue
Normal file
962
pages/mine/vip/index.vue
Normal file
@@ -0,0 +1,962 @@
|
||||
<template>
|
||||
<view class="container commonPageBox vipBox" style="">
|
||||
<!-- 公共组件-每个页面必须引入 -->
|
||||
<public-module></public-module>
|
||||
<z-nav-bar
|
||||
title=""
|
||||
bgColor="rgba(188, 231, 223, 0.4)"
|
||||
fontColor="#000"
|
||||
>
|
||||
|
||||
<!-- <template slot="right">
|
||||
<text @click="handleClickDelete" v-if="addressId" style="padding-right: 20rpx; color: red">开通记录</text>
|
||||
</template>
|
||||
|
||||
-->
|
||||
</z-nav-bar>
|
||||
|
||||
<view
|
||||
class="contentBox commonPageContentBox"
|
||||
:style="`margin-top: ${
|
||||
(40 + statusBarHeight) * 2
|
||||
}rpx;height: calc(100% - ${(50 + statusBarHeight) * 2}rpx) !important;`"
|
||||
>
|
||||
<view class="flash_sale_content">
|
||||
<scroll-view scroll-y="true" class="scroll-Y" style="">
|
||||
<view
|
||||
class="scroll-view-item flash_sale_content_item color_shandow"
|
||||
v-for="(v, i) in dataList"
|
||||
:style="`background:${v.background ? v.background : '#f6f6f6'};`"
|
||||
>
|
||||
<view
|
||||
class="book_name PM_font"
|
||||
v-html="v.title"
|
||||
:style="`background: ${v.color};
|
||||
;-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
`"
|
||||
></view>
|
||||
|
||||
<view class="vip_content">
|
||||
<view class="vip_image_box"
|
||||
><image
|
||||
class="vip_image"
|
||||
src="@/static/icon/quanyi.png"
|
||||
mode="aspectFit"
|
||||
>
|
||||
</image
|
||||
></view>
|
||||
<view class="qunyi_box">
|
||||
<view style="height: auto">
|
||||
<view
|
||||
v-for="(item, index1) in v.quanyi"
|
||||
:style="item.style"
|
||||
v-html="item.name"
|
||||
></view
|
||||
></view
|
||||
>
|
||||
</view>
|
||||
<!-- buttonbg -->
|
||||
</view>
|
||||
<view class="vip_list vip_button_list">
|
||||
<view
|
||||
@click="openorderModal(item)"
|
||||
v-for="(item, index) in v.list"
|
||||
class="vip_button"
|
||||
:style="`background:${v.buttonbg ? v.buttonbg : '#f6f6f6'};`"
|
||||
><view style="max-width: 200rpx">{{ item.title }}</view>
|
||||
<view style="margin: 0 5rpx">¥{{ item.lastFee }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</view>
|
||||
<u-popup :show="orderModalShow" mode="bottom" :round="20">
|
||||
<view class="orderModalShow popup_box">
|
||||
<u-icon
|
||||
name="close"
|
||||
color="#333"
|
||||
size="18"
|
||||
@click="closeOrderModalShow"
|
||||
style="
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
right: 20rpx;
|
||||
top: 20rpx;
|
||||
"
|
||||
></u-icon>
|
||||
<orderPay ref="orderPay" :dataInfo="selectVipData"></orderPay>
|
||||
<!-- <view class="goods_nav_box">
|
||||
<uni-goods-nav
|
||||
:fill="true"
|
||||
:options="[]"
|
||||
:button-group="customButtonGroup1"
|
||||
@click="onHandleClickBuy"
|
||||
@buttonClick="onHandleClickBuy"
|
||||
/>
|
||||
</view> -->
|
||||
</view>
|
||||
</u-popup>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import list from "@/pages/component/commonComponents/list";
|
||||
import orderPay from "./order.vue";
|
||||
import $http from "@/config/requestConfig.js";
|
||||
import { mapState } from "vuex";
|
||||
export default {
|
||||
components: {
|
||||
list,
|
||||
orderPay,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
selectVipData: {},
|
||||
orderModalShow: false,
|
||||
superQuanyi: [
|
||||
{ name: "众妙之门视频" },
|
||||
{
|
||||
name: "吴门医述视频",
|
||||
style: {
|
||||
color: "#42BFA1",
|
||||
},
|
||||
},
|
||||
{ name: "专属视频视听" },
|
||||
{
|
||||
name: "读书相关权益",
|
||||
style: {
|
||||
color: "#42BFA1",
|
||||
},
|
||||
},
|
||||
{ name: "活动报名折扣价<text style='color:red'>(更优惠)</text>" },
|
||||
],
|
||||
sociologyQuanyi: [
|
||||
{ name: "众妙之门视频" },
|
||||
{
|
||||
name: "-",
|
||||
style: {
|
||||
color: "#b0b0b0",
|
||||
},
|
||||
},
|
||||
{ name: "专属视频视听" },
|
||||
{
|
||||
name: "-",
|
||||
style: {
|
||||
color: "#b0b0b0",
|
||||
},
|
||||
},
|
||||
{ name: "活动报名折扣价" },
|
||||
],
|
||||
|
||||
isLoadingHide: false,
|
||||
playData: {},
|
||||
options: {},
|
||||
searchValue: "",
|
||||
pagination: {
|
||||
// 请求参数
|
||||
page: 1, //页码
|
||||
limit: 20, //每页显示
|
||||
total: 0, //总条数
|
||||
},
|
||||
twoCateList: [], // 二级分类标题
|
||||
titleList: [], // 方剂标题
|
||||
curOneCateIndex: 0, // 当前选中的一级分类
|
||||
curTwoCateIndex: 0, // 当前选中的二级分类
|
||||
searchList: [], // 搜索结果数组
|
||||
showSearchList: false,
|
||||
userMes: {}, // 用户信息
|
||||
searchDisable: false, // 搜索不可用
|
||||
limitShow: false,
|
||||
limitTitle: "提示",
|
||||
limitContent: "",
|
||||
scrollViewHeight: 0,
|
||||
dataList: [],
|
||||
urlList: {
|
||||
list: "sociology/user/getVipProductForUser",
|
||||
},
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
console.log(options, "989");
|
||||
this.options = options;
|
||||
this.getUserInfo();
|
||||
this.getData();
|
||||
},
|
||||
onHide() {
|
||||
// this.showSearchList = false
|
||||
// this.searchList = []
|
||||
},
|
||||
computed: {
|
||||
...mapState(["userInfo"]),
|
||||
},
|
||||
methods: {
|
||||
closeOrderModalShow() {
|
||||
this.orderModalShow = false;
|
||||
this.selectVipData = {};
|
||||
},
|
||||
openorderModal(data) {
|
||||
this.selectVipData = data;
|
||||
this.orderModalShow = true;
|
||||
this.$nextTick(() => {
|
||||
this.$refs.orderPay.initPrepareOrder();
|
||||
});
|
||||
},
|
||||
onReachBottom1() {
|
||||
// 上拉加载
|
||||
// 当列表数量不大于或等于总数量,则再次调用接口请求数据
|
||||
if (this.dataList.length >= this.pagination.total) return;
|
||||
this.pagination.page++;
|
||||
this.getData();
|
||||
},
|
||||
|
||||
// 检查是有权限使用搜索功能
|
||||
checkDisable() {
|
||||
console.log("点击了");
|
||||
},
|
||||
// 显示无权限弹窗
|
||||
// showNoRights() {
|
||||
// let that = this
|
||||
// uni.showModal({
|
||||
// content: "",
|
||||
// confirmText: '好的',
|
||||
// showCancel: false,
|
||||
// success: function(res) {
|
||||
// if (res.confirm) {
|
||||
// // console.log('用户点击确定');
|
||||
// that.clear()
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
// },
|
||||
// 获取用户详情
|
||||
getUserInfo() {
|
||||
// 用户详情
|
||||
if (this.userInfo.id != undefined) {
|
||||
this.$http.post("book/user/info/" + this.userInfo.id).then((res) => {
|
||||
this.userMes = res.user;
|
||||
this.getCateList();
|
||||
console.log(this.userMes, "呼呼");
|
||||
});
|
||||
}
|
||||
},
|
||||
// 详情
|
||||
gotoDetail(v) {
|
||||
console.log(v);
|
||||
uni.navigateTo({
|
||||
// url: '../bookShop/commodityDetail?id=' + item.id
|
||||
url: `/pages/curriculum/order/curriculum/index?navTitle=${v.title}&title=${v.title}&id=${v.id}`,
|
||||
});
|
||||
},
|
||||
|
||||
getData() {
|
||||
this.isLoadingHide = false;
|
||||
this.$http
|
||||
.request({
|
||||
url: this.urlList.list,
|
||||
method: "POST",
|
||||
data: {},
|
||||
header: {
|
||||
//默认 无 说明:请求头
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
})
|
||||
.then((res) => {
|
||||
console.log("res at line 144:", res.list);
|
||||
if (res.code == 0) {
|
||||
for (let i in res.list) {
|
||||
if (res.list[i].length > 0) {
|
||||
var type =
|
||||
i == "super_hd" || i == "sociology_hd" ? "hd" : "normal";
|
||||
if (i == "super" || i == "super_hd") {
|
||||
this.dataList.push({
|
||||
title: "超级VIP",
|
||||
key: "super",
|
||||
type: type,
|
||||
titleStyle: {
|
||||
width: "120rpx",
|
||||
},
|
||||
background: "rgb(255 255 255 / 85%)",
|
||||
buttonbg:
|
||||
"linear-gradient(to right, #CCE5F4 0%,#C5E3D7 100%) ",
|
||||
// titleBackground:
|
||||
// "linear-gradient(130deg, rgb(153, 202, 192) 0%, rgb(192, 223, 207) 50%)",
|
||||
color: "linear-gradient(130deg,#2E676A 0%, #72AD92 100%)",
|
||||
list: res.list[i],
|
||||
quanyi: this.superQuanyi,
|
||||
});
|
||||
} else if (i == "sociology" || i == "sociology_hd") {
|
||||
this.dataList.push({
|
||||
title: "众妙之门VIP",
|
||||
key: "sociology",
|
||||
type: type,
|
||||
list: res.list[i],
|
||||
background: "rgb(188 231 223 / 93%)",
|
||||
buttonbg: "rgba(255, 255, 255, 0.85)",
|
||||
// titleBackground:
|
||||
// "linear-gradient(130deg, #E4F3E9 0%,#D6E7EF 100%) ",
|
||||
|
||||
color: "linear-gradient(130deg,#2E676A 0%, #72AD92 100%)",
|
||||
quanyi: this.sociologyQuanyi,
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
// 获取名称
|
||||
getTitles(dictType) {
|
||||
console.log("dictType", dictType);
|
||||
if (this.curOneCateIndex == 0) {
|
||||
if (dictType == 2) {
|
||||
uni.navigateTo({
|
||||
url: "./zhuanzhuchuban",
|
||||
});
|
||||
return;
|
||||
}
|
||||
$http
|
||||
.request({
|
||||
url: "book/generalArticle/articleByPage",
|
||||
method: "POST",
|
||||
data: {
|
||||
// loadAnimate: 'none', // 请求加载动画
|
||||
type: dictType == 1 ? "1" : "2",
|
||||
limit: 1000,
|
||||
current: 1,
|
||||
},
|
||||
header: {
|
||||
//默认 无 说明:请求头
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
})
|
||||
.then((res) => {
|
||||
console.log(res, "内容获取成功");
|
||||
if (res.code == 0 && res.result && res.result.records.length > 0) {
|
||||
this.titleList = res.result.records;
|
||||
} else {
|
||||
this.titleList = [];
|
||||
}
|
||||
})
|
||||
.catch((e) => {
|
||||
this.titleList = [];
|
||||
console.log(e);
|
||||
});
|
||||
}
|
||||
if (this.curOneCateIndex == 1) {
|
||||
$http
|
||||
.request({
|
||||
url: "book/medicaldes/inheritListByPage",
|
||||
method: "POST",
|
||||
data: {
|
||||
// loadAnimate: 'none', // 请求加载动画
|
||||
dictType: dictType,
|
||||
limit: 1000,
|
||||
current: 1,
|
||||
},
|
||||
header: {
|
||||
//默认 无 说明:请求头
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
})
|
||||
.then((res) => {
|
||||
console.log(res, "内容获取成功");
|
||||
if (res.code == 0 && res.result.records.length > 0) {
|
||||
this.titleList = res.result.records;
|
||||
for (let i = 0; i < this.titleList.length; i++) {
|
||||
this.titleList[i].imageslist = [];
|
||||
this.titleList[i].imageslist = this.titleList[i].img.split(";");
|
||||
}
|
||||
} else {
|
||||
this.titleList = [];
|
||||
}
|
||||
})
|
||||
.catch((e) => {
|
||||
this.titleList = [];
|
||||
console.log(e);
|
||||
});
|
||||
}
|
||||
if (this.curOneCateIndex == 2) {
|
||||
$http
|
||||
.request({
|
||||
url: "book/medicaldes/lightListByType?type=" + dictType,
|
||||
method: "POST",
|
||||
data: {
|
||||
// loadAnimate: 'none', // 请求加载动画
|
||||
limit: 1000,
|
||||
page: 1,
|
||||
},
|
||||
header: {
|
||||
//默认 无 说明:请求头
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
})
|
||||
.then((res) => {
|
||||
console.log(res, "内容获取成功");
|
||||
if (res.code == 0 && res.result.length > 0) {
|
||||
this.titleList = res.result;
|
||||
} else {
|
||||
this.titleList = [];
|
||||
}
|
||||
})
|
||||
.catch((e) => {
|
||||
this.titleList = [];
|
||||
console.log(e);
|
||||
});
|
||||
}
|
||||
if (this.curOneCateIndex == 3) {
|
||||
$http
|
||||
.request({
|
||||
url: "book/medicaldes/recordByType?type=" + dictType,
|
||||
method: "POST",
|
||||
data: {
|
||||
// loadAnimate: 'none', // 请求加载动画
|
||||
limit: 1000,
|
||||
page: 1,
|
||||
},
|
||||
header: {
|
||||
//默认 无 说明:请求头
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
})
|
||||
.then((res) => {
|
||||
console.log(res, "内容获取成功");
|
||||
if (res.code == 0 && res.result.length > 0) {
|
||||
this.titleList = res.result;
|
||||
} else {
|
||||
this.titleList = [];
|
||||
}
|
||||
})
|
||||
.catch((e) => {
|
||||
this.titleList = [];
|
||||
console.log(e);
|
||||
});
|
||||
}
|
||||
},
|
||||
setTwoCateIndex(item, index) {
|
||||
let dictType = item.dictType;
|
||||
this.curTwoCateIndex = index;
|
||||
this.getTitles(dictType);
|
||||
},
|
||||
async setOneCateIndex(item, index) {
|
||||
console.log(index, 99999);
|
||||
var that = this;
|
||||
|
||||
// if(this.userMes.tgdzPower == 0){
|
||||
// let that = this
|
||||
// uni.showModal({
|
||||
// content: "购买 针灸六经法要上册和下册 后方可使用此功能",
|
||||
// confirmText: '好的',
|
||||
// showCancel: false,
|
||||
// success: function(res) {
|
||||
// if (res.confirm) {
|
||||
// // console.log('用户点击确定');
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
// return
|
||||
// }
|
||||
// if(item.title == "时辰取穴"){
|
||||
// uni.navigateTo({
|
||||
// url: "../timeAcupoint/timeAcupoint"
|
||||
// })
|
||||
// return
|
||||
// }
|
||||
let type = item.type;
|
||||
this.curOneCateIndex = index;
|
||||
this.curTwoCateIndex = 0;
|
||||
this.searchValue = "";
|
||||
this.searchList = [];
|
||||
this.showSearchList = false;
|
||||
// if (index != 2) {
|
||||
await this.getTowCateList(type);
|
||||
|
||||
// uni.createSelectorQuery().select('.oneCateList').boundingClientRect(function (rect) {
|
||||
// var height = rect.height
|
||||
// console.log('元素高度:',);
|
||||
|
||||
// }).exec();
|
||||
|
||||
// } else {
|
||||
// this.getJFList(dictType)
|
||||
// }
|
||||
},
|
||||
async getTowCateList(type) {
|
||||
var that = this;
|
||||
$http
|
||||
.request({
|
||||
url: "book/medicaldes/typeList?label=" + type,
|
||||
method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
|
||||
data: {
|
||||
loadAnimate: "none", // 请求加载动画
|
||||
// 'categoryId': id
|
||||
},
|
||||
// header: { //默认 无 说明:请求头
|
||||
// 'Content-Type': 'application/json'
|
||||
// },
|
||||
})
|
||||
.then((res) => {
|
||||
console.log(res, "二级分类获取成功");
|
||||
if (res.code == 0 && res.result.length >= 0) {
|
||||
this.twoCateList = res.result;
|
||||
if (this.curOneCateIndex == 0) {
|
||||
this.twoCateList = [
|
||||
{
|
||||
dictType: "1",
|
||||
dictValue: "学术思想",
|
||||
},
|
||||
{
|
||||
dictType: "2",
|
||||
dictValue: "出版专著",
|
||||
},
|
||||
{
|
||||
dictType: "3",
|
||||
dictValue: "学术平台",
|
||||
},
|
||||
];
|
||||
}
|
||||
if (this.curOneCateIndex == 2) {
|
||||
this.twoCateList = [
|
||||
{
|
||||
dictType: "1",
|
||||
dictValue: "吴门之歌",
|
||||
},
|
||||
{
|
||||
dictType: "2",
|
||||
dictValue: "巴山夜语",
|
||||
},
|
||||
{
|
||||
dictType: "3",
|
||||
dictValue: "吴门之徽",
|
||||
},
|
||||
];
|
||||
}
|
||||
if (this.curOneCateIndex == 3) {
|
||||
this.twoCateList = [
|
||||
{
|
||||
dictType: "1",
|
||||
dictValue: "学术贡献",
|
||||
},
|
||||
{
|
||||
dictType: "2",
|
||||
dictValue: "抗疫纪实",
|
||||
},
|
||||
{
|
||||
dictType: "3",
|
||||
dictValue: "吴门公益",
|
||||
},
|
||||
];
|
||||
}
|
||||
this.getTitles(this.twoCateList[0].dictType);
|
||||
|
||||
this.$nextTick(async () => {
|
||||
// await uni.createSelectorQuery().select('.uni-tabbar').boundingClientRect(function (rect) {
|
||||
// console.log(rect.height, '3333')
|
||||
|
||||
// // var height = 42 + rect.height + 10;
|
||||
// // that.scrollViewHeight = height;
|
||||
// // console.log(that.scrollViewHeight, '111111')
|
||||
// // that.$forceUpdate()
|
||||
// // console.log('元素高度2:', height);
|
||||
// }).exec();
|
||||
await uni
|
||||
.createSelectorQuery()
|
||||
.select(".cateList")
|
||||
.boundingClientRect(function (rect) {
|
||||
console.log(rect.height, "22222");
|
||||
|
||||
var height = 42 + rect.height + 20;
|
||||
that.scrollViewHeight = height;
|
||||
console.log(that.scrollViewHeight, "111111");
|
||||
that.$forceUpdate();
|
||||
console.log("元素高度2:", height);
|
||||
})
|
||||
.exec();
|
||||
});
|
||||
} else {
|
||||
this.twoCateList = [];
|
||||
this.titleList = [];
|
||||
}
|
||||
})
|
||||
.catch((e) => {
|
||||
this.twoCateList = [];
|
||||
this.titleList = [];
|
||||
console.log(e);
|
||||
});
|
||||
},
|
||||
transformData(inputData) {
|
||||
const result = {};
|
||||
inputData.forEach((item) => {
|
||||
const { letter } = item;
|
||||
if (!result[letter]) {
|
||||
result[letter] = [];
|
||||
}
|
||||
result[letter].push(item);
|
||||
});
|
||||
// const finalResult = Object.keys(result).map(key => ({ [key]: result[key] }));
|
||||
return result;
|
||||
},
|
||||
// getJFList(id) {
|
||||
// $http.request({
|
||||
// url: "book/prescript/prescriptListForJF",
|
||||
// method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
|
||||
// data: {
|
||||
// loadAnimate: 'none', // 请求加载动画
|
||||
// 'categoryId': id
|
||||
// },
|
||||
// header: { //默认 无 说明:请求头
|
||||
// 'Content-Type': 'application/json'
|
||||
// },
|
||||
// }).then(res => {
|
||||
// if (res.code == 0 && res.list.length > 0) {
|
||||
// this.twoCateList = []
|
||||
// this.titleList = this.transformData(res.list)
|
||||
// console.log('JF经方', this.titleList)
|
||||
// } else {
|
||||
// this.twoCateList = []
|
||||
// this.titleList = []
|
||||
// }
|
||||
// }).catch(e => {
|
||||
// this.twoCateList = []
|
||||
// this.titleList = []
|
||||
// console.log(e)
|
||||
// })
|
||||
// },
|
||||
getCateList(id) {
|
||||
id ? "" : (id = 0);
|
||||
this.twoCateList = [];
|
||||
this.curTwoCateIndex = 0;
|
||||
// 0为获取顶级分类,其他为搜索下级分类,目前的逻辑,顶级是写死的,所以可能只会涉及到搜索第二级
|
||||
// $http.request({
|
||||
// url: "book/prescript/prescriptCategoryList",
|
||||
// method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
|
||||
// data: {
|
||||
// loadAnimate: 'none', // 请求加载动画
|
||||
// 'categoryId': id
|
||||
// },
|
||||
// header: { //默认 无 说明:请求头
|
||||
// 'Content-Type': 'application/json'
|
||||
// },
|
||||
// }).then(res => {
|
||||
// console.log(res, '脉穴分类获取成功')
|
||||
// if (res.code == 0 && res.list.length > 0) {
|
||||
// this.oneCateList = res.list
|
||||
this.getTowCateList(this.oneCateList[0].type);
|
||||
// } else {
|
||||
// this.oneCateList = []
|
||||
// }
|
||||
// }).catch(e => {
|
||||
// this.oneCateList = []
|
||||
// console.log(e)
|
||||
// })
|
||||
},
|
||||
|
||||
// 放大图片
|
||||
previewImage(url) {
|
||||
console.log(url);
|
||||
uni.previewImage({
|
||||
urls: [url],
|
||||
longPressActions: {
|
||||
itemList: ["很抱歉,暂不支持保存图片到本地"],
|
||||
success: function (res) {
|
||||
// console.log(res,'+++++')
|
||||
},
|
||||
},
|
||||
});
|
||||
},
|
||||
// getSearch() {
|
||||
// $http.request({
|
||||
// url: "book/prescript/searchPrescript",
|
||||
// method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
|
||||
// data: {
|
||||
// loadAnimate: 'none', // 请求加载动画
|
||||
// 'keywords': this.searchValue,
|
||||
// type: this.curOneCateIndex + 1
|
||||
// },
|
||||
// header: { //默认 无 说明:请求头
|
||||
// 'Content-Type': 'application/json'
|
||||
// },
|
||||
// }).then(res => {
|
||||
// console.log(res, '搜索结果')
|
||||
// if (res.code == 0 && res.list.length >= 0) {
|
||||
// this.showSearchList = true
|
||||
// this.searchList = res.list
|
||||
// } else {
|
||||
// this.searchList = []
|
||||
// }
|
||||
// }).catch(e => {
|
||||
// // this.titleList = []
|
||||
// this.searchList = []
|
||||
// console.log(e)
|
||||
// })
|
||||
// },
|
||||
// search(res) {
|
||||
// console.log(res, 'res')
|
||||
// // uni.showToast({
|
||||
// // title: '搜索:' + res,
|
||||
// // icon: 'none'
|
||||
// // })
|
||||
// if (res == '') {
|
||||
// this.showSearchList = false
|
||||
// this.searchList = []
|
||||
// } else {
|
||||
// this.getSearch()
|
||||
// }
|
||||
|
||||
// },
|
||||
// input(res) {
|
||||
// console.log('----input:', res)
|
||||
// if (res == '') {
|
||||
// this.searchList = []
|
||||
// } else {
|
||||
// this.getSearch()
|
||||
// }
|
||||
// },
|
||||
// clear(res) {
|
||||
// console.log('----clear:', res)
|
||||
// // uni.showToast({
|
||||
// // title: 'clear事件,清除值为:',
|
||||
// // icon: 'none'
|
||||
// // })
|
||||
// this.searchValue = ''
|
||||
// this.showSearchList = false
|
||||
// },
|
||||
// blur(res) {
|
||||
// // console.log('----blur:', res)
|
||||
// // if (res == '') {
|
||||
// // this.showSearchList = false
|
||||
// // this.searchList = []
|
||||
// // } else {
|
||||
// // this.getSearch()
|
||||
// // }
|
||||
// },
|
||||
// focus(e) {
|
||||
// console.log('----focus:')
|
||||
// // uni.showToast({
|
||||
// // title: 'focus事件,输出值为:' + e.value,
|
||||
// // icon: 'none'
|
||||
// // })
|
||||
// // 等于1 就是有权限
|
||||
// // this.showSearchList = true
|
||||
|
||||
// },
|
||||
// cancel(res) {
|
||||
// uni.showToast({
|
||||
// title: '点击取消,输入值为:' + res.value,
|
||||
// icon: 'none'
|
||||
// })
|
||||
// }
|
||||
},
|
||||
onBackPress() {
|
||||
// #ifdef APP-PLUS
|
||||
plus.key.hideSoftKeybord();
|
||||
// #endif
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import "@/style/mixin.scss";
|
||||
.vipBox {
|
||||
background-repeat: no-repeat;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
background-size: 100% 100%;
|
||||
background-image: url("@/static/icon/vipbg.png");
|
||||
}
|
||||
|
||||
.u-grid-list {
|
||||
// height: 40rpx;
|
||||
}
|
||||
|
||||
.searchList {
|
||||
.item {
|
||||
font-size: 28rpx;
|
||||
padding: 20rpx;
|
||||
border-bottom: 1px solid #dadbde;
|
||||
}
|
||||
}
|
||||
|
||||
.scroll-view_H {
|
||||
background-color: #fff;
|
||||
white-space: nowrap;
|
||||
padding: 10rpx;
|
||||
}
|
||||
|
||||
.scroll-Y {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.scroll-view_H {
|
||||
white-space: nowrap;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.scroll-view-item {
|
||||
display: inline-block;
|
||||
// height: 300rpx;
|
||||
// line-height: 300rpx;
|
||||
// text-align: center;
|
||||
// font-size: 36rpx;
|
||||
}
|
||||
|
||||
.scroll-view-item_H {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
// height: 300rpx;
|
||||
// line-height: 300rpx;
|
||||
// text-align: center;
|
||||
// font-size: 36rpx;
|
||||
}
|
||||
|
||||
.titleList {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.titleList2 {
|
||||
height: calc(100% - 170rpx);
|
||||
}
|
||||
.commonPageContentBox {
|
||||
// min-height: 100% !important;
|
||||
}
|
||||
.related_courses_name {
|
||||
display: inline-block;
|
||||
float: left;
|
||||
line-height: 60rpx;
|
||||
width: calc(100% - 90rpx) !important;
|
||||
padding-left: 20rpx;
|
||||
font-weight: 700;
|
||||
.aui-text-danger {
|
||||
display: inline-block;
|
||||
float: right;
|
||||
}
|
||||
}
|
||||
.vip_image_box {
|
||||
@include themFlex(center, center);
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
.vip_image {
|
||||
width: 60rpx;
|
||||
height: 60rpx;
|
||||
// float: left;
|
||||
}
|
||||
/deep/.list_item {
|
||||
.rightArrow {
|
||||
margin-top: 10rpx !important;
|
||||
}
|
||||
}
|
||||
|
||||
.flash_sale_content {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
overflow: hidden;
|
||||
height: 100%;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
|
||||
.flash_sale_content_item {
|
||||
width: auto;
|
||||
min-width: 47%;
|
||||
min-height: 48%;
|
||||
margin: 10rpx !important;
|
||||
border-radius: 20rpx;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
.vip_content {
|
||||
width: 100%;
|
||||
height: calc(100% - 80rpx);
|
||||
padding: 20rpx;
|
||||
padding-top: 0;
|
||||
// display: flex;
|
||||
// align-items: center;
|
||||
// justify-content: center;
|
||||
// flex-direction: column;
|
||||
position: relative;
|
||||
}
|
||||
}
|
||||
|
||||
.book_image {
|
||||
width: 165rpx;
|
||||
height: 192rpx;
|
||||
border-radius: 10rpx;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
.book_name {
|
||||
border-radius: 20rpx;
|
||||
padding: 10rpx 20rpx;
|
||||
padding-top: 20rpx;
|
||||
// height: 80rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-weight: bold;
|
||||
font-size: 46rpx;
|
||||
line-height: 48rpx;
|
||||
color: #64bec5;
|
||||
text-align: center;
|
||||
// margin-bottom: 10rpx;
|
||||
overflow: hidden;
|
||||
// text-overflow: ellipsis;
|
||||
white-space: wrap;
|
||||
}
|
||||
}
|
||||
.vip_button_list {
|
||||
width: 100%;
|
||||
max-height: 200rpx;
|
||||
// @include themFlex(center, space-between);
|
||||
// flex-direction: column;
|
||||
padding-top: 0;
|
||||
// display: flex;
|
||||
padding: 20rpx 10rpx;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
bottom: 20rpx;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
// justify-content: center;
|
||||
// flex-direction: column;
|
||||
.vip_button {
|
||||
color: #265354;
|
||||
width: 100%;
|
||||
height: 80rpx !important;
|
||||
// line-height: 80rpx;
|
||||
display: flex;
|
||||
// align-items: center;
|
||||
justify-content: space-around;
|
||||
padding: 0 0rpx;
|
||||
font-size: 26rpx;
|
||||
font-weight: bold;
|
||||
width: 100%;
|
||||
border-radius: 40rpx;
|
||||
// line-height: 80rpx;
|
||||
margin-top: 20rpx;
|
||||
white-space: wrap;
|
||||
view {
|
||||
display: flex;
|
||||
line-height: 30rpx;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
.vip_button:first-child {
|
||||
margin-top: 0 !important;
|
||||
}
|
||||
}
|
||||
.qunyi_box {
|
||||
height: calc(100% - 280rpx);
|
||||
color: #333;
|
||||
font-weight: bold;
|
||||
padding-left: 10rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.popup_box {
|
||||
max-height: 95vh;
|
||||
overflow: auto;
|
||||
}
|
||||
</style>
|
||||
1822
pages/mine/vip/order.vue
Normal file
1822
pages/mine/vip/order.vue
Normal file
File diff suppressed because it is too large
Load Diff
@@ -10,6 +10,18 @@
|
||||
:backState="options.source == 'recharge' ? 2000 : 1000"
|
||||
>
|
||||
</z-nav-bar>
|
||||
<!-- style="position: fixed; width: 100%; z-index: 10" -->
|
||||
<u-alert
|
||||
|
||||
type="warning"
|
||||
|
||||
size="20rpx"
|
||||
:title="goBuyTitle"
|
||||
:show-icon="true"
|
||||
|
||||
>
|
||||
|
||||
</u-alert>
|
||||
<view class="ACTable">
|
||||
<!-- <u-tabs :list="tab_list" @click="tab_click" lineColor="#54a966 100% 100%"
|
||||
:activeStyle="{color: '#303133',fontWeight: 'bold',transform: 'scale(1.1)'}" ></u-tabs> -->
|
||||
@@ -49,7 +61,7 @@
|
||||
</view>
|
||||
<view style="padding: 30rpx; padding-top: 0">
|
||||
<view class="AC_con">
|
||||
<view class="AC_jilu PM_font">充值记录</view>
|
||||
<view class="AC_jilu PM_font">充值消费记录</view>
|
||||
<common-list
|
||||
:dataList="MoneyRecord"
|
||||
isCondition="true"
|
||||
@@ -169,6 +181,7 @@ import { mapState } from "vuex";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
goBuyTitle:'【天医币】仅为我平台支付使用币种 。一人民币=一天医币,仅为了方便用户支付使用。【天医币】可以用于在我平台支付书籍或课程使用。【天医币】这个名称是为适应我们平台的定位属性,所起名称。与区块链虚拟货币无任何关系。',
|
||||
playData: {},
|
||||
options: {},
|
||||
platform: null,
|
||||
@@ -408,7 +421,7 @@ export default {
|
||||
.AC_List {
|
||||
overflow: hidden;
|
||||
.left {
|
||||
width: calc(100% - 120rpx) !important;
|
||||
width: calc(100% - 220rpx) !important;
|
||||
font-weight: 700;
|
||||
float: left;
|
||||
color: #333;
|
||||
@@ -417,7 +430,7 @@ export default {
|
||||
}
|
||||
.right {
|
||||
display: block;
|
||||
width: 100rpx !important;
|
||||
width: 200rpx !important;
|
||||
float: right;
|
||||
text-align: right;
|
||||
font-size: 32rpx;
|
||||
@@ -440,6 +453,7 @@ export default {
|
||||
}
|
||||
|
||||
.AC_mark {
|
||||
width: 100%;
|
||||
font-size: 28rpx;
|
||||
margin-top: 20rpx;
|
||||
margin-bottom: 15rpx;
|
||||
@@ -681,4 +695,11 @@ export default {
|
||||
// right: 30rpx;
|
||||
// top: 20rpx;
|
||||
}
|
||||
/deep/.u-alert__content__title
|
||||
{
|
||||
// background-color: #f0f0f0;
|
||||
font-size: 24rpx !important;
|
||||
// color: #f4511a !important;
|
||||
line-height: 28rpx !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
659
pages/mine/wallet/jf/index copy.vue
Normal file
659
pages/mine/wallet/jf/index copy.vue
Normal file
@@ -0,0 +1,659 @@
|
||||
<template>
|
||||
<view class="commonPageBox">
|
||||
<!-- 公共组件-每个页面必须引入 -->
|
||||
<public-module></public-module>
|
||||
<z-nav-bar title="我的积分" bgColor="" fontColor="#000000" > </z-nav-bar>
|
||||
<view class="ACTable " >
|
||||
<!-- <u-tabs :list="tab_list" @click="tab_click" lineColor="#54a966 100% 100%"
|
||||
:activeStyle="{color: '#303133',fontWeight: 'bold',transform: 'scale(1.1)'}" ></u-tabs> -->
|
||||
|
||||
<!-- <u-tabs :list="tab_list_ios" @click="tab_click" lineColor="#54a966 100% 100%"
|
||||
:activeStyle="{color: '#303133',fontWeight: 'bold',transform: 'scale(1.1)'}" v-if="!iosHide"></u-tabs> -->
|
||||
|
||||
<view>
|
||||
<view class="AC_mes">
|
||||
<view class="wallet_title PM_font">全部积分</view>
|
||||
<view class="wallet_number">{{
|
||||
userMes.jf ? userMes.jf : 0
|
||||
}}</view>
|
||||
|
||||
<!-- <text v-if="platform != 'ios'" class="AC_chong" @click="buPoint()"
|
||||
>充值</text
|
||||
> -->
|
||||
</view>
|
||||
|
||||
<view style="padding: 20rpx; padding-top: 0">
|
||||
<view class="AC_con">
|
||||
<view class="AC_jilu PM_font">积分记录</view>
|
||||
<common-list
|
||||
:dataList="MoneyRecord"
|
||||
isCondition="true"
|
||||
isNoIcon="true"
|
||||
label="orderType"
|
||||
>
|
||||
<template slot="labelSlot" slot-scope="slotProps">
|
||||
<view class="label_content AC_List">
|
||||
<view class="left">
|
||||
<view class="title">{{ slotProps.row.orderType }}</view>
|
||||
</view>
|
||||
<view
|
||||
:class="`right ${
|
||||
slotProps.row.changeAmount > 0 ? 'Hot' : ''
|
||||
}`"
|
||||
>
|
||||
<text v-if="slotProps.row.changeAmount > 0">+</text>
|
||||
<text>{{ slotProps.row.changeAmount }}</text> </view
|
||||
><view
|
||||
class="AC_mark"
|
||||
v-if="slotProps.row.remark "
|
||||
>{{ slotProps.row.remark}}</view
|
||||
><view class="AC_time">{{ slotProps.row.createTime }}</view>
|
||||
</view>
|
||||
</template>
|
||||
</common-list>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view v-if="tab_muJian==1">
|
||||
<view class="couponList">
|
||||
<view v-for="(item,index) in couponTabs" @click="couponTabCLi(index)"
|
||||
:class="couponListTab==index?'couStyle':''">{{item.name}}</view>
|
||||
</view>
|
||||
<view>
|
||||
<view class="card" v-for="item in cardList">
|
||||
<view>
|
||||
<view class="content">
|
||||
<view :class="couponListTab==0?'page-group':'page-group grey'">
|
||||
<i class="fold-page"></i>
|
||||
<span class="page">优惠券</span>
|
||||
</view>
|
||||
<i class="dot-left"></i>
|
||||
<i class="dot-right"></i>
|
||||
<view class="coupon-detail">
|
||||
<view :class="couponListTab==0?'':'grey'">
|
||||
<span>¥</span>
|
||||
<span>{{item.coupons.amount}}</span>
|
||||
</view>
|
||||
<view>
|
||||
<view>{{item.coupons.couponName}}</view>
|
||||
<view>满{{item.coupons.useLevel}}元可用</view>
|
||||
<view>
|
||||
<span v-if="item.coupons.couponProType == 0">使用类型:商品类</span>
|
||||
<span v-if="item.coupons.couponProType == 1">使用类型:电子书</span>
|
||||
</view>
|
||||
</view>
|
||||
<view>
|
||||
<view v-if="couponListTab==0" @click="onPageJump('../bookShop/bookShopIndex')">
|
||||
立即使用</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="footer">
|
||||
<view style="margin: 0 0 8rpx 0;">使用时间:{{item.coupons.takeEffectDate}} -
|
||||
{{item.coupons.expirationDate}}
|
||||
</view>
|
||||
<view>{{item.coupons.note}}</view>
|
||||
<view class="arrow"></view>
|
||||
<view class="arrow-up"></view>
|
||||
</view>
|
||||
<view class="ribbon" v-if="couponListTab==0">未使用</view>
|
||||
<view class="ribbon grey" v-if="couponListTab==1">已使用</view>
|
||||
<view class="ribbon grey" v-if="couponListTab==2">已过期</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="cardList.length==0" style="text-align: center;font-size: 30rpx;color: #666;">暂无代金券
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<!-- <view>
|
||||
<view v-if="status == 0" style="text-align: center">
|
||||
<u-loading-icon style="display: inline-block"></u-loading-icon>
|
||||
<font
|
||||
style="
|
||||
vertical-align: super;
|
||||
margin-left: 10px;
|
||||
font-size: 26rpx;
|
||||
color: #909399;
|
||||
"
|
||||
>努力加载中</font
|
||||
>
|
||||
</view>
|
||||
<view v-if="status == 1">
|
||||
<u-divider text="全部加载完成"></u-divider>
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<view style="padding-bottom: 20rpx">
|
||||
<u-back-top
|
||||
:scroll-top="scrollTop"
|
||||
bottom="60"
|
||||
:customStyle="bgiStyle"
|
||||
:iconStyle="iconStyle"
|
||||
>
|
||||
</u-back-top>
|
||||
</view>
|
||||
</view>
|
||||
<music-play :playData="playData"></music-play>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import musicPlay from "@/components/music.vue";
|
||||
import $http from "@/config/requestConfig.js";
|
||||
import { mapState } from "vuex";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
playData: {},
|
||||
platform: null,
|
||||
urlList: {
|
||||
list: "common/jfTransactionDetails/getJfTransactionDetailsList",
|
||||
},
|
||||
tab_list: [
|
||||
{
|
||||
name: "天医币",
|
||||
},
|
||||
],
|
||||
tab_list_ios: [
|
||||
{
|
||||
name: "优惠券",
|
||||
},
|
||||
],
|
||||
couponTabs: [
|
||||
{
|
||||
name: "未使用",
|
||||
},
|
||||
{
|
||||
name: "已使用",
|
||||
},
|
||||
{
|
||||
name: "已过期",
|
||||
},
|
||||
],
|
||||
cardList: [],
|
||||
couponListTab: 0,
|
||||
MoneyRecord: [],
|
||||
userMes: {},
|
||||
RecordScreen: {
|
||||
userid: "",
|
||||
page: 1,
|
||||
limit: 5,
|
||||
},
|
||||
scrollTop: 0,
|
||||
status: 3,
|
||||
totalPage: 0,
|
||||
totalCount: 0,
|
||||
tab_muJian: 0,
|
||||
bgiStyle: {
|
||||
background: "#bbe5d8",
|
||||
},
|
||||
iconStyle: {
|
||||
fontSize: "40rpx",
|
||||
fontWeight: "bold",
|
||||
color: "#54a966",
|
||||
},
|
||||
};
|
||||
},
|
||||
// 返回顶部
|
||||
onPageScroll(e) {
|
||||
this.scrollTop = e.scrollTop;
|
||||
},
|
||||
|
||||
// 下拉刷新
|
||||
onReachBottom() {
|
||||
this.status = 0;
|
||||
if (this.RecordScreen.page < this.totalPage) {
|
||||
this.RecordScreen.page = this.RecordScreen.page + 1;
|
||||
setTimeout(() => {
|
||||
this.$http
|
||||
.post(this.urlList.list, {
|
||||
userId: this.userInfo.id,
|
||||
})
|
||||
.then((res) => {
|
||||
this.totalPage = res.page.totalPage;
|
||||
this.totalCount = res.page.totalCount;
|
||||
for (let i in res.page.list) {
|
||||
this.MoneyRecord.push(res.page.list[i]);
|
||||
}
|
||||
});
|
||||
}, 1000);
|
||||
} else {
|
||||
this.status = 1;
|
||||
}
|
||||
},
|
||||
|
||||
//第一次加载
|
||||
onLoad(e) {
|
||||
// 隐藏原生的tabbar
|
||||
uni.hideTabBar();
|
||||
// #ifdef APP-PLUS
|
||||
this.platform = uni.getSystemInfoSync().platform;
|
||||
console.log("操纵系统", this.platform);
|
||||
// #endif
|
||||
},
|
||||
computed: {
|
||||
...mapState(["userInfo"]),
|
||||
},
|
||||
//页面显示
|
||||
onShow() {
|
||||
// 隐藏原生的tabbar
|
||||
uni.hideTabBar();
|
||||
this.getData();
|
||||
// this.getCourpe();
|
||||
},
|
||||
components: {
|
||||
musicPlay,
|
||||
},
|
||||
//方法
|
||||
methods: {
|
||||
// 获取
|
||||
getData() {
|
||||
var data = {
|
||||
userId: this.userInfo.id,
|
||||
};
|
||||
if (!this.iosHide) {
|
||||
this.tab_muJian = 1;
|
||||
}
|
||||
// 用户详情
|
||||
if (this.userInfo.id != undefined) {
|
||||
this.$http.post("book/user/info/" + this.userInfo.id).then((res) => {
|
||||
this.userMes = res.user;
|
||||
});
|
||||
}
|
||||
$http
|
||||
.request({
|
||||
url: this.urlList.list,
|
||||
method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
|
||||
data,
|
||||
header: {
|
||||
//默认 无 说明:请求头
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
})
|
||||
// 充值记录
|
||||
|
||||
.then((res) => {
|
||||
console.log("res at line 255:", res);
|
||||
this.MoneyRecord = res.transactionDetailsList;
|
||||
// this.totalPage = res.page.totalPage;
|
||||
// this.totalCount = res.page.totalCount;
|
||||
});
|
||||
},
|
||||
|
||||
// 点击tab
|
||||
tab_click(e) {
|
||||
this.tab_muJian = e.index;
|
||||
},
|
||||
|
||||
// 优惠券
|
||||
getCourpe() {
|
||||
this.$http
|
||||
.post(
|
||||
"/book/couponhistory/appGetUserCenterCoupon?userId=" +
|
||||
this.userInfo.id +
|
||||
"&useStatus=" +
|
||||
this.couponListTab
|
||||
)
|
||||
.then((res) => {
|
||||
// this.cardList = res.couponVos
|
||||
this.cardList = res.couponVos;
|
||||
});
|
||||
},
|
||||
// 切换优惠券
|
||||
couponTabCLi(e) {
|
||||
this.couponListTab = e;
|
||||
this.getCourpe();
|
||||
},
|
||||
|
||||
// 充值天医币
|
||||
buPoint() {
|
||||
uni.navigateTo({
|
||||
url: "../peanut/reCharge",
|
||||
});
|
||||
},
|
||||
|
||||
// 跳转
|
||||
onPageJump(url) {
|
||||
uni.navigateTo({
|
||||
url: url,
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
@import "@/style/mixin.scss";
|
||||
.commonPageBox{
|
||||
background-image: url("@/static/icon/mine_bg.png");
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
.ACTable {
|
||||
// padding: 20rpx 30rpx;
|
||||
|
||||
.AC_mes {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
|
||||
// margin-top: 50rpx;
|
||||
padding: 40rpx 20rpx;
|
||||
box-shadow: 0 0px 10px 1px #d3d1d133;
|
||||
// background-color: #fff;
|
||||
border-radius: 15rpx;
|
||||
margin-bottom: 40rpx;
|
||||
position: relative;
|
||||
.wallet_title {
|
||||
color: #7F2000;
|
||||
font-size: 40rpx;
|
||||
line-height: 70rpx;
|
||||
font-weight: 500;
|
||||
text-align: left;
|
||||
}
|
||||
.wallet_number {
|
||||
color: #7F2000;
|
||||
font-size: 46rpx;
|
||||
line-height: 50rpx;
|
||||
font-weight: bold;
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
|
||||
.AC_con {
|
||||
background-color: rgba(255, 255, 255, 0.85);
|
||||
overflow: hidden;
|
||||
// margin-top: 50rpx;
|
||||
// padding: 30rpx 30rpx;
|
||||
box-shadow: 0 0px 10px 1px #d3d1d133;
|
||||
|
||||
border-radius: 15rpx;
|
||||
margin-bottom: 40rpx;
|
||||
font-size: 30rpx;
|
||||
padding-bottom: 30rpx;
|
||||
|
||||
.AC_jilu {
|
||||
font-size: 42rpx;
|
||||
text-align: left;
|
||||
color: $themeColor;
|
||||
// background-image: linear-gradient(90deg, #3AB3AE 20%, #c3fade 100%);
|
||||
// margin-bottom: 30rpx;
|
||||
padding: 30rpx 20rpx 20rpx;
|
||||
}
|
||||
|
||||
.AC_List {
|
||||
overflow: hidden;
|
||||
.left {
|
||||
width: calc(100% - 120rpx) !important;
|
||||
font-weight: 700;
|
||||
float: left;
|
||||
color: #333;
|
||||
font-size: 32rpx;
|
||||
line-height: 60rpx;
|
||||
}
|
||||
.right {
|
||||
display: block;
|
||||
width: 100rpx !important;
|
||||
float: right;
|
||||
text-align: right;
|
||||
font-size: 32rpx;
|
||||
font-weight: 700;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
// border-bottom: 1px solid #eee;
|
||||
// padding: 40rpx 10rpx;
|
||||
|
||||
.AC_title {
|
||||
font-size: 32rpx;
|
||||
margin-bottom: 20rpx;
|
||||
|
||||
view {
|
||||
float: right;
|
||||
font-size: 34rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
.AC_mark {
|
||||
font-size: 28rpx;
|
||||
margin-top: 20rpx;
|
||||
margin-bottom: 15rpx;
|
||||
// white-space: nowrap;
|
||||
color: #888;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.AC_time {
|
||||
color: #bababa;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.couponList {
|
||||
view {
|
||||
display: inline-block;
|
||||
padding: 0 0 25rpx 0;
|
||||
margin: 40rpx 0 40rpx 0;
|
||||
width: 33%;
|
||||
text-align: center;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
|
||||
.couStyle {
|
||||
border-bottom: 5rpx solid #54a966;
|
||||
color: #54a966;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
.card {
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
margin-bottom: 30rpx;
|
||||
padding-left: 10rpx;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.card > view {
|
||||
background: #fff;
|
||||
border-radius: 5rpx;
|
||||
}
|
||||
|
||||
.card .dot-left,
|
||||
.card .dot-right {
|
||||
display: block;
|
||||
width: 12rpx;
|
||||
height: 12rpx;
|
||||
border-radius: 50%;
|
||||
background: #f5f5f5;
|
||||
position: absolute;
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
.card .dot-left {
|
||||
bottom: -6rpx;
|
||||
left: -6rpx;
|
||||
}
|
||||
|
||||
.card .dot-right {
|
||||
bottom: -6rpx;
|
||||
right: -6rpx;
|
||||
}
|
||||
|
||||
.card .page-group {
|
||||
position: absolute;
|
||||
top: 10rpx;
|
||||
left: -2rpx;
|
||||
width: 100%;
|
||||
max-width: 200rpx;
|
||||
|
||||
.fold-page {
|
||||
display: block;
|
||||
width: 10rpx;
|
||||
height: 8rpx;
|
||||
background: #54a966;
|
||||
transform: skewY(-40deg);
|
||||
position: absolute;
|
||||
top: -5rpx;
|
||||
left: -8rpx;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.page {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
display: block;
|
||||
padding: 5rpx 20rpx 3rpx 20rpx;
|
||||
height: 40rpx;
|
||||
line-height: 40rpx;
|
||||
background: linear-gradient(137deg, #54a966 0%, #0d5e1e 100%);
|
||||
border-radius: 0 20rpx 20rpx 0;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
font-size: 24rpx;
|
||||
overflow: hidden;
|
||||
left: -8rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.card .page-group.grey {
|
||||
.fold-page {
|
||||
background: #c6c6c6;
|
||||
}
|
||||
|
||||
.page {
|
||||
background: linear-gradient(137deg, #c6c6c6 0%, #999595 100%);
|
||||
}
|
||||
}
|
||||
|
||||
.card .content {
|
||||
width: 100%;
|
||||
height: 180rpx;
|
||||
border-bottom: 1rpx dotted #f5f5f5;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.card .content .coupon-detail {
|
||||
display: flex;
|
||||
padding: 0 15rpx 0 20rpx;
|
||||
}
|
||||
|
||||
.card .content .coupon-detail > view {
|
||||
height: 130rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.card .content .coupon-detail > view:first-child {
|
||||
color: #54a966;
|
||||
padding-top: 100rpx;
|
||||
width: 30%;
|
||||
}
|
||||
|
||||
.card .content .coupon-detail > view.grey {
|
||||
color: #c6c6c6;
|
||||
}
|
||||
|
||||
.card .content .coupon-detail > view:first-child > span:first-child {
|
||||
font-size: 30rpx;
|
||||
margin: 0 10rpx 0 0;
|
||||
}
|
||||
|
||||
.card .content .coupon-detail > view:first-child > span:last-child {
|
||||
font-size: 70rpx;
|
||||
}
|
||||
|
||||
.card .content .coupon-detail > view:last-child > view {
|
||||
color: #54a966;
|
||||
border: 1rpx solid #54a966;
|
||||
border-radius: 50rpx;
|
||||
font-size: 12px;
|
||||
line-height: 25px;
|
||||
width: 150rpx;
|
||||
height: 50rpx;
|
||||
margin: 100rpx 0 0 5rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.card .coupon-detail > view:nth-child(2) {
|
||||
flex-direction: column;
|
||||
padding-top: 60rpx;
|
||||
width: 40%;
|
||||
}
|
||||
|
||||
.card .coupon-detail > view:nth-child(2) > view {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.card .coupon-detail > view:nth-child(2) > view:first-child {
|
||||
color: #333;
|
||||
font-weight: bold;
|
||||
font-size: 25rpx;
|
||||
margin: 0 0 10rpx 0;
|
||||
}
|
||||
|
||||
.card .coupon-detail > view:nth-child(2) > view:last-child {
|
||||
font-size: 12px;
|
||||
color: #adadad;
|
||||
margin-top: 5rpx;
|
||||
}
|
||||
|
||||
.card .coupon-detail > view:nth-child(2) > view:last-child > view {
|
||||
transform: scale(0.8);
|
||||
margin-left: -14rpx;
|
||||
}
|
||||
|
||||
.card {
|
||||
.footer {
|
||||
color: #999;
|
||||
font-size: 12px;
|
||||
padding: 30rpx 15rpx 30rpx 30rpx;
|
||||
}
|
||||
|
||||
.ribbon {
|
||||
width: 160rpx;
|
||||
height: 40rpx;
|
||||
background: #54a966;
|
||||
position: absolute;
|
||||
right: -40rpx;
|
||||
top: 25rpx;
|
||||
transform: rotateZ(45deg);
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
font-size: 20rpx;
|
||||
line-height: 44rpx;
|
||||
}
|
||||
|
||||
.ribbon.grey {
|
||||
background: #c6c6c6;
|
||||
}
|
||||
}
|
||||
}
|
||||
.Hot {
|
||||
color: $themeColor !important;
|
||||
}
|
||||
.AC_chong {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
background-image: linear-gradient(90deg, #3AB3AE 0%, #73ee9c 100%);
|
||||
color: #fff;
|
||||
border-top-left-radius: 15rpx;
|
||||
border-top-right-radius: 15rpx;
|
||||
padding:20rpx 20rpx;
|
||||
font-size: 36rpx;
|
||||
font-weight: 800;
|
||||
text-align: right;
|
||||
}
|
||||
.rightArrow {
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
float: right;
|
||||
margin-left: 10rpx;
|
||||
// position: absolute;
|
||||
// right: 30rpx;
|
||||
// top: 20rpx;
|
||||
}
|
||||
</style>
|
||||
@@ -1,9 +1,9 @@
|
||||
<template>
|
||||
<view>
|
||||
<view class="commonPageBox">
|
||||
<!-- 公共组件-每个页面必须引入 -->
|
||||
<public-module></public-module>
|
||||
<z-nav-bar title="我的积分" bgColor="#3AB3AE" fontColor="#fff" > </z-nav-bar>
|
||||
<view class="ACTable" >
|
||||
<z-nav-bar title="我的积分" bgColor="" fontColor="#000000"> </z-nav-bar>
|
||||
<view class="ACTable">
|
||||
<!-- <u-tabs :list="tab_list" @click="tab_click" lineColor="#54a966 100% 100%"
|
||||
:activeStyle="{color: '#303133',fontWeight: 'bold',transform: 'scale(1.1)'}" ></u-tabs> -->
|
||||
|
||||
@@ -12,20 +12,22 @@
|
||||
|
||||
<view>
|
||||
<view class="AC_mes">
|
||||
<view class="wallet_title PM_font">积分</view>
|
||||
<view class="wallet_number">{{
|
||||
userMes.jf ? userMes.jf : 0
|
||||
}}</view>
|
||||
<view class="AC_mes_bg">
|
||||
<view class="wallet_title PM_font">全部积分</view>
|
||||
<view class="wallet_number">{{ userMes.jf ? userMes.jf : 0 }}</view>
|
||||
</view>
|
||||
|
||||
<!-- <text v-if="platform != 'ios'" class="AC_chong" @click="buPoint()"
|
||||
>充值</text
|
||||
> -->
|
||||
</view>
|
||||
|
||||
<!-- :style="`height:calc(100vh - ${(120 + statusBarHeight) * 2}rpx)`" -->
|
||||
|
||||
<view style="padding: 30rpx; padding-top: 0">
|
||||
<view class="AC_con">
|
||||
<view class="AC_jilu PM_font">积分记录</view>
|
||||
<common-list
|
||||
|
||||
:dataList="MoneyRecord"
|
||||
isCondition="true"
|
||||
isNoIcon="true"
|
||||
@@ -43,10 +45,9 @@
|
||||
>
|
||||
<text v-if="slotProps.row.changeAmount > 0">+</text>
|
||||
<text>{{ slotProps.row.changeAmount }}</text> </view
|
||||
><view
|
||||
class="AC_mark"
|
||||
v-if="slotProps.row.remark "
|
||||
>{{ slotProps.row.remark}}</view
|
||||
><view class="AC_mark" v-if="slotProps.row.remark">{{
|
||||
slotProps.row.remark
|
||||
}}</view
|
||||
><view class="AC_time">{{ slotProps.row.createTime }}</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -324,63 +325,80 @@ export default {
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
@import "@/style/mixin.scss";
|
||||
|
||||
.commonPageBox {
|
||||
background-color: #e5f4eb;
|
||||
// background-image: url("@/static/icon/mine_bg.png");
|
||||
// background-repeat: no-repeat;
|
||||
// background-size: 100% 100%;
|
||||
}
|
||||
.ACTable {
|
||||
// padding: 20rpx 30rpx;
|
||||
|
||||
.AC_mes {
|
||||
width: 100%;
|
||||
height: 400rpx;
|
||||
background-image: url("@/static/image/wallet.png");
|
||||
background-position: center center;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100% 100%;
|
||||
height: 300rpx;
|
||||
|
||||
// margin-top: 50rpx;
|
||||
padding: 160rpx 160rpx 100rpx 120rpx;
|
||||
padding: 40rpx 20rpx;
|
||||
box-shadow: 0 0px 10px 1px #d3d1d133;
|
||||
// background-color: #fff;
|
||||
border-radius: 15rpx;
|
||||
margin-bottom: 40rpx;
|
||||
margin-bottom: 10rpx;
|
||||
position: relative;
|
||||
.wallet_title {
|
||||
color: #fff;
|
||||
font-size: 62rpx;
|
||||
line-height: 80rpx;
|
||||
font-weight: 600;
|
||||
.AC_mes_bg {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
text-align: center;
|
||||
background-image: url("@/static/icon/cate_bg.png");
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
.wallet_title {
|
||||
color: $themeColor;
|
||||
font-size: 40rpx;
|
||||
line-height: 60rpx;
|
||||
font-weight: 500 !important;
|
||||
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
.wallet_number {
|
||||
color: #fff;
|
||||
font-size: 70rpx;
|
||||
line-height: 100rpx;
|
||||
font-weight: 500;
|
||||
text-align: center;
|
||||
color: $themeColor;
|
||||
font-size: 80rpx;
|
||||
line-height: 80rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
.AC_con {
|
||||
background-color: #fff;
|
||||
// background-color: #fff;
|
||||
overflow: hidden;
|
||||
// margin-top: 50rpx;
|
||||
// padding: 30rpx 30rpx;
|
||||
box-shadow: 0 0px 10px 1px #d3d1d133;
|
||||
|
||||
border-radius: 15rpx;
|
||||
margin-bottom: 40rpx;
|
||||
// margin-bottom: 40rpx;
|
||||
font-size: 30rpx;
|
||||
padding-bottom: 30rpx;
|
||||
|
||||
.AC_jilu {
|
||||
font-size: 42rpx;
|
||||
text-align: left;
|
||||
color: $themeColor;
|
||||
color:#7f2000 ;
|
||||
// background-image: linear-gradient(90deg, #3AB3AE 20%, #c3fade 100%);
|
||||
// margin-bottom: 30rpx;
|
||||
padding: 30rpx 20rpx 20rpx;
|
||||
padding: 10rpx 20rpx 40rpx;
|
||||
}
|
||||
/deep/.list_item {
|
||||
background-color: rgba(255, 255, 255, 0.85) !important;
|
||||
box-shadow: 0 0px 10px 1px #d3d1d133 !important;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
|
||||
.AC_List {
|
||||
overflow: hidden;
|
||||
|
||||
.left {
|
||||
width: calc(100% - 120rpx) !important;
|
||||
font-weight: 700;
|
||||
@@ -391,10 +409,10 @@ export default {
|
||||
}
|
||||
.right {
|
||||
display: block;
|
||||
width: 100rpx !important;
|
||||
width: 200rpx !important;
|
||||
float: right;
|
||||
text-align: right;
|
||||
font-size: 32rpx;
|
||||
font-size: 42rpx;
|
||||
font-weight: 700;
|
||||
color: #333;
|
||||
}
|
||||
@@ -415,15 +433,15 @@ export default {
|
||||
|
||||
.AC_mark {
|
||||
font-size: 28rpx;
|
||||
margin-top: 20rpx;
|
||||
margin-top: 10rpx;
|
||||
margin-bottom: 15rpx;
|
||||
// white-space: nowrap;
|
||||
color: #888;
|
||||
color: #343434;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.AC_time {
|
||||
color: #bababa;
|
||||
color: #909090;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
}
|
||||
@@ -634,14 +652,14 @@ export default {
|
||||
color: $themeColor !important;
|
||||
}
|
||||
.AC_chong {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
background-image: linear-gradient(90deg, #3AB3AE 0%, #73ee9c 100%);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
background-image: linear-gradient(90deg, #3ab3ae 0%, #73ee9c 100%);
|
||||
color: #fff;
|
||||
border-top-left-radius: 15rpx;
|
||||
border-top-right-radius: 15rpx;
|
||||
padding:20rpx 20rpx;
|
||||
padding: 20rpx 20rpx;
|
||||
font-size: 36rpx;
|
||||
font-weight: 800;
|
||||
text-align: right;
|
||||
|
||||
658
pages/mine/wallet/jf/old.vue
Normal file
658
pages/mine/wallet/jf/old.vue
Normal file
@@ -0,0 +1,658 @@
|
||||
<template>
|
||||
<view>
|
||||
<!-- 公共组件-每个页面必须引入 -->
|
||||
<public-module></public-module>
|
||||
<z-nav-bar title="我的积分" bgColor="#3AB3AE" fontColor="#fff" > </z-nav-bar>
|
||||
<view class="ACTable" >
|
||||
<!-- <u-tabs :list="tab_list" @click="tab_click" lineColor="#54a966 100% 100%"
|
||||
:activeStyle="{color: '#303133',fontWeight: 'bold',transform: 'scale(1.1)'}" ></u-tabs> -->
|
||||
|
||||
<!-- <u-tabs :list="tab_list_ios" @click="tab_click" lineColor="#54a966 100% 100%"
|
||||
:activeStyle="{color: '#303133',fontWeight: 'bold',transform: 'scale(1.1)'}" v-if="!iosHide"></u-tabs> -->
|
||||
|
||||
<view>
|
||||
<view class="AC_mes">
|
||||
<view class="wallet_title PM_font">积分</view>
|
||||
<view class="wallet_number">{{
|
||||
userMes.jf ? userMes.jf : 0
|
||||
}}</view>
|
||||
|
||||
<!-- <text v-if="platform != 'ios'" class="AC_chong" @click="buPoint()"
|
||||
>充值</text
|
||||
> -->
|
||||
</view>
|
||||
|
||||
<view style="padding: 30rpx; padding-top: 0">
|
||||
<view class="AC_con">
|
||||
<view class="AC_jilu PM_font">积分记录</view>
|
||||
<common-list
|
||||
:dataList="MoneyRecord"
|
||||
isCondition="true"
|
||||
isNoIcon="true"
|
||||
label="orderType"
|
||||
>
|
||||
<template slot="labelSlot" slot-scope="slotProps">
|
||||
<view class="label_content AC_List">
|
||||
<view class="left">
|
||||
<view class="title">{{ slotProps.row.orderType }}</view>
|
||||
</view>
|
||||
<view
|
||||
:class="`right ${
|
||||
slotProps.row.changeAmount > 0 ? 'Hot' : ''
|
||||
}`"
|
||||
>
|
||||
<text v-if="slotProps.row.changeAmount > 0">+</text>
|
||||
<text>{{ slotProps.row.changeAmount }}</text> </view
|
||||
><view
|
||||
class="AC_mark"
|
||||
v-if="slotProps.row.remark "
|
||||
>{{ slotProps.row.remark}}</view
|
||||
><view class="AC_time">{{ slotProps.row.createTime }}</view>
|
||||
</view>
|
||||
</template>
|
||||
</common-list>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view v-if="tab_muJian==1">
|
||||
<view class="couponList">
|
||||
<view v-for="(item,index) in couponTabs" @click="couponTabCLi(index)"
|
||||
:class="couponListTab==index?'couStyle':''">{{item.name}}</view>
|
||||
</view>
|
||||
<view>
|
||||
<view class="card" v-for="item in cardList">
|
||||
<view>
|
||||
<view class="content">
|
||||
<view :class="couponListTab==0?'page-group':'page-group grey'">
|
||||
<i class="fold-page"></i>
|
||||
<span class="page">优惠券</span>
|
||||
</view>
|
||||
<i class="dot-left"></i>
|
||||
<i class="dot-right"></i>
|
||||
<view class="coupon-detail">
|
||||
<view :class="couponListTab==0?'':'grey'">
|
||||
<span>¥</span>
|
||||
<span>{{item.coupons.amount}}</span>
|
||||
</view>
|
||||
<view>
|
||||
<view>{{item.coupons.couponName}}</view>
|
||||
<view>满{{item.coupons.useLevel}}元可用</view>
|
||||
<view>
|
||||
<span v-if="item.coupons.couponProType == 0">使用类型:商品类</span>
|
||||
<span v-if="item.coupons.couponProType == 1">使用类型:电子书</span>
|
||||
</view>
|
||||
</view>
|
||||
<view>
|
||||
<view v-if="couponListTab==0" @click="onPageJump('../bookShop/bookShopIndex')">
|
||||
立即使用</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="footer">
|
||||
<view style="margin: 0 0 8rpx 0;">使用时间:{{item.coupons.takeEffectDate}} -
|
||||
{{item.coupons.expirationDate}}
|
||||
</view>
|
||||
<view>{{item.coupons.note}}</view>
|
||||
<view class="arrow"></view>
|
||||
<view class="arrow-up"></view>
|
||||
</view>
|
||||
<view class="ribbon" v-if="couponListTab==0">未使用</view>
|
||||
<view class="ribbon grey" v-if="couponListTab==1">已使用</view>
|
||||
<view class="ribbon grey" v-if="couponListTab==2">已过期</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="cardList.length==0" style="text-align: center;font-size: 30rpx;color: #666;">暂无代金券
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<!-- <view>
|
||||
<view v-if="status == 0" style="text-align: center">
|
||||
<u-loading-icon style="display: inline-block"></u-loading-icon>
|
||||
<font
|
||||
style="
|
||||
vertical-align: super;
|
||||
margin-left: 10px;
|
||||
font-size: 26rpx;
|
||||
color: #909399;
|
||||
"
|
||||
>努力加载中</font
|
||||
>
|
||||
</view>
|
||||
<view v-if="status == 1">
|
||||
<u-divider text="全部加载完成"></u-divider>
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<view style="padding-bottom: 20rpx">
|
||||
<u-back-top
|
||||
:scroll-top="scrollTop"
|
||||
bottom="60"
|
||||
:customStyle="bgiStyle"
|
||||
:iconStyle="iconStyle"
|
||||
>
|
||||
</u-back-top>
|
||||
</view>
|
||||
</view>
|
||||
<music-play :playData="playData"></music-play>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import musicPlay from "@/components/music.vue";
|
||||
import $http from "@/config/requestConfig.js";
|
||||
import { mapState } from "vuex";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
playData: {},
|
||||
platform: null,
|
||||
urlList: {
|
||||
list: "common/jfTransactionDetails/getJfTransactionDetailsList",
|
||||
},
|
||||
tab_list: [
|
||||
{
|
||||
name: "天医币",
|
||||
},
|
||||
],
|
||||
tab_list_ios: [
|
||||
{
|
||||
name: "优惠券",
|
||||
},
|
||||
],
|
||||
couponTabs: [
|
||||
{
|
||||
name: "未使用",
|
||||
},
|
||||
{
|
||||
name: "已使用",
|
||||
},
|
||||
{
|
||||
name: "已过期",
|
||||
},
|
||||
],
|
||||
cardList: [],
|
||||
couponListTab: 0,
|
||||
MoneyRecord: [],
|
||||
userMes: {},
|
||||
RecordScreen: {
|
||||
userid: "",
|
||||
page: 1,
|
||||
limit: 5,
|
||||
},
|
||||
scrollTop: 0,
|
||||
status: 3,
|
||||
totalPage: 0,
|
||||
totalCount: 0,
|
||||
tab_muJian: 0,
|
||||
bgiStyle: {
|
||||
background: "#bbe5d8",
|
||||
},
|
||||
iconStyle: {
|
||||
fontSize: "40rpx",
|
||||
fontWeight: "bold",
|
||||
color: "#54a966",
|
||||
},
|
||||
};
|
||||
},
|
||||
// 返回顶部
|
||||
onPageScroll(e) {
|
||||
this.scrollTop = e.scrollTop;
|
||||
},
|
||||
|
||||
// 下拉刷新
|
||||
onReachBottom() {
|
||||
this.status = 0;
|
||||
if (this.RecordScreen.page < this.totalPage) {
|
||||
this.RecordScreen.page = this.RecordScreen.page + 1;
|
||||
setTimeout(() => {
|
||||
this.$http
|
||||
.post(this.urlList.list, {
|
||||
userId: this.userInfo.id,
|
||||
})
|
||||
.then((res) => {
|
||||
this.totalPage = res.page.totalPage;
|
||||
this.totalCount = res.page.totalCount;
|
||||
for (let i in res.page.list) {
|
||||
this.MoneyRecord.push(res.page.list[i]);
|
||||
}
|
||||
});
|
||||
}, 1000);
|
||||
} else {
|
||||
this.status = 1;
|
||||
}
|
||||
},
|
||||
|
||||
//第一次加载
|
||||
onLoad(e) {
|
||||
// 隐藏原生的tabbar
|
||||
uni.hideTabBar();
|
||||
// #ifdef APP-PLUS
|
||||
this.platform = uni.getSystemInfoSync().platform;
|
||||
console.log("操纵系统", this.platform);
|
||||
// #endif
|
||||
},
|
||||
computed: {
|
||||
...mapState(["userInfo"]),
|
||||
},
|
||||
//页面显示
|
||||
onShow() {
|
||||
// 隐藏原生的tabbar
|
||||
uni.hideTabBar();
|
||||
this.getData();
|
||||
// this.getCourpe();
|
||||
},
|
||||
components: {
|
||||
musicPlay,
|
||||
},
|
||||
//方法
|
||||
methods: {
|
||||
// 获取
|
||||
getData() {
|
||||
var data = {
|
||||
userId: this.userInfo.id,
|
||||
};
|
||||
if (!this.iosHide) {
|
||||
this.tab_muJian = 1;
|
||||
}
|
||||
// 用户详情
|
||||
if (this.userInfo.id != undefined) {
|
||||
this.$http.post("book/user/info/" + this.userInfo.id).then((res) => {
|
||||
this.userMes = res.user;
|
||||
});
|
||||
}
|
||||
$http
|
||||
.request({
|
||||
url: this.urlList.list,
|
||||
method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
|
||||
data,
|
||||
header: {
|
||||
//默认 无 说明:请求头
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
})
|
||||
// 充值记录
|
||||
|
||||
.then((res) => {
|
||||
console.log("res at line 255:", res);
|
||||
this.MoneyRecord = res.transactionDetailsList;
|
||||
// this.totalPage = res.page.totalPage;
|
||||
// this.totalCount = res.page.totalCount;
|
||||
});
|
||||
},
|
||||
|
||||
// 点击tab
|
||||
tab_click(e) {
|
||||
this.tab_muJian = e.index;
|
||||
},
|
||||
|
||||
// 优惠券
|
||||
getCourpe() {
|
||||
this.$http
|
||||
.post(
|
||||
"/book/couponhistory/appGetUserCenterCoupon?userId=" +
|
||||
this.userInfo.id +
|
||||
"&useStatus=" +
|
||||
this.couponListTab
|
||||
)
|
||||
.then((res) => {
|
||||
// this.cardList = res.couponVos
|
||||
this.cardList = res.couponVos;
|
||||
});
|
||||
},
|
||||
// 切换优惠券
|
||||
couponTabCLi(e) {
|
||||
this.couponListTab = e;
|
||||
this.getCourpe();
|
||||
},
|
||||
|
||||
// 充值天医币
|
||||
buPoint() {
|
||||
uni.navigateTo({
|
||||
url: "../peanut/reCharge",
|
||||
});
|
||||
},
|
||||
|
||||
// 跳转
|
||||
onPageJump(url) {
|
||||
uni.navigateTo({
|
||||
url: url,
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
@import "@/style/mixin.scss";
|
||||
|
||||
.ACTable {
|
||||
// padding: 20rpx 30rpx;
|
||||
|
||||
.AC_mes {
|
||||
width: 100%;
|
||||
height: 400rpx;
|
||||
background-image: url("@/static/image/wallet.png");
|
||||
background-position: center center;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100% 100%;
|
||||
// margin-top: 50rpx;
|
||||
padding: 160rpx 160rpx 100rpx 120rpx;
|
||||
box-shadow: 0 0px 10px 1px #d3d1d133;
|
||||
// background-color: #fff;
|
||||
border-radius: 15rpx;
|
||||
margin-bottom: 40rpx;
|
||||
position: relative;
|
||||
.wallet_title {
|
||||
color: #fff;
|
||||
font-size: 62rpx;
|
||||
line-height: 80rpx;
|
||||
font-weight: 600;
|
||||
text-align: center;
|
||||
}
|
||||
.wallet_number {
|
||||
color: #fff;
|
||||
font-size: 70rpx;
|
||||
line-height: 100rpx;
|
||||
font-weight: 500;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
.AC_con {
|
||||
background-color: #fff;
|
||||
overflow: hidden;
|
||||
// margin-top: 50rpx;
|
||||
// padding: 30rpx 30rpx;
|
||||
box-shadow: 0 0px 10px 1px #d3d1d133;
|
||||
|
||||
border-radius: 15rpx;
|
||||
margin-bottom: 40rpx;
|
||||
font-size: 30rpx;
|
||||
padding-bottom: 30rpx;
|
||||
|
||||
.AC_jilu {
|
||||
font-size: 42rpx;
|
||||
text-align: left;
|
||||
color: $themeColor;
|
||||
// background-image: linear-gradient(90deg, #3AB3AE 20%, #c3fade 100%);
|
||||
// margin-bottom: 30rpx;
|
||||
padding: 30rpx 20rpx 20rpx;
|
||||
}
|
||||
|
||||
.AC_List {
|
||||
overflow: hidden;
|
||||
.left {
|
||||
width: calc(100% - 120rpx) !important;
|
||||
font-weight: 700;
|
||||
float: left;
|
||||
color: #333;
|
||||
font-size: 32rpx;
|
||||
line-height: 60rpx;
|
||||
}
|
||||
.right {
|
||||
display: block;
|
||||
width: 100rpx !important;
|
||||
float: right;
|
||||
text-align: right;
|
||||
font-size: 32rpx;
|
||||
font-weight: 700;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
// border-bottom: 1px solid #eee;
|
||||
// padding: 40rpx 10rpx;
|
||||
|
||||
.AC_title {
|
||||
font-size: 32rpx;
|
||||
margin-bottom: 20rpx;
|
||||
|
||||
view {
|
||||
float: right;
|
||||
font-size: 34rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
.AC_mark {
|
||||
font-size: 28rpx;
|
||||
margin-top: 20rpx;
|
||||
margin-bottom: 15rpx;
|
||||
// white-space: nowrap;
|
||||
color: #888;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.AC_time {
|
||||
color: #bababa;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.couponList {
|
||||
view {
|
||||
display: inline-block;
|
||||
padding: 0 0 25rpx 0;
|
||||
margin: 40rpx 0 40rpx 0;
|
||||
width: 33%;
|
||||
text-align: center;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
|
||||
.couStyle {
|
||||
border-bottom: 5rpx solid #54a966;
|
||||
color: #54a966;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
.card {
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
margin-bottom: 30rpx;
|
||||
padding-left: 10rpx;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.card > view {
|
||||
background: #fff;
|
||||
border-radius: 5rpx;
|
||||
}
|
||||
|
||||
.card .dot-left,
|
||||
.card .dot-right {
|
||||
display: block;
|
||||
width: 12rpx;
|
||||
height: 12rpx;
|
||||
border-radius: 50%;
|
||||
background: #f5f5f5;
|
||||
position: absolute;
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
.card .dot-left {
|
||||
bottom: -6rpx;
|
||||
left: -6rpx;
|
||||
}
|
||||
|
||||
.card .dot-right {
|
||||
bottom: -6rpx;
|
||||
right: -6rpx;
|
||||
}
|
||||
|
||||
.card .page-group {
|
||||
position: absolute;
|
||||
top: 10rpx;
|
||||
left: -2rpx;
|
||||
width: 100%;
|
||||
max-width: 200rpx;
|
||||
|
||||
.fold-page {
|
||||
display: block;
|
||||
width: 10rpx;
|
||||
height: 8rpx;
|
||||
background: #54a966;
|
||||
transform: skewY(-40deg);
|
||||
position: absolute;
|
||||
top: -5rpx;
|
||||
left: -8rpx;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.page {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
display: block;
|
||||
padding: 5rpx 20rpx 3rpx 20rpx;
|
||||
height: 40rpx;
|
||||
line-height: 40rpx;
|
||||
background: linear-gradient(137deg, #54a966 0%, #0d5e1e 100%);
|
||||
border-radius: 0 20rpx 20rpx 0;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
font-size: 24rpx;
|
||||
overflow: hidden;
|
||||
left: -8rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.card .page-group.grey {
|
||||
.fold-page {
|
||||
background: #c6c6c6;
|
||||
}
|
||||
|
||||
.page {
|
||||
background: linear-gradient(137deg, #c6c6c6 0%, #999595 100%);
|
||||
}
|
||||
}
|
||||
|
||||
.card .content {
|
||||
width: 100%;
|
||||
height: 180rpx;
|
||||
border-bottom: 1rpx dotted #f5f5f5;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.card .content .coupon-detail {
|
||||
display: flex;
|
||||
padding: 0 15rpx 0 20rpx;
|
||||
}
|
||||
|
||||
.card .content .coupon-detail > view {
|
||||
height: 130rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.card .content .coupon-detail > view:first-child {
|
||||
color: #54a966;
|
||||
padding-top: 100rpx;
|
||||
width: 30%;
|
||||
}
|
||||
|
||||
.card .content .coupon-detail > view.grey {
|
||||
color: #c6c6c6;
|
||||
}
|
||||
|
||||
.card .content .coupon-detail > view:first-child > span:first-child {
|
||||
font-size: 30rpx;
|
||||
margin: 0 10rpx 0 0;
|
||||
}
|
||||
|
||||
.card .content .coupon-detail > view:first-child > span:last-child {
|
||||
font-size: 70rpx;
|
||||
}
|
||||
|
||||
.card .content .coupon-detail > view:last-child > view {
|
||||
color: #54a966;
|
||||
border: 1rpx solid #54a966;
|
||||
border-radius: 50rpx;
|
||||
font-size: 12px;
|
||||
line-height: 25px;
|
||||
width: 150rpx;
|
||||
height: 50rpx;
|
||||
margin: 100rpx 0 0 5rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.card .coupon-detail > view:nth-child(2) {
|
||||
flex-direction: column;
|
||||
padding-top: 60rpx;
|
||||
width: 40%;
|
||||
}
|
||||
|
||||
.card .coupon-detail > view:nth-child(2) > view {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.card .coupon-detail > view:nth-child(2) > view:first-child {
|
||||
color: #333;
|
||||
font-weight: bold;
|
||||
font-size: 25rpx;
|
||||
margin: 0 0 10rpx 0;
|
||||
}
|
||||
|
||||
.card .coupon-detail > view:nth-child(2) > view:last-child {
|
||||
font-size: 12px;
|
||||
color: #adadad;
|
||||
margin-top: 5rpx;
|
||||
}
|
||||
|
||||
.card .coupon-detail > view:nth-child(2) > view:last-child > view {
|
||||
transform: scale(0.8);
|
||||
margin-left: -14rpx;
|
||||
}
|
||||
|
||||
.card {
|
||||
.footer {
|
||||
color: #999;
|
||||
font-size: 12px;
|
||||
padding: 30rpx 15rpx 30rpx 30rpx;
|
||||
}
|
||||
|
||||
.ribbon {
|
||||
width: 160rpx;
|
||||
height: 40rpx;
|
||||
background: #54a966;
|
||||
position: absolute;
|
||||
right: -40rpx;
|
||||
top: 25rpx;
|
||||
transform: rotateZ(45deg);
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
font-size: 20rpx;
|
||||
line-height: 44rpx;
|
||||
}
|
||||
|
||||
.ribbon.grey {
|
||||
background: #c6c6c6;
|
||||
}
|
||||
}
|
||||
}
|
||||
.Hot {
|
||||
color: $themeColor !important;
|
||||
}
|
||||
.AC_chong {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
background-image: linear-gradient(90deg, #3AB3AE 0%, #73ee9c 100%);
|
||||
color: #fff;
|
||||
border-top-left-radius: 15rpx;
|
||||
border-top-right-radius: 15rpx;
|
||||
padding:20rpx 20rpx;
|
||||
font-size: 36rpx;
|
||||
font-weight: 800;
|
||||
text-align: right;
|
||||
}
|
||||
.rightArrow {
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
float: right;
|
||||
margin-left: 10rpx;
|
||||
// position: absolute;
|
||||
// right: 30rpx;
|
||||
// top: 20rpx;
|
||||
}
|
||||
</style>
|
||||
@@ -474,6 +474,7 @@
|
||||
orderStatus: 0, //订单状态
|
||||
orderType: "point", //订单类型
|
||||
appName: "zmzm",
|
||||
come: "1",
|
||||
productId: that.stepsCj.priceTypeId, // 充值的类型id
|
||||
};
|
||||
|
||||
@@ -734,7 +735,7 @@
|
||||
}
|
||||
|
||||
.pr_lj {
|
||||
background-image: linear-gradient(90deg, #3AB3AE 0%, #d8f8e4 100%);
|
||||
background-image: linear-gradient(90deg, #3AB3AE 0%, $themeColor 100%);
|
||||
color: #fff;
|
||||
position: absolute;
|
||||
top: -30rpx;
|
||||
@@ -755,7 +756,7 @@
|
||||
|
||||
box-shadow: 0px 0px 3px 0px $themeColor !important;
|
||||
color: #259f9a;
|
||||
background: #edfcf7 !important;
|
||||
background: #B7E0E2 !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -812,7 +813,7 @@
|
||||
bottom: 30rpx;
|
||||
|
||||
view {
|
||||
background-image: linear-gradient(90deg, #3AB3AE 0%, #d8f8e4 100%);
|
||||
background-image: linear-gradient(90deg, #3AB3AE 0%, $themeColor 100%);
|
||||
color: #fff;
|
||||
width: 90%;
|
||||
margin: 0 auto;
|
||||
|
||||
Reference in New Issue
Block a user