Commit 4892d9f7 by xnn

修复已知问题

parent 9bd1cf79
...@@ -84,6 +84,7 @@ ...@@ -84,6 +84,7 @@
this.nowStatus = option.status; this.nowStatus = option.status;
}, },
onShow() { onShow() {
this.btnFlag = false
this.pageType() this.pageType()
}, },
methods: { methods: {
...@@ -99,7 +100,7 @@ ...@@ -99,7 +100,7 @@
this.btnFlag = true this.btnFlag = true
setTimeout(() => { setTimeout(() => {
this.btnFlag = false this.btnFlag = false
}, 3000) }, 10000)
this.$utils.payOrder(order_id) this.$utils.payOrder(order_id)
}, },
pageType() { pageType() {
......
...@@ -106,6 +106,7 @@ ...@@ -106,6 +106,7 @@
this.id = option.id; this.id = option.id;
}, },
onShow() { onShow() {
this.btnFlag = false
this.getOrder() this.getOrder()
}, },
methods: { methods: {
...@@ -121,7 +122,7 @@ ...@@ -121,7 +122,7 @@
this.btnFlag = true this.btnFlag = true
setTimeout(() => { setTimeout(() => {
this.btnFlag = false this.btnFlag = false
}, 4000) }, 10000)
this.$utils.payOrder(order_id) this.$utils.payOrder(order_id)
}, },
gotoHere(address, lat, lng) { gotoHere(address, lat, lng) {
......
...@@ -182,6 +182,7 @@ ...@@ -182,6 +182,7 @@
} }
}, },
onShow() { onShow() {
this.flag = false
this.getUserInfo(); this.getUserInfo();
let getGoodsWayIndex = uni.getStorageSync('getGoodsWayIndex'); let getGoodsWayIndex = uni.getStorageSync('getGoodsWayIndex');
this.getGoodsWayIndex = getGoodsWayIndex | 1; this.getGoodsWayIndex = getGoodsWayIndex | 1;
...@@ -486,10 +487,9 @@ ...@@ -486,10 +487,9 @@
pramra.buycode = this.userInfo.buycode; pramra.buycode = this.userInfo.buycode;
setTimeout(() => { setTimeout(() => {
this.flag = false this.flag = false
}, 4000) }, 10000)
this.$request('/create-buy-order', 'POST', pramra).then(res => { this.$request('/create-buy-order', 'POST', pramra).then(res => {
console.log(res.data); console.log(res.data);
this.flag = false;
this.$utils.payOrder(res.data.order_id, _this.payType) this.$utils.payOrder(res.data.order_id, _this.payType)
}).catch(err => { }).catch(err => {
this.flag = false; this.flag = false;
...@@ -504,10 +504,9 @@ ...@@ -504,10 +504,9 @@
pramra.buycode = this.userInfo.buycode; pramra.buycode = this.userInfo.buycode;
setTimeout(() => { setTimeout(() => {
this.flag = false this.flag = false
}, 4000) }, 10000)
this.$request('/create-order', 'POST', pramra).then(res => { this.$request('/create-order', 'POST', pramra).then(res => {
console.log(res.data); console.log(res.data);
this.flag = false;
this.$utils.payOrder(res.data.order_id, _this.payType) this.$utils.payOrder(res.data.order_id, _this.payType)
}).catch(err => { }).catch(err => {
this.flag = false; this.flag = false;
......
{ {
"component": true,
"usingComponents": { "usingComponents": {
"u-icon": "/node-modules/uview-ui/components/u-icon/u-icon", "u-icon": "/node-modules/uview-ui/components/u-icon/u-icon",
"u-badge": "/node-modules/uview-ui/components/u-badge/u-badge" "u-badge": "/node-modules/uview-ui/components/u-badge/u-badge"
}, }
"component": true
} }
\ No newline at end of file
...@@ -266,6 +266,7 @@ var _default = { ...@@ -266,6 +266,7 @@ var _default = {
this.nowStatus = option.status; this.nowStatus = option.status;
}, },
onShow: function onShow() { onShow: function onShow() {
this.btnFlag = false;
this.pageType(); this.pageType();
}, },
methods: { methods: {
...@@ -282,7 +283,7 @@ var _default = { ...@@ -282,7 +283,7 @@ var _default = {
this.btnFlag = true; this.btnFlag = true;
setTimeout(function () { setTimeout(function () {
_this.btnFlag = false; _this.btnFlag = false;
}, 3000); }, 10000);
this.$utils.payOrder(order_id); this.$utils.payOrder(order_id);
}, },
pageType: function pageType() { pageType: function pageType() {
......
...@@ -293,6 +293,7 @@ var _default = { ...@@ -293,6 +293,7 @@ var _default = {
this.id = option.id; this.id = option.id;
}, },
onShow: function onShow() { onShow: function onShow() {
this.btnFlag = false;
this.getOrder(); this.getOrder();
}, },
methods: { methods: {
...@@ -309,7 +310,7 @@ var _default = { ...@@ -309,7 +310,7 @@ var _default = {
this.btnFlag = true; this.btnFlag = true;
setTimeout(function () { setTimeout(function () {
_this.btnFlag = false; _this.btnFlag = false;
}, 4000); }, 10000);
this.$utils.payOrder(order_id); this.$utils.payOrder(order_id);
}, },
gotoHere: function gotoHere(address, lat, lng) { gotoHere: function gotoHere(address, lat, lng) {
......
...@@ -389,6 +389,7 @@ var _default = { ...@@ -389,6 +389,7 @@ var _default = {
}; };
}, },
onShow: function onShow() { onShow: function onShow() {
this.flag = false;
this.getUserInfo(); this.getUserInfo();
var getGoodsWayIndex = uni.getStorageSync('getGoodsWayIndex'); var getGoodsWayIndex = uni.getStorageSync('getGoodsWayIndex');
this.getGoodsWayIndex = getGoodsWayIndex | 1; this.getGoodsWayIndex = getGoodsWayIndex | 1;
...@@ -693,10 +694,9 @@ var _default = { ...@@ -693,10 +694,9 @@ var _default = {
pramra.buycode = this.userInfo.buycode; pramra.buycode = this.userInfo.buycode;
setTimeout(function () { setTimeout(function () {
_this7.flag = false; _this7.flag = false;
}, 4000); }, 10000);
this.$request('/create-buy-order', 'POST', pramra).then(function (res) { this.$request('/create-buy-order', 'POST', pramra).then(function (res) {
console.log(res.data); console.log(res.data);
_this7.flag = false;
_this7.$utils.payOrder(res.data.order_id, _this.payType); _this7.$utils.payOrder(res.data.order_id, _this.payType);
}).catch(function (err) { }).catch(function (err) {
_this7.flag = false; _this7.flag = false;
...@@ -712,10 +712,9 @@ var _default = { ...@@ -712,10 +712,9 @@ var _default = {
pramra.buycode = this.userInfo.buycode; pramra.buycode = this.userInfo.buycode;
setTimeout(function () { setTimeout(function () {
_this8.flag = false; _this8.flag = false;
}, 4000); }, 10000);
this.$request('/create-order', 'POST', pramra).then(function (res) { this.$request('/create-order', 'POST', pramra).then(function (res) {
console.log(res.data); console.log(res.data);
_this8.flag = false;
_this8.$utils.payOrder(res.data.order_id, _this.payType); _this8.$utils.payOrder(res.data.order_id, _this.payType);
}).catch(function (err) { }).catch(function (err) {
_this8.flag = false; _this8.flag = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment