浏览记录移除, 我的发布列表,修改回显及删除

This commit is contained in:
clay
2023-01-18 17:02:16 +08:00
parent 4b10b9486d
commit 7d0b6274f1
6 changed files with 152 additions and 84 deletions

View File

@@ -44,8 +44,8 @@
<text v-else style="color:#CCCCCC;">请选择产品类型</text>
<u-icon name="arrow-right" color="#969696" size="14"></u-icon>
</view>
<u-picker :show="showProductPicker" :columns="productPickerColumn" @cancel="showProductPicker = false"
@confirm="getProductValue"></u-picker>
<u-picker :show="showProductPicker" :columns="productPickerColumn"
@cancel="showProductPicker = false" @confirm="getProductValue"></u-picker>
</u-form-item>
<u-form-item label="定位" borderBottom>
<view class="select-view" @tap="selectProductPosition">
@@ -149,14 +149,17 @@
fileList1: [],
isLoad: true,
cateName: null,
tagName: null
tagName: null,
}
},
onLoad(options) {
console.log(options)
if (options.index == 1) {
//我的发布点击修改回显数据
let publishFormList = JSON.parse(options.item)
this.fileList1 = publishFormList.images
this.needsPublishForm = publishFormList
if (options.index == 0) {
this.tabCurrent = 0
} else if (options.index == 2) {
} else if (options.index == 1) {
this.tabCurrent = 1
}
if (!uni.getStorageSync('token') || uni.getStorageSync('token').length === 0) {
@@ -194,7 +197,7 @@
}).finally(_ => {})
},
getPositionPickerList() {
if(this.needsPublishForm.cate_id) {
if (this.needsPublishForm.cate_id) {
const data = {
pid: this.needsPublishForm.cate_id
}