Authored by htoooth

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

@@ -168,7 +168,7 @@ Page(Object.assign({ @@ -168,7 +168,7 @@ Page(Object.assign({
168 }); 168 });
169 } else { 169 } else {
170 this.init().then(() => { 170 this.init().then(() => {
171 - this._showRepeat(); 171 + this._showRepeat();
172 }); 172 });
173 } 173 }
174 }, app ? 0 : 1000); 174 }, app ? 0 : 1000);
@@ -84,7 +84,7 @@ Page(Object.assign({ @@ -84,7 +84,7 @@ Page(Object.assign({
84 h5PageUrl: [ 84 h5PageUrl: [
85 { 85 {
86 title: '排队活动说明', 86 title: '排队活动说明',
87 - url: 'https://activity.yoho.cn/feature/249.html?nodownload=1' 87 + url: 'https://activity.yoho.cn/feature/2593.html'
88 } 88 }
89 ], 89 ],
90 bgStyle: [ // 排队图片 90 bgStyle: [ // 排队图片
@@ -317,7 +317,7 @@ Page(Object.assign({ @@ -317,7 +317,7 @@ Page(Object.assign({
317 * 跳转到我的排队列表 317 * 跳转到我的排队列表
318 */ 318 */
319 navigateToMyList: function(e) { 319 navigateToMyList: function(e) {
320 - router.go('myList', Object.assign({actId: this.data.activityInfo.activityId}, this.data.shareInfo)); 320 + router.go('myList', Object.assign({actId: this.data.activityInfo.activityId, isEnd: this.data.activityInfo.isEnd}, this.data.shareInfo));
321 }, 321 },
322 322
323 /** 323 /**
@@ -407,6 +407,11 @@ Page(Object.assign({ @@ -407,6 +407,11 @@ Page(Object.assign({
407 let activityName = res.data.activityName; 407 let activityName = res.data.activityName;
408 let activityId = res.data.activityId; 408 let activityId = res.data.activityId;
409 let bgStyle = res.data.bgStyle && res.data.bgStyle.length > 0 ? res.data.bgStyle : this.data.bgStyle; 409 let bgStyle = res.data.bgStyle && res.data.bgStyle.length > 0 ? res.data.bgStyle : this.data.bgStyle;
  410 + let activityDesc = res.data.activityDesc;
  411 +
  412 + wx.setNavigationBarTitle({
  413 + title: activityName
  414 + });
410 415
411 this.setData({ 416 this.setData({
412 activityInfo: { 417 activityInfo: {
@@ -416,7 +421,8 @@ Page(Object.assign({ @@ -416,7 +421,8 @@ Page(Object.assign({
416 isEnd: isEnd, // 是否已结束 1-结束 0-未结束 421 isEnd: isEnd, // 是否已结束 1-结束 0-未结束
417 prizeType: prizeType, // 奖品类型1-有货币 2-优惠券 3-限购码 422 prizeType: prizeType, // 奖品类型1-有货币 2-优惠券 3-限购码
418 activityId: activityId, 423 activityId: activityId,
419 - activityName: activityName 424 + activityName: activityName,
  425 + activityDesc: activityDesc
420 }, 426 },
421 bgStyle: bgStyle 427 bgStyle: bgStyle
422 }); 428 });
@@ -559,7 +565,9 @@ Page(Object.assign({ @@ -559,7 +565,9 @@ Page(Object.assign({
559 * 跳转到活动说明的H5页面 565 * 跳转到活动说明的H5页面
560 */ 566 */
561 navigateToDescPage: function() { 567 navigateToDescPage: function() {
562 - router.goUrl(this.data.h5PageUrl[0].url + '&title=' + this.data.h5PageUrl[0].title); 568 + let descUrl = this.data.activityInfo.activityDesc || this.data.h5PageUrl[0].url;
  569 +
  570 + router.goUrl(descUrl);
563 }, 571 },
564 572
565 /** 573 /**
@@ -25,6 +25,7 @@ Page(Object.assign({ @@ -25,6 +25,7 @@ Page(Object.assign({
25 */ 25 */
26 data: { 26 data: {
27 actId: 0, 27 actId: 0,
  28 + isEnd: 0,
28 userInfo: {}, // 用户信息 29 userInfo: {}, // 用户信息
29 shareInfo: { 30 shareInfo: {
30 default_image: '', 31 default_image: '',
@@ -78,12 +79,14 @@ Page(Object.assign({ @@ -78,12 +79,14 @@ Page(Object.assign({
78 onLoad: function(options) { 79 onLoad: function(options) {
79 console.log(options); 80 console.log(options);
80 let actId = options.actId; 81 let actId = options.actId;
  82 + let isEnd = options.isEnd || 0;
81 let uid = app.getUid() || options.uid; 83 let uid = app.getUid() || options.uid;
82 84
83 85
84 if (actId) { 86 if (actId) {
85 this.setData({ 87 this.setData({
86 - actId: actId 88 + actId: actId,
  89 + isEnd: parseInt(isEnd)
87 }); 90 });
88 this.getQueueList(actId); 91 this.getQueueList(actId);
89 for (let i in options) { 92 for (let i in options) {
@@ -49,7 +49,7 @@ @@ -49,7 +49,7 @@
49 </view> 49 </view>
50 </block> 50 </block>
51 <form bindsubmit='submitFormId' report-submit='true'> 51 <form bindsubmit='submitFormId' report-submit='true'>
52 - <button class='invite-button' hidden='{{hideInviteButton}}' form-type='submit' bindtap='inviteFriends'> 52 + <button wx:if='{{!isEnd}}' class='invite-button' hidden='{{hideInviteButton}}' form-type='submit' bindtap='inviteFriends'>
53 邀请好友助力排队 53 邀请好友助力排队
54 </button> 54 </button>
55 </form> 55 </form>

4.37 KB | W: | H:

5.12 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin