bayi пре 1 година
родитељ
комит
056edae88c
5 измењених фајлова са 1 додато и 669 уклоњено
  1. 0 4
      pages/invite/index.js
  2. 0 239
      pages/invite/index.less
  3. 1 222
      pages/invite/index.wxml
  4. 0 202
      pages/invite/index.wxss
  5. 0 2
      pages/my/index.less

+ 0 - 4
pages/invite/index.js

@@ -2,10 +2,6 @@ import {
     getInviteList
 } from '~/api/user'
 Page({
-
-    /**
-     * 页面的初始数据
-     */
     data: {
         list: [],
         count: 0

+ 0 - 239
pages/invite/index.less

@@ -1,239 +0,0 @@
-.invite {
-    width: 100%;
-    padding: 0 20rpx 60rpx;
-    box-sizing: border-box;
-    min-height: 100vh;
-    background-color: #291068;
-
-    .headerBg {
-        position: absolute;
-        top: 0;
-        left: 0;
-        width: 100%;
-        height: 811rpx;
-    }
-
-    .progressBox {
-        position: relative;
-        top: 380rpx;
-        z-index: 2;
-        padding: 20rpx;
-        box-sizing: border-box;
-        border: 20rpx solid #6B39D8;
-        background-color: #2D1F64;
-        border-radius: 42rpx;
-
-        .row {
-            position: relative;
-            width: 100%;
-            height: 110rpx;
-            margin-bottom: 80rpx;
-            display: flex;
-            align-items: flex-end;
-            justify-content: space-between;
-
-            .line {
-                position: absolute;
-                top: 80rpx;
-                left: 50%;
-                transform: translateX(-50%);
-                width: 90%;
-                height: 8rpx;
-                background-color: #FFD67B;
-            }
-
-            .numBox {
-                position: relative;
-                z-index: 2;
-                display: flex;
-                flex-direction: column;
-                align-items: center;
-
-                .num {
-                    margin-bottom: 6rpx;
-                    font-size: 22rpx;
-                    color: #FFFFFF;
-                }
-
-                .icon {
-                    width: 60rpx;
-                    height: 60rpx;
-                }
-
-                .current {
-                    position: absolute;
-                    top: 30rpx;
-                    left: 0rpx;
-                    width: 87rpx;
-                    height: 64rpx;
-                }
-
-                .rewardNum {
-                    position: absolute;
-                    bottom: 24rpx;
-                    font-weight: bold;
-                    font-size: 24rpx;
-                    color: #626262;
-                }
-
-                .rewardN {
-                    position: absolute;
-                    bottom: 8rpx;
-                    font-size: 14rpx;
-                    color: #626262;
-                }
-
-                .reward {
-                    width: 144rpx;
-                    height: 109rpx;
-                }
-            }
-
-            .qualify {
-
-                .rewardNum,
-                .rewardN {
-                    color: #962304;
-                }
-            }
-        }
-
-        .btns {
-            display: flex;
-            align-items: center;
-            justify-content: space-between;
-            margin-bottom: 70rpx;
-
-            .transcript {
-                width: 184rpx;
-                height: 68rpx;
-            }
-
-            .resetBtn {
-                font-size: 0px;
-            }
-
-            .inviteBtn {
-                width: 390rpx;
-                height: 68rpx;
-            }
-        }
-    }
-
-    .guide {
-        padding: 26rpx 50rpx 40rpx;
-        margin-top: 420rpx;
-        background-color: #6B39D8;
-        border-radius: 20rpx;
-        color: white;
-        font-size: 26rpx;
-
-        .titleImg {
-            display: block;
-            margin: 0rpx auto 24rpx;
-            width: 100rpx;
-            height: 38rpx;
-        }
-
-        .row {
-            margin-top: 44rpx;
-
-            .logo {
-                width: 100rpx;
-                height: 25rpx;
-                margin-right: 20rpx;
-            }
-        }
-
-        .explain {
-            margin-top: 40rpx;
-            font-size: 24rpx;
-        }
-    }
-}
-
-.popBox {
-    height: 100%;
-    overflow: hidden;
-    background-color: #722FD3;
-    color: white;
-    border-top-left-radius: 20rpx;
-    border-top-right-radius: 20rpx;
-
-    .header {
-        position: relative;
-        padding: 30rpx 0;
-        letter-spacing: 2rpx;
-        text-align: center;
-        font-size: 32rpx;
-        background-color: #2D1F64;
-
-        .close {
-            position: absolute;
-            right: 20rpx;
-            top: 26rpx;
-            width: 50rpx;
-            height: 50rpx;
-            background-color: #9F6DEB;
-            border-radius: 50%;
-        }
-    }
-
-    .list {
-        height: calc(100% - 100rpx);
-        padding: 40rpx 20rpx 0;
-        box-sizing: border-box;
-
-        .item {
-            display: flex;
-            align-items: center;
-            justify-content: space-between;
-            margin-bottom: 24rpx;
-            padding: 10rpx 30rpx;
-            border-radius: 20rpx;
-            background-color: #9F6DEB;
-
-            .left {
-                display: flex;
-                align-items: center;
-
-                .num {
-                    font-size: 30rpx;
-                    width: 60rpx;
-                }
-
-                .avatar {
-                    width: 68rpx;
-                    height: 68rpx;
-                    border-radius: 50%;
-                    background-color: white;
-                }
-
-                .nickName {
-                    width: 200rpx;
-                    margin-left: 16rpx;
-                }
-            }
-
-            .time {
-                font-size: 26rpx;
-            }
-        }
-
-        .copywriting {
-            width: 100%;
-            margin: 100rpx 0rpx;
-            text-align: center;
-
-            .text {
-                margin-bottom: 40rpx;
-            }
-        }
-
-        .inviteBtn {
-            padding: 30rpx 0;
-            width: 390rpx;
-            height: 68rpx;
-        }
-    }
-}

+ 1 - 222
pages/invite/index.wxml

@@ -1,222 +1 @@
-<wxs src="../../utils/filter.wxs" module="filters" />
-
-<view class="invite">
-    <image src="http://reader-wx.ai160.com/images/reader/v3/learn/yxbg.png" class='headerBg' />
-    <view class="progressBox">
-        <!-- 第一关 -->
-        <view>
-            <view class="row ">
-                <view class="line"></view>
-                <view class="numBox" wx:for="{{2}}" wx:key="index">
-                    <view class="num">邀{{index+1}}人</view>
-                    <image src="{{count>=index+1?'/static/lock-2.png':'/static/lock-1.png'}}" class="icon" />
-                    <image src="/static/ct.png" class="current" wx:if='{{count==index+1}}' />
-                </view>
-                <view class="numBox {{count>2?'qualify':''}}">
-                    <view class="rewardNum">VIP7天</view>
-                    <view class="rewardN">第一关</view>
-                    <image src="{{count>=2?'/static/qb-2.png':'/static/qb-1.png'}}" class="reward" />
-                </view>
-            </view>
-            <view class="btns" wx:if="{{count<2}}">
-                <image src="/static/cjd.png" class="transcript" bindtap="showTranscript" />
-                <button class="resetBtn" open-type="share">
-                    <image src="/static/yqb.png" class="inviteBtn" />
-                </button>
-            </view>
-        </view>
-        <!-- 第二关 -->
-        <view>
-            <view class="row ">
-                <view class="line"></view>
-                <view class="numBox" wx:for="{{3}}" wx:key="index">
-                    <view class="num">邀{{index+3}}人</view>
-                    <image src="{{count>=index+3?'/static/lock-2.png':'/static/lock-1.png'}}" class="icon" />
-                    <image src="/static/ct.png" class="current" wx:if='{{count==index+3}}' />
-                </view>
-                <view class="numBox {{count>=5?'qualify':''}}">
-                    <view class="rewardNum">VIP15天</view>
-                    <view class="rewardN">第二关</view>
-                    <image src="{{count>=5?'/static/qb-2.png':'/static/qb-1.png'}}" class="reward" />
-                </view>
-            </view>
-            <view class="btns" wx:if="{{count>=2&count<5}}">
-                <image src="/static/cjd.png" class="transcript" bindtap="showTranscript" />
-                <button class="resetBtn" open-type="share">
-                    <image src="/static/yqb.png" class="inviteBtn" />
-                </button>
-            </view>
-        </view>
-        <!-- 第三关 -->
-        <view>
-            <view class="row ">
-                <view class="line"></view>
-                <view class="numBox" wx:for="{{5}}" wx:key="index">
-                    <view class="num">邀{{index+6}}人</view>
-                    <image src="{{count>=index+6?'/static/lock-2.png':'/static/lock-1.png'}}" class="icon" />
-                    <image src="/static/ct.png" class="current" wx:if='{{count==index+6}}' />
-                </view>
-                <view class="numBox {{count>=10?'qualify':''}}">
-                    <view class="rewardNum">VIP1个月</view>
-                    <view class="rewardN">第三关</view>
-                    <image src="{{count>=10?'/static/qb-2.png':'/static/qb-1.png'}}" class="reward" />
-                </view>
-            </view>
-            <view class="btns" wx:if="{{count>=5&&count<10}}">
-                <image src="/static/cjd.png" class="transcript" bindtap="showTranscript" />
-                <button class="resetBtn" open-type="share">
-                    <image src="/static/yqb.png" class="inviteBtn" />
-                </button>
-            </view>
-        </view>
-        <!-- 第四关 -->
-        <view>
-            <view class="row ">
-                <view class="line"></view>
-                <view class="numBox" wx:for="{{5}}" wx:key="index">
-                    <view class="num">邀{{index+11}}人</view>
-                    <image src="{{count>=index+11?'/static/lock-2.png':'/static/lock-1.png'}}" class="icon" />
-                    <image src="/static/ct.png" class="current" wx:if='{{count==index+11}}' />
-                </view>
-            </view>
-            <view class="row ">
-                <view class="line"></view>
-                <view class="numBox" wx:for="{{5}}" wx:key="index">
-                    <view class="num">邀{{index+16}}人</view>
-                    <image src="{{count>=index+16?'/static/lock-2.png':'/static/lock-1.png'}}" class="icon" />
-                    <image src="/static/ct.png" class="current" wx:if='{{count==index+16}}' />
-                </view>
-            </view>
-            <view class="row ">
-                <view class="line"></view>
-                <view class="numBox" wx:for="{{5}}" wx:key="index">
-                    <view class="num">邀{{index+21}}人</view>
-                    <image src="{{count>=index+21?'/static/lock-2.png':'/static/lock-1.png'}}" class="icon" />
-                    <image src="/static/ct.png" class="current" wx:if='{{count==index+21}}' />
-                </view>
-            </view>
-            <view class="row ">
-                <view class="line"></view>
-                <view class="numBox" wx:for="{{5}}" wx:key="index">
-                    <view class="num">邀{{index+26}}人</view>
-                    <image src="{{count>=index+26?'/static/lock-2.png':'/static/lock-1.png'}}" class="icon" />
-                    <image src="/static/ct.png" class="current" wx:if='{{count==index+26}}' />
-                </view>
-                <view class="numBox {{count>=30?'qualify':''}}">
-                    <view class="rewardNum">VIP12个月</view>
-                    <view class="rewardN">第四关</view>
-                    <image src="{{count>=30?'/static/qb-2.png':'/static/qb-1.png'}}" class="reward" />
-                </view>
-            </view>
-            <view class="btns" wx:if="{{count>=10&count<30}}">
-                <image src="/static/cjd.png" class="transcript" bindtap="showTranscript" />
-                <button class="resetBtn" open-type="share">
-                    <image src="/static/yqb.png" class="inviteBtn" />
-                </button>
-            </view>
-        </view>
-        <!-- 第五关 -->
-        <view>
-            <view class="row ">
-                <view class="line"></view>
-                <view class="numBox" wx:for="{{5}}" wx:key="index">
-                    <view class="num">邀{{index+31}}人</view>
-                    <image src="{{count>=index+31?'/static/lock-2.png':'/static/lock-1.png'}}" class="icon" />
-                    <image src="/static/ct.png" class="current" wx:if='{{count==index+31}}' />
-                </view>
-            </view>
-            <view class="row ">
-                <view class="line"></view>
-                <view class="numBox" wx:for="{{5}}" wx:key="index">
-                    <view class="num">邀{{index+36}}人</view>
-                    <image src="{{count>=index+36?'/static/lock-2.png':'/static/lock-1.png'}}" class="icon" />
-                    <image src="/static/ct.png" class="current" wx:if='{{count==index+36}}' />
-                </view>
-            </view>
-            <view class="row ">
-                <view class="line"></view>
-                <view class="numBox" wx:for="{{5}}" wx:key="index">
-                    <view class="num">邀{{index+41}}人</view>
-                    <image src="{{count>=index+41?'/static/lock-2.png':'/static/lock-1.png'}}" class="icon" />
-                    <image src="/static/ct.png" class="current" wx:if='{{count==index+41}}' />
-                </view>
-            </view>
-            <view class="row ">
-                <view class="line"></view>
-                <view class="numBox" wx:for="{{5}}" wx:key="index">
-                    <view class="num">邀{{index+46}}人</view>
-                    <image src="{{count>=index+46?'/static/lock-2.png':'/static/lock-1.png'}}" class="icon" />
-                    <image src="/static/ct.png" class="current" wx:if='{{count==index+46}}' />
-                </view>
-            </view>
-            <view class="row ">
-                <view class="line"></view>
-                <view class="numBox" wx:for="{{5}}" wx:key="index">
-                    <view class="num">邀{{index+51}}人</view>
-                    <image src="{{count>=index+51?'/static/lock-2.png':'/static/lock-1.png'}}" class="icon" />
-                    <image src="/static/ct.png" class="current" wx:if='{{count==index+51}}' />
-                </view>
-            </view>
-            <view class="row ">
-                <view class="line"></view>
-                <view class="numBox" wx:for="{{5}}" wx:key="index">
-                    <view class="num">邀{{index+56}}人</view>
-                    <image src="{{count>=index+56?'/static/lock-2.png':'/static/lock-1.png'}}" class="icon" />
-                    <image src="/static/ct.png" class="current" wx:if='{{count==index+56}}' />
-                </view>
-                <view class="numBox {{count>=60?'qualify':''}}">
-                    <view class="rewardNum">SVIP终身</view>
-                    <view class="rewardN">第五关</view>
-                    <image src="{{count>=60?'/static/qb-2.png':'/static/qb-1.png'}}" class="reward" />
-                </view>
-            </view>
-            <view class="btns" wx:if="{{count>=30}}">
-                <image src="/static/cjd.png" class="transcript" bindtap="showTranscript" />
-                <button class="resetBtn" open-type="share">
-                    <image src="/static/yqb.png" class="inviteBtn" />
-                </button>
-            </view>
-        </view>
-    </view>
-    <view class="guide">
-        <image src="/static/gl.png" class="titleImg" />
-        <view class="row">
-            <image src="/static/gline.png" class="logo" />
-            <text class="text">分享作品 - 群/好友</text>
-        </view>
-        <view class="row">
-            <image src="/static/gline.png" class="logo" />
-            <text class="text">分享活动 - 群/好友</text>
-        </view>
-        <view class="row">
-            <image src="/static/gline.png" class="logo" />
-            <text class="text">分享小程序 - 群/好友</text>
-        </view>
-        <view class="explain">新用户通过分享链接进到小程序,邀请成功。</view>
-    </view>
-</view>
-<popUp id="popUp">
-    <view class="popBox">
-        <view class="header">
-            成绩单
-            <image src="/static/lollipop.png" class="close" bindtap="closeTranscript" />
-        </view>
-        <scroll-view scroll-y="true" class="list" enhanced show-scrollbar='{{false}}'>
-            <view class="item" wx:for="{{list}}" wx:key="eid">
-                <view class="left">
-                    <view class="num">{{index+1}}</view>
-                    <image src="{{item.avatar}}" class="avatar" data-uid="{{item.uid}}" bindtap="jumpUserInfo" />
-                    <view class="nickName textOver">{{item.nickName||item.eid}}</view>
-                </view>
-                <view class="time">{{filters.formatDate(item.gmtCreated,1)}}</view>
-            </view>
-            <view class="copywriting" wx:if="{{list.length==0}}">
-                <view class="text">别的小伙伴已经拿到大奖啦!</view>
-                <view>快去邀请你的小伙伴为你助力!</view>
-            </view>
-            <button class="resetBtn" open-type="share">
-                <image src="/static/yqb.png" class="inviteBtn" />
-            </button>
-        </scroll-view>
-    </view>
-</popUp>
+<view></view>

+ 0 - 202
pages/invite/index.wxss

@@ -1,202 +0,0 @@
-.invite {
-  width: 100%;
-  padding: 0 20rpx 60rpx;
-  box-sizing: border-box;
-  min-height: 100vh;
-  background-color: #291068;
-}
-.invite .headerBg {
-  position: absolute;
-  top: 0;
-  left: 0;
-  width: 100%;
-  height: 811rpx;
-}
-.invite .progressBox {
-  position: relative;
-  top: 380rpx;
-  z-index: 2;
-  padding: 20rpx;
-  box-sizing: border-box;
-  border: 20rpx solid #6B39D8;
-  background-color: #2D1F64;
-  border-radius: 42rpx;
-}
-.invite .progressBox .row {
-  position: relative;
-  width: 100%;
-  height: 110rpx;
-  margin-bottom: 80rpx;
-  display: flex;
-  align-items: flex-end;
-  justify-content: space-between;
-}
-.invite .progressBox .row .line {
-  position: absolute;
-  top: 80rpx;
-  left: 50%;
-  transform: translateX(-50%);
-  width: 90%;
-  height: 8rpx;
-  background-color: #FFD67B;
-}
-.invite .progressBox .row .numBox {
-  position: relative;
-  z-index: 2;
-  display: flex;
-  flex-direction: column;
-  align-items: center;
-}
-.invite .progressBox .row .numBox .num {
-  margin-bottom: 6rpx;
-  font-size: 22rpx;
-  color: #FFFFFF;
-}
-.invite .progressBox .row .numBox .icon {
-  width: 60rpx;
-  height: 60rpx;
-}
-.invite .progressBox .row .numBox .current {
-  position: absolute;
-  top: 30rpx;
-  left: 0rpx;
-  width: 87rpx;
-  height: 64rpx;
-}
-.invite .progressBox .row .numBox .rewardNum {
-  position: absolute;
-  bottom: 24rpx;
-  font-weight: bold;
-  font-size: 24rpx;
-  color: #626262;
-}
-.invite .progressBox .row .numBox .rewardN {
-  position: absolute;
-  bottom: 8rpx;
-  font-size: 14rpx;
-  color: #626262;
-}
-.invite .progressBox .row .numBox .reward {
-  width: 144rpx;
-  height: 109rpx;
-}
-.invite .progressBox .row .qualify .rewardNum,
-.invite .progressBox .row .qualify .rewardN {
-  color: #962304;
-}
-.invite .progressBox .btns {
-  display: flex;
-  align-items: center;
-  justify-content: space-between;
-  margin-bottom: 70rpx;
-}
-.invite .progressBox .btns .transcript {
-  width: 184rpx;
-  height: 68rpx;
-}
-.invite .progressBox .btns .resetBtn {
-  font-size: 0px;
-}
-.invite .progressBox .btns .inviteBtn {
-  width: 390rpx;
-  height: 68rpx;
-}
-.invite .guide {
-  padding: 26rpx 50rpx 40rpx;
-  margin-top: 420rpx;
-  background-color: #6B39D8;
-  border-radius: 20rpx;
-  color: white;
-  font-size: 26rpx;
-}
-.invite .guide .titleImg {
-  display: block;
-  margin: 0rpx auto 24rpx;
-  width: 100rpx;
-  height: 38rpx;
-}
-.invite .guide .row {
-  margin-top: 44rpx;
-}
-.invite .guide .row .logo {
-  width: 100rpx;
-  height: 25rpx;
-  margin-right: 20rpx;
-}
-.invite .guide .explain {
-  margin-top: 40rpx;
-  font-size: 24rpx;
-}
-.popBox {
-  height: 100%;
-  overflow: hidden;
-  background-color: #722FD3;
-  color: white;
-  border-top-left-radius: 20rpx;
-  border-top-right-radius: 20rpx;
-}
-.popBox .header {
-  position: relative;
-  padding: 30rpx 0;
-  letter-spacing: 2rpx;
-  text-align: center;
-  font-size: 32rpx;
-  background-color: #2D1F64;
-}
-.popBox .header .close {
-  position: absolute;
-  right: 20rpx;
-  top: 26rpx;
-  width: 50rpx;
-  height: 50rpx;
-  background-color: #9F6DEB;
-  border-radius: 50%;
-}
-.popBox .list {
-  height: calc(100% - 100rpx);
-  padding: 40rpx 20rpx 0;
-  box-sizing: border-box;
-}
-.popBox .list .item {
-  display: flex;
-  align-items: center;
-  justify-content: space-between;
-  margin-bottom: 24rpx;
-  padding: 10rpx 30rpx;
-  border-radius: 20rpx;
-  background-color: #9F6DEB;
-}
-.popBox .list .item .left {
-  display: flex;
-  align-items: center;
-}
-.popBox .list .item .left .num {
-  font-size: 30rpx;
-  width: 60rpx;
-}
-.popBox .list .item .left .avatar {
-  width: 68rpx;
-  height: 68rpx;
-  border-radius: 50%;
-  background-color: white;
-}
-.popBox .list .item .left .nickName {
-  width: 200rpx;
-  margin-left: 16rpx;
-}
-.popBox .list .item .time {
-  font-size: 26rpx;
-}
-.popBox .list .copywriting {
-  width: 100%;
-  margin: 100rpx 0rpx;
-  text-align: center;
-}
-.popBox .list .copywriting .text {
-  margin-bottom: 40rpx;
-}
-.popBox .list .inviteBtn {
-  padding: 30rpx 0;
-  width: 390rpx;
-  height: 68rpx;
-}

+ 0 - 2
pages/my/index.less

@@ -245,8 +245,6 @@
         background-size: cover;
     }
 
-
-
     .payBox4 {
         background: url(https://reader-wx.ai160.com/images/reader/v3/learn/vip1.png);
         background-size: cover;