Browse Source

UI调整

featrue/v4.3
huziyuan 5 years ago
parent
commit
72c585db13
8 changed files with 23 additions and 30 deletions
  1. 2
      app.js
  2. BIN
      assets/info/timeDown.png
  3. 4
      pages/article/allNewInfo/index.wxml
  4. 6
      pages/article/feedback/index.wxml
  5. 12
      pages/article/feedback/index.wxss
  6. 14
      pages/article/newInfo/index.js
  7. 14
      pages/article/newInfo/index.wxml
  8. 1
      pages/article/newInfo/index.wxss

2
app.js

@ -1,7 +1,7 @@
//app.js
App({
//----------------------------------------------globalData--------------------------------------
evn: 1,//0:开发环境,1:测试环境,2:生产环境
evn: 0,//0:开发环境,1:测试环境,2:生产环境
tmplIds: ['SUjEgwDopCv9xkkSZ4KbS0L7XbAiVQor6GmPg14K760'],
agentMsgIds: ['kG8DErWDpyzBHCFaLlSKYMF7xVy8UpgogCwV_WSNt10', 'oLbv-IyJOia2tenh64_Lc8xeAzwgzu3gh1vFJ1Se-ME'],
version: 152,

BIN
assets/info/timeDown.png

Before After
Width: 16  |  Height: 16  |  Size: 189 B

4
pages/article/allNewInfo/index.wxml

@ -11,7 +11,7 @@
</view>
<view class="text-df text-gray" style="flex:1;text-align: center">纸厂排队</view>
<view class="text-df text-gray" style="flex:1;text-align: center">最近扣点</view>
<view class="text-df text-gray" style="flex:0.5;text-align: center">更多</view>
<view class="text-df text-gray" style="flex:0.5;text-align: center"></view>
</view>
<scroll-view scroll-y="true" style='max-height:1050rpx;width:100%;background-color:white'>
<view class="img-nodata" style="height:{{height}}rpx" wx:if="{{!orderList.length}}">
@ -29,7 +29,7 @@
<!-- <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 {{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.yesterdayRetainedQuantity || 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>
<view class="text-df text-balck" style="flex:0.5;text-align: center" id="{{item.paperMillId}}" catchtap="changeTable" wx:if="{{tableSgin==item.paperMillId}}">
<image style="width:28rpx;height:28rpx;" src="/assets/info/factoryUp.png"></image>

6
pages/article/feedback/index.wxml

@ -4,7 +4,7 @@
</cu-custom>
<view class="zt">
<view class="view1">
<view class="cu-form-group margin-top">
<view class="cu-form-group margin-top" style="border-bottom: none;">
<view class="title">反馈纸厂</view>
<picker bindchange="PickerChange" value="{{fatoryNameIndex}}" range="{{fatoryNameList}}">
<view class="picker">
@ -14,7 +14,7 @@
</view>
</view>
<view class="view2">
<view class="cu-form-group margin-top">
<view class="cu-form-group margin-top" style="border-bottom: none;">
<view class="title">反馈类型</view>
<picker bindchange="typeChange" value="{{typeIndex}}" range="{{typeList}}">
<view class="picker">
@ -29,7 +29,7 @@
</view>
<view style="padding-left:32rpx;padding-right:32rpx">
<view class="textareaView">
<textarea class="textarea" value='{{postForm.content}}' bindinput='textareaBindblur'></textarea>
<textarea class="textarea" placeholder="请输入反馈内容,最多200字" value='{{postForm.content}}' bindinput='textareaBindblur'></textarea>
</view>
</view>

12
pages/article/feedback/index.wxss

@ -9,21 +9,21 @@ page {
}
.view1 {
padding: 0rxp;
width: 100%;
height: 100rpx;
border-top: 2rpx solid #f3f3f3;
border-bottom: 2rpx solid #f3f3f3;
}
.view2 {
width: 100%;
height: 100rpx;
border-top: 2rpx solid #f3f3f3;
border-bottom: 2rpx solid #f3f3f3;
}
.view3 {
width: 100%;
height: 394rpx;
border-top: 2rpx solid #f3f3f3;
/* border-top: 2rpx solid #f3f3f3; */
}
.textarea {
@ -32,7 +32,7 @@ page {
}
.textareaView {
border: 1px solid;
border: 1px solid #dfdfdf;
}
.view4 {

14
pages/article/newInfo/index.js

@ -19,12 +19,12 @@ Component({
orderList: [],
tableSgin: null,
loading:false,
pximg:'/assets/info/px-mr.png',
pximg:'/assets/info/px-sx.png',
curDate: util.formatDate(new Date(), 'Y-M-D'),
querFrom:{
curDate: util.formatDate(new Date(), 'Y-M-D'),
queryWay: 0,
priceSort:0
priceSort:1
},
factoryList:[]
@ -91,7 +91,7 @@ Component({
})
},
changeSort:function(){
if(this.data.pximg=='/assets/info/px-mr.png'){
if(this.data.pximg=='/assets/info/px-jx.png'){
this.setData({
pximg:'/assets/info/px-sx.png'
})
@ -107,14 +107,6 @@ Component({
this.getPaperMillOfInformationListFct(this.data.querFrom)
return
}
if(this.data.pximg=='/assets/info/px-jx.png'){
this.setData({
pximg:'/assets/info/px-mr.png'
})
this.data.querFrom.priceSort=0
this.getPaperMillOfInformationListFct(this.data.querFrom)
return
}
},
curDateChange(e) {
this.setData({

14
pages/article/newInfo/index.wxml

@ -12,9 +12,12 @@
<view style="height:15rpx;width:100%"></view>
<view style="width:100%;height:70rpx;background-color:#F4F4F4;" class="topTitle">
<view class="topLeft">
<picker mode="date" value="{{curDate}}" start="2015-09-01" end="2020-09-01" bindchange="curDateChange">
<picker mode="date" value="{{curDate}}" start="2015-09-01" end="2099-09-01" bindchange="curDateChange">
<view class="piker">
{{curDate}}
<view style="width:16rpx;height:70rpx; display: flex;align-items: center;float: right;margin-left:10rpx">
<image style="width:16rpx;height:16rpx" src="/assets/info/timeDown.png"></image>
</view>
</view>
</picker>
</view>
@ -36,7 +39,7 @@
</view>
<view class="text-df text-gray" style="flex:1;text-align: center">纸厂排队</view>
<view class="text-df text-gray" style="flex:1;text-align: center">最近扣点</view>
<view class="text-df text-gray" style="flex:0.5;text-align: center">更多</view>
<view class="text-df text-gray" style="flex:0.5;text-align: center"></view>
</view>
<scroll-view scroll-y="true" style='max-height:700rpx;width:100%;background-color:white'>
<view class="img-nodata" style="height:{{height}}rpx" wx:if="{{!orderList.length}}">
@ -49,12 +52,11 @@
<!-- <view class="bg-white" wx:else> -->
<view class="bg-white">
<view wx:for="{{orderList}}" wx:key="index" class="tableStyle">
<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">
<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>
<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.yesterdayRetainedQuantity || 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>
<view class="text-df text-balck" style="flex:0.5;text-align: center" id="{{item.paperMillId}}" catchtap="changeTable" wx:if="{{tableSgin==item.paperMillId}}">
<image style="width:28rpx;height:28rpx;" src="/assets/info/factoryUp.png"></image>
@ -98,7 +100,7 @@
<view class="bottomViewleft">
<view class="bottomViewleft-top">
<view style="height41rpx;line-height:41rpx;font-size: 24rpx;color: #007AFF;">
<wux-tag id="{{item.millPaperId}}" catchtap="toMill">
<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>
</wux-tag>

1
pages/article/newInfo/index.wxss

@ -192,7 +192,6 @@ page {
.bottomViewRight {
width: 240rpx;
height: 180rpx;
background-color: green;
float: right;
}

Loading…
Cancel
Save