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

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

@@ -54,6 +54,7 @@
watch: {
forceUpdate(val,oldval) {
// 在 forceUpdate 改变时执行更新操作
console.log(val,oldval)
let time = uni.cache.get('popUpTime') ? new Date().getTime() - uni.cache.get('popUpTime') : 1000;
if ( time >= 1000 ) {
uni.cache.set('popUpTime', new Date().getTime())

View File

@@ -83,7 +83,6 @@
onUnload: function() {},
methods: {
setval(n) {
console.log(n)
this.val = n
if (!this._empty(n)) {
setTimeout(() => {
@@ -167,8 +166,6 @@
},
watch: {
val(n, o) {
console.log(n,0)
console.log(this.onval)
if (this.onval) {
console.log(!this._empty(n))
if (n != o && !this._empty(n)) {

View File

@@ -87,6 +87,15 @@ export default {
}
},
methods: {
setval(n) {
console.log("setval==",n)
this.val = n
if (!this._empty(n)) {
setTimeout(() => {
this._makeCode()
}, 0);
}
},
_makeCode() {
let that = this
if (!this._empty(this.val)) {