Commit e66d74d6 authored by zhengke's avatar zhengke

修改

parent b0bbdd6e
......@@ -12,7 +12,7 @@
@click="previewImage"
></u-swiper>
<!-- TODO 分销价格未做 is_share_price -->
<view class="is_share" v-if="g.share > 0">
<view class="is_share" v-if="g.share > 0" style="top:240px;">
<image
src="@/static/images/icon/WechatIMG424.png"
style="width: 20px; margin-left: 12px; opacity: 1;"
......@@ -32,6 +32,26 @@
<Text>{{ g.share }}</Text>
</view>
</view>
<view class="is_share" v-if="g.myBuyCommission>0">
<image
src="@/static/images/icon/WechatIMG424.png"
style="width: 20px; margin-left: 12px; opacity: 1;"
mode="widthFix"
/>
<view
style="
display: flex;
flex-direction: column;
margin-left: 8px;
font-size: 11px;
color: #fff;
opacity: 1;
"
>
<Text>自购最高返利</Text>
<Text>{{ g.myBuyCommission }}</Text>
</view>
</view>
</view>
<view class="g-info">
<view class="g-name u-skeleton-rect">{{ g.name }}</view>
......@@ -330,16 +350,18 @@ export default {
uni.setStorageSync("pid", { pid: option.user_id });
}
this.u = uni.getStorageSync("mall_UserInfo");
if (!this.u) {
this.u = {
nickName: "未登录",
avatarUrl: "",
};
this.showAuth = true;
} else {
// if (!this.u) {
// this.u = {
// nickName: "未登录",
// avatarUrl: "",
// };
// this.showAuth = true;
// } else {
// this.init();
// this.initPage();
// }
this.init();
this.initPage();
}
this.mc = this.$uiConfig.mainColor;
this.secondary = this.$uiConfig.secondary;
......@@ -465,9 +487,13 @@ export default {
// );
this.detailContent = richtext;
this.loading = false;
//登录在调用评论接口
if (this.u) {
this.initComments();
this.initRecommend();
this.setFootMarkInfo(res.data.goods.id);
}
this.initRecommend();
} else {
this.isExsitGoods = false;
}
......@@ -506,6 +532,7 @@ export default {
(res) => {
console.log(res, "pinglun");
this.comments = res.data.pageData;
// this.initRecommend();
}
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment