Lou
2024-01-16 db8e416fec0ab844026eb7bc91d9f59a457f4e6e
subPackage/label/form.vue
@@ -141,14 +141,15 @@
            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) {
@@ -182,8 +183,9 @@
            }).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]
@@ -200,7 +202,7 @@
                  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);
@@ -210,7 +212,7 @@
         },
         setTitle(type) {
            if (type == 4) {
            if (type == 2) {
               return "二手手机维修"
            } else if (type == 3) {
               return "二手车交易"
@@ -302,7 +304,11 @@
                  title: '保存成功'
               })
               setTimeout(() => {
                  this.reLoadPrePage()
                  if (this.status == 4) {
                     this.reLoadPrePage()
                  } else {
                     uni.navigateBack();
                  }
               }, 300)
            })
         },