Commit 67b65496 by damodmg

修改编辑

parent d8c534bf
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><link rel=stylesheet type=text/css href=./static/css/iconfont.css><link rel=stylesheet type=text/css href=./static/css/common.css><link rel="shortcut icon" type=image/x-icon href=./static/img/favicon.ico><title>微商城</title><link href=./static/css/app.57bf9b77302dccdc08fd2ca89e3a0fd1.css rel=stylesheet></head><body><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.5.2/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/elementUI/index.2.5.4.js></script><script src=//web-1251519181.file.myqcloud.com/components/header.2.0.18.js></script><script src=//web-1251519181.file.myqcloud.com/components/aside-menu.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/store-linkage.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/card.2.0.01.js></script><script src=//web-1251519181.file.myqcloud.com/components/export-excel.2.0.02.js></script><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.2a66e15144de1c0f565b.js></script><script type=text/javascript src=./static/js/app.6ca9c8b206e98ba00217.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><link rel=stylesheet type=text/css href=./static/css/iconfont.css><link rel=stylesheet type=text/css href=./static/css/common.css><link rel="shortcut icon" type=image/x-icon href=./static/img/favicon.ico><title>微商城</title><link href=./static/css/app.0f43542189e8054d6ab4530b3d6b9955.css rel=stylesheet></head><body><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.5.2/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/elementUI/index.2.5.4.js></script><script src=//web-1251519181.file.myqcloud.com/components/header.2.0.18.js></script><script src=//web-1251519181.file.myqcloud.com/components/aside-menu.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/store-linkage.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/card.2.0.01.js></script><script src=//web-1251519181.file.myqcloud.com/components/export-excel.2.0.02.js></script><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.2a66e15144de1c0f565b.js></script><script type=text/javascript src=./static/js/app.7a18759e539f6aaa96ee.js></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -384,22 +384,29 @@ export default {
};
request.post('/api-integral-mall/get-integral-mall-pro', qs.stringify(params)).then(res => {
if (res.data.errorCode === 0) {
this.giftForm = res.data.result;
this.giftForm.memberGrade = res.data.result.memberGrade.split(',');
// 商品主图
// let imgList = []
// if(res.data.result.giftImageUrls) {
// imgList = res.data.result.giftImageUrls.split(',')
// }else{
// imgList=[]
// }
// let imgCodeList = []
// if(res.data.result.giftImageFiledCodes) {
// let imgCodeList = res.data.result.giftImageFiledCodes.split(',')
// }else{
// imgCodeList = []
// }
this.giftForm.images = res.data.result.images;
this.giftForm.proName = res.data.result.proName; //名称
this.giftForm.proCategoryId = res.data.result.proCategoryId; //分类
// this.giftForm = res.data.result;
//spu
this.giftForm.proCode = res.data.result.proCode; //编码
this.giftForm.integralCost = res.data.result.integralCost; //积分
this.giftForm.cashCost = res.data.result.cashCost; //现金
this.giftForm.virtualStock = res.data.result.virtualStock; //库存
this.giftForm.proCodeQuery = res.data.result.proCodeQuery; //条形码
this.giftForm.costValue = res.data.result.costValue; //礼品成本
this.giftForm.detailDescription = res.data.result.detailDescription; //图文详情
this.giftForm.memberGrade = res.data.result.memberGrade.split(','); //适用会员
if (res.data.result.images) {
//主图
for (let item of res.data.result.images) {
this.giftForm.images.push({
imageUrl: item.imageUrl,
imageCode: item.imageFieldCode
});
}
}
//限兑
if (res.data.result.limitTimes === -1) {
this.giftForm.limitTimesStatus = false;
......@@ -411,7 +418,23 @@ export default {
} else {
this.refundTypeStatus = false;
}
//不分时间段
// 兑换日期
this.giftForm.exchangeDateType = res.data.result.exchangeDateType;
if (this.giftForm.exchangeDateType === 2) {
this.giftForm.exchangeFixDate = [];
this.giftForm.exchangeFixDate.push(res.data.result.exchangeFixDateBegin);
this.giftForm.exchangeFixDate.push(res.data.result.exchangeFixDateEnd);
} else if (this.giftForm.exchangeDateType === 3) {
this.giftForm.exchangeDateDayArr = res.data.result.exchangeDateDay.split(',');
this.giftForm.exchangeDateWeekArr = [];
} else if (this.giftForm.exchangeDateType === 4) {
this.giftForm.exchangeDateWeekArr = res.data.result.exchangeDateWeek.split(',');
this.giftForm.exchangeDateDayArr = [];
}
// 兑换时段
this.giftForm.exchangeTimeType = res.data.result.exchangeTimeType;
//部分时间段
let timeDate;
let timeRangeList;
if (this.giftForm.exchangeTimeType === 2) {
......@@ -424,19 +447,17 @@ export default {
}
this.giftForm.timeRangeList = timeRangeList;
}
// 固定日期
if (this.giftForm.exchangeDateType === 2) {
this.giftForm.exchangeFixDate = [];
this.giftForm.exchangeFixDate.push(res.data.result.exchangeFixDateBegin);
this.giftForm.exchangeFixDate.push(res.data.result.exchangeFixDateEnd);
} else if (this.giftForm.exchangeDateType === 3) {
this.giftForm.exchangeDateDayArr = res.data.result.exchangeDateDay.split(',');
this.giftForm.exchangeDateWeekArr = [];
} else if (this.giftForm.exchangeDateType === 4) {
this.giftForm.exchangeDateWeekArr = res.data.result.exchangeDateWeek.split(',');
this.giftForm.exchangeDateDayArr = [];
//显示状态
this.giftForm.proShowStatus = res.data.result.proShowStatus;
//上架时间
this.giftForm.releaseType = res.data.result.releaseType;
if (this.giftForm.releaseType === 2) {
this.giftForm.limitTimeBegin = res.data.result.limitTimeBegin;
} else {
this.giftForm.limitTimeBegin = '';
}
//配送方式
this.giftForm.changeType = res.data.result.changeType;
// 规格列表
if (res.data.result.giftProStandardJson) {
this.giftProStandardJson = JSON.parse(res.data.result.giftProStandardJson);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment