Merge branch 'master' of gitee.com:beijing_hongye_huicheng/lilishop-ui

master
Chopper 2021-05-17 17:42:56 +08:00
commit 3d1391e305
58 changed files with 161 additions and 133 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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;
} }
}); });

View File

@ -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;

View File

@ -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: '品牌',

View File

@ -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;

View File

@ -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(',');

View File

@ -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;
} }

View File

@ -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) {

View File

@ -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;
} }

View File

@ -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(() => {

View File

@ -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(() => {

View File

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

View File

@ -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;
} }
}); });

View File

@ -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();
} }

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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;

View File

@ -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();
} }

View File

@ -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();
} }

View File

@ -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);

View File

@ -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(() => {

View File

@ -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">

View File

@ -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 {

View File

@ -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 {

View File

@ -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

View File

@ -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 {

View File

@ -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();
} }

View File

@ -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;

View File

@ -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
} }
}) })

View File

@ -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 {

View File

@ -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 {

View File

@ -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("保存失败!");

View File

@ -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 {

View File

@ -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("保存失败!");

View File

@ -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("保存失败!");

View File

@ -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("保存失败!");

View File

@ -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("保存失败!");

View File

@ -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("保存失败!");

View File

@ -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("保存失败!");

View File

@ -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("保存失败!");

View File

@ -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("保存失败!");

View File

@ -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("保存失败!");

View File

@ -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

View File

@ -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

View File

@ -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;

View File

@ -28,7 +28,7 @@
:key="index" :key="index"
> >
<span>{{ item.name }}</span> <span>{{ item.name }}</span>
<span></span> <span>&gt;</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>&gt;</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;

View File

@ -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;

View File

@ -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

View File

@ -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;

View File

@ -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>

View File

@ -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
> >

View File

@ -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();
} }

View File

@ -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();
} }

View File

@ -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();
} }