From 14aad4c9cd3a8b1299ed616ea06d12cf75240209 Mon Sep 17 00:00:00 2001 From: mabo Date: Thu, 13 May 2021 11:35:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0pc=E7=AB=AF=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buyer/src/pages/AllCategories.vue | 348 --------------------- buyer/src/pages/Cart.vue | 64 +--- buyer/src/pages/Feedback.vue | 18 +- buyer/src/pages/GoodsDetail.vue | 12 +- buyer/src/pages/GoodsList.vue | 12 +- buyer/src/pages/Login.vue | 12 +- buyer/src/pages/Merchant.vue | 14 +- buyer/src/pages/ShoppingCart.vue | 2 +- buyer/src/pages/SignUp.vue | 13 +- buyer/src/pages/couponCenter.vue | 6 +- buyer/src/pages/forgetPassword.vue | 20 +- buyer/src/pages/payment/thirdPay.vue | 8 +- buyer/src/pages/pointMall.vue | 2 +- buyer/src/pages/promotion/seckill.vue | 8 +- buyer/src/pages/shopEntry/first-apply.vue | 20 +- buyer/src/pages/shopEntry/index.vue | 5 - buyer/src/pages/shopEntry/second-apply.vue | 9 +- buyer/src/pages/shopEntry/shop-entry.vue | 18 +- buyer/src/pages/shopEntry/third-apply.vue | 19 +- buyer/src/pages/signUp/CheckPhone.vue | 80 ----- buyer/src/pages/signUp/InputInfo.vue | 92 ------ buyer/src/pages/signUp/SignUpDone.vue | 27 -- buyer/src/pages/user/Home.vue | 2 +- buyer/src/router/index.js | 6 - 24 files changed, 104 insertions(+), 713 deletions(-) delete mode 100644 buyer/src/pages/AllCategories.vue delete mode 100644 buyer/src/pages/shopEntry/index.vue delete mode 100644 buyer/src/pages/signUp/CheckPhone.vue delete mode 100644 buyer/src/pages/signUp/InputInfo.vue delete mode 100644 buyer/src/pages/signUp/SignUpDone.vue diff --git a/buyer/src/pages/AllCategories.vue b/buyer/src/pages/AllCategories.vue deleted file mode 100644 index 9d0f8cda..00000000 --- a/buyer/src/pages/AllCategories.vue +++ /dev/null @@ -1,348 +0,0 @@ - - - - - - diff --git a/buyer/src/pages/Cart.vue b/buyer/src/pages/Cart.vue index c4c83995..281fe78f 100644 --- a/buyer/src/pages/Cart.vue +++ b/buyer/src/pages/Cart.vue @@ -156,54 +156,21 @@ export default { }, data () { return { - logoImg: '', - couponAvailable: false, + logoImg: '', // logo图 + couponAvailable: false, // 展示优惠券 stepIndex: 0, // 当前处于哪一步,购物车==0,填写订单信息==1,成功提交订单==2 - goodsTotal: 1, - checkedNum: 0, - allChecked: false, - loading: false, - city: '珠海', - cityArr: [ - ['北京', '上海', '天津', '重庆', '广州'], - ['深圳', '河南', '辽宁', '吉林', '江苏'], - ['江西', '四川', '海南', '贵州', '云南'], - ['西藏', '陕西', '甘肃', '青海', '珠海'] - ], - cartList: [], - couponList: [ - { - name: '优惠券', - price: '10', - activity: '满99减10', - useRange: '全品类使用', - disabled: true - }, - { - name: '优惠券', - price: '10', - activity: '满99减10', - useRange: '全品类使用', - disabled: false - }, - { - name: '优惠券', - price: '10', - activity: '满99减10', - useRange: '全品类使用', - disabled: false - } - ], - priceDetailDTO: {}, - skuList: [] + goodsTotal: 1, // 商品数量 + checkedNum: 0, // 选中数量 + allChecked: false, // 全选 + loading: false, // 加载状态 + cartList: [], // 购物车列表 + couponList: [], // 优惠券列表 + priceDetailDTO: {}, // 价格明细 + skuList: [] // sku列表 }; }, computed: {}, methods: { - // 选择配送区域 - changeCity (city) { - this.city = city; - }, // 跳转商品详情 goGoodsDetail (skuId, goodsId) { let routeUrl = this.$router.resolve({ @@ -451,17 +418,6 @@ export default { justify-content: space-between; margin-bottom: 15px; } -.city { - padding: 10px 15px; -} -.city-item { - font-weight: bold; - cursor: pointer; - padding: 5px; -} -.city-item:hover { - color: $theme_color; -} /** 商品列表 */ .cart-goods { &-title { diff --git a/buyer/src/pages/Feedback.vue b/buyer/src/pages/Feedback.vue index a1077dce..f85b37ed 100644 --- a/buyer/src/pages/Feedback.vue +++ b/buyer/src/pages/Feedback.vue @@ -39,15 +39,15 @@ diff --git a/buyer/src/pages/GoodsDetail.vue b/buyer/src/pages/GoodsDetail.vue index 30338eef..f39af488 100644 --- a/buyer/src/pages/GoodsDetail.vue +++ b/buyer/src/pages/GoodsDetail.vue @@ -55,17 +55,13 @@ export default { } }) } - }, - mounted () { - }, data () { return { - tagsColor: ['blue', 'green', 'red', 'yellow'], - goodsMsg: {}, - isLoading: false, - categoryBar: [], - storeCollected: false + goodsMsg: {}, // 商品信息 + isLoading: false, // 加载状态 + categoryBar: [], // 分类 + storeCollected: false // 商品收藏 }; }, methods: { diff --git a/buyer/src/pages/GoodsList.vue b/buyer/src/pages/GoodsList.vue index 49a5cb83..853a3703 100644 --- a/buyer/src/pages/GoodsList.vue +++ b/buyer/src/pages/GoodsList.vue @@ -101,18 +101,18 @@ export default { }, data () { return { - sortIndex: 0, + sortIndex: 0, // 排序状态 sortPriceIndex: false, // 判断价格升序还是降序 - goodsTool: [ + goodsTool: [ // 排序类型 { title: '综合', en: '' }, { title: '销量', en: 'buyCount' }, { title: '评论数', en: 'commentNum' }, { title: '新品', en: 'releaseTime' } ], - goodsList: [], - loading: false, - total: 0, - params: { + goodsList: [], // 商品列表 + loading: false, // 加载状态 + total: 0, // 列表总数 + params: { // 请求参数 pageNumber: 0, pageSize: 20, categoryId: '' diff --git a/buyer/src/pages/Login.vue b/buyer/src/pages/Login.vue index 4dd46f34..8b765272 100644 --- a/buyer/src/pages/Login.vue +++ b/buyer/src/pages/Login.vue @@ -163,11 +163,11 @@ export default { username: '', password: '' }, - formSms: { + formSms: { // 手机号登录 code: '', mobile: '' }, - verifyStatus: false, + verifyStatus: false, // 是否图片验证通过 ruleInline: { // 验证规则 username: [{ required: true, message: '请输入用户名' }], @@ -184,10 +184,10 @@ export default { ], code: [{ required: true, message: '请输入手机验证码' }] }, - codeMsg: '发送验证码', - interval: '', - time: 60, - logoImg: '' + codeMsg: '发送验证码', // 验证码文字 + interval: '', // 定时器 + time: 60, // 倒计时 + logoImg: '' // logo图片 }; }, methods: { diff --git a/buyer/src/pages/Merchant.vue b/buyer/src/pages/Merchant.vue index 91491574..b6ed1bb7 100644 --- a/buyer/src/pages/Merchant.vue +++ b/buyer/src/pages/Merchant.vue @@ -73,19 +73,19 @@ export default { name: 'Merchant', data () { return { - storeMsg: {}, - cateList: [], - goodsList: [], - total: 0, - params: { + storeMsg: {}, // 店铺信息 + cateList: [], // 店铺分裂 + goodsList: [], // 商品列表 + total: 0, // 商品数量 + params: { // 请求参数 pageNumber: 1, pageSize: 20, keyword: '', storeId: this.$route.query.id, storeCatId: '' }, - cateName: '店铺推荐', - storeCollected: false + cateName: '店铺推荐', // 分类名称 + storeCollected: false // 是否收藏 } }, created () { diff --git a/buyer/src/pages/ShoppingCart.vue b/buyer/src/pages/ShoppingCart.vue index 2c7cc2ad..cf38d0e5 100644 --- a/buyer/src/pages/ShoppingCart.vue +++ b/buyer/src/pages/ShoppingCart.vue @@ -74,7 +74,7 @@ export default { }, data () { return { - detail: {} + detail: {} // 商品详情 }; }, mounted () { diff --git a/buyer/src/pages/SignUp.vue b/buyer/src/pages/SignUp.vue index 7e24619d..74ded182 100644 --- a/buyer/src/pages/SignUp.vue +++ b/buyer/src/pages/SignUp.vue @@ -10,7 +10,6 @@
注册
-
-
- -
- diff --git a/buyer/src/pages/shopEntry/second-apply.vue b/buyer/src/pages/shopEntry/second-apply.vue index 5f05371d..45e1a7e9 100644 --- a/buyer/src/pages/shopEntry/second-apply.vue +++ b/buyer/src/pages/shopEntry/second-apply.vue @@ -42,7 +42,6 @@ - - diff --git a/buyer/src/pages/signUp/InputInfo.vue b/buyer/src/pages/signUp/InputInfo.vue deleted file mode 100644 index 772c37d1..00000000 --- a/buyer/src/pages/signUp/InputInfo.vue +++ /dev/null @@ -1,92 +0,0 @@ - - - - - diff --git a/buyer/src/pages/signUp/SignUpDone.vue b/buyer/src/pages/signUp/SignUpDone.vue deleted file mode 100644 index d4fc24c0..00000000 --- a/buyer/src/pages/signUp/SignUpDone.vue +++ /dev/null @@ -1,27 +0,0 @@ - - - - - diff --git a/buyer/src/pages/user/Home.vue b/buyer/src/pages/user/Home.vue index 78989131..7f27f69e 100644 --- a/buyer/src/pages/user/Home.vue +++ b/buyer/src/pages/user/Home.vue @@ -60,7 +60,7 @@ export default { name: 'Home', data () { return { - menuList + menuList // 会员中心左侧列表 }; }, computed: { diff --git a/buyer/src/router/index.js b/buyer/src/router/index.js index 3b90cd44..5eb51b0d 100644 --- a/buyer/src/router/index.js +++ b/buyer/src/router/index.js @@ -67,7 +67,6 @@ const UserMain = resolve => require(['@/pages/home/Main'], resolve); * 店铺入驻 首页 * 店铺入驻 申请页 */ -const ShopEntryIndex = resolve => require(['@/pages/shopEntry/index'], resolve); const ShopEntry = resolve => require(['@/pages/shopEntry/shop-entry'], resolve); Vue.use(Router); @@ -168,11 +167,6 @@ export default new Router({ title: '帮助中心' } }, - { - path: '/shopEntryList', - name: 'shopEntryList', - component: ShopEntryIndex - }, { path: '/shopEntry', name: 'shopEntry',