|
@@ -176,15 +176,23 @@
|
|
|
<view class="ts">
|
|
<view class="ts">
|
|
|
|
|
|
|
|
</view>
|
|
</view>
|
|
|
- <!-- <view class="btm-btn flex">
|
|
|
|
|
- <view class="pay-price" >
|
|
|
|
|
|
|
+ <!-- <view class="btm-btn flex">
|
|
|
|
|
+ <view class="pay-price">
|
|
|
总计费用:<text>{{(selectTc.price*1) || ''}}</text>
|
|
总计费用:<text>{{(selectTc.price*1) || ''}}</text>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="pay-btn" @click="toBuy" :class="{'zfz': loading}">
|
|
|
|
|
- {{loading?'支付中':'立即支付'}}
|
|
|
|
|
|
|
+ <view class="pay-btn" @click="toBuy" :class="{'zfz': loading}" v-if="">
|
|
|
|
|
+ {{loading?'支付中':''}}
|
|
|
</view>
|
|
</view>
|
|
|
</view> -->
|
|
</view> -->
|
|
|
- <view class="btm-btn flex" v-if="!showbtn">
|
|
|
|
|
|
|
+ <view class="btm-btn flex" >
|
|
|
|
|
+ <view class="pay-price">
|
|
|
|
|
+ 押金:<text>{{(selectTc.deposit*1) || ''}}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="pay-btn" @click="toBuy" :class="{'zfz': loading}">
|
|
|
|
|
+ {{loading?'支付中':'支付押金'}}
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+<!-- <view class="btm-btn flex" v-if="!showbtn">
|
|
|
<view class="pay-price">
|
|
<view class="pay-price">
|
|
|
总计费用:<text>{{(selectTc.price*1) || ''}}</text>
|
|
总计费用:<text>{{(selectTc.price*1) || ''}}</text>
|
|
|
</view>
|
|
</view>
|
|
@@ -192,19 +200,20 @@
|
|
|
获取免押二维码
|
|
获取免押二维码
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <!-- //showbtn -->
|
|
|
|
|
<view class="btm-btn flex" v-else
|
|
<view class="btm-btn flex" v-else
|
|
|
- style="text-align: center;color: #fff;background-color: #6cd9c0;justify-content: center;" @click="saveShareQrcode">
|
|
|
|
|
|
|
+ style="text-align: center;color: #fff;background-color: #6cd9c0;justify-content: center;"
|
|
|
|
|
+ @click="saveShareQrcode">
|
|
|
保存二维码
|
|
保存二维码
|
|
|
-
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ </view> -->
|
|
|
<uni-popup ref="mypopup" type="center" @change="mychange">
|
|
<uni-popup ref="mypopup" type="center" @change="mychange">
|
|
|
<view class="myj-wrap">
|
|
<view class="myj-wrap">
|
|
|
<view class="ewm-wrap">
|
|
<view class="ewm-wrap">
|
|
|
<canvas :style="{ width:cw + 'rpx', height: ch+'rpx',}" canvas-id="myCanvas" id="myCanvas"
|
|
<canvas :style="{ width:cw + 'rpx', height: ch+'rpx',}" canvas-id="myCanvas" id="myCanvas"
|
|
|
class="hb"></canvas>
|
|
class="hb"></canvas>
|
|
|
</view>
|
|
</view>
|
|
|
-
|
|
|
|
|
|
|
+ <view class="bcewm" @click="saveShareQrcode">
|
|
|
|
|
+ 保存二维码
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
</uni-popup>
|
|
</uni-popup>
|
|
@@ -429,6 +438,7 @@
|
|
|
that.canvasShow = false
|
|
that.canvasShow = false
|
|
|
that.shareQrcodeUrl = res.tempFilePath
|
|
that.shareQrcodeUrl = res.tempFilePath
|
|
|
that.$forceUpdate()
|
|
that.$forceUpdate()
|
|
|
|
|
+ uni.hideLoading()
|
|
|
setTimeout(function() {
|
|
setTimeout(function() {
|
|
|
console.log(that.shareQrcodeUrl, that
|
|
console.log(that.shareQrcodeUrl, that
|
|
|
.canvasShow)
|
|
.canvasShow)
|
|
@@ -576,6 +586,9 @@
|
|
|
if (!that.is_tj && that.selctStore.id == '') {
|
|
if (!that.is_tj && that.selctStore.id == '') {
|
|
|
return that.$api.msg('请选择门店')
|
|
return that.$api.msg('请选择门店')
|
|
|
}
|
|
}
|
|
|
|
|
+ uni.showLoading({
|
|
|
|
|
+ title:'二维码生成中...'
|
|
|
|
|
+ })
|
|
|
that.loading = true
|
|
that.loading = true
|
|
|
rentCreate({
|
|
rentCreate({
|
|
|
store_id: that.is_tj ? that.userinfo.store_id : that.selctStore.id,
|
|
store_id: that.is_tj ? that.userinfo.store_id : that.selctStore.id,
|
|
@@ -595,6 +608,10 @@
|
|
|
status,
|
|
status,
|
|
|
msg
|
|
msg
|
|
|
}) => {
|
|
}) => {
|
|
|
|
|
+ that.val = data.result.link
|
|
|
|
|
+ // uni.hideLoading()
|
|
|
|
|
+ that.$refs.mypopup.open()
|
|
|
|
|
+ /**
|
|
|
if (data.status == 'ORDER_EXIST') {
|
|
if (data.status == 'ORDER_EXIST') {
|
|
|
uni.showModal({
|
|
uni.showModal({
|
|
|
title: '提示',
|
|
title: '提示',
|
|
@@ -641,6 +658,7 @@
|
|
|
wx.requestPayment(paydata);
|
|
wx.requestPayment(paydata);
|
|
|
// #endif
|
|
// #endif
|
|
|
}
|
|
}
|
|
|
|
|
+ **/
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
orderMoneyPay() {
|
|
orderMoneyPay() {
|
|
@@ -1095,4 +1113,18 @@
|
|
|
border-radius: 20rpx;
|
|
border-radius: 20rpx;
|
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
|
}
|
|
}
|
|
|
|
|
+ .bcewm {
|
|
|
|
|
+ background-color: $base-color;
|
|
|
|
|
+ color: #fff;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ height: 80rpx;
|
|
|
|
|
+ width: 450rpx;
|
|
|
|
|
+ border-radius: 40rpx;
|
|
|
|
|
+ margin: auto;
|
|
|
|
|
+ margin-top: 30rpx;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ justify-content: center;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ // margin-left: 75rpx;
|
|
|
|
|
+ }
|
|
|
</style>
|
|
</style>
|