5711f7e1 by simon

默认提交

1 parent f69c73a6

537 KB | W: | H:

385 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
...@@ -996,8 +996,6 @@ Page({ ...@@ -996,8 +996,6 @@ Page({
996 name, 996 name,
997 data 997 data
998 } = evt.detail; 998 } = evt.detail;
999 console.log("evt:", evt);
1000 console.log("data:", data);
1001 if (data && data.evttype && data.evttype == "join") { 999 if (data && data.evttype && data.evttype == "join") {
1002 console.log("55555"); 1000 console.log("55555");
1003 } 1001 }
......
...@@ -348,10 +348,9 @@ $blessContentLabelWidth: 650px; ...@@ -348,10 +348,9 @@ $blessContentLabelWidth: 650px;
348 .more-template { 348 .more-template {
349 font-size: 36px; 349 font-size: 36px;
350 color: #dfa244; 350 color: #dfa244;
351 text-align: right; 351 // text-align: right;
352 margin-right: 40px; 352 // margin-right: 40px;
353 margin-top: 24px; 353 // margin-top: 48px;
354
355 354
356 .t1 { 355 .t1 {
357 text-decoration: underline; 356 text-decoration: underline;
...@@ -360,11 +359,12 @@ $blessContentLabelWidth: 650px; ...@@ -360,11 +359,12 @@ $blessContentLabelWidth: 650px;
360 359
361 &-item { 360 &-item {
362 display: flex; 361 display: flex;
363 justify-content: flex-end; 362 justify-content: center;
364 363
365 .btn { 364 .btn {
366 @extend .bb; 365 @extend .bb;
367 margin: 24px 45px 8px 0; 366 margin: 32px auto;
367 width: 480px;
368 height: 76px; 368 height: 76px;
369 line-height: 76px; 369 line-height: 76px;
370 padding: 0 20px; 370 padding: 0 20px;
......
...@@ -123,6 +123,8 @@ ...@@ -123,6 +123,8 @@
123 <!-- 分情况显示btn-wrap --> 123 <!-- 分情况显示btn-wrap -->
124 <!-- 单人 --> 124 <!-- 单人 -->
125 <block wx:if="{{detailData.type == 0}}"> 125 <block wx:if="{{detailData.type == 0}}">
126 <!-- 自己 -->
127 <block wx:if="{{ownerMember.mySelf == 1}}">
126 <!-- 未定制 --> 128 <!-- 未定制 -->
127 <view wx:if="{{detailData.customMade == 0}}" class="btn-wrap"> 129 <view wx:if="{{detailData.customMade == 0}}" class="btn-wrap">
128 <button bindtap="onPosterHandler" class="btn btn1">分享图片祝福</button> 130 <button bindtap="onPosterHandler" class="btn btn1">分享图片祝福</button>
...@@ -137,6 +139,11 @@ ...@@ -137,6 +139,11 @@
137 <button open-type="share" class="btn btn2">送祝福给亲友</button> 139 <button open-type="share" class="btn btn2">送祝福给亲友</button>
138 </view> 140 </view>
139 </block> 141 </block>
142 <block wx:else>
143 <view bindtap="onBlessMakeHandler" class="btn btn2">定制我的祝福</view>
144 <button open-type="share" class="btn btn2">送祝福给亲友</button>
145 </block>
146 </block>
140 <!-- 组队 --> 147 <!-- 组队 -->
141 <block wx:if="{{detailData.type == 1}}"> 148 <block wx:if="{{detailData.type == 1}}">
142 <!-- 未定制 --> 149 <!-- 未定制 -->
......
...@@ -18,8 +18,7 @@ Page({ ...@@ -18,8 +18,7 @@ Page({
18 queueCode: "", // 队列标识,每次请求,会返回一个队列标识,用户加载更多时候请携带queueCode参数 18 queueCode: "", // 队列标识,每次请求,会返回一个队列标识,用户加载更多时候请携带queueCode参数
19 active: 0, 19 active: 0,
20 curBanner: {}, 20 curBanner: {},
21 blessContent: [ 21 blessContent: [{
22 {
23 type: "text", 22 type: "text",
24 content: "文本内容", 23 content: "文本内容",
25 color: "0xffffff", 24 color: "0xffffff",
...@@ -29,7 +28,8 @@ Page({ ...@@ -29,7 +28,8 @@ Page({
29 type: "image", 28 type: "image",
30 content: "url", 29 content: "url",
31 }, 30 },
32 ] 31 ],
32 options: {}
33 }, 33 },
34 onShareAppMessage(res) { 34 onShareAppMessage(res) {
35 if (res.from === 'button') { 35 if (res.from === 'button') {
...@@ -49,13 +49,34 @@ Page({ ...@@ -49,13 +49,34 @@ Page({
49 }) 49 })
50 }, 50 },
51 onLoad(options) { 51 onLoad(options) {
52 this.setData({
53 options
54 })
52 this.initData(); 55 this.initData();
53 }, 56 },
54 initData() { 57 initData() {
55 this.queryTabList().then((result) => { 58 this.queryTabList().then((result) => {
59 let {
60 options,
61 tabList
62 } = this.data;
63 if (options.t == "bless") {
64 let tabIndex = 0;
65 tabList.forEach((element, idx) => {
66 if (element.type == 2) {
67 tabIndex = idx;
68 }
69 });
56 this.setData({ 70 this.setData({
57 curTab: this.data.tabList[0] 71 curTab: tabList[tabIndex],
72 active: tabIndex
58 }) 73 })
74 } else {
75 this.setData({
76 curTab: tabList[0]
77 })
78 }
79
59 this.resetPage(); 80 this.resetPage();
60 this.queryBannerList(); 81 this.queryBannerList();
61 this.queryVideoList(); 82 this.queryVideoList();
......