|
@@ -143,9 +143,8 @@
|
|
|
</view>
|
|
|
<view class="product-intro" id="past3">
|
|
|
<view class="title">{{ $t(`产品介绍`) }}</view>
|
|
|
- <u-album :urls="storeInfo.detailImgUrlList" :rowCount="1"
|
|
|
- :multipleSize="albumWidth" maxCount="9999"
|
|
|
- multipleMode="widthFix"></u-album>
|
|
|
+ <u-album :urls="storeInfo.detailImgUrlList" :rowCount="1" :multipleSize="albumWidth"
|
|
|
+ maxCount="9999" multipleMode="widthFix"></u-album>
|
|
|
<!-- <view class="conter">
|
|
|
<u--image :src="item" v-for="(item, index) in
|
|
|
storeInfo.detailImgUrlList" width="100%" mode="heightFix"
|
|
@@ -459,6 +458,7 @@ export default {
|
|
|
sharePacket: {
|
|
|
isCanShare: false, //是否可以分享
|
|
|
isState: false, //默认不显示
|
|
|
+ isFristUrl: true
|
|
|
}, //分销商详细
|
|
|
circular: false,
|
|
|
autoplay: false,
|
|
@@ -521,10 +521,10 @@ export default {
|
|
|
handler: function (newV, oldV) {
|
|
|
if (newV == true) {
|
|
|
uni.navigateTo({
|
|
|
- url: "/pages/goods_details/index?id="
|
|
|
- + this.$Cache.get('GOOD_ID_LOGIN')
|
|
|
- + "&inviteCode=" + this.$Cache.get('INVITE_CODE_LOGIN')
|
|
|
- + "&zoneType=" + 8
|
|
|
+ url: "/pages/goods_details/index?id="
|
|
|
+ + this.$Cache.get('GOOD_ID_LOGIN')
|
|
|
+ + "&inviteCode=" + this.$Cache.get('INVITE_CODE_LOGIN')
|
|
|
+ + "&zoneType=" + 8
|
|
|
})
|
|
|
// this.$forceUpdate()
|
|
|
// this.id = this.$Cache.get('GOOD_ID_LOGIN')
|
|
@@ -688,7 +688,7 @@ export default {
|
|
|
this.currentPage = !this.currentPage
|
|
|
},
|
|
|
methods: {
|
|
|
- openImg (index){
|
|
|
+ openImg(index) {
|
|
|
uni.previewImage({
|
|
|
current: index,
|
|
|
urls: this.storeInfo.detailImgUrlList,
|
|
@@ -1067,9 +1067,9 @@ export default {
|
|
|
type: 1
|
|
|
}).then(res => {
|
|
|
this.attrAddrValue = res.data
|
|
|
- if(this.attrAddrValue.id){
|
|
|
+ if (this.attrAddrValue.id) {
|
|
|
this.getAvailableCheck()
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
this.DefaultSelect();
|
|
|
}
|
|
|
})
|
|
@@ -1308,10 +1308,10 @@ export default {
|
|
|
if (res.success) {
|
|
|
uni.navigateTo({
|
|
|
url: "/pages/goods/order_confirm/index?num=" + that.attr.productSelect.totalSales + "&productId=" +
|
|
|
- that.attr.productSelect.id
|
|
|
+ that.attr.productSelect.id
|
|
|
+ "&freight=" + res.data.freight
|
|
|
- + "&addressId=" + that.attrAddrValue.id
|
|
|
- + "&goodsSpecId=" + that.attr.attrValueId
|
|
|
+ + "&addressId=" + that.attrAddrValue.id
|
|
|
+ + "&goodsSpecId=" + that.attr.attrValueId
|
|
|
+ "&obtainIntegral=" + that.storeInfo.obtainIntegral,
|
|
|
});
|
|
|
} else {
|
|
@@ -1388,22 +1388,37 @@ export default {
|
|
|
*/
|
|
|
listenerActionSheet() {
|
|
|
this.currentPage = false
|
|
|
- console.log(this.isLogin);
|
|
|
if (this.isLogin === false) {
|
|
|
toLogin();
|
|
|
} else {
|
|
|
// 校验是否可以分享(先购买产品)
|
|
|
if (!this.sharePacket.isCanShare) {
|
|
|
postLinkedUrl().then(res => {
|
|
|
- uni.showShareMenu();
|
|
|
- this.sharePacket.isCanShare = true
|
|
|
- //判断是否为自己的要求码进入
|
|
|
- if (this.promotionNo !== res.data.promotionNo) {
|
|
|
- if (this.promotionNo) {
|
|
|
- this.$Cache.set('INVITE_CODE', res.data.promotionNo);
|
|
|
+ if (res.msg == '暂无承载数据') {
|
|
|
+ if (this.sharePacket.isFristUrl){
|
|
|
+ if (this.promotionNo) {
|
|
|
+ this.$Cache.set('INVITE_CODE', this.promotionNo);
|
|
|
+ }else{
|
|
|
+ this.$Cache.set('INVITE_CODE', '');
|
|
|
+ }
|
|
|
+ this.sharePacket.isFristUrl = false
|
|
|
+ }else{
|
|
|
+ this.$util.Tips({
|
|
|
+ title: this.$t(`请先购买共富1580商品`),
|
|
|
+ });
|
|
|
}
|
|
|
+ } else {
|
|
|
+ uni.showShareMenu();
|
|
|
+ this.sharePacket.isCanShare = true
|
|
|
+ //判断是否为自己的要求码进入
|
|
|
+ if (this.promotionNo !== res.data.promotionNo) {
|
|
|
+ if (this.promotionNo) {
|
|
|
+ this.$Cache.set('INVITE_CODE', res.data.promotionNo);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.promotionShare = res.data.promotionNo
|
|
|
}
|
|
|
- this.promotionShare = res.data.promotionNo
|
|
|
+
|
|
|
// this.downloadFilePromotionCode();
|
|
|
// this.posters = true;
|
|
|
})
|