Merge branch 'YOUFANGAPP1.1' of 192.168.0.27:dev0/youfang-app into xh-youfangApp1.1
# Conflicts: # fangija-zsyf/views/news/newsDetail.html
@@ -1,7 +1,7 @@
|
||||
/**服务端地址**/
|
||||
var BASE_PATH = "http://192.168.10.128:8084";
|
||||
//var BASE_PATH = "http://192.168.10.128:8084";
|
||||
//var BASE_PATH = "http://192.168.10.47:8086";
|
||||
//var BASE_PATH = "http://192.168.10.53:8084";
|
||||
//var BASE_PATH = "http://192.168.10.171:8084";
|
||||
var BASE_PATH = "http://192.168.10.170:8084";
|
||||
/**是否显示过启动页面**/
|
||||
var lauchFlag = false;
|
||||
@@ -176,22 +176,31 @@ em.down{color:#88D053;}
|
||||
.bar-tab .tab-item .icon ~ .tab-label{top:0.05rem;}
|
||||
|
||||
/* 登录 */
|
||||
i.loginIcon01{width:14px;height:26px;background:url(../images/loginIcon01.png) no-repeat center 1px;background-size:100%;display:block;}
|
||||
i.loginIcon02{width:15px;height:25px;background:url(../images/loginIcon02.png) no-repeat center 3px;background-size:100%;display:block;}
|
||||
i.loginIcon03{width:14px;height:24px;background:url(../images/loginIcon03.png) no-repeat center 3px;background-size:100%;display:block;}
|
||||
.item-content .item-inner .inpu{width:70px;height:24px;line-height:24px;float:left;margin:0 6px;text-align:center;border:solid 1px #d7d7d7;}
|
||||
.item-content .item-inner label i.loginCode{width:70px;height:25px;background:url(../images/loginCode.png) no-repeat center center;background-size:100%;display:block;margin-top:-2px;}
|
||||
.icon-login01{width:14px;height:20px;background:url(../images/icon-login01.png) no-repeat center center;background-size:100%;vertical-align:text-bottom;}
|
||||
.icon-login02{width:15px;height:19px;background:url(../images/icon-login02.png) no-repeat center center;background-size:100%;vertical-align:text-bottom;}
|
||||
.icon-login03{width:15px;height:18px;background:url(../images/icon-login03.png) no-repeat center center;background-size:100%;vertical-align:text-bottom;}
|
||||
.icon-loginMode01{width:30px;height:24px;background:url(../images/icon-loginMode01.png) no-repeat center center;background-size:100%;}
|
||||
.icon-loginMode02{width:30px;height:24px;background:url(../images/icon-loginMode02.png) no-repeat center center;background-size:100%;}
|
||||
.icon-loginMode03{width:22px;height:24px;background:url(../images/icon-loginMode03.png) no-repeat center center;background-size:100%;}
|
||||
#input_phoneNumber,#input_codeSms,#input_password{left:24px;width:80%;}
|
||||
#input_phoneNumber{width:50%;}
|
||||
#input_feedback{width:100%;height:100px;}
|
||||
.list-block .item-after .icon-eye-grey{width:0.9rem;height:0.65rem;margin-right:0;margin-top:0.25rem;}
|
||||
.list-block .item-after .icon-eye-orange{width:0.9rem;height:0.65rem;margin-right:0;margin-top:0.25rem;}
|
||||
.sendCode{padding:0 8px;height:27px;background:#fff;border:solid 1px #2db0fc;border-radius:3px;color:#2db0fc;text-align:center;line-height:26px;font-size:0.7rem;float:right;margin-top:-2px;}
|
||||
.waiting{padding:0 8px;height:27px;background:#0a8ddf;border:solid 1px #0a8ddf;border-radius:3px;color:#fff;text-align:center;line-height:26px;font-size:0.7rem;float:right;margin-top:-2px;}
|
||||
.content-block > p.agreement{font-size:0.75rem;color:#333;}
|
||||
.content-block > p.agreement a{font-size:0.75rem;}
|
||||
.check{width:18px;height:18px;border:solid 1px #a8a8a8;border-radius:4px;display:inline-block;vertical-align:middle;position:relative;}
|
||||
.checkImg{width:10px;height:10px;position:absolute;top:3px;left:3px;}
|
||||
#input_codeImg,#input_codeSms{width:35%;}
|
||||
#input_feedback{width:100%;height:100px;}
|
||||
#loginWX_btn{background:#64ac22;}
|
||||
#loginWX_btn .icon{width:25px;height:25px;background:url(../images/icon-wx.png) no-repeat center center;background-size:100%;margin-right:0.5rem;}
|
||||
|
||||
.agreement{font-size:0.65rem;color:#666;margin-left:0.75rem;}
|
||||
.agreement a{font-size:0.65rem;}
|
||||
.check{width:18px;height:18px;border:solid 1px #D7D7D7;border-radius:0.05rem;display:inline-block;vertical-align:middle;margin-right:0.2rem;position:relative;}
|
||||
.checkImg{width:10px;height:7px;position:absolute;top:5px;left:3px;}
|
||||
.loginBox p{text-align:center;margin:0;}
|
||||
.loginBox p .button{margin-top:2rem;margin-bottom:0.5rem;}
|
||||
.loginBox p a{font-size:0.65rem;color:#AA907A;}
|
||||
.loginMode{width:100%;position:absolute;bottom:4.5rem;}
|
||||
.loginMode p{font-size:0.65rem;color:#999;text-align:center;}
|
||||
.loginMode p a:nth-child(2){margin:0 2rem;}
|
||||
.line{width:100%;height:1px;background:#e5e5e5;margin-bottom:1.5rem;position:relative;}
|
||||
.line span{position:absolute;top:-10px;left:50%;margin-left:-57.5px;display:block;background:#fff;padding:0 25px;font-size:0.65rem;color:#999;}
|
||||
/* 首页 */
|
||||
.totalValue{padding:1rem 0;overflow:hidden;}
|
||||
.totalValue div:first-child{float:left;margin-left:0.75rem;}
|
||||
@@ -571,6 +580,33 @@ input::-webkit-input-placeholder{
|
||||
.commentBox .icon-collection01{display:inline-block;vertical-align:text-bottom;margin:0;}
|
||||
.commentBox .icon-collection02{display:inline-block;vertical-align:text-bottom;margin:0;}
|
||||
|
||||
/* 登录 */
|
||||
.icon-login01{width:14px;height:20px;background:url(../images/icon-login01.png) no-repeat center center;background-size:100%;vertical-align:text-bottom;}
|
||||
.icon-login02{width:15px;height:19px;background:url(../images/icon-login02.png) no-repeat center center;background-size:100%;vertical-align:text-bottom;}
|
||||
.icon-login03{width:15px;height:18px;background:url(../images/icon-login03.png) no-repeat center center;background-size:100%;vertical-align:text-bottom;}
|
||||
.icon-loginMode01{width:30px;height:24px;background:url(../images/icon-loginMode01.png) no-repeat center center;background-size:100%;}
|
||||
.icon-loginMode02{width:30px;height:24px;background:url(../images/icon-loginMode02.png) no-repeat center center;background-size:100%;}
|
||||
.icon-loginMode03{width:22px;height:24px;background:url(../images/icon-loginMode03.png) no-repeat center center;background-size:100%;}
|
||||
#input_phoneNumber,#input_codeSms,#input_password{left:24px;width:80%;}
|
||||
#input_phoneNumber{width:50%;}
|
||||
#input_feedback{width:100%;height:100px;}
|
||||
.list-block .item-after .icon-eye-grey{width:0.9rem;height:0.65rem;margin-right:0;margin-top:0.25rem;}
|
||||
.list-block .item-after .icon-eye-orange{width:0.9rem;height:0.65rem;margin-right:0;margin-top:0.25rem;}
|
||||
.sendCode{padding:0 8px;height:27px;background:#fff;border:solid 1px #2db0fc;border-radius:3px;color:#2db0fc;text-align:center;line-height:26px;font-size:0.7rem;float:right;margin-top:-2px;}
|
||||
.waiting{padding:0 8px;height:27px;background:#0a8ddf;border:solid 1px #0a8ddf;border-radius:3px;color:#fff;text-align:center;line-height:26px;font-size:0.7rem;float:right;margin-top:-2px;}
|
||||
.agreement{font-size:0.65rem;color:#666;margin-left:0.75rem;}
|
||||
.agreement a{font-size:0.65rem;}
|
||||
.check{width:18px;height:18px;border:solid 1px #D7D7D7;border-radius:0.05rem;display:inline-block;vertical-align:middle;margin-right:0.2rem;position:relative;}
|
||||
.checkImg{width:10px;height:7px;position:absolute;top:5px;left:3px;}
|
||||
.loginBox p{text-align:center;margin:0;}
|
||||
.loginBox p .button{margin-top:2rem;margin-bottom:0.5rem;}
|
||||
.loginBox p a{font-size:0.65rem;color:#AA907A;}
|
||||
.loginMode{width:100%;position:absolute;bottom:4.5rem;}
|
||||
.loginMode p{font-size:0.65rem;color:#999;text-align:center;}
|
||||
.loginMode p a:nth-child(2){margin:0 2rem;}
|
||||
.line{width:100%;height:1px;background:#e5e5e5;margin-bottom:1.5rem;position:relative;}
|
||||
.line span{position:absolute;top:-10px;left:50%;margin-left:-57.5px;display:block;background:#fff;padding:0 25px;font-size:0.65rem;color:#999;}
|
||||
|
||||
/* 顶部 */
|
||||
.top{width:100%;padding:0.75rem 0.5rem;border-bottom:solid 1px #DCDCDC;overflow:hidden;position:absolute;top:0;z-index:10;}
|
||||
.top.bar{height:auto;}
|
||||
|
||||
|
After Width: | Height: | Size: 524 B |
|
After Width: | Height: | Size: 498 B |
|
After Width: | Height: | Size: 823 B |
|
After Width: | Height: | Size: 1003 B |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
@@ -11,7 +11,7 @@ function plusReady(){
|
||||
ws=plus.webview.currentWebview();
|
||||
// Android处理返回键
|
||||
plus.key.addEventListener('backbutton',function(){
|
||||
if (ws.id == 'yfindex.html') {
|
||||
/*if (ws.id == 'yfindex.html') {
|
||||
plus.nativeUI.confirm("确认退出",function(e) {
|
||||
if(e.index == 0) {
|
||||
plus.runtime.quit();
|
||||
@@ -19,8 +19,8 @@ function plusReady(){
|
||||
});
|
||||
} else {
|
||||
back();
|
||||
}
|
||||
|
||||
}*/
|
||||
back();
|
||||
},false);
|
||||
compatibleAdjust();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
export default {
|
||||
methods: {
|
||||
checkPhoneNum (phone) {
|
||||
alert("1111111111111")
|
||||
}
|
||||
}
|
||||
}
|
||||
var sendPhoneCode = new Vue({
|
||||
el:'#sendPhoneCode',
|
||||
methods:{
|
||||
sendCode:function(){
|
||||
alert("222222222")
|
||||
checkPhoneNum("1352222222")
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -35,7 +35,7 @@ function shareAction(sb,bh) {
|
||||
}else{
|
||||
msg.content=sharehrefDes;
|
||||
}
|
||||
}
|
||||
}
|
||||
msg.thumbs=[picUrl];
|
||||
msg.pictures=[picUrl];
|
||||
}else{
|
||||
@@ -66,6 +66,7 @@ function shareMessage(msg,s){
|
||||
alert("分享到\""+s.description+"\"成功! " );
|
||||
|
||||
}, function(e){
|
||||
console.log(e.code+"========="+e.message)
|
||||
alert( "分享到\""+s.description+"\"失败 !");
|
||||
|
||||
} );
|
||||
|
||||
@@ -0,0 +1,183 @@
|
||||
(function($){
|
||||
var rotateLeft = function(lValue, iShiftBits) {
|
||||
return (lValue << iShiftBits) | (lValue >>> (32 - iShiftBits));
|
||||
}
|
||||
var addUnsigned = function(lX, lY) {
|
||||
var lX4, lY4, lX8, lY8, lResult;
|
||||
lX8 = (lX & 0x80000000);
|
||||
lY8 = (lY & 0x80000000);
|
||||
lX4 = (lX & 0x40000000);
|
||||
lY4 = (lY & 0x40000000);
|
||||
lResult = (lX & 0x3FFFFFFF) + (lY & 0x3FFFFFFF);
|
||||
if (lX4 & lY4) return (lResult ^ 0x80000000 ^ lX8 ^ lY8);
|
||||
if (lX4 | lY4) {
|
||||
if (lResult & 0x40000000) return (lResult ^ 0xC0000000 ^ lX8 ^ lY8);
|
||||
else return (lResult ^ 0x40000000 ^ lX8 ^ lY8);
|
||||
} else {
|
||||
return (lResult ^ lX8 ^ lY8);
|
||||
}
|
||||
}
|
||||
var F = function(x, y, z) {
|
||||
return (x & y) | ((~ x) & z);
|
||||
}
|
||||
var G = function(x, y, z) {
|
||||
return (x & z) | (y & (~ z));
|
||||
}
|
||||
var H = function(x, y, z) {
|
||||
return (x ^ y ^ z);
|
||||
}
|
||||
var I = function(x, y, z) {
|
||||
return (y ^ (x | (~ z)));
|
||||
}
|
||||
var FF = function(a, b, c, d, x, s, ac) {
|
||||
a = addUnsigned(a, addUnsigned(addUnsigned(F(b, c, d), x), ac));
|
||||
return addUnsigned(rotateLeft(a, s), b);
|
||||
};
|
||||
var GG = function(a, b, c, d, x, s, ac) {
|
||||
a = addUnsigned(a, addUnsigned(addUnsigned(G(b, c, d), x), ac));
|
||||
return addUnsigned(rotateLeft(a, s), b);
|
||||
};
|
||||
var HH = function(a, b, c, d, x, s, ac) {
|
||||
a = addUnsigned(a, addUnsigned(addUnsigned(H(b, c, d), x), ac));
|
||||
return addUnsigned(rotateLeft(a, s), b);
|
||||
};
|
||||
var II = function(a, b, c, d, x, s, ac) {
|
||||
a = addUnsigned(a, addUnsigned(addUnsigned(I(b, c, d), x), ac));
|
||||
return addUnsigned(rotateLeft(a, s), b);
|
||||
};
|
||||
var convertToWordArray = function(string) {
|
||||
var lWordCount;
|
||||
var lMessageLength = string.length;
|
||||
var lNumberOfWordsTempOne = lMessageLength + 8;
|
||||
var lNumberOfWordsTempTwo = (lNumberOfWordsTempOne - (lNumberOfWordsTempOne % 64)) / 64;
|
||||
var lNumberOfWords = (lNumberOfWordsTempTwo + 1) * 16;
|
||||
var lWordArray = Array(lNumberOfWords - 1);
|
||||
var lBytePosition = 0;
|
||||
var lByteCount = 0;
|
||||
while (lByteCount < lMessageLength) {
|
||||
lWordCount = (lByteCount - (lByteCount % 4)) / 4;
|
||||
lBytePosition = (lByteCount % 4) * 8;
|
||||
lWordArray[lWordCount] = (lWordArray[lWordCount] | (string.charCodeAt(lByteCount) << lBytePosition));
|
||||
lByteCount++;
|
||||
}
|
||||
lWordCount = (lByteCount - (lByteCount % 4)) / 4;
|
||||
lBytePosition = (lByteCount % 4) * 8;
|
||||
lWordArray[lWordCount] = lWordArray[lWordCount] | (0x80 << lBytePosition);
|
||||
lWordArray[lNumberOfWords - 2] = lMessageLength << 3;
|
||||
lWordArray[lNumberOfWords - 1] = lMessageLength >>> 29;
|
||||
return lWordArray;
|
||||
};
|
||||
var wordToHex = function(lValue) {
|
||||
var WordToHexValue = "", WordToHexValueTemp = "", lByte, lCount;
|
||||
for (lCount = 0; lCount <= 3; lCount++) {
|
||||
lByte = (lValue >>> (lCount * 8)) & 255;
|
||||
WordToHexValueTemp = "0" + lByte.toString(16);
|
||||
WordToHexValue = WordToHexValue + WordToHexValueTemp.substr(WordToHexValueTemp.length - 2, 2);
|
||||
}
|
||||
return WordToHexValue;
|
||||
};
|
||||
var uTF8Encode = function(string) {
|
||||
string = string.replace(/\x0d\x0a/g, "\x0a");
|
||||
var output = "";
|
||||
for (var n = 0; n < string.length; n++) {
|
||||
var c = string.charCodeAt(n);
|
||||
if (c < 128) {
|
||||
output += String.fromCharCode(c);
|
||||
} else if ((c > 127) && (c < 2048)) {
|
||||
output += String.fromCharCode((c >> 6) | 192);
|
||||
output += String.fromCharCode((c & 63) | 128);
|
||||
} else {
|
||||
output += String.fromCharCode((c >> 12) | 224);
|
||||
output += String.fromCharCode(((c >> 6) & 63) | 128);
|
||||
output += String.fromCharCode((c & 63) | 128);
|
||||
}
|
||||
}
|
||||
return output;
|
||||
};
|
||||
$.extend($,{
|
||||
md5: function(string) {
|
||||
var x = Array();
|
||||
var k, AA, BB, CC, DD, a, b, c, d;
|
||||
var S11=7, S12=12, S13=17, S14=22;
|
||||
var S21=5, S22=9 , S23=14, S24=20;
|
||||
var S31=4, S32=11, S33=16, S34=23;
|
||||
var S41=6, S42=10, S43=15, S44=21;
|
||||
string = uTF8Encode(string);
|
||||
x = convertToWordArray(string);
|
||||
a = 0x67452301; b = 0xEFCDAB89; c = 0x98BADCFE; d = 0x10325476;
|
||||
for (k = 0; k < x.length; k += 16) {
|
||||
AA = a; BB = b; CC = c; DD = d;
|
||||
a = FF(a, b, c, d, x[k+0], S11, 0xD76AA478);
|
||||
d = FF(d, a, b, c, x[k+1], S12, 0xE8C7B756);
|
||||
c = FF(c, d, a, b, x[k+2], S13, 0x242070DB);
|
||||
b = FF(b, c, d, a, x[k+3], S14, 0xC1BDCEEE);
|
||||
a = FF(a, b, c, d, x[k+4], S11, 0xF57C0FAF);
|
||||
d = FF(d, a, b, c, x[k+5], S12, 0x4787C62A);
|
||||
c = FF(c, d, a, b, x[k+6], S13, 0xA8304613);
|
||||
b = FF(b, c, d, a, x[k+7], S14, 0xFD469501);
|
||||
a = FF(a, b, c, d, x[k+8], S11, 0x698098D8);
|
||||
d = FF(d, a, b, c, x[k+9], S12, 0x8B44F7AF);
|
||||
c = FF(c, d, a, b, x[k+10], S13, 0xFFFF5BB1);
|
||||
b = FF(b, c, d, a, x[k+11], S14, 0x895CD7BE);
|
||||
a = FF(a, b, c, d, x[k+12], S11, 0x6B901122);
|
||||
d = FF(d, a, b, c, x[k+13], S12, 0xFD987193);
|
||||
c = FF(c, d, a, b, x[k+14], S13, 0xA679438E);
|
||||
b = FF(b, c, d, a, x[k+15], S14, 0x49B40821);
|
||||
a = GG(a, b, c, d, x[k+1], S21, 0xF61E2562);
|
||||
d = GG(d, a, b, c, x[k+6], S22, 0xC040B340);
|
||||
c = GG(c, d, a, b, x[k+11], S23, 0x265E5A51);
|
||||
b = GG(b, c, d, a, x[k+0], S24, 0xE9B6C7AA);
|
||||
a = GG(a, b, c, d, x[k+5], S21, 0xD62F105D);
|
||||
d = GG(d, a, b, c, x[k+10], S22, 0x2441453);
|
||||
c = GG(c, d, a, b, x[k+15], S23, 0xD8A1E681);
|
||||
b = GG(b, c, d, a, x[k+4], S24, 0xE7D3FBC8);
|
||||
a = GG(a, b, c, d, x[k+9], S21, 0x21E1CDE6);
|
||||
d = GG(d, a, b, c, x[k+14], S22, 0xC33707D6);
|
||||
c = GG(c, d, a, b, x[k+3], S23, 0xF4D50D87);
|
||||
b = GG(b, c, d, a, x[k+8], S24, 0x455A14ED);
|
||||
a = GG(a, b, c, d, x[k+13], S21, 0xA9E3E905);
|
||||
d = GG(d, a, b, c, x[k+2], S22, 0xFCEFA3F8);
|
||||
c = GG(c, d, a, b, x[k+7], S23, 0x676F02D9);
|
||||
b = GG(b, c, d, a, x[k+12], S24, 0x8D2A4C8A);
|
||||
a = HH(a, b, c, d, x[k+5], S31, 0xFFFA3942);
|
||||
d = HH(d, a, b, c, x[k+8], S32, 0x8771F681);
|
||||
c = HH(c, d, a, b, x[k+11], S33, 0x6D9D6122);
|
||||
b = HH(b, c, d, a, x[k+14], S34, 0xFDE5380C);
|
||||
a = HH(a, b, c, d, x[k+1], S31, 0xA4BEEA44);
|
||||
d = HH(d, a, b, c, x[k+4], S32, 0x4BDECFA9);
|
||||
c = HH(c, d, a, b, x[k+7], S33, 0xF6BB4B60);
|
||||
b = HH(b, c, d, a, x[k+10], S34, 0xBEBFBC70);
|
||||
a = HH(a, b, c, d, x[k+13], S31, 0x289B7EC6);
|
||||
d = HH(d, a, b, c, x[k+0], S32, 0xEAA127FA);
|
||||
c = HH(c, d, a, b, x[k+3], S33, 0xD4EF3085);
|
||||
b = HH(b, c, d, a, x[k+6], S34, 0x4881D05);
|
||||
a = HH(a, b, c, d, x[k+9], S31, 0xD9D4D039);
|
||||
d = HH(d, a, b, c, x[k+12], S32, 0xE6DB99E5);
|
||||
c = HH(c, d, a, b, x[k+15], S33, 0x1FA27CF8);
|
||||
b = HH(b, c, d, a, x[k+2], S34, 0xC4AC5665);
|
||||
a = II(a, b, c, d, x[k+0], S41, 0xF4292244);
|
||||
d = II(d, a, b, c, x[k+7], S42, 0x432AFF97);
|
||||
c = II(c, d, a, b, x[k+14], S43, 0xAB9423A7);
|
||||
b = II(b, c, d, a, x[k+5], S44, 0xFC93A039);
|
||||
a = II(a, b, c, d, x[k+12], S41, 0x655B59C3);
|
||||
d = II(d, a, b, c, x[k+3], S42, 0x8F0CCC92);
|
||||
c = II(c, d, a, b, x[k+10], S43, 0xFFEFF47D);
|
||||
b = II(b, c, d, a, x[k+1], S44, 0x85845DD1);
|
||||
a = II(a, b, c, d, x[k+8], S41, 0x6FA87E4F);
|
||||
d = II(d, a, b, c, x[k+15], S42, 0xFE2CE6E0);
|
||||
c = II(c, d, a, b, x[k+6], S43, 0xA3014314);
|
||||
b = II(b, c, d, a, x[k+13], S44, 0x4E0811A1);
|
||||
a = II(a, b, c, d, x[k+4], S41, 0xF7537E82);
|
||||
d = II(d, a, b, c, x[k+11], S42, 0xBD3AF235);
|
||||
c = II(c, d, a, b, x[k+2], S43, 0x2AD7D2BB);
|
||||
b = II(b, c, d, a, x[k+9], S44, 0xEB86D391);
|
||||
a = addUnsigned(a, AA);
|
||||
b = addUnsigned(b, BB);
|
||||
c = addUnsigned(c, CC);
|
||||
d = addUnsigned(d, DD);
|
||||
}
|
||||
var tempValue = wordToHex(a) + wordToHex(b) + wordToHex(c) + wordToHex(d);
|
||||
return tempValue.toLowerCase();
|
||||
}
|
||||
});
|
||||
})(Zepto);
|
||||
@@ -22,6 +22,7 @@
|
||||
<span class="mui-icon iconfont icon-tab02"></span>
|
||||
<span class="mui-tab-label">行情</span>
|
||||
</a>
|
||||
|
||||
<a class="mui-tab-item" id="selfInfo">
|
||||
<span class="mui-icon iconfont icon-tab04"></span>
|
||||
<span class="mui-tab-label">我的</span>
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
"Console": {
|
||||
"description": "调试输出日志"
|
||||
},
|
||||
|
||||
|
||||
"Device": {
|
||||
"description": "设备信息"
|
||||
},
|
||||
@@ -61,7 +61,7 @@
|
||||
"Invocation": {
|
||||
"description": "Native.js能力"
|
||||
},
|
||||
|
||||
|
||||
"Orientation": {
|
||||
"description": "方向传感器"
|
||||
},
|
||||
@@ -107,7 +107,9 @@
|
||||
|
||||
"Push": {
|
||||
"description": "消息推送"
|
||||
},"Statistic":{},"Share":{}
|
||||
},
|
||||
"Statistic": {},
|
||||
"Share": {}
|
||||
},
|
||||
"plus": {
|
||||
"error": {
|
||||
@@ -164,7 +166,34 @@
|
||||
"password": "",/*Android应用打包使用密钥库中证书的密码*/
|
||||
"aliasname": "",/*Android应用打包使用密钥库中证书的别名*/
|
||||
"ImmersedStatusbar": true,/*Android平台开启沉浸式状态栏样式*/
|
||||
"permissions": ["<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>","<uses-permission android:name=\"android.permission.GET_TASKS\"/>","<uses-permission android:name=\"android.permission.VIBRATE\"/>","<uses-permission android:name=\"android.permission.READ_LOGS\"/>","<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>","<uses-feature android:name=\"android.hardware.camera.autofocus\"/>","<uses-permission android:name=\"android.permission.SYSTEM_ALERT_WINDOW\"/>","<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.RECEIVE_BOOT_COMPLETED\"/>","<uses-permission android:name=\"com.android.launcher.permission.UNINSTALL_SHORTCUT\"/>","<uses-permission android:name=\"android.permission.CAMERA\"/>","<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>","<uses-permission android:name=\"com.android.launcher.permission.INSTALL_SHORTCUT\"/>","<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>","<uses-permission android:name=\"android.permission.INTERNET\"/>","<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>","<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>","<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>","<uses-permission android:name=\"android.permission.CALL_PHONE\"/>","<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>","<uses-feature android:name=\"android.hardware.camera\"/>","<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>","<uses-permission android:name=\"android.permission.RECEIVE_USER_PRESENT\"/>","<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>","<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"]
|
||||
"permissions": [
|
||||
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.GET_TASKS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
|
||||
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
|
||||
"<uses-permission android:name=\"android.permission.SYSTEM_ALERT_WINDOW\"/>",
|
||||
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.RECEIVE_BOOT_COMPLETED\"/>",
|
||||
"<uses-permission android:name=\"com.android.launcher.permission.UNINSTALL_SHORTCUT\"/>",
|
||||
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
|
||||
"<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>",
|
||||
"<uses-permission android:name=\"com.android.launcher.permission.INSTALL_SHORTCUT\"/>",
|
||||
"<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.INTERNET\"/>",
|
||||
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
|
||||
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
|
||||
"<uses-permission android:name=\"android.permission.CALL_PHONE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
|
||||
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
||||
"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
|
||||
"<uses-permission android:name=\"android.permission.RECEIVE_USER_PRESENT\"/>",
|
||||
"<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
||||
]
|
||||
},
|
||||
"orientation": [
|
||||
"portrait-primary"
|
||||
@@ -255,7 +284,14 @@
|
||||
}
|
||||
},
|
||||
"plugins": {
|
||||
"statics": {"umeng":{"appkey_ios":"5ab09d69a40fa374da0002e4","channelid_ios":"有房IOS","appkey_android":"5ab09e16f29d9854f200026e","channelid_android":"有房Android"}},
|
||||
"statics": {
|
||||
"umeng": {
|
||||
"appkey_ios": "5ab09d69a40fa374da0002e4",
|
||||
"channelid_ios": "有房IOS",
|
||||
"appkey_android": "5ab09e16f29d9854f200026e",
|
||||
"channelid_android": "有房Android"
|
||||
}
|
||||
},
|
||||
"maps": {
|
||||
"baidu": {/*配置应用使用百度地图,参考http://ask.dcloud.net.cn/article/29*/
|
||||
"appkey_ios": "cmXf4GGYGYiu1fuVRN4847cGvgR25WTV",/*iOS平台百度地图appkey*/
|
||||
@@ -271,13 +307,24 @@
|
||||
"description": "个推推送"
|
||||
}
|
||||
},
|
||||
"share": {"weixin":{"description":"可选,微信分享"}},
|
||||
"share": {
|
||||
"weixin": {
|
||||
"description": "可选,微信分享",
|
||||
"appid": "wx734a9e3085abcd90",
|
||||
"appsecret": "47ce59f3c52984c4e193880fb09b12af"
|
||||
},
|
||||
"sina": {
|
||||
"appkey": "3194052034",
|
||||
"appsecret": "e863ae4e4f14d41af3142e5ae06867dd",
|
||||
"redirect_uri": "http://sh.fangjia.com/",
|
||||
"description": "可选,新浪微博分享"
|
||||
}
|
||||
},
|
||||
"payment": {},
|
||||
"oauth": {
|
||||
"weixin": {
|
||||
"appid": "wx734a9e3085abcd90",/*微信开放平台申请应用的AppID值*/
|
||||
"appsecret": "47ce59f3c52984c4e193880fb09b12af",/*微信开放平台申请应用的AppSecret值*/
|
||||
"description": "微信登录"
|
||||
"appid": "wx734a9e3085abcd90",
|
||||
"appsecret": "47ce59f3c52984c4e193880fb09b12af"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -0,0 +1,206 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>房产评估</title>
|
||||
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
|
||||
<link rel="shortcut icon" href="/favicon.ico">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
<link rel="stylesheet" href="../../css/sm.css">
|
||||
<link rel="stylesheet" href="../../css/main.css">
|
||||
<link rel="stylesheet" href="../../css/theme-orange.css">
|
||||
|
||||
<style>
|
||||
/*em{font-style:normal;}
|
||||
em.up{color:#ff1100;}
|
||||
em.down{color:#2cb66a;}*/
|
||||
.list-block .item-title{font-size:0.85rem;}
|
||||
.list-block .item-title span.span01{font-size:0.7rem;color:#666;margin-left:0.3rem;}
|
||||
.icon-add{width:0.6rem;height:0.6rem;background:url(../../images/icon-add.png) no-repeat center center;background-size:100%;margin-right:0.3rem;}
|
||||
.star .icon{width:0.7rem;height:0.7rem;background:url(../../images/icon-star.png) no-repeat center center;background-size:100%;margin-right:0.1rem;vertical-align:sub;}
|
||||
.star .icon-star01{background:url(../../images/icon-star01.png) no-repeat center center;background-size:100%;}
|
||||
.star .icon-star02{background:url(../../images/icon-star02.png) no-repeat center center;background-size:100%;}
|
||||
.list-block .add{background:none;font-size:0.75rem;color:#F18D00;position:absolute;top:0;right:0;padding:0.5rem 0.75rem;}
|
||||
.list-block .add01{padding:0 0.5rem;top:1.1rem;right:0.75rem;}
|
||||
.list-block .item-subtitle em.em02{font-size:0.75rem;color:#EB5F34;}
|
||||
.list-block .item-subtitle div.price{position:absolute;bottom:-0.3rem;right:0;}
|
||||
.list-block .item-subtitle div.price em strong{font-size:1.4rem;color:#EB5F34;font-weight:bold;margin-right:0.1rem;}
|
||||
/**添加loading加载效果**/
|
||||
.loadingBg{width:100%;height:100%;background:#fff;overflow:hidden;position:absolute;top:71px;left:0;z-index:100;}
|
||||
.loadingBg .infinite-scroll-preloader{margin-top:60%;}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="page-group">
|
||||
<div class="page page-current">
|
||||
<header class="bar bar-nav">
|
||||
<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
|
||||
<span class="icon icon-left"></span>
|
||||
</button>
|
||||
<h1 class="title">房产评估</h1>
|
||||
</header>
|
||||
<!-- 加载loading页 -->
|
||||
<div class="loadingBg">
|
||||
<div class="infinite-scroll-preloader">
|
||||
<div class="preloader"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content">
|
||||
<div class="list-block media-list">
|
||||
<!-- 动态封装部分 begin -->
|
||||
<ul>
|
||||
|
||||
</ul>
|
||||
<!-- 动态封装部分 end -->
|
||||
</div>
|
||||
<div class="content-block" style="display: none;">
|
||||
<p><a href="#" class="button button-big button-fill theme">立即评估</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="../../js/zepto.js" charset="utf-8"></script>
|
||||
|
||||
<script>
|
||||
|
||||
/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
|
||||
Zepto = $
|
||||
$.config = {router: false}
|
||||
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" src="../../js/beacon_release.js"></script>
|
||||
<script type="text/javascript" src="../../js/light7.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
|
||||
<script src="../../config.js"></script>
|
||||
<script type="text/javascript" src="../../js/common.js" ></script>
|
||||
<script type="text/javascript" src="../../js/axios.min.js"></script>
|
||||
<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
|
||||
<script type="text/javascript" src="../../js/shara/sharaMine.js" ></script>
|
||||
|
||||
<script>
|
||||
var uid = "162167854504869888";
|
||||
|
||||
/* 房产用途 */
|
||||
$(document).on('click','.open-vertical-modal', function () {
|
||||
$.modal({
|
||||
title: '房产用途',
|
||||
verticalButtons: true,
|
||||
buttons: [
|
||||
{
|
||||
text: '自住',
|
||||
onClick: function() {
|
||||
window.location.href = "01_index01_myHouse01_index.html";
|
||||
}
|
||||
},
|
||||
{
|
||||
text: '出租',
|
||||
onClick: function() {
|
||||
window.location.href = "01_index01_myHouse01_index.html";
|
||||
}
|
||||
},
|
||||
{
|
||||
text: '空置',
|
||||
onClick: function() {
|
||||
window.location.href = "01_index01_myHouse01_index.html";
|
||||
}
|
||||
},
|
||||
{
|
||||
text: '取消'
|
||||
}
|
||||
]
|
||||
})
|
||||
});
|
||||
|
||||
function selectEvaluateList(){
|
||||
//先清空列表
|
||||
$('.list-block ul').html("");
|
||||
var htmlContent = '';
|
||||
axios.get("/rest/evaluate/houseinfolist",
|
||||
{
|
||||
params: {
|
||||
uid: uid
|
||||
}
|
||||
}).then(function (response) {
|
||||
var resultsMap = response.data.data;
|
||||
var results = resultsMap.houseInfoList;
|
||||
var xqOneMonthUpDownRangeMap = resultsMap.xqOneMonthUpDownRangeMap;
|
||||
var cityAvgPriceMap = resultsMap.cityAvgPriceMap;
|
||||
|
||||
if(results!=null && results.length>0){
|
||||
for(var i in results){
|
||||
var result = results[i];
|
||||
var tempTotalPrice = result.totalPrice;
|
||||
//考虑是否为数字,加强逻辑判断
|
||||
if(!isNaN(tempTotalPrice)){
|
||||
//转换成元,四舍五入
|
||||
tempTotalPrice = (parseFloat(tempTotalPrice)/10000).toFixed(2);
|
||||
}
|
||||
htmlContent = htmlContent +"<li><a href='#' class='item-content'>";
|
||||
htmlContent = htmlContent +"<div class='item-inner'><div class='item-title-row'>";
|
||||
htmlContent = htmlContent +"<div class='item-title'>"+result.name+"<span class='span01'>"+result.city+"-"+result.region+"</span></div>";
|
||||
htmlContent = htmlContent +"</div><div class='item-title-row'>";
|
||||
htmlContent = htmlContent +"<div class='item-title'><small>"+result.roomCount+"室"+result.hallCount+"厅 "+result.area+"m "+result.floor+"/"+result.height+"层</small></div>";
|
||||
htmlContent = htmlContent +"</div><div class='item-subtitle'>";
|
||||
//对应城市地区小区30天涨跌幅
|
||||
//动态构建key
|
||||
var xqOneMonthUpDownRangeKey = result.city+"-"+result.region +"-"+result.name;
|
||||
//取得key对于的value
|
||||
var xqOneMonthUpDownRangeValue = xqOneMonthUpDownRangeMap[xqOneMonthUpDownRangeKey];
|
||||
if(!isNaN(xqOneMonthUpDownRangeValue)){
|
||||
//涨跌幅大于零
|
||||
if(parseFloat(xqOneMonthUpDownRangeValue)>=0){
|
||||
htmlContent = htmlContent + "<div>近30天涨跌幅: <em class='up'>"+xqOneMonthUpDownRangeValue+"%<i class='icon icon-arrow-red'></i></em></div>";
|
||||
}else{
|
||||
//涨跌幅小于零
|
||||
htmlContent = htmlContent + "<div>近30天涨跌幅: <em class='down'>"+Math.abs(xqOneMonthUpDownRangeValue)+"%<i class='icon icon-arrow-green'></i></em></div>";
|
||||
}
|
||||
}else{
|
||||
//为非数字清空放空格
|
||||
htmlContent = htmlContent + "<div>近30天涨跌幅: <em class='down'>"+ +"%<i class='icon icon-arrow-green'></i></em></div>";
|
||||
}
|
||||
|
||||
//相比对于城市均价
|
||||
var cityAvgPriceKey = result.city;
|
||||
//取得对应城市的value
|
||||
var cityAvgPriceValue = cityAvgPriceMap[cityAvgPriceKey];
|
||||
if(!isNaN(cityAvgPriceValue)){
|
||||
if(parseInt(cityAvgPriceValue)>=parseInt(result.price)){
|
||||
htmlContent = htmlContent + "<div>相比"+result.city+"均价: <em class='up'>"+'高'+(parseInt(cityAvgPriceValue)-parseInt(result.price))+'元'+"</em></div>";
|
||||
}else{
|
||||
htmlContent = htmlContent + "<div>相比"+result.city+"均价: <em class='down'>"+'低'+(parseInt(result.price)-parseInt(cityAvgPriceValue))+'元'+"</em></div>";
|
||||
}
|
||||
}else{
|
||||
//为非数字清空放空格
|
||||
htmlContent = htmlContent + "<div>相比"+result.city+"均价: <em class='down'>"+' '+"</em></div>";
|
||||
}
|
||||
htmlContent = htmlContent + "<div>均价: <em class='em02'>"+result.price+"元/㎡</em></div>";
|
||||
htmlContent = htmlContent + "<div class='price'><em><strong>"+tempTotalPrice+"</strong>万</em></div>";
|
||||
htmlContent = htmlContent + "</div></div></a><a class='add open-vertical-modal'><i class='icon icon-add' id="+result.id+" uid="+result.uid+"></i>添加管理</a>"
|
||||
htmlContent = htmlContent +"</li>";
|
||||
}
|
||||
//动态追加内容
|
||||
$('.list-block ul').html(htmlContent);
|
||||
}
|
||||
//添加loading等待效果
|
||||
$(".loadingBg").hide();
|
||||
$(".content-block").show();
|
||||
}).catch(function (error) {
|
||||
console.log(error);
|
||||
});
|
||||
}
|
||||
|
||||
//界面加载
|
||||
$(document).ready(function () {
|
||||
selectEvaluateList();
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,328 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>评估报告</title>
|
||||
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
|
||||
<link rel="shortcut icon" href="/favicon.ico">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
|
||||
<link rel="stylesheet" href="http://g.alicdn.com/msui/sm/0.6.2/css/sm.css">
|
||||
<link rel="stylesheet" href="style/main.css">
|
||||
<link rel="stylesheet" href="style/theme-orange.css">
|
||||
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=0a7eM0lkIvpKGPiq1bMCfeH7"></script>
|
||||
|
||||
<style>
|
||||
.priceRecovery + .list-block ul:after{height:0;}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="page-group">
|
||||
<div class="page page-current">
|
||||
<header class="bar bar-nav">
|
||||
<button class="button button-link button-nav pull-left" onclick="history.go(-1)">
|
||||
<span class="icon icon-left"></span>
|
||||
</button>
|
||||
<h1 class="title">评估报告</h1>
|
||||
</header>
|
||||
<div class="content">
|
||||
<div class="list-block media-list">
|
||||
<ul>
|
||||
<li>
|
||||
<div class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><b>龙盛佳苑</b><span class="span01">上海-静安</span></div>
|
||||
</div>
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><small>2室1厅 60m 1/6层</small></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a class="add add01 button theme" href="03_evaluation02_inputInfo.html">再估一套</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="card cardPrice cardPrice01">
|
||||
<div class="card-header">
|
||||
<span>评估总价</span>
|
||||
<span>均价:<em>65241元/㎡</em></span>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<div class="card-content-inner">391<span>万</span></div>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<span>
|
||||
<em><strong>3.37</strong>%<i class="icon icon-arrow-green"></i></em>
|
||||
<label>近30天涨跌幅</label>
|
||||
</span>
|
||||
<span>
|
||||
<em>低 <strong>2888</strong> 元</em>
|
||||
<label>相比上海均价</label>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card cardPrice cardPrice02">
|
||||
<div class="card-footer">
|
||||
<span>
|
||||
<em><strong>12</strong>%<i class="icon icon-arrow-green"></i></em>
|
||||
<label>下跌概率</label>
|
||||
</span>
|
||||
<span>
|
||||
<label style="color:#666;">本小区2月活跃度为20;价格近3个月处于下跌趋势,小区物业一般,交通不便利,所属板块为不活跃。</label>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content-block priceRecovery">
|
||||
<p><label>估的准吗?</label></p>
|
||||
<p><small>您的反馈很重要,是我们努力的动力</small></p>
|
||||
<div class="row">
|
||||
<div class="col-50"><a class="button">高了</a></div>
|
||||
<div class="col-50"><a class="button">低了</a></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list-block media-list">
|
||||
<ul>
|
||||
<li>
|
||||
<div class="item-content">
|
||||
<div class="item-inner" style="padding:0.75rem 0;">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title" style="width:65%;overflow:visible;white-space:normal;font-size:0.75rem;">加入"我的房产",随时掌握房产价值变化</div>
|
||||
<div class="item-after"><a class="add add01 button theme open-vertical-modal">立即添加</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<a class="ad" href=""><img src="images/adImg.png"></a>
|
||||
<div class="topic">
|
||||
<div class="topicTitle" style="position:relative;">均价走势
|
||||
<div class="content-block">
|
||||
<div class="buttons-row theme">
|
||||
<a href="#tabChartAvg1" class="tab-link button active">半年</a>
|
||||
<a href="#tabChartAvg2" class="tab-link button">一年</a>
|
||||
<a href="#tabChartAvg3" class="tab-link button">三年</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="topicContent" style="padding:0;">
|
||||
<div class="chart" id="chart"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="http://g.alicdn.com/sj/lib/zepto/zepto.js" charset="utf-8"></script>
|
||||
|
||||
<script>
|
||||
|
||||
/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
|
||||
Zepto = $
|
||||
$.config = {router: false}
|
||||
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" src="js/light7.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="js/cn.js" charset="utf-8"></script>
|
||||
|
||||
<script>
|
||||
|
||||
/* button状态切换 */
|
||||
$(".priceRecovery .col-50 .button").on("click", function () {
|
||||
$(".priceRecovery .col-50 .button").removeClass("theme");
|
||||
$(this).addClass("theme");
|
||||
});
|
||||
|
||||
/* button状态切换 */
|
||||
$(".content-block .button").on("click", function () {
|
||||
$(this).parent().children().removeClass("active");
|
||||
$(this).addClass("active");
|
||||
});
|
||||
|
||||
/* 房产用途 */
|
||||
$(document).on('click','.open-vertical-modal', function () {
|
||||
$.modal({
|
||||
title: '房产用途',
|
||||
verticalButtons: true,
|
||||
buttons: [
|
||||
{
|
||||
text: '自住',
|
||||
onClick: function() {
|
||||
window.location.href = "01_index01_myHouse01_index.html";
|
||||
}
|
||||
},
|
||||
{
|
||||
text: '出租',
|
||||
onClick: function() {
|
||||
window.location.href = "01_index01_myHouse01_index.html";
|
||||
}
|
||||
},
|
||||
{
|
||||
text: '空置',
|
||||
onClick: function() {
|
||||
window.location.href = "01_index01_myHouse01_index.html";
|
||||
}
|
||||
},
|
||||
{
|
||||
text: '取消'
|
||||
}
|
||||
]
|
||||
})
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<script src="js/highcharts-4.2.3.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
/* 均价走势 */
|
||||
function yearAvgPrice(){
|
||||
var categories = new Array();
|
||||
var series = new Array();
|
||||
var o = new Object();
|
||||
o.name = '龙盛佳苑';
|
||||
|
||||
var odata = new Array();
|
||||
o.data = odata
|
||||
series.push(o);
|
||||
|
||||
var o2 = new Object();
|
||||
o2.name = '上海';
|
||||
var o2data = new Array();
|
||||
|
||||
var o3 = new Object();
|
||||
o3.name = '静安';
|
||||
var o3data = new Array();
|
||||
odata.push(46000)
|
||||
o2data.push(50400)
|
||||
o3data.push(52800)
|
||||
categories.push('2017-02')
|
||||
odata.push(47000)
|
||||
o2data.push(50600)
|
||||
o3data.push(52900)
|
||||
categories.push('2017-03')
|
||||
odata.push(47400)
|
||||
o2data.push(50300)
|
||||
o3data.push(52700)
|
||||
categories.push('2017-04')
|
||||
odata.push(49000)
|
||||
o2data.push(50200)
|
||||
o3data.push(55200)
|
||||
categories.push('2017-05')
|
||||
odata.push(49400)
|
||||
o2data.push(50800)
|
||||
o3data.push(56100)
|
||||
categories.push('2017-06')
|
||||
odata.push(49600)
|
||||
o2data.push(51900)
|
||||
o3data.push(56900)
|
||||
categories.push('2017-07')
|
||||
odata.push(48400)
|
||||
o2data.push(53100)
|
||||
o3data.push(59400)
|
||||
categories.push('2017-08')
|
||||
odata.push(52200)
|
||||
o2data.push(51200)
|
||||
o3data.push(62400)
|
||||
categories.push('2017-09')
|
||||
odata.push(54900)
|
||||
o2data.push(56200)
|
||||
o3data.push(65600)
|
||||
categories.push('2017-10')
|
||||
odata.push(57400)
|
||||
o2data.push(57000)
|
||||
o3data.push(66800)
|
||||
categories.push('2017-11')
|
||||
odata.push(54800)
|
||||
o2data.push(56700)
|
||||
o3data.push(66200)
|
||||
categories.push('2017-12')
|
||||
odata.push(55000)
|
||||
o2data.push(58300)
|
||||
o3data.push(66000)
|
||||
categories.push('2018-01')
|
||||
|
||||
o3.data = o3data
|
||||
series.push(o3);
|
||||
|
||||
o2.data = o2data
|
||||
series.push(o2);
|
||||
|
||||
charts = Highcharts.chart('chart', {
|
||||
title: {
|
||||
text: ''
|
||||
},
|
||||
subtitle: {
|
||||
text: '',
|
||||
x: -20
|
||||
},
|
||||
colors: ['#F88C9F', '#AAD672', '#AE94E9'],
|
||||
xAxis: {
|
||||
categories: categories,
|
||||
boundaryGap: false,
|
||||
tickInterval: 2,
|
||||
tickLength: 6,
|
||||
labels: {
|
||||
style: {
|
||||
fontSize: 12
|
||||
}
|
||||
}
|
||||
},
|
||||
yAxis: {
|
||||
allowDecimals: false,
|
||||
title: {
|
||||
text: ''
|
||||
},
|
||||
plotLines: [{
|
||||
value: 0,
|
||||
width: 1,
|
||||
color: 'red'
|
||||
}]
|
||||
},
|
||||
tooltip: {
|
||||
valueSuffix: '元/㎡'
|
||||
},
|
||||
legend: {
|
||||
layout: 'horizontal',
|
||||
align: 'center',
|
||||
verticalAlign: 'bottom',
|
||||
y: 0,
|
||||
borderWidth: 0
|
||||
},
|
||||
plotOptions: {
|
||||
line: {
|
||||
connectNulls: true //该设置会连接空值点
|
||||
},
|
||||
series: {
|
||||
events: {
|
||||
legendItemClick: function(e) {
|
||||
return false;
|
||||
}
|
||||
},
|
||||
marker: {
|
||||
radius: 3, //曲线点半径,默认是4
|
||||
symbol: 'circle' //曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle"
|
||||
}
|
||||
}
|
||||
},
|
||||
series: series,
|
||||
credits: {
|
||||
enabled: false
|
||||
}
|
||||
})
|
||||
}
|
||||
yearAvgPrice();
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,132 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>快捷登录</title>
|
||||
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
|
||||
<link rel="shortcut icon" href="/favicon.ico">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
|
||||
<link rel="stylesheet" href="http://g.alicdn.com/msui/sm/0.6.2/css/sm.css">
|
||||
<link rel="stylesheet" href="../../css/main.css">
|
||||
<link rel="stylesheet" href="../../css/theme-orange.css">
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="page-group">
|
||||
<div class="page page-current">
|
||||
<header class="bar bar-nav">
|
||||
<button class="button button-link button-nav pull-left" onclick="history.go(-1)">
|
||||
<span class="icon icon-left"></span>
|
||||
</button>
|
||||
<h1 class="title">快捷登录</h1>
|
||||
</header>
|
||||
<div class="content">
|
||||
<div class="list-block media-list">
|
||||
<ul>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><i class="icon icon-login01"></i></div>
|
||||
<div class="item-after">
|
||||
<input type="number" id="input_phoneNumber" class="textAlignLeft" placeholder="请输入手机号码">
|
||||
<label>
|
||||
<span id="sendPhoneCode" class="sendCode theme" @click="sendCode()">获取验证码</span>
|
||||
<span class="waiting theme dn">48 s</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><i class="icon icon-login02"></i></div>
|
||||
<div class="item-after">
|
||||
<input type="number" id="input_codeSms" class="textAlignLeft" placeholder="请输入验证码">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<p class="agreement">
|
||||
<a class="check"><img class="checkImg" src="../../images/checkImg02.png" id="check"></a>
|
||||
我已阅读并接受<a href="05_mine05_set03_agreement.html">《服务协议》</a>
|
||||
</p>
|
||||
<div class="content-block loginBox">
|
||||
<p><a href="05_mine01_index.html" class="button button-big button-fill theme" id="login_btn">登录</a></p>
|
||||
<p><a href="05_mine00_login02_password.html">账号密码登录</a></p>
|
||||
</div>
|
||||
<div class="content-block loginMode">
|
||||
<p class="line">
|
||||
<span>第三方登录</span>
|
||||
</p>
|
||||
<p>
|
||||
<a href="05_mine00_login04_set.html" class="icon icon-loginMode01"></a>
|
||||
<a href="05_mine00_login04_set.html" class="icon icon-loginMode02"></a>
|
||||
<a href="05_mine00_login04_set.html" class="icon icon-loginMode03"></a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="http://g.alicdn.com/sj/lib/zepto/zepto.js" charset="utf-8"></script>
|
||||
|
||||
<script>
|
||||
|
||||
/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
|
||||
Zepto = $
|
||||
$.config = {router: false}
|
||||
|
||||
</script>
|
||||
<script type="text/javascript" src="../../js/vue.js"></script>
|
||||
<script type="text/javascript" src="../../js/light7.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/login/codeSms.js" ></script>
|
||||
|
||||
<script>
|
||||
|
||||
/* 获取验证码等待状态 */
|
||||
$(".sendCode").click(function(){
|
||||
$(".waiting").show();
|
||||
$(".sendCode").hide();
|
||||
});
|
||||
|
||||
/* 勾选-已阅读 */
|
||||
$(".check").on("click", function () {
|
||||
var a = $(this).find(".checkImg").css("display");
|
||||
if(a == "block"){
|
||||
$(".checkImg").hide();
|
||||
}else{
|
||||
$(".checkImg").show();
|
||||
}
|
||||
});
|
||||
|
||||
/* 错误提示-快捷登录 */
|
||||
$("#login_btn").on("click", function () {
|
||||
var a = $("#input_phoneNumber").val();
|
||||
var b = $("#input_codeSms").val();
|
||||
if(a == ""){
|
||||
$.toast("请输入手机号码");
|
||||
return false;
|
||||
}
|
||||
else if(b == ""){
|
||||
$.toast("请输入验证码");
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -13,6 +13,11 @@
|
||||
<link rel="stylesheet" href="../../css/theme-blue.css">
|
||||
<link rel="stylesheet" href="../../css/mui.min.css">
|
||||
<link rel="stylesheet" href="../../css/main.css">
|
||||
|
||||
<style>
|
||||
.list-block .item-text{-webkit-line-clamp:unset;}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
@@ -31,7 +36,7 @@
|
||||
<div class="content contentText infinite-scroll infinite-scroll-bottom" data-distance="40">
|
||||
<div class="content-padded">
|
||||
<h1 id="title"></h1>
|
||||
<p><small id="source"></small><small style="float:right;" id="visit_count"><i class="icon icon-eye"></i></small><br><small id="create_time"></small></p>
|
||||
<p><small id="source"></small><small style="float:right;" id="visit_count"><i class="icon icon-eye-grey"></i></small><br><small id="create_time"></small></p>
|
||||
<div id="content">
|
||||
</div>
|
||||
</div>
|
||||
@@ -75,7 +80,7 @@
|
||||
|
||||
<div class="searchbar row commentReleaseBox dn">
|
||||
<div class="search-input col-85">
|
||||
<input type="text">
|
||||
<input type="text" maxlength="250">
|
||||
</div>
|
||||
<a class="col-15" id="publishBtn">发布</a>
|
||||
</div>
|
||||
@@ -101,7 +106,6 @@ $.config = {router: false}
|
||||
<script type="text/javascript" src="../../js/vue.js"></script>
|
||||
<script type="text/javascript" src="../../js/light7.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
|
||||
<script src="../../config.js"></script>
|
||||
<script type="text/javascript" src="../../js/common.js" ></script>
|
||||
<script type="text/javascript" src="../../js/axios.min.js"></script>
|
||||
@@ -110,7 +114,7 @@ $.config = {router: false}
|
||||
<script type="text/javascript" src="../../js/shara/sharaMine.js" ></script>
|
||||
<script>
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
var id;//= "183627425584775168";
|
||||
var id//= "183627425584775168";
|
||||
var shareUrl = BASE_PATH+"/news/newDetail?newsId=";
|
||||
var sharehrefTitle = "停车坐爱枫林晚,霜叶红于二月花";
|
||||
var sharehrefDes = "客观里面请!";
|
||||
@@ -301,10 +305,18 @@ function addItems(number, lastIndex) {
|
||||
var publishTime = vo.addTime;
|
||||
|
||||
var timeString = getDateDiff(curTime, publishTime)
|
||||
|
||||
var content = "";
|
||||
if(vo.content){
|
||||
content = vo.content
|
||||
if(content.length > 250){
|
||||
content = content.substr(0,250)+"...";
|
||||
}
|
||||
}
|
||||
|
||||
html = html + "<div class='item-after'><span>"+timeString+"</span></div>"+
|
||||
"</div>"+
|
||||
"<div class='item-text'>"+vo.content+"</div>"+
|
||||
"<div class='item-text'>"+content+"</div>"+
|
||||
"</div>"+
|
||||
"</a>"+
|
||||
"</li>";
|
||||
@@ -507,6 +519,8 @@ $(".commentReleaseBox a").on("click", function () {
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
function addComment(){
|
||||
var content = $(".commentReleaseBox input").val();
|
||||
axios.post("/rest/comment/add",{commentObjId : id, content:content, commentUserProvince:province, commentUserCity:city}).then(function (response) {
|
||||
@@ -522,16 +536,7 @@ function addComment(){
|
||||
console.log(error);
|
||||
});
|
||||
}
|
||||
/*mui.init({
|
||||
beforeback: function(){
|
||||
//获得列表界面的webview
|
||||
var list = plus.webview.getWebviewById('yfindex.html');
|
||||
//触发列表界面的自定义事件(refresh),从而进行数据刷新
|
||||
mui.fire(list,'refresh');
|
||||
//返回true,继续页面关闭逻辑
|
||||
return false;
|
||||
}
|
||||
});*/
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,149 @@
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>设置密码</title>
|
||||
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
|
||||
<link rel="shortcut icon" href="/favicon.ico">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
|
||||
<link rel="stylesheet" href="../../css/sm.css">
|
||||
<link rel="stylesheet" href="../../css/main.css">
|
||||
<link rel="stylesheet" href="../../css/theme-orange.css">
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="page-group" id="app">
|
||||
<div class="page page-current">
|
||||
<header class="bar bar-nav">
|
||||
<button class="button button-link button-nav pull-left" onclick="history.go(-1)">
|
||||
<span class="icon icon-left"></span>
|
||||
</button>
|
||||
<h1 class="title">设置密码</h1>
|
||||
</header>
|
||||
<div class="content">
|
||||
<div class="list-block media-list">
|
||||
<ul>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><i class="icon icon-login01"></i></div>
|
||||
<div class="item-after">
|
||||
<input type="number" id="input_phoneNumber" class="textAlignLeft" placeholder="请输入手机号码" v-model="mobile" readonly>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><i class="icon icon-login03"></i></div>
|
||||
<div class="item-after">
|
||||
<input type="password" id="input_password" v-model="pass" class="textAlignLeft" placeholder="请输入6位以上数字或字母">
|
||||
<i class="icon icon-eye-grey" @click="show"></i>
|
||||
<i class="icon icon-eye-orange dn" @click="hide"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block loginBox">
|
||||
<p><a class="button button-big button-fill theme" @click="updatePass">确认</a></p>
|
||||
<p><a href="05_mine01_index.html">跳过</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="../../js/zepto.js" charset="utf-8"></script>
|
||||
|
||||
<script>
|
||||
|
||||
/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
|
||||
Zepto = $
|
||||
$.config = {router: false}
|
||||
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" src="../../js/light7.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/vue.js" ></script>
|
||||
<script type="text/javascript" src="../../js/zepto.md5.js" ></script>
|
||||
<script type="text/javascript" src="../../config.js"></script>
|
||||
<script type="text/javascript" src="../../js/axios.min.js"></script>
|
||||
<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
new Vue({
|
||||
el: '#app',
|
||||
data: {
|
||||
mobile: '',
|
||||
pass: ''
|
||||
},
|
||||
methods: {
|
||||
// 加载用户手机号码
|
||||
loadUserMobile: function() {
|
||||
var that = this;
|
||||
axios.get("/rest/user/info")
|
||||
.then(function (response) {
|
||||
var resData = response.data;
|
||||
if (resData.status) {
|
||||
that.mobile = resData.data.mobile
|
||||
} else {
|
||||
$.toast(resData.message);
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
$.toast(error);
|
||||
});
|
||||
},
|
||||
// 修改密码
|
||||
updatePass: function() {
|
||||
if (this.pass == '' || this.pass.length < 7) {
|
||||
$.toast("请输入6位以上数字或字母");
|
||||
return;
|
||||
}
|
||||
axios.post("/rest/user/upass", {newPass: $.md5(this.pass)})
|
||||
.then(function (response) {
|
||||
var resData = response.data;
|
||||
if (resData.status) {
|
||||
$.toast(resData.message);
|
||||
} else {
|
||||
$.toast(resData.message);
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
$.toast(error);
|
||||
});
|
||||
},
|
||||
/* 密码显示&隐藏 */
|
||||
show: function() {
|
||||
$(".list-block .item-after .icon-eye-grey").hide();
|
||||
$(".list-block .item-after .icon-eye-orange").show();
|
||||
$("#input_password").attr("type","text");
|
||||
},
|
||||
hide: function() {
|
||||
$(".list-block .item-after .icon-eye-orange").hide();
|
||||
$(".list-block .item-after .icon-eye-grey").show();
|
||||
$("#input_password").attr("type","password");
|
||||
}
|
||||
},
|
||||
mounted(){
|
||||
this.loadUserMobile();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||