支付宝兼容,排队预约修改,订单逻辑修改

This commit is contained in:
GaoHao
2024-09-24 15:22:34 +08:00
parent 861e97b775
commit 5f03e44701
31 changed files with 823 additions and 737 deletions

View File

@@ -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) //操作属性
}
}
}