将详情页分享title撤回,修改求房源分享的title
This commit is contained in:
parent
a729434ef9
commit
77702b3d24
8
app.js
8
app.js
@ -112,12 +112,8 @@ App({
|
||||
this.globalData.options = options;
|
||||
|
||||
__.initial(this)
|
||||
if (wx.getEnterOptionsSync().query && wx.getEnterOptionsSync().query.scancode_time) {
|
||||
this.globalData.scancode_time = wx.getEnterOptionsSync().query.scancode_time
|
||||
}
|
||||
if (wx.getUserProfile) {
|
||||
this.globalData.canIUseGetUserProfile = true;
|
||||
}
|
||||
if (wx.getEnterOptionsSync().query && wx.getEnterOptionsSync().query.scancode_time) this.globalData.scancode_time = wx.getEnterOptionsSync().query.scancode_time
|
||||
if (wx.getUserProfile) this.globalData.canIUseGetUserProfile = true;
|
||||
|
||||
|
||||
try {
|
||||
|
@ -174,15 +174,13 @@ Page({
|
||||
// 来自页面内转发按钮
|
||||
if (res.from === 'button') var types = res.from === 'button' ? 'share_btn' : 'show';
|
||||
|
||||
// let that = this;
|
||||
// var title = that.data.data.title;
|
||||
// if (that.data.data.isquarantine) title = this.data.listTab.quarantineLists + '-' + that.data.data.title
|
||||
|
||||
let title = `中国香港 > ${ this.data.data.address }`
|
||||
let that = this;
|
||||
var title = that.data.data.title;
|
||||
if (that.data.data.isquarantine) title = this.data.listTab.quarantineLists + '-' + that.data.data.title
|
||||
|
||||
return {
|
||||
title,
|
||||
// imageUrl: that.data.data.thumbnail,
|
||||
imageUrl: that.data.data.thumbnail,
|
||||
success: function (res) {
|
||||
miucms.share(app, types)
|
||||
},
|
||||
@ -190,14 +188,13 @@ Page({
|
||||
|
||||
},
|
||||
onShareTimeline() {
|
||||
// let that = this;
|
||||
// var title = that.data.data.title;
|
||||
// if (that.data.data.isquarantine) title = this.data.listTab.quarantineLists + '-' + that.data.data.title
|
||||
let title = `中国香港 > ${ this.data.data.address }`
|
||||
let that = this;
|
||||
var title = that.data.data.title;
|
||||
if (that.data.data.isquarantine) title = this.data.listTab.quarantineLists + '-' + that.data.data.title
|
||||
|
||||
return {
|
||||
title,
|
||||
// imageUrl: that.data.data.thumbnail,
|
||||
imageUrl: that.data.data.thumbnail,
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -282,12 +282,12 @@ Page({
|
||||
getTitle() {
|
||||
let path = `/pages/brandApartmentList/brandApartmentList?school=${this.data.school}&brands=${this.data.brands.value}&roomtype=${this.data.roomtype.value}&roomlistings=${this.data.roomlistings.value}&money=${this.data.money.rent_min}~${this.data.money.rent_max}`;
|
||||
let title = this.data.school ? `${ this.data.topTitle }-${this.data.schoolObj[this.data.school]}附近公寓` : this.data.info.subject;
|
||||
let imageUrl = this.data.info.share_img
|
||||
// let imageUrl = this.data.info.share_img
|
||||
|
||||
return {
|
||||
path,
|
||||
title,
|
||||
imageUrl,
|
||||
// imageUrl,
|
||||
}
|
||||
},
|
||||
|
||||
@ -298,9 +298,10 @@ Page({
|
||||
// 来自页面内转发按钮
|
||||
if (res.from === 'button') var types = res.from === 'button' ? 'share_btn' : 'show';
|
||||
let ress = this.getTitle()
|
||||
console.log("res", ress);
|
||||
return {
|
||||
title: ress.title,
|
||||
imageUrl: ress.imageUrl,
|
||||
// imageUrl: ress.imageUrl,
|
||||
path: ress.path,
|
||||
success: function (res) {
|
||||
miucms.share(app, types)
|
||||
@ -313,7 +314,7 @@ Page({
|
||||
let res = this.getTitle()
|
||||
return {
|
||||
title: res.title,
|
||||
imageUrl: res.imageUrl,
|
||||
// imageUrl: res.imageUrl,
|
||||
path: res.path,
|
||||
}
|
||||
},
|
||||
|
@ -234,25 +234,32 @@ Page({
|
||||
console.log("res", that.data.info.share_img);
|
||||
const info = this.data.info
|
||||
|
||||
let title = `中国香港 > ${ info.locationList[0].head } > ${ info.locationList[0].end }`
|
||||
if (info.address) title += ' > ' + info.address
|
||||
// let title = `中国香港 > ${ info.locationList[0].head } > ${ info.locationList[0].end }`
|
||||
// if (info.address) title += ' > ' + info.address
|
||||
|
||||
let title = that.data.info.subject
|
||||
let imageUrl = ""
|
||||
if (info['intermediary'] == 6) title = "香港租房 | 共5000+实时香港房源,甄选优质学生公寓"
|
||||
else imageUrl = that.data.info.share_img
|
||||
return {
|
||||
// title: that.data.info.subject,
|
||||
title,
|
||||
// imageUrl: that.data.info.share_img,
|
||||
imageUrl,
|
||||
success: function (res) {
|
||||
miucms.share(app, types)
|
||||
},
|
||||
}
|
||||
},
|
||||
onShareTimeline() {
|
||||
let title = `中国香港 > ${ info.locationList[0].head } > ${ info.locationList[0].end }`
|
||||
if (info.address) title += ' > ' + info.address
|
||||
|
||||
// let title = `中国香港 > ${ info.locationList[0].head } > ${ info.locationList[0].end }`
|
||||
// if (info.address) title += ' > ' + info.address
|
||||
let title = that.data.info.subject
|
||||
let imageUrl = ""
|
||||
if (info['intermediary'] == 6) title = "香港租房 | 共5000+实时香港房源,甄选优质学生公寓"
|
||||
else imageUrl = that.data.info.share_img
|
||||
return {
|
||||
// title: this.data.info.subject,
|
||||
title,
|
||||
// imageUrl: this.data.info.share_img,
|
||||
imageUrl,
|
||||
}
|
||||
},
|
||||
get_content: function () {
|
||||
|
Loading…
x
Reference in New Issue
Block a user