|
@@ -107,7 +107,7 @@
|
|
|
<view class="flex">
|
|
|
<view style="display: flex; align-items: center; width: 90%">
|
|
|
<view class="attr-txt"> 送至: </view>
|
|
|
- <view class="atterTxt line1" style="width: 82%">{{
|
|
|
+ <view class="atterTxt line1" style="width: 82%" v-if="attrAddrValue.id">{{
|
|
|
attrAddrValue.province + attrAddrValue.city + attrAddrValue.district +
|
|
|
attrAddrValue.detail
|
|
|
}}</view>
|
|
@@ -515,9 +515,15 @@ export default {
|
|
|
isLogin: {
|
|
|
handler: function (newV, oldV) {
|
|
|
if (newV == true) {
|
|
|
- console.log("受邀码:"+this.$Cache.get('INVITE_CODE_LOGIN'));
|
|
|
- this.id = this.$Cache.get('GOOD_ID_LOGIN')
|
|
|
- this.getGoodsDetails();
|
|
|
+ uni.navigateTo({
|
|
|
+ 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')
|
|
|
+ // this.getGoodsDetails();
|
|
|
// this.getCouponList();
|
|
|
// this.getCartCount();
|
|
|
// this.downloadFilePromotionCode();
|
|
@@ -538,9 +544,12 @@ export default {
|
|
|
immediate: true,
|
|
|
},
|
|
|
},
|
|
|
-
|
|
|
+ mounted() {
|
|
|
+ this.$forceUpdate()
|
|
|
+ },
|
|
|
onLoad(options) {
|
|
|
uni.hideShareMenu();
|
|
|
+ console.log("是否登录:" + this.isLogin);
|
|
|
// 判断是否登录
|
|
|
if (!this.isLogin) {
|
|
|
console.log("未登录的推荐码:" + options.inviteCode);
|
|
@@ -561,6 +570,7 @@ export default {
|
|
|
}, 1500);
|
|
|
} else {
|
|
|
console.log("受邀的推荐码:" + options.inviteCode);
|
|
|
+ console.log("受邀的商品id:" + options.id);
|
|
|
//1580 进入时
|
|
|
if (options.zoneType == 8) {
|
|
|
if (options.inviteCode) {
|
|
@@ -961,7 +971,7 @@ export default {
|
|
|
that.skuArr = storeInfo.goodsSpecList
|
|
|
that.$set(that, "storeInfo", storeInfo);
|
|
|
that.$set(that.attr, "productAttr", storeInfo.goodsSpecList);
|
|
|
- that.downloadFilestoreImage();
|
|
|
+ // that.downloadFilestoreImage();
|
|
|
that.getUserAddressByUserId()
|
|
|
setTimeout(function () {
|
|
|
that.infoScroll();
|
|
@@ -1042,7 +1052,11 @@ export default {
|
|
|
type: 1
|
|
|
}).then(res => {
|
|
|
this.attrAddrValue = res.data
|
|
|
- this.getAvailableCheck()
|
|
|
+ if(this.attrAddrValue.id){
|
|
|
+ this.getAvailableCheck()
|
|
|
+ }else{
|
|
|
+ this.DefaultSelect();
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
/**
|
|
@@ -1356,6 +1370,7 @@ export default {
|
|
|
*/
|
|
|
listenerActionSheet() {
|
|
|
this.currentPage = false
|
|
|
+ console.log(this.isLogin);
|
|
|
if (this.isLogin === false) {
|
|
|
toLogin();
|
|
|
} else {
|