|
@@ -95,9 +95,9 @@
|
|
<icon class="apple-icon"></icon>apple
|
|
<icon class="apple-icon"></icon>apple
|
|
</view>
|
|
</view>
|
|
|
|
|
|
- <view v-if="currentPlatform =='android'" class="open-svip-btn" @touchstart="creatOrder">立即支付
|
|
|
|
|
|
+ <view v-if="currentPlatform =='android'" class="pay-btn" @touchstart="creatOrder">立即支付
|
|
</view>
|
|
</view>
|
|
- <view v-if="currentPlatform =='ios'" style="margin-top: 20rpx;" class="open-svip-btn"
|
|
|
|
|
|
+ <view v-if="currentPlatform =='ios'" class="pay-btn"
|
|
@touchstart="creatOrderIos">立即支付</view>
|
|
@touchstart="creatOrderIos">立即支付</view>
|
|
</view>
|
|
</view>
|
|
<detail-dialog ref="mallDetailPopup" :selected-list="getSelectedProducts"></detail-dialog>
|
|
<detail-dialog ref="mallDetailPopup" :selected-list="getSelectedProducts"></detail-dialog>
|
|
@@ -223,8 +223,13 @@
|
|
const mergeList = [...new Set([...localList, ...data.levelIdList])]
|
|
const mergeList = [...new Set([...localList, ...data.levelIdList])]
|
|
cacheManager.updateObject('auth', {
|
|
cacheManager.updateObject('auth', {
|
|
levelIdList: mergeList
|
|
levelIdList: mergeList
|
|
- })
|
|
|
|
- toast("chenggong!!!! 之后跳转我的订单页面")
|
|
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ uni.redirectTo({
|
|
|
|
+ url: '/pages/pay/order?status=2'
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ // toast("chenggong!!!! 之后跳转我的订单页面")
|
|
|
|
|
|
// if (formPage.value == 'my') {
|
|
// if (formPage.value == 'my') {
|
|
// uni.redirectTo({
|
|
// uni.redirectTo({
|
|
@@ -552,8 +557,18 @@
|
|
orderAdd(req).then(res => {
|
|
orderAdd(req).then(res => {
|
|
console.log('res', res);
|
|
console.log('res', res);
|
|
console.log(' res.data.id', res.data.id);
|
|
console.log(' res.data.id', res.data.id);
|
|
- orderId.value = res.data.id
|
|
|
|
- wxPay()
|
|
|
|
|
|
+ orderId.value = res.data.id
|
|
|
|
+ orderCheck({
|
|
|
|
+ id: orderId.value
|
|
|
|
+ }).then(res3 => {
|
|
|
|
+ console.log('res3', res3);
|
|
|
|
+ if (res3.code == 0) {
|
|
|
|
+ genggaiVip(res3.data)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ // wxPay()
|
|
}).catch((err) => {
|
|
}).catch((err) => {
|
|
uni.hideLoading();
|
|
uni.hideLoading();
|
|
toast("订单创建失败")
|
|
toast("订单创建失败")
|
|
@@ -662,7 +677,7 @@
|
|
} else {
|
|
} else {
|
|
productData.current = Number(cacheManager.get('auth').subjectId) - 1
|
|
productData.current = Number(cacheManager.get('auth').subjectId) - 1
|
|
}
|
|
}
|
|
- //isIOSorAndroid()
|
|
|
|
|
|
+ isIOSorAndroid()
|
|
getMore();
|
|
getMore();
|
|
|
|
|
|
})
|
|
})
|