|
@@ -7,19 +7,19 @@
|
|
|
<image src="../../static/img/vipheader.png" mode="" style="width: 80rpx;height: 80rpx;"></image>
|
|
|
<view class="headerRight">
|
|
|
<view class="nameBox">
|
|
|
- <view class="name">姓名</view>
|
|
|
+ <view class="name">{{vipData.name}}</view>
|
|
|
<image src="../../static/img/icon_vip.png" mode=""
|
|
|
style="width: 112rpx;height: 34rpx;margin-left: 10rpx;"></image>
|
|
|
|
|
|
</view>
|
|
|
- <view class="phone">{{vipData.cardCode}}</view>
|
|
|
+ <view class="phone">{{userInfo.mobilePhone}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
<view class="kahaoBox">
|
|
|
<image src="../../static/img/icon_kahao.png" mode=""
|
|
|
style="width: 28rpx;height: 28rpx;margin-right: 10rpx;"></image>
|
|
|
- <view class="kahao">卡号 134243425</view>
|
|
|
+ <view class="kahao">卡号 {{vipData.cardCode}}</view>
|
|
|
|
|
|
</view>
|
|
|
</view>
|
|
@@ -33,18 +33,19 @@
|
|
|
|
|
|
<!-- 计次 -->
|
|
|
<view class="mainBox" v-if="tabIndex==1">
|
|
|
- <view class="btnBox" @click="btnClick">
|
|
|
- <image v-if="jiciState" src="../../static/img/icon_selectY.png" mode=""
|
|
|
- style="width: 36rpx;height: 36rpx;"></image>
|
|
|
+ <view class="btnBox" @click="dis=!dis">
|
|
|
+ <image v-if="dis" src="../../static/img/icon_selectY.png" mode="" style="width: 36rpx;height: 36rpx;">
|
|
|
+ </image>
|
|
|
<image v-else src="../../static/img/icon_selectN.png" mode="" style="width: 36rpx;height: 36rpx;">
|
|
|
</image>
|
|
|
<view style="margin-left: 10rpx;color: #3C3C3C;font-size: 24rpx;">不展示剩余为0项</view>
|
|
|
</view>
|
|
|
|
|
|
<view class="itemBox" v-for="(item,index) in vipData.cardTimeList">
|
|
|
+ <view v-if="AmountQtyJs(item.list)">
|
|
|
<view class="itemTop">
|
|
|
<view class="itemName">{{item.PackName}}</view>
|
|
|
- <view class="tiaokuan">使用条款</view>
|
|
|
+ <view class="tiaokuan" @click="useCl(item.useComment)">使用条款</view>
|
|
|
</view>
|
|
|
<view class="itemBottom" :class="{active:item.open}">
|
|
|
<view class="shopName">{{item.shopName}}</view>
|
|
@@ -54,46 +55,89 @@
|
|
|
mode="" style="width: 34rpx;height: 22rpx;"></image>
|
|
|
</view>
|
|
|
|
|
|
- <view class="itemBg" v-if="item.open" v-for="(v,index2) in item.list" :key="index2">
|
|
|
- <view class="nameTop" v-if="v.FlowType==2"><span class="type">项目</span> {{v.FlowName}}</view>
|
|
|
- <view class="nameTop" v-if="v.FlowType==1"><span class="type">商品</span> {{v.FlowName}}</view>
|
|
|
+ <view v-if="item.open">
|
|
|
+ <!-- 不展示剩余为0项 -->
|
|
|
+ <view class="itemBg" v-if="dis&&v.AmountQty!=0" v-for="(v,index2) in item.list" :key="index2">
|
|
|
|
|
|
- <view class="timeBottom">
|
|
|
- <view class="time" v-if="v.ExpireTime">有效期:{{v.ExpireTime}}</view>
|
|
|
- <view class="time" v-else></view>
|
|
|
- <view>剩余/总:<span
|
|
|
- style="color: #FF3B30;font-weight: bold;">{{v.TotalQty}}</span>/{{v.AmountQty}}</view>
|
|
|
- </view>
|
|
|
+ <view class="nameTop" v-if="v.FlowType==2"><span class="type">项目</span> {{v.FlowName}}</view>
|
|
|
+ <view class="nameTop" v-if="v.FlowType==1"><span class="type">商品</span> {{v.FlowName}}</view>
|
|
|
+
|
|
|
+ <view class="timeBottom">
|
|
|
+ <view class="time" v-if="v.ExpireTime">有效期:{{v.ExpireTime.slice(0,10)}}</view>
|
|
|
+ <view class="time" v-else>有效期:永久</view>
|
|
|
+ <view>剩余/总:<span
|
|
|
+ style="color: #FF3B30;font-weight: bold;">{{v.AmountQty}}</span>/{{v.TotalQty}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <!-- 展示所有 -->
|
|
|
+ <view class="itemBg" v-if="!dis" v-for="(v,index2) in item.list" :key="index2">
|
|
|
+
|
|
|
+ <view class="nameTop" v-if="v.FlowType==2"><span class="type">项目</span> {{v.FlowName}}</view>
|
|
|
+ <view class="nameTop" v-if="v.FlowType==1"><span class="type">商品</span> {{v.FlowName}}</view>
|
|
|
+
|
|
|
+ <view class="timeBottom">
|
|
|
+ <view class="time" v-if="v.ExpireTime">有效期:{{v.ExpireTime.slice(0,10)}}</view>
|
|
|
+ <view class="time" v-else>有效期:永久</view>
|
|
|
+ <view>剩余/总:<span
|
|
|
+ style="color: #FF3B30;font-weight: bold;">{{v.AmountQty}}</span>/{{v.TotalQty}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+
|
|
|
</view>
|
|
|
|
|
|
+ </view>
|
|
|
+ <!-- 使用条款-->
|
|
|
+
|
|
|
+ <view class="shiyongBox" v-if="shiyongShow" @click="shiyongShow=false">
|
|
|
+ <view class="shiyongCont" @click.stop="">
|
|
|
+ <view class="shiyongContTop">
|
|
|
+ <view class="shiyongContTopTitle">使用条款</view>
|
|
|
+ <image src="../../static/img/icon_close.png" alt="" class="shiyongContTopX"
|
|
|
+ @click="shiyongShow=false"></image>
|
|
|
+ </view>
|
|
|
+ <view class="shiyonghtml">
|
|
|
+ <view v-html="useComment" v-if="useComment"></view>
|
|
|
+ <view v-else class="shiyongno">使用条款暂无内容</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
-
|
|
|
- <!-- 无数据空白页 -->
|
|
|
+
|
|
|
+ <!-- 无数据空白页 -->
|
|
|
<nodata v-if="vipData.cardTimeList.length==0"></nodata>
|
|
|
</view>
|
|
|
|
|
|
<!-- 储值 -->
|
|
|
<view class="mainBox" v-if="tabIndex==2">
|
|
|
- <view class="btnBox" @click="btnClick2">
|
|
|
- <image v-if="chuzhiState" src="../../static/img/icon_selectY.png" mode=""
|
|
|
- style="width: 36rpx;height: 36rpx;"></image>
|
|
|
+ <view class="btnBox" @click="disCz=!disCz">
|
|
|
+ <image v-if="disCz" src="../../static/img/icon_selectY.png" mode="" style="width: 36rpx;height: 36rpx;">
|
|
|
+ </image>
|
|
|
<image v-else src="../../static/img/icon_selectN.png" mode="" style="width: 36rpx;height: 36rpx;">
|
|
|
</image>
|
|
|
<view style="margin-left: 10rpx;color: #3C3C3C;font-size: 24rpx;">不展示剩余为0项</view>
|
|
|
</view>
|
|
|
|
|
|
- <view class="itemBox" v-for="(item,index) in vipData.carMoneyList">
|
|
|
+ <view class="itemBox" v-for="(item,index) in vipData.carMoneyList">
|
|
|
+ <!-- 不展示剩余为0项 -->
|
|
|
+ <view v-if="disCz&&item.Money!=0">
|
|
|
<view class="itemTop">
|
|
|
<view class="itemName">{{item.PacKName}}</view>
|
|
|
- <view class="tiaokuan">使用条款</view>
|
|
|
+ <view class="tiaokuan" @click="useCl(item.useComment)">使用条款</view>
|
|
|
</view>
|
|
|
<view class="itemBottom" :class="{active:item.open}">
|
|
|
<view class="shopName">{{item.ShopName}}</view>
|
|
|
-
|
|
|
- <view style="font-size: 24rpx; color: #FF3B30;">¥<span class="money">{{item.Money}}</span> <span style="color: #999999;font-size: 24rpx;">(充{{item.ChargeMoney}}送{{item.GiftMoney}})</span></view>
|
|
|
+
|
|
|
+ <view style="font-size: 24rpx; color: #FF3B30;">¥<span class="money">{{item.Money}}</span> <span
|
|
|
+ style="color: #999999;font-size: 24rpx;">(充{{item.ChargeMoney}}送{{item.GiftMoney}})</span>
|
|
|
+ </view>
|
|
|
<image @click="changeState(item)" v-if="item.open==false" src="../../static/img/icon_arrow_down.png"
|
|
|
mode="" style="width: 34rpx;height: 22rpx;"></image>
|
|
|
<image @click="changeState(item)" v-if="item.open==true" src="../../static/img/icon_arrow_up.png"
|
|
@@ -101,48 +145,118 @@
|
|
|
</view>
|
|
|
|
|
|
<view class="itemBg" v-if="item.open" v-for="(v,index2) in item.payList" :key="index2">
|
|
|
-
|
|
|
+
|
|
|
<view class="timeBottom">
|
|
|
- <view class="time" v-if="v.PayTime">{{v.PayTime}}</view>
|
|
|
- <view class="time" v-else></view>
|
|
|
-
|
|
|
- <view v-if="index2<v.payList.length-1">-{{v.PayMoney}}</view>
|
|
|
- <view class="count" v-else>+{{v.PayMoney}}</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
+ <view class="time" v-if="v.CreateTime">{{v.CreateTime}}</view>
|
|
|
|
|
|
|
|
|
+ <view v-if="v.Type==2">-{{v.Money}}</view>
|
|
|
+ <view class="count" v-else>+{{v.Money}}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <!-- 展示所有 -->
|
|
|
+ <view v-if="!disCz">
|
|
|
+ <view class="itemTop">
|
|
|
+ <view class="itemName">{{item.PacKName}}</view>
|
|
|
+ <view class="tiaokuan" @click="useCl(item.useComment)">使用条款</view>
|
|
|
+ </view>
|
|
|
+ <view class="itemBottom" :class="{active:item.open}">
|
|
|
+ <view class="shopName">{{item.ShopName}}</view>
|
|
|
+
|
|
|
+ <view style="font-size: 24rpx; color: #FF3B30;">¥<span class="money">{{item.Money}}</span> <span
|
|
|
+ style="color: #999999;font-size: 24rpx;">(充{{item.ChargeMoney}}送{{item.GiftMoney}})</span>
|
|
|
+ </view>
|
|
|
+ <image @click="changeState(item)" v-if="item.open==false" src="../../static/img/icon_arrow_down.png"
|
|
|
+ mode="" style="width: 34rpx;height: 22rpx;"></image>
|
|
|
+ <image @click="changeState(item)" v-if="item.open==true" src="../../static/img/icon_arrow_up.png"
|
|
|
+ mode="" style="width: 34rpx;height: 22rpx;"></image>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="itemBg" v-if="item.open" v-for="(v,index2) in item.payList" :key="index2">
|
|
|
+
|
|
|
+ <view class="timeBottom">
|
|
|
+ <view class="time" v-if="v.CreateTime">{{v.CreateTime}}</view>
|
|
|
+
|
|
|
+
|
|
|
+ <view v-if="v.Type==2">-{{v.Money}}</view>
|
|
|
+ <view class="count" v-else>+{{v.Money}}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <!-- 使用条款-->
|
|
|
+
|
|
|
+ <view class="shiyongBox" v-if="shiyongShow" @click="shiyongShow=false">
|
|
|
+ <view class="shiyongCont" @click.stop="">
|
|
|
+ <view class="shiyongContTop">
|
|
|
+ <view class="shiyongContTopTitle">使用条款</view>
|
|
|
+ <image src="../../static/img/icon_close.png" alt="" class="shiyongContTopX"
|
|
|
+ @click="shiyongShow=false"></image>
|
|
|
+ </view>
|
|
|
+ <view class="shiyonghtml">
|
|
|
+ <view v-html="useComment" v-if="useComment"></view>
|
|
|
+ <view v-else class="shiyongno">使用条款暂无内容</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
|
|
|
|
|
|
</view>
|
|
|
-
|
|
|
- <!-- 无数据空白页 -->
|
|
|
+
|
|
|
+ <!-- 无数据空白页 -->
|
|
|
<nodata v-if="vipData.carMoneyList.length==0"></nodata>
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
-<script>
|
|
|
- import nodata from '../../components/nodata/nodata.vue'
|
|
|
- export default {
|
|
|
- components: {
|
|
|
- nodata,
|
|
|
+<script>
|
|
|
+ import nodata from '../../components/nodata/nodata.vue'
|
|
|
+ export default {
|
|
|
+ components: {
|
|
|
+ nodata,
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
data() {
|
|
|
return {
|
|
|
tabIndex: '1',
|
|
|
- jiciState: false,
|
|
|
- chuzhiState: false,
|
|
|
+
|
|
|
vipData: {},
|
|
|
+ userInfo: '',
|
|
|
+ shiyongShow: false,
|
|
|
+ useComment: '',
|
|
|
+ dis: true,
|
|
|
+ disCz: true,
|
|
|
}
|
|
|
},
|
|
|
onLoad() {
|
|
|
+ this.userInfo = uni.getStorageSync("userInfo")
|
|
|
this.myOrderCoupon();
|
|
|
},
|
|
|
|
|
|
- methods: {
|
|
|
+ methods: {
|
|
|
+ AmountQtyJs (item) {
|
|
|
+ var state = false
|
|
|
+ if (this.dis) {
|
|
|
+ item.forEach(v => {
|
|
|
+ if (v.AmountQty != 0) {
|
|
|
+ state = true
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ state = true
|
|
|
+ }
|
|
|
+
|
|
|
+ return state
|
|
|
+ },
|
|
|
+ useCl(useComment) {
|
|
|
+ this.useComment = useComment;
|
|
|
+ this.shiyongShow = true;
|
|
|
+ },
|
|
|
myOrderCoupon() {
|
|
|
uni.showLoading({
|
|
|
title: '加载中'
|
|
@@ -177,19 +291,12 @@
|
|
|
},
|
|
|
tabClick(tag) {
|
|
|
this.tabIndex = tag
|
|
|
- this.myOrderCoupon();
|
|
|
+
|
|
|
},
|
|
|
changeState(item) {
|
|
|
item.open = !item.open
|
|
|
},
|
|
|
- btnClick() {
|
|
|
- this.jiciState = !this.jiciState
|
|
|
- this.myOrderCoupon();
|
|
|
- },
|
|
|
- btnClick2() {
|
|
|
- this.chuzhiState = !this.chuzhiState
|
|
|
- this.myOrderCoupon();
|
|
|
- },
|
|
|
+
|
|
|
|
|
|
gonavigateTo(url) {
|
|
|
|
|
@@ -407,15 +514,65 @@
|
|
|
justify-content: space-between;
|
|
|
color: #999999;
|
|
|
font-size: 24rpx;
|
|
|
- }
|
|
|
- .money{
|
|
|
-
|
|
|
- font-size: 36rpx;
|
|
|
- font-weight: bold;
|
|
|
- color: #FF3B30;
|
|
|
- line-height: 50rpx;
|
|
|
- }
|
|
|
- .count{
|
|
|
- color: #F03B3B;
|
|
|
+ }
|
|
|
+
|
|
|
+ .money {
|
|
|
+
|
|
|
+ font-size: 36rpx;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #FF3B30;
|
|
|
+ line-height: 50rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .count {
|
|
|
+ color: #F03B3B;
|
|
|
+ }
|
|
|
+
|
|
|
+ .shiyongBox {
|
|
|
+ width: 100%;
|
|
|
+ height: 100vh;
|
|
|
+ background: rgba(0, 0, 0, 0.5);
|
|
|
+ position: fixed;
|
|
|
+ left: 0;
|
|
|
+ top: 0;
|
|
|
+ z-index: 9999;
|
|
|
+ }
|
|
|
+
|
|
|
+ .shiyongCont {
|
|
|
+ width: 100%;
|
|
|
+ height: 70vh;
|
|
|
+ background: #ffffff;
|
|
|
+ left: 0;
|
|
|
+ bottom: 0;
|
|
|
+ position: absolute;
|
|
|
+ border-radius: 24rpx 24rpx 0rpx 0rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .shiyongContTopX {
|
|
|
+ width: 25rpx;
|
|
|
+ height: 25rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .shiyongContTop {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ padding: 24rpx;
|
|
|
+ color: #3C3C3C;
|
|
|
+ font-size: 30rpx;
|
|
|
+ border-bottom: 1rpx solid #EEEEEE;
|
|
|
+ }
|
|
|
+
|
|
|
+ .shiyongContTopTitle {
|
|
|
+ font-size: 30rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .shiyonghtml {
|
|
|
+ padding: 24rpx;
|
|
|
+ height: calc(70vh - 100px);
|
|
|
+ overflow-y: scroll;
|
|
|
+ }
|
|
|
+
|
|
|
+ .shiyongno {
|
|
|
+ color: #666666;
|
|
|
}
|
|
|
</style>
|