From e3ea0e28f408948923bea035a4c0de57dd8823b9 Mon Sep 17 00:00:00 2001 From: liudan <18634735655@163.com> Date: Wed, 12 Apr 2023 01:11:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 14 ++ env.js | 2 +- pages.json | 67 +++++---- pages/home/home.vue | 2 +- pages/index/cart.vue | 14 +- pages/index/category.vue | 15 +- pages/index/category/three-catgory.vue | 194 +++++++++++++++++++++++-- pages/index/user.vue | 2 +- pages/index/user/userinfo-card.vue | 74 ++++++---- uview-ui/theme.scss | 4 +- 10 files changed, 303 insertions(+), 85 deletions(-) diff --git a/App.vue b/App.vue index 8af619b..268d426 100644 --- a/App.vue +++ b/App.vue @@ -4,6 +4,11 @@ init } from "@/shopro"; export default { + data(){ + return{ + + } + }, onLaunch(options) { init(options); } @@ -12,4 +17,13 @@ diff --git a/env.js b/env.js index 4da5efd..bca6c9d 100644 --- a/env.js +++ b/env.js @@ -3,7 +3,7 @@ */ // 接口根域名 https://demo.shopro.top -export const BASE_URL = 'https://demo.shopro.top' +export const BASE_URL = 'https://fx.njrenzhou.cn' // 接口路径 export const API_URL = `${BASE_URL}/addons/shopro/` diff --git a/pages.json b/pages.json index 7ed6361..83e09d9 100644 --- a/pages.json +++ b/pages.json @@ -27,41 +27,24 @@ // } // }, { - "path": "pages/home/home", - "aliasPath": "/", //对于h5端你必须在首页加上aliasPath并设置为/ + "path": "pages/index/user", "style": { - "navigationBarTitleText": "首页", - "navigationBarTextStyle": "light", - "enablePullDownRefresh": false, + "navigationBarTitleText": "我的", "navigationStyle": "custom", - "mp-alipay": { - "transparentTitle": "always", - "titlePenetrate": "YES", - "allowsBounceVertical": "NO" - } - }, - "meta": { - "auth": false, //需要登录 - "async": true, //是否同步 - "title": "首页", //标题 - "group": "商城" //分组 - } - }, - { - "path": "pages/index/category", - "style": { - "navigationBarTitleText": "分类" + "navigationBarTextStyle": "white", + "enablePullDownRefresh": true }, "meta": { "auth": false, "async": true, - "title": "分类", + "title": "我的", "group": "商城" } }, { "path": "pages/index/cart", "style": { + "navigationStyle": "custom", "navigationBarTitleText": "购物车" }, "meta": { @@ -72,20 +55,42 @@ } }, { - "path": "pages/index/user", + "path": "pages/index/category", "style": { - "navigationBarTitleText": "我的", "navigationStyle": "custom", - "navigationBarTextStyle": "white", - "enablePullDownRefresh": true + "navigationBarTitleText": "分类" }, "meta": { "auth": false, "async": true, - "title": "我的", + "title": "分类", "group": "商城" } }, + { + "path": "pages/home/home", + "aliasPath": "/", //对于h5端你必须在首页加上aliasPath并设置为/ + "style": { + "navigationBarTitleText": "首页", + "navigationBarTextStyle": "light", + "enablePullDownRefresh": false, + "navigationStyle": "custom", + "mp-alipay": { + "transparentTitle": "always", + "titlePenetrate": "YES", + "allowsBounceVertical": "NO" + } + }, + "meta": { + "auth": false, //需要登录 + "async": true, //是否同步 + "title": "首页", //标题 + "group": "商城" //分组 + } + }, + + + { "path": "pages/index/view", "name": "view", @@ -912,9 +917,9 @@ "backgroundColor": "#FFFFFF" }, "tabBar": { - "color": "#333", - "selectedColor": "#a8700d", - "backgroundColor": "#ffffff", + "color": "#65676B", + "selectedColor": "#F0D2A0", + "backgroundColor": "#0F1014", "borderStyle": "black", "list": [ // { diff --git a/pages/home/home.vue b/pages/home/home.vue index 6deebe2..30b490a 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -1,6 +1,6 @@