添加注释
parent
f97282ad44
commit
4ef8287802
|
@ -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'}
|
||||||
],
|
],
|
||||||
|
|
|
@ -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()
|
||||||
|
|
|
@ -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 () {}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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));
|
||||||
|
|
|
@ -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()
|
||||||
|
|
|
@ -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;
|
||||||
})
|
})
|
||||||
|
|
|
@ -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({
|
||||||
|
|
|
@ -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({
|
||||||
|
|
|
@ -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('取消订单成功')
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue