Commit acd3b360 authored by beisir's avatar beisir

Merge branch 'feat/group-buy' of git.quantgroup.cn:ui/group-buy-ui into feat/group-buy

parents b0accada ec1a581f
...@@ -54,9 +54,7 @@ export default { ...@@ -54,9 +54,7 @@ export default {
return http.get(`${talosHost}/api/kdsp/playBill/getMakePicData?${qsString}`); return http.get(`${talosHost}/api/kdsp/playBill/getMakePicData?${qsString}`);
}, },
getGroupShareInfo(orderNo) { getGroupShareInfo(orderNo) {
return http.get(`${talosHost}/api/kdsp/groupShareInfo?orderNo=${orderNo}`, { return http.get(`${talosHost}/api/kdsp/groupShareInfo?orderNo=${orderNo}`);
hideLoading: true
});
}, },
getPlayBillUrl(m) { getPlayBillUrl(m) {
return http.get(`http://192.168.25.122/api/kdsp/playBill/getPlayBillUrl?m=${m}`); return http.get(`http://192.168.25.122/api/kdsp/playBill/getPlayBillUrl?m=${m}`);
......
...@@ -63,6 +63,7 @@ export default { ...@@ -63,6 +63,7 @@ export default {
this.tipDialogMessage(); this.tipDialogMessage();
return; return;
} }
this.$store.dispatch('change_loading', true);
this.type = type; this.type = type;
if (typeof shareInfo === 'object') { if (typeof shareInfo === 'object') {
this.sharePicData = shareInfo; this.sharePicData = shareInfo;
...@@ -109,9 +110,11 @@ export default { ...@@ -109,9 +110,11 @@ export default {
async getGroupShareInfo(orderNo) { async getGroupShareInfo(orderNo) {
try { try {
const [res] = await groupBuyApi.getGroupShareInfo(orderNo); const [res] = await groupBuyApi.getGroupShareInfo(orderNo);
this.$store.dispatch('change_loading', true);
this.sharePicData = res; this.sharePicData = res;
this.$refs.sharePic.createAndUploadPic(this.sharePicData); this.$refs.sharePic.createAndUploadPic(this.sharePicData);
} catch (err) { } catch (err) {
this.$store.dispatch('change_loading', false);
console.log(err); console.log(err);
} }
}, },
......
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