需求发布接口顺序调整
This commit is contained in:
@@ -143,9 +143,7 @@
|
||||
positionPickerColumn: [
|
||||
[]
|
||||
],
|
||||
categoryPickerList: [
|
||||
['类别1', '类别', '类别']
|
||||
],
|
||||
categoryPickerList: [],
|
||||
fileList1: [
|
||||
// uploads/images/20230117/202301172309397deda1543.jpg
|
||||
],
|
||||
@@ -155,16 +153,8 @@
|
||||
token: null
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
//我的发布点击修改回显数据
|
||||
let publishFormList = JSON.parse(options.item)
|
||||
this.fileList1 = publishFormList.images
|
||||
this.needsPublishForm = publishFormList
|
||||
if (options.index == 0) {
|
||||
this.tabCurrent = 0
|
||||
} else if (options.index == 1) {
|
||||
this.tabCurrent = 1
|
||||
}
|
||||
onTabItemTap() {
|
||||
console.log('----onTabItemTap')
|
||||
if (!uni.getStorageSync('token') || uni.getStorageSync('token').length === 0) {
|
||||
console.log(uni.getStorageSync('token'))
|
||||
this.isLoad = false
|
||||
@@ -176,6 +166,20 @@
|
||||
this.isLoad = true
|
||||
this.token = uni.getStorageSync('token')
|
||||
this.getFormData()
|
||||
this.fileList1 = []
|
||||
this.needsPublishForm = {}
|
||||
},
|
||||
onLoad(options) {
|
||||
console.log('---onLoad')
|
||||
//我的发布点击修改回显数据
|
||||
let publishFormList = JSON.parse(options.item)
|
||||
this.fileList1 = publishFormList.images
|
||||
this.needsPublishForm = publishFormList
|
||||
if (options.index == 0) {
|
||||
this.tabCurrent = 0
|
||||
} else if (options.index == 1) {
|
||||
this.tabCurrent = 1
|
||||
}
|
||||
// this.getProductPickerList()
|
||||
},
|
||||
methods: {
|
||||
@@ -403,6 +407,7 @@
|
||||
}
|
||||
this.token = uni.getStorageSync('token')
|
||||
this.isLoad = true
|
||||
this.getFormData()
|
||||
},
|
||||
failToLoad() {
|
||||
console.log('----------------false')
|
||||
|
||||
Reference in New Issue
Block a user