diff --git a/App.vue b/App.vue index 860b69e..bf7b9e5 100644 --- a/App.vue +++ b/App.vue @@ -1,15 +1,5 @@ \ No newline at end of file diff --git a/components/shop/group/item.vue b/components/shop/group/item.vue new file mode 100644 index 0000000..cac3f6e --- /dev/null +++ b/components/shop/group/item.vue @@ -0,0 +1,47 @@ + + + \ No newline at end of file diff --git a/components/shop/list/index.vue b/components/shop/list/index.vue new file mode 100644 index 0000000..4a02a41 --- /dev/null +++ b/components/shop/list/index.vue @@ -0,0 +1,54 @@ + + + \ No newline at end of file diff --git a/components/shop/list/item.vue b/components/shop/list/item.vue new file mode 100644 index 0000000..23be604 --- /dev/null +++ b/components/shop/list/item.vue @@ -0,0 +1,49 @@ + + + \ No newline at end of file diff --git a/components/shop/recommend/index.vue b/components/shop/recommend/index.vue new file mode 100644 index 0000000..4c38bbb --- /dev/null +++ b/components/shop/recommend/index.vue @@ -0,0 +1,101 @@ + + + \ No newline at end of file diff --git a/components/shop/seckill/index.vue b/components/shop/seckill/index.vue new file mode 100644 index 0000000..fdf87ac --- /dev/null +++ b/components/shop/seckill/index.vue @@ -0,0 +1,71 @@ + + + \ No newline at end of file diff --git a/components/shop/seckill/item.vue b/components/shop/seckill/item.vue new file mode 100644 index 0000000..f5af869 --- /dev/null +++ b/components/shop/seckill/item.vue @@ -0,0 +1,63 @@ + + + \ No newline at end of file diff --git a/components/shop/shop-item/index.vue b/components/shop/shop-item/index.vue new file mode 100644 index 0000000..899b3b8 --- /dev/null +++ b/components/shop/shop-item/index.vue @@ -0,0 +1,29 @@ + + + \ No newline at end of file diff --git a/components/shop/youhq/index.vue b/components/shop/youhq/index.vue new file mode 100644 index 0000000..ac25922 --- /dev/null +++ b/components/shop/youhq/index.vue @@ -0,0 +1,72 @@ + + + \ No newline at end of file diff --git a/components/shop/youhq/item.vue b/components/shop/youhq/item.vue new file mode 100644 index 0000000..f9a6923 --- /dev/null +++ b/components/shop/youhq/item.vue @@ -0,0 +1,83 @@ + + + \ No newline at end of file diff --git a/main.js b/main.js index dc6b511..bce4f0b 100644 --- a/main.js +++ b/main.js @@ -8,4 +8,11 @@ App.mpType = 'app' const app = new Vue({ ...App }) +// http拦截器,将此部分放在new Vue()和app.$mount()之间,才能App.vue中正常使用 +import httpInterceptor from '@/common/http.interceptor.js' +Vue.use(httpInterceptor, app) + +// http接口API集中管理引入部分 +import httpApi from '@/common/http.api.js' +Vue.use(httpApi, app) app.$mount() diff --git a/pageB/components/sdetails/navs.vue b/pageB/components/sdetails/navs.vue new file mode 100644 index 0000000..6d942bc --- /dev/null +++ b/pageB/components/sdetails/navs.vue @@ -0,0 +1,30 @@ + + + \ No newline at end of file diff --git a/pageB/components/sdetails/tloos.vue b/pageB/components/sdetails/tloos.vue new file mode 100644 index 0000000..05ff9aa --- /dev/null +++ b/pageB/components/sdetails/tloos.vue @@ -0,0 +1,55 @@ + + + \ No newline at end of file diff --git a/pageB/components/sdetails/youhuiitem.vue b/pageB/components/sdetails/youhuiitem.vue new file mode 100644 index 0000000..9d12710 --- /dev/null +++ b/pageB/components/sdetails/youhuiitem.vue @@ -0,0 +1,53 @@ + + + \ No newline at end of file diff --git a/pageB/components/sdetails/youhuiquan.vue b/pageB/components/sdetails/youhuiquan.vue new file mode 100644 index 0000000..44ffe75 --- /dev/null +++ b/pageB/components/sdetails/youhuiquan.vue @@ -0,0 +1,27 @@ + + + \ No newline at end of file diff --git a/pageB/sdetails/index.vue b/pageB/sdetails/index.vue new file mode 100644 index 0000000..904587f --- /dev/null +++ b/pageB/sdetails/index.vue @@ -0,0 +1,113 @@ + + + \ No newline at end of file diff --git a/pageE/mine/MemberServe.vue b/pageE/mine/MemberServe.vue index fe74eb6..9ab2f45 100644 --- a/pageE/mine/MemberServe.vue +++ b/pageE/mine/MemberServe.vue @@ -173,7 +173,7 @@ export default { .coupon-btn { margin-left: auto; width: 85rpx; - height: 42rpx; + // height: 42rpx; border: 2rpx solid rgba(255,120,15,1); border-radius: 10rpx; font-size: 26rpx; diff --git a/pages.json b/pages.json index 8c00b2a..d858be7 100644 --- a/pages.json +++ b/pages.json @@ -83,6 +83,17 @@ } } }, + { + "path": "sdetails/index", + "style": { + "navigationBarTitleText": "商品详情", + "app-plus":{ + "titleNView":{ + "backgroundColor":"#ffffff" + } + } + } + }, { "path": "search/index", "style": { @@ -305,27 +316,6 @@ { "root": "pageE", "pages":[ - { - "path": "mine/MineIndex", - "style": { - "navigationBarTitleText": "我的", - "app-plus": { - "titleSize": "36px", - "titleNView": { - "titleColor": "#333333", - "backgroundColor": "#FFFFFF", - "buttons": [ - { - "type": "none", - "text": "\ue502", - "float": "right", - "fontSize": "14" - } - ] - } - } - } - }, { "path": "tool/MineHistory", "style": { @@ -759,46 +749,77 @@ } ], "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages + { + "path": "pageA/welcome/welcome", + "style": { + "navigationStyle": "custom" + } + }, { "path": "pages/index/index", "style": { "navigationBarTitleText": "首页", "navigationStyle": "custom" } + }, + { + "path": "pages/shop/index", + "style": { + "navigationBarTitleText": "商城", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mine/index", + "style": { + "navigationBarTitleText": "我的", + "app-plus": { + "titleSize": "36px", + "titleNView": { + "titleColor": "#333333", + "backgroundColor": "#FFFFFF", + "buttons": [ + { + "type": "none", + "text": "\ue502", + "float": "right", + "fontSize": "14" + } + ] + } + } + } } ], "tabBar": { "color": "#999999", - "selectedColor": "#FF780F", + "selectedColor": "#FFC023", + "borderStyle": "white", "backgroundColor": "#ffffff", - "fontSize": "12", - "iconWidth": "20", - "spacing": "7", "list": [{ "pagePath": "pages/index/index", - "iconPath": "static/image/home.png", - "selectedIconPath": "static/image/home2.png", + "iconPath": "static/image/tabbar/home.png", + "selectedIconPath": "static/image/tabbar/home2.png", "text": "首页" }, { - "pagePath": "pages/API/index", - "iconPath": "static/image/mall.png", - "selectedIconPath": "static/image/mall2.png", + "pagePath": "pages/shop/index", + "iconPath": "static/image/tabbar/mall.png", + "selectedIconPath": "static/image/tabbar/mall2.png", "text": "商城" }, { - "pagePath": "pageD/information/information", - "iconPath": "static/image/message.png", - "selectedIconPath": "static/image/message2.png", + "pagePath": "pages/API/index", + "iconPath": "static/image/tabbar/message.png", + "selectedIconPath": "static/image/tabbar/message2.png", "text": "消息" }, { - "pagePath": "pageE/mine/MineIndex", - "iconPath": "static/image/mine.png", - "selectedIconPath": "static/image/mine2.png", + "pagePath": "pages/mine/index", + "iconPath": "static/image/tabbar/mine.png", + "selectedIconPath": "static/image/tabbar/mine2.png", "text": "我的" }] }, "globalStyle": { "navigationBarTextStyle": "black", - "navigationBarTitleText": "uni-app", "navigationBarBackgroundColor": "#F8F8F8", "backgroundColor": "#F8F8F8" } diff --git a/pages/index/index.vue b/pages/index/index.vue index 764365a..1693e69 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -196,6 +196,7 @@ export default { this.num = a } } - } + }, + onLoad(){} } \ No newline at end of file diff --git a/pageE/mine/MineIndex.vue b/pages/mine/index.vue similarity index 88% rename from pageE/mine/MineIndex.vue rename to pages/mine/index.vue index bd6e3d1..1b1457e 100644 --- a/pageE/mine/MineIndex.vue +++ b/pages/mine/index.vue @@ -2,12 +2,12 @@ - + - + 待支付 - + 已取消 - + 待收货 - + 试穿试送 - + 待评价 - + 售后 @@ -81,15 +81,15 @@ 我的工具 - + 送洗 - + 美甲 - + 足迹 @@ -98,19 +98,19 @@ 更多工具 - + 收货地址 - + 售后政策 - + 使用帮助 - + 投诉意见 @@ -128,12 +128,12 @@ export default { }, onLoad() {}, onNavigationBarButtonTap() { - console.log("setting"); - this.toOtherPage("/setting/Index"); + // console.log("setting"); + this.toOtherPage("/pageE/setting/Index"); }, methods: { toOtherPage(url) { - console.log(url); + // console.log(url); uni.navigateTo({ url: '/pageE' + url }); @@ -160,6 +160,7 @@ export default { border-radius: 50%; border: 2rpx solid rgba(251,251,251,1); margin-right: 30rpx; + flex-shrink: 0; } .user-info { display: flex; diff --git a/pages/shop/index.vue b/pages/shop/index.vue new file mode 100644 index 0000000..e348895 --- /dev/null +++ b/pages/shop/index.vue @@ -0,0 +1,163 @@ + + + \ No newline at end of file diff --git a/static/image/mine/1.png b/static/image/mine/1.png new file mode 100644 index 0000000..e7ac03f Binary files /dev/null and b/static/image/mine/1.png differ diff --git a/static/image/mine/13.png b/static/image/mine/13.png new file mode 100644 index 0000000..ee7078c Binary files /dev/null and b/static/image/mine/13.png differ diff --git a/static/image/mine/14.png b/static/image/mine/14.png new file mode 100644 index 0000000..2075aff Binary files /dev/null and b/static/image/mine/14.png differ diff --git a/static/image/mine/15.png b/static/image/mine/15.png new file mode 100644 index 0000000..f720a02 Binary files /dev/null and b/static/image/mine/15.png differ diff --git a/static/image/mine/16.png b/static/image/mine/16.png new file mode 100644 index 0000000..f3f687a Binary files /dev/null and b/static/image/mine/16.png differ diff --git a/static/image/mine/17.png b/static/image/mine/17.png new file mode 100644 index 0000000..9f576ae Binary files /dev/null and b/static/image/mine/17.png differ diff --git a/static/image/mine/18.png b/static/image/mine/18.png new file mode 100644 index 0000000..66a0c16 Binary files /dev/null and b/static/image/mine/18.png differ diff --git a/static/image/mine/19.png b/static/image/mine/19.png new file mode 100644 index 0000000..cf67c08 Binary files /dev/null and b/static/image/mine/19.png differ diff --git a/static/image/mine/2.png b/static/image/mine/2.png new file mode 100644 index 0000000..cb00cc7 Binary files /dev/null and b/static/image/mine/2.png differ diff --git a/static/image/mine/20.png b/static/image/mine/20.png new file mode 100644 index 0000000..7cd550f Binary files /dev/null and b/static/image/mine/20.png differ diff --git a/static/image/mine/21.png b/static/image/mine/21.png new file mode 100644 index 0000000..8aa6d13 Binary files /dev/null and b/static/image/mine/21.png differ diff --git a/static/image/mine/23.png b/static/image/mine/23.png new file mode 100644 index 0000000..cae1a3d Binary files /dev/null and b/static/image/mine/23.png differ diff --git a/static/image/mine/3.png b/static/image/mine/3.png new file mode 100644 index 0000000..a102b3f Binary files /dev/null and b/static/image/mine/3.png differ diff --git a/static/image/mine/6.png b/static/image/mine/6.png new file mode 100644 index 0000000..ba7d225 Binary files /dev/null and b/static/image/mine/6.png differ diff --git a/static/image/mine/9.png b/static/image/mine/9.png new file mode 100644 index 0000000..52524b4 Binary files /dev/null and b/static/image/mine/9.png differ diff --git a/static/image/home.png b/static/image/tabbar/home.png similarity index 100% rename from static/image/home.png rename to static/image/tabbar/home.png diff --git a/static/image/home2.png b/static/image/tabbar/home2.png similarity index 100% rename from static/image/home2.png rename to static/image/tabbar/home2.png diff --git a/static/image/mall.png b/static/image/tabbar/mall.png similarity index 100% rename from static/image/mall.png rename to static/image/tabbar/mall.png diff --git a/static/image/mall2.png b/static/image/tabbar/mall2.png similarity index 100% rename from static/image/mall2.png rename to static/image/tabbar/mall2.png diff --git a/static/image/message.png b/static/image/tabbar/message.png similarity index 100% rename from static/image/message.png rename to static/image/tabbar/message.png diff --git a/static/image/message2.png b/static/image/tabbar/message2.png similarity index 100% rename from static/image/message2.png rename to static/image/tabbar/message2.png diff --git a/static/image/mine.png b/static/image/tabbar/mine.png similarity index 100% rename from static/image/mine.png rename to static/image/tabbar/mine.png diff --git a/static/image/mine2.png b/static/image/tabbar/mine2.png similarity index 100% rename from static/image/mine2.png rename to static/image/tabbar/mine2.png diff --git a/static/js/http.js b/static/js/http.js new file mode 100644 index 0000000..fa5bec7 --- /dev/null +++ b/static/js/http.js @@ -0,0 +1 @@ +let baseurl = "";