YOUFANG1.0.4 用户工具接入
This commit is contained in:
@@ -144,7 +144,7 @@
|
|||||||
<span>算房贷</span>
|
<span>算房贷</span>
|
||||||
</div>-->
|
</div>-->
|
||||||
<div v-for="(t,index) in merchantTools">
|
<div v-for="(t,index) in merchantTools">
|
||||||
<img v-bind:src="t.iconUrl" style="width:45px;height:45px;margin:0 auto;" v-on:click="goto(t.url,userId)">
|
<img v-bind:src="t.iconUrl" style="width:45px;height:45px;margin:0 auto;" v-on:click="goto(t.url,userId,t.id)">
|
||||||
<span>{{t.toolName}}</span>
|
<span>{{t.toolName}}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -503,15 +503,19 @@ function onPlusReady(){
|
|||||||
userId:""
|
userId:""
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
goto:function(url,userId){
|
goto:function(url,userId,id){
|
||||||
var deviceId = plus.device.uuid;
|
var deviceId = plus.device.uuid;
|
||||||
if(url.indexOf("?")>0){
|
if(url.indexOf("?")>0){
|
||||||
url+=("&uid="+userId+"&deviceId="+deviceId)
|
url+=("&uid="+userId+"&deviceId="+deviceId)
|
||||||
}else{
|
}else{
|
||||||
url+=("?uid="+userId+"&deviceId="+deviceId)
|
url+=("?uid="+userId+"&deviceId="+deviceId)
|
||||||
}
|
}
|
||||||
alert(url)
|
|
||||||
if (url != null && url != "") {
|
if (url != null && url != "") {
|
||||||
|
axios.post(BASE_PATH + "/rest/usertool/merchantToolClick",{id:id}).then(function(response){
|
||||||
|
|
||||||
|
}).catch(function(error){
|
||||||
|
|
||||||
|
});
|
||||||
clicked('../webview_embed.html', true,false,{},{url:url})
|
clicked('../webview_embed.html', true,false,{},{url:url})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user