Commit 9b150bd2 by kyle

增加openid,没有关注弹出二维码

parent 47d5ab12
...@@ -537,7 +537,8 @@ ...@@ -537,7 +537,8 @@
houseLoanOldList:this.isDisplace ? this.houseLoanOldList : null, houseLoanOldList:this.isDisplace ? this.houseLoanOldList : null,
businessNo: uni.getStorageSync('businessNo'), businessNo: uni.getStorageSync('businessNo'),
calcuteType:0, calcuteType:0,
decimal:4 decimal:4,
wechat_openid: uni.getStorageSync('openId') || '',
} }
api.housePurchasePlanAnalysis(param).then((res)=>{ api.housePurchasePlanAnalysis(param).then((res)=>{
if(res['success']){ if(res['success']){
...@@ -556,6 +557,10 @@ ...@@ -556,6 +557,10 @@
this.drawLine(this.chartsLegendsCurrent) this.drawLine(this.chartsLegendsCurrent)
}); });
}else{ }else{
if(res['data']['code']==='E000'){
this.isNeedOfficialAccountQrcode = true;
return;
}
common.errorDialog(2,res['message']) common.errorDialog(2,res['message'])
} }
}) })
...@@ -616,7 +621,9 @@ ...@@ -616,7 +621,9 @@
} }
api.queryCommercialHousingPrice(this.cityInfo).then(res=>{ api.queryCommercialHousingPrice(this.cityInfo).then(res=>{
if(res['success']){ if(res['success']){
this.planningParams.housePriceGrowthRate=res['data']['priceInfo']['rateB'] / 100; const result = res['data']['priceInfo']['rateB'];
const power = result.toString().indexOf('.') > -1 ? result.toString().substring(result.toString().indexOf('.')+1).length : 0;
this.planningParams.housePriceGrowthRate = (res['data']['priceInfo']['rateB']) * (Math.pow(10,power)) / (Math.pow(10,power+2)) ;
} }
}) })
}, },
......
...@@ -2,13 +2,18 @@ ...@@ -2,13 +2,18 @@
<view> <view>
<ul> <ul>
<li v-for="item in moduleLists" :key="item.no"> <li v-for="item in moduleLists" :key="item.no">
<template v-if="item.path">
<navigator :url="item.path" hover-class="other-navigator-hover"> <navigator :url="item.path" hover-class="other-navigator-hover">
<view class="imgContainer"><img :src="`/sfp/static/images/${item.background}`" alt="" srcset=""></view> <view class="imgContainer"><img :src="`/sfp/static/images/${item.background}`" alt="" srcset=""></view>
<text :style="{color:item.color}">{{item.name}}</text> <text :style="{color:item.color}">{{item.name}}</text>
</navigator> </navigator>
</template>
<template v-if="!item.path">
<view class="imgContainer"><img :src="`/sfp/static/images/${item.background}`" alt="" srcset=""></view>
<text :style="{color:item.color}">{{item.name}}</text>
</template>
</li> </li>
</ul> </ul>
<view style="text-align: center;">更多工具正在开发中,敬请期待。。。</view>
</view> </view>
</template> </template>
...@@ -20,7 +25,8 @@ ...@@ -20,7 +25,8 @@
moduleLists:[ moduleLists:[
{no:'1',name:'增额终身寿和年金险复利、单利计算',path:'/pages/index/index',background:'irrNavBg.jpg',color:'#EA8A49'}, {no:'1',name:'增额终身寿和年金险复利、单利计算',path:'/pages/index/index',background:'irrNavBg.jpg',color:'#EA8A49'},
{no:'2',name:'购房能力测算',path:'/pages/housePurchase/housePurchase',background:'propertyBg.jpg',color:'#6F5AD4'}, {no:'2',name:'购房能力测算',path:'/pages/housePurchase/housePurchase',background:'propertyBg.jpg',color:'#6F5AD4'},
// {no:'3',name:'子女教育金测算',path:'',background:'childrenBgNavBg.jpg',color:'#CE8C1B'} {no:'3',name:'敬请期待',path:'',background:'coming.jpg',color:'#A0A0A0'},
{no:'4',name:'敬请期待',path:'',background:'coming.jpg',color:'#A0A0A0'},
] ]
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment