Browse Source

fix:更改状态

dev_des
1054425342@qq.com 3 weeks ago
parent
commit
09904980a2
  1. 2
      components/ProductSection.vue
  2. 4
      subPackages/equityGoods/detail.vue
  3. 17
      subPackages/other/evita.vue

2
components/ProductSection.vue

@ -206,7 +206,7 @@ export default {
},
toAgent(e){
uni.navigateTo({
url: "/subPackages/other/evita?id="+e.benefitPackageId
url: `/subPackages/other/evita?id=${e.agentId}&product=${e.benefitPackageId}`
});
},

4
subPackages/equityGoods/detail.vue

@ -337,8 +337,8 @@ export default {
},
toAgent(e) {
uni.navigateTo({
url: "/subPackages/other/evita?id=" + e.benefitPackageId,
});
url: `/subPackages/other/evita?id=${e.agentId}&product=${e.benefitPackageId}`
});
// if (e.agentStatus) {
// uni.navigateTo({
// url: "/subPackages/other/evita?id=" + e.agent.agentId,

17
subPackages/other/evita.vue

@ -1,7 +1,7 @@
<template>
<view class="" style="font-size: 0;position: relative;">
<BackButton />
<BackButton v-if="!isHidden" />
<image v-if="agentInfo" @click="toWebView" class="bannerImg" mode="aspectFill" :src="showImg(agentInfo.posterUrl)"> </image>
</view>
@ -17,12 +17,16 @@
return{
img:'',
agentId:'',
agentInfo:null
agentInfo:null,
isHidden:false,
productId:''
}
},
onLoad(e) {
wx.hideShareMenu()
this.agentId = e.id
this.isHidden = e.isHidden
this.productId = e.product
this.getInfo()
},
onUnload() {
@ -55,7 +59,8 @@
}
},
getInfo(){
if(this.agentId==0){
console.log('----')
if(!this.productId){
this.Post(
{
},
@ -81,11 +86,10 @@
}
});
}else{
this.Post(
{
},
"/framework/benefitPackage/detail/"+this.agentId,
"/framework/benefitPackage/detail/"+this.productId,
"DES"
).then((res) => {
if (res.code == 200) {
@ -108,7 +112,6 @@
}
});
}
},
toWebView() {
if(this.agentInfo.agentId==0){
@ -127,7 +130,7 @@
})
setTimeout(() =>{
uni.redirectTo({
url: "/subPackages/equityGoods/detail?id="+this.agentId
url: "/subPackages/equityGoods/detail?id="+this.productId
});
},900)

Loading…
Cancel
Save