| | |
| | | goodsImageUrls: [], |
| | | eventType: 1, |
| | | isEdit: false, |
| | | id: "" |
| | | id: "", |
| | | status: "" |
| | | } |
| | | }, |
| | | onLoad(option) { |
| | | console.log(option); |
| | | if (option.id) { |
| | | this.isEdit = true; |
| | | this.id = opton.id; |
| | | this.id = option.id; |
| | | this.getDetail(option.id); |
| | | } else { |
| | | if (option.type != 1) { |
| | |
| | | }).then(res => { |
| | | if (res.code == 200) { |
| | | let data = res.data; |
| | | this.status = data.confirmFlag; |
| | | uni.setNavigationBarTitle({ |
| | | title: data.name |
| | | title: data.labelName |
| | | }) |
| | | for (let i in this.info) { |
| | | this.info[i] = data[i] |
| | |
| | | |
| | | if (data.eventType == 1) { |
| | | this.$set(this.info, "reportType", 3); |
| | | } else if (option.type == 2) { |
| | | } else if (data.eventType == 2) { |
| | | this.$set(this.info, "reportType", 4); |
| | | } else { |
| | | this.$set(this.info, "reportType", 5); |
| | |
| | | }, |
| | | |
| | | setTitle(type) { |
| | | if (type == 4) { |
| | | if (type == 2) { |
| | | return "二手手机维修" |
| | | } else if (type == 3) { |
| | | return "二手车交易" |
| | |
| | | title: '保存成功' |
| | | }) |
| | | setTimeout(() => { |
| | | this.reLoadPrePage() |
| | | if (this.status == 4) { |
| | | this.reLoadPrePage() |
| | | } else { |
| | | uni.navigateBack(); |
| | | } |
| | | }, 300) |
| | | }) |
| | | }, |