From 8720aa44af7160d695cffecfc48ea975dc8becd7 Mon Sep 17 00:00:00 2001 From: xpz2018 <107107461@qq.com> Date: Mon, 11 Oct 2021 13:42:51 +0800 Subject: [PATCH] no message --- app.json | 2 - assets/image/ico_vip1.png | Bin 768 -> 0 bytes assets/image/ico_vip2.png | Bin 777 -> 0 bytes assets/image/ico_vip3.png | Bin 747 -> 0 bytes pages/article/hot-index/index.js | 163 ------------------------ pages/article/hot-index/index.json | 18 --- pages/article/hot-index/index.wxml | 38 ------ pages/article/hot-index/index.wxss | 98 --------------- pages/article/index/index.js | 42 ------- pages/article/index/index.json | 9 -- pages/article/index/index.wxml | 21 ---- pages/article/index/index.wxss | 22 ---- pages/article/point-index/index.js | 99 --------------- pages/article/point-index/index.json | 16 --- pages/article/point-index/index.wxml | 50 -------- pages/article/point-index/index.wxss | 98 --------------- pages/article/price-detail/index.js | 173 ++++++++++---------------- pages/article/price-detail/index.json | 7 -- pages/article/price-detail/index.wxml | 60 +-------- pages/article/price-detail/index.wxss | 16 --- pages/article/price-index/index.js | 86 ------------- pages/article/price-index/index.json | 18 --- pages/article/price-index/index.wxml | 42 ------- pages/article/price-index/index.wxss | 82 ------------ pages/article/queue-detail/index.js | 82 ------------ pages/article/queue-detail/index.json | 6 - pages/article/queue-detail/index.wxml | 38 ------ pages/article/queue-detail/index.wxss | 11 -- pages/article/queue-index/index.js | 80 ------------ pages/article/queue-index/index.json | 16 --- pages/article/queue-index/index.wxml | 41 ------ pages/article/queue-index/index.wxss | 45 ------- utils/util.js | 3 - 33 files changed, 65 insertions(+), 1417 deletions(-) delete mode 100644 assets/image/ico_vip1.png delete mode 100644 assets/image/ico_vip2.png delete mode 100644 assets/image/ico_vip3.png delete mode 100644 pages/article/hot-index/index.js delete mode 100644 pages/article/hot-index/index.json delete mode 100644 pages/article/hot-index/index.wxml delete mode 100644 pages/article/hot-index/index.wxss delete mode 100644 pages/article/index/index.js delete mode 100644 pages/article/index/index.json delete mode 100644 pages/article/index/index.wxml delete mode 100644 pages/article/index/index.wxss delete mode 100644 pages/article/point-index/index.js delete mode 100644 pages/article/point-index/index.json delete mode 100644 pages/article/point-index/index.wxml delete mode 100644 pages/article/point-index/index.wxss delete mode 100644 pages/article/price-detail/index.json delete mode 100644 pages/article/price-detail/index.wxss delete mode 100644 pages/article/price-index/index.js delete mode 100644 pages/article/price-index/index.json delete mode 100644 pages/article/price-index/index.wxml delete mode 100644 pages/article/price-index/index.wxss delete mode 100644 pages/article/queue-detail/index.js delete mode 100644 pages/article/queue-detail/index.json delete mode 100644 pages/article/queue-detail/index.wxml delete mode 100644 pages/article/queue-detail/index.wxss delete mode 100644 pages/article/queue-index/index.js delete mode 100644 pages/article/queue-index/index.json delete mode 100644 pages/article/queue-index/index.wxml delete mode 100644 pages/article/queue-index/index.wxss diff --git a/app.json b/app.json index 4d223fb..75c6965 100644 --- a/app.json +++ b/app.json @@ -32,11 +32,9 @@ "pages/article/publish/index", "pages/article/detail/index", "pages/article/price-detail/index", - "pages/article/queue-detail/index", "pages/article/factory/index", "pages/article/feedback/index", "pages/article/list/index", - "pages/article/index/index", "pages/article/attention-factory/index", "pages/article/sucessful/index", "pages/mall/index/index", diff --git a/assets/image/ico_vip1.png b/assets/image/ico_vip1.png deleted file mode 100644 index d2832eb936bc675a0df3c5b150837bf2721824d4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 768 zcmV+b1ONPqP)Px#NKi~vMNDaNoNXhUY$KUzA)IU@muMZEYa*O&Bb;p` zoNXhTYapF$BAaX@n{6YIU?7}qBal!MoNObUYaX0!BAaX@m1-56Z6lm*Bz>gEG5`Po z7j#liQvkKqB7PQN?w;Q;Jyehn`31urbe9Z_71bFZ0006rNklE@B%`3;Q>C+ys0OguUtH*x<0H5pE?dS%D|5z)aslCIeA71)hBiVICCzyEnfb z;*?T0Pc2Se1?fRVUXE3eFyMTNvjrzZs33TNWcsl1VIGW&9#;l*?<{I!XlIS=bOT8S z^pIGqMi)H6qlx<#61Sg>!^31~Ap@G(!PG*M5*nR1FRjJcgsPkUff^aP&U5tK3Btg{ zUjrFv_zo>30D*)%2w6pl?M@R53I=Ky$KA+|5G(5Mkmz%TFDF&v;DAK+i;>+OF-MGC zT)9Km0R`aJzyj`^9C}Iuq?q(0t&z@<;kOBB>2k}OR;z@ zWQC#^IVxwa07f50AYbGoUE~}eP6%64nab(nNJ^xT5uqjQNJ=F2W zHoj0vC!^}zP7>@njk8&cMK^UzRy+T{Sj3Vf{#lY96uu|r^+^$b(keV^NK&+fR3L}k y_6(_PhMTr0H&>!=u7vucC6lp*bMF@J!t%e+2}~mq>8|Mj0000Px#OHfQyMNDaNoNOYRY9E_yB9B%EoNObQY9O3#Bb#g? zoNXhUY$Kd)Bb;m_oNObUZ6lj(BAjd^n`nPwTBYapC$Bb;p{Chy&n z0000ObW%=J0C62t1h^LZC*Smy=&SBtggv6wNeVH=d{vLv0006wNklwy`79_w2`+wJ>v<3DTW{VR_*k$MACncOQyFm(pdD1h<&$2bFqCVsjwQ2D;d zlF&t%WrJSth#3u7SR{ks_v~{K#!)c*Q^&Z$;Bf^S6aFSl;lq(IpDaowmG^t+DWtZ9 zUXGs~Sdzw5HW7wF9V&rL8%W4tDoOmn4k@PxB*F~OFdUR9Xq2atrN3E`dw0Mi;Zu9+ z55jbgD1q?~f!^PmvF&;3TSS<3V`#BtcejX0^~|>O5w+1r=)RAcDJ{L*rGlcUHzBu;b4;!`DW-PP+ym4UG_JPZQei90OTII? zq%2hV`^x6u#S`n5fBh_e)KJYOn7*iDS*~Tt&reGJ)X-}lHIA(*r;F2tu9?;JGVW}v z&sxkMaH4f?)V{@XM)qwuSwSs^4kJGm*=5FsKYF*N=?;!w8D)o(Kj4kPPx#NKi~vMNDaNoNObUY$Kd&Ae(C;n`|PSZ6lm*BZyQ0 zoNXhUY$Kd(Ba~zvoNObUY$KX!9-C_+oNXhTYa*Is9-3<+nrtAOY$Tj*B=>p&YybcN z7j#liQviIrFC%1+>I3wc-w>m&7gokX2uwNAFT@`S0006WNkl*L|DeQZc6iv|~zg)BQ58a4|Kl#HGW^;-Vl|F&Q(7 zRfZUVt)~ux#h{NG<|A&)PIj6t*nT^XZ#_=T4F@v-gsB~D3IM}_hmEx(6$ImU@X-8{ zNe!&>F(bHZE<531q}T?~;#b9lhJhdjOHr9!EwTEG+G$*FA!j>TkY&dAr2e}1Wk!Nd zlm-Z7$8W(99`nK#>_n^cZKWaz=dBF}Jz=h4g{dCcD=V<~=JQP3Bo5x>Uv;E^N=` z9FXGFrm9+_xUBxBR!5p6xVJ5otrd~bA}vXrn7W3<21&*4u@|ZsNdWi-kTRn&7Z+!# zrCtQv*_O)-yKK1_bZG*E$VsKQ1kB@CJAG@q&B96gZIZ)xnJCHaQqEC<&y!NN1%vsy zo*=CR!&|a^BAb$`l*p1tqWD4lc;IZ*Ba5HEs8cyL+G4KaE4SEtF)uNGH}VJ4|Bnl# zTHimEK1F0O-aGon&n75>+Xt)_#_*-C3fRVs;{yCUwr5@f|chU@_4;s z&e$&F$t5nZ!pfXI75s7B$EU)6{vxnpt-_f#*z-3;Omb{Jdq#fEW&f-N^Xz|C4Drq7 d2{$(o{Q*6%QiLpo!|4D3002ovPDHLkV1m!qNVEU| diff --git a/pages/article/hot-index/index.js b/pages/article/hot-index/index.js deleted file mode 100644 index 2070713..0000000 --- a/pages/article/hot-index/index.js +++ /dev/null @@ -1,163 +0,0 @@ -// pages/stock/index.js -import { getPreferList } from "../../../api/moment" -import { getAllFactoryList, getIndexInfoId } from "../../../api/ztb" -const util = require('../../../utils/util') -const storage = require('../../../utils/storage') -const event = require('../../../utils/event.js') -const app = getApp() - -Component({ - options: { - addGlobalClass: true, - multipleSlots: true - }, - /** - * 页面的初始数据 - */ - data: { - height: app.globalData.safeFragmentHeight - 90, - chartList: null, - momentList: [], - requesting: false, - finished: false, - idList: '', - form: { - pageNum: 1, - pageSize:15 - }, - noticeList: [], - loopIndex: 0, - noticeIndex: 0, - loopRequesting: false, - content: '', - factoryList: [] - }, - lifetimes: { - // 生命周期函数,可以为函数,或一个在methods段中定义的方法名 - attached: function () { - event.on('EventMessage', this, this.onEvent) - }, - detached: function () { - event.remove('EventMessage', this) - } - }, - methods: { - onRestart: function () { - if (!this.data.firstShow) { - this.setData({ height: app.globalData.safeFragmentHeight - 90 }) - this.onRefreshList() - } - if(!this.data.noticeList.length && !this.data.status){ - this.fetchNoticeList() - } - this.data.firstShow = true - }, - onEvent: function (message) { - if (message.what == 570 || message.what == 571 || message.what == 572 || message.what == 573) { - // 帖子发布刷新 - this.onRefreshList() - } - }, - //***********************************参与纸厂讨论*****************************************// - fetchFactoryList: function(){ - if(app.globalData.userInfo){ - var recommendedString = storage.get('recommended' + app.globalData.userInfo.userId) - if(!util.isEmpty(recommendedString)){ - this.setData({ factoryList: JSON.parse(recommendedString) }) - return - } - } - getAllFactoryList().then(result => { - result.data.sort((a, b)=> b.isRecommended - a.isRecommended) - this.setData({ factoryList: result.data.slice(0, 8) }) - }) - }, - toFactoryList: function(){ - wx.navigateTo({ url: '/pages/article/factory/index' }) - }, - toFactory: function(e){ - var item = this.data.factoryList[e.currentTarget.dataset.index] - util.navigateTo('/pages/agent/factory/index?tabIndex=1&id=' + item.paperMillId) - }, - toPaperList: function(){ - wx.navigateTo({ url: '/pages/moment/paper/index' }) - }, - //*************************************************momentList************************************************// - onRefreshList: function () { - if (this.data.requesting) { - return - } - this.setData({ - momentList: [], - factoryList: [], - ['form.pageNum']: 1, - finished: false - }) - this.fetchFactoryList() - this.fetchMomentList() - }, - fetchMomentList: function(){ - if (this.data.requesting || this.data.finished) { - return - } - this.data.requesting = true - getPreferList(this.data.form).then(result => { - if (result.data.records.length) { - var respList = result.data.records - let nowList = `momentList[${this.data.momentList.length}]` - var num = this.data.form.pageNum - var finished = this.data.form.pageNum >= result.data.pages - this.setData({ - [nowList]: respList, - ['form.pageNum']: (num + 1), - finished, - requesting: false - }) - } else { - this.setData({ finished: true, requesting: false }) - } - }).catch(err => { - this.setData({ requesting: false }) - }) - }, - //*************************************************noticeList************************************************// - fetchNoticeList: function(){ - if (this.data.loopRequesting) { - return - } - this.data.loopRequesting = true - getIndexInfoId().then(result => { - this.data.loopRequesting = false - this.data.noticeList = result.data - if(result.data && result.data.length){ - this.data.noticeIndex = 0 - this.data.loopIndex = 0 - this.setData({ content: result.data[0].title}) - } - }).catch(err => { - this.data.loopRequesting = false - }) - }, - onLoop: function(){ - if(!this.data.noticeList.length){ - this.data.loopIndex++ - if(this.data.loopIndex >= 600){ - this.fetchNoticeList() - } - return - } - this.data.noticeIndex++ - if(this.data.noticeIndex >= this.data.noticeList.length){ - this.data.loopIndex++ - this.data.noticeIndex = 0 - } - if(this.data.loopIndex >= 60){ - this.fetchNoticeList() - } - this.setData({ content: this.data.noticeList[this.data.noticeIndex].title }) - }, - onClick: function(){ - wx.navigateTo({ url: '/pages/html/notice/index?id=' + this.data.noticeList[this.data.noticeIndex].id }) - } - } -}) \ No newline at end of file diff --git a/pages/article/hot-index/index.json b/pages/article/hot-index/index.json deleted file mode 100644 index 4fb567e..0000000 --- a/pages/article/hot-index/index.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "component": true, - "usingComponents": { - "wux-skeleton": "/components/skeleton/index", - "wux-skeleton-avatar": "/components/skeleton-avatar/index", - "wux-skeleton-paragraph": "/components/skeleton-paragraph/index", - "wux-row": "/components/row/index", - "wux-col": "/components/col/index", - "wux-grids": "/components/grids/index", - "wux-grid": "/components/grid/index", - "wux-divider": "/components/divider/index", - "wux-image": "/components/image/index", - "refresh-view": "/components/refresher/index", - "wux-button": "/components/button/index", - "wux-tag": "/components/tag/index", - "article-item": "/pages/article/article-item/index" - } -} \ No newline at end of file diff --git a/pages/article/hot-index/index.wxml b/pages/article/hot-index/index.wxml deleted file mode 100644 index 42450a7..0000000 --- a/pages/article/hot-index/index.wxml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{finished?'到底啦~':'加载中...'}} - - - - - - \ No newline at end of file diff --git a/pages/article/hot-index/index.wxss b/pages/article/hot-index/index.wxss deleted file mode 100644 index 996380e..0000000 --- a/pages/article/hot-index/index.wxss +++ /dev/null @@ -1,98 +0,0 @@ -/* pages/main/index.wxss */ -.container { - display: flex; - flex-direction: column; - box-sizing: border-box; - -webkit-text-size-adjust: none; - -webkit-user-select: none; - font-size: 35rpx; - color: #333; - background-color: white; - font-family: Helvetica, Arial, "Helvetica Neue", "Droid Sans", "Microsoft YaHei", sans-serif; -} - -.canvas { - width: 100%; - height: 200px; -} - -.swiper-image { - height: 150px; - border-radius: 6px; - width: 100%; -} - -.item-host { - width: 200rpx; - padding-right: 20rpx -} - -.case-class { - width: 320rpx; -} - -.case2-class { - width: 160rpx; -} - -.case3-class { - width: 600rpx; -} - -.host-class { - width: 120rpx; - margin-top: 4rpx; -} - -.image-load { - width: 50px; - height: 50px; - display: flex; - align-items: center; - justify-content: center; - border-radius: 50rpx; -} - - -.booking-tool { - width: calc(100% - 20px); - background-color: #008AFF; - position: fixed; - left: 255rpx; - z-index: 39; -} - -.roder-add { - display: flex; - justify-content: center; - align-items: center; - width: 240rpx; - height: 80rpx; - background-color: #008AFF; - border-radius: 50rpx; - position: absolute; - box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16); -} - -.cu-tags { - border-radius: 24rpx; - /* border-bottom-right-radius: 24rpx; */ - background-color: #dd514c; - position: absolute; - top: -20rpx; - left: 180rpx; - font-size: 20rpx; - padding: 10rpx 16rpx; - color: var(--white); -} - -.f-tag { - justify-content: center; - padding: 0rpx; - width: 150rpx; -} - -.transform { - transform-origin: 50% 50%; - transform: rotate(180deg); -} \ No newline at end of file diff --git a/pages/article/index/index.js b/pages/article/index/index.js deleted file mode 100644 index 005d535..0000000 --- a/pages/article/index/index.js +++ /dev/null @@ -1,42 +0,0 @@ -// pages/stock/index.js -const util = require('../../../utils/util') -const app = getApp() - -Page({ - /** - * 页面的初始数据 - */ - data: { - height: app.globalData.safeFragmentHeight - 90, - safeBottom: app.globalData.safeBottom, - firstShow: false, - tabList: [ '热门', '纸品价格', '车辆排队', '纸厂扣点' ], - tabIndex: 0 - }, - onLoad:function(){ - this.onRestart() - }, - onRestart: function () { - var fragment = this.selectComponent('#fragment' + this.data.tabIndex) - if (fragment) { - fragment.onRestart() - } - if (!this.data.firstShow) { - this.setData({ height: app.globalData.safeFragmentHeight - 90, tabList: this.data.tabList, safeBottom: app.globalData.safeBottom}) - } - this.data.firstShow = true - }, - onTabChange: function({detail}){ - if(this.data.tabIndex == Number(detail.index)){ - return - } - this.setData({ tabIndex: Number(detail.index) }) - this.onRestart() - }, - stopTouchMove: function(e){ - return false - }, - postMoment: function(){ - util.navigateTo('/pages/article/publish/index') - } -}) \ No newline at end of file diff --git a/pages/article/index/index.json b/pages/article/index/index.json deleted file mode 100644 index f632ea2..0000000 --- a/pages/article/index/index.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "usingComponents": { - "wux-tabi": "/components/tabi/index", - "hot": "/pages/article/hot-index/index", - "price": "/pages/article/price-index/index", - "queue": "/pages/article/queue-index/index", - "point": "/pages/article/point-index/index" - } -} \ No newline at end of file diff --git a/pages/article/index/index.wxml b/pages/article/index/index.wxml deleted file mode 100644 index 65e3279..0000000 --- a/pages/article/index/index.wxml +++ /dev/null @@ -1,21 +0,0 @@ - - - 全部资讯 - - - - - - - - - - - - - - - - - - diff --git a/pages/article/index/index.wxss b/pages/article/index/index.wxss deleted file mode 100644 index 8fac637..0000000 --- a/pages/article/index/index.wxss +++ /dev/null @@ -1,22 +0,0 @@ -/* pages/main/index.wxss */ -.booking-tool { - width: calc(100% - 20px); - background-color: #008AFF; - position: fixed; - left: 25px; -} - -.roder-add { - display: flex; - justify-content: center; - align-items: center; - width: 100rpx; - height: 100rpx; - background-color: #008AFF; - border-radius: 50rpx; - position: absolute; - top: 24px; - right: 24px; - box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16); -} - \ No newline at end of file diff --git a/pages/article/point-index/index.js b/pages/article/point-index/index.js deleted file mode 100644 index 9ee13fd..0000000 --- a/pages/article/point-index/index.js +++ /dev/null @@ -1,99 +0,0 @@ -// pages/stock/index.js -import { getPreferList } from "../../../api/moment" -const event = require('../../../utils/event.js') -const app = getApp() - -Component({ - options: { - addGlobalClass: true, - multipleSlots: true - }, - /** - * 页面的初始数据 - */ - data: { - height: app.globalData.safeFragmentHeight - 90, - userInfo: null, - momentList: [], - requesting: false, - finished: false, - form: { - categoryId: 3, - pageNum: 1, - pageSize:15 - } - }, - lifetimes: { - // 生命周期函数,可以为函数,或一个在methods段中定义的方法名 - attached: function () { - event.on('EventMessage', this, this.onEvent) - }, - detached: function () { - event.remove('EventMessage', this) - } - }, - methods: { - onRestart: function () { - if (!this.data.firstShow) { - this.setData({ height: app.globalData.safeFragmentHeight - 90, userInfo: app.globalData.userInfo }) - } - if (this.data.momentList.length <= 0) { - this.onRefreshList() - } - this.data.firstShow = true - }, - onEvent: function (message) { - if (message.what == 573) { - // 帖子发布刷新 - this.onRefreshList() - } else if(message.what == 200 || message.what == 888){ - // Vip的变化 - this.setData({ userInfo: app.globalData.userInfo }) - this.onRefreshList() - } - }, - //*************************************************momentList************************************************// - onRefreshList: function () { - if(!app.globalData.userInfo || !app.globalData.userInfo.isVIP){ - this.setData({ requesting: false }) - return - } - if (this.data.requesting) { - return - } - this.setData({ momentList: [], ['form.pageNum']: 1, finished: false }) - this.fetchMomentList() - }, - fetchMomentList: function(){ - if (this.data.requesting || this.data.finished) { - return - } - this.data.requesting = true - getPreferList(this.data.form).then(result => { - if (result.data.records.length) { - var respList = result.data.records - let nowList = `momentList[${this.data.momentList.length}]` - var num = this.data.form.pageNum - var finished = this.data.form.pageNum >= result.data.pages - this.setData({ - [nowList]: respList, - ['form.pageNum']: (num + 1), - finished, - requesting: false - }) - } else { - this.setData({ requesting: false }) - } - }).catch(err => { - this.setData({ requesting: false }) - }) - }, - toVip: function(){ - if(!app.globalData.userInfo){ - wx.navigateTo({ url: '/pages/login/index' }) - return - } - wx.navigateTo({ url: '/pages/ztbvip/index' }) - } - } -}) \ No newline at end of file diff --git a/pages/article/point-index/index.json b/pages/article/point-index/index.json deleted file mode 100644 index 3e32d9d..0000000 --- a/pages/article/point-index/index.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "component": true, - "usingComponents": { - "wux-skeleton": "/components/skeleton/index", - "wux-skeleton-avatar": "/components/skeleton-avatar/index", - "wux-skeleton-paragraph": "/components/skeleton-paragraph/index", - "wux-row": "/components/row/index", - "wux-col": "/components/col/index", - "wux-divider": "/components/divider/index", - "wux-image": "/components/image/index", - "refresh-view": "/components/refresher/index", - "wux-button": "/components/button/index", - "wux-tag": "/components/tag/index", - "article-item": "/pages/article/article-item/index" - } -} \ No newline at end of file diff --git a/pages/article/point-index/index.wxml b/pages/article/point-index/index.wxml deleted file mode 100644 index 25717c0..0000000 --- a/pages/article/point-index/index.wxml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{finished?'到底啦~':'加载中...'}} - - - - - - - - - - 需要开通会员才能查看纸厂扣点信息 - 限时优惠开通会员,获取更多货源、尊享会员权益,买卖更赚钱 - - - 立即开通 - - \ No newline at end of file diff --git a/pages/article/point-index/index.wxss b/pages/article/point-index/index.wxss deleted file mode 100644 index 996380e..0000000 --- a/pages/article/point-index/index.wxss +++ /dev/null @@ -1,98 +0,0 @@ -/* pages/main/index.wxss */ -.container { - display: flex; - flex-direction: column; - box-sizing: border-box; - -webkit-text-size-adjust: none; - -webkit-user-select: none; - font-size: 35rpx; - color: #333; - background-color: white; - font-family: Helvetica, Arial, "Helvetica Neue", "Droid Sans", "Microsoft YaHei", sans-serif; -} - -.canvas { - width: 100%; - height: 200px; -} - -.swiper-image { - height: 150px; - border-radius: 6px; - width: 100%; -} - -.item-host { - width: 200rpx; - padding-right: 20rpx -} - -.case-class { - width: 320rpx; -} - -.case2-class { - width: 160rpx; -} - -.case3-class { - width: 600rpx; -} - -.host-class { - width: 120rpx; - margin-top: 4rpx; -} - -.image-load { - width: 50px; - height: 50px; - display: flex; - align-items: center; - justify-content: center; - border-radius: 50rpx; -} - - -.booking-tool { - width: calc(100% - 20px); - background-color: #008AFF; - position: fixed; - left: 255rpx; - z-index: 39; -} - -.roder-add { - display: flex; - justify-content: center; - align-items: center; - width: 240rpx; - height: 80rpx; - background-color: #008AFF; - border-radius: 50rpx; - position: absolute; - box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16); -} - -.cu-tags { - border-radius: 24rpx; - /* border-bottom-right-radius: 24rpx; */ - background-color: #dd514c; - position: absolute; - top: -20rpx; - left: 180rpx; - font-size: 20rpx; - padding: 10rpx 16rpx; - color: var(--white); -} - -.f-tag { - justify-content: center; - padding: 0rpx; - width: 150rpx; -} - -.transform { - transform-origin: 50% 50%; - transform: rotate(180deg); -} \ No newline at end of file diff --git a/pages/article/price-detail/index.js b/pages/article/price-detail/index.js index 5158bf6..a3e29ec 100644 --- a/pages/article/price-detail/index.js +++ b/pages/article/price-detail/index.js @@ -1,113 +1,66 @@ -// pages/moment/price/index.js -import { getFactoryPrice } from "../../../api/ztb" -const event = require('../../../utils/event') -const storage = require('../../../utils/storage') -const app = getApp() - +// pages/article/price-detail/index.js Page({ - /** - * 页面的初始数据 - */ - data: { - height: app.globalData.fragmentHeight, - kg: app.globalData.kg, - loading: false, - requesting: false, - finished: false, - top: 0, - orderList: [], - form: { pageNum: 1, - pageSize:15 } - }, - /** - * 生命周期函数--监听页面加载 - */ - onLoad: function (options) { - var ids = storage.get('ztb-paper-price') - if(ids){ - this.data.form.paperMillIdList = ids - this.onRefreshList() - } - event.on('EventMessage', this, this.onEvent) - }, - onEvent: function (message) { - if(message.what == 508){ - this.data.form.paperMillIdList = message.obj - storage.put('ztb-paper-price', message.obj) - this.onRefreshList() - } - }, - // 下拉刷新... - onRefreshList: function () { - if (this.data.requesting) { - return - } - this.setData({ - orderList: [], - ['form.pageNum']: 1, - loading: true, - kg: app.globalData.kg, - height: app.globalData.fragmentHeight, - finished: false - }) - this.fetchPapersList() - }, - // 获取特价列表 - fetchPapersList: function () { - if (this.data.requesting || this.data.finished) { - return - } - if (this.data.loading) { - this.data.requesting = true - } else { - this.setData({ requesting: true }) - } - getFactoryPrice(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 - }) - }) - }, - selectMill: function(){ - wx.navigateTo({ url: '/pages/article/factory/index?type=4&ids=' + this.data.form.paperMillIdList}) - }, - onUnload: function(){ - event.remove('EventMessage', this) - } + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } }) \ No newline at end of file diff --git a/pages/article/price-detail/index.json b/pages/article/price-detail/index.json deleted file mode 100644 index 53ec20d..0000000 --- a/pages/article/price-detail/index.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "usingComponents": { - "refresh-view": "/components/refresher/index", - "wux-divider": "/components/divider/index", - "wux-button": "/components/button/index" - } -} \ No newline at end of file diff --git a/pages/article/price-detail/index.wxml b/pages/article/price-detail/index.wxml index 0289b3f..c3786c6 100644 --- a/pages/article/price-detail/index.wxml +++ b/pages/article/price-detail/index.wxml @@ -1,58 +1,2 @@ - - - - 纸厂价格 - - - - - - - 正在加载 - - - - 添加纸厂 - - - - - - - - {{item.name}} - (单位:{{kg? '元/KG' : '元/吨'}}) - - - - 品类信息 - 昨日价格 - 今日价格 - 涨跌 - - - {{cateItem.categoryName}} - {{formate.formatePrice(cateItem.yesterdayUnitPrice, kg)}} - {{formate.formatePrice(cateItem.unitPrice, kg)}} - - - {{formate.formatePrice(cateItem.floatingPrice, kg)}} - - - - {{formate.formatePrice(-cateItem.floatingPrice, kg)}} - - - - - - - - - - - - - - 添加纸厂 - - - \ No newline at end of file + +pages/article/price-detail/index.wxml diff --git a/pages/article/price-detail/index.wxss b/pages/article/price-detail/index.wxss deleted file mode 100644 index ee1665b..0000000 --- a/pages/article/price-detail/index.wxss +++ /dev/null @@ -1,16 +0,0 @@ -/* pages/moment/price/index.wxss */ -.item-content { - background: rgba(255, 255, 255, 1); - padding: 30rpx; -} - -.cateItem{ - border-top: 2rpx solid #f3f3f3; - padding-top: 8rpx; - padding-bottom: 8rpx; -} - -.transform { - transform-origin: 50% 50%; - transform: rotate(180deg); -} diff --git a/pages/article/price-index/index.js b/pages/article/price-index/index.js deleted file mode 100644 index a80475f..0000000 --- a/pages/article/price-index/index.js +++ /dev/null @@ -1,86 +0,0 @@ -// pages/stock/index.js -import { getPreferList } from "../../../api/moment" -const event = require('../../../utils/event.js') -const app = getApp() - -Component({ - options: { - addGlobalClass: true, - multipleSlots: true - }, - /** - * 页面的初始数据 - */ - data: { - height: app.globalData.safeFragmentHeight - 90, - firstShow: false, - momentList: [], - requesting: false, - finished: false, - form: { - categoryId: 1, - pageNum: 1, - pageSize:15 - } - }, - lifetimes: { - // 生命周期函数,可以为函数,或一个在methods段中定义的方法名 - attached: function () { - event.on('EventMessage', this, this.onEvent) - }, - detached: function () { - event.remove('EventMessage', this) - } - }, - methods: { - onRestart: function () { - if (!this.data.firstShow) { - this.setData({ height: app.globalData.safeFragmentHeight - 90, kg: app.globalData.kg }) - this.onRefreshList() - } - this.data.firstShow = true - }, - onEvent: function (message) { - if (message.what == 571) { - // 帖子发布刷新 - this.onRefreshList() - } - }, - //*************************************************momentList************************************************// - onRefreshList: function () { - if (this.data.requesting) { - return - } - this.setData({ - momentList: [], - ['form.pageNum']: 1, - finished: false - }) - this.fetchMomentList() - }, - fetchMomentList: function(){ - if (this.data.requesting || this.data.finished) { - return - } - this.data.requesting = true - getPreferList(this.data.form).then(result => { - if (result.data.records.length) { - var respList = result.data.records - let nowList = `momentList[${this.data.momentList.length}]` - var num = this.data.form.pageNum - var finished = this.data.form.pageNum >= result.data.pages - this.setData({ - [nowList]: respList, - ['form.pageNum']: (num + 1), - finished, - requesting: false - }) - } else { - this.setData({ finished: true, requesting: false }) - } - }).catch(err => { - this.setData({ requesting: false }) - }) - } - } -}) \ No newline at end of file diff --git a/pages/article/price-index/index.json b/pages/article/price-index/index.json deleted file mode 100644 index 4fb567e..0000000 --- a/pages/article/price-index/index.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "component": true, - "usingComponents": { - "wux-skeleton": "/components/skeleton/index", - "wux-skeleton-avatar": "/components/skeleton-avatar/index", - "wux-skeleton-paragraph": "/components/skeleton-paragraph/index", - "wux-row": "/components/row/index", - "wux-col": "/components/col/index", - "wux-grids": "/components/grids/index", - "wux-grid": "/components/grid/index", - "wux-divider": "/components/divider/index", - "wux-image": "/components/image/index", - "refresh-view": "/components/refresher/index", - "wux-button": "/components/button/index", - "wux-tag": "/components/tag/index", - "article-item": "/pages/article/article-item/index" - } -} \ No newline at end of file diff --git a/pages/article/price-index/index.wxml b/pages/article/price-index/index.wxml deleted file mode 100644 index 9690725..0000000 --- a/pages/article/price-index/index.wxml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{finished?'到底啦~':'加载中...'}} - - - - - - \ No newline at end of file diff --git a/pages/article/price-index/index.wxss b/pages/article/price-index/index.wxss deleted file mode 100644 index 3c228ca..0000000 --- a/pages/article/price-index/index.wxss +++ /dev/null @@ -1,82 +0,0 @@ -/* pages/main/index.wxss */ -.item-cate { - flex: 5; - padding: 10rpx 30rpx; - border-radius: 10rpx; - border: 2rpx solid #d9d9d9 -} - -.item-host { - width: 200rpx; - padding-right: 20rpx -} - -.case-class { - width: 320rpx; -} - -.case2-class { - width: 160rpx; -} - -.case3-class { - width: 600rpx; -} - -.host-class { - width: 120rpx; - margin-top: 4rpx; -} - -.image-load { - width: 50px; - height: 50px; - display: flex; - align-items: center; - justify-content: center; - border-radius: 50rpx; -} - - -.booking-tool { - width: calc(100% - 20px); - background-color: #008AFF; - position: fixed; - left: 255rpx; - z-index: 39; -} - -.roder-add { - display: flex; - justify-content: center; - align-items: center; - width: 240rpx; - height: 80rpx; - background-color: #008AFF; - border-radius: 50rpx; - position: absolute; - box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16); -} - -.cu-tags { - border-radius: 24rpx; - /* border-bottom-right-radius: 24rpx; */ - background-color: #dd514c; - position: absolute; - top: -20rpx; - left: 180rpx; - font-size: 20rpx; - padding: 10rpx 16rpx; - color: var(--white); -} - -.f-tag { - justify-content: center; - padding: 0rpx; - width: 150rpx; -} - -.transform { - transform-origin: 50% 50%; - transform: rotate(180deg); -} \ No newline at end of file diff --git a/pages/article/queue-detail/index.js b/pages/article/queue-detail/index.js deleted file mode 100644 index f459770..0000000 --- a/pages/article/queue-detail/index.js +++ /dev/null @@ -1,82 +0,0 @@ -// pages/moment/price/index.js -import { getFactoryTodayList } from "../../../api/ztb" -const app = getApp() - -Page({ - /** - * 页面的初始数据 - */ - data: { - height: app.globalData.fragmentHeight, - loading: true, - requesting: false, - finished: false, - orderList: [], - form: { pageNum: 1, - pageSize:30 } - }, - /** - * 生命周期函数--监听页面加载 - */ - onLoad: function (options) { - this.onRefreshList() - }, - // 下拉刷新... - onRefreshList: function () { - if (this.data.requesting) { - return - } - this.setData({ - orderList: [], - ['form.pageNum']: 1, - loading: true, - height: app.globalData.fragmentHeight, - finished: false - }) - this.fetchPapersList() - }, - // 获取特价列表 - fetchPapersList: function () { - if (this.data.requesting || this.data.finished) { - return - } - if (this.data.loading) { - this.data.requesting = true - } else { - this.setData({ requesting: true }) - } - getFactoryTodayList(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 }) - }) - } - -}) \ No newline at end of file diff --git a/pages/article/queue-detail/index.json b/pages/article/queue-detail/index.json deleted file mode 100644 index 0832291..0000000 --- a/pages/article/queue-detail/index.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "usingComponents": { - "refresh-view": "/components/refresher/index", - "wux-divider": "/components/divider/index" - } -} \ No newline at end of file diff --git a/pages/article/queue-detail/index.wxml b/pages/article/queue-detail/index.wxml deleted file mode 100644 index f6a76b0..0000000 --- a/pages/article/queue-detail/index.wxml +++ /dev/null @@ -1,38 +0,0 @@ - - - - 车辆排队情况 - - - - - - - {{loading? '正在加载' : '暂无数据'}} - - - - 纸厂名称 - 昨日车辆 - 今日车辆 - - - - {{item.paperMillName}} - {{item.yesterdayTotalQuantity || 0}}辆{{retainedString(item.yesterdayRetainedQuantity)}} - {{item.totalQuantity || 0}}辆{{retainedString(item.retainedQuantity)}} - - - - - - - // 状态。0:生产中,1:已发货,2:已完成 - function retainedString(quatity) { - if(quatity > 0){ - return '压' + quatity + '辆' - } - return '' - } - module.exports = retainedString - \ No newline at end of file diff --git a/pages/article/queue-detail/index.wxss b/pages/article/queue-detail/index.wxss deleted file mode 100644 index 924fc44..0000000 --- a/pages/article/queue-detail/index.wxss +++ /dev/null @@ -1,11 +0,0 @@ -/* pages/moment/price/index.wxss */ -.item-content { - background: rgba(255, 255, 255, 1); - padding: 30rpx; -} - -.cateItem{ - border-top: 2rpx solid #f3f3f3; - padding-top: 8rpx; - padding-bottom: 8rpx; -} diff --git a/pages/article/queue-index/index.js b/pages/article/queue-index/index.js deleted file mode 100644 index 54a0e8a..0000000 --- a/pages/article/queue-index/index.js +++ /dev/null @@ -1,80 +0,0 @@ -// pages/stock/index.js -import { getPreferList } from "../../../api/moment" -const event = require('../../../utils/event') -const app = getApp() - -Component({ - options: { - addGlobalClass: true, - multipleSlots: true - }, - /** - * 页面的初始数据 - */ - data: { - dev: app.globalData.dev, - firstShow: false, - height: app.globalData.safeFragmentHeight - 90, - momentList: [], - requesting: false, - finished: false, - form: { categoryId: 2, pageNum: 1, - pageSize:15 } - }, - lifetimes: { - // 生命周期函数,可以为函数,或一个在methods段中定义的方法名 - attached: function () { - event.on('EventMessage', this, this.onEvent) - }, - detached: function () { - event.remove('EventMessage', this) - } - }, - methods: { - onRestart: function () { - if (!this.data.firstShow) { - this.setData({ dev: app.globalData.dev, height: app.globalData.safeFragmentHeight - 90 }) - this.onRefreshList() - } - this.data.firstShow = true - }, - onEvent: function (message) { - if (message.what == 572) { - // 帖子发布刷新 - this.onRefreshList() - } - }, - //*************************************************momentList************************************************// - onRefreshList: function () { - if (this.data.requesting) { - return - } - this.setData({ momentList: [], ['form.pageNum']: 1, finished: false }) - this.fetchMomentList() - }, - fetchMomentList: function(){ - if (this.data.requesting || this.data.finished) { - return - } - this.data.requesting = true - getPreferList(this.data.form).then(result => { - if (result.data.records.length) { - var respList = result.data.records - let nowList = `momentList[${this.data.momentList.length}]` - var num = this.data.form.pageNum - var finished = this.data.form.pageNum >= result.data.pages - this.setData({ - [nowList]: respList, - ['form.pageNum']: (num + 1), - finished, - requesting: false - }) - } else { - this.setData({ finished: true, requesting: false }) - } - }).catch(err => { - this.setData({ requesting: false }) - }) - } - } -}) \ No newline at end of file diff --git a/pages/article/queue-index/index.json b/pages/article/queue-index/index.json deleted file mode 100644 index 3e32d9d..0000000 --- a/pages/article/queue-index/index.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "component": true, - "usingComponents": { - "wux-skeleton": "/components/skeleton/index", - "wux-skeleton-avatar": "/components/skeleton-avatar/index", - "wux-skeleton-paragraph": "/components/skeleton-paragraph/index", - "wux-row": "/components/row/index", - "wux-col": "/components/col/index", - "wux-divider": "/components/divider/index", - "wux-image": "/components/image/index", - "refresh-view": "/components/refresher/index", - "wux-button": "/components/button/index", - "wux-tag": "/components/tag/index", - "article-item": "/pages/article/article-item/index" - } -} \ No newline at end of file diff --git a/pages/article/queue-index/index.wxml b/pages/article/queue-index/index.wxml deleted file mode 100644 index 2615c8c..0000000 --- a/pages/article/queue-index/index.wxml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{finished?'到底啦~':'加载中...'}} - - - - - - \ No newline at end of file diff --git a/pages/article/queue-index/index.wxss b/pages/article/queue-index/index.wxss deleted file mode 100644 index f11ce90..0000000 --- a/pages/article/queue-index/index.wxss +++ /dev/null @@ -1,45 +0,0 @@ -/* pages/main/index.wxss */ - -.canvas { - width: 100%; - height: 200px; -} - -.item-host { - width: 200rpx; - padding-right: 20rpx -} - -.case-class { - width: 320rpx; -} - -.case2-class { - width: 160rpx; -} - -.case3-class { - width: 600rpx; -} - -.host-class { - width: 120rpx; - margin-top: 4rpx; -} - -.image-load { - width: 50px; - height: 50px; - display: flex; - align-items: center; - justify-content: center; - border-radius: 50rpx; -} - -.queue{ - text-align: center; - width:160px; - border:2rpx solid #CCCCCC; - padding:10rpx 0rpx; - border-radius:36px -} \ No newline at end of file diff --git a/utils/util.js b/utils/util.js index de41170..b525f4a 100644 --- a/utils/util.js +++ b/utils/util.js @@ -167,7 +167,6 @@ function checkId(id) { const tokenList = [ 'pages/mall/price-index/index', '/pages/article/price-detail/index', - '/pages/article/queue-detail/index', '/pages/shop/index/index', '/pages/bidding/index/index', '/pages/morder/index/index', @@ -218,8 +217,6 @@ function navigateTarget(redirectInfo){ navigateTo('/pages/mall/price-index/index') } else if(redirectInfo.targetView == 'showFactoryPrice'){ navigateTo('/pages/article/price-detail/index') - } else if(redirectInfo.targetView == 'showFactoryQueue'){ - navigateTo('/pages/article/queue-detail/index') } else if(redirectInfo.targetView == 'showArticleHome'){ event.emit('EventMessage', { what: 250, desc: 'page-article', index: 0 }) } else if(redirectInfo.targetView == 'myArticle'){