Authored by 邱骏

Merge branch 'develop' of http://git.yoho.cn/fe/yoho-limited-sell-miniapp into develop

@@ -62,7 +62,7 @@ export default { @@ -62,7 +62,7 @@ export default {
62 }, 62 },
63 63
64 addQueue({uid, activityId, unionId}) { 64 addQueue({uid, activityId, unionId}) {
65 - return api.post({ 65 + return api.get({
66 url: '', 66 url: '',
67 data: { 67 data: {
68 method: 'app.drawline.addQueue', 68 method: 'app.drawline.addQueue',
1 Component({ 1 Component({
2 properties: { 2 properties: {
3 - // 这里定义了innerText属性,属性值可以在组件使用时指定  
4 - innerText: {  
5 - type: String,  
6 - value: 'default value',  
7 - }  
8 }, 3 },
9 data: { 4 data: {
10 - // 这里是一些组件内部数据  
11 - someData: {}  
12 }, 5 },
13 methods: { 6 methods: {
14 - // 这里是一个自定义方法  
15 - customMethod: function() {} 7 + cancel() {
  8 + this.triggerEvent('cancel');
  9 + }
16 } 10 }
17 }); 11 });
1 -<view class="modal-mask"></view> 1 +<view class="modal-mask" catchtap="cancel"></view>
2 <view class="modal-dialog"> 2 <view class="modal-dialog">
3 <image class="modal-icon"src="../../../../../static/images/gou@2x.png"></image> 3 <image class="modal-icon"src="../../../../../static/images/gou@2x.png"></image>
4 <slot></slot> 4 <slot></slot>
@@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
8 padding-right: 30rpx; 8 padding-right: 30rpx;
9 left: 0; 9 left: 0;
10 right: 0; 10 right: 0;
11 - height: 70rpx; 11 + min-height: 70rpx;
12 font-size: 26rpx; 12 font-size: 26rpx;
13 background-color: rgba(0, 0, 0, 0.7); 13 background-color: rgba(0, 0, 0, 0.7);
14 text-align: center; 14 text-align: center;
@@ -23,10 +23,13 @@ @@ -23,10 +23,13 @@
23 width: 240rpx; 23 width: 240rpx;
24 align-items: center; 24 align-items: center;
25 justify-content: flex-end; 25 justify-content: flex-end;
  26 + flex-wrap: wrap;
26 } 27 }
27 28
28 .bottom-assis-list .avatar-item { 29 .bottom-assis-list .avatar-item {
29 margin-left: 10rpx; 30 margin-left: 10rpx;
  31 + margin-top: 10rpx;
  32 + display: inline-block;
30 } 33 }
31 34
32 .avatar-image { 35 .avatar-image {
@@ -97,6 +97,7 @@ Page(Object.assign({ @@ -97,6 +97,7 @@ Page(Object.assign({
97 queueSuccess: QUEUE_SUCCESS.unknown, 97 queueSuccess: QUEUE_SUCCESS.unknown,
98 error: false, 98 error: false,
99 activityId: '', 99 activityId: '',
  100 + modal: false,
100 101
101 actionSheet: { 102 actionSheet: {
102 componentId: 'shareActionSheet', 103 componentId: 'shareActionSheet',
@@ -404,7 +405,7 @@ Page(Object.assign({ @@ -404,7 +405,7 @@ Page(Object.assign({
404 } else { 405 } else {
405 this.showError(); 406 this.showError();
406 } 407 }
407 - 408 + this.showAlert();
408 }).catch(this.showError.bind(this)); 409 }).catch(this.showError.bind(this));
409 410
410 }, 411 },
@@ -438,6 +439,7 @@ Page(Object.assign({ @@ -438,6 +439,7 @@ Page(Object.assign({
438 } else { 439 } else {
439 this.showError(); 440 this.showError();
440 } 441 }
  442 + this.showAlert();
441 }).catch(this.showError.bind(this)); 443 }).catch(this.showError.bind(this));
442 }, 444 },
443 queueCancel() { 445 queueCancel() {
@@ -464,6 +466,7 @@ Page(Object.assign({ @@ -464,6 +466,7 @@ Page(Object.assign({
464 assisSuccess: ASSIS_SUCCESS.unknown, 466 assisSuccess: ASSIS_SUCCESS.unknown,
465 error: false 467 error: false
466 }); 468 });
  469 + this.hideAlert();
467 }, 470 },
468 goQueueList() { 471 goQueueList() {
469 router.go('queueIndex', Object.assign({ 472 router.go('queueIndex', Object.assign({
@@ -514,5 +517,15 @@ Page(Object.assign({ @@ -514,5 +517,15 @@ Page(Object.assign({
514 refreshText: '下拉刷新' 517 refreshText: '下拉刷新'
515 }); 518 });
516 }); 519 });
  520 + },
  521 + hideAlert() {
  522 + this.setData({
  523 + modal: false
  524 + });
  525 + },
  526 + showAlert() {
  527 + this.setData({
  528 + modal: true
  529 + });
517 } 530 }
518 }, Actionsheet)); 531 }, Actionsheet));
@@ -83,7 +83,7 @@ @@ -83,7 +83,7 @@
83 </view> 83 </view>
84 </action-bar> 84 </action-bar>
85 85
86 - <action-bar wx:elif="{{assisStatus === 2}}"> 86 + <action-bar wx:elif="{{assisStatus === 4}}">
87 <view class="bottom1-action"> 87 <view class="bottom1-action">
88 <view class="action-btn">已助力</view> 88 <view class="action-btn">已助力</view>
89 <view class="help">?</view> 89 <view class="help">?</view>
@@ -285,10 +285,12 @@ @@ -285,10 +285,12 @@
285 </block> 285 </block>
286 286
287 <block wx:elif="{{queueStatus === 5}}"> 287 <block wx:elif="{{queueStatus === 5}}">
  288 + <action-bar>
288 <view class="bottom1-action"> 289 <view class="bottom1-action">
289 <view class="action-btn">已助力</view> 290 <view class="action-btn">已助力</view>
290 <view class="help">?</view> 291 <view class="help">?</view>
291 </view> 292 </view>
  293 + </action-bar>
292 </block> 294 </block>
293 295
294 <action-bar wx:else> 296 <action-bar wx:else>
@@ -302,7 +304,8 @@ @@ -302,7 +304,8 @@
302 </block> 304 </block>
303 </block> 305 </block>
304 306
305 -<yoho-alert wx:if="{{assisSuccess === 1}}"> 307 +<block wx:if="{{modal}}">
  308 +<yoho-alert wx:if="{{assisSuccess === 1}}" bindcancel="hideAlert">
306 <view class="modal-content"> 309 <view class="modal-content">
307 <view class="modal-title"> 310 <view class="modal-title">
308 <view class="sub-title">助力成功</view> 311 <view class="sub-title">助力成功</view>
@@ -315,7 +318,7 @@ @@ -315,7 +318,7 @@
315 </view> 318 </view>
316 </yoho-alert> 319 </yoho-alert>
317 320
318 -<yoho-alert wx:if="{{assisSuccess === 2}}"> 321 +<yoho-alert wx:if="{{assisSuccess === 2}}" bindcancel="hideAlert">
319 <view class="modal-content"> 322 <view class="modal-content">
320 <view class="modal-title"> 323 <view class="modal-title">
321 <view class="sub-title">重复助力</view> 324 <view class="sub-title">重复助力</view>
@@ -327,7 +330,7 @@ @@ -327,7 +330,7 @@
327 </view> 330 </view>
328 </yoho-alert> 331 </yoho-alert>
329 332
330 -<yoho-alert wx:if="{{queueSuccess === 1}}"> 333 +<yoho-alert wx:if="{{queueSuccess === 1}}" bindcancel="hideAlert">
331 <view class="modal-content"> 334 <view class="modal-content">
332 <view class="modal-title"> 335 <view class="modal-title">
333 <view class="sub-title">助力成功</view> 336 <view class="sub-title">助力成功</view>
@@ -349,7 +352,7 @@ @@ -349,7 +352,7 @@
349 </view> 352 </view>
350 </yoho-alert> 353 </yoho-alert>
351 354
352 -<yoho-alert wx:if="{{queueSuccess === 2}}"> 355 +<yoho-alert wx:if="{{queueSuccess === 2}}" bindcancel="hideAlert">
353 <view class="modal-content"> 356 <view class="modal-content">
354 <view class="modal-title"> 357 <view class="modal-title">
355 <view class="sub-title">重复助力</view> 358 <view class="sub-title">重复助力</view>
@@ -371,7 +374,7 @@ @@ -371,7 +374,7 @@
371 </view> 374 </view>
372 </yoho-alert> 375 </yoho-alert>
373 376
374 -<yoho-alert wx:if="{{error}}"> 377 +<yoho-alert wx:if="{{error}}" bindcancel="hideAlert">
375 <view class="modal-content"> 378 <view class="modal-content">
376 <view class="modal-title"> 379 <view class="modal-title">
377 <view class="sub-title">助力失败</view> 380 <view class="sub-title">助力失败</view>
@@ -385,5 +388,6 @@ @@ -385,5 +388,6 @@
385 </view> 388 </view>
386 </view> 389 </view>
387 </yoho-alert> 390 </yoho-alert>
  391 +</block>
388 392
389 <template is="zan-actionsheet" data="{{...actionSheet}}" /> 393 <template is="zan-actionsheet" data="{{...actionSheet}}" />
1 <!--pages/snapshootShare/snapshootShare.wxml--> 1 <!--pages/snapshootShare/snapshootShare.wxml-->
2 -<view class="snapshoot-container" > 2 +<view class="snapshoot-page" >
3 <view class="snapshoot-container"> 3 <view class="snapshoot-container">
4 <view class="snapshoot-content"> 4 <view class="snapshoot-content">
5 <view class="snapshoot"> 5 <view class="snapshoot">
1 /* pages/snapshootShare/snapshootShare.wxss */ 1 /* pages/snapshootShare/snapshootShare.wxss */
2 .snapshoot-container { 2 .snapshoot-container {
  3 + position: absolute;
  4 + top: 50%;
  5 + transform: translateY(-50%);
  6 +}
  7 +
  8 +.snapshoot-page {
3 position: fixed; 9 position: fixed;
4 left: 0rpx; 10 left: 0rpx;
5 top: 0rpx; 11 top: 0rpx;
6 width: 750rpx; 12 width: 750rpx;
7 height: 100%; 13 height: 100%;
8 - background-color: rgba(0, 0, 0, 0.5); 14 + background-color: rgba(0, 0, 0, 0.6);
9 flex-direction: column; 15 flex-direction: column;
10 z-index: 9999; 16 z-index: 9999;
11 } 17 }
@@ -33,7 +33,7 @@ @@ -33,7 +33,7 @@
33 "list": [] 33 "list": []
34 }, 34 },
35 "miniprogram": { 35 "miniprogram": {
36 - "current": 0, 36 + "current": 8,
37 "list": [ 37 "list": [
38 { 38 {
39 "id": 0, 39 "id": 0,
@@ -73,9 +73,42 @@ @@ -73,9 +73,42 @@
73 }, 73 },
74 { 74 {
75 "id": 6, 75 "id": 6,
76 - "name": "分享卡片进入小程序", 76 + "name": "分享卡片进入小程序-好友助力-发起者进入",
77 "pathName": "pages/product/detail/detail", 77 "pathName": "pages/product/detail/detail",
78 - "query": "limitProductCode=2018062815591248&originUid=500031864", 78 + "query": "limitProductCode=2018062815591248&originUid=500031864&originUnionID=oGUyct62W4m92LotgrNcDo0dGXC4",
  79 + "scene": "1037",
  80 + "referrerInfo": {
  81 + "appId": "wx084ab813d88c594b",
  82 + "extraData": "{}"
  83 + }
  84 + },
  85 + {
  86 + "id": 7,
  87 + "name": "分享卡片进入小程序-好友助力-被分享者进入",
  88 + "pathName": "pages/product/detail/detail",
  89 + "query": "limitProductCode=2018062815591248&originUid=349709&originUnionID=oGUyct-gABtEJt3aq2TF03NkNPp0",
  90 + "scene": "1037",
  91 + "referrerInfo": {
  92 + "appId": "wx084ab813d88c594b",
  93 + "extraData": "{}"
  94 + }
  95 + },
  96 + {
  97 + "id": 8,
  98 + "name": "分享卡片进入小程序-好友排队-发起者进入",
  99 + "pathName": "pages/product/detail/detail",
  100 + "query": "limitProductCode=2018062910190973&originUid=349709&originUnionID=oGUyct-gABtEJt3aq2TF03NkNPp0",
  101 + "scene": "1037",
  102 + "referrerInfo": {
  103 + "appId": "wx084ab813d88c594b",
  104 + "extraData": "{}"
  105 + }
  106 + },
  107 + {
  108 + "id": 9,
  109 + "name": "分享卡片进入小程序-好友排队-被发起者进入",
  110 + "pathName": "pages/product/detail/detail",
  111 + "query": "limitProductCode=2018062910190973&originUid=500031864&originUnionID=oGUyct62W4m92LotgrNcDo0dGXC4",
79 "scene": "1037", 112 "scene": "1037",
80 "referrerInfo": { 113 "referrerInfo": {
81 "appId": "wx084ab813d88c594b", 114 "appId": "wx084ab813d88c594b",