Browse Source

部分修改

featrue/v4.5
xpz2018 4 years ago
parent
commit
9af3ccb44a
23 changed files with 165 additions and 153 deletions
  1. BIN
      assets/image/tabBj.png
  2. BIN
      assets/info/noData.png
  3. 2
      pages/agent/address/index.wxml
  4. 2
      pages/agent/focus-fragment/index.wxml
  5. 1
      pages/agent/fragment/index.js
  6. 2
      pages/agent/index/index.json
  7. 2
      pages/article/newInfo/index.wxml
  8. 218
      pages/goods/ablility/index.js
  9. 32
      pages/goods/ablility/index.wxml
  10. 2
      pages/home/attentionPaperList/index.wxml
  11. 2
      pages/home/businessLicense/index.wxml
  12. 2
      pages/home/tab1/index.wxml
  13. 2
      pages/home/tab2/index.wxml
  14. 2
      pages/home/tab3/index.wxml
  15. 2
      pages/home/tab4/index.wxml
  16. 2
      pages/home/tab5/index.wxml
  17. 2
      pages/home/tab6/index.wxml
  18. 27
      pages/purchase/fragment/index.js
  19. 1
      pages/purchase/fragment/index.json
  20. 3
      pages/purchase/fragment/index.wxml
  21. 2
      pakageInfo/pages/article/allNewInfo/index.wxml
  22. 2
      pakageInfo/pages/article/attentionPaperFactory/index.wxml
  23. 8
      project.config.json

BIN
assets/image/tabBj.png

Before After
Width: 310  |  Height: 258  |  Size: 41 KiB

BIN
assets/info/noData.png

Before After
Width: 320  |  Height: 249  |  Size: 12 KiB

2
pages/agent/address/index.wxml

@ -8,7 +8,7 @@
<view style="font-size: 36rpx;">请补充</view> <view style="font-size: 36rpx;">请补充</view>
<view style="font-size: 46rpx;">您的工厂发货信息</view> <view style="font-size: 46rpx;">您的工厂发货信息</view>
</view> </view>
<image src="/assets/image/tabBj.png" style="width:310rpx;height:258rpx"></image>
<image src="https://636c-cloud1-1gjilu3e74c1a18a-1305669442.tcb.qcloud.la/tabBj.png?sign=20dc0a73aab123a0c36d3a984250cac1&t=1631627591" style="width:310rpx;height:258rpx"></image>
</view> </view>
<view class="cu-form-group"> <view class="cu-form-group">
<view class="title" style="min-width: 200rpx;">工厂全称:</view> <view class="title" style="min-width: 200rpx;">工厂全称:</view>

2
pages/agent/focus-fragment/index.wxml

@ -7,7 +7,7 @@
</view> </view>
<view class="bg-white" style="height:{{height}}rpx" wx:elif="{{!orderList.length}}"> <view class="bg-white" style="height:{{height}}rpx" wx:elif="{{!orderList.length}}">
<view class="bgImgView"> <view class="bgImgView">
<image class="imgsj" src="/assets/info/noData.png" />
<image class="imgsj" src="https://636c-cloud1-1gjilu3e74c1a18a-1305669442.tcb.qcloud.la/noData.png?sign=c2f746eb85912444f9633f43fedb7fab&t=1631629208" />
</view> </view>
<view class="midText"> <view class="midText">
<text class="midText2">暂无关注</text> <text class="midText2">暂无关注</text>

1
pages/agent/fragment/index.js

@ -76,7 +76,6 @@ Component({
}, },
fetchRegionList: function () { fetchRegionList: function () {
getFactoryCity().then(result => { getFactoryCity().then(result => {
//成功回调
this.data.cateList = [{ cityId: '', cityName: '全部' }].concat(result.data) this.data.cateList = [{ cityId: '', cityName: '全部' }].concat(result.data)
for (let index = 0; index < this.data.cateList.length; index++) { for (let index = 0; index < this.data.cateList.length; index++) {
this.data.tabList.push(this.data.cateList[index].cityName) this.data.tabList.push(this.data.cateList[index].cityName)

2
pages/agent/index/index.json

@ -1,6 +1,6 @@
{ {
"usingComponents": { "usingComponents": {
"focus": "/pages/purchase/fragment/index", "focus": "/pages/purchase/fragment/index",
"factory": "/pages/goods/fragment/index"
"factory": "/pages/goods/ablility/index"
} }
} }

2
pages/article/newInfo/index.wxml

@ -46,7 +46,7 @@
<view class="img-nodata" style="height:{{height}}rpx" wx:if="{{!orderList.length}}"> <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}}" /> <view class="load-spinner text-gray" style="margin-bottom:24px" wx:if="{{loading}}" />
<image class="onDataImg" src="/assets/info/noData.png" wx:else></image>
<image class="onDataImg" src="https://636c-cloud1-1gjilu3e74c1a18a-1305669442.tcb.qcloud.la/noData.png?sign=c2f746eb85912444f9633f43fedb7fab&t=1631629208" wx:else></image>
<view <view
style="font-family: PingFangSC-Medium;font-size: 40rpx;color: #000000;letter-spacing: 0;text-align: left;margin-top:30rpx"> style="font-family: PingFangSC-Medium;font-size: 40rpx;color: #000000;letter-spacing: 0;text-align: left;margin-top:30rpx">
{{loading? '正在加载' : '暂无关注'}}</view> {{loading? '正在加载' : '暂无关注'}}</view>

218
pages/goods/ablility/index.js

@ -3,7 +3,11 @@ import { paperCategoryList, getMiniProxyList } from "../../api/ztb"
const app = getApp() const app = getApp()
const statusList = [1, 2] const statusList = [1, 2]
Page({
Component({
options: {
addGlobalClass: true,
multipleSlots: true
},
/** /**
* 页面的初始数据 * 页面的初始数据
*/ */
@ -22,121 +26,117 @@ Page({
orderList: [], orderList: [],
form: { form: {
firstCategoryId: '', firstCategoryId: '',
bidType: statusList[1],
bidType: statusList[0],
pageNum: 1, pageNum: 1,
pageSize:15 pageSize:15
}, },
}, },
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.setData({
height: app.globalData.fragmentHeight - 210,
kg: app.globalData.kg,
CustomBar: app.globalData.CustomBar,
['form.bidType']: options.type ? Number(options.type) : statusList[1]
})
this.fetchCateList()
this.fetchGoodsList()
},
fetchCateList: function(){
paperCategoryList({ type: 1 }).then(result => {
var tabList = ['全部']
var size = 0
for (let index = 0; index < result.data.length; index++) {
tabList.push(result.data[index].name)
size += result.data[index].name.length
methods: {
onRestart: function(){
if (!this.data.firstShow) {
this.setData({ height: app.globalData.fragmentHeight - 210, kg: app.globalData.kg })
this.fetchCateList()
this.fetchGoodsList()
} }
this.data.cateList = result.data
this.setData({ tabiList: tabList, cateScroll: size > 14 })
})
},
onCategoryChange: function ({detail}) {
if(this.data.pageIndex == Number(detail.index)){
return
}
this.data.pageIndex = Number(detail.index)
if(this.data.pageIndex == 0){
this.data.form.firstCategoryId = ''
} else {
this.data.form.firstCategoryId = this.data.cateList[this.data.pageIndex - 1].id
}
this.onRefreshList()
},
onTabChange: function (e) {
if (this.data.form.bidType == Number(e.currentTarget.dataset.index)) {
return
}
var tabIndex = Number(e.currentTarget.dataset.index)
// this.data.form.bidType = statusList[this.data.tabIndex]
this.data.form.firstCategoryId = ''
this.setData({ pageIndex: 0, ['form.bidType']: tabIndex })
this.onRefreshList()
},
// 下拉刷新...
onRefreshList: function () {
if (this.data.requesting) {
return
}
this.setData({
orderList: [],
['form.pageNum']: 1,
loading: true,
finished: false
})
this.fetchGoodsList()
},
// 获取特价列表
fetchGoodsList: function () {
if (this.data.requesting || this.data.finished) {
return
}
if (this.data.loading) {
this.data.requesting = true
} else {
this.setData({ requesting: true })
}
getMiniProxyList(this.data.form).then(result => {
if (result.data.records.length) {
var respList = result.data.records
let nowList = `orderList[${this.data.orderList.length}]`
var num = result.data.current
var finished = result.data.current >= result.data.pages
if(this.data.form.pageNum == 1){
this.setData({
[nowList]: respList,
total: result.data.total,
['form.pageNum']: (num + 1),
top: 0,
finished,
requesting: false,
loading: false
})
} else {
this.setData({
[nowList]: respList,
total: result.data.total,
['form.pageNum']: (num + 1),
finished,
requesting: false,
loading: false
})
this.data.firstShow = true
},
fetchCateList: function(){
paperCategoryList({ type: 1 }).then(result => {
var tabList = ['全部']
var size = 0
for (let index = 0; index < result.data.length; index++) {
tabList.push(result.data[index].name)
size += result.data[index].name.length
} }
this.data.cateList = result.data
this.setData({ tabiList: tabList, cateScroll: size > 14 })
})
},
onCategoryChange: function ({detail}) {
if(this.data.pageIndex == Number(detail.index)){
return
}
this.data.pageIndex = Number(detail.index)
if(this.data.pageIndex == 0){
this.data.form.firstCategoryId = ''
} else { } else {
this.setData({ finished: true, requesting: false, loading: false })
this.data.form.firstCategoryId = this.data.cateList[this.data.pageIndex - 1].id
} }
}).catch(err => {
this.setData({ requesting: false, finished: true, loading: false })
})
},
lookItem: function (e) {
var item = this.data.orderList[e.currentTarget.dataset.page][e.currentTarget.dataset.index]
wx.navigateTo({ url: '/pages/mall/detail/index?id=' + item.id })
},
offerGood: function(e){
var item = this.data.orderList[e.currentTarget.dataset.page][e.currentTarget.dataset.index]
wx.navigateTo({ url: '/pages/mall/detail/index?id=' + item.id })
this.onRefreshList()
},
onTabChange: function (e) {
if (this.data.form.bidType == Number(e.currentTarget.dataset.index)) {
return
}
var tabIndex = Number(e.currentTarget.dataset.index)
// this.data.form.bidType = statusList[this.data.tabIndex]
this.data.form.firstCategoryId = ''
this.setData({ pageIndex: 0, ['form.bidType']: tabIndex })
this.onRefreshList()
},
// 下拉刷新...
onRefreshList: function () {
if (this.data.requesting) {
return
}
this.setData({
orderList: [],
['form.pageNum']: 1,
loading: true,
finished: false
})
this.fetchGoodsList()
},
// 获取特价列表
fetchGoodsList: function () {
if (this.data.requesting || this.data.finished) {
return
}
if (this.data.loading) {
this.data.requesting = true
} else {
this.setData({ requesting: true })
}
getMiniProxyList(this.data.form).then(result => {
if (result.data.records.length) {
var respList = result.data.records
let nowList = `orderList[${this.data.orderList.length}]`
var num = result.data.current
var finished = result.data.current >= result.data.pages
if(this.data.form.pageNum == 1){
this.setData({
[nowList]: respList,
total: result.data.total,
['form.pageNum']: (num + 1),
top: 0,
finished,
requesting: false,
loading: false
})
} else {
this.setData({
[nowList]: respList,
total: result.data.total,
['form.pageNum']: (num + 1),
finished,
requesting: false,
loading: false
})
}
} else {
this.setData({ finished: true, requesting: false, loading: false })
}
}).catch(err => {
this.setData({ requesting: false, finished: true, loading: false })
})
},
lookItem: function (e) {
var item = this.data.orderList[e.currentTarget.dataset.page][e.currentTarget.dataset.index]
wx.navigateTo({ url: '/pages/mall/detail/index?id=' + item.id })
},
offerGood: function(e){
var item = this.data.orderList[e.currentTarget.dataset.page][e.currentTarget.dataset.index]
wx.navigateTo({ url: '/pages/mall/detail/index?id=' + item.id })
}
} }
}) })

32
pages/goods/ablility/index.wxml

@ -1,27 +1,21 @@
<!--pages/agent/index/index.wxml--> <!--pages/agent/index/index.wxml-->
<wxs module="formate" src="../../../pages/formate.wxs"></wxs> <wxs module="formate" src="../../../pages/formate.wxs"></wxs>
<cu-custom bgColor="bg-white" isBack="{{true}}">
<view slot="content">供应商品</view>
</cu-custom>
<view class="nav bg-white fixed" style="top:{{CustomBar}}px;height:210rpx;">
<view class="flex bg-white" style="height:120rpx;padding:12rpx 12rpx 0rpx 12rpx;border-bottom: 2rpx solid #eee">
<view data-index="1" class="flex flex-center flex-column" style="flex:1;" bindtap="onTabChange">
<view class="text-bold" style="font-size:36rpx;color:{{form.bidType == 1 ? '#008AFF' : '#333'}}">一口价专区</view>
<view style="font-size:24rpx;color:{{form.bidType == 1 ? '#008AFF' : '#999'}};margin-top:8rpx">担保交易 支持退货</view>
<view style="width:80rpx;height:6rpx;background-color:#008AFF;margin-top:12rpx;visibility:{{form.bidType == 1 ? 'visible' : 'hidden'}}"></view>
</view>
<view data-index="2" class="flex flex-center flex-column" style="flex:1;" bindtap="onTabChange">
<view class="text-bold" style="font-size:36rpx;color:{{form.bidType == 2 ? '#008AFF' : '#333'}}">特价专区</view>
<view style="font-size:24rpx;color:{{form.bidType == 2 ? '#008AFF' : '#999'}};margin-top:8rpx">稀有资源 限时特价</view>
<view style="width:80rpx;height:6rpx;background-color:#008AFF;margin-top:12rpx;visibility:{{form.bidType == 2 ? 'visible' : 'hidden'}}"></view>
</view>
<view class="flex bg-white" style="height:120rpx;padding:12rpx 12rpx 0rpx 12rpx;border-bottom: 2rpx solid #eee">
<view data-index="1" class="flex flex-center flex-column" style="flex:1;" bindtap="onTabChange">
<view class="text-bold" style="font-size:36rpx;color:{{form.bidType == 1 ? '#008AFF' : '#333'}}">一口价专区</view>
<view style="font-size:24rpx;color:{{form.bidType == 1 ? '#008AFF' : '#999'}};margin-top:8rpx">担保交易 支持退货</view>
<view style="width:80rpx;height:6rpx;background-color:#008AFF;margin-top:12rpx;visibility:{{form.bidType == 1 ? 'visible' : 'hidden'}}"></view>
</view> </view>
<view class="bg-white" style="height:90rpx;border-bottom: 2rpx solid #eee">
<wux-tabi scroll="{{cateScroll}}" tab-data="{{tabiList}}" tab-index="{{pageIndex}}" bind:change="onCategoryChange"></wux-tabi>
</view>
<view data-index="2" class="flex flex-center flex-column" style="flex:1;" bindtap="onTabChange">
<view class="text-bold" style="font-size:36rpx;color:{{form.bidType == 2 ? '#008AFF' : '#333'}}">特价专区</view>
<view style="font-size:24rpx;color:{{form.bidType == 2 ? '#008AFF' : '#999'}};margin-top:8rpx">稀有资源 限时特价</view>
<view style="width:80rpx;height:6rpx;background-color:#008AFF;margin-top:12rpx;visibility:{{form.bidType == 2 ? 'visible' : 'hidden'}}"></view>
</view>
</view>
<view class="bg-white" style="height:90rpx;border-bottom: 2rpx solid #eee">
<wux-tabi scroll="{{cateScroll}}" tab-data="{{tabiList}}" tab-index="{{pageIndex}}" bind:change="onCategoryChange"></wux-tabi>
</view> </view>
<view style="height:210rpx;width:100%"></view>
<refresh-view bind:refresh="onRefreshList" height="{{height}}" triggered="{{requesting}}" scrollTop="{{top}}" bind:scrolltolower="fetchGoodsList"> <refresh-view bind:refresh="onRefreshList" height="{{height}}" triggered="{{requesting}}" scrollTop="{{top}}" bind:scrolltolower="fetchGoodsList">
<view class="bg-white list-empty" style="height:{{ height }}rpx" wx:if="{{!orderList.length}}"> <view class="bg-white list-empty" style="height:{{ height }}rpx" wx:if="{{!orderList.length}}">

2
pages/home/attentionPaperList/index.wxml

@ -12,7 +12,7 @@
<text>HI,\n欢迎使用纸通宝\n开启一站式废纸交易</text> <text>HI,\n欢迎使用纸通宝\n开启一站式废纸交易</text>
</view> </view>
<view style="width:310rpx;height:258rpx;float:right"> <view style="width:310rpx;height:258rpx;float:right">
<image src="/assets/image/tabBj.png" style="width:310rpx;height:258rpx"></image>
<image src="https://636c-cloud1-1gjilu3e74c1a18a-1305669442.tcb.qcloud.la/tabBj.png?sign=20dc0a73aab123a0c36d3a984250cac1&t=1631627591" style="width:310rpx;height:258rpx"></image>
</view> </view>
</view> </view>
<view class="mid"> <view class="mid">

2
pages/home/businessLicense/index.wxml

@ -12,7 +12,7 @@
<text>HI,\n欢迎使用纸通宝\n开启一站式废纸交易</text> <text>HI,\n欢迎使用纸通宝\n开启一站式废纸交易</text>
</view> </view>
<view style="width:310rpx;height:258rpx;float:right"> <view style="width:310rpx;height:258rpx;float:right">
<image src="/assets/image/tabBj.png" style="width:310rpx;height:258rpx"></image>
<image src="https://636c-cloud1-1gjilu3e74c1a18a-1305669442.tcb.qcloud.la/tabBj.png?sign=20dc0a73aab123a0c36d3a984250cac1&t=1631627591" style="width:310rpx;height:258rpx"></image>
</view> </view>
</view> </view>
<view class="mid"> <view class="mid">

2
pages/home/tab1/index.wxml

@ -13,7 +13,7 @@
<text>HI,\n欢迎使用纸通宝\n开启一站式废纸交易</text> <text>HI,\n欢迎使用纸通宝\n开启一站式废纸交易</text>
</view> </view>
<view style="width:310rpx;height:258rpx;float:right"> <view style="width:310rpx;height:258rpx;float:right">
<image src="/assets/image/tabBj.png" style="width:310rpx;height:258rpx"></image>
<image src="https://636c-cloud1-1gjilu3e74c1a18a-1305669442.tcb.qcloud.la/tabBj.png?sign=20dc0a73aab123a0c36d3a984250cac1&t=1631627591" style="width:310rpx;height:258rpx"></image>
</view> </view>
</view> </view>
<view class="mid"> <view class="mid">

2
pages/home/tab2/index.wxml

@ -13,7 +13,7 @@
<text>HI,\n欢迎使用纸通宝\n开启一站式废纸交易</text> <text>HI,\n欢迎使用纸通宝\n开启一站式废纸交易</text>
</view> </view>
<view style="width:310rpx;height:258rpx;float:right"> <view style="width:310rpx;height:258rpx;float:right">
<image src="/assets/image/tabBj.png" style="width:310rpx;height:258rpx"></image>
<image src="https://636c-cloud1-1gjilu3e74c1a18a-1305669442.tcb.qcloud.la/tabBj.png?sign=20dc0a73aab123a0c36d3a984250cac1&t=1631627591" style="width:310rpx;height:258rpx"></image>
</view> </view>
</view> </view>
<view class="mid"> <view class="mid">

2
pages/home/tab3/index.wxml

@ -13,7 +13,7 @@
<text>HI,\n欢迎使用纸通宝\n开启一站式废纸交易</text> <text>HI,\n欢迎使用纸通宝\n开启一站式废纸交易</text>
</view> </view>
<view style="width:310rpx;height:258rpx;float:right"> <view style="width:310rpx;height:258rpx;float:right">
<image src="/assets/image/tabBj.png" style="width:310rpx;height:258rpx"></image>
<image src="https://636c-cloud1-1gjilu3e74c1a18a-1305669442.tcb.qcloud.la/tabBj.png?sign=20dc0a73aab123a0c36d3a984250cac1&t=1631627591" style="width:310rpx;height:258rpx"></image>
</view> </view>
</view> </view>
<view class="mid"> <view class="mid">

2
pages/home/tab4/index.wxml

@ -12,7 +12,7 @@
<text>HI,\n欢迎使用纸通宝\n开启一站式废纸交易</text> <text>HI,\n欢迎使用纸通宝\n开启一站式废纸交易</text>
</view> </view>
<view style="width:310rpx;height:258rpx;float:right"> <view style="width:310rpx;height:258rpx;float:right">
<image src="/assets/image/tabBj.png" style="width:310rpx;height:258rpx"></image>
<image src="https://636c-cloud1-1gjilu3e74c1a18a-1305669442.tcb.qcloud.la/tabBj.png?sign=20dc0a73aab123a0c36d3a984250cac1&t=1631627591" style="width:310rpx;height:258rpx"></image>
</view> </view>
</view> </view>
<view class="mid"> <view class="mid">

2
pages/home/tab5/index.wxml

@ -12,7 +12,7 @@
<text>HI,\n欢迎使用纸通宝\n开启一站式废纸交易</text> <text>HI,\n欢迎使用纸通宝\n开启一站式废纸交易</text>
</view> </view>
<view style="width:310rpx;height:258rpx;float:right"> <view style="width:310rpx;height:258rpx;float:right">
<image src="/assets/image/tabBj.png" style="width:310rpx;height:258rpx"></image>
<image src="https://636c-cloud1-1gjilu3e74c1a18a-1305669442.tcb.qcloud.la/tabBj.png?sign=20dc0a73aab123a0c36d3a984250cac1&t=1631627591" style="width:310rpx;height:258rpx"></image>
</view> </view>
</view> </view>
<view class="mid"> <view class="mid">

2
pages/home/tab6/index.wxml

@ -12,7 +12,7 @@
<text>HI,\n欢迎使用纸通宝\n开启一站式废纸交易</text> <text>HI,\n欢迎使用纸通宝\n开启一站式废纸交易</text>
</view> </view>
<view style="width:310rpx;height:258rpx;float:right"> <view style="width:310rpx;height:258rpx;float:right">
<image src="/assets/image/tabBj.png" style="width:310rpx;height:258rpx"></image>
<image src="https://636c-cloud1-1gjilu3e74c1a18a-1305669442.tcb.qcloud.la/tabBj.png?sign=20dc0a73aab123a0c36d3a984250cac1&t=1631627591" style="width:310rpx;height:258rpx"></image>
</view> </view>
</view> </view>
<view class="mid"> <view class="mid">

27
pages/purchase/fragment/index.js

@ -12,12 +12,14 @@ Component({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
height: app.globalData.fragmentHeight,
height: app.globalData.fragmentHeight - 90,
kg: app.globalData.kg, kg: app.globalData.kg,
loading: true, loading: true,
requesting: false, requesting: false,
finished: false, finished: false,
cateList: [], cateList: [],
tabList: [],
tabIndex: 0,
cateScroll: false, cateScroll: false,
top: 0, top: 0,
orderList: [], orderList: [],
@ -39,7 +41,7 @@ Component({
methods: { methods: {
onRestart: function(){ onRestart: function(){
if (!this.data.firstShow) { if (!this.data.firstShow) {
this.setData({ height: app.globalData.fragmentHeight, kg: app.globalData.kg })
this.setData({ height: app.globalData.fragmentHeight - 90, kg: app.globalData.kg })
this.fetchCateList() this.fetchCateList()
this.fetchGoodsList() this.fetchGoodsList()
} }
@ -47,15 +49,26 @@ Component({
}, },
fetchCateList: function(){ fetchCateList: function(){
paperCategoryList({ type: 1 }).then(result => { paperCategoryList({ type: 1 }).then(result => {
var cateList = [{id: '', name: '全部'}].concat(result.data)
this.setData({ cateList: cateList, cateScroll: cateList.length >= 5 })
var tabList = ['全部']
var size = 0
for (let index = 0; index < result.data.length; index++) {
tabList.push(result.data[index].name)
size += result.data[index].name.length
}
this.data.cateList = result.data
this.setData({ tabList: tabList, cateScroll: size > 14 })
}) })
}, },
onCategoryChange: function (e) {
if (this.data.form.firstCategoryId == e.detail.key) {
onCategoryChange: function ({detail}) {
if(this.data.tabIndex == Number(detail.index)){
return return
} }
this.setData({ ['form.firstCategoryId']: e.detail.key })
this.data.tabIndex = Number(detail.index)
if(this.data.tabIndex == 0){
this.data.form.firstCategoryId = ''
} else {
this.data.form.firstCategoryId = this.data.cateList[this.data.tabIndex - 1].id
}
this.onRefreshList() this.onRefreshList()
}, },
// 下拉刷新... // 下拉刷新...

1
pages/purchase/fragment/index.json

@ -3,6 +3,7 @@
"wux-skeleton": "/components/skeleton/index", "wux-skeleton": "/components/skeleton/index",
"wux-skeleton-avatar": "/components/skeleton-avatar/index", "wux-skeleton-avatar": "/components/skeleton-avatar/index",
"wux-skeleton-paragraph": "/components/skeleton-paragraph/index", "wux-skeleton-paragraph": "/components/skeleton-paragraph/index",
"wux-tabi": "/components/tabi/index",
"refresh-view": "/components/refresher/index", "refresh-view": "/components/refresher/index",
"wux-image": "/components/image/index", "wux-image": "/components/image/index",
"wux-divider": "/components/divider/index", "wux-divider": "/components/divider/index",

3
pages/purchase/fragment/index.wxml

@ -1,5 +1,8 @@
<!--pages/goods/index/index.wxml--> <!--pages/goods/index/index.wxml-->
<wxs module="formate" src="../../../pages/formate.wxs"></wxs> <wxs module="formate" src="../../../pages/formate.wxs"></wxs>
<view class="bg-white" style="height:90rpx;border-bottom: 2rpx solid #eee">
<wux-tabi scroll="{{cateScroll}}" tab-data="{{tabList}}" tab-index="{{tabIndex}}" bind:change="onCategoryChange"></wux-tabi>
</view>
<refresh-view bind:refresh="onRefreshList" height="{{height}}" triggered="{{requesting}}" scrollTop="{{top}}" bind:scrolltolower="fetchGoodsList"> <refresh-view bind:refresh="onRefreshList" height="{{height}}" triggered="{{requesting}}" scrollTop="{{top}}" bind:scrolltolower="fetchGoodsList">
<view class="bg-white list-empty" style="height:{{height}}rpx" wx:if="{{!orderList.length}}"> <view class="bg-white list-empty" style="height:{{height}}rpx" wx:if="{{!orderList.length}}">

2
pakageInfo/pages/article/allNewInfo/index.wxml

@ -16,7 +16,7 @@
<scroll-view scroll-y="true" style='height:{{height}}rpx;width:100%;background-color:white'> <scroll-view scroll-y="true" style='height:{{height}}rpx;width:100%;background-color:white'>
<view class="img-nodata" style="height:{{height}}rpx" wx:if="{{!orderList.length}}"> <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}}" /> <view class="load-spinner text-gray" style="margin-bottom:24px" wx:if="{{loading}}" />
<image class="onDataImg" src="/assets/info/noData.png" wx:else></image>
<image class="onDataImg" src="https://636c-cloud1-1gjilu3e74c1a18a-1305669442.tcb.qcloud.la/noData.png?sign=c2f746eb85912444f9633f43fedb7fab&t=1631629208" wx:else></image>
<view <view
style="font-family: PingFangSC-Medium;font-size: 40rpx;color: #000000;letter-spacing: 0;text-align: left;margin-top:30rpx"> style="font-family: PingFangSC-Medium;font-size: 40rpx;color: #000000;letter-spacing: 0;text-align: left;margin-top:30rpx">
{{loading? '正在加载' : '暂无关注'}}</view> {{loading? '正在加载' : '暂无关注'}}</view>

2
pakageInfo/pages/article/attentionPaperFactory/index.wxml

@ -9,7 +9,7 @@
<text>HI,\n欢迎使用纸通宝\n开启一站式废纸交易</text> <text>HI,\n欢迎使用纸通宝\n开启一站式废纸交易</text>
</view> </view>
<view style="width:310rpx;height:258rpx;float:right"> <view style="width:310rpx;height:258rpx;float:right">
<image src="/assets/image/tabBj.png" style="width:310rpx;height:258rpx"></image>
<image src="https://636c-cloud1-1gjilu3e74c1a18a-1305669442.tcb.qcloud.la/tabBj.png?sign=20dc0a73aab123a0c36d3a984250cac1&t=1631627591" style="width:310rpx;height:258rpx"></image>
</view> </view>
</view> </view>
<view class="mid"> <view class="mid">

8
project.config.json

@ -4,7 +4,7 @@
"ignore": [] "ignore": []
}, },
"setting": { "setting": {
"urlCheck": false,
"urlCheck": true,
"es6": true, "es6": true,
"enhance": true, "enhance": true,
"postcss": true, "postcss": true,
@ -35,10 +35,12 @@
"packNpmManually": false, "packNpmManually": false,
"packNpmRelationList": [], "packNpmRelationList": [],
"minifyWXSS": true, "minifyWXSS": true,
"showES6CompileOption": false
"disableUseStrict": false,
"showES6CompileOption": false,
"useCompilerPlugins": false
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "2.18.1",
"libVersion": "2.19.4",
"appid": "wx7a4a8415e6821108", "appid": "wx7a4a8415e6821108",
"projectname": "zhitongbao-mini", "projectname": "zhitongbao-mini",
"debugOptions": { "debugOptions": {

Loading…
Cancel
Save