Commit 99f207106864dacbc26f38c9e01dcb90e95dea5b

Authored by vking
1 parent d9992816

一起瓜分百万红包:订包间,消费抵现金

@@ -7,8 +7,7 @@ Page({ @@ -7,8 +7,7 @@ Page({
7 * 页面的初始数据 7 * 页面的初始数据
8 */ 8 */
9 data: { 9 data: {
10 - activity:null,  
11 - count:0, 10 +
12 }, 11 },
13 12
14 /** 13 /**
@@ -29,7 +28,6 @@ Page({ @@ -29,7 +28,6 @@ Page({
29 * 生命周期函数--监听页面显示 28 * 生命周期函数--监听页面显示
30 */ 29 */
31 onShow: function () { 30 onShow: function () {
32 - this.GetTaskInfos()  
33 }, 31 },
34 32
35 /** 33 /**
@@ -59,55 +57,4 @@ Page({ @@ -59,55 +57,4 @@ Page({
59 onReachBottom: function () { 57 onReachBottom: function () {
60 58
61 }, 59 },
62 -  
63 - /**  
64 - * 用户点击右上角分享  
65 - */  
66 - onShareAppMessage: function () {  
67 - return {  
68 - title:this.data.activity.title,  
69 - path:'/pages/reserve/index',  
70 - imageUrl:this.data.activity.bgurl,  
71 - }  
72 - },  
73 - GetTaskInfos(){  
74 - App.Task.GetTaskInfos({  
75 - aid:this.options.aid,  
76 - }).then(res=>{  
77 - let activity=res.data.activity  
78 - activity.list=res.data.task  
79 - let count=0  
80 - activity.list.forEach(t=>{  
81 - if(t.status==2){  
82 - count+=(t.price*1)  
83 - }  
84 - })  
85 - this.setData({  
86 - count:count.toFixed(2),  
87 - activity:activity  
88 - })  
89 - })  
90 - },  
91 - taskNextDo(e){  
92 - let index=util.attr(e,'index')  
93 - let task=this.data.activity.list[index]  
94 - let tid=task.id  
95 - ,path=util.http_build_query({aid:this.data.activity.id,tid:tid},task.task_url||'pack-activity/pages/demo')  
96 - if(task.status==0){  
97 - App.Task.SetTaskInfo({//领取任务  
98 - aid:this.data.activity.id,  
99 - tid:tid,  
100 - }).then(()=>{  
101 - this.GetTaskInfos()  
102 - })  
103 - }else if(task.status==1){  
104 - wx.navigateTo({  
105 - url: path  
106 - })  
107 - }else{  
108 - wx.navigateTo({  
109 - url: 'pack-activity/pages/money'  
110 - })  
111 - }  
112 - },  
113 }) 60 })
1 <!--pack-activity/pages/index.wxml--> 1 <!--pack-activity/pages/index.wxml-->
2 <nav hasHome>周到安排</nav> 2 <nav hasHome>周到安排</nav>
3 -<view class="pages" style="background-color: {{activity.element}}">  
4 - <view class="content">  
5 - <view class="share-but">  
6 - <button class="button-none" open-type="share">D E M O</button> 3 +<view class="pages">
  4 + <image src="http://qn.colorcun.com/activity/images/yuding.png" style="width: 100%;" mode="widthFix"></image>
  5 + <navigator url="/pages/reserve/index" open-type="switchTab" hover-class="other-navigator-hover">
  6 + <view class="content flex-cc">
  7 + <view class="share-but">
  8 + <button class="button-none">去订包间</button>
  9 + </view>
7 </view> 10 </view>
8 - </view> 11 + </navigator>
9 </view> 12 </view>
@@ -3,24 +3,22 @@ @@ -3,24 +3,22 @@
3 3
4 } 4 }
5 .content{ 5 .content{
6 - padding-top: 840rpx;  
7 - height: 1020rpx;  
8 - width: calc(100% - 40rpx);  
9 - margin: 0 20rpx 0; 6 + position: fixed;
  7 + bottom: 80rpx;
  8 + width: 100%;
10 } 9 }
11 .share-but{ 10 .share-but{
12 - width:400rpx;  
13 height:80rpx; 11 height:80rpx;
14 - background:linear-gradient(180deg,rgba(252,190,38,1) 0%,rgba(255,233,128,1) 100%);  
15 - box-shadow:0rpx 4rpx 8rpx 0rpx rgba(182,43,68,1); 12 + background:linear-gradient(360deg,rgba(220,44,75,1) 0%,rgba(244,143,161,1) 100%);
16 border-radius:40rpx; 13 border-radius:40rpx;
17 14
18 font-size:32rpx; 15 font-size:32rpx;
19 font-weight:600; 16 font-weight:600;
20 - color:rgba(230,34,57,1);  
21 - line-height:80rpx; 17 + color:rgba(255,255,255,1);
  18 + line-height:44rpx;
  19 + letter-spacing:1rpx;
22 text-align: center; 20 text-align: center;
23 - margin-left: calc(50% - 200rpx); 21 + width: calc(100% - 76rpx);
24 } 22 }
25 .share-but .button-none{ 23 .share-but .button-none{
26 height: 80rpx; 24 height: 80rpx;
@@ -625,6 +625,13 @@ @@ -625,6 +625,13 @@
625 "pathName": "pack-activity/pages/kefu", 625 "pathName": "pack-activity/pages/kefu",
626 "query": "", 626 "query": "",
627 "scene": null 627 "scene": null
  628 + },
  629 + {
  630 + "id": -1,
  631 + "name": "pack-activity/pages/yuding",
  632 + "pathName": "pack-activity/pages/yuding",
  633 + "query": "id=9994&fromid=test&hasInvitation=1&hasSellerShare=1&tplid=1",
  634 + "scene": null
628 } 635 }
629 ] 636 ]
630 } 637 }