...
|
...
|
@@ -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 {
|
|
|
//提示重新登录
|
...
|
...
|
|