|
@@ -58,7 +58,7 @@
|
|
|
<icon class="zfb-icon"></icon>支付宝
|
|
|
</view>
|
|
|
<view class="pay-status-box apple-status-box" v-if="currentPlatform =='ios'">
|
|
|
- <!-- <icon class="apple-icon"></icon> -->
|
|
|
+ <!-- <icon class="apple-icon"></icon> -->
|
|
|
</view>
|
|
|
|
|
|
<view v-if="currentPlatform =='android'" class="pay-btn"
|
|
@@ -125,7 +125,7 @@
|
|
|
<icon class="zfb-icon"></icon>支付宝
|
|
|
</view>
|
|
|
<view class="pay-status-box apple-status-box" v-if="currentPlatform =='ios'">
|
|
|
- <!-- <icon class="apple-icon"></icon> -->
|
|
|
+ <!-- <icon class="apple-icon"></icon> -->
|
|
|
</view>
|
|
|
|
|
|
<view v-if="currentPlatform =='android'" class="pay-btn"
|
|
@@ -304,19 +304,23 @@
|
|
|
})
|
|
|
|
|
|
function goDao(data, index) {
|
|
|
- console.log('data', data);
|
|
|
- console.log('index', index);
|
|
|
if (data.type == 0 && data.levelList.length == 1) {
|
|
|
cacheManager.updateObject('auth', {
|
|
|
typeId: data.levelList[0].typeId,
|
|
|
levelId: data.levelList[0].levelId,
|
|
|
subjectId: data.levelList[0].subjectId,
|
|
|
- currentZhang: 0
|
|
|
- })
|
|
|
- cacheManager.remove('zhangInfo')
|
|
|
- uni.redirectTo({
|
|
|
- url: `/pages/study/index`
|
|
|
})
|
|
|
+ if (data.levelList[0].subjectId == 2 && data.levelIdList[0].typeId == 1) {
|
|
|
+ cacheManager.remove('zhangInfo')
|
|
|
+ uni.redirectTo({
|
|
|
+ url: `/pages/selectVersion/selectVersion`
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ cacheManager.remove('zhangInfo')
|
|
|
+ uni.redirectTo({
|
|
|
+ url: `/pages/study/index`
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -348,7 +352,6 @@
|
|
|
console.log('data', data[0].cardId);
|
|
|
console.log('index', index);
|
|
|
console.log('orderId', orderId);
|
|
|
- return
|
|
|
uni.showLoading({
|
|
|
title: '',
|
|
|
mask: true
|
|
@@ -478,7 +481,7 @@
|
|
|
// 获取 id 为 'appleiap' 的 channel
|
|
|
console.info("支付通道", iapChannel)
|
|
|
if (iapChannel.id === 'appleiap') { //开通了app应用内支付,在manifest.josn中设置,开通后需打自定议基座
|
|
|
-
|
|
|
+
|
|
|
// ids 数组中的项为 App Store Connect 配置的内购买项目产品ID(productId)
|
|
|
var ids = [productId.value];
|
|
|
// iap 为应用内支付对象
|
|
@@ -496,15 +499,15 @@
|
|
|
uni.hideLoading();
|
|
|
|
|
|
// toast("苹果内购成功")
|
|
|
-
|
|
|
+
|
|
|
applePaySuccess(e)
|
|
|
//e.payment.orderNo = that.orderNo
|
|
|
//支付成功回调,前端调用后台接口
|
|
|
},
|
|
|
fail: (e) => {
|
|
|
uni.hideLoading();
|
|
|
- toast("失败或取消支付")
|
|
|
-
|
|
|
+ toast("失败或取消支付")
|
|
|
+
|
|
|
},
|
|
|
})
|
|
|
},
|