Explorar o código

Merge remote-tracking branch 'origin/master'

# Conflicts:
#	pages.json
littleblue55 hai 20 horas
pai
achega
8fa5f312aa

+ 16 - 0
api/contactUs.js

@@ -0,0 +1,16 @@
+import request from '@/utils/request'
+
+/**
+ * 收藏列表
+ * @param {Object} data 参数
+ */
+export function query(data) {
+	return request({
+		'url': '/contactUs',
+		headers: {
+			isToken: false
+		},
+		'method': 'get',
+		'data': data
+	})
+}

+ 12 - 2
pages.json

@@ -452,11 +452,21 @@
 			}
 		},
 		{
+			"path" : "pages/contactUs/contactUs",
+			"style": {
+				"navigationBarTitleText": "联系我们",
+				"enablePullDownRefresh": false,
+				"app-plus": {
+					"titleNView": true
+				}
+			}
+		},
+		{
 			"path" : "pages/webview/webview",
-			"style" : 
+			"style" :
 			{
 				"navigationStyle" : "custom",
-				"app-plus" : 
+				"app-plus" :
 				{
 					"bounce" : "none"
 				}

+ 78 - 0
pages/contactUs/contactUs.vue

@@ -0,0 +1,78 @@
+<template>
+	<view class="container">
+		<view class="content">
+			<u-parse :html="data.content" :selectable="true" :show-with-animation="true" style="width: 100%;"></u-parse>
+		</view>
+	</view>
+</template>
+
+<script setup>
+	import { ref } from 'vue'
+	import { onLoad } from '@dcloudio/uni-app'
+	import { query } from '@/api/contactUs.js'
+	
+	const data = ref({
+		content: ''
+	})
+	
+	onLoad(() => {
+		query().then(res => {
+			if (res && res.message === 'success') {
+				data.value = res.data
+			}
+		})
+	})
+</script>
+
+<style lang="scss" scoped>
+.container {
+	padding: 20px;
+	background-color: #ffffff;
+	display: flex;
+	flex-direction: column;
+	justify-content: space-between;
+	/* height: 100vh; */
+	/* 让页面高度撑满 */
+	
+	margin-bottom: env(safe-area-inset-bottom, 0);
+	
+	.title {
+		font-size: 24px;
+		font-weight: bold;
+		color: #333;
+		text-align: center;
+		/* 标题居中 */
+		margin-bottom: 15px;
+	}
+	
+	.content {
+		flex: 1;
+		/* 占据剩余空间 */
+		display: flex;
+		flex-direction: column;
+		align-items: flex-start;
+		/* 内容左对齐 */
+	}
+	
+	.body {
+		font-size: 16px;
+		color: #555;
+		text-align: left;
+		/* 内容左对齐 */
+	}
+	
+	.body img {
+		width: 50%;
+		height: auto;
+	}
+	
+	.date {
+		font-size: 14px;
+		color: #999;
+		text-align: right;
+		/* 时间右对齐 */
+		margin-top: 10px;
+		/* 与内容分离 */
+	}
+}
+</style>

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 1
pages/jixujiaoyunianjian/jixujiaoyunianjian.vue


+ 4 - 2
pages/personalCenter/personalCenter.vue

@@ -116,7 +116,7 @@
 					<view class="iconfont icon-chevron-right"></view>
 				</view>
 			</view>
-			<view class="menu-item-box" @click="onChangJianWenTi()">
+			<view class="menu-item-box" @click="onChangJianWenTi()" v-if="false">
 				<view class="icon-box">
 					<view class="iconfont icon-anquan"></view>
 				</view>
@@ -380,7 +380,9 @@
 	}
 	// 点击-联系我们
 	function onLianXiWoMen() {
-		console.log('点击-联系我们');
+		uni.navigateTo({
+			url: '/pages/contactUs/contactUs'
+		})
 	}
 	// 点击-退出登录
 	function onLogout() {

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio