|
@@ -86,7 +86,7 @@
|
|
|
选择套餐
|
|
选择套餐
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="contet-list flex" style="position: relative;" :style="{'height': isShowAll? 'auto': '275rpx'}">
|
|
|
|
|
|
|
+ <view class="contet-list flex" style="position: relative;" :style="{'height': isShowAll? 'auto': '550rpx'}">
|
|
|
<view class="flex" v-if="isShowAll == false"
|
|
<view class="flex" v-if="isShowAll == false"
|
|
|
style="width: 100%; position: absolute;bottom: 0;background-color: #fff;height: 50rpx;left: 0;text-align: center;border-radius: 0 0 20rpx 20rpx;padding: 0 30px;"
|
|
style="width: 100%; position: absolute;bottom: 0;background-color: #fff;height: 50rpx;left: 0;text-align: center;border-radius: 0 0 20rpx 20rpx;padding: 0 30px;"
|
|
|
@click="isShowAll = true">
|
|
@click="isShowAll = true">
|
|
@@ -102,7 +102,9 @@
|
|
|
</view>
|
|
</view>
|
|
|
<view class="tc flex" v-for="(item,index) in tcList" :class="{'action': selectTcIndex == index}"
|
|
<view class="tc flex" v-for="(item,index) in tcList" :class="{'action': selectTcIndex == index}"
|
|
|
@click="choosTc(index,item)" v-if="item.day == 30 || !userInfo.payRules">
|
|
@click="choosTc(index,item)" v-if="item.day == 30 || !userInfo.payRules">
|
|
|
-
|
|
|
|
|
|
|
+ <view class="tc-tit">
|
|
|
|
|
+ {{item.title}}
|
|
|
|
|
+ </view>
|
|
|
<view class="tc-price">
|
|
<view class="tc-price">
|
|
|
{{item.price}}
|
|
{{item.price}}
|
|
|
<text class="tc-time-t">
|
|
<text class="tc-time-t">
|
|
@@ -264,7 +266,7 @@
|
|
|
<view class="ts" v-if="!isdk">
|
|
<view class="ts" v-if="!isdk">
|
|
|
|
|
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="btm-btn flex" v-if="!isdk">
|
|
|
|
|
|
|
+ <view class="btm-btn flex" v-if="!isdk || !ismy">
|
|
|
|
|
|
|
|
<!-- <view class="pay-price" v-if="!ismy && userInfo.battery_deposit != 1">
|
|
<!-- <view class="pay-price" v-if="!ismy && userInfo.battery_deposit != 1">
|
|
|
总计费用:<text>{{(selectTc.price*1 + selectTc.deposit*1).toFixed(2) || ''}}</text>
|
|
总计费用:<text>{{(selectTc.price*1 + selectTc.deposit*1).toFixed(2) || ''}}</text>
|
|
@@ -366,10 +368,10 @@
|
|
|
watch: {
|
|
watch: {
|
|
|
selctStore(n, o) {
|
|
selctStore(n, o) {
|
|
|
if (n) {
|
|
if (n) {
|
|
|
- if(this.userInfo.battery_deposit != 1) {
|
|
|
|
|
|
|
+ if(this.userInfo.battery_deposit != 1 && n.is_pledge == 1) {
|
|
|
this.ljmy()
|
|
this.ljmy()
|
|
|
}
|
|
}
|
|
|
- if (this.selectTc.day*1 == 30 && !this.userInfo.payRules) {
|
|
|
|
|
|
|
+ if (this.selectTc.day*1 == 30 && !this.userInfo.payRules ) {
|
|
|
this.ktdk()
|
|
this.ktdk()
|
|
|
}else {
|
|
}else {
|
|
|
|
|
|
|
@@ -399,13 +401,21 @@
|
|
|
return this.isdk && this.dkQrcodeUrl
|
|
return this.isdk && this.dkQrcodeUrl
|
|
|
},
|
|
},
|
|
|
showPrice() {
|
|
showPrice() {
|
|
|
- let price = this.selectTc.price * 1 + this.selectTc.deposit * 1
|
|
|
|
|
|
|
+ console.log(this.ismy,'this.ismy');
|
|
|
|
|
+ let price
|
|
|
|
|
+ if(this.ismy) {
|
|
|
|
|
+ price = this.selectTc.price * 1 + this.selectTc.deposit * 1
|
|
|
|
|
+ }else {
|
|
|
|
|
+ price = this.selectTc.deposit * 1
|
|
|
|
|
+ console.log(price,'pricepriceprice');
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
if (!this.ismy && this.userInfo.battery_deposit != 1) {
|
|
if (!this.ismy && this.userInfo.battery_deposit != 1) {
|
|
|
if (this.isqxdk) {
|
|
if (this.isqxdk) {
|
|
|
let all = (price - this.userInfo.certificate * 1).toFixed(2)
|
|
let all = (price - this.userInfo.certificate * 1).toFixed(2)
|
|
|
return all > 0 ? all : 0
|
|
return all > 0 ? all : 0
|
|
|
} else {
|
|
} else {
|
|
|
- return price
|
|
|
|
|
|
|
+ return price*1
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
if (this.isqxdk) {
|
|
if (this.isqxdk) {
|
|
@@ -448,6 +458,7 @@
|
|
|
qxmy() {
|
|
qxmy() {
|
|
|
this.ismy = false
|
|
this.ismy = false
|
|
|
},
|
|
},
|
|
|
|
|
+ // 开通代扣
|
|
|
ktdk() {
|
|
ktdk() {
|
|
|
let that = this
|
|
let that = this
|
|
|
that.dkQrcodeUrl = ''
|
|
that.dkQrcodeUrl = ''
|
|
@@ -459,7 +470,7 @@
|
|
|
}
|
|
}
|
|
|
this.isdk = true
|
|
this.isdk = true
|
|
|
// this.contractCreate()
|
|
// this.contractCreate()
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
this.toBuy()
|
|
this.toBuy()
|
|
|
},
|
|
},
|
|
|
contractCreate() {
|
|
contractCreate() {
|
|
@@ -481,6 +492,9 @@
|
|
|
if (!that.is_tj && that.selctStore.id == '') {
|
|
if (!that.is_tj && that.selctStore.id == '') {
|
|
|
return that.$api.msg('请选择门店')
|
|
return that.$api.msg('请选择门店')
|
|
|
}
|
|
}
|
|
|
|
|
+ if(that.selectTc.is_pledge == 0) {
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
this.ismy = true
|
|
this.ismy = true
|
|
|
this.rentFree()
|
|
this.rentFree()
|
|
|
},
|
|
},
|
|
@@ -980,7 +994,7 @@
|
|
|
padding: 0 25rpx 45rpx;
|
|
padding: 0 25rpx 45rpx;
|
|
|
height: 275rpx;
|
|
height: 275rpx;
|
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
.tc {
|
|
.tc {
|
|
|
width: 315rpx;
|
|
width: 315rpx;
|
|
|
height: 212rpx;
|
|
height: 212rpx;
|
|
@@ -990,7 +1004,11 @@
|
|
|
margin-bottom: 20rpx;
|
|
margin-bottom: 20rpx;
|
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
|
justify-content: center;
|
|
justify-content: center;
|
|
|
-
|
|
|
|
|
|
|
+ .tc-tit {
|
|
|
|
|
+ font-size: 36rpx;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
// align-items: center;
|
|
// align-items: center;
|
|
|
.tc-time {
|
|
.tc-time {
|
|
|
font-size: 28rpx;
|
|
font-size: 28rpx;
|
|
@@ -1042,7 +1060,9 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ .tc-t {
|
|
|
|
|
+ // width: 630rpx;
|
|
|
|
|
+ }
|
|
|
.dy {
|
|
.dy {
|
|
|
height: 187rpx;
|
|
height: 187rpx;
|
|
|
}
|
|
}
|