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',