|
|
@ -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) |
|
|
|
|
|
|
|