Browse Source

no message

featrue/v4.5
xpz2018 4 years ago
parent
commit
8fefd370b4
2 changed files with 7 additions and 6 deletions
  1. 5
      pages/home/index/index.js
  2. 8
      pages/mall/fragment/index.wxml

5
pages/home/index/index.js

@ -84,9 +84,12 @@ Component({
if (!util.isEmpty(app.globalData.userInfo.avatarUrl)) { if (!util.isEmpty(app.globalData.userInfo.avatarUrl)) {
app.globalData.userInfo.avatarUrl = app.globalData.userInfo.avatarUrl app.globalData.userInfo.avatarUrl = app.globalData.userInfo.avatarUrl
} }
if(app.globalData.isVIP == 1 && app.globalData.userInfo.memberExpiredAt){
if(app.globalData.userInfo.isVIP == 1 && app.globalData.userInfo.memberExpiredAt){
app.globalData.userInfo.memberExpiredAt = util.formatDate(new Date(app.globalData.userInfo.memberExpiredAt.replace(/\-/g, "/")), 'Y-M-D') app.globalData.userInfo.memberExpiredAt = util.formatDate(new Date(app.globalData.userInfo.memberExpiredAt.replace(/\-/g, "/")), 'Y-M-D')
app.globalData.userInfo.memberExpiredAt = app.globalData.userInfo.memberExpiredAt.substring(0, 10)
console.log(app.globalData.userInfo)
} }
// console.log(app.globalData.userInfo)
this.setData({ CustomBar: app.globalData.CustomBar, avatarUrl: app.globalData.userInfo.avatarUrl, userInfo: app.globalData.userInfo }) this.setData({ CustomBar: app.globalData.CustomBar, avatarUrl: app.globalData.userInfo.avatarUrl, userInfo: app.globalData.userInfo })
}, },
fetchUserInfo: function () { fetchUserInfo: function () {

8
pages/mall/fragment/index.wxml

@ -3,11 +3,11 @@
<view class="cu-custom top-bg" style="height:{{customHeight}}rpx;z-index: 1;"> <view class="cu-custom top-bg" style="height:{{customHeight}}rpx;z-index: 1;">
<view class="cu-bar fixed " style="height:{{customHeight}}rpx;padding-top:{{StatusBar}}rpx;border-bottom:none;padding-right: 0px;width: {{customWidth}}px"> <view class="cu-bar fixed " style="height:{{customHeight}}rpx;padding-top:{{StatusBar}}rpx;border-bottom:none;padding-right: 0px;width: {{customWidth}}px">
<view class="flex flex-center" style="margin-left: 32rpx;width: 100%;flex: 1;"> <view class="flex flex-center" style="margin-left: 32rpx;width: 100%;flex: 1;">
<view id="city" class="flex flex-center" catchtap="gridTap">
<view id="city" class="flex flex-center" style="margin-right:24rpx;" catchtap="gridTap" wx:if="{{cityName}}">
<text class="text-white text-lg">{{cityName}}</text> <text class="text-white text-lg">{{cityName}}</text>
<text class="cuIcon-unfold text-white" style="font-size:16px;padding-top: 8rpx;margin-left: 8rpx;"></text> <text class="cuIcon-unfold text-white" style="font-size:16px;padding-top: 8rpx;margin-left: 8rpx;"></text>
</view> </view>
<view class="bg-white flex flex-center" style="margin-left:24rpx;flex: 1;border-radius: 16rpx;height: 64rpx;" catchtap="searchList">
<view class="bg-white flex flex-center" style="flex: 1;border-radius: 16rpx;height: 64rpx;" catchtap="searchList">
<image src="/assets/image/icon-search.png" style="height: 30rpx;width: 30rpx;margin-left: 16rpx"></image> <image src="/assets/image/icon-search.png" style="height: 30rpx;width: 30rpx;margin-left: 16rpx"></image>
<text class="text-gray text-sm" style="flex: 1;margin-left: 8rpx">输入关键字搜索</text> <text class="text-gray text-sm" style="flex: 1;margin-left: 8rpx">输入关键字搜索</text>
</view> </view>
@ -18,9 +18,7 @@
</view> </view>
</view> </view>
</view> </view>
<!-- <cu-custom fragment="1" isBack="{{false}}">
<view slot="right" style="color:black;font-size:36rpx">商品详情</view>
</cu-custom> -->
<view class="top-bg" style="height: 24rpx;"></view> <view class="top-bg" style="height: 24rpx;"></view>
<scroll-view scroll-y class="mian-list" style="height: {{height - 124}}rpx;"> <scroll-view scroll-y class="mian-list" style="height: {{height - 124}}rpx;">
<view wx:if="{{bannerList.length}}" style="height:270rpx;min-height: 270rpx;margin-top: 16rpx;"> <view wx:if="{{bannerList.length}}" style="height:270rpx;min-height: 270rpx;margin-top: 16rpx;">

Loading…
Cancel
Save