YOUFANG1.0.4
This commit is contained in:
@@ -1502,7 +1502,9 @@
|
||||
"yfindex.html",
|
||||
"views/house/houseDetail.html"
|
||||
],
|
||||
"refer": [],
|
||||
"refer": [
|
||||
"views/user/userInfo.html"
|
||||
],
|
||||
"priority": 0
|
||||
},
|
||||
"yfindex.html": {
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
<img src="../../images/headPortrait.png">
|
||||
<p><a class="button theme" href="#" onclick="gotoLogin()" >立即登录</a></p>
|
||||
</div>
|
||||
<div class="topic">
|
||||
<div class="topic" style="display: none;">
|
||||
<div class="topicContent homeBox" style="padding-left:0;padding-right:0;">
|
||||
<div class="topicContent_center home homeWin">
|
||||
<div>
|
||||
@@ -123,7 +123,7 @@
|
||||
<div class="topic">
|
||||
<div class="topicContent homeBox" style="padding-left:0;padding-right:0;">
|
||||
<div class="topicContent_center home homeWin" id="toolList">
|
||||
<div>
|
||||
<!--<div>
|
||||
<i class="icon icon-personal01"></i>
|
||||
<span>公积金查询</span>
|
||||
</div>
|
||||
@@ -138,9 +138,9 @@
|
||||
<div>
|
||||
<i class="icon icon-personal04"></i>
|
||||
<span>算房贷</span>
|
||||
</div>
|
||||
</div>-->
|
||||
<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)">
|
||||
<img v-bind:src="t.iconUrl" style="width:45px;height:45px;margin:0 auto;" v-on:click="goto(t.url,userId)">
|
||||
<span>{{t.toolName}}</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -255,20 +255,7 @@ var tab = new Vue({
|
||||
mm_num:"0"
|
||||
}
|
||||
})
|
||||
var toolList = new Vue({
|
||||
el:"#toolList",
|
||||
data:{
|
||||
merchantTools:[]
|
||||
},
|
||||
methods:{
|
||||
goto:function(url){
|
||||
// alert(url)
|
||||
if (url != null && url != "") {
|
||||
clicked('../webview_embed.html', true,false,{},{url:url})
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
//判断是否登录
|
||||
function checkIsLogin(){
|
||||
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
||||
@@ -482,10 +469,34 @@ function openSettingPage() {
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
|
||||
function onPlusReady(){
|
||||
var toolList = new Vue({
|
||||
el:"#toolList",
|
||||
data:{
|
||||
merchantTools:[],
|
||||
userId:""
|
||||
},
|
||||
methods:{
|
||||
goto:function(url,userId){
|
||||
var deviceId = plus.device.uuid;
|
||||
if(url.indexOf("?")>0){
|
||||
url+=("&uid="+userId+"&deviceId="+deviceId)
|
||||
}else{
|
||||
url+=("?uid="+userId+"&deviceId="+deviceId)
|
||||
}
|
||||
alert(url)
|
||||
if (url != null && url != "") {
|
||||
clicked('../webview_embed.html', true,false,{},{url:url})
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
axios.get(BASE_PATH + "/rest/usertool/merchantToolList",{params:{position:0}}).then(function(response){
|
||||
toolList.merchantTools = response.data.data;
|
||||
toolList.merchantTools = response.data.data.list;
|
||||
toolList.userId = response.data.data.uid;
|
||||
/* 获取homeWin div个数并计算homeWin宽度 */
|
||||
$(".homeWin").css("width",(90*(4+response.data.data.length))+"px");
|
||||
var original = 0;//公积金查询等个数
|
||||
$(".homeWin").css("width",(90*(original+response.data.data.list.length))+"px");
|
||||
// var html = "";
|
||||
// for(var i=0;i<toolList.length;i++){
|
||||
// html += (i%4==0?'':'<div class="swiper-slide">')+
|
||||
|
||||
Reference in New Issue
Block a user