Browse Source

no message

featrue/v4.5
xpz2018 4 years ago
parent
commit
a18051b31e
20 changed files with 132 additions and 114 deletions
  1. BIN
      assets/vip/icon-vip1.png
  2. BIN
      assets/vip/icon-vip2.png
  3. BIN
      assets/vip/icon-vip3.png
  4. BIN
      assets/vip/icon-vip4.png
  5. BIN
      assets/vip/icon-vip5.png
  6. BIN
      assets/vip/icon-vip6.png
  7. BIN
      assets/vip/icon-vip7.png
  8. BIN
      assets/vip/icon-vip8.png
  9. BIN
      assets/vip/vip-checked.png
  10. 5
      const/city.js
  11. 30
      pages/agent/factory/index.js
  12. 5
      pages/agent/factory/index.wxml
  13. 16
      pages/article/detail/index.js
  14. 5
      pages/article/detail/index.wxml
  15. 4
      pages/moment/fragment/index.js
  16. 2
      pages/moment/info-item/index.wxml
  17. 4
      pages/moment/moment-item/index.js
  18. 5
      pages/ztbvip/index.json
  19. 133
      pages/ztbvip/index.wxml
  20. 37
      pages/ztbvip/index.wxss

BIN
assets/vip/icon-vip1.png

Before After
Width: 120  |  Height: 120  |  Size: 2.3 KiB

BIN
assets/vip/icon-vip2.png

Before After
Width: 120  |  Height: 120  |  Size: 2.1 KiB

BIN
assets/vip/icon-vip3.png

Before After
Width: 120  |  Height: 120  |  Size: 2.3 KiB

BIN
assets/vip/icon-vip4.png

Before After
Width: 120  |  Height: 120  |  Size: 2.2 KiB

BIN
assets/vip/icon-vip5.png

Before After
Width: 120  |  Height: 120  |  Size: 2.3 KiB

BIN
assets/vip/icon-vip6.png

Before After
Width: 120  |  Height: 120  |  Size: 2.4 KiB

BIN
assets/vip/icon-vip7.png

Before After
Width: 120  |  Height: 120  |  Size: 2.2 KiB

BIN
assets/vip/icon-vip8.png

Before After
Width: 120  |  Height: 120  |  Size: 2.3 KiB

BIN
assets/vip/vip-checked.png

Before After
Width: 40  |  Height: 40  |  Size: 437 B

5
const/city.js

@ -8,6 +8,11 @@ module.exports = {
"code": 513200,
"keyword": "阿坝ABA"
},
{
"cityName": "阿尔山市",
"code": 152202,
"keyword": "阿尔山AERSHAN"
},
{
"cityName": "阿克苏",
"code": 652900,

30
pages/agent/factory/index.js

@ -32,7 +32,7 @@ Page({
pageNum: 1,
pageSize:15
},
visible: false,
hasFollowed: false
},
/**
@ -52,18 +52,15 @@ Page({
if (options.id) {
this.data.id = options.id
this.data.form.millPaperId = options.id
wx.showLoading({
title: '加载中',
mask: true
})
wx.showLoading({ title: '加载中', mask: true })
getFactoryPriceDetail(options.id).then(result => {
if (result.data.paperCategoryList && result.data.paperCategoryList.length) {
this.data.cateId = result.data.paperCategoryList[this.data.cateIndex].categoryId
}
this.setData({
factoryDetail: result.data,
hasFollowed:result.data.hasFollowed
})
if(result.data && result.data.isCooperate !== 1 && !app.globalData.userInfo.isVIP){
this.data.visible = true
}
this.setData({ factoryDetail: result.data, hasFollowed:result.data.hasFollowed, visible: this.data.visible })
wx.hideLoading()
}).catch(err => {
wx.hideLoading()
@ -76,21 +73,18 @@ Page({
this.onRefreshList()
}
},
onFixedChange: function ({
detail
}) {
onFixedChange: function ({ detail }) {
this.data.fixed = detail.fixed
},
onScroll: function ({
detail
}) {
this.setData({
scrollTop: detail.scrollTop
})
onScroll: function ({ detail }) {
this.setData({ scrollTop: detail.scrollTop })
},
stopTouchMove: function (e) {
return false
},
onImageClick: function(){
wx.navigateTo({ url: '/pages/ztbvip/index' })
},
onTabChange: function ({ detail }) {
if (this.data.tabIndex == Number(detail.index)) {
return

5
pages/agent/factory/index.wxml

@ -178,16 +178,13 @@
</view>
<wux-popup wux-class="wux-landscape" wux-content-class="wux-landscape__popup" wux-body-class="wux-landscape__popup-body"
hasHeader="{{ false }}" hasFooter="{{ false }}" visible="{{ true }}" mask="{{ true }}">
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>
<view class="text-df" style="margin-top:16rpx">
<text style="color:#FFEF93;padding:12rpx 24rpx;" catchtap="toRule">活动规则</text>
</view>
</view>
</wux-popup>

16
pages/article/detail/index.js

@ -27,6 +27,7 @@ Page({
pageSize: 15
},
maskHidden: false,
visible: false
},
onLoad: function (options) {
this.data.keyboardHeight = wx.getStorageSync('keyboardHeight')
@ -41,14 +42,12 @@ Page({
if (options.id) {
this.data.id = options.id
this.data.form.articleId = options.id
wx.showLoading({
title: '加载中',
mask: true
})
wx.showLoading({ title: '加载中', mask: true })
getMomentDetail(options.id).then(result => {
this.setData({
momentDetail: result.data
})
if(result.data && result.data.membershipPrivileges === 1 && !app.globalData.userInfo.isVIP){
this.data.visible = true
}
this.setData({ momentDetail: result.data, visible: this.data.visible })
this.fetchCommentList()
wx.hideLoading()
}).catch(err => {
@ -57,6 +56,9 @@ Page({
})
}
},
onImageClick: function(){
wx.navigateTo({ url: '/pages/ztbvip/index' })
},
onRefreshList: function () {
if (this.data.requesting) {
return

5
pages/article/detail/index.wxml

@ -167,15 +167,12 @@
</view>
<wux-popup wux-class="wux-landscape" wux-content-class="wux-landscape__popup" wux-body-class="wux-landscape__popup-body"
hasHeader="{{ false }}" hasFooter="{{ false }}" visible="{{ true }}" mask="{{ true }}">
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>
<view class="text-df" style="margin-top:16rpx">
<text style="color:#FFEF93;padding:12rpx 24rpx;" catchtap="toRule">活动规则</text>
</view>
</view>
</wux-popup>

4
pages/moment/fragment/index.js

@ -39,9 +39,7 @@ Component({
methods: {
onRestart: function () {
if(!this.data.firstShow){
setTimeout(() => {
this.setData({ tabIndex: this.data.tabIndex, tabList: [ '推荐', '关注', '全部' , '资讯'] })
}, 100)
setTimeout(() => { this.setData({ tabIndex: this.data.tabIndex, tabList: [ '推荐', '关注', '全部' , '资讯'] }) }, 100)
params.date = util.formatDate(new Date(), 'Y-M-D')
}
this.data.firstShow = true

2
pages/moment/info-item/index.wxml

@ -8,7 +8,7 @@
<text class="cuIcon-right text-blue" style="font-size:24rpx;"></text>
</view>
<view class="text-sm text-gray" style="padding-top: 2rpx;">{{item.createTime}}</view>
<view class="text-sm text-gray" style="margin-left: 16rpx;">{{item.readingQuantity}}次阅读</view>
<view class="text-sm text-gray" style="margin-left: 16rpx;">{{item.readingQuantity || 0}}次阅读</view>
</view>
</view>
<wux-image width="{{240}}" height="{{180}}" nuit="rpx" src="{{item.imageUrlList[0]}}" mode="aspectFill" wx:if="{{item.imageUrlList.length}}">

4
pages/moment/moment-item/index.js

@ -46,10 +46,6 @@ Component({
util.navigateTo('/pages/login/index')
return
}
if(!app.globalData.userInfo.isVIP){
util.showToast('当前纸厂信息仅仅VIP会员用户可查看')
return
}
}
util.navigateTo('/pages/agent/factory/index?id=' + this.data.item.paperMillId)
},

5
pages/ztbvip/index.json

@ -4,8 +4,7 @@
"wux-button": "/components/button/index",
"wux-image": "/components/image/index",
"wux-dialog": "/components/dialog/index",
"wux-cell-group": "/components/cell-group/index",
"wux-cell": "/components/cell/index",
"wux-divider": "/components/divider/index"
"wux-grids": "/components/grids/index",
"wux-grid": "/components/grid/index"
}
}

133
pages/ztbvip/index.wxml

@ -1,75 +1,92 @@
<!--pages/ztbvip/index.wxml-->
<wxs module="formate" src="../../pages/formate.wxs"></wxs>
<cu-custom bgColor="bg-white" isBack="{{true}}">
<view slot="content">纸通宝会员</view>
<view slot="content">会员中心</view>
</cu-custom>
<!-- <wux-image width="{{750}}" height="{{270}}" nuit="{{'rpx'}}" src="https://pic.downk.cc/item/5f181ed214195aa594565927.png" mode="aspectFill">
</wux-image> -->
<view style="padding:18rpx 24rpx;background-color:white">
<view class="header-box">
<view class="flex">
<wux-image width="{{60}}" height="{{60}}" wux-class="image" shape="circle" src="{{avatarUrl}}" />
<view class="flex flex-column flex-center" style="width:100%;margin-left:18rpx;align-items:flex-start">
<view class="flex flex-justify" style="width:100%">
<view class="flex flex-center">
<text class="text-cut" style="white-space: nowrap;max-width: 180rpx">{{userName || ''}}</text>
<view class="flex flex-center" style="font-size:12px" catchtap="toAuthor">
<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>
<button class="cu-btn bg-red round shadow-blur vip-btn" bindtap="openVip">{{vipInfo.isVIP==1?'立即续费':'开通会员'}}</button>
</view>
<view class="flex flex-center" style="font-size:28rpx;">
<text class="text-black">{{vipInfo.isVIP==1?'付费会员':'非会员'}}</text>
<text style="margin-left:12rpx;font-size:12px;color: #6f6f6f;" wx:if="{{vipInfo.isVIP==1}}">(到期时间:{{vipInfo.memberExpiredAt}})</text>
</view>
</view>
</view>
<view style="margin-top:32rpx;border-top: 2rpx solid #9B6C48"></view>
<view class="flex flex-justify" style="margin-top:32rpx">
<text style="font-size:30rpx;color:#692F03">我的权益</text>
<view class="flex">
<view class="flex flex-column flex-center">
<wux-image width="{{30}}" height="{{30}}" wux-class="image" shape="circle" src="/assets/image/ico_vip1.png" />
<text style="font-size:20rpx;color:#9C6D24">买卖保障</text>
</view>
<view class="flex flex-column flex-center" style="margin-left:32rpx">
<wux-image width="{{30}}" height="{{30}}" wux-class="image" shape="circle" src="/assets/image/ico_vip2.png" />
<text style="font-size:20rpx;color:#9C6D24">竞价特权</text>
</view>
<view class="flex flex-column flex-center" style="margin-left:32rpx">
<wux-image width="{{30}}" height="{{30}}" wux-class="image" shape="circle" src="/assets/image/ico_vip3.png" />
<text style="font-size:20rpx;color:#9C6D24">咨询特权</text>
</view>
<view class="bg-white" style="position: relative;height: 420rpx;">
<image style="width: 750rpx;height: 360rpx;" src="https://636c-cloud1-1gjilu3e74c1a18a-1305669442.tcb.qcloud.la/vip-top-bg.png?sign=291c882f493ac55be1ac8405a016855d&t=1633692336"></image>
<image style="position: absolute;top: 32rpx;left: 32rpx;width: 686rpx;height: 386rpx;" src="https://636c-cloud1-1gjilu3e74c1a18a-1305669442.tcb.qcloud.la/vip-nibg.png?sign=c2769d6f8975c57b3f948a63955ac8b8&t=1633693058" wx:if="{{vipInfo.isVIP==1}}"></image>
<image style="position: absolute;top: 32rpx;left: 32rpx;width: 686rpx;height: 386rpx;" src="https://636c-cloud1-1gjilu3e74c1a18a-1305669442.tcb.qcloud.la/vip-unbg.png?sign=ccdb23b86c6cfb020b75164824c3652f&t=1633694019" wx:else></image>
<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>
<view style="color: #7E5621;margin-top: 12rpx;">{{userInfo.mobile}}</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>
</view>
</view>
<view style="padding:8rpx 12rpx 18rpx 12rpx;background-color:white" wx:if="{{iconList.length}}">
<view style="font-size:32rpx;color:#333333;padding-left:12rpx;margin-bottom: 24rpx">选择购买的会员产品</view>
<view class="cu-list grid col-3 no-border" style="padding: 0rpx">
<view class="cu-item" wx:for="{{iconList}}" wx:key="index" data-index="{{index}}" bindtap="onGridTap">
<view class="openVip">
<view class="cu-tags" wx:if="{{item.sellStrategy == 'twoForOneAtFirstTime'}}">首月买一赠一</view>
<view class="{{item.id == divIndex? 'openVip22':'openVip21'}}">
<view style="padding:32rpx 0rpx 48rpx 0rpx">
<text class="text-cut" style="font-size:36rpx;color:#333333">{{item.days}}{{item.title}}</text>
<text class="text-price" style="margin-top:18rpx;font-size:40rpx;color:#d0a45c">{{item.realPrice}}</text>
<text style="margin-top:18rpx;font-size:24rpx;color:#999999;text-decoration:line-through">原价:¥{{item.bidPrice}}</text>
</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="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>
<view style="margin-top:18rpx;font-size:24rpx;color:#999999;text-decoration:line-through">原价:¥{{item.bidPrice}}</view>
<view style="height: 16rpx;"></view>
<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>
</view>
<view style="min-width: 32rpx;height: 270rpx;">
<text></text>
</view>
</view>
</view>
</scroll-view>
<view class="text-bold bg-white" style="font-size:32rpx;color:#333333;padding: 12rpx 12rpx 12rpx 32rpx;">会员特权</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>
<view style="font-size: 26rpx;margin-top: 8rpx;">纸厂价格</view>
</wux-grid>
<wux-grid hover-class="none">
<image style="height: 112rpx;width: 112rpx;margin-top: 18rpx;" src="/assets/vip/icon-vip2.png"></image>
<view style="font-size: 26rpx;margin-top: 8rpx;">扣点信息</view>
</wux-grid>
<wux-grid hover-class="none">
<image style="height: 112rpx;width: 112rpx;margin-top: 18rpx;" src="/assets/vip/icon-vip3.png"></image>
<view style="font-size: 26rpx;margin-top: 8rpx;">车辆排队</view>
</wux-grid>
<wux-grid hover-class="none">
<image style="height: 112rpx;width: 112rpx;margin-top: 18rpx;" src="/assets/vip/icon-vip4.png"></image>
<view style="font-size: 26rpx;margin-top: 8rpx;">收停快讯</view>
</wux-grid>
<wux-grid hover-class="none">
<image style="height: 112rpx;width: 112rpx;margin-top: 18rpx;" src="/assets/vip/icon-vip5.png"></image>
<view style="font-size: 26rpx;margin-top: 8rpx;">我的浏览</view>
</wux-grid>
<wux-grid hover-class="none">
<image style="height: 112rpx;width: 112rpx;margin-top: 18rpx;" src="/assets/vip/icon-vip6.png"></image>
<view style="font-size: 26rpx;margin-top: 8rpx;">权威分析</view>
</wux-grid>
<wux-grid hover-class="none">
<image style="height: 112rpx;width: 112rpx;margin-top: 18rpx;" src="/assets/vip/icon-vip7.png"></image>
<view style="font-size: 26rpx;margin-top: 8rpx;">同城交流</view>
</wux-grid>
<wux-grid hover-class="none">
<image style="height: 112rpx;width: 112rpx;margin-top: 18rpx;" src="/assets/vip/icon-vip8.png"></image>
<view style="font-size: 26rpx;margin-top: 8rpx;">行情分析</view>
</wux-grid>
</wux-grids>
<view style="height:{{136 + safeBottom}}rpx;"></view>
<view class="cu-bar bg-white foot" style="height:{{120 + safeBottom}}rpx;padding: 32rpx 32rpx {{safeBottom + 32}}rpx 32rpx;" wx:if="{{iconList.length}}">
<button class="cu-btn bg-red round shadow-blur page-btn" bindtap="openVip">{{vipInfo.isVIP==1?'立即续费':'开通会员'}}</button>
<view class="bg-white" style="height:{{156 + safeBottom}}rpx;"></view>
<view class="cu-bar foot-bg foot" style="height:{{120 + safeBottom}}rpx;padding: 32rpx 32rpx {{safeBottom + 32}}rpx 32rpx;" wx:if="{{iconList.length}}">
<button class="cu-btn bg-red round page-btn" bindtap="openVip">{{vipInfo.isVIP==1?'立即续费':'开通会员'}}</button>
</view>
<wux-dialog id="wux-dialog" />

37
pages/ztbvip/index.wxss

@ -1,12 +1,12 @@
/* pages/ztbvip/index.wxss */
.header-box {
width: 700rpx;
height: 335rpx;
background-image: url(https://pic.downk.cc/item/5f1bab9214195aa594620821.png);
background-size: cover;
padding:32rpx 24rpx;
/* box-shadow: 0px 0px 15px -6px rgba(0, 0, 0, 0.32);
border-radius: 6px; */
width: 686rpx;
height: 386rpx;
position: absolute;
top: 32rpx;
left: 32rpx;
padding: 16rpx 32rpx;
display: flex;
}
@ -40,15 +40,13 @@
width: 32rpx;
height: 32rpx;
}
.page-btn {
height: 90rpx;
width: 100%;
background: #d0a45c;
box-shadow: 0px 4px 14px -6px rgba(255, 43, 45, 0.8);
color: white;
font-size: 32rpx;
background-image: linear-gradient(90deg, #FFEAD0 0%, #FFCE90 100%);
color: #7E561C;
font-size: 36rpx;
}
.vip-btn {
@ -67,10 +65,14 @@
}
.openVip21{
border-radius: 6%;
height: 100%;
flex-direction: column;
border: 2rpx solid #DBDBDB;
}
.openVip22{
border-radius: 6%;
height: 100%;
flex-direction: column;
border: 2rpx solid #d0a45c;
background-color: #fefaf1;
}
@ -86,4 +88,15 @@
font-size: 24rpx;
padding: 10rpx 16rpx;
color: var(--white);
}
.cu-checked{
position: absolute;
right: -2rpx;
top: -2rpx;
width: 40rpx;
height: 40rpx;
}
.foot-bg{
background-image: linear-gradient(180deg, #2B292C 0%, #3C3A34 100%);
}
Loading…
Cancel
Save