添加注释

This commit is contained in:
mabo
2021-05-27 18:03:33 +08:00
parent 0df88e08e4
commit e935d5bcd5
3 changed files with 9 additions and 10 deletions

View File

@@ -57,7 +57,7 @@ import {
export default { export default {
name: 'addressManage', name: 'addressManage',
props: { props: {
id: { id: { // 传入的地址id
defalut: '', defalut: '',
type: String type: String
} }
@@ -89,7 +89,7 @@ export default {
}; };
}, },
methods: { methods: {
save () { save () { // 保存地址
this.$refs.form.validate((valid) => { this.$refs.form.validate((valid) => {
if (valid) { if (valid) {
const params = JSON.parse(JSON.stringify(this.formData)); const params = JSON.parse(JSON.stringify(this.formData));
@@ -138,15 +138,15 @@ export default {
this.formData.lat = item.position.lat; this.formData.lat = item.position.lat;
this.formData.lon = item.position.lng; this.formData.lon = item.position.lng;
}, },
show () { show () { // 地址模态框显示
this.showAddr = true; this.showAddr = true;
}, },
hide () { hide () { // 地址模态框隐藏
this.showAddr = false; this.showAddr = false;
} }
}, },
watch: { watch: {
id: { id: { // 传入的地址id
handler: function (v) { handler: function (v) {
if (v) { if (v) {
this.getAddrById(v); this.getAddrById(v);

View File

@@ -59,7 +59,6 @@ export default {
isActive: 0 // 已激活tab栏下标 isActive: 0 // 已激活tab栏下标
}; };
}, },
mounted () {},
methods: { methods: {
// 点击右侧的回调 // 点击右侧的回调
callBack () { callBack () {

View File

@@ -44,7 +44,7 @@ export default {
}; };
}, },
methods: { methods: {
getList () { getList () { // 获取优惠券列表
this.loading = true this.loading = true
memberCouponList(this.params).then(res => { memberCouponList(this.params).then(res => {
this.loading = false this.loading = false
@@ -67,18 +67,18 @@ export default {
} }
}, },
changePageNum (val) { changePageNum (val) { // 分页改变页码
this.params.pageNumber = val; this.params.pageNumber = val;
this.getList() this.getList()
}, },
changePageSize (val) { changePageSize (val) { // 分页改变页数
this.pageNumber = 1; this.pageNumber = 1;
this.params.pageSize = val; this.params.pageSize = val;
this.getList() this.getList()
}, },
useScope (type, storeName) { useScope (type, storeName) { // 根据字段返回 优惠券适用范围
let shop = '平台'; let shop = '平台';
let goods = '全部商品' let goods = '全部商品'
if (storeName !== 'platform') shop = storeName if (storeName !== 'platform') shop = storeName