支付宝兼容,排队预约修改,订单逻辑修改
This commit is contained in:
@@ -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())
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user