Commit eedded71 authored by xinzhedeai's avatar xinzhedeai

fix: 编辑失败处理、消费者建议列表分页问题处理

parent 6e07fbe0
...@@ -93,6 +93,13 @@ window.addEventListener('load', function () { ...@@ -93,6 +93,13 @@ window.addEventListener('load', function () {
} }
}, },
methods: { methods: {
reset(){
this.page = 0
this.size = 9999
this.total = 0
this.consumerSuggestList = []
},
showImage(list, index) { showImage(list, index) {
const images = list.map((item)=>{ const images = list.map((item)=>{
return this.previewUrl + item return this.previewUrl + item
...@@ -190,6 +197,7 @@ window.addEventListener('load', function () { ...@@ -190,6 +197,7 @@ window.addEventListener('load', function () {
}, },
clickTab() { clickTab() {
if (this.activeTab > 1) { if (this.activeTab > 1) {
this.reset()
this.getConsumerSuggestList() // 获取检查列表 this.getConsumerSuggestList() // 获取检查列表
} }
}, },
...@@ -483,9 +491,9 @@ window.addEventListener('load', function () { ...@@ -483,9 +491,9 @@ window.addEventListener('load', function () {
reqParam.storefrontPhotos = this.formData.storefrontPhotos.join(',') reqParam.storefrontPhotos = this.formData.storefrontPhotos.join(',')
http3.put('/gq/merchant', reqParam).then((res) => { http3.put('/gq/merchant', reqParam).then((res) => {
console.log('添加结果', res) console.log('保存结果', res)
vant.Toast({ vant.Toast({
message: '操作成功', message: res.code === 200 ? '操作成功': '操作失败',
}) })
// gemhoUtil.navigatePage(`${this.pageName}.html${window.location.search}`, '操作完成,跳转中...') // gemhoUtil.navigatePage(`${this.pageName}.html${window.location.search}`, '操作完成,跳转中...')
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment