免登录

This commit is contained in:
2024-10-09 10:38:59 +08:00
parent 14070f5402
commit 6bd1235e97
5 changed files with 1629 additions and 135 deletions

View File

@@ -33,7 +33,7 @@
<view class="goods_box">
<view class="curriulum_title_box">
<view v-if="this.options.isMiaosha==1" class="miaosha_box">
<view v-if="this.options.isMiaosha == 1" class="miaosha_box">
<view class="price_box">
<view class="price_left">
<template
@@ -103,7 +103,7 @@
</text>
</view>
<view class="curriulum_title" style="margin-top: 40rpx;"
<view class="curriulum_title" style="margin-top: 40rpx"
>{{ curriculumData.productName }}
</view>
</view>
@@ -405,7 +405,7 @@
textColor="#333"
lineColor="#b0b0b0"
></u-divider>
<view class="small_class_teaching_box" style="background-color: #B7E0E2">
<view class="small_class_teaching_box" style="background-color: #b7e0e2">
<view class="common_divider divider_box"> </view>
<common-rich-detail :detailInfo="detailInfo" style="padding: 10rpx">
@@ -524,7 +524,7 @@
@selectGoods="selectGoods"
@onHandleClickBuy="onHandleClickBuy"
></common-select-goods>
<u-popup
<u-popup
:show="showInfo"
mode="bottom"
@close="closeShowInfo"
@@ -715,7 +715,7 @@ export default {
urlList: {
list: "app/phone.do?getCourseDetail_new",
curriculumInfo: "app/phone.do?getCourseInfo",
detailInfo: "sociology/product/getProductDetail",
goodsList: "book/shopproduct/getGlProductList",
},
customButtonGroup1: [
@@ -799,6 +799,11 @@ export default {
// this.searchList = []
},
onShow() {
if (this.options.type == "visitor") {
this.urlList.detailInfo = "visitor/getProductDetail";
} else {
this.urlList.detailInfo = "sociology/product/getProductDetail";
}
this.selectGoodsData = {};
this.getCourseDescriptionData();
this.show = false;
@@ -814,8 +819,24 @@ export default {
this.showInfo = true;
},
openPopup() {
if (this.options.type == "visitor") {
console.log("this.options.type at line 1090:", this.options.type);
uni.showModal({
content: "登陆后可购买本商品",
confirmText: "去登录",
cancelText: "再逛逛", confirmColor:'#018f89',//确定按钮颜色
success(res) {
if (res.confirm) {
uni.navigateTo({
url: "/pages/user/login/login",
});
}
},
});
return;
}
// this.selectGoodsData = this.goodsList[0];
this.$refs.commonSelectGoods.open()
this.$refs.commonSelectGoods.open();
// this.show = true;
this.$forceUpdate();
},
@@ -823,13 +844,45 @@ export default {
this.show = false;
},
selectGoods(data) {
if (this.options.type == "visitor") {
console.log("this.options.type at line 1090:", this.options.type);
uni.showModal({
content: "登陆后可购买本商品",
confirmText: "去登录",
cancelText: "再逛逛", confirmColor:'#018f89',//确定按钮颜色
success(res) {
if (res.confirm) {
uni.navigateTo({
url: "/pages/user/login/login",
});
}
},
});
return;
}
this.selectGoodsData = data;
this.$refs.commonSelectGoods.open()
this.$refs.commonSelectGoods.open();
// this.show = true;
this.$forceUpdate();
},
onHandleClickBuy1() {
if (this.options.type == "visitor") {
console.log("this.options.type at line 1090:", this.options.type);
uni.showModal({
content: "登陆后可购买本商品",
confirmText: "去登录",
cancelText: "再逛逛", confirmColor:'#018f89',//确定按钮颜色
success(res) {
if (res.confirm) {
uni.navigateTo({
url: "/pages/user/login/login",
});
}
},
});
return;
}
this.$refs.commonSelectGoods.open();
// this.show = true;
},
@@ -844,7 +897,9 @@ export default {
productImages: this.selectGoodsData.productImages,
productId: this.selectGoodsData.productId,
productName: this.selectGoodsData.productName,
price: this.selectGoodsData.activityPrice?this.selectGoodsData.activityPrice:this.selectGoodsData.price,
price: this.selectGoodsData.activityPrice
? this.selectGoodsData.activityPrice
: this.selectGoodsData.price,
goodsType: this.selectGoodsData.goodsType,
},
],
@@ -1462,7 +1517,7 @@ export default {
</script>
<style lang="scss" scoped>
@import '@/style/mixin.scss';
@import "@/style/mixin.scss";
.u-grid-list {
// height: 40rpx;
}
@@ -1747,7 +1802,7 @@ export default {
background: #cef8ea;
text-align: center;
border-radius: 10rpx;
box-shadow: 0px 0px 6rpx 0px #E9DCCC;
box-shadow: 0px 0px 6rpx 0px #e9dccc;
}
}
@@ -2058,7 +2113,6 @@ export default {
padding-right: 0 !important;
}
.parameterList {
/deep/.list_item {
// border-bottom: none;