Browse Source

--UI--调整

featrue/v4.3
huziyuan 5 years ago
parent
commit
9ba7e62a01
4 changed files with 30 additions and 5 deletions
  1. 2
      pages/article/allNewInfo/index.wxml
  2. 4
      pages/article/allNewInfo/index.wxss
  3. 12
      pages/article/feedback/index.js
  4. 17
      pages/article/newInfo/index.wxml

2
pages/article/allNewInfo/index.wxml

@ -27,7 +27,7 @@
<view class="flex flex-justify" style="border-top:2rpx solid #f3f3f3;margin-top:20rpx;padding: 0rpx 40rpx 0rpx 40rpx;"
id="toFactoryDetails" data-factoryId="{{item.paperMillId}}" catchtap="toPage">
<!-- <text class="text-df text-balck" style="flex:1;text-align: center">{{item.yesterdayTotalQuantity || 0}}%</text> -->
<view class="text-df text-balck" style="flex:1.2">{{item.shortName}}<view wx:if="{{item.hasFollowed==true}}" class="yesAttention">已关注</view><view wx:if="{{item.hasFollowed==false}}" class="noAttention">已取消</view></view>
<view class="text-df text-balck" style="flex:1.2" style="position: relative;">{{item.shortName}}<view wx:if="{{item.hasFollowed==true}}" class="yesAttention">已关注</view><view wx:if="{{item.hasFollowed==false}}" class="noAttention">未关注</view></view>
<view class="text-df {{item.biggestFloatPrice>0?'text-red':(item.biggestFloatPrice<0?'text-green':'text-black')}}" style="flex:1;text-align: center">{{item.biggestFloatPrice*1000||0}} </view>
<view class="text-df text-balck" style="flex:1;text-align: center">{{item.yesterdayTotalQuantity || 0}}辆</view>
<view class="text-df text-balck" style="flex:1;text-align: center">{{item.minimumDeductionPoint || 0}}%</view>

4
pages/article/allNewInfo/index.wxss

@ -266,6 +266,8 @@ page {
font-size: 18rpx;
color: #007AFF;
letter-spacing: 0;
position: absolute;
bottom: 1rpx;
}
.noAttention {
@ -280,4 +282,6 @@ page {
font-size: 18rpx;
color: rgb(150, 150, 150);
letter-spacing: 0;
position: absolute;
bottom: 1rpx;
}

12
pages/article/feedback/index.js

@ -108,6 +108,18 @@ Page({
})
},
subFeedBack:function(){
if(this.data.postForm.millId==''||this.data.postForm.millId==null){
util.showToast('请选择纸厂')
return
}
if(this.data.postForm.type==''||this.data.postForm.type==null){
util.showToast('请选类型')
return
}
if(this.data.postForm.content==''||this.data.postForm.content==null){
util.showToast('请填写内容')
return
}
this.feedbackMillInformationFct(this.data.postForm)
},
textareaBindblur:function(e){

17
pages/article/newInfo/index.wxml

@ -99,10 +99,10 @@
<view class="bottomView" wx:for="{{factoryList}}" wx:key="index" id="{{item.id}}" bindtap="toPageDetails">
<view class="bottomViewleft">
<view class="bottomViewleft-top">
<view style="height41rpx;line-height:41rpx;font-size: 24rpx;color: #007AFF;">
<view style="height:41rpx;line-height:41rpx;font-size: 24rpx;color: #007AFF;">
<wux-tag id="{{item.millPaperId}}" catchtap="toMill" wx:if="{{item.millPaperName}}">
<text style="background-color:#ddd;border-radius: 32rpx;text-align: center;width:25rpx;height:32rpx;line-height:32rpx">#</text>
<text class="text-df" style="margin-left:10rpx">{{item.millPaperName}}</text>
<text >#</text>
<text class="text-df" style="margin-left:10rpx">{{m1.newString(item.millPaperName)}}</text>
</wux-tag>
<text style="font-size: 32rpx;color:black;margin-left:16rpx">{{item.title}}</text>
</view>
@ -116,4 +116,13 @@
<image class="bottomViewRightImg" src="{{item.imageUrlList[0]}}"></image>
</view>
</view>
</scroll-view>
</scroll-view>
<wxs module="m1">
var newString = function(string) {
var newString = string.substring(0, 4)
return newString+'...';
}
module.exports.newString = newString;
</wxs>
Loading…
Cancel
Save