diff --git a/manifest.json b/manifest.json
index fadced8..eaccdbd 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,8 +2,8 @@
"name" : "心灵空间",
"appid" : "__UNI__BBBDFD2",
"description" : "心灵空间",
- "versionName" : "1.0.24",
- "versionCode" : 1024,
+ "versionName" : "1.0.21",
+ "versionCode" : 1021,
"transformPx" : false,
/* 5+App特有相关 */
"app-plus" : {
diff --git a/pages/home/index.vue b/pages/home/index.vue
index 85bae3b..238bf35 100644
--- a/pages/home/index.vue
+++ b/pages/home/index.vue
@@ -94,7 +94,7 @@
-
+
{{ item.title }}
暂无数据
diff --git a/pages/visitor/detail.vue b/pages/visitor/detail.vue
index 9567e94..e101fdb 100644
--- a/pages/visitor/detail.vue
+++ b/pages/visitor/detail.vue
@@ -41,11 +41,6 @@
{{ slotProps.data.title }}
-
-
-
@@ -217,6 +212,20 @@
});
return list;
},
+ toLogin(){
+ uni.showModal({
+ title: '提示',
+ content: '为了方便您后期用不同的设备查阅订购的记录,请先完成登录或注册。',
+ confirmText: '确认',
+ success(res){
+ if (res.confirm) {
+ uni.navigateTo({
+ url: '/pages/user/login'
+ })
+ }
+ }
+ })
+ }
}
};
diff --git a/pages/visitor/goods.vue b/pages/visitor/goods.vue
index 087577b..06b4b10 100644
--- a/pages/visitor/goods.vue
+++ b/pages/visitor/goods.vue
@@ -1,6 +1,6 @@
-
+
@@ -13,7 +13,7 @@
-
+
{{ curriculumData.productName }}
@@ -92,7 +92,7 @@
-
+
@@ -103,10 +103,6 @@
-
-
-
diff --git a/pages/visitor/list.vue b/pages/visitor/list.vue
index b84b2c8..e09314e 100644
--- a/pages/visitor/list.vue
+++ b/pages/visitor/list.vue
@@ -12,7 +12,7 @@
{{item.title}}
- 了解课程
+ 了解课程
@@ -74,6 +74,11 @@ export default {
this.statusNull = true;
}
});
+ },
+ goToDetail(item){
+ uni.navigateTo({
+ url: `/pages/visitor/detail?navTitle=${item.title}&title=${item.title}&id=${item.id}`,
+ });
}
}
};
diff --git a/pages/wallet/recharge.vue b/pages/wallet/recharge.vue
index 9511d5d..e94255c 100644
--- a/pages/wallet/recharge.vue
+++ b/pages/wallet/recharge.vue
@@ -116,7 +116,7 @@ export default {
iosPaylist: [{
title: "IAP 支付",
id: 3,
- imgUrl: require("@/static/icon/pay_2.png"),
+ imgUrl: require("@/static/icon/icon_IAP.png"),
}, ],
transaction: {
// 成功回调
@@ -280,7 +280,7 @@ export default {
});
const that = this;
let IAPOrders = [];
- IAPOrders.push('s' + that.stepsCj.priceTypeId);
+ IAPOrders.push('x' + that.stepsCj.priceTypeId);
// 新建订单
uni.showLoading({
title: "正在创建订单",
@@ -325,7 +325,7 @@ export default {
orderId: result.payment.username, // 系统订单号
receiptData: result.transactionReceipt, // 苹果返回收据
// sandBox: true, //测试数据
- // body: that.stepsCj.priceTypeId // 充值类型id
+ // body: that.stepsCj.priceTypeId //充值类型id
};
$http
.request({
@@ -345,11 +345,17 @@ export default {
icon: 'success'
})
// 服务器验证票据有效后在客户端关闭订单 (iapChannel.finishTransaction)
- //that.finishTransaction(result);
+ that.finishTransaction(result);
+ setTimeout(() => {
+ uni.switchTab({
+ url: '/pages/my/index'
+ })
+ }, 2000);
}
})
.catch((e) => {
uni.hideLoading()
+ that.finishTransaction(result);
uni.showModal({
title: "提示",
showCancel: false,
@@ -360,7 +366,6 @@ export default {
}
},
});
- //that.finishTransaction(result);
}, )
},
getDevName() {
@@ -428,14 +433,6 @@ export default {
let that = this;
that.payType = e;
},
- //ios充值
- iosPay() {
- // 苹果内购实现思路:
- // 1.先确认支付通道是否包含苹果内购
- // 2.检查一下是否存在上次未处理完的订单(主要是支付成功没有走回调的订单),异常订单直接关闭掉,成功没有走回调的提交给后台进行验证
- // 3.请求并创建新的订单
- this.iphonepay();
- },
// 充值
goToPay() {
this.kaiChar();
@@ -540,8 +537,7 @@ export default {
}
});
} else if (that.payType == 3) {
- console.log("苹果支付");
- that.iosPay();
+ that.iphonepay();
}
}
});
diff --git a/static/icon/icon_IAP.png b/static/icon/icon_IAP.png
new file mode 100644
index 0000000..8ba6280
Binary files /dev/null and b/static/icon/icon_IAP.png differ