|
@@ -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(() => {
|