|
@@ -9,7 +9,7 @@
|
|
active-color="#fff" inactive-color="#ffffff" bg-color="#ffffff00"></u-tabs> -->
|
|
active-color="#fff" inactive-color="#ffffff" bg-color="#ffffff00"></u-tabs> -->
|
|
<view style="width: 340rpx;height: 80rpx;text-align: center;padding-top: 25rpx;padding-left: 20rpx;float: left;margin-top: 0;margin-left: 30rpx;">
|
|
<view style="width: 340rpx;height: 80rpx;text-align: center;padding-top: 25rpx;padding-left: 20rpx;float: left;margin-top: 0;margin-left: 30rpx;">
|
|
<view style="float: left;">
|
|
<view style="float: left;">
|
|
- <text @click="whole">全部</text>
|
|
|
|
|
|
+ <text @tap="$u.throttle(whole, 500)">全部</text>
|
|
<view v-if="bottoma == true" style="width: 100%;height: 1rpx;background-color: #FFFFFF;border-radius: 10rpx;"></view>
|
|
<view v-if="bottoma == true" style="width: 100%;height: 1rpx;background-color: #FFFFFF;border-radius: 10rpx;"></view>
|
|
<view v-else></view>
|
|
<view v-else></view>
|
|
</view>
|
|
</view>
|
|
@@ -139,7 +139,7 @@
|
|
this.whole()
|
|
this.whole()
|
|
},
|
|
},
|
|
onBackPress(options) {
|
|
onBackPress(options) {
|
|
- console.log(options)
|
|
|
|
|
|
+ // console.log(options)
|
|
if (options.from == 'backbutton') {
|
|
if (options.from == 'backbutton') {
|
|
this.$u.route({
|
|
this.$u.route({
|
|
type: 'switchTab',
|
|
type: 'switchTab',
|
|
@@ -150,12 +150,12 @@
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
content_s() {
|
|
content_s() {
|
|
- console.log(this.keyword)
|
|
|
|
|
|
+ // console.log(this.keyword)
|
|
},
|
|
},
|
|
inputbox(e) {
|
|
inputbox(e) {
|
|
this.page = 1
|
|
this.page = 1
|
|
- console.log(e)
|
|
|
|
- console.log(this.length)
|
|
|
|
|
|
+ // console.log(e)
|
|
|
|
+ // console.log(this.length)
|
|
this.itemList = []
|
|
this.itemList = []
|
|
this.brandCode = null
|
|
this.brandCode = null
|
|
this.beginDate = null
|
|
this.beginDate = null
|
|
@@ -165,7 +165,7 @@
|
|
this.status = 'nomore';
|
|
this.status = 'nomore';
|
|
this.getPage()
|
|
this.getPage()
|
|
} else {
|
|
} else {
|
|
- console.log("什么情况")
|
|
|
|
|
|
+ // console.log("什么情况")
|
|
this.getPage()
|
|
this.getPage()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -177,19 +177,19 @@
|
|
this.itemList = []
|
|
this.itemList = []
|
|
this.beginDate = e.startDate + " 00:00:00"
|
|
this.beginDate = e.startDate + " 00:00:00"
|
|
this.endDate = e.endDate + " 23:59:59"
|
|
this.endDate = e.endDate + " 23:59:59"
|
|
- console.log(e)
|
|
|
|
- console.log("触发了")
|
|
|
|
- console.log(this.show_d)
|
|
|
|
|
|
+ // console.log(e)
|
|
|
|
+ // console.log("触发了")
|
|
|
|
+ // console.log(this.show_d)
|
|
this.current = 0
|
|
this.current = 0
|
|
this.getPage()
|
|
this.getPage()
|
|
},
|
|
},
|
|
click(index) {
|
|
click(index) {
|
|
this.page = 1
|
|
this.page = 1
|
|
- console.log(`点击了第${index + 1}项,内容为:${this.list_a[index].brandCode}`)
|
|
|
|
|
|
+ // console.log(`点击了第${index + 1}项,内容为:${this.list_a[index].brandCode}`)
|
|
this.brandCode = this.list_a[index].brandCode
|
|
this.brandCode = this.list_a[index].brandCode
|
|
this.itemList = []
|
|
this.itemList = []
|
|
this.judge = true
|
|
this.judge = true
|
|
- console.log(this.judge)
|
|
|
|
|
|
+ // console.log(this.judge)
|
|
this.getPage()
|
|
this.getPage()
|
|
},
|
|
},
|
|
whole() {
|
|
whole() {
|
|
@@ -203,7 +203,7 @@
|
|
this.endDate = null
|
|
this.endDate = null
|
|
this.content = null
|
|
this.content = null
|
|
this.page = 1
|
|
this.page = 1
|
|
- console.log(this.brandCode)
|
|
|
|
|
|
+ // console.log(this.brandCode)
|
|
this.getPage()
|
|
this.getPage()
|
|
},
|
|
},
|
|
brand() {
|
|
brand() {
|
|
@@ -224,10 +224,10 @@
|
|
userId: this.$store.state.storeInfo.userId
|
|
userId: this.$store.state.storeInfo.userId
|
|
}
|
|
}
|
|
}).then(res => {
|
|
}).then(res => {
|
|
- console.log(res)
|
|
|
|
- console.log(res.data.data)
|
|
|
|
|
|
+ // console.log(res)
|
|
|
|
+ // console.log(res.data.data)
|
|
for (let i = 0; i < res.data.data.length; i++) {
|
|
for (let i = 0; i < res.data.data.length; i++) {
|
|
- console.log(res.data.data[i].brandCode)
|
|
|
|
|
|
+ // console.log(res.data.data[i].brandCode)
|
|
this.list_a.push({
|
|
this.list_a.push({
|
|
brandCode: res.data.data[i].brandCode,
|
|
brandCode: res.data.data[i].brandCode,
|
|
text: res.data.data[i].brandName,
|
|
text: res.data.data[i].brandName,
|
|
@@ -236,7 +236,11 @@
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
- console.log(err)
|
|
|
|
|
|
+ uni.showToast({
|
|
|
|
+ icon: 'none',
|
|
|
|
+ title: '网络繁忙,请稍后再试~',
|
|
|
|
+ position: "bottom"
|
|
|
|
+ })
|
|
}).finally(() => {
|
|
}).finally(() => {
|
|
// Loading.close()
|
|
// Loading.close()
|
|
})
|
|
})
|
|
@@ -296,15 +300,14 @@
|
|
// console.log(this.current)
|
|
// console.log(this.current)
|
|
// },
|
|
// },
|
|
getPage() {
|
|
getPage() {
|
|
- console.log(this.page)
|
|
|
|
- console.log(this.brandCode)
|
|
|
|
- console.log(this.beginDate)
|
|
|
|
- console.log(this.endDate)
|
|
|
|
- console.log(this.content)
|
|
|
|
|
|
+ // console.log(this.page)
|
|
|
|
+ // console.log(this.brandCode)
|
|
|
|
+ // console.log(this.beginDate)
|
|
|
|
+ // console.log(this.endDate)
|
|
|
|
+ // console.log(this.content)
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
title: '加载中...'
|
|
title: '加载中...'
|
|
});
|
|
});
|
|
- console.log("加载中")
|
|
|
|
setTimeout(function() {
|
|
setTimeout(function() {
|
|
uni.hideLoading();
|
|
uni.hideLoading();
|
|
}, 1000);
|
|
}, 1000);
|
|
@@ -323,7 +326,7 @@
|
|
content: this.content //搜索内容
|
|
content: this.content //搜索内容
|
|
}
|
|
}
|
|
}).then(res => {
|
|
}).then(res => {
|
|
- console.log(res)
|
|
|
|
|
|
+ // console.log(res)
|
|
if(res.data.code == 500){
|
|
if(res.data.code == 500){
|
|
uni.showToast({
|
|
uni.showToast({
|
|
icon: 'none',
|
|
icon: 'none',
|
|
@@ -341,11 +344,16 @@
|
|
} else {
|
|
} else {
|
|
this.judge = false
|
|
this.judge = false
|
|
}
|
|
}
|
|
- console.log(this.itemList)
|
|
|
|
|
|
+ // console.log(this.itemList)
|
|
return this.itemList
|
|
return this.itemList
|
|
}
|
|
}
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
- console.log(err)
|
|
|
|
|
|
+ // console.log(err)
|
|
|
|
+ uni.showToast({
|
|
|
|
+ icon: 'none',
|
|
|
|
+ title: '网络繁忙,请稍后再试~',
|
|
|
|
+ position: "bottom"
|
|
|
|
+ })
|
|
}).finally(() => {
|
|
}).finally(() => {
|
|
// Loading.close()
|
|
// Loading.close()
|
|
})
|
|
})
|