Browse Source

no message

featrue/v4.5
xpz2018 4 years ago
parent
commit
45d993d92b
5 changed files with 35 additions and 27 deletions
  1. 2
      app.js
  2. 5
      pages/agent/factory/index.wxml
  3. 2
      pages/article/detail/index.wxml
  4. 34
      pages/ztbvip/index.wxml
  5. 19
      pages/ztbvip/index.wxss

2
app.js

@ -2,7 +2,7 @@
const tdsdk = require('./libs/tdweapp.js')
App({
//----------------------------------------------globalData--------------------------------------
evn: 0,//0:开发环境,1:测试环境,2:生产环境
evn: 2,//0:开发环境,1:测试环境,2:生产环境
tmplIds: ['SUjEgwDopCv9xkkSZ4KbS0L7XbAiVQor6GmPg14K760'],
agentMsgIds: ['kG8DErWDpyzBHCFaLlSKYMF7xVy8UpgogCwV_WSNt10', 'lOQ8Gvyy_dTk68bYGpRVnVA0M7DsYYrV81Gd39GUPBA'],
version: 152,

5
pages/agent/factory/index.wxml

@ -180,10 +180,7 @@
<wux-popup wux-class="wux-landscape" wux-content-class="wux-landscape__popup" wux-body-class="wux-landscape__popup-body"
hasHeader="{{ false }}" hasFooter="{{ false }}" visible="{{ visible }}" mask="{{ true }}">
<view class="wux-landscape__inner">
<wux-image width="{{654}}" height="{{680}}" nuit="{{'rpx'}}" src="https://636c-cloud1-1gjilu3e74c1a18a-1305669442.tcb.qcloud.la/d88cfa6ca3ff48a188dad034bad713f9.png?sign=e6d591315b5597f00b902c5fc4629e9d&t=1633660970" bind:click="onImageClick">
<view class="flex flex-center" slot="loading" style="height:654rpx;width:680rpx">
<text class="icon--refresher"></text>
</view>
<wux-image width="{{604}}" height="{{806}}" nuit="{{'rpx'}}" src="https://636c-cloud1-1gjilu3e74c1a18a-1305669442.tcb.qcloud.la/vip-popup.png?sign=d1700739588ec48dedaf3f8215b9f2d2&t=1633697225" bind:click="onImageClick">
</wux-image>
</view>
</wux-popup>

2
pages/article/detail/index.wxml

@ -169,7 +169,7 @@
<wux-popup wux-class="wux-landscape" wux-content-class="wux-landscape__popup" wux-body-class="wux-landscape__popup-body"
hasHeader="{{ false }}" hasFooter="{{ false }}" visible="{{ visible }}" mask="{{ true }}">
<view class="wux-landscape__inner">
<wux-image width="{{654}}" height="{{680}}" nuit="{{'rpx'}}" src="https://636c-cloud1-1gjilu3e74c1a18a-1305669442.tcb.qcloud.la/d88cfa6ca3ff48a188dad034bad713f9.png?sign=e6d591315b5597f00b902c5fc4629e9d&t=1633660970" bind:click="onImageClick">
<wux-image width="{{604}}" height="{{806}}" nuit="{{'rpx'}}" src="https://636c-cloud1-1gjilu3e74c1a18a-1305669442.tcb.qcloud.la/vip-popup.png?sign=d1700739588ec48dedaf3f8215b9f2d2&t=1633697225" bind:click="onImageClick">
<view class="flex flex-center" slot="loading" style="height:654rpx;width:680rpx">
<text class="icon--refresher"></text>
</view>

34
pages/ztbvip/index.wxml

@ -11,27 +11,31 @@
<view class="header-box">
<wux-image width="{{60}}" height="{{60}}" wux-class="image" shape="circle" src="{{avatarUrl}}" />
<view style="margin-left:18rpx;align-items:flex-start;margin-top: 16rpx;">
<view class="flex flex-center" style="font-size:12px" catchtap="toAuthor">
<view class="text-cut text-xl">{{userName || '未登录'}}</view>
<image class="img-auth2" src="{{userInfo.isAuth == 1 ? '../../assets/image/icon_author.png' : '../../assets/image/icon_unauthor.png'}}"></image>
<text class="{{userInfo.isAuth == 1 ? 'text-blue' : 'text-gray'}}">{{userInfo.isAuth == 1 ? '已认证' : '未实名认证'}}</text>
<text class="text-yellow" style="padding:4px;" wx:if="{{userInfo && userInfo.isAuth != 1}}">去认证</text>
<view class="flex" style="font-size:12px" catchtap="toAuthor">
<view class="text-cut text-xl" style="color: {{vipInfo.isVIP==1 ? '#7E561C' : 'white'}};">{{userName || '未登录'}}</view>
<view class="flex flex-justify" wx:if="{{userInfo}}">
<image class="img-auth2" src="{{userInfo.isAuth == 1 ? '../../assets/image/icon_author.png' : '../../assets/image/icon_unauthor.png'}}"></image>
<text class="{{userInfo.isAuth == 1 ? 'text-blue' : 'text-gray'}}">{{userInfo.isAuth == 1 ? '已认证' : '未实名认证'}}</text>
<text class="text-yellow" style="padding:4px;" wx:if="{{userInfo && userInfo.isAuth != 1}}">去认证</text>
</view>
</view>
<view style="color: #7E5621;margin-top: 12rpx;">{{userInfo.mobile}}</view>
<view style="color: {{vipInfo.isVIP==1 ? '#7E561C' : 'white'}};margin-top: 12rpx;" wx:if="{{userInfo}}">{{userInfo.mobile}}</view>
<view class="text-sm text-white" style="margin-top: 12rpx" wx:else>登录解锁会员权益</view>
</view>
</view>
<view class="flex flex-justify" style="font-size:28rpx;position: absolute;bottom: 60rpx;width: 100%;padding: 0rpx 64rpx;">
<text style="margin-left:12rpx;font-size:12px;color: #6f6f6f;" wx:if="{{vipInfo.isVIP==1}}">(到期时间:{{vipInfo.memberExpiredAt}})</text>
<text class="text-black" wx:else>开通会员立享8项特权</text>
<button class="cu-btn bg-red round shadow-blur vip-btn" bindtap="openVip">{{vipInfo.isVIP==1?'立即续费':'开通会员'}}</button>
<text style="margin-left:12rpx;font-size:12px;color: #7E5621;" wx:if="{{vipInfo.isVIP==1}}">到期时间:{{vipInfo.memberExpiredAt}}</text>
<text class="text-white" wx:else>开通会员立享8项特权</text>
<button class="cu-btn bg-red round shadow-blur vip-btn" bindtap="openVip" wx:if="{{vipInfo.isVIP==1}}">立即续费</button>
<button class="cu-btn bg-red round shadow-blur btn-login" bindtap="openVip" wx:else>开通会员</button>
</view>
</view>
<view class="text-bold bg-white" style="font-size:32rpx;color:#333333;padding:12rpx 12rpx 24rpx 32rpx;">选择购买的会员产品</view>
<scroll-view class="bg-white" scroll-x="{{true}}" style="width: 750rpx;height: 300rpx;">
<view style="display:flex;align-items: center;width: 750rpx;">
<view style="min-width: 200rpx;margin-left: 32rpx;height: 270rpx;" wx:for="{{iconList}}" wx:key="index" data-index="{{index}}" bindtap="onGridTap">
<view class="{{item.id == divIndex? 'openVip22':'openVip21'}}" style="position: relative;">
<view style="min-width: 208rpx;margin-left: 32rpx;height: 270rpx;" wx:for="{{iconList}}" wx:key="index" data-index="{{index}}" bindtap="onGridTap">
<view class="{{item.id == divIndex? 'openVip22':'openVip21'}}" style="position: relative;margin-top: 24rpx;">
<view style="padding:32rpx 0rpx 48rpx 0rpx;text-align: center">
<view class="text-cut" style="font-size:36rpx;color:#333333">{{item.days}}{{item.title}}</view>
<view class="text-price" style="margin-top:18rpx;font-size:40rpx;color:#d0a45c">{{item.realPrice}}</view>
@ -40,15 +44,15 @@
<text style="background: #F2F1F4;border-radius: 8rpx;padding: 4rpx 8rpx;font-size: 20rpx;">每天仅需4.2元</text>
</view>
<image class="cu-checked" src="/assets/vip/vip-checked.png" wx:if="{{item.id == divIndex}}"></image>
<view class="cu-tags" wx:if="{{item.sellStrategy === 'twoForOneAtFirstTime'}}">首月买一赠一</view>
</view>
</view>
<view style="min-width: 32rpx;height: 270rpx;">
<text></text>
</view>
<view style="min-width: 32rpx;height: 270rpx;"><text></text></view>
</view>
</scroll-view>
<view class="text-bold bg-white" style="font-size:32rpx;color:#333333;padding: 12rpx 12rpx 12rpx 32rpx;">会员特权</view>
<view class="text-bold bg-white" style="font-size:32rpx;color:#333333;padding: 24rpx 12rpx 12rpx 24rpx;">会员特权</view>
<wux-grids col="4" square bordered="{{ false }}">
<wux-grid hover-class="none">
<image style="height: 112rpx;width: 112rpx;margin-top: 18rpx;" src="/assets/vip/icon-vip1.png"></image>

19
pages/ztbvip/index.wxss

@ -41,6 +41,13 @@
height: 32rpx;
}
.btn-login{
background-image: linear-gradient(270deg, #A5A5A5 0%, #C3C3C3 100%);
box-shadow: 0 2px 4px 0 rgba(0,0,0,0.10);
border-radius: 4px;
color: white;
}
.page-btn {
height: 90rpx;
width: 100%;
@ -64,13 +71,13 @@
text-align: center;
}
.openVip21{
border-radius: 6%;
border-radius: 16rpx;
height: 100%;
flex-direction: column;
border: 2rpx solid #DBDBDB;
}
.openVip22{
border-radius: 6%;
border-radius: 16rpx;
height: 100%;
flex-direction: column;
border: 2rpx solid #d0a45c;
@ -79,12 +86,12 @@
.cu-tags {
border-top-left-radius: 24rpx;
border-bottom-right-radius: 24rpx;
border-top-left-radius: 16rpx;
border-bottom-right-radius: 16rpx;
background-color: #dd514c;
position: absolute;
top: 0rpx;
left: 16rpx;
top: -24rpx;
left: -2rpx;
font-size: 24rpx;
padding: 10rpx 16rpx;
color: var(--white);

Loading…
Cancel
Save