Browse Source

Merge branch 'featrue/v4.3' of http://git.qniao.cn/libo/ztb-mini into featrue/v4.3

featrue/v4.3
wangzhen 5 years ago
parent
commit
709d4850fc
14 changed files with 509 additions and 79 deletions
  1. 1
      app.json
  2. BIN
      assets/info/addgzicon.png
  3. 3
      pages/article/allNewInfo/index.js
  4. 63
      pages/article/allNewInfo/index.wxml
  5. 156
      pages/article/allNewInfo/index.wxss
  6. 129
      pages/article/attentionPaperFactory/index.js
  7. 7
      pages/article/attentionPaperFactory/index.json
  8. 38
      pages/article/attentionPaperFactory/index.wxml
  9. 77
      pages/article/attentionPaperFactory/index.wxss
  10. 2
      pages/article/feedback/index.wxss
  11. 2
      pages/article/index/index.wxml
  12. 54
      pages/article/newInfo/index.js
  13. 52
      pages/article/newInfo/index.wxml
  14. 4
      pages/article/newInfo/index.wxss

1
app.json

@ -35,6 +35,7 @@
"pages/article/allNewInfo/index",
"pages/article/feedback/index",
"pages/article/list/index",
"pages/article/attentionPaperFactory/index",
"pages/goods/ablility/index",
"pages/goods/index/index",
"pages/goods/detail/index",

BIN
assets/info/addgzicon.png

Before After
Width: 32  |  Height: 32  |  Size: 283 B

3
pages/article/allNewInfo/index.js

@ -34,6 +34,9 @@ Page({
if (e.currentTarget.id == 'toqb') {
util.navigateTo('/pages/article/index/index')
}
if(e.currentTarget.id == 'toAttentionPaperFctory'){
util.navigateTo('/pages/article/attentionPaperFactory/index')
}
},
changeTable: function (e) {
var a = e.currentTarget.id

63
pages/article/allNewInfo/index.wxml

@ -3,43 +3,42 @@
<cu-custom bgColor="bg-white" isBack="{{true}}">
<view slot="content">全部纸厂</view>
</cu-custom>
<view style="width:100%;height:60rpx;" class="topTitle">
<view class="topLeft">
<view class="topLeftText">纸厂情报</view>
<view class="topLeftTime">2021-01-04</view>
</view>
<view class="topRight">
<view class="topRightText">全部纸厂></view>
<view class="topRightIcon">Icon</view>
</view>
</view>
<view style="width:100%;height:15rpx;"></view>
<view class="zt">
<view class="flex flex-justify" style="">
<view class="text-df text-gray" style="flex:1.5">纸厂名称</view>
<view class="text-df text-gray" style="flex:1;text-align: center">价格涨跌</view>
<view class="flex flex-justify" style="width:100%;height:80rpx;lineheight:80rpx;font-size: 28px;color: rgba(0,0,0,0.65);letter-spacing: 0;padding: 0rpx 40rpx 0rpx 40rpx;">
<view class="text-df text-gray" style="flex:1.2;overflow: hidden;">纸厂名称</view>
<view class="text-df text-gray" style="flex:1;text-align: center" bindtap="changeSort">价格涨跌<image style="width:30rpx;height:30rpx" src="{{pximg}}"></image>
</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>
<scroll-view scroll-y="true" style='width:100%;margin-top:10rpx;background-color:white'>
<view class="bg-white list-empty" style="height:{{height}}rpx" wx:if="{{!orderList.length}}">
<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}}">
<view class="load-spinner text-gray" style="margin-bottom:24px" wx:if="{{loading}}" />
<image class="img-empty" src="/assets/image/list_empty.png" wx:else></image>
<view class="text-empty">{{loading? '正在加载' : '暂无数据'}}</view>
<image class="onDataImg" src="/assets/info/noData.png" wx:else></image>
<view style="font-family: PingFangSC-Medium;font-size: 40rpx;color: #000000;letter-spacing: 0;text-align: left;margin-top:30rpx">{{loading? '正在加载' : '暂无关注'}}</view>
<view class="top-nodata-text1">可前往纸厂列表添加关注</view>
<view class="top-nodata-text2" id="toAttentionFactory" bindtap="toPage">添加关注</view>
</view>
<!-- <view class="bg-white" wx:else> -->
<view class="bg-white">
<view wx:for="{{orderList}}" wx:key="index">
<view class="flex flex-justify" style="border-top:2rpx solid #f3f3f3;margin-top:20rpx">
<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;">
<!-- <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.5">{{item.name}}</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||0}}</view>
<view class="text-df text-balck" style="flex:1.2">{{item.name}}</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.minimumDeductionPoint || 0}}%</view>
<view class="text-df text-balck" style="flex:0.5;text-align: center" id="{{item.paperMillid}}" bindtap="changeTable"><image style="width:28rpx;height:28rpx;" src="/assets/info/factoryDown.png"></image></view>
<view class="text-df text-balck" style="flex:0.5;text-align: center" id="{{item.paperMillid}}" bindtap="changeTable" wx:if="{{tableSgin==item.paperMillid}}">
<image style="width:28rpx;height:28rpx;" src="/assets/info/factoryUp.png"></image>
</view>
<view class="text-df text-balck" style="flex:0.5;text-align: center" id="{{item.paperMillid}}" bindtap="changeTable" wx:if="{{tableSgin !== item.paperMillid}}">
<image style="width:28rpx;height:28rpx;" src="/assets/info/factoryDown.png"></image>
</view>
</view>
<view wx:if="{{tableSgin==item.paperMillid}}" style="width:100%;background-color:#f3f3f3;padding:10rpx">
<view wx:if="{{tableSgin==item.paperMillid}}" style="width:100%;background-color:#f3f3f3;padding-left:10rpx;padding:10rpx 24rpx 15rpx 24rpx">
<view class="flex flex-justify" style="">
<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>
@ -47,17 +46,21 @@
<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>
<view class="flex flex-justify" style="margin-top:20rpx" wx:for="{{ item.paperCategoryList }}" wx:for-item="cell" wx:key="cell.categoryId">
<view class="flex flex-justify" style="margin-top:20rpx" wx:for="{{ item.paperCategoryList }}" wx:for-item="cell" wx:key="cell.categoryId" style="background-color:white;margin-top:10rpx">
<view class="text-df {{cell.categoryName>0?'text-red':(cell.categoryName<0?'text-green':'text-black')}}" style="flex:1;text-align: center">{{cell.categoryName|| '---'}}</view>
<view class="text-df {{cell.unitPrice>0?'text-red':(cell.unitPrice<0?'text-green':'text-black')}}" style="flex:1;text-align: center" style="flex:1;text-align: center">{{cell.unitPrice|| 0}}</view>
<view class="text-df {{cell.floatPrice>0?'text-red':(cell.floatPrice<0?'text-green':'text-black')}}" style="flex:1;text-align: center" style="flex:1;text-align: center">{{cell.floatPrice|| 0}}</view>
<view class="text-df {{cell.unitPrice>0?'text-red':(cell.unitPrice<0?'text-green':'text-black')}}" style="flex:1;text-align: center" style="flex:1;text-align: center">{{cell.unitPrice*1000|| 0}}</view>
<view class="text-df {{cell.floatPrice>0?'text-red':(cell.floatPrice<0?'text-green':'text-black')}}" style="flex:1;text-align: center" style="flex:1;text-align: center">{{cell.floatPrice*1000|| 0}}</view>
<view class="text-df {{cell.curDeductionPoint>0?'text-red':(cell.curDeductionPoint<0?'text-green':'text-black')}}" style="flex:1;text-align: center" style="flex:1;text-align: center">{{cell.curDeductionPoint|| 0}}</view>
<view class="text-df text-balck" style="flex:1;text-align: center">我要代卖</view>
<view class="text-df text-balck" style="flex:1;text-align: center">
<view class="son-table-btn">代卖</view>
</view>
</view>
</view>
</view>
</view>
</scroll-view>
</view>
<view class="gzBtn" id="toAttentionPaperFctory" bindtap="toPage">
<view class="gzBtnIcon"><image style="width:36rpx;height:36rpx" src="/assets/info/addgzicon.png"></image></view>
<view class="gzBtnText">关注纸厂</view>
</view>
</view>

156
pages/article/allNewInfo/index.wxss

@ -42,10 +42,24 @@ page {
.midTietleText1 {
height: 100rpx;
line-height: 100rpx;
font-family: PingFangSC-Medium;
font-size: 36rpx;
color: rgba(0, 0, 0, 0.85);
letter-spacing: 0;
text-align: left;
}
.midTietleText2 {
height: 100rpx;
line-height: 100rpx;
font-family: PingFangSC-Regular;
font-size: 28rpx;
color: rgba(0, 0, 0, 0.65);
letter-spacing: 0;
text-align: right;
}
.zt {
padding: 0rpx 40rpx 0rpx 40rpx;
background-color: white;
}
@ -97,12 +111,144 @@ page {
}
.topRightIcon {
height: 60rpx;
float: right;
display: flex;
align-items: center;
margin-right: 36.3rpx;
}
.onDataImg {
width: 320rpx;
height: 249rpx;
}
.img-nodata {
width: 100%;
height: 548rpx;
display: flex;
flex-direction: column;
align-items: center;
margin-top: 30rpx;
}
.top-nodata-text1 {
font-family: PingFangSC-Medium;
font-size: 28rpx;
font-size: 30rpx;
color: rgba(0, 0, 0, 0.75);
letter-spacing: 0;
text-align: left;
margin-top: 16rpx;
}
.top-nodata-text2 {
width: 480rpx;
height: 88rpx;
background: #007AFF;
border-radius: 10rpx;
border-radius: 10rpx;
font-family: PingFangSC-Medium;
font-size: 36rpx;
color: #FFFFFF;
letter-spacing: 0;
height: 60rpx;
line-height: 60rpx;
text-align: left;
line-height: 88rpx;
text-align: center;
margin-top: 41rpx;
}
.bottomView {
width: 750rpx;
height: 228rpx;
padding: 24rpx 32rpx 24rpx 32rpx
}
.bottomViewleft {
width: 423rpx;
height: 180rpx;
float: left;
}
.bottomViewRight {
width: 240rpx;
height: 180rpx;
background-color: green;
float: right;
margin-right: 36.3rpx;
}
.tableStyle {
width: 100%;
line-height: 100rpx;
font-size: 34rpx;
color: rgba(0, 0, 0, 0.85);
letter-spacing: 0;
}
.son-table-btn {
width: 120rpx;
height: 56rpx;
line-height: 56rpx;
font-size: 26rpx;
color: #007AFF;
letter-spacing: 0;
text-align: left;
background: #FFFFFF;
border: 1rpx solid #007AFF;
border-radius: 28rpx;
border-radius: 28rpx;
text-align: center;
}
.bottomViewleft-top {
width: 100%;
height: 90rpx;
}
.bottomViewleft-bottem {
width: 100%;
height: 33rpx;
margin-top: 57rpx;
}
.bottomViewRightImg {
width: 240rpx;
height: 180rpx;
}
.gzBtn {
width: 255rpx;
height: 96rpx;
background: #F4F4F4;
border: 1rpx solid #F4F4F4;
box-shadow: 0 5rpx 10rpx 0 rgba(0, 0, 0, 0.10);
border-radius: 48rpx;
border-radius: 48rpx;
position: absolute;
right: 32rpx;
bottom: 233rpx;
display: flex;
align-items: center;
justify-content: space-between;
}
.gzBtnIcon {
height: 96rpx;
display: flex;
align-items: center;
margin-left: 35rpx;
}
.gzBtnText {
height: 96rpx;
display: flex;
align-items: center;
font-family: PingFangSC-Semibold;
font-size: 30rpx;
color: rgba(0, 0, 0, 0.60);
letter-spacing: 2px;
margin-right: 35rpx;
}

129
pages/article/attentionPaperFactory/index.js

@ -0,0 +1,129 @@
// pages/home/tab4/index.js
import {
getFactoryPrice,
userPushFollowMill
} from '../../api/ztb'
const event = require('../../../utils/event.js')
const storage = require('../../../utils/storage')
const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
loopRequesting:false,
form: {
paperMillIds: [],
},
model: {
paperMillIds: [],
cityId: '',
enableSalesAgent: 1,
pageNum: 1,
listType: 0,
pageSize:1000
},
categoryListone: [],
safeBottom: app.globalData.safeBottom,
userInfo: null,
loading:true
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.setData({ safeBottom: app.globalData.safeBottom, userInfo: app.globalData.userInfo })
this.getFactoryPriceFct(this.data.model)
},
toMyInfo: function () {
event.emit('attentionPaperList', { what: 1100, desc: 'attentionPaperList' })
wx.navigateBack({
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
},
backspace: function () {
// console.log('点击返回被触发4')
wx.redirectTo({
url: '/pages/home/tab3/index'
})
},
getFactoryPriceFct:function(model){
getFactoryPrice(model).then(res=>{
this.setData({
categoryListone:res.data.records,
loading:false
})
})
},
checkboxChange: function (e) {
console.log(e)
this.setData({
'form.paperMillIds':e.detail.value,
'form.follow':true
})
},
bindtap: function (e) {
console.log(e)
},
submitForm:function(){
userPushFollowMill(this.data.form).then(result => {
this.data.loopRequesting = false
setTimeout(() => this.toMyInfo(), 1000)
}).catch(err => {
this.data.loopRequesting = false
})
}
})

7
pages/article/attentionPaperFactory/index.json

@ -0,0 +1,7 @@
{
"usingComponents": {
"wux-cascader": "/components/cascader/index",
"wux-accordion-group": "/components/accordion-group/index",
"wux-accordion": "/components/accordion/index"
}
}

38
pages/article/attentionPaperFactory/index.wxml

@ -0,0 +1,38 @@
<!--pages/home/attentionPaperList/index.wxml-->
<cu-custom bgColor="bg-white" isBack="{{true}}">
<view slot="content">关注纸厂</view>
</cu-custom>
<view class="bj">
<view class="top">
<view class="topText">
<text>HI,\n欢迎使用纸通宝\n开启一站式废纸交易</text>
</view>
<view style="width:310rpx;height:258rpx;float:right">
<image src="/assets/image/tabBj.png" style="width:310rpx;height:258rpx"></image>
</view>
</view>
<view class="mid">
<text>你经常卖的纸厂是?</text>
</view>
<scroll-view scroll-y="true" style='height:500rpx;margin-top:15rpx'>
<view class="bg-white list-empty" style="height:{{height}}rpx" wx:if="{{!categoryListone.length}}">
<view class="load-spinner text-gray" style="margin-bottom:24px" wx:if="{{loading}}" />
<image class="img-empty" src="/assets/image/list_empty.png" wx:else></image>
<view class="text-empty">{{loading? '正在加载' : '暂无数据'}}</view>
</view>
<view class="bottom">
<view>
<checkbox-group bindchange="checkboxChange">
<checkbox wx:for="{{ categoryListone }}" wx:key="index" class="interestthreecheckbox" style="width:100%;margin-top:30rpx" value="{{item.paperMillId}}" checked="{{item.hasFollowed}}">{{item.name}}</checkbox>
</checkbox-group>
</view>
</view>
</scroll-view>
<!-- <view style="width:100%;height:130rpx;padding-top:10rpx;padding-right:10rpx">
<button class="cu-btn bg-red round shadow-blur page-btn" disabled="{{loopRequesting}}" bindtap="submitForm">确认</button>
</view> -->
<view class="cu-bar bg-white foot" style="height:{{120 + safeBottom}}rpx;padding: 32rpx 32rpx {{safeBottom + 32}}rpx 32rpx;">
<button class="cu-btn bg-red round shadow-blur page-btn" bindtap="submitForm">确认</button>
</view>
</view>

77
pages/article/attentionPaperFactory/index.wxss

@ -0,0 +1,77 @@
/* pages/home/attentionPaperList/index.wxss */
page{
background-color: white;
}
.bj {
background-color: white;
min-height: 900rpx;
}
.vip-btn {
/* height: 90rpx; */
width: 180rpx;
background: #F5F5F5;
float: right;
color: rgba(0, 0, 0, 0.45);
font-size: 28rpx;
}
.top {
height: 258rpx;
width: 100%;
}
.topText {
width: 440rpx;
height: 258rpx;
float: left;
padding-left: 48rpx;
padding-top: 60rpx;
font-size: 44rpx;
color: #000000;
font-family: PingFangSC-Medium;
}
.mid {
height: 150rpx;
padding-top: 100rpx;
padding-left: 48rpx;
font-family: PingFangSC-Medium;
font-size: 36rpx;
color: #000000;
letter-spacing: 2px;
}
.bottom {
height: 410rpx;
padding: 48rpx;
}
.bg-blue{
color: #FFFFFF;
background-color: #008AFF;
}
.page-btn {
height: 90rpx;
width: 100%;
background: linear-gradient(312deg, rgba(38, 125, 214, 1) 0%, rgba(0, 138, 255, 1) 100%);
box-shadow: 0px 10px 13px -8px rgba(35, 126, 217, 0.53);
color: white;
font-size: 32rpx;
}
.interestthreecheckbox .wx-checkbox-input {
border-radius: 50%;
width: 40rpx;
height: 40rpx;
}
.interestthreecheckbox .wx-checkbox-input.wx-checkbox-input-checked{
background: white;
border: 1px solid #007AFF;
}
.interestthreecheckbox .wx-checkbox-input.wx-checkbox-input-checked::before{
width: 40rpx;/* 选中后对勾大小 */
height: 40rpx;/* 选中后对勾大小 */
font-size:40rpx; /* 对勾大小30rpx */
color:#007AFF; /* 对勾颜色 白色 */
}

2
pages/article/feedback/index.wxss

@ -26,5 +26,5 @@ page{
}
.textareaView{
border: 2prx solid black;
border: 1px solid;
}

2
pages/article/index/index.wxml

@ -1,6 +1,6 @@
<!--pages/main/index.wxml-->
<cu-custom bgColor="bg-white" isBack="{{true}}">
<view slot="content" style="color:black;font-size:36rpx">情报</view>
<view slot="content" style="color:black;font-size:36rpx">全部资讯</view>
</cu-custom>
<view class="bg-white" style="height:90rpx;border-bottom:2rpx solid #eee">

54
pages/article/newInfo/index.js

@ -2,9 +2,9 @@
const util = require('../../../utils/util')
const app = getApp()
import {
getPaperMillOfInformationList
getPaperMillOfInformationList,
} from "../../api/ztb"
import { getPreferList } from "../../api/moment"
Component({
options: {
addGlobalClass: true,
@ -19,7 +19,14 @@ Component({
orderList: [],
tableSgin: null,
loading:false,
pximg:'/assets/info/px-mr.png'
pximg:'/assets/info/px-mr.png',
curDate: '2018-12-25',
querFrom:{
curDate: '2018-12-25',
queryWay: 0,
priceSort:0
},
factoryList:[]
},
methods: {
@ -28,9 +35,9 @@ Component({
StatusBar: app.globalData.StatusBar || 40,
CustomBar: app.globalData.CustomBar || (app.globalData.isIos ? 64 : 80),
})
this.getPaperMillOfInformationListFct({
queryWay: 0
})
this.data.querFrom.queryWay=0
this.getPaperMillOfInformationListFct(this.data.querFrom)
this.fetchMomentList()
},
toPage: function (e) {
if (e.currentTarget.id == 'toqb') {
@ -44,8 +51,11 @@ Component({
}
if(e.currentTarget.id == 'tofeedback'){
util.navigateTo('/pages/article/feedback/index')
}
}
},
toPageDetails:function(e){
util.navigateTo('/pages/article/detail/index?id='+e.currentTarget.id)
},
changeTable: function (e) {
var a = e.currentTarget.id
@ -77,26 +87,42 @@ Component({
this.setData({
pximg:'/assets/info/px-sx.png'
})
this.getPaperMillOfInformationListFct({queryWay: 0,priceSort:1})
this.data.querFrom.priceSort=1
this.getPaperMillOfInformationListFct(this.data.querFrom)
return
}
if(this.data.pximg=='/assets/info/px-sx.png'){
this.setData({
pximg:'/assets/info/px-jx.png'
})
this.getPaperMillOfInformationListFct({queryWay: 0,priceSort:0})
this.data.querFrom.priceSort=0
this.getPaperMillOfInformationListFct(this.data.querFrom)
return
}
if(this.data.pximg=='/assets/info/px-jx.png'){
this.setData({
pximg:'/assets/info/px-mr.png'
})
this.getPaperMillOfInformationListFct({queryWay: 0})
this.data.querFrom.priceSort=0
this.getPaperMillOfInformationListFct(this.data.querFrom)
return
}
},
curDateChange(e) {
this.setData({
curDate: e.detail.value
})
this.data.querFrom.curDate=e.detail.value
this.getPaperMillOfInformationListFct(this.data.querFrom)
},
fetchMomentList: function(){
getPreferList().then(result => {
this.setData({ factoryList: result.data.records.slice(0, 3) })
})
},
toMill(e){
util.navigateTo('/pages/agent/factory/index?id=' + e.currentTarget.id)
}
},
}
})

52
pages/article/newInfo/index.wxml

@ -11,7 +11,13 @@
<view style="width:100%;height:60rpx;" class="topTitle">
<view class="topLeft">
<view class="topLeftText">纸厂情报</view>
<view class="topLeftTime">2021-01-04</view>
<view class="topLeftTime">
<picker mode="date" value="{{curDate}}" start="2015-09-01" end="2020-09-01" bindchange="curDateChange">
<view class="picker">
{{curDate}}
</view>
</picker>
</view>
</view>
<view class="topRight">
<view class="topRightText" id="toAllFactory" bindtap="toPage">全部纸厂></view>
@ -45,7 +51,7 @@
<view class="flex flex-justify" style="border-top:2rpx solid #f3f3f3;margin-top:20rpx;padding: 0rpx 40rpx 0rpx 40rpx;">
<!-- <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.name}}</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||0}} %</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.minimumDeductionPoint || 0}}%</view>
<view class="text-df text-balck" style="flex:0.5;text-align: center" id="{{item.paperMillid}}" bindtap="changeTable" wx:if="{{tableSgin==item.paperMillid}}">
@ -66,8 +72,8 @@
</view>
<view class="flex flex-justify" style="margin-top:20rpx" wx:for="{{ item.paperCategoryList }}" wx:for-item="cell" wx:key="cell.categoryId" style="background-color:white;margin-top:10rpx">
<view class="text-df {{cell.categoryName>0?'text-red':(cell.categoryName<0?'text-green':'text-black')}}" style="flex:1;text-align: center">{{cell.categoryName|| '---'}}</view>
<view class="text-df {{cell.unitPrice>0?'text-red':(cell.unitPrice<0?'text-green':'text-black')}}" style="flex:1;text-align: center" style="flex:1;text-align: center">{{cell.unitPrice|| 0}}</view>
<view class="text-df {{cell.floatPrice>0?'text-red':(cell.floatPrice<0?'text-green':'text-black')}}" style="flex:1;text-align: center" style="flex:1;text-align: center">{{cell.floatPrice|| 0}}</view>
<view class="text-df {{cell.unitPrice>0?'text-red':(cell.unitPrice<0?'text-green':'text-black')}}" style="flex:1;text-align: center" style="flex:1;text-align: center">{{cell.unitPrice*1000|| 0}}</view>
<view class="text-df {{cell.floatPrice>0?'text-red':(cell.floatPrice<0?'text-green':'text-black')}}" style="flex:1;text-align: center" style="flex:1;text-align: center">{{cell.floatPrice*1000|| 0}}</view>
<view class="text-df {{cell.curDeductionPoint>0?'text-red':(cell.curDeductionPoint<0?'text-green':'text-black')}}" style="flex:1;text-align: center" style="flex:1;text-align: center">{{cell.curDeductionPoint|| 0}}</view>
<view class="text-df text-balck" style="flex:1;text-align: center">
<view class="son-table-btn">代卖</view>
@ -86,34 +92,24 @@
<view style="width:100%;height:5rpx;background-color:#f3f3f3"></view>
<scroll-view scroll-y="true" style='height:684rpx;width:100%;background-color:white'>
<!-- background-image:url(https://ossweb-img.qq.com/images/lol/img/champion/Morgana.png); -->
<view class="bottomView">
<view class="bottomView" wx:for="{{factoryList}}" wx:key="index" id="{{item.id}}" bindtap="toPageDetails">
<view class="bottomViewleft">
<view class="bottomViewleft-top"> 玖龙扣点加重或引发涨价潮,玖龙扣点。</view>
<view class="bottomViewleft-bottem" style="font-family: PingFangSC-Regular;font-size: 24rpx;color: rgba(0,0,0,0.50);">
<view style="width:168rpx;height:33rpx;float:left;line-height:33rpx">纸通宝情报中心</view>
<view style="width:210rpx;height:33rpx;float:right;line-height:33rpx">2021-02-04 10:13</view>
<view class="bottomViewleft-top">
<view style="height41rpx;line-height:41rpx;font-size: 24rpx;color: #007AFF;">
<wux-tag id="{{item.millPaperId}}" catchtap="toMill" >
<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>
<text style="font-size: 32rpx;color:black;margin-left:16rpx">{{item.title}}</text>
</view>
</view>
</view>
<view class="bottomViewRight"></view>
</view>
<view class="bottomView">
<view class="bottomViewleft">
<view class="bottomViewleft-top"> 玖龙扣点加重或引发涨价潮,玖龙扣点。</view>
<view class="bottomViewleft-bottem" style="font-family: PingFangSC-Regular;font-size: 24rpx;color: rgba(0,0,0,0.50);">
<view style="width:168rpx;height:33rpx;float:left;line-height:33rpx">纸通宝情报中心</view>
<view style="width:210rpx;height:33rpx;float:right;line-height:33rpx">2021-02-04 10:13</view>
<view style="width:140rpx;height:33rpx;float:left;line-height:33rpx;overflow: hidden;">{{item.creatorName}}</view>
<view style="width:260rpx;height:33rpx;float:right;line-height:33rpx;overflow: hidden;">{{item.updateTime}}</view>
</view>
</view>
<view class="bottomViewRight"></view>
</view>
<view class="bottomView">
<view class="bottomViewleft">
<view class="bottomViewleft-top"> <view style="background: #007AFF;border-radius: 5px;border-radius: 5px;width:160rpx;height:41rpx;color: #007AFF;">#东莞玖龙</view>玖龙扣点加重或引发涨价潮,玖龙扣点。</view>
<view class="bottomViewleft-bottem" style="font-family: PingFangSC-Regular;font-size: 24rpx;color: rgba(0,0,0,0.50);">
<view style="width:168rpx;height:33rpx;float:left;line-height:33rpx">纸通宝情报中心</view>
<view style="width:210rpx;height:33rpx;float:right;line-height:33rpx">2021-02-04 10:13</view>
</view>
<view class="bottomViewRight">
<image class="bottomViewRightImg" src="{{item.creatorAvatarUrl}}"></image>
</view>
<view class="bottomViewRight"></view>
</view>
</scroll-view>
</scroll-view>

4
pages/article/newInfo/index.wxss

@ -198,4 +198,8 @@ page {
height: 33rpx;
margin-top: 57rpx;
}
.bottomViewRightImg{
width: 240rpx;
height: 180rpx;
}
Loading…
Cancel
Save