|
@@ -116,14 +116,23 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
goCourse() {
|
|
|
+ if (this.isHaveJy) {
|
|
|
+ uni.reLaunch({
|
|
|
+ url: "/pages/information/index",
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
uni.switchTab({
|
|
|
url: "/pages/course/index",
|
|
|
});
|
|
|
},
|
|
|
goOrder() {
|
|
|
- // uni.redirectTo({
|
|
|
- // url: '/pages2/order/index?current=1'
|
|
|
- // });
|
|
|
+ if (this.isHaveJy) {
|
|
|
+ uni.redirectTo({
|
|
|
+ url: "/pages2/wd/stuff",
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
uni.switchTab({
|
|
|
url: "/pages/learn/index",
|
|
|
});
|
|
@@ -143,7 +152,12 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
onReachBottom() {},
|
|
|
- computed: { ...mapGetters(["userInfo", "shoppingCartList", "config"]) },
|
|
|
+ computed: {
|
|
|
+ ...mapGetters(["userInfo", "shoppingCartList", "config"]),
|
|
|
+ isHaveJy() {
|
|
|
+ return this.shoppingCartList.some((e) => e.goodsType == 8);
|
|
|
+ },
|
|
|
+ },
|
|
|
};
|
|
|
</script>
|
|
|
<style>
|