提交 f0c33b96 authored 作者: 劳广强's avatar 劳广强

fix: 修复 第一次选择上报类型弹出举报说明弹窗

上级 67739955
...@@ -52,12 +52,12 @@ export default { ...@@ -52,12 +52,12 @@ export default {
this.query = query; this.query = query;
this.fetchPhotoTaskTypeData(); this.fetchPhotoTaskTypeData();
this.fetchPhotoTaskTypeDetail(); this.fetchPhotoTaskTypeDetail();
},
onShow(options) {
this.isFirstRecordType = this.getIsFirstRecordType(); this.isFirstRecordType = this.getIsFirstRecordType();
}, },
onShow(options) {},
methods: { methods: {
async fetchPhotoTaskTypeData() { async fetchPhotoTaskTypeData() {
const { list } = await uni.$u.http.get('/api/app/phototasktype/list', { params: { parent_id: this.query.id } }); const { list } = await uni.$u.http.get('/api/app/phototasktype/list', { params: { parent_id: this.query.id } });
...@@ -77,6 +77,7 @@ export default { ...@@ -77,6 +77,7 @@ export default {
async onReportConfirm() { async onReportConfirm() {
if (!this.isFirstRecordType) { if (!this.isFirstRecordType) {
this.showReport = false; this.showReport = false;
this.isFirstRecordType = this.getIsFirstRecordType();
uni.$u.route({ uni.$u.route({
url: 'pages/record-content/index', url: 'pages/record-content/index',
params: { params: {
......
...@@ -68,12 +68,12 @@ export default { ...@@ -68,12 +68,12 @@ export default {
onLoad(query) { onLoad(query) {
this.fetchPhotoTaskTypeData(); this.fetchPhotoTaskTypeData();
// this.fetchPhotoTaskTypeDetail(); // this.fetchPhotoTaskTypeDetail();
},
onShow(options) {
this.isFirstRecord = this.getIsFirstRecord(); this.isFirstRecord = this.getIsFirstRecord();
}, },
onShow(options) {},
methods: { methods: {
async fetchPhotoTaskTypeData() { async fetchPhotoTaskTypeData() {
const { list } = await uni.$u.http.get('/api/app/phototasktype/list', { params: { parent_id: 0 } }); const { list } = await uni.$u.http.get('/api/app/phototasktype/list', { params: { parent_id: 0 } });
...@@ -93,6 +93,7 @@ export default { ...@@ -93,6 +93,7 @@ export default {
async onReportConfirm() { async onReportConfirm() {
if (!this.isFirstRecord) { if (!this.isFirstRecord) {
this.showReport = false; this.showReport = false;
this.isFirstRecord = this.getIsFirstRecord();
uni.$u.route({ url: 'pages/record-type/index', params: { id: this.isFirstRecordId } }); uni.$u.route({ url: 'pages/record-type/index', params: { id: this.isFirstRecordId } });
} }
this.showReport = false; this.showReport = false;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论