@@ -63,7 +63,7 @@
},
onShow() {
// 获取订单状态数据字典
- this.getCodeList('RUBBISH_TYPE','vuex_rubbishType')
+ // this.getCodeList('RUBBISH_TYPE','vuex_rubbishType')
this.getUserInfo()
onUnload() {
@@ -12,7 +12,7 @@
<view class="list-cons">
<view class="list-imgs">
<u-image width="80rpx" height="80rpx" :src="`/static/${item.rubbishType}.png`"></u-image>
- <view class="cls-names">{{getRbt(item.rubbishType,'dispName')}}</view>
+ <view class="cls-names">{{item.rubbishTypeDictValue}}</view>
</view>
<view class="list-md">
<view>
@@ -65,11 +65,6 @@
this.refresh({})
methods: {
- // 获取对应的投递类型
- getRbt(code,key){
- let row = this.rubbishType.find(item => item.rubbishType == code)
- return row[key]
- },
// 获取查询参数 刷新列表
refresh(params){
this.searchForm = params
@@ -141,6 +136,7 @@
}
.list{
flex-grow: 1;
+ overflow: auto;
.list-box{
background: #FFFFFF;
@@ -270,7 +270,7 @@
submit(){
let that = this
console.log(this.formData.rubbishWeight,'this.formData.rubbishWeight')
- if(this.formData.rubbishWeight<=0){
+ if(this.balanceData<=0){
uni.showToast({
icon: 'none',
title: '请投放物品!'