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 @@
注册