Commit 6894db53 by 张权

第三轮修复

1 parent c8e4c1f4
...@@ -308,7 +308,7 @@ export default { ...@@ -308,7 +308,7 @@ export default {
params.childId = obj.childId params.childId = obj.childId
} }
params.requestSource = 2 params.requestSource = 2
let { perfectFlag } = this.getQuery() let { perfectFlag,pageIdx } = this.getQuery()
if(id && perfectFlag==2){ if(id && perfectFlag==2){
params = { params = {
id, id,
...@@ -321,7 +321,7 @@ export default { ...@@ -321,7 +321,7 @@ export default {
const API =(id && perfectFlag==2) ? giftApi.createPerfectGift : giftApi.createOrupdataGift const API =(id && perfectFlag==2) ? giftApi.createPerfectGift : giftApi.createOrupdataGift
API(params).then(res => { API(params).then(res => {
this.hideLoading() this.hideLoading()
if(res.approveFlag ===2){ if(res.approveFlag == 2){
wxConfig.thirdPartyOpenPage(setApproveParam(res)) wxConfig.thirdPartyOpenPage(setApproveParam(res))
.then((resp) => { .then((resp) => {
setTimeout(()=>{ setTimeout(()=>{
...@@ -331,6 +331,7 @@ export default { ...@@ -331,6 +331,7 @@ export default {
},500) },500)
}) })
}else{ }else{
if(pageIdx==2){this.$route.query.approveStatus = 999}
this.$route.params.giftToast = `${id ? '修改' : '创建'}成功` this.$route.params.giftToast = `${id ? '修改' : '创建'}成功`
this.$router.back() this.$router.back()
} }
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
</div> </div>
</div> </div>
<div class="remainNum" style="display:flex;"> <div class="remainNum" style="display:flex;">
<span>剩余礼包:<span style="color: #3975C6;">{{i.surplusStock}}</span></span> <span>{{activeTab==1 ?'可直接发送' : '剩余礼包'}}:<span style="color: #3975C6;">{{i.surplusStock}}</span></span>
<span>已领礼包:{{i.receivedStock}}</span> <span>已领礼包:{{i.receivedStock}}</span>
</div> </div>
<!-- <template #right> <!-- <template #right>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!