From 24f980c35b9dd9b27b6be201a5c1602ce88d7199 Mon Sep 17 00:00:00 2001 From: hackrobot Date: Tue, 19 Mar 2024 20:25:27 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=BB=BAutils=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=A4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app.config.js | 9 +++++++ src/pages/my/index.jsx | 52 ++++++++++++++++++++++++----------------- src/pages/my/index.scss | 22 +++++++++++++++++ src/utils/index.js | 0 4 files changed, 61 insertions(+), 22 deletions(-) create mode 100644 src/utils/index.js diff --git a/src/app.config.js b/src/app.config.js index b3c6609..485ffe6 100644 --- a/src/app.config.js +++ b/src/app.config.js @@ -4,10 +4,19 @@ export default defineAppConfig({ 'pages/my/index', ], + permission: { + "scope.userLocation": { + desc: "你的位置信息将用于小程序位置接口的效果展示", // 高速公路行驶持续后台定位 + }, + }, + requiredPrivateInfos: ["getLocation", "chooseLocation",'chooseAddress'], window: { backgroundTextStyle: 'light', navigationBarBackgroundColor: '#fff', navigationBarTitleText: 'WeChat', navigationBarTextStyle: 'black' + }, + // 设置后,空对象代表可以使用小程序原生组件 + usingComponents: { } }) diff --git a/src/pages/my/index.jsx b/src/pages/my/index.jsx index 5c277c6..e1e8b26 100644 --- a/src/pages/my/index.jsx +++ b/src/pages/my/index.jsx @@ -1,4 +1,4 @@ -import { View, Text, Image } from "@tarojs/components"; +import { View, Text, Image, Button, Icon } from "@tarojs/components"; import { useLoad } from "@tarojs/taro"; import Taro from "@tarojs/taro"; import { @@ -36,30 +36,38 @@ const my = () => { - - {/* 列表 */} - - - + + + + + + + + {/* 个人客服 */} + {/* + + */} - + {/* 底部tabbar */}