|
|
@@ -1,46 +1,56 @@
|
|
|
<template>
|
|
|
- <view class="page" :style="{'height':windowHeight}">
|
|
|
-
|
|
|
- <view class="flex-col" v-if="equityList.length === 0">
|
|
|
- <view class="flex-row justify-center">
|
|
|
- <image class="empty" src="/static/imageIcon/empty.png" mode="widthFix"></image>
|
|
|
- </view>
|
|
|
- <view class="emptyText flex-row justify-center">
|
|
|
- <text>暂无内容</text>
|
|
|
+ <view class="page" :style="{'height':equityList.length >0 ?windowHeight : windowHeight1}">
|
|
|
+ <view class="centent">
|
|
|
+ <view class="flex-col" v-if="equityList.length === 0">
|
|
|
+ <view class="flex-row justify-center">
|
|
|
+ <image class="empty" src="/static/imageIcon/empty.png" mode="widthFix"></image>
|
|
|
+ </view>
|
|
|
+ <view class="emptyText flex-row justify-center">
|
|
|
+ <text>暂无内容</text>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
|
|
|
- <scroll-view v-else scroll-y :style="{'height':windowHeight}">
|
|
|
- <view class="row-list flex-row justify-start" v-for="(item,index) in equityList" :key="index">
|
|
|
- <view class="h-text flex-col justify-center ">
|
|
|
- <view class="money">
|
|
|
- <text>¥{{item.salePrice}}</text>
|
|
|
+ <scroll-view v-else scroll-y :style="{'height':windowHeight}">
|
|
|
+ <view class="row-list flex-row justify-start" v-for="(item,index) in equityList" :key="index">
|
|
|
+ <view class="h-text flex-col justify-center ">
|
|
|
+ <view class="money">
|
|
|
+ <text>¥{{item.salePrice}}</text>
|
|
|
+ </view>
|
|
|
+ <!-- <view class="desc">-->
|
|
|
+ <!-- <text>{{item.title}}</text>-->
|
|
|
+ <!-- </view>-->
|
|
|
</view>
|
|
|
- <!-- <view class="desc">-->
|
|
|
- <!-- <text>{{item.title}}</text>-->
|
|
|
- <!-- </view>-->
|
|
|
- </view>
|
|
|
|
|
|
- <view class="h-center-content flex-col justify-around">
|
|
|
- <view class="h-value">
|
|
|
- <text>{{item.title}}</text>
|
|
|
- </view>
|
|
|
- <view class="title">
|
|
|
- 使用项目:{{item.serviceProjectName || ''}}
|
|
|
- </view>
|
|
|
- <view class="title">
|
|
|
- 有效天数:{{item.effectiveDays}}
|
|
|
+ <view class="h-center-content flex-col justify-around">
|
|
|
+ <view class="h-value">
|
|
|
+ <text>{{item.title}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="title">
|
|
|
+ 使用项目:{{item.serviceProjectName || ''}}
|
|
|
+ </view>
|
|
|
+ <view class="title">
|
|
|
+ 有效天数:{{item.effectiveDays}}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
|
|
|
- <view class="h-right-content flex-col justify-center ">
|
|
|
- <view class="btn" @click="payRights(item)">
|
|
|
- <text>购买</text>
|
|
|
+ <view class="h-right-content flex-col justify-center ">
|
|
|
+ <view class="btn" @click="payRights(item)">
|
|
|
+ <text>购买</text>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
+
|
|
|
</view>
|
|
|
+ </scroll-view>
|
|
|
|
|
|
- </view>
|
|
|
- </scroll-view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="btnTitle flex-row" v-if="equityList.length > 0">
|
|
|
+ <u-icon v-if="selectIcon" name="checkmark-circle-fill" color="#FFE52C" size="18" @click="selectChange"></u-icon>
|
|
|
+ <u-icon v-else name="/static/order/ud9.png" color="#FFE52C" size="18" @click="selectChange"></u-icon>
|
|
|
+ <text :style="{'margin-left':'10rpx'}">请阅读并同意</text>
|
|
|
+ <text :style="{'color':'red'}" @click="goTermsOfService">《娇骄儿88卡权益服务协议》</text>
|
|
|
+ </view>
|
|
|
|
|
|
<uni-popup ref="popup" :catchtouchmove="true" :animation="false" type="bottom">
|
|
|
|
|
|
@@ -105,7 +115,9 @@
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ selectIcon:'',
|
|
|
windowHeight:'',
|
|
|
+ windowHeight1:'',
|
|
|
show:false,
|
|
|
curServiceTab:1,
|
|
|
orderRights:{},
|
|
|
@@ -119,7 +131,8 @@
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
let sysInfo = uni.getSystemInfoSync()
|
|
|
- this.windowHeight =sysInfo.windowHeight +'px'//除标题栏栏外的屏幕可用高度
|
|
|
+ this.windowHeight =sysInfo.windowHeight -50 +'px'//除标题栏栏外的屏幕可用高度
|
|
|
+ this.windowHeight1 =sysInfo.windowHeight +'px'//除标题栏栏外的屏幕可用高度
|
|
|
this.userInfo = uni.getStorageSync('userInfo')
|
|
|
this.listServiceObject()
|
|
|
this.equityCardList()
|
|
|
@@ -127,6 +140,16 @@
|
|
|
|
|
|
methods: {
|
|
|
|
|
|
+ goTermsOfService(){
|
|
|
+ uni.navigateTo({
|
|
|
+ url:'/myPages/TermsOfService/index?name='+'娇骄儿88卡权益服务协议'+'&type=' + 4
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
+ selectChange(){
|
|
|
+ this.selectIcon = !this.selectIcon
|
|
|
+ },
|
|
|
+
|
|
|
commonGeneralOrder(){
|
|
|
this.$refs.popup.close()
|
|
|
this.$api.commonGeneralOrder({
|
|
|
@@ -244,6 +267,10 @@
|
|
|
},
|
|
|
|
|
|
payRights(item){
|
|
|
+ if(!this.selectIcon){
|
|
|
+ uni.$u.toast('请阅读并同意《娇骄儿88卡权益服务协议》')
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.show =true
|
|
|
this.orderRights = item
|
|
|
}
|