Authored by 陈轩

Merge branch 'release/5.2' of http://git.yoho.cn/fe/yohobuywap-node into release/5.2

@@ -21,6 +21,7 @@ const getPageInfo = (pageInfo) => { @@ -21,6 +21,7 @@ const getPageInfo = (pageInfo) => {
21 dest.oldUserCouponPic = pageInfo.data.oldUserCouponPic; 21 dest.oldUserCouponPic = pageInfo.data.oldUserCouponPic;
22 dest.mobile = pageInfo.data.mobile; 22 dest.mobile = pageInfo.data.mobile;
23 dest.wechatShare = true; 23 dest.wechatShare = true;
  24 + dest.secondScreenPic = pageInfo.data.secondScreenPic;
24 25
25 // 强制活动开始,活动上线产品要求这样设置 26 // 强制活动开始,活动上线产品要求这样设置
26 pageInfo.data.flag = 1; 27 pageInfo.data.flag = 1;
@@ -91,7 +92,7 @@ exports.getCoupon = (data) => { @@ -91,7 +92,7 @@ exports.getCoupon = (data) => {
91 method: 'wap.order.drawOrderShareCoupon' 92 method: 'wap.order.drawOrderShareCoupon'
92 }, 93 },
93 94
94 - // 处理完成后,发给后端 95 + // 处理完成后,发给后端
95 phoneData = Object.assign(defaultParam, data); 96 phoneData = Object.assign(defaultParam, data);
96 97
97 return api.get('', phoneData).then(result => { 98 return api.get('', phoneData).then(result => {
@@ -108,10 +109,10 @@ exports.registerAndSendCoupon = (data) => { @@ -108,10 +109,10 @@ exports.registerAndSendCoupon = (data) => {
108 method: 'wap.order.registerAndSendCoupon' 109 method: 'wap.order.registerAndSendCoupon'
109 }, 110 },
110 111
111 - // 处理完成后,发给后端 112 + // 处理完成后,发给后端
112 verifyData = Object.assign(defaultParam, data); 113 verifyData = Object.assign(defaultParam, data);
113 114
114 return api.get('', verifyData).then(result => { 115 return api.get('', verifyData).then(result => {
115 return getUserStatus(result); 116 return getUserStatus(result);
116 - }); // 所有数据返回一个 Promise,方便 Promise.all 调用  
117 -}; 117 + }); // 所有数据返回一个 Promise,方便 Promise.all 调用
  118 +};
@@ -2,6 +2,9 @@ @@ -2,6 +2,9 @@
2 <div class="receive-coupon-page"> 2 <div class="receive-coupon-page">
3 <div class="bg-contain"> 3 <div class="bg-contain">
4 <img src="{{image bgImg 640 1136}}"> 4 <img src="{{image bgImg 640 1136}}">
  5 + {{#if secondScreenPic}}
  6 + <img src="{{image secondScreenPic}}">
  7 + {{/if}}
5 </div> 8 </div>
6 <p class="hidden" id="orderCode">{{ordercode}}</p> 9 <p class="hidden" id="orderCode">{{ordercode}}</p>
7 <p class="hidden" id="oldUserCouponPic">{{image oldUserCouponPic}}</p> 10 <p class="hidden" id="oldUserCouponPic">{{image oldUserCouponPic}}</p>
@@ -91,7 +91,9 @@ const _searchGoods = (params) => { @@ -91,7 +91,9 @@ const _searchGoods = (params) => {
91 delete params.filter_poolId; 91 delete params.filter_poolId;
92 } 92 }
93 93
94 - if (params.brand) { 94 + if (params.shop_id) {
  95 + method = 'app.search.li';
  96 + } else if (params.brand) {
95 method = 'app.search.brand'; 97 method = 'app.search.brand';
96 } 98 }
97 99