添加注释

master
mabo 2021-06-03 18:02:26 +08:00
parent f97282ad44
commit 4ef8287802
10 changed files with 34 additions and 36 deletions

View File

@ -99,7 +99,7 @@ export default {
againPassword: '', againPassword: '',
newPassword: '' newPassword: ''
}, },
ruleInLines: { ruleInLines: { //
picture: [ picture: [
{required: true, message: '请输入图片验证码', trigger: 'blur'} {required: true, message: '请输入图片验证码', trigger: 'blur'}
], ],
@ -107,7 +107,7 @@ export default {
{required: true, message: '请输入短信验证码', trigger: 'blur'} {required: true, message: '请输入短信验证码', trigger: 'blur'}
] ]
}, },
ruleIn: { ruleIn: { //
newPassword: [ newPassword: [
{required: true, message: '请输入新密码', trigger: 'blur'}, {required: true, message: '请输入新密码', trigger: 'blur'},
{type: 'string', min: 6, message: '密码不能少于6位'} {type: 'string', min: 6, message: '密码不能少于6位'}
@ -117,7 +117,7 @@ export default {
{type: 'string', min: 6, message: '密码不能少于6位'} {type: 'string', min: 6, message: '密码不能少于6位'}
] ]
}, },
ruleInline: { ruleInline: { //
password: [ password: [
{required: true, message: '请输入旧密码', trigger: 'blur'} {required: true, message: '请输入旧密码', trigger: 'blur'}
], ],

View File

@ -63,7 +63,7 @@ export default {
this.getPoint() this.getPoint()
}, },
methods: { methods: {
getHistory () { getHistory () { //
memberPointHistory(this.params).then(res => { memberPointHistory(this.params).then(res => {
this.logData = res.result; this.logData = res.result;
}) })
@ -73,11 +73,11 @@ export default {
if (res.success) this.pointObj = res.result if (res.success) this.pointObj = res.result
}) })
}, },
changePage (val) { changePage (val) { //
this.pageNumber = val this.pageNumber = val
this.getHistory() this.getHistory()
}, },
changePageSize (val) { changePageSize (val) { //
this.param.pageSize = val this.param.pageSize = val
this.params.pageNumber = 1 this.params.pageNumber = 1
this.getHistory() this.getHistory()

View File

@ -8,7 +8,6 @@
<Upload <Upload
:show-upload-list="false" :show-upload-list="false"
:on-success="handleSuccess" :on-success="handleSuccess"
:before-upload="handleBeforeUpload"
:format="['jpg','jpeg','png']" :format="['jpg','jpeg','png']"
:action="action" :action="action"
:headers="accessToken" :headers="accessToken"
@ -58,7 +57,7 @@ export default {
this.accessToken.accessToken = storage.getItem('accessToken'); this.accessToken.accessToken = storage.getItem('accessToken');
}, },
methods: { methods: {
save () { save () { //
this.$refs.form.validate(valid => { this.$refs.form.validate(valid => {
if (valid) { if (valid) {
let params = { let params = {
@ -76,10 +75,9 @@ export default {
} }
}) })
}, },
handleSuccess (res, file) { handleSuccess (res, file) { //
this.$set(this.formItem, 'face', res.result) this.$set(this.formItem, 'face', res.result)
}, },
handleBeforeUpload () {}
} }
} }

View File

@ -79,7 +79,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));

View File

@ -133,7 +133,7 @@ export default {
}); });
window.open(routeUrl.href, '_blank'); window.open(routeUrl.href, '_blank');
}, },
getList () { getList () { //
this.spinShow = true; this.spinShow = true;
let params = JSON.parse(JSON.stringify(this.params)) let params = JSON.parse(JSON.stringify(this.params))
afterSaleList(params).then(res => { afterSaleList(params).then(res => {
@ -144,11 +144,11 @@ 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()

View File

@ -75,7 +75,7 @@ export default {
} }
}) })
}, },
getLog () { getLog () { //
afterSaleLog(this.$route.query.sn).then(res => { afterSaleLog(this.$route.query.sn).then(res => {
this.logList = res.result; this.logList = res.result;
}) })

View File

@ -139,7 +139,7 @@ export default {
} }
}, },
methods: { methods: {
getInfo () { getInfo () { //
afterSaleInfo(this.$route.query.sn).then(res => { afterSaleInfo(this.$route.query.sn).then(res => {
if (res.success) { if (res.success) {
this.info = res.result this.info = res.result
@ -147,15 +147,15 @@ export default {
} }
}) })
}, },
getReason (type) { getReason (type) { //
afterSaleReason(type).then(res => { afterSaleReason(type).then(res => {
if (res.success) this.reasonList = res.result if (res.success) this.reasonList = res.result
}) })
}, },
changeReason (type) { changeReason (type) { //
this.getReason(type) this.getReason(type)
}, },
apply () { apply () { //
this.$refs.form.validate(valid => { this.$refs.form.validate(valid => {
if (valid) { if (valid) {
let params = Object.assign(this.info, this.form) let params = Object.assign(this.info, this.form)
@ -170,19 +170,19 @@ export default {
} }
}) })
}, },
handleView (name) { handleView (name) { //
this.previewImage = name; this.previewImage = name;
this.visible = true; this.visible = true;
}, },
handleRemove (index) { handleRemove (index) { //
this.uploadList.splice(index, 1) this.uploadList.splice(index, 1)
this.$forceUpdate() this.$forceUpdate()
}, },
handleSuccess (res, file) { handleSuccess (res, file) { //
this.uploadList.push(res.result) this.uploadList.push(res.result)
this.$forceUpdate() this.$forceUpdate()
}, },
handleBeforeUpload () { handleBeforeUpload () { //
const check = this.uploadList.length < 6; const check = this.uploadList.length < 6;
if (!check) { if (!check) {
this.$Notice.warning({ this.$Notice.warning({

View File

@ -78,7 +78,7 @@ export default {
} }
}, },
methods: { methods: {
getOrderDetail () { getOrderDetail () { //
orderDetail(this.$route.query.sn).then(res => { orderDetail(this.$route.query.sn).then(res => {
this.order = res.result this.order = res.result
this.orderGoods = res.result.orderItems[this.$route.query.index] this.orderGoods = res.result.orderItems[this.$route.query.index]
@ -92,7 +92,7 @@ export default {
} }
}) })
}, },
save () { save () { //
let params = { let params = {
goodsId: this.orderGoods.goodsId, goodsId: this.orderGoods.goodsId,
complainTopic: this.form.complainTopic, complainTopic: this.form.complainTopic,
@ -108,26 +108,26 @@ export default {
} }
}) })
}, },
goGoodsDetail (skuId, goodsId) { goGoodsDetail (skuId, goodsId) { //
let routerUrl = this.$router.resolve({ let routerUrl = this.$router.resolve({
path: '/goodsDetail', path: '/goodsDetail',
query: {skuId, goodsId} query: {skuId, goodsId}
}) })
window.open(routerUrl.href, '_blank') window.open(routerUrl.href, '_blank')
}, },
handleView (name) { handleView (name) { //
this.previewImage = name; this.previewImage = name;
this.visible = true; this.visible = true;
}, },
handleRemove (index) { handleRemove (index) { //
this.orderGoods.uploadList.splice(index, 1) this.orderGoods.uploadList.splice(index, 1)
this.$forceUpdate() this.$forceUpdate()
}, },
handleSuccess (res, file) { handleSuccess (res, file) { //
this.orderGoods.uploadList.push(res.result) this.orderGoods.uploadList.push(res.result)
this.$forceUpdate() this.$forceUpdate()
}, },
handleBeforeUpload () { handleBeforeUpload () { //
const check = this.orderGoods.uploadList.length < 6; const check = this.orderGoods.uploadList.length < 6;
if (!check) { if (!check) {
this.$Notice.warning({ this.$Notice.warning({

View File

@ -240,7 +240,7 @@ export default {
complainResult (sn) { // complainResult (sn) { //
}, },
delOrder (sn) { delOrder (sn) { //
this.$Modal.confirm({ this.$Modal.confirm({
title: '删除订单', title: '删除订单',
content: '<p>确认删除当前订单吗?</p>', content: '<p>确认删除当前订单吗?</p>',
@ -255,7 +255,7 @@ export default {
onCancel: () => {} onCancel: () => {}
}); });
}, },
getList () { getList () { //
this.spinShow = true; this.spinShow = true;
let params = JSON.parse(JSON.stringify(this.params)) let params = JSON.parse(JSON.stringify(this.params))
if (params.orderStatus === 'ALL') { if (params.orderStatus === 'ALL') {
@ -269,11 +269,11 @@ 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()
@ -289,7 +289,7 @@ export default {
} }
}) })
}, },
sureCancel () { sureCancel () { //
cancelOrder(this.cancelParams).then(res => { cancelOrder(this.cancelParams).then(res => {
if (res.success) { if (res.success) {
this.$Message.success('取消订单成功') this.$Message.success('取消订单成功')

View File

@ -128,7 +128,7 @@ export default {
} }
}) })
}, },
traces () { traces () { //
getTraces(this.$route.query.sn).then(res => { getTraces(this.$route.query.sn).then(res => {
if (res.success) { if (res.success) {
this.logistics = res.result this.logistics = res.result