添加注释

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

View File

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

View File

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

View File

@ -79,7 +79,7 @@ export default {
};
},
methods: {
save () {
save () { //
this.$refs.form.validate((valid) => {
if (valid) {
const params = JSON.parse(JSON.stringify(this.formData));

View File

@ -133,7 +133,7 @@ export default {
});
window.open(routeUrl.href, '_blank');
},
getList () {
getList () { //
this.spinShow = true;
let params = JSON.parse(JSON.stringify(this.params))
afterSaleList(params).then(res => {
@ -144,11 +144,11 @@ export default {
}
});
},
changePageNum (val) {
changePageNum (val) { //
this.params.pageNumber = val;
this.getList()
},
changePageSize (val) {
changePageSize (val) { //
this.pageNumber = 1;
this.params.pageSize = val;
this.getList()

View File

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

View File

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

View File

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

View File

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

View File

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