Browse Source

requesting

feature/v2.1
xpz2018 4 years ago
parent
commit
a5e818c4f1
2 changed files with 2 additions and 2 deletions
  1. 2
      pages/agent/factory-fragment/index.js
  2. 2
      pages/agent/factory-fragment/index.wxml

2
pages/agent/factory-fragment/index.js

@ -84,7 +84,7 @@ Component({
if (this.data.requesting || this.data.finished) {
return
}
this.data.requesting = true
this.setData({ requesting: true })
getFactoryPrice(this.data.form).then(result => {
if (result.data.records.length) {
var respList = result.data.records

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

@ -2,7 +2,7 @@
<wxs module="formate" src="../../formate.wxs"></wxs>
<van-tabs sticky active="{{tabIndex}}" color="#008AFF" bind:change="onTabChange" line-height="2px" swipe-threshold="5">
<van-tab wx:for="{{tabList}}" wx:key="index" title="{{item}}" title-style="color:{{tabIndex==index?'#008AFF':'#333333'}}"></van-tab>
<van-tab wx:for="{{tabList}}" wx:key="index" title="{{item}}" disabled="{{requesting}}" title-style="color:{{tabIndex==index?'#008AFF':'#333333'}}"></van-tab>
</van-tabs>
<refresh-view id="refresh" bind:refresh="onRefreshList" height="{{height}}" bind:loadmore="fetchPapersList">

Loading…
Cancel
Save