|
@@ -2,7 +2,7 @@
|
|
|
<view class="app-collect_money">
|
|
<view class="app-collect_money">
|
|
|
<view v-if="showSuccess == false">
|
|
<view v-if="showSuccess == false">
|
|
|
<view class="collect-code_box">
|
|
<view class="collect-code_box">
|
|
|
- <image class="img" :src="`${constant.imgUrl}/icon/scan/scan.png`" mode="scaleToFill" />
|
|
|
|
|
|
|
+ <image class="img" :src="`${constant.imgUrl}/icon/scan/scan.png`" mode="scaleToFill" @click="beginScan()" />
|
|
|
<view style="margin-top:20upx;font-weight:bold;font-size:35upx;color:black;">¥{{price}}</view>
|
|
<view style="margin-top:20upx;font-weight:bold;font-size:35upx;color:black;">¥{{price}}</view>
|
|
|
<view class="show-code" v-if="goPay == 0">请出示付款码</view>
|
|
<view class="show-code" v-if="goPay == 0">请出示付款码</view>
|
|
|
<view class="paying" v-if="goPay == 1">请求中</view>
|
|
<view class="paying" v-if="goPay == 1">请求中</view>
|
|
@@ -59,6 +59,15 @@ export default {
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
methods:{
|
|
methods:{
|
|
|
|
|
+ beginScan(){
|
|
|
|
|
+ let that = this
|
|
|
|
|
+ uni.scanCode({
|
|
|
|
|
+ onlyFromCamera: true,
|
|
|
|
|
+ success: function (res) {
|
|
|
|
|
+ that.requestCodePay(res.result)
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
manualCheck(){
|
|
manualCheck(){
|
|
|
let that = this
|
|
let that = this
|
|
|
codePayCheck({id:this.orderId}).then(res=>{
|
|
codePayCheck({id:this.orderId}).then(res=>{
|