Przeglądaj źródła

feat: 修改页面

Moss 1 rok temu
rodzic
commit
8621d0bf5a

+ 7 - 1
src/pages/mine/index.vue

@@ -62,7 +62,7 @@
 
         <view class="menu-container card">
           <block v-for="(item, index) in pageList" :key="index">
-            <view class="item" v-if="item.url != 'contact'" @tap="$navPage(item.url)">
+            <view class="item" v-if="item.url != 'contact'" @tap="navToPage(item.url)">
               <view class="name">{{item.name}}</view>
               <text class="iconfont icon-jinru"></text>
             </view>
@@ -132,6 +132,12 @@ export default {
     	this.refresherTriggered = true;
 
     },
+    
+    navToPage(url) {
+      this.$navToPage({
+        url
+      })
+    }
   }
 }
 </script>

+ 12 - 2
src/pages/mine/parse.vue

@@ -1,4 +1,5 @@
 <template>
+  <!-- #ifdef H5 -->
   <zj-page-layout
   	:bgColor="'#FFFFFF'"
   	:hasFooter="false"
@@ -7,10 +8,15 @@
   		<u-parse :content="content" :tagStyle="style"></u-parse>
   	</view>
   </zj-page-layout>
+  <!-- #endif -->
+  <!-- #ifndef H5 -->
+  <web-view :src="webViewHref('/pages/mine/parse')"></web-view>
+  <!-- #endif -->
 </template>
 
 <script>
 	export default {
+    // #ifdef H5
 		data() {
 			return {
 				type: 1,
@@ -35,7 +41,7 @@
           title: '用户协议'
         })
       }
-			
+
 			this.getDetail();
 		},
 		methods: {
@@ -46,7 +52,11 @@
 					this.content = res.data ? res.data.content : '';
 				})
 			},
-		}
+		},
+    // #endif
+    // #ifndef H5
+
+    // #endif
 	}
 </script>
 

BIN
src/static/tabBar/icon_home01.png


BIN
src/static/tabBar/icon_home02.png


BIN
src/static/tabBar/icon_issue01.png


BIN
src/static/tabBar/icon_issue02.png


BIN
src/static/tabBar/icon_message01.png


BIN
src/static/tabBar/icon_message02.png


BIN
src/static/tabBar/icon_mine01.png


BIN
src/static/tabBar/icon_mine02.png