|
|
@@ -11,7 +11,7 @@
|
|
|
<div
|
|
|
@click="$router.back()"
|
|
|
class="iconfont icon-xiangzuo"
|
|
|
- style="color: #000000; font-size: 20px; padding-right: 35px;"
|
|
|
+ style="color: #000000; font-size: 20px; padding-right: 0.3rem"
|
|
|
></div>
|
|
|
<div
|
|
|
class="item"
|
|
|
@@ -22,6 +22,7 @@
|
|
|
>
|
|
|
{{ item }}
|
|
|
</div>
|
|
|
+ <div style="width: 0.6rem"> </div>
|
|
|
</div>
|
|
|
<div id="title0">
|
|
|
<product-con-swiper
|
|
|
@@ -185,11 +186,11 @@
|
|
|
</div>
|
|
|
<user-evaluation :reply="reply" v-if="replyCount"></user-evaluation>
|
|
|
</div>
|
|
|
- <div class="product-intro" id="title3">
|
|
|
+ <div class="product-intro" id="title2">
|
|
|
<div class="title">产品介绍</div>
|
|
|
<div class="conter" v-html="storeInfo.description"></div>
|
|
|
</div>
|
|
|
- <div class="superior" v-if="goodList.length > 0" id="title2">
|
|
|
+ <div class="superior" v-if="goodList.length > 0" id="title3">
|
|
|
<div class="title acea-row row-center-wrapper">
|
|
|
<img src="@assets/images/ling.png" />
|
|
|
<div class="titleTxt">优品推荐</div>
|
|
|
@@ -238,6 +239,7 @@
|
|
|
<div class="footer acea-row row-between-wrapper">
|
|
|
<div class="item" @click="$router.push({ path: '/customer/list/' + id })">
|
|
|
<div class="iconfont icon-kefu"></div>
|
|
|
+
|
|
|
<div>客服</div>
|
|
|
</div>
|
|
|
<div class="item" @click="setCollect">
|
|
|
@@ -267,7 +269,9 @@
|
|
|
<div class="buy bg-color-hui" v-else>已售罄</div>
|
|
|
<div class="share" v-if="isVip" @click="listenerActionSheet">
|
|
|
<div class="top">分享</div>
|
|
|
- <div class="down">赚:¥{{ storeInfo.price - storeInfo.vip_price }}</div>
|
|
|
+ <div class="down">
|
|
|
+ 赚:¥{{ storeInfo.price - storeInfo.vip_price }}
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -700,7 +704,8 @@ export default {
|
|
|
storeSelfMention: true,
|
|
|
storeItems: {},
|
|
|
activity: [],
|
|
|
- isVip: false
|
|
|
+ isVip: false,
|
|
|
+ userInfo: null
|
|
|
};
|
|
|
},
|
|
|
computed: mapGetters(["isLogin"]),
|
|
|
@@ -728,12 +733,12 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
updateVIP() {
|
|
|
- var userinfo = this.$store.state.app.userInfo;
|
|
|
+ this.userInfo = this.$store.state.app.userInfo;
|
|
|
if (this.$store.state.app.token) {
|
|
|
getUserInfo().then(res => {
|
|
|
- userinfo = res.data;
|
|
|
- this.isVip = userinfo.vip_level > 1;
|
|
|
- console.log("Current VIP:", userinfo.vip_level);
|
|
|
+ this.userInfo = res.data;
|
|
|
+ this.isVip = this.userInfo.vip_level > 1;
|
|
|
+ console.log("Current VIP:", this.userInfo.vip_level);
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
|
@@ -779,6 +784,7 @@ export default {
|
|
|
this.opacity = opacity;
|
|
|
},
|
|
|
asideTap(a) {
|
|
|
+ console.log(a);
|
|
|
this.$nextTick(() => {
|
|
|
let index = a;
|
|
|
this.navActive = index;
|
|
|
@@ -917,15 +923,21 @@ export default {
|
|
|
this.posters = false;
|
|
|
console.log("todo wechat friend");
|
|
|
// todo wechat send to friend
|
|
|
-
|
|
|
var data = this.storeInfo;
|
|
|
+ var shareUrl =
|
|
|
+ "http://www.shotshock.shop/mobile/share?uri=/detail/" + data.id;
|
|
|
+ if (this.userInfo != null) {
|
|
|
+ shareUrl += "&sp=" + this.userInfo.uid;
|
|
|
+ }
|
|
|
+
|
|
|
var message = {
|
|
|
title: data.store_name,
|
|
|
description: data.store_info,
|
|
|
thumb: data.image,
|
|
|
media: {
|
|
|
+ // eslint-disable-next-line no-undef
|
|
|
type: Wechat.Type.WEBPAGE,
|
|
|
- webpageUrl: "http://www.shotshock.shop/"
|
|
|
+ webpageUrl: shareUrl
|
|
|
}
|
|
|
};
|
|
|
WeChat.shareLink(message, function(success) {
|
|
|
@@ -948,14 +960,19 @@ export default {
|
|
|
this.posters = false;
|
|
|
console.log("todo wechat friends");
|
|
|
|
|
|
- var data = this.storeInfo;
|
|
|
+ var shareUrl =
|
|
|
+ "http://www.shotshock.shop/mobile/share?uri=/detail/" + data.id;
|
|
|
+ if (this.userInfo != null) {
|
|
|
+ shareUrl += "&sp=" + this.userInfo.uid;
|
|
|
+ }
|
|
|
+
|
|
|
var message = {
|
|
|
title: data.store_name,
|
|
|
description: data.store_info,
|
|
|
thumb: data.image,
|
|
|
media: {
|
|
|
type: Wechat.Type.WEBPAGE,
|
|
|
- webpageUrl: "http://www.shotshock.shop"
|
|
|
+ webpageUrl: shareUrl
|
|
|
}
|
|
|
};
|
|
|
WeChat.shareLink(
|
|
|
@@ -1005,7 +1022,7 @@ export default {
|
|
|
that.$set(that, "goodList", goodArray);
|
|
|
let navList = ["商品", "评价", "详情"];
|
|
|
if (goodArray.length) {
|
|
|
- navList.splice(2, 0, "推荐");
|
|
|
+ navList.splice(3, 0, "推荐");
|
|
|
}
|
|
|
that.navList = navList;
|
|
|
that.updateTitle();
|