Forráskód Böngészése

新增商城页面

tanxue 1 hónapja
szülő
commit
9b0b943670

+ 1 - 0
common/styles/global/pages.scss

@@ -829,6 +829,7 @@
 		.zhuxiao-icon{background-image: url("@/static/images/my/list-icon6.png");}
 		.duihuanma-icon{background-image: url("@/static/images/my/list-icon8.png");}
 		.yszc-icon{background-image: url("@/static/images/my/list-icon7.png");}
+		.cpsc-icon{background-image: url("@/static/images/my/list-icon9.png");}
 	}
 	@media (max-height: 736px) {
 		min-height: 1500rpx;

+ 7 - 0
pages.json

@@ -113,6 +113,13 @@
 			{
 				"navigationStyle": "custom"
 			}
+		},
+		{
+			"path" : "pages/mall/mallPage",
+			"style" : 
+			{
+				"navigationStyle": "custom"
+			}
 		}
 	],
 	 "tabBar": {

+ 20 - 0
pages/mall/mallPage.vue

@@ -0,0 +1,20 @@
+<template>
+	<view class="ezy-order-page">
+		<view class="icon-title-navBar-box">
+			<view @click="goBack" class="nav-bar-icon"></view>
+			<text class="nav-bar-title">商城</text>
+		</view>
+	</view>
+</template>
+
+<script setup>
+	function goBack() {
+		uni.redirectTo({
+			url: '/pages/my/index'
+		})
+	}
+</script>
+
+<style>
+
+</style>

+ 11 - 0
pages/my/index.vue

@@ -35,6 +35,10 @@
 				<icon class="list-icon about-icon"></icon>
 				<text>关于我们</text>
 			</view>
+			<view class="list-row no-jt" @click="cpscClick">
+				<icon class="list-icon cpsc-icon"></icon>
+				<text>产品商城</text>
+			</view>
 			<view v-if="appleCode&&currentPlatform=='ios'" class="list-row no-jt" @click="duihuamaDuihuan">
 				<icon class="list-icon duihuanma-icon"></icon>
 				<text>兑换码</text>
@@ -252,6 +256,13 @@
 			});
 		}
 	}
+	
+	// 产品商城
+	function cpscClick(){
+		uni.redirectTo({
+			url: '/pages/mall/mallPage'
+		});
+	}
 
 	// 订单
 	function orderClick() {

BIN
static/images/my/list-icon9.png