更新房屋买卖租赁页面
This commit is contained in:
parent
a8132fc553
commit
dd94eb0a17
@ -464,28 +464,28 @@
|
|||||||
<a class="t-blue bold m-left10 yes-btn c-pointer" href="#" data-id="3176475" data-market="selling" data-price="1705000000">Yes</a>
|
<a class="t-blue bold m-left10 yes-btn c-pointer" href="#" data-id="3176475" data-market="selling" data-price="1705000000">Yes</a>
|
||||||
<a href="#" class="t-blue no-btn bold m-left10 c-pointer">No</a>
|
<a href="#" class="t-blue no-btn bold m-left10 c-pointer">No</a>
|
||||||
</span>
|
</span>
|
||||||
你确定要以2750万美元租用另一个私人岛屿,为期30天?
|
|
||||||
*/
|
*/
|
||||||
$('div[class="confirm-text"] span.question').each((i, e) => {
|
$('div[class="confirm-text"] span.question').each((i, e) => {
|
||||||
const cost=e.children[1].innerText.trim().split(' ')[1];
|
//const cost=e.children[1].innerText.trim().split(' ')[1];
|
||||||
const period=isRent?e.children[1].innerText.trim().split(' ')[6]:null;
|
//const period=isRent?e.children[1].innerText.trim().split(' ')[6]:null;
|
||||||
const propName=e.firstElementChild.innerText.trim().split(' ').slice(8).join(' ');
|
const propName=e.firstElementChild.innerText.trim().split(' ').slice(8).join(' ');
|
||||||
|
|
||||||
const hasAnother=$(e).text().indexOf('another')>0;
|
const hasAnother=$(e).text().indexOf('another')>0;
|
||||||
// console.log(cost);
|
|
||||||
// console.log(period);
|
|
||||||
// console.log(propName);
|
|
||||||
if(hasAnother){
|
if(hasAnother){
|
||||||
e.firstElementChild.firstChild.nodeValue='你确定要';
|
e.firstElementChild.firstChild.nodeValue='你确定要';
|
||||||
e.firstElementChild.firstChild.nodeValue+=isRent?'租用':'购买';
|
e.firstElementChild.firstChild.nodeValue+=isRent?'租用':'购买';
|
||||||
e.firstElementChild.childNodes[1].firstChild.nodeValue='另一个';
|
e.firstElementChild.childNodes[1].firstChild.nodeValue='另一个';
|
||||||
e.firstElementChild.childNodes[2].nodeValue=propName;
|
e.firstElementChild.childNodes[2].nodeValue=propertyDict[propName];
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
e.firstElementChild.firstChild.nodeValue='你确定要';
|
e.firstElementChild.firstChild.nodeValue='你确定要';
|
||||||
e.firstElementChild.firstChild.nodeValue+=isRent?'租用':'购买';
|
e.firstElementChild.firstChild.nodeValue+=isRent?'租用':'购买';
|
||||||
e.firstElementChild.firstChild.nodeValue+='另一个 '+propName;
|
e.firstElementChild.firstChild.nodeValue+='另一个'+propertyDict[propName];
|
||||||
}
|
}
|
||||||
|
e.children[1].firstChild.nodeValue='花费 ';
|
||||||
|
e.children[1].childNodes[2].nodeValue=isRent?' 租期 ':'?';
|
||||||
|
if(isRent)
|
||||||
|
e.children[1].childNodes[4].nodeValue=' 天?';
|
||||||
});
|
});
|
||||||
|
|
||||||
propertyOB.observe($('div#properties-page-wrap')[0], {childList: true, subtree: true});
|
propertyOB.observe($('div#properties-page-wrap')[0], {childList: true, subtree: true});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user