From 79bed38195de7d5ab86a6a20794c8bdff782ce5e Mon Sep 17 00:00:00 2001 From: Enzo <1284707383@qq.com> Date: Mon, 6 Sep 2021 18:23:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E7=AB=A0=E8=AF=A6=E6=83=85=20?= =?UTF-8?q?=E4=BC=98=E6=83=A0=E5=88=B8=E9=A6=96=E9=A1=B5=20=E5=95=86?= =?UTF-8?q?=E5=93=81=E8=AF=A6=E6=83=85=20=E6=B5=B7=E6=8A=A5=E7=94=9F?= =?UTF-8?q?=E6=88=90=20=E8=B4=AD=E7=89=A9=E8=BD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/js/config.js | 2 +- components/lf-price/lf-price.vue | 6 +- pages.json | 63 +- pages/article/details.vue | 54 ++ pages/coupon/index/index.vue | 596 +++++----------- pages/coupon/index/index1.vue | 445 ++++++++++++ pages/shop/goodsdetail.vue | 574 +++++++++++++++ pages/store/cart/cart.vue | 1079 ++++------------------------- pages/store/cart/carttemplate.vue | 956 +++++++++++++++++++++++++ 9 files changed, 2357 insertions(+), 1418 deletions(-) create mode 100644 pages/article/details.vue create mode 100644 pages/coupon/index/index1.vue create mode 100644 pages/shop/goodsdetail.vue create mode 100644 pages/store/cart/carttemplate.vue diff --git a/common/js/config.js b/common/js/config.js index cdaaad3..8c40c53 100644 --- a/common/js/config.js +++ b/common/js/config.js @@ -16,7 +16,7 @@ export default { //https://demo-guojiang-ec-api.guojiang.club/ baseUrl: process.env.NODE_ENV === 'development' ? - 'http://192.168.2.221/' : 'https://v3-ec-admin-dev.guojiang.club/', // 运行时自动替换变量 + 'http://192.168.3.29/' : 'https://v3-ec-admin-dev.guojiang.club/', // 运行时自动替换变量 }, PACKAGES: { activity: false, diff --git a/components/lf-price/lf-price.vue b/components/lf-price/lf-price.vue index f4816d8..72d8a8d 100644 --- a/components/lf-price/lf-price.vue +++ b/components/lf-price/lf-price.vue @@ -5,7 +5,7 @@ .{{ showPrice(2) }} - {{ showPrice() }} + {{ showPrice() }} @@ -16,6 +16,10 @@ price: { type: [Number, String], default: '' + }, + iftext: { + type: Boolean, + default: true } }, computed: { diff --git a/pages.json b/pages.json index ed79974..46e1403 100644 --- a/pages.json +++ b/pages.json @@ -3,6 +3,44 @@ "^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue" }, "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages + { + "path": "pages/shop/goodsdetail", + "style": { + "navigationStyle": "custom" + } + }, + { + "path": "pages/coupon/index/index", + "style": { + "navigationStyle": "custom" + } + }, + { + "path": "pages/store/list/list", + "style": { + "navigationBarTitleText": "商品列表" + } + }, + { + "path": "pages/store/comment/comment", + "style": { + "navigationBarTitleText": "商品评论" + } + }, + { + "path": "pages/store/cart/cart", + "style": { + "navigationBarTitleText": "购物车", + "navigationStyle": "custom" + } + }, + { + "path": "pages/article/details", + "style": { + "navigationBarTitleText": "", + "navigationStyle": "custom" + } + }, { "path": "pages/order/index/onlineorder", "style": { @@ -224,12 +262,6 @@ "navigationBarTitleText": "商品列表" } }, - { - "path": "pages/coupon/index/index", - "style": { - "navigationBarTitleText": "优惠券列表" - } - }, { "path": "pages/coupon/offDetail/offDetail", "style": { @@ -248,12 +280,6 @@ "navigationBarTitleText": "" } }, - { - "path": "pages/store/list/list", - "style": { - "navigationBarTitleText": "商品列表" - } - }, { "path": "pages/store/search/search", "style": { @@ -266,25 +292,12 @@ "navigationBarTitleText": "开具发票" } }, - { - "path": "pages/store/cart/cart", - "style": { - "navigationBarTitleText": "购物车", - "navigationStyle": "custom" - } - }, { "path": "pages/store/detail/detail", "style": { "navigationBarTitleText": "" } }, - { - "path": "pages/store/comment/comment", - "style": { - "navigationBarTitleText": "商品评论" - } - }, { "path": "pages/store/order/order", "style": { diff --git a/pages/article/details.vue b/pages/article/details.vue new file mode 100644 index 0000000..5e74e93 --- /dev/null +++ b/pages/article/details.vue @@ -0,0 +1,54 @@ + + + + + diff --git a/pages/coupon/index/index.vue b/pages/coupon/index/index.vue index 84867ed..48df1f8 100644 --- a/pages/coupon/index/index.vue +++ b/pages/coupon/index/index.vue @@ -1,445 +1,161 @@ - - diff --git a/pages/coupon/index/index1.vue b/pages/coupon/index/index1.vue new file mode 100644 index 0000000..84867ed --- /dev/null +++ b/pages/coupon/index/index1.vue @@ -0,0 +1,445 @@ + + + diff --git a/pages/shop/goodsdetail.vue b/pages/shop/goodsdetail.vue new file mode 100644 index 0000000..ac65363 --- /dev/null +++ b/pages/shop/goodsdetail.vue @@ -0,0 +1,574 @@ + + + + + + \ No newline at end of file diff --git a/pages/store/cart/cart.vue b/pages/store/cart/cart.vue index cb731b4..90b8353 100644 --- a/pages/store/cart/cart.vue +++ b/pages/store/cart/cart.vue @@ -1,956 +1,133 @@ - - \ No newline at end of file + + + + diff --git a/pages/store/cart/carttemplate.vue b/pages/store/cart/carttemplate.vue new file mode 100644 index 0000000..cb731b4 --- /dev/null +++ b/pages/store/cart/carttemplate.vue @@ -0,0 +1,956 @@ + + + \ No newline at end of file