Browse Source

feat: policy tab params

jiangzixin 9 months ago
parent
commit
d5919dd17d
1 changed files with 4 additions and 1 deletions
  1. 4 1
      uniapp/pages/policy/index.vue

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

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