Ver Fonte

接口调试

lilei há 4 anos atrás
pai
commit
ca25bb6b12
3 ficheiros alterados com 4 adições e 8 exclusões
  1. 1 1
      pages/index/index.vue
  2. 2 6
      pages/tdRecord/tdRecord.vue
  3. 1 1
      pages/userAuth/userAuth.vue

+ 1 - 1
pages/index/index.vue

@@ -63,7 +63,7 @@
 		},
 		},
 		onShow() {
 		onShow() {
 			// 获取订单状态数据字典
 			// 获取订单状态数据字典
-			this.getCodeList('RUBBISH_TYPE','vuex_rubbishType')
+			// this.getCodeList('RUBBISH_TYPE','vuex_rubbishType')
 			this.getUserInfo()
 			this.getUserInfo()
 		},
 		},
 		onUnload() {
 		onUnload() {

+ 2 - 6
pages/tdRecord/tdRecord.vue

@@ -12,7 +12,7 @@
 				<view class="list-cons">
 				<view class="list-cons">
 					<view class="list-imgs">
 					<view class="list-imgs">
 						<u-image width="80rpx" height="80rpx" :src="`/static/${item.rubbishType}.png`"></u-image>
 						<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>
 					<view class="list-md">
 					<view class="list-md">
 						<view>
 						<view>
@@ -65,11 +65,6 @@
 			this.refresh({})
 			this.refresh({})
 		},
 		},
 		methods: {
 		methods: {
-			// 获取对应的投递类型
-			getRbt(code,key){
-				let row = this.rubbishType.find(item => item.rubbishType == code)
-				return row[key]
-			},
 			// 获取查询参数 刷新列表
 			// 获取查询参数 刷新列表
 			refresh(params){
 			refresh(params){
 				this.searchForm = params
 				this.searchForm = params
@@ -141,6 +136,7 @@
 	}
 	}
 	.list{
 	.list{
 		flex-grow: 1;
 		flex-grow: 1;
+		overflow: auto;
 	}
 	}
 	.list-box{
 	.list-box{
 		background: #FFFFFF;
 		background: #FFFFFF;

+ 1 - 1
pages/userAuth/userAuth.vue

@@ -270,7 +270,7 @@
 			submit(){
 			submit(){
 				let that = this
 				let that = this
 				console.log(this.formData.rubbishWeight,'this.formData.rubbishWeight')
 				console.log(this.formData.rubbishWeight,'this.formData.rubbishWeight')
-				if(this.formData.rubbishWeight<=0){
+				if(this.balanceData<=0){
 					uni.showToast({
 					uni.showToast({
 						icon: 'none',
 						icon: 'none',
 						title: '请投放物品!'
 						title: '请投放物品!'