Commit fbb3022e2375612484d2d757973e23583eecbe5c

Authored by zhiyangdu
1 parent 6cea6c57

党建积分商城优化

src/components/addressModal/addressModal.vue
@@ -72,7 +72,6 @@ export default { @@ -72,7 +72,6 @@ export default {
72 }, 72 },
73 props: ["options"], 73 props: ["options"],
74 created () { 74 created () {
75 - console.log(this.defaultOptions)  
76 }, 75 },
77 methods: { 76 methods: {
78 77
src/pages/addressList/addressList.vue
@@ -128,9 +128,9 @@ export default { @@ -128,9 +128,9 @@ export default {
128 * @param {Object} res [扩展参数] 128 * @param {Object} res [扩展参数]
129 */ 129 */
130 getMyAddressCallback (res, ext) { 130 getMyAddressCallback (res, ext) {
  131 + Indicator.close();
131 // 返回处理 132 // 返回处理
132 if (res.code == 200) { 133 if (res.code == 200) {
133 - Indicator.close();  
134 // 解构数据 134 // 解构数据
135 let datas = res.data; 135 let datas = res.data;
136 // 添加加星电话号码 136 // 添加加星电话号码
@@ -239,7 +239,8 @@ export default { @@ -239,7 +239,8 @@ export default {
239 doCreate () { 239 doCreate () {
240 // 跳转添加收货地址页面 240 // 跳转添加收货地址页面
241 this.$router.push({ 241 this.$router.push({
242 - path: "addressCreate" 242 + path: "addressCreate",
  243 + uid: this.getStore("uid")
243 }) 244 })
244 }, 245 },
245 246
@@ -276,7 +277,8 @@ export default { @@ -276,7 +277,8 @@ export default {
276 this.$router.push({ 277 this.$router.push({
277 path: "addressEdit", 278 path: "addressEdit",
278 query: { 279 query: {
279 - id: item.id 280 + id: item.id,
  281 + uid: this.getStore("uid")
280 } 282 }
281 }) 283 })
282 }, 284 },
src/pages/partyBuildingGoodDetails/partyBuildingGoodDetails.vue
@@ -518,17 +518,18 @@ export default { @@ -518,17 +518,18 @@ export default {
518 if (res.code == 200) { 518 if (res.code == 200) {
519 // 解构数据 519 // 解构数据
520 let datas = res.data; 520 let datas = res.data;
521 -  
522 - // 设置当前地址对象  
523 - this.$set(this, 'currentAddress', datas);  
524 -  
525 - // 校验用户登录信息  
526 - if (datas.uid === this.getStore("uid")) {  
527 - // 显示填写地址浮层  
528 - this.$refs.addressModal.showLayer();  
529 - // 同步当前选中的地址信息  
530 - window.localStorage.setItem('currentAddress', JSON.stringify(datas));  
531 - } 521 + if (datas) {
  522 + // 设置当前地址对象
  523 + this.$set(this, 'currentAddress', datas);
  524 +
  525 + // 校验用户登录信息
  526 + if (datas.uid === this.getStore("uid")) {
  527 + // 显示填写地址浮层
  528 + this.$refs.addressModal.showLayer();
  529 + // 同步当前选中的地址信息
  530 + window.localStorage.setItem('currentAddress', JSON.stringify(datas));
  531 + }
  532 + }
532 } 533 }
533 534
534 // 设置地址浮层参数 535 // 设置地址浮层参数
@@ -572,6 +573,8 @@ export default { @@ -572,6 +573,8 @@ export default {
572 this.$set(this.addressModalOptions, 'cancelButtonCallback', this.$refs.addressModal.hideLayer); 573 this.$set(this.addressModalOptions, 'cancelButtonCallback', this.$refs.addressModal.hideLayer);
573 } 574 }
574 console.log(this.addressModalOptions); 575 console.log(this.addressModalOptions);
  576 + // 显示填写地址浮层
  577 + this.$refs.addressModal.showLayer();
575 } 578 }
576 }); 579 });
577 }, 580 },
@@ -585,7 +588,8 @@ export default { @@ -585,7 +588,8 @@ export default {
585 this.$router.push({ 588 this.$router.push({
586 path: "/addressList", 589 path: "/addressList",
587 query: { 590 query: {
588 - mode: 'select_edit' 591 + mode: 'select_edit',
  592 + uid: this.getStore("uid")
589 } 593 }
590 }); 594 });
591 } 595 }
src/pages/partyBuildingPointsMall/partyBuildingPointsMall.vue
@@ -35,7 +35,7 @@ @@ -35,7 +35,7 @@
35 </div> 35 </div>
36 </div> 36 </div>
37 <!--积分赚取 --> 37 <!--积分赚取 -->
38 - <div class="earn_points_box"> 38 + <!-- <div class="earn_points_box">
39 <img class="earn_icon" 39 <img class="earn_icon"
40 src="static/img/points_icon_pice.png" 40 src="static/img/points_icon_pice.png"
41 alt=""> 41 alt="">
@@ -44,7 +44,7 @@ @@ -44,7 +44,7 @@
44 class="btn">赚积分 <img class="earn_right_back" 44 class="btn">赚积分 <img class="earn_right_back"
45 src="static/img/points_icon_white_right.png" 45 src="static/img/points_icon_white_right.png"
46 alt="" /></div> 46 alt="" /></div>
47 - </div> 47 + </div> -->
48 </div> 48 </div>
49 <div class="gift_main_box" 49 <div class="gift_main_box"
50 v-if="phyicalGoods && phyicalGoods.list && phyicalGoods.list.length" 50 v-if="phyicalGoods && phyicalGoods.list && phyicalGoods.list.length"
@@ -222,7 +222,8 @@ export default { @@ -222,7 +222,8 @@ export default {
222 this.$router.push({ 222 this.$router.push({
223 path: "/partyBuildingGoodDetails", 223 path: "/partyBuildingGoodDetails",
224 query: { 224 query: {
225 - goodsId: item.id 225 + goodsId: item.id,
  226 + uid: this.$route.query.uid
226 } 227 }
227 }); 228 });
228 } 229 }
@@ -231,24 +232,24 @@ export default { @@ -231,24 +232,24 @@ export default {
231 * 跳转赚取积分页面 232 * 跳转赚取积分页面
232 * @param {Object} item [数据对象] 233 * @param {Object} item [数据对象]
233 */ 234 */
234 - jumpClientIntegralList () {  
235 - // 判断APP内  
236 - if (this.isCNLive.value) {  
237 - // 校验登录  
238 - if (this.$parent.checkLogin()) {  
239 - // (判断app内是否有该方法)  
240 - if (window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.jumpClientIntegralList) {  
241 - // 跳转到原生的任务列表  
242 - window.webkit.messageHandlers.jumpClientIntegralList.postMessage({ body: {} });  
243 - } else if (window.obj && window.obj.jumpClientIntegralList) {  
244 - // 跳转到原生的任务列表  
245 - window.obj.jumpClientIntegralList();  
246 - }  
247 - }  
248 - } else {  
249 - this.$parent.callApp();  
250 - }  
251 - }, 235 + // jumpClientIntegralList () {
  236 + // // 判断APP内
  237 + // if (this.isCNLive.value) {
  238 + // // 校验登录
  239 + // if (this.$parent.checkLogin()) {
  240 + // // (判断app内是否有该方法)
  241 + // if (window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.jumpClientIntegralList) {
  242 + // // 跳转到原生的任务列表
  243 + // window.webkit.messageHandlers.jumpClientIntegralList.postMessage({ body: {} });
  244 + // } else if (window.obj && window.obj.jumpClientIntegralList) {
  245 + // // 跳转到原生的任务列表
  246 + // window.obj.jumpClientIntegralList();
  247 + // }
  248 + // }
  249 + // } else {
  250 + // this.$parent.callApp();
  251 + // }
  252 + // },
252 // 积分商场首页 253 // 积分商场首页
253 /** 254 /**
254 * 获取积分商场首页信息 255 * 获取积分商场首页信息
@@ -356,6 +357,8 @@ export default { @@ -356,6 +357,8 @@ export default {
356 // 获取积分商城商品信息接口 357 // 获取积分商城商品信息接口
357 this.integralMallIndex(); 358 this.integralMallIndex();
358 } 359 }
  360 + window.localStorage.removeItem('currentAddress');
  361 + window.localStorage.removeItem('addressModalIsShow');
359 }, 362 },
360 mounted () { 363 mounted () {
361 // 如果是App外,设置唤起App和微信内分享参数 364 // 如果是App外,设置唤起App和微信内分享参数