Authored by 李奇

排除多次loading的闪现体验

... ... @@ -172,9 +172,9 @@ Page({
param.skup = this.data.skup
param.coupon_code = this.data.selectCouponCode || '';
wx.showLoading({
title: '',
})
// wx.showLoading({
// title: '',
// })
data = await api.storeBuyerSubmit(param, () => {
wx.hideLoading()
})
... ... @@ -192,9 +192,9 @@ Page({
let channelNo = '';
let couponCode = this.data.selectCouponCode || '';
wx.showLoading({
title: '',
})
// wx.showLoading({
// title: '',
// })
data = await api.buyerSubmit(skup, channelNo, addressId, couponCode, () => wx.hideLoading());
}
if (data && data.orderCode) {
... ...
... ... @@ -10,9 +10,9 @@ import wx from '../../libs/wx';
*/
export const prePay = function (productId, orderCode, fromWhere, isStore) {
let api = new orderService()
wx.showLoading({
title: '',
})
// wx.showLoading({
// title: '',
// })
let openID = '';
try {
openID = wx.getStorageSync('openid')
... ... @@ -33,7 +33,7 @@ export const prePay = function (productId, orderCode, fromWhere, isStore) {
// 调用出错
Taro.showToast({
title: '订单不可支付',
duration: 2000,
duration: 1500,
icon: 'none'
});
... ... @@ -51,7 +51,7 @@ export const prePay = function (productId, orderCode, fromWhere, isStore) {
wx.redirectTo({
url: '/pages/orderDetail/index?orderCode=' + orderCode
});
}, 2000);
}, 1500);
})
} else {
//提示重新登录
... ...