Browse Source

bug 修复

lilei 4 years ago
parent
commit
22620e496e
4 changed files with 7 additions and 13 deletions
  1. 6 8
      libs/axios.js
  2. 1 1
      pages/index/index.vue
  3. 0 2
      pages/userCenter/deliveryRecord.vue
  4. 0 2
      store/index.js

+ 6 - 8
libs/axios.js

@@ -37,14 +37,12 @@ const request = (opts, hasToken) => {
 				if(ret.status == '200'){
 					resolve(ret)
 				}else{
-					if(ret.status == 500){
-						uni.showToast({
-							icon:'none',
-							title: ret.message,
-							mask: true,
-							duration: 5000 
-						})
-					}
+					uni.showToast({
+						icon:'none',
+						title: ret.message,
+						mask: true,
+						duration: 5000 
+					})
 					resolve(ret)
 				}
 				resolve(ret)

+ 1 - 1
pages/index/index.vue

@@ -103,7 +103,7 @@
 		},
 		onShow() {
 			// 获取订单状态数据字典
-			this.getCodeList('RUBBISH_TYPE','vuex_rubbishType')
+			// this.getCodeList('RUBBISH_TYPE','vuex_rubbishType')
 			// 获取顶部轮播图
 			this.getbannerList()
 			//  获取经纬度

+ 0 - 2
pages/userCenter/deliveryRecord.vue

@@ -44,12 +44,10 @@
 				total: 0,  //  数据总条数
 				noDataText: '暂无数据',  //  列表请求状态提示语
 				status: 'loadmore',  //  加载中状态
-				rubbishType: []
 			}
 		},
 		onShow() {
 			this.searchHandle(1)
-			this.rubbishType = this.$store.state.vuex_rubbishType
 		},
 		methods:{
 			// 搜索查询

+ 0 - 2
store/index.js

@@ -115,8 +115,6 @@ const store = new Vuex.Store({
 		vuex_netStatus: '',
 		// 客服电话
 		vuex_kfMobile: '4008826012',
-		// 垃圾箱类型
-		vuex_rubbishType: [],
 		vuex_noLogin: false,
 		vuex_isClick: false
 	},