添加注释

master
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