Browse Source

no message

featrue/v4.5
xpz2018 4 years ago
parent
commit
9784213154
2 changed files with 6 additions and 6 deletions
  1. 3
      pages/home/city-select/index.js
  2. 9
      pages/mall/information-item/index.wxml

3
pages/home/city-select/index.js

@ -96,8 +96,7 @@ Page({
this.setData({ touchmove: false, touchmoveIndex: -1 })
},
lookNow: function(){
var item = {code: app.nowLocation.cityCode, name:app.nowLocation.cityName}
this.selectCity(item)
this.selectCity({code: app.nowLocation.cityCode, name:app.nowLocation.cityName})
},
lookItem: function(e){
var item = null

9
pages/mall/information-item/index.wxml

@ -1,4 +1,5 @@
<!--pages/main/index.wxml-->
<wxs module="formate" src="../../../pages/formate.wxs"></wxs>
<wxs module="moment" src="../../moment/index.wxs"></wxs>
<view class="bg-white flex flex-justify" style="padding:18rpx 24rpx">
<view style="flex: 2;">
<view class="text-df text-black">{{item.categoryName}} {{item.shortName}}</view>
@ -6,14 +7,14 @@
</view>
<view style="flex: 1;">
<view class="flex flex-center">
<text class="text-lg {{item.floatingQuotedPrice > 0 ? 'text-red' : 'text-green'}}">{{item.quotedPrice}}</text>
<text class="text-lg {{moment.colorText(item.floatingQuotedPrice)}}">{{formate.formatePrice(item.quotedPrice, 0) || '- -'}}</text>
<image style="height: 20rpx;width: 20rpx;margin-left: 4rpx" src="/assets/image/icon-up.png" wx:if="{{item.floatingQuotedPrice > 0}}"></image>
<image style="height: 20rpx;width: 20rpx;margin-left: 4rpx" src="/assets/image/icon-down.png" wx:elif="{{item.floatingQuotedPrice < 0}}"></image>
</view>
<view class="text-gray text-sm" style="margin-top: 4rpx;text-align: center">当前价</view>
</view>
<view style="flex: 1;">
<view class="text-df {{item.floatingQuotedPrice > 0 ? 'text-red' : 'text-green'}}" style="text-align: center">{{item.floatingQuotedPrice}}</view>
<view style="flex: 1;text-align: center">
<view class="text-df {{moment.colorText(item.floatingQuotedPrice)}}">{{formate.formatePrice(item.floatingQuotedPrice, 0) || '- -'}}</view>
<view class="text-gray text-sm" style="margin-top: 4rpx;text-align: center">较上次</view>
</view>
</view>
Loading…
Cancel
Save