Browse Source

no message

feature/v1.5
xpz2018 4 years ago
parent
commit
831bc93791
4 changed files with 14 additions and 11 deletions
  1. 2
      app.js
  2. 10
      components/transition/index.wxml
  3. 2
      pages/home/user-info/index.js
  4. 11
      pages/process/index/index.js

2
app.js

@ -1,6 +1,6 @@
//app.js //app.js
App({ App({
evn: 0, // 0: 开发版本;1:测试版本;2:生产版本
evn: 2, // 0: 开发版本;1:测试版本;2:生产版本
tmplIds: ['AFoM5TOfsgERsfcetNSB0UlmEixnLF1ySXr54Bqno2M', 'lOQ8Gvyy_dTk68bYGpRVnVA0M7DsYYrV81Gd39GUPBA'], tmplIds: ['AFoM5TOfsgERsfcetNSB0UlmEixnLF1ySXr54Bqno2M', 'lOQ8Gvyy_dTk68bYGpRVnVA0M7DsYYrV81Gd39GUPBA'],
version: '1.5.0', version: '1.5.0',
xAppId: '503258978847953926', xAppId: '503258978847953926',

10
components/transition/index.wxml

@ -1,8 +1,4 @@
<view
wx:if="{{ inited }}"
class="van-transition custom-class {{ classes }}"
style="{{ display ? '' : 'display: none;' }} {{ customStyle }}"
bind:transitionend="onTransitionEnd"
>
<view wx:if="{{ inited }}" class="van-transition custom-class {{ classes }}"
style="{{ display ? '' : 'display: none;' }} {{ customStyle }}" bind:transitionend="onTransitionEnd">
<slot /> <slot />
</view>
</view>

2
pages/home/user-info/index.js

@ -49,7 +49,7 @@ Scene({
}, },
authrise: function(){ authrise: function(){
if(!app.userInfo.isAuth){ if(!app.userInfo.isAuth){
wx.navigateTo({ url: '/pages/settig/authory/index' })
wx.navigateTo({ url: '/pages/setting/authory/index' })
} }
}, },
settingAgent: function(){ settingAgent: function(){

11
pages/process/index/index.js

@ -129,7 +129,7 @@ Component({
wx.navigateTo({ url: '/pages/storage/order-list/index' }) wx.navigateTo({ url: '/pages/storage/order-list/index' })
} }
}, },
fetchStatisticsInfo: function(vdate){
fetchStatisticsInfo: function(vdate, loading){
var param = {startTime: util.formatTime(new Date(vdate[0]), 'Y-M-D'), endTime: util.formatTime(new Date(vdate[1]), 'Y-M-D')} var param = {startTime: util.formatTime(new Date(vdate[0]), 'Y-M-D'), endTime: util.formatTime(new Date(vdate[1]), 'Y-M-D')}
getStatisticsInfo(param).then(result => { getStatisticsInfo(param).then(result => {
if(Number(result.data.priceOrderNum) > 0){ if(Number(result.data.priceOrderNum) > 0){
@ -178,8 +178,13 @@ Component({
} }
var vdateString = util.formatDate(new Date(vdate[0]), 'Y-M-D') + '至' + util.formatDate(new Date(vdate[1]), 'Y-M-D') var vdateString = util.formatDate(new Date(vdate[0]), 'Y-M-D') + '至' + util.formatDate(new Date(vdate[1]), 'Y-M-D')
this.setData({ tabList: this.data.tabList, tabList2: this.data.tabList2, totalInfo: result.data, vdate, vdateString }) this.setData({ tabList: this.data.tabList, tabList2: this.data.tabList2, totalInfo: result.data, vdate, vdateString })
if(loading){
wx.hideLoading()
}
}).catch(err => { }).catch(err => {
console.log(err)
if(loading){
wx.hideLoading()
}
}) })
}, },
showSheet: function(){ showSheet: function(){
@ -208,10 +213,12 @@ Component({
}, },
changeFactory: function(e){ changeFactory: function(e){
var item = this.data.factoryList[e.currentTarget.dataset.index] var item = this.data.factoryList[e.currentTarget.dataset.index]
wx.showLoading({ title: '正在切换', mask: true })
headerFactoryId(item.id) headerFactoryId(item.id)
event.emit('EventMessage', { what: 999, desc: 'changeFactory' }) event.emit('EventMessage', { what: 999, desc: 'changeFactory' })
this.setData({ visible: false, factoryId: item.id }) this.setData({ visible: false, factoryId: item.id })
this.trigEvent(9) this.trigEvent(9)
this.fetchStatisticsInfo(this.data.vdate, true)
}, },
trigEvent: function(zIndex){ trigEvent: function(zIndex){
setTimeout(() => { setTimeout(() => {

Loading…
Cancel
Save