|
@@ -10,9 +10,9 @@ import wx from '../../libs/wx'; |
|
@@ -10,9 +10,9 @@ import wx from '../../libs/wx'; |
10
|
*/
|
10
|
*/
|
11
|
export const prePay = function (productId, orderCode, fromWhere, isStore) {
|
11
|
export const prePay = function (productId, orderCode, fromWhere, isStore) {
|
12
|
let api = new orderService()
|
12
|
let api = new orderService()
|
13
|
- wx.showLoading({
|
|
|
14
|
- title: '',
|
|
|
15
|
- })
|
13
|
+ // wx.showLoading({
|
|
|
14
|
+ // title: '',
|
|
|
15
|
+ // })
|
16
|
let openID = '';
|
16
|
let openID = '';
|
17
|
try {
|
17
|
try {
|
18
|
openID = wx.getStorageSync('openid')
|
18
|
openID = wx.getStorageSync('openid')
|
|
@@ -33,7 +33,7 @@ export const prePay = function (productId, orderCode, fromWhere, isStore) { |
|
@@ -33,7 +33,7 @@ export const prePay = function (productId, orderCode, fromWhere, isStore) { |
33
|
// 调用出错
|
33
|
// 调用出错
|
34
|
Taro.showToast({
|
34
|
Taro.showToast({
|
35
|
title: '订单不可支付',
|
35
|
title: '订单不可支付',
|
36
|
- duration: 2000,
|
36
|
+ duration: 1500,
|
37
|
icon: 'none'
|
37
|
icon: 'none'
|
38
|
});
|
38
|
});
|
39
|
|
39
|
|
|
@@ -51,7 +51,7 @@ export const prePay = function (productId, orderCode, fromWhere, isStore) { |
|
@@ -51,7 +51,7 @@ export const prePay = function (productId, orderCode, fromWhere, isStore) { |
51
|
wx.redirectTo({
|
51
|
wx.redirectTo({
|
52
|
url: '/pages/orderDetail/index?orderCode=' + orderCode
|
52
|
url: '/pages/orderDetail/index?orderCode=' + orderCode
|
53
|
});
|
53
|
});
|
54
|
- }, 2000);
|
54
|
+ }, 1500);
|
55
|
})
|
55
|
})
|
56
|
} else {
|
56
|
} else {
|
57
|
//提示重新登录
|
57
|
//提示重新登录
|