|
@@ -15,7 +15,7 @@
|
|
|
<view class="record-item" v-for="(item,index) in list" :key="index" @click="getDetails(item)">
|
|
|
<view class="item-head">
|
|
|
<text class="item-c-tit">{{item.storeName}}</text>
|
|
|
- <u-tag class="item-c-type" :text="item.status | taskStatus" type="primary" />
|
|
|
+ <u-tag class="item-c-type" :text="item.status | taskStatus" :type="item.status | statusCls" />
|
|
|
</view>
|
|
|
<view class="item-main">
|
|
|
<text class="item-tit">巡店人:</text>
|
|
@@ -99,6 +99,20 @@
|
|
|
str = '已过期'
|
|
|
}
|
|
|
return str
|
|
|
+ },
|
|
|
+ // 状态颜色标记
|
|
|
+ statusCls(val){
|
|
|
+ let str = ''
|
|
|
+ if(val == 'PENDING'){
|
|
|
+ str = 'error'
|
|
|
+ }else if(val == 'RUNNING'){
|
|
|
+ str = 'info'
|
|
|
+ }else if(val == 'FINISHED'){
|
|
|
+ str = 'success'
|
|
|
+ }else if(val == 'EXPIRED'){
|
|
|
+ str = 'warning'
|
|
|
+ }
|
|
|
+ return str
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -176,6 +190,7 @@
|
|
|
},
|
|
|
// scroll-view到底部加载更多
|
|
|
onreachBottom() {
|
|
|
+ console.log('onreachBottom')
|
|
|
if (this.list.length < this.total) {
|
|
|
this.pageNo += 1
|
|
|
this.pageInit()
|