a1300399510@qq.com 提交于 2023/04/04 -16:20:02
This commit is contained in:
parent
4064f39b37
commit
159d3978fc
@ -88,80 +88,77 @@
|
||||
<!-- <div class="card-content" v-html="info.message"></div> -->
|
||||
<div class="offer-content">
|
||||
<div class="offer-content-box">
|
||||
<template v-for="(item, index) in offerinfoKey">
|
||||
<template v-for="(item, index) in tenementKey">
|
||||
<div class="offer-content-item flexacenter" :key="index" v-if="offerinfo[item.key]">
|
||||
<div class="offer-content-key" v-if="offerinfo[item.key]">{{ item.name }}</div>
|
||||
<div class="offer-content-value">{{ offerinfo[item.key] }}</div>
|
||||
<div class="offer-content-key" v-if="info[item.key]">{{ item.name }}</div>
|
||||
<div class="offer-content-value">{{ info[item.key] }}</div>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
|
||||
<a class="examine-btn flexcenter" :href="shareurl">
|
||||
查看当前捷报详情
|
||||
<div class="examine-btn-outside flexcenter">
|
||||
<svg-icon icon-class="arrowsRoundBlackLeft" class-name="examine-btn-icon"></svg-icon>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
|
||||
<div class="card-item shadow" v-for="(item, index) in 7" :key="index">
|
||||
<div class="card-head flexacenter">
|
||||
<img class="card-head-icon"
|
||||
src="https://axure-file.lanhuapp.com/md516b251fb-9cfa-46fc-a9b6-2a41a7b4dc37__3ad73406ff4bc8b138dafc6dcbf1a635.svg" />
|
||||
<div class="card-head-content flex1 flexflex">
|
||||
<div class="card-head-name flexflex">闫旭Mike <div class="landlord flexcenter" v-if="index == 0">楼主
|
||||
<template v-if="false">
|
||||
<div class="card-item shadow" v-for="(item, index) in 7" :key="index">
|
||||
<div class="card-head flexacenter">
|
||||
<img class="card-head-icon"
|
||||
src="https://axure-file.lanhuapp.com/md516b251fb-9cfa-46fc-a9b6-2a41a7b4dc37__3ad73406ff4bc8b138dafc6dcbf1a635.svg" />
|
||||
<div class="card-head-content flex1 flexflex">
|
||||
<div class="card-head-name flexflex">闫旭Mike <div class="landlord flexcenter" v-if="index == 0">
|
||||
楼主
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-head-time">2022-7-6 14:56</div>
|
||||
</div>
|
||||
<div class="card-head-fool">{{ index == 0 ? '楼主' : `${index}楼` }}</div>
|
||||
</div>
|
||||
|
||||
<div class="card-content flex1">
|
||||
<!-- 回复引用 -->
|
||||
<div class="quotation flexflex" v-if="index == 1">
|
||||
<svg-icon icon-class="quotation-left" class-name="quotation-icon"></svg-icon>
|
||||
<div class="quotation-right flex1 flexflex">
|
||||
<div class="quotation-wenzi flex1 three-lines">
|
||||
这个离开香港是否超过180天,应该是居籍的判断,而非物理空间变化的判断。简单来说,只要你在香港纳税,你在香港有工作,有现金流,有房子…这个离开香港是否超过180天,应该是居籍的判断,而非物理空间变化的判断。简单来说,只要你在香港纳税,你在香港有工作,有现金流,有房子…这个离开香港是否超过180天,应该是居籍的判断,而非物理空间变化的判断。简单来说,只要你在香港纳税,你在香港有工作,有现金流,有房子…
|
||||
</div>
|
||||
|
||||
<div class="quotation-bottom flexacenter">zhangsd 发表于 2022-7-6 14:56
|
||||
<svg-icon icon-class="quotation-right" class-name="quotation-icon"></svg-icon>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-head-time">2022-7-6 14:56</div>
|
||||
之前申请永久居民,参考了不少寄托的帖子和经验,现在回馈给大家,积攒RP。
|
||||
<!-- 未解锁区域 -->
|
||||
<div class="flexcenter content-unlock content-unlock-no" v-if="index == 3 || index == 4">
|
||||
<img class="unlock-icom" src="@/assets/img/detail/unlock.png">
|
||||
{{ index == 3 ? '作者设置了回复可见' : '' }}
|
||||
{{ index == 4 ? '作者设置了投币可见' : '' }}
|
||||
</div>
|
||||
<!-- 已经解锁区域 -->
|
||||
<div class="content-unlock content-already" v-if="index == 5 || index == 6">
|
||||
<div class="content-already-header flexflex">
|
||||
- 本内容投币可见 -
|
||||
</div>
|
||||
|
||||
<div class="content-unlock-wenzi">
|
||||
|
||||
香港身份证件和IANG Visa label;
|
||||
|
||||
香港购买的保险和MPF的缴费账单;
|
||||
|
||||
电话账单和当时香港上台的合约文件;
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
之前申请永久居民,参考了不少寄托的帖子和经验,现在回馈给大家,积攒RP。
|
||||
之前申请永久居民,参考了不少寄托的帖子和经验,现在回馈给大家,积攒RP。
|
||||
</div>
|
||||
<div class="card-head-fool">{{ index == 0 ? '楼主' : `${index}楼` }}</div>
|
||||
</div>
|
||||
|
||||
<div class="card-content flex1">
|
||||
<!-- 回复引用 -->
|
||||
<div class="quotation flexflex" v-if="index == 1">
|
||||
<svg-icon icon-class="quotation-left" class-name="quotation-icon"></svg-icon>
|
||||
<div class="quotation-right flex1 flexflex">
|
||||
<div class="quotation-wenzi flex1 three-lines">
|
||||
这个离开香港是否超过180天,应该是居籍的判断,而非物理空间变化的判断。简单来说,只要你在香港纳税,你在香港有工作,有现金流,有房子…这个离开香港是否超过180天,应该是居籍的判断,而非物理空间变化的判断。简单来说,只要你在香港纳税,你在香港有工作,有现金流,有房子…这个离开香港是否超过180天,应该是居籍的判断,而非物理空间变化的判断。简单来说,只要你在香港纳税,你在香港有工作,有现金流,有房子…
|
||||
</div>
|
||||
|
||||
<div class="quotation-bottom flexacenter">zhangsd 发表于 2022-7-6 14:56
|
||||
<svg-icon icon-class="quotation-right" class-name="quotation-icon"></svg-icon>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
之前申请永久居民,参考了不少寄托的帖子和经验,现在回馈给大家,积攒RP。
|
||||
<!-- 未解锁区域 -->
|
||||
<div class="flexcenter content-unlock content-unlock-no" v-if="index == 3 || index == 4">
|
||||
<img class="unlock-icom" src="@/assets/img/detail/unlock.png">
|
||||
{{ index == 3 ? '作者设置了回复可见' : '' }}
|
||||
{{ index == 4 ? '作者设置了投币可见' : '' }}
|
||||
</div>
|
||||
<!-- 已经解锁区域 -->
|
||||
<div class="content-unlock content-already" v-if="index == 5 || index == 6">
|
||||
<div class="content-already-header flexflex">
|
||||
- 本内容投币可见 -
|
||||
</div>
|
||||
|
||||
<div class="content-unlock-wenzi">
|
||||
|
||||
香港身份证件和IANG Visa label;
|
||||
|
||||
香港购买的保险和MPF的缴费账单;
|
||||
|
||||
电话账单和当时香港上台的合约文件;
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
之前申请永久居民,参考了不少寄托的帖子和经验,现在回馈给大家,积攒RP。
|
||||
之前申请永久居民,参考了不少寄托的帖子和经验,现在回馈给大家,积攒RP。
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
</div>
|
||||
@ -289,262 +286,262 @@ export default {
|
||||
tenementKey: [{ // 租房 字段汇总
|
||||
key: "type",
|
||||
name: "出租方式"
|
||||
},{
|
||||
}, {
|
||||
key: "currency",
|
||||
name: "出租方式"
|
||||
},]
|
||||
|
||||
|
||||
< th > 出租方式:</th>
|
||||
<td v-text="info.gptype +'>>'+ info.type"></td>
|
||||
</tr >
|
||||
<tr>
|
||||
<th><span v-text="info.rentalperiod">月</span>租/<span v-text="info.currency || '港元'"></span>:</th>
|
||||
<td v-text="info.rent || info.money"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>房屋类型:</th>
|
||||
<td v-text="info.property"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>所在楼层:</th>
|
||||
<td v-text="info.floor"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>面积(平方呎):</th>
|
||||
<td v-text="info.acreage"></td>
|
||||
</tr>
|
||||
<tr v-if="info.cityid==1">
|
||||
<th>所在区域:</th>
|
||||
<td v-text="info.location"></td>
|
||||
</tr>
|
||||
<tr v-if="info.cityid!=1">
|
||||
<th>所在区域:</th>
|
||||
<td v-text="info.country+'>>'+info.city"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>地段/地址:</th>
|
||||
<td v-text="info.address ||'-'"></td>
|
||||
</tr>
|
||||
<tr v-if=" info.school && info.school.length > 0 ">
|
||||
<th>附近学校:</th>
|
||||
<td >
|
||||
<ul class="school-list">
|
||||
<li v-for="s in info.school">
|
||||
<span>{{ s.name }}</span>
|
||||
<span>{{ s.distance }}</span>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>性别要求:</th>
|
||||
<td v-text="info.gender"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>出租时长:</th>
|
||||
<td v-text="info.rentalduration?info.rentalduration:'不限'"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>房东或合租人介绍:</th>
|
||||
<td v-html="info.introduction"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>发布者身份:</th>
|
||||
<td v-text="info.intermediary_text"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>电话:</th>
|
||||
<td v-text="info.tel || '-'"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>微信:</th>
|
||||
<td>
|
||||
<span v-text="info.wechat || '-'"></span>
|
||||
<span v-if="info.iswechattype==2" @click="showBig(info.wechatdata.url)">
|
||||
<svg class="wechat-svg" t="1655977827199" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2209" width="32" height="32"><path d="M597.333333 597.333333h85.333334v-85.333333h85.333333v128h-85.333333v42.666667h-85.333334v-42.666667h-85.333333v-128h85.333333v85.333333z m-384-85.333333h256v256H213.333333v-256z m85.333334 85.333333v85.333334h85.333333v-85.333334H298.666667zM213.333333 213.333333h256v256H213.333333V213.333333z m85.333334 85.333334v85.333333h85.333333V298.666667H298.666667z m213.333333-85.333334h256v256h-256V213.333333z m85.333333 85.333334v85.333333h85.333334V298.666667h-85.333334z m85.333334 384h85.333333v85.333333h-85.333333v-85.333333z m-170.666667 0h85.333333v85.333333h-85.333333v-85.333333z" fill="#444444" p-id="2210"></path></svg>
|
||||
</span>
|
||||
</td>
|
||||
</tr >
|
||||
<tr>
|
||||
<th>WhatsApp:</th>
|
||||
<td v-text="info.whatsapp || '-'"></td>
|
||||
</tr>
|
||||
// < th > 出租方式:</th>
|
||||
// <td v-text="info.gptype +'>>'+ info.type"></td>
|
||||
// </tr >
|
||||
// <tr>
|
||||
// <th><span v-text="info.rentalperiod">月</span>租/<span v-text="info.currency || '港元'"></span>:</th>
|
||||
// <td v-text="info.rent || info.money"></td>
|
||||
// </tr>
|
||||
// <tr>
|
||||
// <th>房屋类型:</th>
|
||||
// <td v-text="info.property"></td>
|
||||
// </tr>
|
||||
// <tr>
|
||||
// <th>所在楼层:</th>
|
||||
// <td v-text="info.floor"></td>
|
||||
// </tr>
|
||||
// <tr>
|
||||
// <th>面积(平方呎):</th>
|
||||
// <td v-text="info.acreage"></td>
|
||||
// </tr>
|
||||
// <tr v-if="info.cityid==1">
|
||||
// <th>所在区域:</th>
|
||||
// <td v-text="info.location"></td>
|
||||
// </tr>
|
||||
// <tr v-if="info.cityid!=1">
|
||||
// <th>所在区域:</th>
|
||||
// <td v-text="info.country+'>>'+info.city"></td>
|
||||
// </tr>
|
||||
// <tr>
|
||||
// <th>地段/地址:</th>
|
||||
// <td v-text="info.address ||'-'"></td>
|
||||
// </tr>
|
||||
// <tr v-if=" info.school && info.school.length > 0 ">
|
||||
// <th>附近学校:</th>
|
||||
// <td >
|
||||
// <ul class="school-list">
|
||||
// <li v-for="s in info.school">
|
||||
// <span>{{ s.name }}</span>
|
||||
// <span>{{ s.distance }}</span>
|
||||
// </li>
|
||||
// </ul>
|
||||
// </td>
|
||||
// </tr>
|
||||
// <tr>
|
||||
// <th>性别要求:</th>
|
||||
// <td v-text="info.gender"></td>
|
||||
// </tr>
|
||||
// <tr>
|
||||
// <th>出租时长:</th>
|
||||
// <td v-text="info.rentalduration?info.rentalduration:'不限'"></td>
|
||||
// </tr>
|
||||
// <tr>
|
||||
// <th>房东或合租人介绍:</th>
|
||||
// <td v-html="info.introduction"></td>
|
||||
// </tr>
|
||||
// <tr>
|
||||
// <th>发布者身份:</th>
|
||||
// <td v-text="info.intermediary_text"></td>
|
||||
// </tr>
|
||||
// <tr>
|
||||
// <th>电话:</th>
|
||||
// <td v-text="info.tel || '-'"></td>
|
||||
// </tr>
|
||||
// <tr>
|
||||
// <th>微信:</th>
|
||||
// <td>
|
||||
// <span v-text="info.wechat || '-'"></span>
|
||||
// <span v-if="info.iswechattype==2" @click="showBig(info.wechatdata.url)">
|
||||
// <svg class="wechat-svg" t="1655977827199" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2209" width="32" height="32"><path d="M597.333333 597.333333h85.333334v-85.333333h85.333333v128h-85.333333v42.666667h-85.333334v-42.666667h-85.333333v-128h85.333333v85.333333z m-384-85.333333h256v256H213.333333v-256z m85.333334 85.333333v85.333334h85.333333v-85.333334H298.666667zM213.333333 213.333333h256v256H213.333333V213.333333z m85.333334 85.333334v85.333333h85.333333V298.666667H298.666667z m213.333333-85.333334h256v256h-256V213.333333z m85.333333 85.333334v85.333333h85.333334V298.666667h-85.333334z m85.333334 384h85.333333v85.333333h-85.333333v-85.333333z m-170.666667 0h85.333333v85.333333h-85.333333v-85.333333z" fill="#444444" p-id="2210"></path></svg>
|
||||
// </span>
|
||||
// </td>
|
||||
// </tr >
|
||||
// <tr>
|
||||
// <th>WhatsApp:</th>
|
||||
// <td v-text="info.whatsapp || '-'"></td>
|
||||
// </tr>
|
||||
|
||||
};
|
||||
},
|
||||
|
||||
mounted() {
|
||||
this.tid = this.$route.query['tid']
|
||||
this.getDetail()
|
||||
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
||||
// 获取详细信息
|
||||
getDetail() {
|
||||
this.$http.post("/api/thread", {
|
||||
tid: this.tid
|
||||
}).then(res => {
|
||||
if (res.code != 200) return
|
||||
|
||||
let data = res.data
|
||||
console.log("data", data);
|
||||
this.info = data.info
|
||||
this.type = data.type
|
||||
this.token = data.token
|
||||
|
||||
if (this.type == 6) this.getOfferDetail()
|
||||
else if (this.type == 5) this.getsummaryDetails()
|
||||
else if (this.type == 0) this.getTenementDetails()
|
||||
|
||||
})
|
||||
};
|
||||
},
|
||||
|
||||
// 获取offer详情
|
||||
getOfferDetail() {
|
||||
this.$http.get("/api/forum/detail", {
|
||||
id: this.token
|
||||
}, 'offer').then(res => {
|
||||
let data = res.data
|
||||
let offerinfo = data.offerinfo
|
||||
let useperformanceStr = ""
|
||||
offerinfo.useperformance && offerinfo.useperformance.forEach((el, index) => {
|
||||
useperformanceStr += el + (offerinfo.useperformance.length - 1 == index ? '' : '、')
|
||||
mounted() {
|
||||
this.tid = this.$route.query['tid']
|
||||
this.getDetail()
|
||||
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
||||
// 获取详细信息
|
||||
getDetail() {
|
||||
this.$http.post("/api/thread", {
|
||||
tid: this.tid
|
||||
}).then(res => {
|
||||
if (res.code != 200) return
|
||||
|
||||
let data = res.data
|
||||
console.log("data", data);
|
||||
this.info = data.info
|
||||
this.type = data.type
|
||||
this.token = data.token
|
||||
|
||||
if (this.type == 6) this.getOfferDetail()
|
||||
else if (this.type == 5) this.getsummaryDetails()
|
||||
else if (this.type == 0) this.getTenementDetails()
|
||||
|
||||
})
|
||||
},
|
||||
|
||||
offerinfo['useperformanceStr'] = useperformanceStr
|
||||
offerinfo['schoolname'] = offerinfo.school.name
|
||||
|
||||
this.offerinfo = offerinfo
|
||||
this.shareurl = data.shareurl
|
||||
})
|
||||
},
|
||||
|
||||
// 获取总结详情
|
||||
getsummaryDetails() {
|
||||
this.$http.get(`/api/forum/details`, {
|
||||
id: this.token
|
||||
}, 'offer').then(res => {
|
||||
let data = res.data
|
||||
let collegelist = data.collegelist
|
||||
|
||||
collegelist.forEach((el, index) => {
|
||||
// 获取offer详情
|
||||
getOfferDetail() {
|
||||
this.$http.get("/api/forum/detail", {
|
||||
id: this.token
|
||||
}, 'offer').then(res => {
|
||||
let data = res.data
|
||||
let offerinfo = data.offerinfo
|
||||
let useperformanceStr = ""
|
||||
el.useperformance && el.useperformance.forEach((element, i) => {
|
||||
useperformanceStr += element + (el.useperformance.length - 1 == i ? '' : '、')
|
||||
offerinfo.useperformance && offerinfo.useperformance.forEach((el, index) => {
|
||||
useperformanceStr += el + (offerinfo.useperformance.length - 1 == index ? '' : '、')
|
||||
})
|
||||
el['useperformanceStr'] = useperformanceStr
|
||||
|
||||
offerinfo['useperformanceStr'] = useperformanceStr
|
||||
offerinfo['schoolname'] = offerinfo.school.name
|
||||
|
||||
this.offerinfo = offerinfo
|
||||
this.shareurl = data.shareurl
|
||||
})
|
||||
},
|
||||
|
||||
// 获取总结详情
|
||||
getsummaryDetails() {
|
||||
this.$http.get(`/api/forum/details`, {
|
||||
id: this.token
|
||||
}, 'offer').then(res => {
|
||||
let data = res.data
|
||||
let collegelist = data.collegelist
|
||||
|
||||
collegelist.forEach((el, index) => {
|
||||
let useperformanceStr = ""
|
||||
el.useperformance && el.useperformance.forEach((element, i) => {
|
||||
useperformanceStr += element + (el.useperformance.length - 1 == i ? '' : '、')
|
||||
})
|
||||
el['useperformanceStr'] = useperformanceStr
|
||||
})
|
||||
|
||||
|
||||
this.info = { ...this.info, ...data.info }
|
||||
console.log(this.info);
|
||||
this.collegelist = collegelist
|
||||
this.shareurl = data.shareurl
|
||||
})
|
||||
},
|
||||
this.info = { ...this.info, ...data.info }
|
||||
console.log(this.info);
|
||||
this.collegelist = collegelist
|
||||
this.shareurl = data.shareurl
|
||||
})
|
||||
},
|
||||
|
||||
// 获取租房详情 https://app.gter.net/tenement/forum/show
|
||||
getTenementDetails() {
|
||||
console.log("ggjlgjkgj");
|
||||
this.$http.post("/tenement/forum/show", {
|
||||
// tid: 2540476
|
||||
token: this.token
|
||||
}, "tenement").then(res => {
|
||||
console.log(res, "res");
|
||||
})
|
||||
},
|
||||
// 获取租房详情 https://app.gter.net/tenement/forum/show
|
||||
getTenementDetails() {
|
||||
console.log("ggjlgjkgj");
|
||||
this.$http.post("/tenement/forum/show", {
|
||||
// tid: 2540476
|
||||
token: this.token
|
||||
}, "tenement").then(res => {
|
||||
console.log(res, "res");
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
// 点击点赞
|
||||
tapLike() {
|
||||
this.isState = true
|
||||
this.prepareLiskeState = true
|
||||
this.prepareLiskeAnimateState = true
|
||||
// 点击点赞
|
||||
tapLike() {
|
||||
this.isState = true
|
||||
this.prepareLiskeState = true
|
||||
this.prepareLiskeAnimateState = true
|
||||
|
||||
clearTimeout(this.offerLikesumTimer)
|
||||
clearTimeout(this.offerLikesumAnimateTimer)
|
||||
clearTimeout(this.offerLikesumTimer)
|
||||
clearTimeout(this.offerLikesumAnimateTimer)
|
||||
|
||||
let praiseBubble = document.getElementById("praise_bubble");
|
||||
console.log("praiseBubble", praiseBubble);
|
||||
let last = 0;
|
||||
let b = Math.floor(Math.random() * 8) + 1; // 1 到 7的 图片
|
||||
// b = 1; // 测试写固定的
|
||||
const bl = Math.floor(Math.random() * 11) + 1; // bl1~bl11
|
||||
let d = document.createElement("div");
|
||||
d.style.backgroundImage = `url('./img/bg${b}.png')`
|
||||
d.style.backgroundSize = 'contain'
|
||||
d.className = `bubble`;
|
||||
// d.style.animation = `bubble_${bl} 1.5s linear 1 forwards, bubble_big_${Math.floor(Math.random() * 3) + 1} 0.8s linear 1 forwards, bubble_y 1.5s linear 1 forwards`
|
||||
let praiseBubble = document.getElementById("praise_bubble");
|
||||
console.log("praiseBubble", praiseBubble);
|
||||
let last = 0;
|
||||
let b = Math.floor(Math.random() * 8) + 1; // 1 到 7的 图片
|
||||
// b = 1; // 测试写固定的
|
||||
const bl = Math.floor(Math.random() * 11) + 1; // bl1~bl11
|
||||
let d = document.createElement("div");
|
||||
d.style.backgroundImage = `url('./img/bg${b}.png')`
|
||||
d.style.backgroundSize = 'contain'
|
||||
d.className = `bubble`;
|
||||
// d.style.animation = `bubble_${bl} 1.5s linear 1 forwards, bubble_big_${Math.floor(Math.random() * 3) + 1} 0.8s linear 1 forwards, bubble_y 1.5s linear 1 forwards`
|
||||
|
||||
d.dataset.t = String(Date.now());
|
||||
praiseBubble.appendChild(d);
|
||||
d.dataset.t = String(Date.now());
|
||||
praiseBubble.appendChild(d);
|
||||
|
||||
// this.$forceUpdate()
|
||||
// this.$forceUpdate()
|
||||
|
||||
this.stat.like++
|
||||
this.prepareLiskeNum++
|
||||
this.offerLikesumAnimateTimer = setTimeout(() => {
|
||||
this.prepareLiskeAnimateState = false
|
||||
}, 500)
|
||||
this.offerLikesumTimer = setTimeout(() => {
|
||||
this.ispostOfferLike = false
|
||||
this.postOfferLike()
|
||||
}, 2000)
|
||||
},
|
||||
this.stat.like++
|
||||
this.prepareLiskeNum++
|
||||
this.offerLikesumAnimateTimer = setTimeout(() => {
|
||||
this.prepareLiskeAnimateState = false
|
||||
}, 500)
|
||||
this.offerLikesumTimer = setTimeout(() => {
|
||||
this.ispostOfferLike = false
|
||||
this.postOfferLike()
|
||||
}, 2000)
|
||||
},
|
||||
|
||||
postOfferLike() {
|
||||
if (this.ispostOfferLike) return
|
||||
this.ispostOfferLike = true
|
||||
postOfferLike() {
|
||||
if (this.ispostOfferLike) return
|
||||
this.ispostOfferLike = true
|
||||
|
||||
this.offerLikesum = 0
|
||||
this.offerLikesum = 0
|
||||
|
||||
this.prepareLiskeState = false
|
||||
let key = new Date().getTime() + ''
|
||||
// let num = util.base64_encode(key + util.base64_encode(this.data.prepareLiskeNum + ''))
|
||||
this.prepareLiskeState = false
|
||||
let key = new Date().getTime() + ''
|
||||
// let num = util.base64_encode(key + util.base64_encode(this.data.prepareLiskeNum + ''))
|
||||
|
||||
|
||||
|
||||
// util.wxpost("/miniprogramApi/offer/behaviour/like", {
|
||||
// token: this.data.token,
|
||||
// num,
|
||||
// key
|
||||
// }).then(res => {
|
||||
// if (res.code != 200) return
|
||||
// let data = res.data
|
||||
// this.offerLikesum = 0
|
||||
// }).finally(() => {
|
||||
// this.setData({
|
||||
// prepareLiskeState: false
|
||||
// })
|
||||
// })
|
||||
// util.wxpost("/miniprogramApi/offer/behaviour/like", {
|
||||
// token: this.data.token,
|
||||
// num,
|
||||
// key
|
||||
// }).then(res => {
|
||||
// if (res.code != 200) return
|
||||
// let data = res.data
|
||||
// this.offerLikesum = 0
|
||||
// }).finally(() => {
|
||||
// this.setData({
|
||||
// prepareLiskeState: false
|
||||
// })
|
||||
// })
|
||||
|
||||
},
|
||||
|
||||
|
||||
// 点击转发
|
||||
transmit() {
|
||||
let value = location.href
|
||||
this.$copy(value, "已经复制链接,欢迎分享!")
|
||||
},
|
||||
|
||||
setValue(key, value) {
|
||||
this[key] = value
|
||||
},
|
||||
|
||||
// 收藏
|
||||
postcollect() {
|
||||
console.log("点击收藏");
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
components: {
|
||||
DetailReply, Coins
|
||||
|
||||
// 点击转发
|
||||
transmit() {
|
||||
let value = location.href
|
||||
this.$copy(value, "已经复制链接,欢迎分享!")
|
||||
},
|
||||
|
||||
setValue(key, value) {
|
||||
this[key] = value
|
||||
},
|
||||
|
||||
// 收藏
|
||||
postcollect() {
|
||||
console.log("点击收藏");
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
components: {
|
||||
DetailReply, Coins
|
||||
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user