This commit is contained in:
parent
b832389a2c
commit
c9fd0ac0ab
14
api/admin.js
14
api/admin.js
|
@ -368,17 +368,17 @@ export function getSubsidyRecord(merId, data) {
|
||||||
/*
|
/*
|
||||||
领取补贴
|
领取补贴
|
||||||
*/
|
*/
|
||||||
export function couponReceive(id, data) {
|
export function couponReceive(data) {
|
||||||
return request.post(`coupon/receive/${id}`, data, {
|
return request.get(`server/${data.mer_id}/subsidyReceive/${data.id}`);
|
||||||
login: true
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
领取补贴
|
拒绝领取补贴
|
||||||
*/
|
*/
|
||||||
export function couponRefuse(id, data) {
|
export function couponRefuse(data) {
|
||||||
return request.post(`coupon/refuse/{id}`, data, {
|
return request.post(`server/${data.mer_id}/subsidyRefuse/${data.id}`, {
|
||||||
|
reason: data.reason
|
||||||
|
}, {
|
||||||
login: true
|
login: true
|
||||||
});
|
});
|
||||||
}
|
}
|
|
@ -194,9 +194,9 @@
|
||||||
this.mer_id = user.service.mer_id;
|
this.mer_id = user.service.mer_id;
|
||||||
this.getSubsidy();
|
this.getSubsidy();
|
||||||
if(this.type==2)this.getSubsidyRecord();
|
if(this.type==2)this.getSubsidyRecord();
|
||||||
this.$nextTick(res=>{
|
// this.$nextTick(res=>{
|
||||||
this.$refs.pupRef.open();
|
// this.$refs.pupRef.open();
|
||||||
})
|
// })
|
||||||
},
|
},
|
||||||
onShow() {},
|
onShow() {},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -227,7 +227,10 @@
|
||||||
},
|
},
|
||||||
couponReceive(){
|
couponReceive(){
|
||||||
this.closePopup();
|
this.closePopup();
|
||||||
couponReceive(this.send_id).then(res=>{
|
couponReceive({
|
||||||
|
mer_id: this.mer_id,
|
||||||
|
id: this.send_id,
|
||||||
|
}).then(res=>{
|
||||||
this.$nextTick(()=>{
|
this.$nextTick(()=>{
|
||||||
Toast('领取成功')
|
Toast('领取成功')
|
||||||
})
|
})
|
||||||
|
@ -243,7 +246,9 @@
|
||||||
couponRefuse(){
|
couponRefuse(){
|
||||||
if(this.reason=='') return Toast('错误内容不能为空');
|
if(this.reason=='') return Toast('错误内容不能为空');
|
||||||
this.closePopup();
|
this.closePopup();
|
||||||
couponRefuse(this.send_id, {
|
couponRefuse({
|
||||||
|
mer_id: this.mer_id,
|
||||||
|
id: this.send_id,
|
||||||
reason: this.reason
|
reason: this.reason
|
||||||
}).then(res=>{
|
}).then(res=>{
|
||||||
this.$nextTick(()=>{
|
this.$nextTick(()=>{
|
||||||
|
|
|
@ -1243,7 +1243,7 @@
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/store/home/index?id=` + this.userInfoData.service.mer_id + `&type=7`
|
url: `/pages/store/home/index?id=` + this.userInfoData.service.mer_id
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -693,11 +693,13 @@
|
||||||
value: 4,
|
value: 4,
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
tabs3: [{
|
tabs3: [
|
||||||
icon: 'icon-yizhan_o',
|
// {
|
||||||
name: '云商品',
|
// icon: 'icon-yizhan_o',
|
||||||
value: 7,
|
// name: '云商品',
|
||||||
}, {
|
// value: 7,
|
||||||
|
// },
|
||||||
|
{
|
||||||
icon: 'icon-gouwu_o',
|
icon: 'icon-gouwu_o',
|
||||||
name: '商品',
|
name: '商品',
|
||||||
value: 3,
|
value: 3,
|
||||||
|
@ -719,11 +721,6 @@
|
||||||
value: 2,
|
value: 2,
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
tabs5: [{
|
|
||||||
icon: 'icon-yizhan_o',
|
|
||||||
name: '云商品',
|
|
||||||
value: 7,
|
|
||||||
}],
|
|
||||||
tabs: [],
|
tabs: [],
|
||||||
storeScroll: true,
|
storeScroll: true,
|
||||||
storeTop: 0,
|
storeTop: 0,
|
||||||
|
@ -889,6 +886,7 @@
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getProductSpu() {
|
getProductSpu() {
|
||||||
|
return ;
|
||||||
let that = this;
|
let that = this;
|
||||||
if (that.loadend) return;
|
if (that.loadend) return;
|
||||||
if (that.loading) return;
|
if (that.loading) return;
|
||||||
|
@ -1067,20 +1065,9 @@
|
||||||
getStoreDetail(this.id).then(res => {
|
getStoreDetail(this.id).then(res => {
|
||||||
this.store = res.data;
|
this.store = res.data;
|
||||||
this.care_conut = res.data.care_count
|
this.care_conut = res.data.care_count
|
||||||
// if ((res.data.delivery_way.length == 1 && res.data.delivery_way[0] == '1') || res.data.delivery_way
|
|
||||||
// .length == 2) {
|
|
||||||
// this.tabs = this.tabs1
|
|
||||||
// this.service_open = true
|
|
||||||
// } else {
|
|
||||||
// this.tabs = this.tabs2
|
|
||||||
// this.service_open = false
|
|
||||||
// }
|
|
||||||
if (res.data.business_status == 2) {
|
if (res.data.business_status == 2) {
|
||||||
this.isLihaiYun === 'Lihai' ? this.tabs = this.tabs4 : this.tabs = this.tabs3
|
this.isLihaiYun === 'Lihai' ? this.tabs = this.tabs4 : this.tabs = this.tabs3
|
||||||
} else {
|
}
|
||||||
this.tabs = this.tabs5
|
|
||||||
this.type = 7
|
|
||||||
}
|
|
||||||
this.tab(this.type)
|
this.tab(this.type)
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
this.ShareInfo();
|
this.ShareInfo();
|
||||||
|
|
Loading…
Reference in New Issue