Authored by htoooth

fix

@@ -214,7 +214,7 @@ Page(Object.assign({ @@ -214,7 +214,7 @@ Page(Object.assign({
214 llimitProductCode: this.data.limitProductCode 214 llimitProductCode: this.data.limitProductCode
215 }; 215 };
216 216
217 - let product_qrCode = config.domains.api + `/wechat/miniapp/img-check.jpg?param=${stringify(params)}&miniapp_type=4&miniQrType=11`; // eslint-disable-line 217 + let product_qrCode = config.domains.api + `/wechat/miniapp/img-check.jpg?param=${JSON.stringify(params)}&miniapp_type=4&miniQrType=11`; // eslint-disable-line
218 218
219 let snapData = { 219 let snapData = {
220 product_name: res.data.productName, 220 product_name: res.data.productName,
@@ -260,10 +260,10 @@ Page(Object.assign({ @@ -260,10 +260,10 @@ Page(Object.assign({
260 260
261 let assisStatus = ASSIS_STATUS.SHARE; 261 let assisStatus = ASSIS_STATUS.SHARE;
262 262
263 - if (this.assisLimit === result.data.list.length) { 263 + if (this.data.assisLimit === result.data.list.length) {
264 assisStatus = ASSIS_STATUS.ASSIS_FULL; 264 assisStatus = ASSIS_STATUS.ASSIS_FULL;
265 } else { 265 } else {
266 - if (this.originUid) { 266 + if (this.data.originUid) {
267 assisStatus = ASSIS_STATUS.ASSIS_ACTION; 267 assisStatus = ASSIS_STATUS.ASSIS_ACTION;
268 } else { 268 } else {
269 assisStatus = ASSIS_STATUS.UN_ASSIS; 269 assisStatus = ASSIS_STATUS.UN_ASSIS;
@@ -340,7 +340,7 @@ Page(Object.assign({ @@ -340,7 +340,7 @@ Page(Object.assign({
340 340
341 } else if (result.code === 401) { 341 } else if (result.code === 401) {
342 this.setData({ 342 this.setData({
343 - assisSuccess: ASSIS_SUCCESS.ok 343 + assisSuccess: ASSIS_SUCCESS.repeat
344 }); 344 });
345 } else { 345 } else {
346 this.showError(); 346 this.showError();
@@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
15 </view> 15 </view>
16 <view class="advanceTitle">{{reminderNum}}人已关注</view> 16 <view class="advanceTitle">{{reminderNum}}人已关注</view>
17 </view> 17 </view>
18 - <view class="detail-btn">查看商品详情</view> 18 + <view class="detail-btn" bindtap="buyNow">查看商品详情</view>
19 </view> 19 </view>
20 <view class="line"></view> 20 <view class="line"></view>
21 <view class="detail-container"> 21 <view class="detail-container">
@@ -94,7 +94,7 @@ @@ -94,7 +94,7 @@
94 } 94 }
95 95
96 .action-list { 96 .action-list {
97 - width: 600rpx; 97 + width: 610rpx;
98 display: flex; 98 display: flex;
99 align-items: center; 99 align-items: center;
100 justify-content: space-between; 100 justify-content: space-between;
@@ -129,14 +129,14 @@ Page({ @@ -129,14 +129,14 @@ Page({
129 defaultImage = defaultImage.replace('http://', 'https://'); 129 defaultImage = defaultImage.replace('http://', 'https://');
130 } 130 }
131 131
132 - that.drawLongText('你的好友邀你为ta助力,购买限定商品', pCtx, 187.5 * scale, 50 * scale, 'black', 18, 20); 132 + that.drawLongText('你的好友邀你为ta助力,购买限定商品', pCtx, 187.5 * scale, 50 * scale, 'black', 17, 20);
133 133
134 wx.getImageInfo({ 134 wx.getImageInfo({
135 src: defaultImage, 135 src: defaultImage,
136 success: function(res) { 136 success: function(res) {
137 - pCtx.drawImage(res.path, 27 * scale, 60 * scale, 320 * scale, 279 * scale); 137 + pCtx.drawImage(res.path, 27 * scale, 70 * scale, 320 * scale, 279 * scale);
138 pCtx.setFillStyle('white'); 138 pCtx.setFillStyle('white');
139 - that.drawLongText(that.data.product_name, pCtx, 187.5 * scale, 352 * scale, 'black', 14, 20); 139 + that.drawLongText(that.data.product_name, pCtx, 187.5 * scale, 382 * scale, 'black', 14, 20);
140 pCtx.setTextAlign('center'); 140 pCtx.setTextAlign('center');
141 pCtx.setFontSize(18 * scale); 141 pCtx.setFontSize(18 * scale);
142 pCtx.draw(true); 142 pCtx.draw(true);
@@ -4,17 +4,17 @@ @@ -4,17 +4,17 @@
4 left: 0rpx; 4 left: 0rpx;
5 top: 0rpx; 5 top: 0rpx;
6 width: 750rpx; 6 width: 750rpx;
7 - height: 1206rpx; 7 + height: 100%;
8 background-color: rgba(0, 0, 0, 0.5); 8 background-color: rgba(0, 0, 0, 0.5);
9 flex-direction: column; 9 flex-direction: column;
10 z-index: 9999; 10 z-index: 9999;
11 } 11 }
12 12
13 .snapshoot-container .snapshoot-content { 13 .snapshoot-container .snapshoot-content {
14 - margin-top: 58rpx; 14 + margin-top: 100rpx;
15 margin-left: 105rpx; 15 margin-left: 105rpx;
16 width: 540rpx; 16 width: 540rpx;
17 - height: 960rpx; 17 + height: 1000rpx;
18 background-color: white; 18 background-color: white;
19 flex-direction: column; 19 flex-direction: column;
20 } 20 }
@@ -92,8 +92,8 @@ @@ -92,8 +92,8 @@
92 } 92 }
93 93
94 .product-qrcode { 94 .product-qrcode {
95 - width: 130rpx;  
96 - height: 130rpx; 95 + width: 180rpx;
  96 + height: 180rpx;
97 margin-top: 21rpx; 97 margin-top: 21rpx;
98 } 98 }
99 99
@@ -162,8 +162,8 @@ @@ -162,8 +162,8 @@
162 width: 460rpx; 162 width: 460rpx;
163 height: 400rpx; 163 height: 400rpx;
164 background-color: white; 164 background-color: white;
165 - box-shadow:5px 5px 3px rgba(0, 0, 0, 0.05);  
166 - border: 0.5rpx solid #e5e5e5; 165 + /* box-shadow:5px 5px 3px rgba(0, 0, 0, 0.05); */
  166 + /* border: 0.5rpx solid #e5e5e5; */
167 display: flex; 167 display: flex;
168 flex-direction: column; 168 flex-direction: column;
169 align-items: center; 169 align-items: center;
@@ -177,7 +177,7 @@ @@ -177,7 +177,7 @@
177 177
178 .product-info-content { 178 .product-info-content {
179 width: 100%; 179 width: 100%;
180 - height: 180rpx; 180 + height: 110rpx;
181 display: flex; 181 display: flex;
182 flex-direction: column; 182 flex-direction: column;
183 align-items: center; 183 align-items: center;
@@ -234,7 +234,7 @@ @@ -234,7 +234,7 @@
234 234
235 .snapshoot-bottom { 235 .snapshoot-bottom {
236 margin-left: 105rpx; 236 margin-left: 105rpx;
237 - margin-top: 50rpx; 237 + margin-top: 20%;
238 width: 540rpx; 238 width: 540rpx;
239 height: 88rpx; 239 height: 88rpx;
240 display: flex; 240 display: flex;
@@ -33,7 +33,7 @@ @@ -33,7 +33,7 @@
33 "list": [] 33 "list": []
34 }, 34 },
35 "miniprogram": { 35 "miniprogram": {
36 - "current": 2, 36 + "current": 6,
37 "list": [ 37 "list": [
38 { 38 {
39 "id": 0, 39 "id": 0,
@@ -70,6 +70,17 @@ @@ -70,6 +70,17 @@
70 "name": "情详页-好友助力", 70 "name": "情详页-好友助力",
71 "pathName": "pages/product/detail/detail", 71 "pathName": "pages/product/detail/detail",
72 "query": "limitProductCode=2018062115403668" 72 "query": "limitProductCode=2018062115403668"
  73 + },
  74 + {
  75 + "id": 6,
  76 + "name": "分享卡片进入小程序",
  77 + "pathName": "pages/product/detail/detail",
  78 + "query": "limitProductCode=2018062815591248&originUid=500031864",
  79 + "scene": "1037",
  80 + "referrerInfo": {
  81 + "appId": "wx084ab813d88c594b",
  82 + "extraData": "{}"
  83 + }
73 } 84 }
74 ] 85 ]
75 } 86 }
@@ -13,7 +13,7 @@ const appData = { @@ -13,7 +13,7 @@ const appData = {
13 yohobuy: { 13 yohobuy: {
14 appId: 'wx084ab813d88c594b', 14 appId: 'wx084ab813d88c594b',
15 page: { 15 page: {
16 - productDetail: '/pages/goodsDetail/goodsDetail', 16 + productDetail: 'pages/goodsDetail/goodsDetail',
17 brandDetail: '/pages/goodsList/brand', 17 brandDetail: '/pages/goodsList/brand',
18 guangDetail: 'pages/guang/detail' 18 guangDetail: 'pages/guang/detail'
19 } 19 }