diff --git a/buyer/package.json b/buyer/package.json index ae2ec6e8..9f64b7fb 100644 --- a/buyer/package.json +++ b/buyer/package.json @@ -14,9 +14,10 @@ "js-cookie": "^2.2.1", "less": "^3.12.2", "less-loader": "^5.0.0", + "mv-count-down": "^0.1.15", "psl": "^1.8.0", "qs": "^6.9.4", - "swiper": "^6.4.1", + "swiper": "^5.2.0", "uuid": "^8.3.2", "v-distpicker": "^1.0.17", "view-design": "^4.3.2", diff --git a/buyer/src/api/shopentry.js b/buyer/src/api/shopentry.js index 82020595..ae8e6309 100644 --- a/buyer/src/api/shopentry.js +++ b/buyer/src/api/shopentry.js @@ -61,7 +61,7 @@ export function getCateById (id) { // 店铺入驻协议 export function agreement () { return request({ - url: `/buyer/article/get/1349291301250293760`, + url: `/buyer/article/type/STORE_REGISTER`, needToken: true, method: Method.GET }) diff --git a/buyer/src/assets/iconfont/icomoon.eot b/buyer/src/assets/iconfont/icomoon.eot index 5a5b53d3..1155a87a 100644 Binary files a/buyer/src/assets/iconfont/icomoon.eot and b/buyer/src/assets/iconfont/icomoon.eot differ diff --git a/buyer/src/assets/iconfont/icomoon.svg b/buyer/src/assets/iconfont/icomoon.svg index a44989ac..780957bd 100644 --- a/buyer/src/assets/iconfont/icomoon.svg +++ b/buyer/src/assets/iconfont/icomoon.svg @@ -11,4 +11,6 @@ + + \ No newline at end of file diff --git a/buyer/src/assets/iconfont/icomoon.ttf b/buyer/src/assets/iconfont/icomoon.ttf index b63f6d43..d89161b6 100644 Binary files a/buyer/src/assets/iconfont/icomoon.ttf and b/buyer/src/assets/iconfont/icomoon.ttf differ diff --git a/buyer/src/assets/iconfont/icomoon.woff b/buyer/src/assets/iconfont/icomoon.woff index 1a942db4..64960b47 100644 Binary files a/buyer/src/assets/iconfont/icomoon.woff and b/buyer/src/assets/iconfont/icomoon.woff differ diff --git a/buyer/src/assets/iconfont/iconfont.css b/buyer/src/assets/iconfont/iconfont.css index aded85f0..2e74525c 100644 --- a/buyer/src/assets/iconfont/iconfont.css +++ b/buyer/src/assets/iconfont/iconfont.css @@ -1,10 +1,10 @@ @font-face { font-family: 'icomoon'; - src: url('icomoon.eot?4ejtdc'); - src: url('icomoon.eot?4ejtdc#iefix') format('embedded-opentype'), - url('icomoon.ttf?4ejtdc') format('truetype'), - url('icomoon.woff?4ejtdc') format('woff'), - url('icomoon.svg?4ejtdc#icomoon') format('svg'); + src: url('icomoon.eot?jvagvf'); + src: url('icomoon.eot?jvagvf#iefix') format('embedded-opentype'), + url('icomoon.ttf?jvagvf') format('truetype'), + url('icomoon.woff?jvagvf') format('woff'), + url('icomoon.svg?jvagvf#icomoon') format('svg'); font-weight: normal; font-style: normal; font-display: block; @@ -25,6 +25,14 @@ -moz-osx-font-smoothing: grayscale; } +.icon-wallet:before { + content: "\e905"; + color: #3c56c6; +} +.icon-qrcode:before { + content: "\e904"; + color: #999; +} .icon-customer-service:before { content: "\e900"; } diff --git a/buyer/src/components/goodsDetail/ShowGoods.vue b/buyer/src/components/goodsDetail/ShowGoods.vue index a6c50be3..32536da6 100644 --- a/buyer/src/components/goodsDetail/ShowGoods.vue +++ b/buyer/src/components/goodsDetail/ShowGoods.vue @@ -64,7 +64,7 @@

- +

促     销 @@ -111,7 +111,7 @@ 库存{{skuDetail.quantity}}

-
+

重量

@@ -119,14 +119,14 @@ {{skuDetail.weight}}kg
-
+
-
- +
+
- +
@@ -151,7 +151,7 @@ export default { count: 1, // 商品数量 imgIndex: 0, // 展示图片下标 currentSelceted: [], // 当前商品sku - imgList: this.detail.data.specList[0].specImage, // 商品图片列表 + imgList: this.detail.data.specList[0].specImage || [], // 商品图片列表 skuDetail: this.detail.data, // sku详情 goodsSpecList: this.detail.specs, // 商品spec promotionMap: { // 活动状态 @@ -200,12 +200,16 @@ export default { }; this.loading = true; addCartGoods(params).then(res => { + debugger; this.loading = false; if (res.success) { this.$router.push({path: '/shoppingCart', query: {detail: this.skuDetail, count: this.count}}); } else { this.$Message.warning(res.message); } + }).catch(() => { + console.log('catch'); + this.loading = false; }); }, buyNow () { // 立即购买 @@ -214,14 +218,20 @@ export default { skuId: this.skuDetail.id, cartType: 'BUY_NOW' }; + // 虚拟商品购买 + if (this.skuDetail.goodsType === 'VIRTUAL_GOODS') { + params.cartType = 'VIRTUAL' + } this.loading1 = true; addCartGoods(params).then(res => { this.loading1 = false; if (res.success) { - this.$router.push({path: '/pay', query: {way: 'BUY_NOW'}}); + this.$router.push({path: '/pay', query: {way: params.cartType}}); } else { this.$Message.warning(res.message); } + }).catch(() => { + this.loading1 = false; }); }, pointPay () { // 积分购买 @@ -317,6 +327,7 @@ export default { }) }, promotion () { // 格式化促销活动,返回当前促销的对象 + if (!this.detail.promotionMap) return false; let keysArr = Object.keys(this.detail.promotionMap); if (keysArr.length === 0) return false; @@ -339,7 +350,7 @@ export default { } }) } - + this.formatSku(this.goodsSpecList); this.promotion() document.title = this.skuDetail.goodsName diff --git a/buyer/src/components/goodsDetail/ShowGoodsDetail.vue b/buyer/src/components/goodsDetail/ShowGoodsDetail.vue index 72b4a349..d58f5a6e 100644 --- a/buyer/src/components/goodsDetail/ShowGoodsDetail.vue +++ b/buyer/src/components/goodsDetail/ShowGoodsDetail.vue @@ -86,6 +86,14 @@ + + + + + +
{{param.paramName}}{{param.paramValue}}
+ +
@@ -475,4 +483,18 @@ export default { .ivu-rate-star-full:before, .ivu-rate-star-half .ivu-rate-star-content:before { color: $theme_color; } +table{ + border-color: #eee; + color: #999; + width: 70%; + margin-left: 10px; + tr{ + td:nth-child(1){ + width: 200px; + } + } + td{ + padding: 5px; + } +} diff --git a/buyer/src/components/indexDecorate/modelList/seckill.vue b/buyer/src/components/indexDecorate/modelList/seckill.vue index c1f16dd8..adbf6f5e 100644 --- a/buyer/src/components/indexDecorate/modelList/seckill.vue +++ b/buyer/src/components/indexDecorate/modelList/seckill.vue @@ -36,7 +36,7 @@ @@ -132,10 +132,10 @@ export default { color: $theme_color; } } + .selected-cate{ color: $theme_color; } - } .page-size { width: 1200px; diff --git a/buyer/src/pages/forgetPassword.vue b/buyer/src/pages/forgetPassword.vue index 511cffb3..322c6e50 100644 --- a/buyer/src/pages/forgetPassword.vue +++ b/buyer/src/pages/forgetPassword.vue @@ -93,13 +93,13 @@
- 帮助 - 隐私 - 条款 + 帮助 + 隐私 + 条款 Copyright © 2020 - Present - lili-shop 版权所有 diff --git a/buyer/src/pages/home/memberCenter/Favorites.vue b/buyer/src/pages/home/memberCenter/Favorites.vue index 6e77e3b0..d63fcd2b 100644 --- a/buyer/src/pages/home/memberCenter/Favorites.vue +++ b/buyer/src/pages/home/memberCenter/Favorites.vue @@ -30,13 +30,13 @@
-
+
@@ -61,7 +61,7 @@ export default { total: 0, // 收藏总数 params: { // 请求参数 pageNumber: 1, - pageSize: 10, + pageSize: 100, type: 'GOODS' }, spinShow: false // 加载状态 diff --git a/buyer/src/pages/home/orderCenter/AfterSaleDetail.vue b/buyer/src/pages/home/orderCenter/AfterSaleDetail.vue index 7adcfd1a..51301f2e 100644 --- a/buyer/src/pages/home/orderCenter/AfterSaleDetail.vue +++ b/buyer/src/pages/home/orderCenter/AfterSaleDetail.vue @@ -44,6 +44,12 @@ +
+

图片信息

+
+ +
+
diff --git a/buyer/src/pages/home/orderCenter/MyOrder.vue b/buyer/src/pages/home/orderCenter/MyOrder.vue index c66c1ec5..fa03011e 100644 --- a/buyer/src/pages/home/orderCenter/MyOrder.vue +++ b/buyer/src/pages/home/orderCenter/MyOrder.vue @@ -29,7 +29,6 @@
{{ filterOrderStatus(order.orderStatus) }}
订单号:{{ order.sn }}      {{order.createTime}} -    {{ order.memberName | secrecyMobile }}
diff --git a/buyer/src/pages/home/orderCenter/OrderDetail.vue b/buyer/src/pages/home/orderCenter/OrderDetail.vue index 629ac5aa..6ebc1468 100644 --- a/buyer/src/pages/home/orderCenter/OrderDetail.vue +++ b/buyer/src/pages/home/orderCenter/OrderDetail.vue @@ -2,7 +2,7 @@
-

{{ order.orderStatusValue }}

+

{{ order.orderStatusValue }} 核验码:{{order.order.verificationCode}}

订单号:{{ order.order.sn }}

操作时间:{{order.order.updateTime}}
@@ -22,8 +22,8 @@

付款信息

-

支付方式:在线支付

-

付款状态:未付款

+

支付方式:{{order.paymentMethodValue}}

+

付款状态:{{order.payStatusValue}}

配送信息

@@ -234,7 +234,12 @@ table { font-size: 20px; } } - +.verificationCode { + font-size: 16px; + margin-left: 240px; + color: rgb(65, 63, 63); + font-weight: bold; +} /** 订单进度条 */ .progress { margin: 15px 0; diff --git a/buyer/src/pages/home/userCenter/MoneyManagement.vue b/buyer/src/pages/home/userCenter/MoneyManagement.vue index d9e8a317..f57011b3 100644 --- a/buyer/src/pages/home/userCenter/MoneyManagement.vue +++ b/buyer/src/pages/home/userCenter/MoneyManagement.vue @@ -215,7 +215,7 @@ export default { color: 'green' } }, - params.row.money + this.$options.filters.unitPrice(params.row.money, '+ ¥') ) ]); } else if (params.row.money < 0) { @@ -227,7 +227,7 @@ export default { color: 'red' } }, - params.row.money + this.$options.filters.unitPrice(0 - params.row.money, '- ¥') ) ]); } @@ -252,7 +252,10 @@ export default { }, { title: '充值金额', - key: 'rechargeMoney' + key: 'rechargeMoney', + render: (h, params) => { + return h('div', [h('span', this.$options.filters.unitPrice(params.row.rechargeMoney, '¥'))]); + } }, { title: '支付状态', @@ -281,7 +284,9 @@ export default { { title: '提现金额', key: 'applyMoney', - width: 120 + render: (h, params) => { + return h('div', [h('span', this.$options.filters.unitPrice(params.row.applyMoney, '¥'))]); + } }, { title: '提现状态', @@ -392,9 +397,10 @@ export default { if (valid) { recharge(this.formData).then((res) => { if (res.message === 'success') { - // TODO 根据返回的值跳转到收银台进行支付,一下是输出sn - console.warn(res.result.rechargeSn); - this.modal = false; + this.$router.push({ + path: '/payment', + query: { orderType: 'RECHARGE', sn: res.result.rechargeSn } + }); } }); } diff --git a/buyer/src/pages/home/userCenter/MyTracks.vue b/buyer/src/pages/home/userCenter/MyTracks.vue index 7a721be1..4c87b002 100644 --- a/buyer/src/pages/home/userCenter/MyTracks.vue +++ b/buyer/src/pages/home/userCenter/MyTracks.vue @@ -15,6 +15,14 @@ + +
+ + +
@@ -25,7 +33,14 @@ export default { data () { return { list: [], // 我的足迹,商品列表 - spinShow: false // 控制loading是否加载 + spinShow: false, // 控制loading是否加载 + params: { + pageNumber: 1, + pageSize: 30, + order: 'desc', + sort: 'createTime' + }, + total: 0 }; }, mounted () { @@ -71,7 +86,16 @@ export default { } }) }, - getList () { + changePageNum (val) { // 修改页码 + this.params.pageNumber = val; + this.getList() + }, + changePageSize (val) { // 修改页数 + this.pageNumber = 1; + this.params.pageSize = val; + this.getList() + }, + getList () { // 获取足迹列表 this.spinShow = true; tracksList(this.params).then(res => { this.spinShow = false diff --git a/buyer/src/pages/payment/Pay.vue b/buyer/src/pages/payment/Pay.vue index 0ae2f84d..48ec2f7e 100644 --- a/buyer/src/pages/payment/Pay.vue +++ b/buyer/src/pages/payment/Pay.vue @@ -1,181 +1,316 @@ diff --git a/buyer/src/pages/payment/thirdPay.vue b/buyer/src/pages/payment/thirdPay.vue index e953892a..470d6afa 100644 --- a/buyer/src/pages/payment/thirdPay.vue +++ b/buyer/src/pages/payment/thirdPay.vue @@ -70,7 +70,7 @@ export default { payCallback(params).then(res => { if (res.result) { clearInterval(this.interval); - this.$router.push('/payDone'); + this.$router.push({path: '/payDone', query: {orderType: this.$route.query.orderType}}); } }); } diff --git a/buyer/src/pages/shopEntry/shop-entry.vue b/buyer/src/pages/shopEntry/shop-entry.vue index f522377f..fb112e49 100644 --- a/buyer/src/pages/shopEntry/shop-entry.vue +++ b/buyer/src/pages/shopEntry/shop-entry.vue @@ -9,23 +9,11 @@ - + - + - +
入驻申请提交成功,等待平台审核 @@ -37,62 +25,51 @@
- +
-

我已同意以上协议

- +

+ 我已同意以上协议 +

+
diff --git a/manager/src/views/goods/goods-manage/category.vue b/manager/src/views/goods/goods-manage/category.vue index b4183fe8..deacb087 100644 --- a/manager/src/views/goods/goods-manage/category.vue +++ b/manager/src/views/goods/goods-manage/category.vue @@ -11,7 +11,7 @@ diff --git a/seller/src/views/promotion/coupon/coupon.vue b/seller/src/views/promotion/coupon/coupon.vue index 9cd259de..5fae1965 100644 --- a/seller/src/views/promotion/coupon/coupon.vue +++ b/seller/src/views/promotion/coupon/coupon.vue @@ -2,29 +2,12 @@