bayi 1 năm trước cách đây
mục cha
commit
b4cb4839a1

+ 145 - 5
pages/invite/index.js

@@ -139,16 +139,156 @@ Page({
             num: 34,
             top: 5604,
             left: 460
+        }, {
+            num: 35,
+            top: 5878,
+            left: 140
+        }, {
+            num: 36,
+            top: 5878,
+            left: 460
+        }, {
+            num: 37,
+            top: 6148,
+            left: 140
+        }, {
+            num: 38,
+            top: 6148,
+            left: 460
+        }, {
+            num: 39,
+            top: 6418,
+            left: 140
+        }, {
+            num: 40,
+            top: 6418,
+            left: 460
+        }, {
+            num: 41,
+            top: 6692,
+            left: 140
+        }, {
+            num: 42,
+            top: 6692,
+            left: 460
+        }, {
+            num: 43,
+            top: 6960,
+            left: 140
+        }, {
+            num: 44,
+            top: 6960,
+            left: 460
+        }, {
+            num: 45,
+            top: 7284,
+            left: 140
+        }, {
+            num: 46,
+            top: 7284,
+            left: 460
+        }, {
+            num: 47,
+            top: 7554,
+            left: 140
+        }, {
+            num: 48,
+            top: 7554,
+            left: 460
+        }, {
+            num: 49,
+            top: 7828,
+            left: 140
+        }, {
+            num: 50,
+            top: 7828,
+            left: 460
+        }, {
+            num: 51,
+            top: 8100,
+            left: 140
+        }, {
+            num: 52,
+            top: 8100,
+            left: 460
+        }, {
+            num: 53,
+            top: 8372,
+            left: 140
+        }, {
+            num: 54,
+            top: 8372,
+            left: 460
+        }, {
+            num: 55,
+            top: 8642,
+            left: 140
+        }, {
+            num: 56,
+            top: 8642,
+            left: 460
+        }, {
+            num: 57,
+            top: 8912,
+            left: 140
+        }, {
+            num: 58,
+            top: 8912,
+            left: 460
+        }, {
+            num: 59,
+            top: 9120,
+            left: 300
+        }, {
+            num: 60,
+            top: 9422,
+            left: 440
+        }],
+        treasureList: [{
+            id: 2,
+            close: '/static/2t.png',
+            open: '/static/2t-2.png',
+            top: 310,
+            left: -10
+        }, {
+            id: 5,
+            close: '/static/5.png',
+            open: '/static/5-2.png',
+            top: 840,
+            left: 20
+        }, {
+            id: 10,
+            close: '/static/10.png',
+            open: '/static/10-2.png',
+            top: 1736,
+            left: 510
+        }, {
+            id: 15,
+            close: '/static/15.png',
+            open: '/static/15-2.png',
+            top: 2632,
+            left: 26
+        }, {
+            id: 30,
+            close: '/static/30.png',
+            open: '/static/30-2.png',
+            top: 4924,
+            left: 16
+        }, {
+            id: 60,
+            close: '/static/always.png',
+            open: '/static/always-2.png',
+            top: 9676,
+            left: 194
         }],
         count: 0
     },
 
     async onShow() {
-        console.log(`#p${this.data.list.length}`);
-        wx.pageScrollTo({
-            selector: `#p${this.data.list.length}`,
-            duration: 800
-        })
+        // wx.pageScrollTo({
+        //     selector: `#p${this.data.list.length}`,
+        //     duration: 800
+        // })
         /*  let {
              list
          } = await getInviteList({

+ 7 - 1
pages/invite/index.less

@@ -26,7 +26,7 @@
     .body {
         position: relative;
         width: 100%;
-        height: 8000rpx;
+        height: 10000rpx;
         margin-top: 700rpx;
         background: url('http://reader-wx.ai160.com/images/reader/bg2.jpg')no-repeat;
         background-size: cover;
@@ -50,5 +50,11 @@
                 color: #FFFFFF;
             }
         }
+
+        .treasure {
+            position: absolute;
+            width: 250rpx;
+            height: 262rpx;
+        }
     }
 }

+ 2 - 0
pages/invite/index.wxml

@@ -7,5 +7,7 @@
             <image src="/static/pennant.png" class='icon' />
             <view class="num">邀{{item.num}}人</view>
         </view>
+        <image wx:for="{{treasureList}}" wx:key='id' src="{{item.close}}"
+            style="top:{{item.top}}rpx;left:{{item.left}}rpx" class="treasure" />
     </view>
 </view>

+ 6 - 1
pages/invite/index.wxss

@@ -24,7 +24,7 @@
 .invite .body {
   position: relative;
   width: 100%;
-  height: 8000rpx;
+  height: 10000rpx;
   margin-top: 700rpx;
   background: url('http://reader-wx.ai160.com/images/reader/bg2.jpg') no-repeat;
   background-size: cover;
@@ -46,3 +46,8 @@
   font-size: 26rpx;
   color: #FFFFFF;
 }
+.invite .body .treasure {
+  position: absolute;
+  width: 250rpx;
+  height: 262rpx;
+}

BIN
static/10-2.png


BIN
static/10.png


BIN
static/15-2.png


BIN
static/15.png


BIN
static/2t-2.png


BIN
static/2t.png


BIN
static/30-2.png


BIN
static/30.png


BIN
static/5-2.png


BIN
static/5.png


BIN
static/always-2.png


BIN
static/always.png