#
whycq
2022-10-08 4904131ce6f08847169bf7530cc0c7d22cbe6366
pages/basics/matSelect.vue
@@ -119,7 +119,7 @@
                  'token':uni.getStorageSync('token'),
               },
               success(result) {
                  console.log(result)
                  uni.hideLoading();
                  that.tag = null
                  that.data = null
                  var res = result.data
@@ -139,12 +139,12 @@
                  } else {
                     uni.showToast({title: res.msg, icon: "none",position: 'top'})
                  }
                  uni.hideLoading();
               }
            });
         },
         showMat(tagId) {
            uni.vibrateShort();
            uni.showLoading();
            let that = this
            if (tagId == null || tagId == '' || tagId == undefined) {
               return;
@@ -159,14 +159,13 @@
                  'token':uni.getStorageSync('token'),
                },
               success(result) {
                  console.log(result)
                  uni.hideLoading();
                  that.tag = null
                  var res = result.data
                  if (res.code === 200) {
                     if (res.data != null && res.data.length > 0) {
                        uni.showLoading();
                        that.data = res.data
                        uni.hideLoading();
                     } else {
                        // that.tagId = parentId
                     }
@@ -180,7 +179,7 @@
                  } else {
                     uni.showToast({title: res.msg, icon: "none",position: 'top'})
                  }
               }
            });
         },