Переглянути джерело

feat: 增加会员详情页

Basil 3 роки тому
батько
коміт
4dabdca9d7
4 змінених файлів з 10 додано та 3 видалено
  1. 1 1
      src/pages.json
  2. 1 1
      src/pages/home/index.vue
  3. 1 1
      src/pages/my-rules/index.vue
  4. 7 0
      src/pages/user/index.vue

Різницю між файлами не показано, бо вона завелика
+ 1 - 1
src/pages.json


+ 1 - 1
src/pages/home/index.vue

@@ -162,7 +162,7 @@ page {
162
   background-color: #f8f8f8;
162
   background-color: #f8f8f8;
163
 }
163
 }
164
 </style>
164
 </style>
165
-<route lang="yaml">
165
+<route lang="yaml" type="home">
166
 style:
166
 style:
167
   navigationStyle: custom
167
   navigationStyle: custom
168
   navigationBarTitleText: 储蓄保
168
   navigationBarTitleText: 储蓄保

+ 1 - 1
src/pages/my-rules/index.vue

@@ -236,7 +236,7 @@ function handleToVipPage() {
236
 
236
 
237
 </template>
237
 </template>
238
 
238
 
239
-<route lang="yaml" type="home">
239
+<route lang="yaml">
240
 style:
240
 style:
241
   navigationBarTitleText: 储蓄保
241
   navigationBarTitleText: 储蓄保
242
   enablePullDownRefresh: true
242
   enablePullDownRefresh: true

+ 7 - 0
src/pages/user/index.vue

@@ -231,6 +231,12 @@ function handleShowMyProfile() {
231
     url: '/pages/my-profile/index'
231
     url: '/pages/my-profile/index'
232
   })
232
   })
233
 }
233
 }
234
+
235
+function handleShowMyRulePage() {
236
+  uni.navigateTo({
237
+    url: '/pages/my-rules/index'
238
+  })
239
+}
234
 </script>
240
 </script>
235
 <template>
241
 <template>
236
   <div v-if="state.isLogin">
242
   <div v-if="state.isLogin">
@@ -262,6 +268,7 @@ function handleShowMyProfile() {
262
               </div>
268
               </div>
263
             </div>
269
             </div>
264
             <div
270
             <div
271
+                @click="handleShowMyRulePage"
265
                 class="flex rounded-full border border-solid border-1px border-yellow text-[12px] text-white w-12 h-5 justify-center items-center">
272
                 class="flex rounded-full border border-solid border-1px border-yellow text-[12px] text-white w-12 h-5 justify-center items-center">
266
               {{ userType || '用户' }}
273
               {{ userType || '用户' }}
267
             </div>
274
             </div>