Przeglądaj źródła

修改经销商库存

caojunjie 4 lat temu
rodzic
commit
7827f70cd6
2 zmienionych plików z 4 dodań i 17 usunięć
  1. 1 1
      manifest.json
  2. 3 16
      pages/me/agent-stock/agent-stock.vue

+ 1 - 1
manifest.json

@@ -2,7 +2,7 @@
     "name" : "耀灵全钢店管家",
     "appid" : "__UNI__0C3473D",
     "description" : "测试",
-    "versionName" : "0.0.2",
+    "versionName" : "0.0.1",
     "versionCode" : "100",
     "transformPx" : false,
     "app-plus" : {

+ 3 - 16
pages/me/agent-stock/agent-stock.vue

@@ -123,16 +123,13 @@
 				var _this = this;
 				request({
 					url: '/app/appAgent/getStoreAgentCondition',
-					method: 'get',
-					data: {
-
-					}
 				}).then(res => {
+					console.log(res.data.data.brands)
 					if (res.data.code == 0) {
 						console.log(res)
 						// 获取品牌列表
 						_this.brandList = [];
-						res.data.data.brands.forEach(function(val, index) {
+						res.data.data.data.brands.forEach(function(val, index) {
 							_this.brandList.push({
 								value: index,
 								label: val
@@ -140,7 +137,7 @@
 						});
 						// 获取花纹列表
 						_this.patternList = [];
-						res.data.data.patterns.forEach(function(val, index) {
+						res.data.data.data.patterns.forEach(function(val, index) {
 							_this.patternList.push({
 								value: index,
 								label: val
@@ -156,11 +153,6 @@
 					}
 				}).catch(err => {
 					console.log(err)
-					uni.showToast({
-						title: _this.$store.state.showServerErrorMsg,
-						icon: "none",
-						duration: _this.$store.state.showToastDuration
-					});
 					this.currentPage -= 1;
 				}).finally(() => {
 					setTimeout(() => {
@@ -219,11 +211,6 @@
 					}
 				}).catch(err => {
 					console.log(err)
-					uni.showToast({
-						title: _this.$store.state.showServerErrorMsg,
-						icon: "none",
-						duration: _this.$store.state.showToastDuration
-					});
 					this.currentPage -= 1;
 				}).finally(() => {
 					setTimeout(() => {