From 3c4d229d239b923748b6ea7764d480b8e280cd69 Mon Sep 17 00:00:00 2001 From: fanpeng <438123081@qq.com> Date: Mon, 9 Jun 2025 18:08:15 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=85=BC=E5=AE=B9=E5=AE=A2=E6=9C=8D?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.cjs | 3 ++- api/system.js | 9 +++++++++ manifest.json | 2 +- pages/main/mine.vue | 22 ++++++++++++++++++++++ 4 files changed, 34 insertions(+), 2 deletions(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index e29e48e..457d7c5 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -10,7 +10,8 @@ module.exports = { getApp: 'writable', wx: 'writable', getCurrentPages: 'writable', - requirePlugin: 'writable' + requirePlugin: 'writable', + plus: 'writable' }, // 指定如何解析语法 parser: 'vue-eslint-parser', diff --git a/api/system.js b/api/system.js index c350145..a634343 100644 --- a/api/system.js +++ b/api/system.js @@ -10,3 +10,12 @@ export function getCountryListRequest(data) { data }) } + +// 获取app信息 +export function getAppInfoRequest(data) { + return request({ + url: '/app/getAppInfo', + method: 'POST', + data + }) +} diff --git a/manifest.json b/manifest.json index a906b3e..c6b79b4 100644 --- a/manifest.json +++ b/manifest.json @@ -1,5 +1,5 @@ { - "name": "wx-starlock", + "name": "星星锁Lite", "appid": "__UNI__933D519", "description": "", "versionName": "1.3.0", diff --git a/pages/main/mine.vue b/pages/main/mine.vue index f7626e6..42e9c8e 100644 --- a/pages/main/mine.vue +++ b/pages/main/mine.vue @@ -11,6 +11,7 @@ > + + + + + + 客服 + + + + 公司介绍 @@ -118,6 +132,7 @@ import env from '@/config/env' import { setStorage, getStorage, removeStorage } from '@/utils/storage' import { useNotificationStore } from '@/stores/notification' + import { getAppInfoRequest } from '@/api/system' export default { data() { @@ -170,6 +185,13 @@ url: '/pages/main/home' }) }, + toContact() { + getAppInfoRequest().then(res => { + if (res.code === 0) { + plus.runtime.openURL(res.data.wechat_service_url) + } + }) + }, async changePhone(res) { if (res.detail.errMsg === 'getPhoneNumber:fail user deny') { return