From cf792b854acb0e4c23afebf17d256c10bc2c740c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=96=84=E7=BE=8E?= <192406826@qq.com> Date: Thu, 28 Aug 2025 20:24:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=8C=E6=96=87=E6=9C=AC=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E8=AF=B7=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/other.ts | 10 ++++ src/pages.json | 2 +- src/pagesOther/pages/blank/rich-text.vue | 57 ++++++++++++++------- src/pagesShop/pages/settings/settings.vue | 2 - src/utils/constants.ts | 62 +++++++++++------------ 5 files changed, 82 insertions(+), 51 deletions(-) create mode 100644 src/api/other.ts diff --git a/src/api/other.ts b/src/api/other.ts new file mode 100644 index 0000000..3df0769 --- /dev/null +++ b/src/api/other.ts @@ -0,0 +1,10 @@ +import { request } from '@/utils/request' + +// 富文本案例介绍 +export const editorApi = (data : { key : string }) => { + return request({ + method: 'POST', + url: 'api/index/editor', + data, + }) +} diff --git a/src/pages.json b/src/pages.json index 13d30cd..4a315aa 100644 --- a/src/pages.json +++ b/src/pages.json @@ -101,7 +101,7 @@ "pages": [{ "path": "pages/blank/rich-text", "style": { - "navigationBarTitleText": "", + "navigationBarTitleText": "" // #ifdef WEB "navigationStyle": "custom" // #endif diff --git a/src/pagesOther/pages/blank/rich-text.vue b/src/pagesOther/pages/blank/rich-text.vue index ff0c276..08c2d5a 100644 --- a/src/pagesOther/pages/blank/rich-text.vue +++ b/src/pagesOther/pages/blank/rich-text.vue @@ -1,24 +1,47 @@ - - + + + diff --git a/src/pagesShop/pages/settings/settings.vue b/src/pagesShop/pages/settings/settings.vue index bf7c96f..0d3fa75 100644 --- a/src/pagesShop/pages/settings/settings.vue +++ b/src/pagesShop/pages/settings/settings.vue @@ -33,9 +33,7 @@ const onLogout = () => { // 跳转富文本 const toRichTextPage = (type: string) => { const agreements = settngStore.data.agreement - const content = encodeURIComponent(agreements[type as keyof typeof agreements]) - uni.navigateTo({ url: `${pageUrl['rich-text']}?content=${content}`, }) diff --git a/src/utils/constants.ts b/src/utils/constants.ts index d841f0f..4a8e23e 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -53,43 +53,43 @@ export const isIOSWithHomeIndicator = () => { */ export enum pageUrl { // pages - 'index' = '/pages/index/index', - 'my' = '/pages/my/my', - 'cart' = '/pages/cart/cart', - 'category' = '/pages/category/category', + 'index' = '/pages/home/index', + 'my' = '/pages/my/userCenter', + 'assistant' = 'pages/assistant/index', + 'todo' = 'pages/todo/index', // pagesGoods - 'goods-list' = '/pagesGoods/pages/list/list', - 'goods-detail' = '/pagesGoods/pages/goods/goods', - 'goods-evaluate' = '/pagesGoods/pages/evaluate/evaluate', - 'goods-search' = '/pagesGoods/pages/search/search', + 'goods-list' = '/pagesShop/pages/list/list', + 'goods-detail' = '/pagesShop/pages/goods/goods', + 'goods-evaluate' = '/pagesShop/pages/evaluate/evaluate', + 'goods-search' = '/pagesShop/pages/search/search', // pagesOrder - 'order-create' = '/pagesOrder/pages/create/create', - 'order-detail' = '/pagesOrder/pages/detail/detail', - 'order-pay' = '/pagesOrder/pages/payment/pay', - 'order-payment' = '/pagesOrder/pages/payment/payment', - 'order-list' = '/pagesOrder/pages/list/list', - 'order-receive' = '/pagesOrder/pages/receive/receive', - 'order-evaluate' = '/pagesOrder/pages/evaluate/evaluate', - 'order-refund' = '/pagesOrder/pages/refund/refund', - 'order-refund-list' = '/pagesOrder/pages/refund/list', - 'order-refund-detail' = '/pagesOrder/pages/refund/detail', - 'order-delivery' = '/pagesOrder/pages/delivery/delivery', - 'order-center' = '/pagesOrder/pages/center/center', - 'recharge-order-list' = '/pagesOrder/pages/recharge/list', + 'order-create' = '/pagesShop/pages/create/create', + 'order-detail' = '/pagesShop/pages/detail/detail', + 'order-pay' = '/pagesShop/pages/payment/pay', + 'order-payment' = '/pagesShop/pages/payment/payment', + 'order-list' = '/pagesShop/pages/list/list', + 'order-receive' = '/pagesShop/pages/receive/receive', + 'order-evaluate' = '/pagesShop/pages/evaluate/evaluate', + 'order-refund' = '/pagesShop/pages/refund/refund', + 'order-refund-list' = '/pagesShop/pages/refund/list', + 'order-refund-detail' = '/pagesShop/pages/refund/detail', + 'order-delivery' = '/pagesShop/pages/delivery/delivery', + 'order-center' = '/pagesShop/pages/center/center', + 'recharge-order-list' = '/pagesShop/pages/recharge/list', // pagesMember - 'login' = '/pagesMember/pages/login/login', - 'setting' = '/pagesMember/pages/settings/settings', - 'profile' = '/pagesMember/pages/profile/profile', - 'address' = '/pagesMember/pages/address/address', - 'address-form' = '/pagesMember/pages/address/address-form', - 'balance' = '/pagesMember/pages/balance/balance', - 'balance-recharge' = '/pagesMember/pages/balance/recharge', - 'coupon' = '/pagesMember/pages/coupon/coupon', - 'coupon-center' = '/pagesMember/pages/coupon/center', - 'favorite' = '/pagesMember/pages/favorite/favorite', + 'login' = '/pagesShop/pages/login/login', + 'setting' = '/pagesShop/pages/settings/settings', + 'profile' = '/pagesShop/pages/profile/profile', + 'address' = '/pagesShop/pages/address/address', + 'address-form' = '/pagesShop/pages/address/address-form', + 'balance' = '/pagesShop/pages/balance/balance', + 'balance-recharge' = '/pagesShop/pages/balance/recharge', + 'coupon' = '/pagesShop/pages/coupon/coupon', + 'coupon-center' = '/pagesShop/pages/coupon/center', + 'favorite' = '/pagesShop/pages/favorite/favorite', // pagesOther 'rich-text' = '/pagesOther/pages/blank/rich-text',