支付宝兼容,排队预约修改,订单逻辑修改
This commit is contained in:
@@ -12,7 +12,8 @@
|
||||
<tki-barcode ref="tkiBarcode" show :opations="tkiOptions"></tki-barcode>
|
||||
</view>
|
||||
<view class="ewm-wrap">
|
||||
<uqrcode ref="uqrcode" canvas-id="qrcode" :value="createcardNo"></uqrcode>
|
||||
<tki-qrcode ref="tkiQrcode" show :size="qrcodeSize"></tki-qrcode>
|
||||
<!-- <uqrcode ref="uqrcode" canvas-id="qrcode" :value="createcardNo"></uqrcode> -->
|
||||
</view>
|
||||
<view class="name">
|
||||
<text>使用门店:{{shopInfo.shopName || '--'}}</text>
|
||||
@@ -23,10 +24,13 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
import tkiBarcode from '@/components/tki-barcode/tki-barcode.vue';
|
||||
import tkiQrcode from '@/components/tki-qrcode/tki-qrcode.vue';
|
||||
export default {
|
||||
components: {
|
||||
tkiBarcode
|
||||
tkiBarcode,
|
||||
tkiQrcode,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -35,12 +39,15 @@
|
||||
fontSize: 28,
|
||||
textMargin: 14
|
||||
},
|
||||
createcardNo: '',
|
||||
qrcodeSize: 400,
|
||||
createcardNo: '4637700074809642',
|
||||
shopInfo: null
|
||||
};
|
||||
},
|
||||
onLoad(e) {
|
||||
this.shopInfo = JSON.parse(e.shopInfo)
|
||||
},
|
||||
mounted() {
|
||||
this.logincreateCardNo();
|
||||
},
|
||||
methods: {
|
||||
@@ -48,9 +55,12 @@
|
||||
let res = await this.api.logincreateCardNo({
|
||||
"shopId": this.shopInfo.shopId
|
||||
})
|
||||
console.log(res)
|
||||
if (res.code == 0) {
|
||||
this.createcardNo = res.data
|
||||
this.createcardNo = res.data;
|
||||
console.log(this.$refs.tkiBarcode)
|
||||
this.$refs.tkiBarcode.setval(this.createcardNo) //操作属性
|
||||
this.$refs.tkiQrcode.setval(this.createcardNo) //操作属性
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user