游客模式
This commit is contained in:
@@ -110,7 +110,7 @@
|
||||
</u-row>
|
||||
</view>
|
||||
<!-- <view class="commodityIntroduce" v-html="productInfo.productDetails"> -->
|
||||
<view class="commodityIntroduce">
|
||||
<view class="commodityIntroduce">
|
||||
<view v-if="productInfo.productDetails">
|
||||
<rich-text v-if="productInfo.productDetails" class="xiangqing" @itemclick="showImg"
|
||||
:nodes="productInfo.productDetails|formatRichText"></rich-text>
|
||||
@@ -225,7 +225,7 @@
|
||||
options: [{
|
||||
icon: 'cart',
|
||||
text: '购物车'
|
||||
}],
|
||||
}],
|
||||
buttonGroup: [{
|
||||
text: '加入购物车',
|
||||
backgroundColor: 'linear-gradient(90deg, #FFCD1E, #FF8A18)',
|
||||
@@ -448,8 +448,18 @@
|
||||
url: '../peanut/shopping'
|
||||
});
|
||||
},
|
||||
|
||||
// 关联商品点击按钮组件
|
||||
buttonClickLink(e) {
|
||||
// 游客跳转
|
||||
if (uni.getStorageSync("anonymous") == '0000000000') {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '请先登录'
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
console.log('点击的是关联商品的组件')
|
||||
if (e.index == 0) {
|
||||
// 点击的是加入购物车
|
||||
@@ -484,6 +494,14 @@
|
||||
},
|
||||
// 点击按钮组间
|
||||
buttonClick(e) {
|
||||
// 游客跳转
|
||||
if (uni.getStorageSync("anonymous") == '0000000000') {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '请先登录'
|
||||
})
|
||||
return
|
||||
}
|
||||
// console.log(e)
|
||||
if (e.index == 0) {
|
||||
// 点击的是加入购物车
|
||||
|
||||
Reference in New Issue
Block a user