feat: “会员优选”商品卡片点击不再跳转到商品详情页
This commit is contained in:
+2
-1
@@ -12,4 +12,5 @@
|
||||
- 我的社员ui重构
|
||||
- 粉色卡默认false所有页面统一调整
|
||||
- 选品广场结算返回到我的店铺页
|
||||
- 点底部 tab 的“AI店铺”时没开通就不跳转并提示
|
||||
- 点底部 tab 的`AI店铺`时没开通就不跳转并提示
|
||||
- `会员优选`商品卡片点击不再跳转到商品详情页
|
||||
@@ -9,7 +9,7 @@
|
||||
>
|
||||
<view
|
||||
class="shrink"
|
||||
@click="utils.go('/pages/goods/info', { id: props.data.id })"
|
||||
@click="onCardClick"
|
||||
:class="{
|
||||
goodsImg1: props.type == 1,
|
||||
goodsImg2: props.type == 2,
|
||||
@@ -22,7 +22,7 @@
|
||||
mode="aspectFill"
|
||||
/>
|
||||
</view>
|
||||
<view class="goodItem" :class="{itemBg: props.type == 1}" @click="utils.go('/pages/goods/info', { id: props.data.id })">
|
||||
<view class="goodItem" :class="{ itemBg: props.type == 1 }" @click="onCardClick">
|
||||
<view class="wrap">
|
||||
<view
|
||||
class="title "
|
||||
@@ -124,6 +124,14 @@
|
||||
},
|
||||
);
|
||||
let showSelectSku = ref(false);
|
||||
const goDetail = () => {
|
||||
sheep.$router.go('/pages/goods/info', { id: props.data.id });
|
||||
};
|
||||
|
||||
const onCardClick = () => {
|
||||
if (props.memberPreferred) return;
|
||||
goDetail();
|
||||
};
|
||||
const buyMemberGoods = () => {
|
||||
uni.navigateTo({
|
||||
url: `/pages/AI/giftOrder?id=${props.data.id}`,
|
||||
|
||||
Reference in New Issue
Block a user