Bläddra i källkod

修改底部菜单

zs 1 år sedan
förälder
incheckning
203e04061e

+ 7 - 7
pages.json

@@ -8,7 +8,7 @@
 		{
 			"path": "pages/home/index",
 			"style": {
-				"navigationBarTitleText": "首页",
+				"navigationBarTitleText": "神鹿峰旅游度假区",
 				"enablePullDownRefresh": true
 			}
 		},
@@ -34,8 +34,8 @@
 	"globalStyle": {
 		"pageOrientation": "portrait",
 		"navigationBarTitleText": "神鹿峰小程序",
-		"navigationBarTextStyle": "white",
-		"navigationBarBackgroundColor": "#007AFF",
+		"navigationBarTextStyle": "black",
+		"navigationBarBackgroundColor": "#F8F8F8",
 		"backgroundColor": "#F8F8F8",
 		"backgroundColorTop": "#F4F5F6",
 		"backgroundColorBottom": "#F4F5F6"
@@ -53,14 +53,14 @@
 			},
 			{
 				"pagePath": "pages/map/index",
-				"iconPath": "static/good.png",
-				"selectedIconPath": "static/goodHL.png",
+				"iconPath": "static/map.png",
+				"selectedIconPath": "static/mapHL.png",
 				"text": "地图"
 			},
 			{
 				"pagePath": "pages/customer/index",
-				"iconPath": "static/shop.png",
-				"selectedIconPath": "static/shopHL.png",
+				"iconPath": "static/kf.png",
+				"selectedIconPath": "static/kfHL.png",
 				"text": "客服"
 			},
 			{

+ 56 - 20
pages/index/index.vue

@@ -1,20 +1,56 @@
-<template>
-	<view class="main">
-		系统首页
-	</view>
-</template>
-
-<script>
-	export default {
-		data() {
-			return {}
-		},
-		methods: {
-
-		}
-	}
-</script>
-
-<style>
-	.main {}
-</style>
+<template>
+	<view class="main">
+		<view class="one">
+			<image class="logo" :src="logoUrl"></image>
+		</view>
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				logoUrl: ""
+			};
+		},
+		onLoad: async function() {
+			const that = this;
+			await that.searchConfig();
+		},
+		methods: {
+			// 查询基本设置
+			async searchConfig() {
+				const that = this;
+				let res = await that.$api(`/config`, 'GET', {});
+				if (res.errcode == '0') {
+					that.$set(that, `logoUrl`, res.data.file[0].url || '../../static/login.jpg');
+					let url = `/pages/home/index`;
+					uni.reLaunch({
+						url
+					})
+				}
+			}
+		},
+	}
+</script>
+
+<style lang="scss">
+	.main {
+		display: flex;
+		flex-direction: column;
+		width: 100vw;
+		height: 100vh;
+
+		.one {
+			text-align: center;
+			margin: 40vw 0 0 0;
+
+			.logo {
+				width: 50vw;
+				height: 50vw;
+				border-radius: 90px;
+				box-shadow: 0 0 5px var(--f1Color);
+			}
+		}
+	}
+</style>

BIN
static/good.png


BIN
static/goodHL.png


BIN
static/home.png


BIN
static/homeHL.png


BIN
static/kf.png


BIN
static/kfHL.png


BIN
static/login.jpeg


BIN
static/login.jpg


BIN
static/map.png


BIN
static/mapHL.png


BIN
static/my.png


BIN
static/myHL.png


BIN
static/shop.png


BIN
static/shopHL.png


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/index.js.map


+ 6 - 6
unpackage/dist/dev/mp-weixin/app.json

@@ -10,8 +10,8 @@
   "window": {
     "pageOrientation": "portrait",
     "navigationBarTitleText": "神鹿峰小程序",
-    "navigationBarTextStyle": "white",
-    "navigationBarBackgroundColor": "#007AFF",
+    "navigationBarTextStyle": "black",
+    "navigationBarBackgroundColor": "#F8F8F8",
     "backgroundColor": "#F8F8F8",
     "backgroundColorTop": "#F4F5F6",
     "backgroundColorBottom": "#F4F5F6"
@@ -30,14 +30,14 @@
       },
       {
         "pagePath": "pages/map/index",
-        "iconPath": "static/good.png",
-        "selectedIconPath": "static/goodHL.png",
+        "iconPath": "static/map.png",
+        "selectedIconPath": "static/mapHL.png",
         "text": "地图"
       },
       {
         "pagePath": "pages/customer/index",
-        "iconPath": "static/shop.png",
-        "selectedIconPath": "static/shopHL.png",
+        "iconPath": "static/kf.png",
+        "selectedIconPath": "static/kfHL.png",
         "text": "客服"
       },
       {

+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/home/index.json

@@ -1,5 +1,5 @@
 {
-  "navigationBarTitleText": "首页",
+  "navigationBarTitleText": "神鹿峰旅游度假区",
   "enablePullDownRefresh": true,
   "usingComponents": {}
 }

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 74 - 14
unpackage/dist/dev/mp-weixin/pages/index/index.js


+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/index/index.wxml

@@ -1 +1 @@
-<view class="main">系统首页</view>
+<view class="main"><view class="one"><image class="logo" src="{{logoUrl}}"></image></view></view>

+ 19 - 2
unpackage/dist/dev/mp-weixin/pages/index/index.wxss

@@ -1,3 +1,20 @@
-
-.main {}
+@charset "UTF-8";
+/* 水平间距 */
+/* 水平间距 */
+.main {
+  display: flex;
+  flex-direction: column;
+  width: 100vw;
+  height: 100vh;
+}
+.main .one {
+  text-align: center;
+  margin: 40vw 0 0 0;
+}
+.main .one .logo {
+  width: 50vw;
+  height: 50vw;
+  border-radius: 90px;
+  box-shadow: 0 0 5px var(--f1Color);
+}
 

BIN
unpackage/dist/dev/mp-weixin/static/home.png


BIN
unpackage/dist/dev/mp-weixin/static/homeHL.png


BIN
unpackage/dist/dev/mp-weixin/static/kf.png


BIN
unpackage/dist/dev/mp-weixin/static/kfHL.png


BIN
unpackage/dist/dev/mp-weixin/static/login.jpg


BIN
unpackage/dist/dev/mp-weixin/static/map.png


BIN
unpackage/dist/dev/mp-weixin/static/mapHL.png


BIN
unpackage/dist/dev/mp-weixin/static/my.png


BIN
unpackage/dist/dev/mp-weixin/static/myHL.png