更新租房买房

This commit is contained in:
woohoo 2021-11-08 15:34:36 +08:00
parent 1e738b081f
commit fe7c4012f2

View File

@ -153,7 +153,7 @@
'properties': '房产',
'freebies': '赠品',
'classified ads': '广告',
'personals': '情感',
'personals': '交友',
'bounties': '悬赏',
'comics': '漫画',
'chronicles': '纪事档案馆',
@ -161,7 +161,7 @@
'Weekly bazaars':'每周小店',
'LOTTERY':'幸运彩票',
'BOUNTIES':'精选悬赏',
'TC PERSONALS':'托恩情感',
'TC PERSONALS':'托恩交友',
'Why not visit our sponsor?':'为什么不访问我们的赞助商呢?',
'View all':'查看所有',
'Advertise here':'在此刊登广告',
@ -173,8 +173,10 @@
'Job Listing':'工作列表',
'Freebies':'赠品',
'Classified Ads':'分类广告',
'Properties':'房产',
};
const propertyDict = {
'Shack':'棚屋',
'Trailer': '拖车',
'Apartment': '公寓',
'Semi - Detached': '半独立式住宅',
@ -197,11 +199,14 @@
'Cost:': '花费:',
'Cost per Day': '平均日花费',
'Rental Period': '租期',
'Rental period:': '租期',
'Rent': '租赁',
'Info': '信息',
'Buy': '购买',
'Property:': '房屋:',
'Modifications': '改造设施',
'Upkeep:':'维护费:',
'Staff:':'雇员费用:',
};
const travelingDict = { // todo jsonify
'Recruit Citizens': '招募玩家',
@ -516,8 +521,7 @@
// 房屋详情表格
$('div.info-block span.bold').each((i, e) => {
// 2 6 10 14 18 22 26 30 ...
if (i % 4 === 2) {
if (e.childElementCount===2) {
/**
* <span class="bold">
<span class="title-laptop">On </span>
@ -535,6 +539,10 @@
e.firstChild.nodeValue = propertyDict[e.firstChild.nodeValue.trim()];
}
});
$('div.rental-period span.bold').each((i, e) => {
if (propertyDict[e.firstChild.nodeValue.trim()])
e.firstChild.nodeValue = propertyDict[e.firstChild.nodeValue.trim()];
});
// 窄边 cost happy
$('span.title-laptop.bold').each((i, e) => {
if (propertyDict[$(e).text().trim()])