Jelajahi Sumber

feat: policy tab params

jiangzixin 9 bulan lalu
induk
melakukan
d5919dd17d
1 mengubah file dengan 4 tambahan dan 1 penghapusan
  1. 4 1
      uniapp/pages/policy/index.vue

+ 4 - 1
uniapp/pages/policy/index.vue

@@ -432,7 +432,7 @@
                 top: 172
             }
         },
-        onLoad() {
+        onLoad(options) {
             this.propertyMode = this.propertyModeList[0]
             this.isStandard = this.isStandardList[0]
             this.info.propertyMode = this.propertyMode.value
@@ -443,6 +443,9 @@
             this.setTabarList({
                 type: 'policy'
             })
+            if (options.tab) {
+                this.currentTab = options.tab
+            }
         },
         onShow() {
             // this.getHomeFun();