|
@@ -137,10 +137,7 @@ export default {
|
|
|
this.$navTo.togo(`/pages2/appointment/index?goodsId=${v.goodsId}&gradeId=${v.gradeId}`);
|
|
|
}
|
|
|
if (int === 3) {
|
|
|
- uni.showModal({
|
|
|
- content: '待开发',
|
|
|
- showCancel: false
|
|
|
- });
|
|
|
+ this.appBeforeAddress(v.goodsId)
|
|
|
}
|
|
|
if (int === 4) {
|
|
|
this.$navTo.togo(`/pages2/learn/details?goodsId=${v.goodsId}&gradeId=${v.gradeId}`);
|
|
@@ -156,6 +153,25 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ appBeforeAddress(goodsId) {
|
|
|
+ this.$api.appBeforeAddress({
|
|
|
+ goodsId
|
|
|
+ }).then(res => {
|
|
|
+ if(res.data.code == 200) {
|
|
|
+ uni.navigateToMiniProgram({
|
|
|
+ appId: res.data.data.url,
|
|
|
+ success(res) {
|
|
|
+ // 打开成功
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ uni.showToast({
|
|
|
+ title: res.data.msg,
|
|
|
+ icon: 'none',
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
change(index) {
|
|
|
this.current = index;
|
|
|
}
|