Merge branch 'master' of gitee.com:beijing_hongye_huicheng/lilishop-ui
commit
3d1391e305
|
@ -99,7 +99,7 @@ export default {
|
||||||
if (this.id) {
|
if (this.id) {
|
||||||
editMemberAddress(params).then((res) => {
|
editMemberAddress(params).then((res) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.$Message.success('编辑地址成功');
|
this.$Message.success('编辑地址成功');
|
||||||
this.$emit('change', true);
|
this.$emit('change', true);
|
||||||
this.hide();
|
this.hide();
|
||||||
|
@ -108,7 +108,7 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
newMemberAddress(params).then((res) => {
|
newMemberAddress(params).then((res) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.$Message.success('新增地址成功');
|
this.$Message.success('新增地址成功');
|
||||||
this.$emit('change', true);
|
this.$emit('change', true);
|
||||||
this.hide();
|
this.hide();
|
||||||
|
@ -121,7 +121,7 @@ export default {
|
||||||
getAddrById (id) {
|
getAddrById (id) {
|
||||||
// 获取地址详情
|
// 获取地址详情
|
||||||
getAddrDetail(id).then((res) => {
|
getAddrDetail(id).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
const data = res.result;
|
const data = res.result;
|
||||||
data.address = res.result.consigneeAddressPath.replace(/,/g, ' ');
|
data.address = res.result.consigneeAddressPath.replace(/,/g, ' ');
|
||||||
|
@ -131,7 +131,6 @@ export default {
|
||||||
},
|
},
|
||||||
getAddress (item) {
|
getAddress (item) {
|
||||||
// 获取地图选择信息
|
// 获取地图选择信息
|
||||||
console.log(item);
|
|
||||||
this.mapMsg = item;
|
this.mapMsg = item;
|
||||||
this.$set(this.formData, 'address', item.addr);
|
this.$set(this.formData, 'address', item.addr);
|
||||||
this.$set(this.formData, 'consigneeAddressIdPath', item.addrId);
|
this.$set(this.formData, 'consigneeAddressIdPath', item.addrId);
|
||||||
|
|
|
@ -164,7 +164,7 @@ export default {
|
||||||
// 删除商品
|
// 删除商品
|
||||||
delGoods (id) {
|
delGoods (id) {
|
||||||
delCartGoods({ skuIds: id }).then((res) => {
|
delCartGoods({ skuIds: id }).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.$Message.success('删除成功');
|
this.$Message.success('删除成功');
|
||||||
this.getCartList();
|
this.getCartList();
|
||||||
cartCount().then(res => {
|
cartCount().then(res => {
|
||||||
|
@ -231,7 +231,7 @@ export default {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
addCartGoods(params).then(res => {
|
addCartGoods(params).then(res => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.$Message.success('商品已成功添加到购物车')
|
this.$Message.success('商品已成功添加到购物车')
|
||||||
} else {
|
} else {
|
||||||
this.$Message.warning(res.message);
|
this.$Message.warning(res.message);
|
||||||
|
|
|
@ -224,7 +224,7 @@ export default {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
addCartGoods(params).then(res => {
|
addCartGoods(params).then(res => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.$router.push({path: '/shoppingCart', query: {detail: this.skuDetail, count: this.count}});
|
this.$router.push({path: '/shoppingCart', query: {detail: this.skuDetail, count: this.count}});
|
||||||
} else {
|
} else {
|
||||||
this.$Message.warning(res.message);
|
this.$Message.warning(res.message);
|
||||||
|
@ -240,7 +240,7 @@ export default {
|
||||||
this.loading1 = true;
|
this.loading1 = true;
|
||||||
addCartGoods(params).then(res => {
|
addCartGoods(params).then(res => {
|
||||||
this.loading1 = false;
|
this.loading1 = false;
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.$router.push({path: '/pay', query: {way: 'BUY_NOW'}});
|
this.$router.push({path: '/pay', query: {way: 'BUY_NOW'}});
|
||||||
} else {
|
} else {
|
||||||
this.$Message.warning(res.message);
|
this.$Message.warning(res.message);
|
||||||
|
|
|
@ -144,13 +144,13 @@ export default {
|
||||||
getList () { // 获取评论列表
|
getList () { // 获取评论列表
|
||||||
this.commentParams.goodsId = this.skuDetail.goodsId;
|
this.commentParams.goodsId = this.skuDetail.goodsId;
|
||||||
goodsComment(this.commentParams).then(res => {
|
goodsComment(this.commentParams).then(res => {
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.commentList = res.result.records;
|
this.commentList = res.result.records;
|
||||||
this.commentTotal = res.result.total;
|
this.commentTotal = res.result.total;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
goodsCommentNum(this.skuDetail.goodsId).then(res => {
|
goodsCommentNum(this.skuDetail.goodsId).then(res => {
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.commentTypeNum = res.result;
|
this.commentTypeNum = res.result;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -72,7 +72,7 @@ export default {
|
||||||
if (this.useApi) {
|
if (this.useApi) {
|
||||||
handleRegion(params).then((res) => {
|
handleRegion(params).then((res) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.showMap = false;
|
this.showMap = false;
|
||||||
this.addrContent.addr = res.result.name.replace(/,/g, ' ');
|
this.addrContent.addr = res.result.name.replace(/,/g, ' ');
|
||||||
this.addrContent.addrId = res.result.id;
|
this.addrContent.addrId = res.result.id;
|
||||||
|
|
|
@ -358,7 +358,7 @@ export default {
|
||||||
getFilterList (params) {
|
getFilterList (params) {
|
||||||
// 筛选、分类 列表
|
// 筛选、分类 列表
|
||||||
APIGoods.filterList(params).then((res) => {
|
APIGoods.filterList(params).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
const data = res.result;
|
const data = res.result;
|
||||||
this.tagsContent = [{
|
this.tagsContent = [{
|
||||||
key: '品牌',
|
key: '品牌',
|
||||||
|
|
|
@ -221,7 +221,7 @@ export default {
|
||||||
content: '<p>确定要删除该商品吗?</p>',
|
content: '<p>确定要删除该商品吗?</p>',
|
||||||
onOk: () => {
|
onOk: () => {
|
||||||
APICart.delCartGoods({ skuIds: idArr.toString() }).then((res) => {
|
APICart.delCartGoods({ skuIds: idArr.toString() }).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.$Message.success('删除成功');
|
this.$Message.success('删除成功');
|
||||||
this.getCartList();
|
this.getCartList();
|
||||||
} else {
|
} else {
|
||||||
|
@ -237,7 +237,7 @@ export default {
|
||||||
content: '<p>确定要清空购物车吗?清空后不可恢复</p>',
|
content: '<p>确定要清空购物车吗?清空后不可恢复</p>',
|
||||||
onOk: () => {
|
onOk: () => {
|
||||||
APICart.clearCart().then((res) => {
|
APICart.clearCart().then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.$Message.success('清空购物车成功');
|
this.$Message.success('清空购物车成功');
|
||||||
this.getCartList();
|
this.getCartList();
|
||||||
} else {
|
} else {
|
||||||
|
@ -264,7 +264,7 @@ export default {
|
||||||
console.log(val, id);
|
console.log(val, id);
|
||||||
APICart.setCartGoodsNum({ skuId: id, num: val }).then((res) => {
|
APICart.setCartGoodsNum({ skuId: id, num: val }).then((res) => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.getCartList();
|
this.getCartList();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -288,7 +288,7 @@ export default {
|
||||||
|
|
||||||
async receiveShopCoupon (item) { // 领取优惠券
|
async receiveShopCoupon (item) { // 领取优惠券
|
||||||
let res = await APIMember.receiveCoupon(item.id)
|
let res = await APIMember.receiveCoupon(item.id)
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.$set(item, 'disabled', true)
|
this.$set(item, 'disabled', true)
|
||||||
this.$Message.success('领取成功')
|
this.$Message.success('领取成功')
|
||||||
} else {
|
} else {
|
||||||
|
@ -301,7 +301,7 @@ export default {
|
||||||
try {
|
try {
|
||||||
let res = await APICart.cartGoodsAll();
|
let res = await APICart.cartGoodsAll();
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.cartList = res.result.cartList;
|
this.cartList = res.result.cartList;
|
||||||
this.priceDetailDTO = res.result.priceDetailDTO;
|
this.priceDetailDTO = res.result.priceDetailDTO;
|
||||||
this.skuList = res.result.skuList;
|
this.skuList = res.result.skuList;
|
||||||
|
|
|
@ -70,7 +70,7 @@ export default {
|
||||||
const params = this.$route.query
|
const params = this.$route.query
|
||||||
goodsSkuDetail(params).then((res) => {
|
goodsSkuDetail(params).then((res) => {
|
||||||
this.isLoading = false;
|
this.isLoading = false;
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
const result = res.result;
|
const result = res.result;
|
||||||
const cateName = res.result.categoryName;
|
const cateName = res.result.categoryName;
|
||||||
const cateId = result.data.categoryPath.split(',');
|
const cateId = result.data.categoryPath.split(',');
|
||||||
|
|
|
@ -170,7 +170,7 @@ export default {
|
||||||
apiGoods.goodsList(this.params)
|
apiGoods.goodsList(this.params)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.goodsList = res.result.content;
|
this.goodsList = res.result.content;
|
||||||
this.total = res.result.totalElements;
|
this.total = res.result.totalElements;
|
||||||
}
|
}
|
||||||
|
|
|
@ -185,7 +185,7 @@ export default {
|
||||||
code: [{ required: true, message: '请输入手机验证码' }]
|
code: [{ required: true, message: '请输入手机验证码' }]
|
||||||
},
|
},
|
||||||
codeMsg: '发送验证码', // 验证码文字
|
codeMsg: '发送验证码', // 验证码文字
|
||||||
interval: '', // 定时器
|
interval: null, // 定时器
|
||||||
time: 60, // 倒计时
|
time: 60, // 倒计时
|
||||||
logoImg: '' // logo图片
|
logoImg: '' // logo图片
|
||||||
};
|
};
|
||||||
|
@ -201,12 +201,12 @@ export default {
|
||||||
let data = JSON.parse(JSON.stringify(this.formSms));
|
let data = JSON.parse(JSON.stringify(this.formSms));
|
||||||
apiLogin.smsLogin(data).then((res) => {
|
apiLogin.smsLogin(data).then((res) => {
|
||||||
this.$refs.verify.show = false;
|
this.$refs.verify.show = false;
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.$Message.success('登录成功');
|
this.$Message.success('登录成功');
|
||||||
storage.setItem('accessToken', res.result.accessToken);
|
storage.setItem('accessToken', res.result.accessToken);
|
||||||
storage.setItem('refreshToken', res.result.refreshToken);
|
storage.setItem('refreshToken', res.result.refreshToken);
|
||||||
apiLogin.getMemberMsg().then((res) => {
|
apiLogin.getMemberMsg().then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
storage.setItem('userInfo', res.result);
|
storage.setItem('userInfo', res.result);
|
||||||
let query = this.$route.query;
|
let query = this.$route.query;
|
||||||
if (query.rePath) {
|
if (query.rePath) {
|
||||||
|
@ -241,11 +241,10 @@ export default {
|
||||||
verificationEnums: 'LOGIN'
|
verificationEnums: 'LOGIN'
|
||||||
};
|
};
|
||||||
sendSms(params).then(res => {
|
sendSms(params).then(res => {
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.$Message.success('验证码发送成功');
|
this.$Message.success('验证码发送成功');
|
||||||
let that = this;
|
let that = this;
|
||||||
this.interval = setInterval(() => {
|
this.interval = setInterval(() => {
|
||||||
console.log(that.time);
|
|
||||||
that.time--;
|
that.time--;
|
||||||
if (that.time === 0) {
|
if (that.time === 0) {
|
||||||
that.time = 60;
|
that.time = 60;
|
||||||
|
@ -271,13 +270,13 @@ export default {
|
||||||
this.$refs.verify.show = false;
|
this.$refs.verify.show = false;
|
||||||
this.$Spin.show();
|
this.$Spin.show();
|
||||||
apiLogin.login(data).then((res) => {
|
apiLogin.login(data).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.$Message.success('登录成功');
|
this.$Message.success('登录成功');
|
||||||
storage.setItem('accessToken', res.result.accessToken);
|
storage.setItem('accessToken', res.result.accessToken);
|
||||||
storage.setItem('refreshToken', res.result.refreshToken);
|
storage.setItem('refreshToken', res.result.refreshToken);
|
||||||
apiLogin.getMemberMsg().then((res) => {
|
apiLogin.getMemberMsg().then((res) => {
|
||||||
this.$Spin.hide();
|
this.$Spin.hide();
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
storage.setItem('userInfo', res.result);
|
storage.setItem('userInfo', res.result);
|
||||||
let query = this.$route.query;
|
let query = this.$route.query;
|
||||||
if (query.rePath) {
|
if (query.rePath) {
|
||||||
|
@ -313,12 +312,12 @@ export default {
|
||||||
if (uuid) {
|
if (uuid) {
|
||||||
storage.setItem('uuid', uuid);
|
storage.setItem('uuid', uuid);
|
||||||
loginCallback(uuid).then(res => {
|
loginCallback(uuid).then(res => {
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
const result = res.result;
|
const result = res.result;
|
||||||
storage.setItem('accessToken', result.accessToken);
|
storage.setItem('accessToken', result.accessToken);
|
||||||
storage.setItem('refreshToken', result.refreshToken);
|
storage.setItem('refreshToken', result.refreshToken);
|
||||||
apiLogin.getMemberMsg().then((res) => {
|
apiLogin.getMemberMsg().then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
storage.setItem('userInfo', res.result);
|
storage.setItem('userInfo', res.result);
|
||||||
let query = this.$route.query;
|
let query = this.$route.query;
|
||||||
if (query.rePath) {
|
if (query.rePath) {
|
||||||
|
|
|
@ -120,7 +120,7 @@ export default {
|
||||||
},
|
},
|
||||||
getGoodsList () { // 商品信息
|
getGoodsList () { // 商品信息
|
||||||
goodsList(this.params).then((res) => {
|
goodsList(this.params).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.goodsList = res.result.content;
|
this.goodsList = res.result.content;
|
||||||
this.total = res.result.totalElements;
|
this.total = res.result.totalElements;
|
||||||
}
|
}
|
||||||
|
|
|
@ -147,7 +147,7 @@ export default {
|
||||||
let data = JSON.parse(JSON.stringify(this.formRegist));
|
let data = JSON.parse(JSON.stringify(this.formRegist));
|
||||||
data.password = md5(data.password);
|
data.password = md5(data.password);
|
||||||
apiLogin.regist(data).then((res) => {
|
apiLogin.regist(data).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.$Message.success('注册成功!');
|
this.$Message.success('注册成功!');
|
||||||
this.$router.push('login');
|
this.$router.push('login');
|
||||||
} else {
|
} else {
|
||||||
|
@ -172,7 +172,7 @@ export default {
|
||||||
verificationEnums: 'REGISTER'
|
verificationEnums: 'REGISTER'
|
||||||
};
|
};
|
||||||
sendSms(params).then(res => {
|
sendSms(params).then(res => {
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.$Message.success('验证码发送成功');
|
this.$Message.success('验证码发送成功');
|
||||||
let that = this;
|
let that = this;
|
||||||
this.interval = setInterval(() => {
|
this.interval = setInterval(() => {
|
||||||
|
|
|
@ -160,7 +160,7 @@ export default {
|
||||||
let data = JSON.parse(JSON.stringify(this.formFirst));
|
let data = JSON.parse(JSON.stringify(this.formFirst));
|
||||||
apiLogin.validateCode(data).then((res) => {
|
apiLogin.validateCode(data).then((res) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
// this.$Message.success('');
|
// this.$Message.success('');
|
||||||
this.step = 1;
|
this.step = 1;
|
||||||
} else {
|
} else {
|
||||||
|
@ -186,7 +186,7 @@ export default {
|
||||||
apiLogin.resetPassword(params).then(res => {
|
apiLogin.resetPassword(params).then(res => {
|
||||||
this.loading1 = false;
|
this.loading1 = false;
|
||||||
console.log(res);
|
console.log(res);
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.$Message.success('修改密码成功');
|
this.$Message.success('修改密码成功');
|
||||||
this.$router.push('login');
|
this.$router.push('login');
|
||||||
}
|
}
|
||||||
|
@ -209,7 +209,7 @@ export default {
|
||||||
verificationEnums: 'FIND_USER'
|
verificationEnums: 'FIND_USER'
|
||||||
};
|
};
|
||||||
sendSms(params).then(res => {
|
sendSms(params).then(res => {
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.$Message.success('验证码发送成功');
|
this.$Message.success('验证码发送成功');
|
||||||
let that = this;
|
let that = this;
|
||||||
this.interval = setInterval(() => {
|
this.interval = setInterval(() => {
|
||||||
|
|
|
@ -88,14 +88,14 @@ export default {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
if (this.$route.query.id) {
|
if (this.$route.query.id) {
|
||||||
editMemberAddress(params).then((res) => {
|
editMemberAddress(params).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.$router.push('/home/MyAddress');
|
this.$router.push('/home/MyAddress');
|
||||||
}
|
}
|
||||||
}).catch(() => { this.loading = false; });
|
}).catch(() => { this.loading = false; });
|
||||||
} else {
|
} else {
|
||||||
newMemberAddress(params).then((res) => {
|
newMemberAddress(params).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.$router.push('/home/MyAddress');
|
this.$router.push('/home/MyAddress');
|
||||||
}
|
}
|
||||||
|
@ -107,7 +107,7 @@ export default {
|
||||||
getAddrById (id) {
|
getAddrById (id) {
|
||||||
// 获取地址详情
|
// 获取地址详情
|
||||||
getAddrDetail(id).then((res) => {
|
getAddrDetail(id).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
const data = res.result;
|
const data = res.result;
|
||||||
data.address = res.result.consigneeAddressPath.replace(/,/g, ' ');
|
data.address = res.result.consigneeAddressPath.replace(/,/g, ' ');
|
||||||
|
|
|
@ -58,7 +58,7 @@ export default {
|
||||||
content: '你确定删除这个收货地址',
|
content: '你确定删除这个收货地址',
|
||||||
onOk: () => {
|
onOk: () => {
|
||||||
delMemberAddress(id).then((res) => {
|
delMemberAddress(id).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.$Message.success('删除成功');
|
this.$Message.success('删除成功');
|
||||||
this.getAddrList();
|
this.getAddrList();
|
||||||
}
|
}
|
||||||
|
@ -73,7 +73,7 @@ export default {
|
||||||
// 获取地址列表
|
// 获取地址列表
|
||||||
memberAddress().then((res) => {
|
memberAddress().then((res) => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.list = res.result.records;
|
this.list = res.result.records;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -311,7 +311,7 @@ export default {
|
||||||
content: '你确定删除这个收货地址',
|
content: '你确定删除这个收货地址',
|
||||||
onOk: () => {
|
onOk: () => {
|
||||||
delMemberAddress(item.id).then((res) => {
|
delMemberAddress(item.id).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.$Message.success('删除成功');
|
this.$Message.success('删除成功');
|
||||||
this.getAddress();
|
this.getAddress();
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
<span v-if="storeDisable == 'OPEN'">申请已通过,请联系管理员</span>
|
<span v-if="storeDisable == 'OPEN'">申请已通过,请联系管理员</span>
|
||||||
<span v-if="storeDisable == 'CLOSED'">店铺已关闭,重申请联系管理员</span>
|
<span v-if="storeDisable == 'CLOSED'">店铺已关闭,重申请联系管理员</span>
|
||||||
</div>
|
</div>
|
||||||
<Button v-if="currentIndex == 3" @click="currentIndex = 2">返回</Button>
|
<Button v-if="currentIndex == 3" @click="$router.push('/')">返回</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Modal
|
<Modal
|
||||||
|
|
|
@ -168,7 +168,7 @@ function getTokenDebounce () {
|
||||||
lock = true
|
lock = true
|
||||||
let oldRefreshToken = Storage.getItem('refreshToken');
|
let oldRefreshToken = Storage.getItem('refreshToken');
|
||||||
handleRefreshToken(oldRefreshToken).then(res => {
|
handleRefreshToken(oldRefreshToken).then(res => {
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
let {
|
let {
|
||||||
accessToken,
|
accessToken,
|
||||||
refreshToken
|
refreshToken
|
||||||
|
|
|
@ -125,7 +125,7 @@ function getTokenDebounce() {
|
||||||
lock = true
|
lock = true
|
||||||
let oldRefreshToken = getStore("refreshToken");
|
let oldRefreshToken = getStore("refreshToken");
|
||||||
handleRefreshToken(oldRefreshToken).then(res => {
|
handleRefreshToken(oldRefreshToken).then(res => {
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
let {
|
let {
|
||||||
accessToken,
|
accessToken,
|
||||||
refreshToken
|
refreshToken
|
||||||
|
|
|
@ -14,7 +14,9 @@ $theme_color: #804ed1;
|
||||||
border-radius: 1em;
|
border-radius: 1em;
|
||||||
background-color: rgba(50,50,50,.1);
|
background-color: rgba(50,50,50,.1);
|
||||||
}
|
}
|
||||||
|
.ivu-table table{
|
||||||
|
width: 100%!important;
|
||||||
|
}
|
||||||
|
|
||||||
.flex{
|
.flex{
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
|
|
|
@ -133,7 +133,7 @@ export default {
|
||||||
pageClientType: "PC",
|
pageClientType: "PC",
|
||||||
};
|
};
|
||||||
API_floor.getHomeList(params).then((res) => {
|
API_floor.getHomeList(params).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.success) {
|
||||||
this.templateList = res.result.records;
|
this.templateList = res.result.records;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -142,7 +142,7 @@ export default {
|
||||||
releaseTemplate(id) {
|
releaseTemplate(id) {
|
||||||
//发布模板
|
//发布模板
|
||||||
API_floor.releasePageHome(id).then((res) => {
|
API_floor.releasePageHome(id).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.$Message.success("发布模板成功");
|
this.$Message.success("发布模板成功");
|
||||||
this.getTemplateList();
|
this.getTemplateList();
|
||||||
}
|
}
|
||||||
|
@ -155,7 +155,7 @@ export default {
|
||||||
content: "<p>确定删除该模板吗?</p>",
|
content: "<p>确定删除该模板吗?</p>",
|
||||||
onOk: () => {
|
onOk: () => {
|
||||||
API_floor.removePageHome(id).then((res) => {
|
API_floor.removePageHome(id).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.$Message.success("删除模板成功");
|
this.$Message.success("删除模板成功");
|
||||||
this.getTemplateList();
|
this.getTemplateList();
|
||||||
}
|
}
|
||||||
|
|
|
@ -153,7 +153,7 @@ export default {
|
||||||
pageClientType: "PC",
|
pageClientType: "PC",
|
||||||
};
|
};
|
||||||
API_floor.getHomeList(params).then((res) => {
|
API_floor.getHomeList(params).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.success) {
|
||||||
this.list = res.result.records;
|
this.list = res.result.records;
|
||||||
this.list.forEach(e => {
|
this.list.forEach(e => {
|
||||||
if (e.pageShow === 'OPEN') {
|
if (e.pageShow === 'OPEN') {
|
||||||
|
@ -169,7 +169,7 @@ export default {
|
||||||
releaseTemplate(id) {
|
releaseTemplate(id) {
|
||||||
//发布模板
|
//发布模板
|
||||||
API_floor.releasePageHome(id).then((res) => {
|
API_floor.releasePageHome(id).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.$Message.success("发布模板成功");
|
this.$Message.success("发布模板成功");
|
||||||
this.getTemplateList();
|
this.getTemplateList();
|
||||||
}
|
}
|
||||||
|
@ -178,7 +178,7 @@ export default {
|
||||||
|
|
||||||
delTemplate(id) {
|
delTemplate(id) {
|
||||||
API_floor.removePageHome(id).then((res) => {
|
API_floor.removePageHome(id).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.$Message.success("删除模板成功");
|
this.$Message.success("删除模板成功");
|
||||||
this.getTemplateList();
|
this.getTemplateList();
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,7 +51,7 @@ export default {
|
||||||
pageData:modelForm,
|
pageData:modelForm,
|
||||||
}
|
}
|
||||||
API_floor.updateHome(this.$route.query.id, data).then(res=> {
|
API_floor.updateHome(this.$route.query.id, data).then(res=> {
|
||||||
if(res.code === 200) {
|
if(res.success) {
|
||||||
this.$Message.success('保存模板成功');
|
this.$Message.success('保存模板成功');
|
||||||
} else {
|
} else {
|
||||||
this.$Message.error(res.message)
|
this.$Message.error(res.message)
|
||||||
|
@ -63,7 +63,7 @@ export default {
|
||||||
},
|
},
|
||||||
getTemplateItem(id){ // 获取模板数据
|
getTemplateItem(id){ // 获取模板数据
|
||||||
API_floor.getHomeData(id).then(res => {
|
API_floor.getHomeData(id).then(res => {
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
let pageData = res.result.pageData;
|
let pageData = res.result.pageData;
|
||||||
if(pageData) {
|
if(pageData) {
|
||||||
pageData = JSON.parse(pageData);
|
pageData = JSON.parse(pageData);
|
||||||
|
|
|
@ -136,7 +136,7 @@ export default {
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.num = 50;
|
this.num = 50;
|
||||||
if (res.code == 200) {
|
if (res.success) {
|
||||||
this.num = 80;
|
this.num = 80;
|
||||||
/**制作保存成功动画¸ */
|
/**制作保存成功动画¸ */
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
@ -166,7 +166,7 @@ export default {
|
||||||
API_Other.setHomeSetup(submitWay)
|
API_Other.setHomeSetup(submitWay)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.num = 50;
|
this.num = 50;
|
||||||
if (res.code == 200) {
|
if (res.success) {
|
||||||
this.num = 80;
|
this.num = 80;
|
||||||
/**制作保存成功动画¸ */
|
/**制作保存成功动画¸ */
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|
|
@ -8,20 +8,8 @@
|
||||||
@mousewheel="handlescroll"
|
@mousewheel="handlescroll"
|
||||||
class="tags-outer-scroll-con"
|
class="tags-outer-scroll-con"
|
||||||
>
|
>
|
||||||
<!-- <div class="close-all-tag-con">
|
|
||||||
<Dropdown transfer @on-click="handleTagsOption">
|
|
||||||
<Button size="small" type="primary">
|
|
||||||
<Icon type="md-arrow-dropdown"></Icon>
|
|
||||||
</Button>
|
|
||||||
<DropdownMenu slot="list">
|
|
||||||
<DropdownItem name="clearAll">{{ $t('closeAll') }}</DropdownItem>
|
|
||||||
<DropdownItem name="clearOthers">{{ $t('closeOthers') }}</DropdownItem>
|
|
||||||
</DropdownMenu>
|
|
||||||
</Dropdown>
|
|
||||||
</div> -->
|
|
||||||
|
|
||||||
<ul v-show="visible" :style="{left: contextMenuLeft + 'px', top: contextMenuTop + 'px'}" class="contextmenu">
|
<ul v-show="visible" :style="{left: contextMenuLeft + 'px', top: contextMenuTop + 'px'}" class="contextmenu">
|
||||||
<li v-for="(item, key) of menuList" @click="handleTagsOption(key)" :key="key">{{item}}</li>
|
<li v-for="(item, key) of actionList" @click="handleTagsOption(key)" :key="key">{{item}}</li>
|
||||||
</ul>
|
</ul>
|
||||||
<div ref="scrollBody" class="tags-inner-scroll-body" :style="{left: tagBodyLeft + 'px'}">
|
<div ref="scrollBody" class="tags-inner-scroll-body" :style="{left: tagBodyLeft + 'px'}">
|
||||||
<transition-group name="taglist-moving-animation">
|
<transition-group name="taglist-moving-animation">
|
||||||
|
|
|
@ -430,7 +430,7 @@ export default {
|
||||||
content: "<p>确认禁用此会员?</p>",
|
content: "<p>确认禁用此会员?</p>",
|
||||||
onOk: () => {
|
onOk: () => {
|
||||||
API_Member.updateMemberStatus(params).then((res) => {
|
API_Member.updateMemberStatus(params).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.$Message.success("禁用成功");
|
this.$Message.success("禁用成功");
|
||||||
this.getData();
|
this.getData();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -421,7 +421,7 @@
|
||||||
content: '<p>确认禁用此会员?</p>',
|
content: '<p>确认禁用此会员?</p>',
|
||||||
onOk: () => {
|
onOk: () => {
|
||||||
API_Member.updateMemberStatus(params).then(res => {
|
API_Member.updateMemberStatus(params).then(res => {
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.$Message.success('禁用成功');
|
this.$Message.success('禁用成功');
|
||||||
this.getData()
|
this.getData()
|
||||||
} else {
|
} else {
|
||||||
|
@ -446,7 +446,7 @@
|
||||||
content: '<p>启用用此会员?</p>',
|
content: '<p>启用用此会员?</p>',
|
||||||
onOk: () => {
|
onOk: () => {
|
||||||
API_Member.updateMemberStatus(params).then(res => {
|
API_Member.updateMemberStatus(params).then(res => {
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.$Message.success('禁用成功');
|
this.$Message.success('禁用成功');
|
||||||
this.getData()
|
this.getData()
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -58,7 +58,7 @@ methods: {
|
||||||
townName: this.addrContent.regeocode.addressComponent.township
|
townName: this.addrContent.regeocode.addressComponent.township
|
||||||
}
|
}
|
||||||
getRegion(params).then(res=>{
|
getRegion(params).then(res=>{
|
||||||
if(res.code == 200) {
|
if(res.success) {
|
||||||
this.addrContent.addr = res.result.name.replace(/,/g," ")
|
this.addrContent.addr = res.result.name.replace(/,/g," ")
|
||||||
this.addrContent.addrId = res.result.id
|
this.addrContent.addrId = res.result.id
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
|
|
@ -254,7 +254,7 @@ export default {
|
||||||
content: "<p>您确定要收款吗?线下收款涉及库存变更,需异步进行,等待约一分钟刷新列表查看</p>",
|
content: "<p>您确定要收款吗?线下收款涉及库存变更,需异步进行,等待约一分钟刷新列表查看</p>",
|
||||||
onOk: () => {
|
onOk: () => {
|
||||||
API_Order.orderPay(v.sn).then((res) => {
|
API_Order.orderPay(v.sn).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.$Message.success("收款成功");
|
this.$Message.success("收款成功");
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -389,7 +389,7 @@ export default {
|
||||||
|
|
||||||
pass() {
|
pass() {
|
||||||
API_Shop.pay(this.id).then((res) => {
|
API_Shop.pay(this.id).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.success) {
|
||||||
this.$Message.success(res.message);
|
this.$Message.success(res.message);
|
||||||
this.init();
|
this.init();
|
||||||
}
|
}
|
||||||
|
|
|
@ -761,7 +761,7 @@ export default {
|
||||||
API_Setting.addSmsTemplatePage(this.templateForm)
|
API_Setting.addSmsTemplatePage(this.templateForm)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.$Message.success("添加成功");
|
this.$Message.success("添加成功");
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.templateModalVisible = false;
|
this.templateModalVisible = false;
|
||||||
|
@ -775,7 +775,7 @@ export default {
|
||||||
API_Setting.editSmsTemplatePage(this.templateForm)
|
API_Setting.editSmsTemplatePage(this.templateForm)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.$Message.success("修改成功");
|
this.$Message.success("修改成功");
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.templateModalVisible = false;
|
this.templateModalVisible = false;
|
||||||
|
|
|
@ -124,7 +124,7 @@
|
||||||
if (this.id == undefined) {
|
if (this.id == undefined) {
|
||||||
API_Setting.addSmsSign(this.form).then(res => {
|
API_Setting.addSmsSign(this.form).then(res => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.$Message.success('添加成功');
|
this.$Message.success('添加成功');
|
||||||
this.$router.back()
|
this.$router.back()
|
||||||
}
|
}
|
||||||
|
@ -134,7 +134,7 @@
|
||||||
} else {
|
} else {
|
||||||
API_Setting.editSmsSign(this.form).then(res => {
|
API_Setting.editSmsSign(this.form).then(res => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.$Message.success('修改成功');
|
this.$Message.success('修改成功');
|
||||||
this.$router.back()
|
this.$router.back()
|
||||||
}
|
}
|
||||||
|
@ -150,7 +150,7 @@
|
||||||
getSmsSignDetail() {
|
getSmsSignDetail() {
|
||||||
API_Setting.smsSignDetail(this.id).then(res => {
|
API_Setting.smsSignDetail(this.id).then(res => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
this.form = res.result
|
this.form = res.result
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -84,7 +84,7 @@ export default {
|
||||||
setSetting(this.type, {
|
setSetting(this.type, {
|
||||||
qqConnectSettingItemList: this.formValidate,
|
qqConnectSettingItemList: this.formValidate,
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.success) {
|
||||||
this.$Message.success("保存成功!");
|
this.$Message.success("保存成功!");
|
||||||
this.$Modal.remove();
|
this.$Modal.remove();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -82,7 +82,7 @@ export default {
|
||||||
setSetting(this.type, {
|
setSetting(this.type, {
|
||||||
wechatConnectSettingItems: this.formValidate,
|
wechatConnectSettingItems: this.formValidate,
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.success) {
|
||||||
this.$Message.success("保存成功!");
|
this.$Message.success("保存成功!");
|
||||||
this.$Modal.remove();
|
this.$Modal.remove();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -54,7 +54,7 @@ export default {
|
||||||
|
|
||||||
setupSetting() {
|
setupSetting() {
|
||||||
setSetting(this.type, this.formValidate).then((res) => {
|
setSetting(this.type, this.formValidate).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.success) {
|
||||||
this.$Message.success("保存成功!");
|
this.$Message.success("保存成功!");
|
||||||
} else {
|
} else {
|
||||||
this.$Message.error("保存失败!");
|
this.$Message.error("保存失败!");
|
||||||
|
|
|
@ -104,7 +104,7 @@ export default {
|
||||||
setupSetting() {
|
setupSetting() {
|
||||||
setSetting(this.type, { paymentSupportItems: this.formValidate }).then(
|
setSetting(this.type, { paymentSupportItems: this.formValidate }).then(
|
||||||
(res) => {
|
(res) => {
|
||||||
if (res.code == 200) {
|
if (res.success) {
|
||||||
this.$Message.success("保存成功!");
|
this.$Message.success("保存成功!");
|
||||||
this.$Modal.remove();
|
this.$Modal.remove();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -60,7 +60,7 @@ export default {
|
||||||
|
|
||||||
setupSetting() {
|
setupSetting() {
|
||||||
setSetting(this.type, this.formValidate).then((res) => {
|
setSetting(this.type, this.formValidate).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.success) {
|
||||||
this.$Message.success("保存成功!");
|
this.$Message.success("保存成功!");
|
||||||
} else {
|
} else {
|
||||||
this.$Message.error("保存失败!");
|
this.$Message.error("保存失败!");
|
||||||
|
|
|
@ -103,7 +103,7 @@ export default {
|
||||||
|
|
||||||
setupSetting() {
|
setupSetting() {
|
||||||
setSetting(this.type, this.formValidate).then((res) => {
|
setSetting(this.type, this.formValidate).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.success) {
|
||||||
this.$Message.success("保存成功!");
|
this.$Message.success("保存成功!");
|
||||||
} else {
|
} else {
|
||||||
this.$Message.error("保存失败!");
|
this.$Message.error("保存失败!");
|
||||||
|
|
|
@ -99,7 +99,7 @@ export default {
|
||||||
|
|
||||||
setupSetting() {
|
setupSetting() {
|
||||||
setSetting(this.type, this.formValidate).then((res) => {
|
setSetting(this.type, this.formValidate).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.success) {
|
||||||
this.$Message.success("保存成功!");
|
this.$Message.success("保存成功!");
|
||||||
} else {
|
} else {
|
||||||
this.$Message.error("保存失败!");
|
this.$Message.error("保存失败!");
|
||||||
|
|
|
@ -47,7 +47,7 @@ export default {
|
||||||
|
|
||||||
setupSetting() {
|
setupSetting() {
|
||||||
setSetting(this.type, this.formValidate).then((res) => {
|
setSetting(this.type, this.formValidate).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.success) {
|
||||||
this.$Message.success("保存成功!");
|
this.$Message.success("保存成功!");
|
||||||
} else {
|
} else {
|
||||||
this.$Message.error("保存失败!");
|
this.$Message.error("保存失败!");
|
||||||
|
|
|
@ -71,7 +71,7 @@ export default {
|
||||||
|
|
||||||
setupSetting() {
|
setupSetting() {
|
||||||
setSetting(this.type, this.formValidate).then((res) => {
|
setSetting(this.type, this.formValidate).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.success) {
|
||||||
this.$Message.success("保存成功!");
|
this.$Message.success("保存成功!");
|
||||||
} else {
|
} else {
|
||||||
this.$Message.error("保存失败!");
|
this.$Message.error("保存失败!");
|
||||||
|
|
|
@ -53,7 +53,7 @@ export default {
|
||||||
|
|
||||||
setupSetting() {
|
setupSetting() {
|
||||||
setSetting(this.type, this.formValidate).then((res) => {
|
setSetting(this.type, this.formValidate).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.success) {
|
||||||
this.$Message.success("保存成功!");
|
this.$Message.success("保存成功!");
|
||||||
} else {
|
} else {
|
||||||
this.$Message.error("保存失败!");
|
this.$Message.error("保存失败!");
|
||||||
|
|
|
@ -80,7 +80,7 @@ export default {
|
||||||
|
|
||||||
setupSetting() {
|
setupSetting() {
|
||||||
setSetting(this.type, this.formValidate).then((res) => {
|
setSetting(this.type, this.formValidate).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.success) {
|
||||||
this.$Message.success("保存成功!");
|
this.$Message.success("保存成功!");
|
||||||
} else {
|
} else {
|
||||||
this.$Message.error("保存失败!");
|
this.$Message.error("保存失败!");
|
||||||
|
|
|
@ -50,7 +50,7 @@ export default {
|
||||||
|
|
||||||
setupSetting() {
|
setupSetting() {
|
||||||
setSetting(this.type, this.formValidate).then((res) => {
|
setSetting(this.type, this.formValidate).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.success) {
|
||||||
this.$Message.success("保存成功!");
|
this.$Message.success("保存成功!");
|
||||||
} else {
|
} else {
|
||||||
this.$Message.error("保存失败!");
|
this.$Message.error("保存失败!");
|
||||||
|
|
|
@ -42,7 +42,7 @@ export default {
|
||||||
|
|
||||||
setupSetting() {
|
setupSetting() {
|
||||||
setSetting(this.type, this.formValidate).then((res) => {
|
setSetting(this.type, this.formValidate).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.success) {
|
||||||
this.$Message.success("保存成功!");
|
this.$Message.success("保存成功!");
|
||||||
} else {
|
} else {
|
||||||
this.$Message.error("保存失败!");
|
this.$Message.error("保存失败!");
|
||||||
|
|
|
@ -72,7 +72,7 @@
|
||||||
},
|
},
|
||||||
saveSetting() {
|
saveSetting() {
|
||||||
setSetting("SMS_SETTING", this.form).then((res) => {
|
setSetting("SMS_SETTING", this.form).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.success) {
|
||||||
this.$Message.success("保存成功!");
|
this.$Message.success("保存成功!");
|
||||||
} else {
|
} else {
|
||||||
this.$Message.error("保存失败!");
|
this.$Message.error("保存失败!");
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 4.5 KiB |
|
@ -124,7 +124,7 @@ function getTokenDebounce() {
|
||||||
lock = true
|
lock = true
|
||||||
let oldRefreshToken = getStore("refreshToken");
|
let oldRefreshToken = getStore("refreshToken");
|
||||||
handleRefreshToken(oldRefreshToken).then(res => {
|
handleRefreshToken(oldRefreshToken).then(res => {
|
||||||
if (res.code === 200) {
|
if (res.success) {
|
||||||
let {
|
let {
|
||||||
accessToken,
|
accessToken,
|
||||||
refreshToken
|
refreshToken
|
||||||
|
|
|
@ -14,7 +14,9 @@ $theme_color: #804ed1;
|
||||||
border-radius: 1em;
|
border-radius: 1em;
|
||||||
background-color: rgba(50,50,50,.1);
|
background-color: rgba(50,50,50,.1);
|
||||||
}
|
}
|
||||||
|
.ivu-table table {
|
||||||
|
width: 100%!important;
|
||||||
|
}
|
||||||
|
|
||||||
.flex{
|
.flex{
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
:key="index"
|
:key="index"
|
||||||
>
|
>
|
||||||
<span>{{ item.name }}</span>
|
<span>{{ item.name }}</span>
|
||||||
<span>》</span>
|
<span>></span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<ul v-if="categoryListLevel2 && categoryListLevel2.length > 0">
|
<ul v-if="categoryListLevel2 && categoryListLevel2.length > 0">
|
||||||
|
@ -39,7 +39,7 @@
|
||||||
:key="index"
|
:key="index"
|
||||||
>
|
>
|
||||||
<span>{{ item.name }}</span>
|
<span>{{ item.name }}</span>
|
||||||
<span>》</span>
|
<span>></span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<ul v-if="categoryListLevel3 && categoryListLevel3.length > 0">
|
<ul v-if="categoryListLevel3 && categoryListLevel3.length > 0">
|
||||||
|
@ -701,6 +701,34 @@ export default {
|
||||||
this.activestep = 1;
|
this.activestep = 1;
|
||||||
this.isOperationGoods = false;
|
this.isOperationGoods = false;
|
||||||
this.GET_GoodData();
|
this.GET_GoodData();
|
||||||
|
} else if (to.query.id) {
|
||||||
|
this.activestep = 1;
|
||||||
|
this.goodsId = this.$route.query.id;
|
||||||
|
this.GET_GoodData();
|
||||||
|
} else {
|
||||||
|
this.baseInfoForm = {
|
||||||
|
salesModel: "RETAIL",
|
||||||
|
goodsParamsList: [],
|
||||||
|
freightPayer: "BUYER",
|
||||||
|
weight: "",
|
||||||
|
goodsGalleryFiles: [],
|
||||||
|
release: "true",
|
||||||
|
recommend: "true",
|
||||||
|
storeCategoryPath: "",
|
||||||
|
brandId: 0,
|
||||||
|
goodsUnit: "",
|
||||||
|
categoryPath: "",
|
||||||
|
sellingPoint: "",
|
||||||
|
intro: "",
|
||||||
|
mobileIntro: "",
|
||||||
|
updateSku: true,
|
||||||
|
regeneratorSkuFlag: false,
|
||||||
|
templateId: 0,
|
||||||
|
};
|
||||||
|
this.activestep = 0;
|
||||||
|
this.isPublish = true;
|
||||||
|
this.GET_GoodsTemplate();
|
||||||
|
this.GET_NextLevelCategory();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -985,7 +1013,25 @@ export default {
|
||||||
}
|
}
|
||||||
//新增商品
|
//新增商品
|
||||||
else {
|
else {
|
||||||
this.baseInfoForm = {};
|
this.baseInfoForm = {
|
||||||
|
salesModel: "RETAIL",
|
||||||
|
goodsParamsList: [],
|
||||||
|
freightPayer: "BUYER",
|
||||||
|
weight: "",
|
||||||
|
goodsGalleryFiles: [],
|
||||||
|
release: "true",
|
||||||
|
recommend: "true",
|
||||||
|
storeCategoryPath: "",
|
||||||
|
brandId: 0,
|
||||||
|
goodsUnit: "",
|
||||||
|
categoryPath: "",
|
||||||
|
sellingPoint: "",
|
||||||
|
intro: "",
|
||||||
|
mobileIntro: "",
|
||||||
|
updateSku: true,
|
||||||
|
regeneratorSkuFlag: false,
|
||||||
|
templateId: 0,
|
||||||
|
};
|
||||||
this.activestep = 0;
|
this.activestep = 0;
|
||||||
this.isPublish = true;
|
this.isPublish = true;
|
||||||
this.GET_GoodsTemplate();
|
this.GET_GoodsTemplate();
|
||||||
|
@ -1088,6 +1134,7 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleBeforeUploadGoodsPicture() {
|
handleBeforeUploadGoodsPicture() {
|
||||||
|
console.log(this.baseInfoForm);
|
||||||
const check = this.baseInfoForm.goodsGalleryFiles.length < 5;
|
const check = this.baseInfoForm.goodsGalleryFiles.length < 5;
|
||||||
if (!check) {
|
if (!check) {
|
||||||
this.$Notice.warning({
|
this.$Notice.warning({
|
||||||
|
@ -1198,6 +1245,7 @@ export default {
|
||||||
...this.baseInfoForm,
|
...this.baseInfoForm,
|
||||||
...response.result,
|
...response.result,
|
||||||
};
|
};
|
||||||
|
console.warn(this.baseInfoForm);
|
||||||
if (this.baseInfoForm.freightPayer != "BUYER") {
|
if (this.baseInfoForm.freightPayer != "BUYER") {
|
||||||
API_Shop.getShipTemplate().then((res) => {
|
API_Shop.getShipTemplate().then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
@ -1702,6 +1750,7 @@ export default {
|
||||||
this.GET_GoodData();
|
this.GET_GoodData();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
console.log(this.baseInfoForm);
|
||||||
this.GET_GoodsParams();
|
this.GET_GoodsParams();
|
||||||
/** 1级校验 */
|
/** 1级校验 */
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
|
|
|
@ -258,7 +258,7 @@
|
||||||
top: 100px;
|
top: 100px;
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
height: calc(100% + 52px);
|
height: calc(100% + 200px);
|
||||||
|
|
||||||
width: calc(100% - 240px);
|
width: calc(100% - 240px);
|
||||||
background-color: #f0f0f0;
|
background-color: #f0f0f0;
|
||||||
|
|
|
@ -58,7 +58,7 @@ methods: {
|
||||||
townName: this.addrContent.regeocode.addressComponent.township
|
townName: this.addrContent.regeocode.addressComponent.township
|
||||||
}
|
}
|
||||||
getRegion(params).then(res=>{
|
getRegion(params).then(res=>{
|
||||||
if(res.code == 200) {
|
if(res.success) {
|
||||||
this.addrContent.addr = res.result.name.replace(/,/g," ")
|
this.addrContent.addr = res.result.name.replace(/,/g," ")
|
||||||
this.addrContent.addrId = res.result.id
|
this.addrContent.addrId = res.result.id
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
|
|
@ -19,11 +19,14 @@
|
||||||
<Row class="operation">
|
<Row class="operation">
|
||||||
<Table :loading="loading" border :columns="goodsColumns" :data="goodsData" ref="table" sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect">
|
<Table :loading="loading" border :columns="goodsColumns" :data="goodsData" ref="table" sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect">
|
||||||
<template slot-scope="{ row, index }" slot="price">
|
<template slot-scope="{ row, index }" slot="price">
|
||||||
<Input v-model="row.price" @input="goodsData[index].price = row.price" />
|
<Input v-model="row.price" :disabled="status==='view'" @input="goodsData[index].price = row.price" />
|
||||||
</template>
|
</template>
|
||||||
<template slot-scope="{ row }" slot="QRCode">
|
<template slot-scope="{ row }" slot="QRCode">
|
||||||
<img :src="row.QRCode || '../../../assets/lili.png'" width="50px" height="50px" alt="" />
|
<img :src="row.QRCode || '../../../assets/lili.png'" width="50px" height="50px" alt="" />
|
||||||
</template>
|
</template>
|
||||||
|
<template slot-scope="{ index }" slot="action">
|
||||||
|
<Button type="error" size="small" ghost v-if="status === 'manager'" @click="delGoods(index)">删除</Button>
|
||||||
|
</template>
|
||||||
</Table>
|
</Table>
|
||||||
</Row>
|
</Row>
|
||||||
<Row type="flex" justify="end" class="page operation">
|
<Row type="flex" justify="end" class="page operation">
|
||||||
|
@ -138,27 +141,9 @@ export default {
|
||||||
|
|
||||||
{
|
{
|
||||||
title: "操作",
|
title: "操作",
|
||||||
key: "action",
|
slot: "action",
|
||||||
minWidth: 50,
|
minWidth: 50,
|
||||||
align: "center",
|
align: "center",
|
||||||
render: (h, params) => {
|
|
||||||
return h(
|
|
||||||
"Button",
|
|
||||||
{
|
|
||||||
props: {
|
|
||||||
size: "small",
|
|
||||||
type: "error",
|
|
||||||
ghost: true,
|
|
||||||
},
|
|
||||||
on: {
|
|
||||||
click: () => {
|
|
||||||
this.delGoods(params.index);
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"删除"
|
|
||||||
);
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
goodsData: [], // 商品列表
|
goodsData: [], // 商品列表
|
||||||
|
@ -327,9 +312,9 @@ export default {
|
||||||
margin: 20px 0;
|
margin: 20px 0;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
&::before{
|
&::before{
|
||||||
content: '';
|
content: '|';
|
||||||
border: 1px solid $theme_color;
|
color: $theme_color;
|
||||||
height: 10px;
|
display: inline-block;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
|
|
|
@ -64,14 +64,19 @@
|
||||||
</template>
|
</template>
|
||||||
<template slot-scope="{ row }" slot="action">
|
<template slot-scope="{ row }" slot="action">
|
||||||
<Button
|
<Button
|
||||||
v-if="
|
v-if="row.promotionStatus === 'NEW'"
|
||||||
row.promotionStatus === 'NEW'
|
|
||||||
"
|
|
||||||
type="primary"
|
type="primary"
|
||||||
size="small"
|
size="small"
|
||||||
@click="manage(row)"
|
@click="manage(row)"
|
||||||
>管理</Button
|
>管理</Button
|
||||||
>
|
>
|
||||||
|
<Button
|
||||||
|
v-else
|
||||||
|
type="info"
|
||||||
|
size="small"
|
||||||
|
@click="manage(row)"
|
||||||
|
>查看</Button
|
||||||
|
>
|
||||||
</template>
|
</template>
|
||||||
</Table>
|
</Table>
|
||||||
</Row>
|
</Row>
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
<Button @click="delAll">批量删除</Button>
|
<Button @click="delAll">批量删除</Button>
|
||||||
</template>
|
</template>
|
||||||
</Row>
|
</Row>
|
||||||
<Row v-show="openTip">
|
<Row v-show="openTip" v-if="promotionStatus == 'NEW'">
|
||||||
<Alert show-icon>
|
<Alert show-icon>
|
||||||
已选择 <span class="select-count">{{ selectCount }}</span> 项
|
已选择 <span class="select-count">{{ selectCount }}</span> 项
|
||||||
</Alert>
|
</Alert>
|
||||||
|
@ -101,8 +101,7 @@
|
||||||
<template slot-scope="{ row, index }" slot="action">
|
<template slot-scope="{ row, index }" slot="action">
|
||||||
<Button
|
<Button
|
||||||
type="error"
|
type="error"
|
||||||
v-if="row.promotionApplyStatus !== 'PASS'"
|
v-if="promotionStatus === 'NEW'"
|
||||||
:disabled="promotionStatus != 'NEW'"
|
|
||||||
size="small"
|
size="small"
|
||||||
ghost
|
ghost
|
||||||
@click="delGoods(index, row.id)"
|
@click="delGoods(index, row.id)"
|
||||||
|
@ -119,7 +118,7 @@
|
||||||
<Button
|
<Button
|
||||||
type="primary"
|
type="primary"
|
||||||
:loading="submitLoading"
|
:loading="submitLoading"
|
||||||
:disabled="promotionStatus != 'NEW'"
|
v-if="promotionStatus === 'NEW'"
|
||||||
@click="save"
|
@click="save"
|
||||||
>提交</Button
|
>提交</Button
|
||||||
>
|
>
|
||||||
|
|
|
@ -478,7 +478,7 @@ export default {
|
||||||
onOk: () => {
|
onOk: () => {
|
||||||
API_Shop.reconciliation(this.id).then((res) => {
|
API_Shop.reconciliation(this.id).then((res) => {
|
||||||
this.$Modal.remove();
|
this.$Modal.remove();
|
||||||
if (res.code == 200) {
|
if (res.success) {
|
||||||
this.$Message.success("账单核对成功");
|
this.$Message.success("账单核对成功");
|
||||||
this.init();
|
this.init();
|
||||||
}
|
}
|
||||||
|
|
|
@ -165,7 +165,7 @@
|
||||||
onOk: () => {
|
onOk: () => {
|
||||||
API_Shop.logisticsChecked(v.id).then((res) => {
|
API_Shop.logisticsChecked(v.id).then((res) => {
|
||||||
this.$Modal.remove();
|
this.$Modal.remove();
|
||||||
if (res.code == 200) {
|
if (res.success) {
|
||||||
this.$Message.success("物流公司开启成功");
|
this.$Message.success("物流公司开启成功");
|
||||||
this.init();
|
this.init();
|
||||||
}
|
}
|
||||||
|
@ -183,7 +183,7 @@
|
||||||
onOk: () => {
|
onOk: () => {
|
||||||
API_Shop.logisticsUnChecked(v.selected).then((res) => {
|
API_Shop.logisticsUnChecked(v.selected).then((res) => {
|
||||||
this.$Modal.remove();
|
this.$Modal.remove();
|
||||||
if (res.code == 200) {
|
if (res.success) {
|
||||||
this.$Message.success("物流公司关闭成功");
|
this.$Message.success("物流公司关闭成功");
|
||||||
this.init();
|
this.init();
|
||||||
}
|
}
|
||||||
|
|
|
@ -320,7 +320,7 @@
|
||||||
onOk: () => {
|
onOk: () => {
|
||||||
API_Shop.deleteShopAddress(v.id).then((res) => {
|
API_Shop.deleteShopAddress(v.id).then((res) => {
|
||||||
this.$Modal.remove();
|
this.$Modal.remove();
|
||||||
if (res.code == 200) {
|
if (res.success) {
|
||||||
this.$Message.success("此自自提地址已删除");
|
this.$Message.success("此自自提地址已删除");
|
||||||
this.init();
|
this.init();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue