py 2 yıl önce
ebeveyn
işleme
967e2bc110
3 değiştirilmiş dosya ile 37 ekleme ve 2 silme
  1. 19 0
      pages-my/my-ticket.vue
  2. 12 1
      pages.json
  3. 6 1
      pages/me/index.vue

+ 19 - 0
pages-my/my-ticket.vue

@@ -0,0 +1,19 @@
+<template>
+	<view class="">
+		
+	</view>
+</template>
+
+<script>
+  export default {
+    components: {},
+    data() {
+      return {};
+    },
+    mounted() {},
+    methods: {},
+  }
+</script>
+
+<style lang="scss" scoped>
+</style>

+ 12 - 1
pages.json

@@ -54,7 +54,7 @@
 		}
 	],
 	"subPackages": [
-		{	
+		{
 			"root": "pages-address",
 			"pages": [
 				{
@@ -64,6 +64,17 @@
 					}
 				}
 			]
+		},
+		{
+			"root": "pages-my",
+			"pages": [
+				{
+					"path": "my-ticket",
+					"style": {
+						"navigationBarTitleText": "我的卡券"
+					}
+				}
+			]
 		}
 	],
 	"preloadRule":{

+ 6 - 1
pages/me/index.vue

@@ -13,7 +13,7 @@
 		</view>
 		<view class="function-one-box box-border-box">
 			<view class="function-one b-rad-20 bgc-f box-border-box mb-24 align-items-center flex-justify-space">
-				<view class="my-function-box flex-direction align-items-center">
+				<view class="my-function-box flex-direction align-items-center" @click="goToUrl(0)">
 					<image class="my-img" src="@/static/img/my/wdkq.png" mode=""></image>
 					<view class="fs-26">
 						我的卡券
@@ -145,6 +145,11 @@
 			scrolltolower() {
 				console.log('触底');
 			},
+			goToUrl(type) {
+				uni.navigateTo({
+					url:'/pages-my/my-ticket'
+				})
+			}
 		},
 	}
 </script>