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) {
|
||||
return request.post(`coupon/receive/${id}`, data, {
|
||||
login: true
|
||||
});
|
||||
export function couponReceive(data) {
|
||||
return request.get(`server/${data.mer_id}/subsidyReceive/${data.id}`);
|
||||
}
|
||||
|
||||
/*
|
||||
领取补贴
|
||||
拒绝领取补贴
|
||||
*/
|
||||
export function couponRefuse(id, data) {
|
||||
return request.post(`coupon/refuse/{id}`, data, {
|
||||
export function couponRefuse(data) {
|
||||
return request.post(`server/${data.mer_id}/subsidyRefuse/${data.id}`, {
|
||||
reason: data.reason
|
||||
}, {
|
||||
login: true
|
||||
});
|
||||
}
|
|
@ -194,9 +194,9 @@
|
|||
this.mer_id = user.service.mer_id;
|
||||
this.getSubsidy();
|
||||
if(this.type==2)this.getSubsidyRecord();
|
||||
this.$nextTick(res=>{
|
||||
this.$refs.pupRef.open();
|
||||
})
|
||||
// this.$nextTick(res=>{
|
||||
// this.$refs.pupRef.open();
|
||||
// })
|
||||
},
|
||||
onShow() {},
|
||||
methods: {
|
||||
|
@ -227,7 +227,10 @@
|
|||
},
|
||||
couponReceive(){
|
||||
this.closePopup();
|
||||
couponReceive(this.send_id).then(res=>{
|
||||
couponReceive({
|
||||
mer_id: this.mer_id,
|
||||
id: this.send_id,
|
||||
}).then(res=>{
|
||||
this.$nextTick(()=>{
|
||||
Toast('领取成功')
|
||||
})
|
||||
|
@ -243,7 +246,9 @@
|
|||
couponRefuse(){
|
||||
if(this.reason=='') return Toast('错误内容不能为空');
|
||||
this.closePopup();
|
||||
couponRefuse(this.send_id, {
|
||||
couponRefuse({
|
||||
mer_id: this.mer_id,
|
||||
id: this.send_id,
|
||||
reason: this.reason
|
||||
}).then(res=>{
|
||||
this.$nextTick(()=>{
|
||||
|
|
|
@ -1243,7 +1243,7 @@
|
|||
})
|
||||
} else {
|
||||
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,
|
||||
}
|
||||
],
|
||||
tabs3: [{
|
||||
icon: 'icon-yizhan_o',
|
||||
name: '云商品',
|
||||
value: 7,
|
||||
}, {
|
||||
tabs3: [
|
||||
// {
|
||||
// icon: 'icon-yizhan_o',
|
||||
// name: '云商品',
|
||||
// value: 7,
|
||||
// },
|
||||
{
|
||||
icon: 'icon-gouwu_o',
|
||||
name: '商品',
|
||||
value: 3,
|
||||
|
@ -719,11 +721,6 @@
|
|||
value: 2,
|
||||
}
|
||||
],
|
||||
tabs5: [{
|
||||
icon: 'icon-yizhan_o',
|
||||
name: '云商品',
|
||||
value: 7,
|
||||
}],
|
||||
tabs: [],
|
||||
storeScroll: true,
|
||||
storeTop: 0,
|
||||
|
@ -889,6 +886,7 @@
|
|||
})
|
||||
},
|
||||
getProductSpu() {
|
||||
return ;
|
||||
let that = this;
|
||||
if (that.loadend) return;
|
||||
if (that.loading) return;
|
||||
|
@ -1067,20 +1065,9 @@
|
|||
getStoreDetail(this.id).then(res => {
|
||||
this.store = res.data;
|
||||
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) {
|
||||
this.isLihaiYun === 'Lihai' ? this.tabs = this.tabs4 : this.tabs = this.tabs3
|
||||
} else {
|
||||
this.tabs = this.tabs5
|
||||
this.type = 7
|
||||
}
|
||||
}
|
||||
this.tab(this.type)
|
||||
// #ifdef H5
|
||||
this.ShareInfo();
|
||||
|
|
Loading…
Reference in New Issue