添加新统计、扩大开屏广告点击范围、修改公寓列表的学校滚动定位不准、详情页修改默认提示文本、详情修改分享文本和取消分享图、求房源顶部加返回首页按钮
This commit is contained in:
parent
efc800d474
commit
a729434ef9
70
app.js
70
app.js
@ -1,36 +1,42 @@
|
||||
//app.js wx9c68fbf7886ea9c4 租房的 wxcf0a799771cf2ae6 港校的
|
||||
var initial_url = 'https://app.gter.net/tenement';
|
||||
var __ = require('./utils/miucms.js');
|
||||
import './utils/xstat';
|
||||
|
||||
// 保存原始的Page构造器
|
||||
const originPage = Page;
|
||||
// // 保存原始的Page构造器
|
||||
// const originPage = Page;
|
||||
|
||||
// 重写Page构造器
|
||||
Page = function (pageConfig) {
|
||||
// 添加全局的onShow逻辑
|
||||
const originOnLoad = pageConfig.onLoad;
|
||||
pageConfig.onLoad = function () {
|
||||
__.statistics({})
|
||||
if (originOnLoad) originOnLoad.apply(this, arguments);
|
||||
};
|
||||
// // 重写Page构造器
|
||||
// Page = function (pageConfig) {
|
||||
// // 添加全局的onShow逻辑
|
||||
// const originOnLoad = pageConfig.onLoad;
|
||||
// pageConfig.onLoad = function () {
|
||||
// __.statistics({})
|
||||
// if (originOnLoad) originOnLoad.apply(this, arguments);
|
||||
// };
|
||||
|
||||
const originOnShare = pageConfig.onShareAppMessage;
|
||||
if (originOnShare) {
|
||||
// pageConfig.onShareAppMessage = function () {
|
||||
pageConfig.onShareAppMessage = function (e) {
|
||||
__.statistics({
|
||||
name: "share"
|
||||
})
|
||||
// if (originOnShare) originOnShare.apply(this, arguments);
|
||||
return originOnShare.apply(this, [e]);
|
||||
};
|
||||
}
|
||||
// const originOnShare = pageConfig.onShareAppMessage;
|
||||
// if (originOnShare) {
|
||||
// // pageConfig.onShareAppMessage = function () {
|
||||
// pageConfig.onShareAppMessage = function (e) {
|
||||
// __.statistics({
|
||||
// name: "share"
|
||||
// })
|
||||
// // if (originOnShare) originOnShare.apply(this, arguments);
|
||||
// return originOnShare.apply(this, [e]);
|
||||
// };
|
||||
// }
|
||||
|
||||
// 调用原始的Page函数
|
||||
return originPage(pageConfig);
|
||||
};
|
||||
// // 调用原始的Page函数
|
||||
// return originPage(pageConfig);
|
||||
// };
|
||||
|
||||
App({
|
||||
xstatConfig: {
|
||||
appKey: wx.getAccountInfoSync().miniProgram.appId, // 自动获取 小程序appid
|
||||
debug: true, //是否打开调试模式
|
||||
LOG_URL: 'https://stat.gter.net/send', // 上报地址
|
||||
},
|
||||
randomString(n) {
|
||||
let str = 'abcdefghijklmnopqrstuvwxyz9876543210';
|
||||
let tmp = '',
|
||||
@ -94,14 +100,14 @@ App({
|
||||
})
|
||||
},
|
||||
onLaunch: function (options) {
|
||||
__.statistics({
|
||||
data: {
|
||||
scene: options.scene
|
||||
},
|
||||
path: options.path,
|
||||
query: options.query,
|
||||
name: "onLaunch"
|
||||
})
|
||||
// __.statistics({
|
||||
// data: {
|
||||
// scene: options.scene
|
||||
// },
|
||||
// path: options.path,
|
||||
// query: options.query,
|
||||
// name: "onLaunch"
|
||||
// })
|
||||
|
||||
this.globalData.options = options;
|
||||
|
||||
|
@ -882,8 +882,5 @@ Page({
|
||||
},
|
||||
|
||||
onShareTimeline() {
|
||||
miucms.statistics({
|
||||
name: "share-timeline"
|
||||
})
|
||||
},
|
||||
})
|
@ -41,9 +41,6 @@ Page({
|
||||
}
|
||||
},
|
||||
onShareTimeline() {
|
||||
miucms.statistics({
|
||||
name: "share-timeline"
|
||||
})
|
||||
},
|
||||
get_config() {
|
||||
var that = this;
|
||||
|
@ -402,9 +402,6 @@ Page({
|
||||
},
|
||||
|
||||
onShareTimeline() {
|
||||
miucms.statistics({
|
||||
name: "share-timeline"
|
||||
})
|
||||
let res = this.getTitle()
|
||||
return {
|
||||
path: res.path,
|
||||
|
@ -98,6 +98,15 @@ Page({
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad: function (options) {
|
||||
if (options.q) {
|
||||
let decodedUrl = options.q;
|
||||
while (decodedUrl !== decodeURIComponent(decodedUrl)) {
|
||||
decodedUrl = decodeURIComponent(decodedUrl);
|
||||
}
|
||||
options.q = decodedUrl
|
||||
}
|
||||
|
||||
console.log("options.q", options.q);
|
||||
wx.getSystemInfo({
|
||||
success: function (res) {
|
||||
windowWidth = res.windowWidth
|
||||
@ -165,13 +174,15 @@ 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 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 }`
|
||||
|
||||
return {
|
||||
title: title,
|
||||
imageUrl: that.data.data.thumbnail,
|
||||
title,
|
||||
// imageUrl: that.data.data.thumbnail,
|
||||
success: function (res) {
|
||||
miucms.share(app, types)
|
||||
},
|
||||
@ -179,19 +190,19 @@ Page({
|
||||
|
||||
},
|
||||
onShareTimeline() {
|
||||
miucms.statistics({
|
||||
name: "share-timeline"
|
||||
})
|
||||
let that = this;
|
||||
var title = that.data.data.title;
|
||||
if (that.data.data.isquarantine) title = this.data.listTab.quarantineLists + '-' + that.data.data.title
|
||||
// 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 }`
|
||||
|
||||
return {
|
||||
title: title,
|
||||
imageUrl: that.data.data.thumbnail,
|
||||
title,
|
||||
// imageUrl: that.data.data.thumbnail,
|
||||
}
|
||||
},
|
||||
|
||||
get_content: function () {
|
||||
console.log("get_content");
|
||||
let that = this;
|
||||
var sendData = Object.assign({}, this.data.options, {
|
||||
session: wx.getStorageSync('session'),
|
||||
@ -200,6 +211,8 @@ Page({
|
||||
// source: that.data.source,
|
||||
// q: that.data.q
|
||||
})
|
||||
|
||||
console.log("sendData", sendData);
|
||||
let url = `${app.globalData.baseURL}/tenement/v2/api/apartment/details`
|
||||
// url = app.globalData.config.studentapartment.details
|
||||
miucms.wxget(url, sendData).then(data => {
|
||||
@ -209,13 +222,7 @@ Page({
|
||||
title: '提示',
|
||||
content: data.message,
|
||||
success(res) {
|
||||
wx.navigateBack({
|
||||
fail: function () {
|
||||
wx.navigateTo({
|
||||
url: '/pages/index/index',
|
||||
})
|
||||
}
|
||||
})
|
||||
this.backOrIndex()
|
||||
}
|
||||
})
|
||||
} else {
|
||||
@ -296,21 +303,19 @@ Page({
|
||||
}
|
||||
}).catch(res => {
|
||||
wx.hideLoading()
|
||||
that.setData({
|
||||
isloding: false,
|
||||
})
|
||||
wx.showModal({
|
||||
title: '提示',
|
||||
content: '抱歉,网络出错。请稍后重试~',
|
||||
content: res.message || '抱歉,网络出错。请稍后重试~',
|
||||
success(res) {
|
||||
wx.navigateBack({
|
||||
fail: function () {
|
||||
wx.navigateTo({
|
||||
url: '/pages/index/index',
|
||||
})
|
||||
}
|
||||
})
|
||||
miucms.backOrIndex()
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
getList() {
|
||||
let that = this;
|
||||
var sendData = Object.assign({}, this.data.options, {
|
||||
@ -337,7 +342,7 @@ Page({
|
||||
})
|
||||
wx.showModal({
|
||||
title: '提示',
|
||||
content: '抱歉,网络出错。请稍后重试~',
|
||||
content: res.message || '抱歉,网络出错。请稍后重试~',
|
||||
})
|
||||
})
|
||||
},
|
||||
|
@ -135,10 +135,10 @@
|
||||
|
||||
<!-- v4 的新底部栏 -->
|
||||
<view class="bottom-bar flexacenter" style="padding-bottom: {{ bottomLift }}rpx;">
|
||||
<view class="bottom-bar-item bottom-bar-share flexcenter" catchtap="share_pic">
|
||||
<button class="bottom-bar-item bottom-bar-share flexcenter" open-type="share">
|
||||
<image class="bottom-bar-icon" mode="widthFix" src="/img/u1975.png"></image>转发
|
||||
</view>
|
||||
<view class="bottom-bar-item bottom-bar-share flexcenter" catchtap="bindCollect">
|
||||
</button>
|
||||
<view class="bottom-bar-item flexcenter" catchtap="bindCollect">
|
||||
<image wx:if="{{ data.iscollect == 1 }}" class="bottom-bar-icon" mode="widthFix" src="/img/user-collect-tab.png"></image>
|
||||
<image wx:else class="bottom-bar-icon" mode="widthFix" style="width: 42rpx;" src="/img/u1970.png"></image>
|
||||
{{ data.collectnum == 0 ? '收藏' : data.collectnum }}
|
||||
|
@ -1245,7 +1245,23 @@ map .clickmap {
|
||||
height: 45rpx;
|
||||
}
|
||||
|
||||
.bottom-bar .bottom-bar-share .bottom-bar-icon {
|
||||
.bottom-bar .bottom-bar-icon {
|
||||
width: 39rpx;
|
||||
height: 39rpx;
|
||||
}
|
||||
|
||||
.bottom-bar .bottom-bar-share {
|
||||
line-height: 1;
|
||||
margin: 0;
|
||||
border: none;
|
||||
outline: none;
|
||||
padding: 0;
|
||||
overflow: auto;
|
||||
border-radius: revert;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.bottom-bar .bottom-bar-share::after {
|
||||
border: none;
|
||||
height: 0;
|
||||
}
|
@ -69,6 +69,7 @@ Page({
|
||||
QRCodePopState: false, // 二维码弹窗状态
|
||||
popwindow: {}, // 弹窗信息
|
||||
popwindowBtnState: true, // 弹窗按钮状态
|
||||
scrollView: "",
|
||||
|
||||
},
|
||||
|
||||
@ -123,6 +124,7 @@ Page({
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad: function (options) {
|
||||
console.log("options", options);
|
||||
wx.showLoading()
|
||||
// 获取全局筛选的值
|
||||
let brandSelectionObj = app.globalData.brandSelectionObj
|
||||
@ -308,9 +310,6 @@ Page({
|
||||
},
|
||||
|
||||
onShareTimeline() {
|
||||
miucms.statistics({
|
||||
name: "share-timeline"
|
||||
})
|
||||
let res = this.getTitle()
|
||||
return {
|
||||
title: res.title,
|
||||
@ -380,8 +379,14 @@ Page({
|
||||
wx.nextTick(() => {
|
||||
let index = this.data.school || 0
|
||||
if (index == 0) return
|
||||
|
||||
this.setData({
|
||||
scrollView: `item${ index }`
|
||||
})
|
||||
return
|
||||
wx.createSelectorQuery().select('#annex-school').boundingClientRect((parentRect) => {
|
||||
wx.createSelectorQuery().select(`.annex-school-item.item${index}`).boundingClientRect((childRect) => {
|
||||
console.log("childRect", childRect);
|
||||
const distance = childRect.left - parentRect.left - parentRect.width + childRect.width + 10
|
||||
if (distance <= 0) return
|
||||
this.setData({
|
||||
|
@ -8,8 +8,7 @@
|
||||
<header-nav bgcolor="{{ headerSearchTop ? '#fff' : 'transparent' }}">{{ miniProgram == 'xg' ? '寄托香港租房' : '寄托港校租房' }}
|
||||
</header-nav>
|
||||
|
||||
<template is="irenCouponReceive"
|
||||
data="{{ irentCouponBig:irentCouponBig,hideCoupon:hideCoupon,irenCouponReceive:irenCouponReceive }}"></template>
|
||||
<template is="irenCouponReceive" data="{{ irentCouponBig:irentCouponBig,hideCoupon:hideCoupon,irenCouponReceive:irenCouponReceive }}"></template>
|
||||
<view class='irent-list-box'>
|
||||
<view class="header-bj"></view>
|
||||
<view id="list-header-search">
|
||||
@ -25,21 +24,16 @@
|
||||
|
||||
<view id="annex-school" class="annex-school flexacenter">
|
||||
<view class="annex-school-name flexacenter">学校附近</view>
|
||||
<scroll-view scroll-x="{{ true }}" style=" width: 60%; white-space: nowrap;" class="flex1"
|
||||
scroll-left="{{ schoolScrollLeft }}">
|
||||
<view class="annex-school-item flexcenter item0 {{ school == '' ? 'pitch' : '' }}"
|
||||
bindtap="chooseSchool" data-id="">不限</view>
|
||||
<view class="annex-school-item flexcenter item{{ item.id }} {{ school == item.id ? 'pitch' : '' }}"
|
||||
bindtap="chooseSchool" wx:for="{{ schoolList }}" wx:key="index" data-id="{{ item.id }}">
|
||||
{{ item.name }}</view>
|
||||
<scroll-view scroll-x="{{ true }}" style=" width: 60%; white-space: nowrap;" class="flex1" scroll-left="{{ schoolScrollLeft }}" scroll-into-view="{{ scrollView }}">
|
||||
<view id="item0" class="annex-school-item flexcenter item0 {{ school == '' ? 'pitch' : '' }}" bindtap="chooseSchool" data-id="">不限</view>
|
||||
<view id="item{{ item.id }}" class="annex-school-item flexcenter item{{ item.id }} {{ school == item.id ? 'pitch' : '' }}" bindtap="chooseSchool" wx:for="{{ schoolList }}" wx:key="index" data-id="{{ item.id }}">
|
||||
{{ item.name }}
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
|
||||
<view id="list-operations" class="list-operations {{ operationsTop ? 'list-operations-top' : '' }}"
|
||||
style="top: {{ screen_data.totalTopHeight }}px;">
|
||||
<list-operations id="list-operations-components" tabTitle="品牌公寓" operationstype="student"
|
||||
money="{{ money }}" brands="{{ brands }}" screen_data="{{ screen_data }}" roomtype="{{ roomtype }}"
|
||||
roomlistings="{{ roomlistings }}" bindsubmit="submitOperations" bindisOpenOperations="isOpenOperations"></list-operations>
|
||||
<view id="list-operations" class="list-operations {{ operationsTop ? 'list-operations-top' : '' }}" style="top: {{ screen_data.totalTopHeight }}px;">
|
||||
<list-operations id="list-operations-components" tabTitle="品牌公寓" operationstype="student" money="{{ money }}" brands="{{ brands }}" screen_data="{{ screen_data }}" roomtype="{{ roomtype }}" roomlistings="{{ roomlistings }}" bindsubmit="submitOperations" bindisOpenOperations="isOpenOperations"></list-operations>
|
||||
</view>
|
||||
|
||||
<view class='house-list'>
|
||||
@ -48,14 +42,12 @@
|
||||
</view>
|
||||
|
||||
<template wx:if="{{ data.length == 0 && !loading }}" data="{{ hint: '暂无数据' }}" is="empty-icon"></template>
|
||||
<template wx:for="{{ data }}" wx:key="index" data="{{ item, index, schoolSidObj, school }}"
|
||||
is="apartment-item"></template>
|
||||
<template wx:for="{{ data }}" wx:key="index" data="{{ item, index, schoolSidObj, school }}" is="apartment-item"></template>
|
||||
</view>
|
||||
|
||||
<!-- 疑问 -->
|
||||
<view class="query-box flexcenter" wx:if="{{ data.length != 0 }}">
|
||||
<view class="query-text flexacenter">求公寓?来找<image class="query-img" mode="widthFix"
|
||||
src="/img/smiling-face.png"></image>{{ contact.nickname }}!</view>
|
||||
<view class="query-text flexacenter">求公寓?来找<image class="query-img" mode="widthFix" src="/img/smiling-face.png"></image>{{ contact.nickname }}!</view>
|
||||
<!-- <view class="query-btn flexcenter" bindtap="copyWechat">复制微信号</view> -->
|
||||
<view class="query-btn flexcenter" bindtap="consultStateCut">马上联系</view>
|
||||
</view>
|
||||
@ -86,8 +78,7 @@
|
||||
<view class="consult-title flexcenter">欢迎联系<view class="consult-name">{{ wechat.nickname }}</view>咨询房源
|
||||
</view>
|
||||
<view class="consult-QRCode-box flexcenter">
|
||||
<image class="consult-QRCode-icon" mode="widthFix" src="{{ wechat.wechatqrcode }}"
|
||||
show-menu-by-longpress></image>
|
||||
<image class="consult-QRCode-icon" mode="widthFix" src="{{ wechat.wechatqrcode }}" show-menu-by-longpress></image>
|
||||
</view>
|
||||
<!-- <view class="consult-hint flexcenter">长按二维码添加好友,备注:<view class="consult-hint-name">寄托租房</view> -->
|
||||
<view class="consult-hint flexcenter">长按二维码添加好友
|
||||
@ -99,7 +90,6 @@
|
||||
|
||||
<QRCodePop wx:if="{{ QRCodePopState }}" bindclosePop="consultStateCut" typee="irent"></QRCodePop>
|
||||
|
||||
<template is="popwindow-box"
|
||||
data="{{popwindowBtnAnimationState: false,popwindowBtnState,popwindow}}"></template>
|
||||
<template is="popwindow-box" data="{{popwindowBtnAnimationState: false,popwindowBtnState,popwindow}}"></template>
|
||||
|
||||
</view>
|
@ -152,9 +152,6 @@ Page({
|
||||
},
|
||||
|
||||
onShareTimeline() {
|
||||
miucms.statistics({
|
||||
name: "share-timeline"
|
||||
})
|
||||
return {
|
||||
title: this.data.topTitle
|
||||
}
|
||||
@ -223,12 +220,12 @@ Page({
|
||||
|
||||
const type = combination[value]?.field
|
||||
|
||||
miucms.statistics({
|
||||
name: "combination",
|
||||
data: {
|
||||
type
|
||||
}
|
||||
})
|
||||
// miucms.statistics({
|
||||
// name: "combination",
|
||||
// data: {
|
||||
// type
|
||||
// }
|
||||
// })
|
||||
},
|
||||
|
||||
// 公共跳转
|
||||
@ -452,12 +449,12 @@ Page({
|
||||
this.dataCount = 0
|
||||
this.getListData()
|
||||
|
||||
miucms.statistics({
|
||||
name: 'recommendedTab',
|
||||
data: {
|
||||
type
|
||||
}
|
||||
})
|
||||
// miucms.statistics({
|
||||
// name: 'recommendedTab',
|
||||
// data: {
|
||||
// type
|
||||
// }
|
||||
// })
|
||||
|
||||
},
|
||||
|
||||
@ -749,9 +746,9 @@ Page({
|
||||
|
||||
this.openPopwindow()
|
||||
|
||||
miucms.statistics({
|
||||
name: "popwindow"
|
||||
})
|
||||
// miucms.statistics({
|
||||
// name: "popwindow"
|
||||
// })
|
||||
},
|
||||
|
||||
// 打开弹窗
|
||||
|
@ -77,9 +77,4 @@ Page({
|
||||
onShareAppMessage() {
|
||||
|
||||
},
|
||||
// onShareTimeline() {
|
||||
// miucms.statistics({
|
||||
// name: "share-timeline"
|
||||
// })
|
||||
// },
|
||||
})
|
@ -119,9 +119,7 @@ Page({
|
||||
|
||||
},
|
||||
onShareTimeline() {
|
||||
miucms.statistics({
|
||||
name: "share-timeline"
|
||||
})
|
||||
|
||||
},
|
||||
get_content(){
|
||||
let that = this;
|
||||
|
@ -312,9 +312,6 @@ Page({
|
||||
}
|
||||
},
|
||||
onShareTimeline() {
|
||||
miucms.statistics({
|
||||
name: "share-timeline"
|
||||
})
|
||||
const res = this.getTitle()
|
||||
return {
|
||||
path: res.path,
|
||||
|
@ -1,12 +1,10 @@
|
||||
<import src="../common/common.wxml" />
|
||||
<view class="container">
|
||||
<header-nav notShowIndex="{{ true }}" bgcolor="{{ headerSearchTop ? '#fff' : 'transparent' }}">求房源</header-nav>
|
||||
<header-nav bgcolor="{{ headerSearchTop ? '#fff' : 'transparent' }}">求房源</header-nav>
|
||||
<view class="header-bj"></view>
|
||||
<view wx:if="{{ identity == 1 }}" style="position: relative;">
|
||||
<view class="" style="width: 100%;height: 100%;position: absolute;z-index: 111;" catchtap="publicJumps"
|
||||
data-url="/pages/search/search?isAskingSearch=true"></view>
|
||||
<view wx:if="{{ !allowsearch }}" catchtap="setValue" data-key="authenticationPopState" data-value="{{ true }}"
|
||||
class="mengcheng"></view>
|
||||
<view class="" style="width: 100%;height: 100%;position: absolute;z-index: 111;" catchtap="publicJumps" data-url="/pages/search/search?isAskingSearch=true"></view>
|
||||
<view wx:if="{{ !allowsearch }}" catchtap="setValue" data-key="authenticationPopState" data-value="{{ true }}" class="mengcheng"></view>
|
||||
<template is="list-header-search" data="{{ kw:'', isNeedMap: isMapFindState,disabled: true }}"></template>
|
||||
</view>
|
||||
|
||||
@ -14,16 +12,9 @@
|
||||
<xin-head-swiper bindrecordSwiperHeight="recordSwiperHeight" data="{{ attachment }}"></xin-head-swiper>
|
||||
</view>
|
||||
|
||||
<view wx:if="{{ identity == 1 }}" id="list-operations"
|
||||
class="list-operations {{ operationsTop ? 'list-operations-top' : '' }}"
|
||||
style="top: {{ screen_data.totalTopHeight }}px;">
|
||||
<view wx:if="{{ !allowsearch }}" class="mengcheng" bindtap="setValue" data-key="authenticationPopState"
|
||||
data-value="{{ true }}"></view>
|
||||
<list-operations operationstype="askinghousing" tabTitle="求房源" property="{{ property }}" school="{{ school }}"
|
||||
types="{{ types }}" location="{{ {value: requestData.location, data:langs.location} }}" money="{{ money }}"
|
||||
screen_data="{{ screen_data }}" roomtype="{{ roomtype }}" roomlistings="{{ roomlistings }}"
|
||||
bindsubmit="submitOperations" moreCondition="{{ moreCondition }}" orderbyy="{{ orderby }}"
|
||||
bindisOpenOperations="isOpenOperations"></list-operations>
|
||||
<view wx:if="{{ identity == 1 }}" id="list-operations" class="list-operations {{ operationsTop ? 'list-operations-top' : '' }}" style="top: {{ screen_data.totalTopHeight }}px;">
|
||||
<view wx:if="{{ !allowsearch }}" class="mengcheng" bindtap="setValue" data-key="authenticationPopState" data-value="{{ true }}"></view>
|
||||
<list-operations operationstype="askinghousing" tabTitle="求房源" property="{{ property }}" school="{{ school }}" types="{{ types }}" location="{{ {value: requestData.location, data:langs.location} }}" money="{{ money }}" screen_data="{{ screen_data }}" roomtype="{{ roomtype }}" roomlistings="{{ roomlistings }}" bindsubmit="submitOperations" moreCondition="{{ moreCondition }}" orderbyy="{{ orderby }}" bindisOpenOperations="isOpenOperations"></list-operations>
|
||||
</view>
|
||||
|
||||
<to-top wx:if="{{ showTOTOP }}"></to-top>
|
||||
@ -31,8 +22,7 @@
|
||||
<!-- 热词 -->
|
||||
<view class="hot-text-box">
|
||||
<view class="hot-text" wx:if="{{ groupSearch.length > 0 }}">
|
||||
<view class="{{ index===selectGroupIndex ? 'active item' :'item'}}" bindtap="selectGroup"
|
||||
data-index="{{ index }}" wx:for="{{ groupSearch }}" wx:key="index">{{ item['keyword'] }}</view>
|
||||
<view class="{{ index===selectGroupIndex ? 'active item' :'item'}}" bindtap="selectGroup" data-index="{{ index }}" wx:for="{{ groupSearch }}" wx:key="index">{{ item['keyword'] }}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@ -84,6 +74,5 @@
|
||||
<QRCodePop wx:if="{{ QRCodePopState }}" bindclosePop="consultStateCut" typee="irent"></QRCodePop>
|
||||
|
||||
|
||||
<template is="popwindow-box"
|
||||
data="{{popwindowBtnAnimationState: false,popwindowBtnState,popwindow}}"></template>
|
||||
<template is="popwindow-box" data="{{popwindowBtnAnimationState: false,popwindowBtnState,popwindow}}"></template>
|
||||
</view>
|
@ -452,9 +452,6 @@ Page({
|
||||
},
|
||||
|
||||
onShareTimeline() {
|
||||
miucms.statistics({
|
||||
name: "share-timeline"
|
||||
})
|
||||
const res = this.getTitle()
|
||||
return {
|
||||
path: res.path,
|
||||
|
@ -102,7 +102,7 @@ Page({
|
||||
})
|
||||
wx.showModal({
|
||||
title: '提示',
|
||||
content: '抱歉,网络出错。请稍后重试~',
|
||||
content: res.message || '抱歉,网络出错。请稍后重试~',
|
||||
})
|
||||
})
|
||||
|
||||
|
@ -298,9 +298,6 @@ Page({
|
||||
}
|
||||
},
|
||||
onShareTimeline() {
|
||||
miucms.statistics({
|
||||
name: "share-timeline"
|
||||
})
|
||||
let url = `/pages/search/search?kw=${this.data.kw}&tab=${this.data.tab}`;
|
||||
return {
|
||||
path: url,
|
||||
@ -446,12 +443,12 @@ Page({
|
||||
this.setTabData()
|
||||
this.searchKW()
|
||||
|
||||
miucms.statistics({
|
||||
name: "search",
|
||||
data: {
|
||||
kw: this.data.kw,
|
||||
}
|
||||
})
|
||||
// miucms.statistics({
|
||||
// name: "search",
|
||||
// data: {
|
||||
// kw: this.data.kw,
|
||||
// }
|
||||
// })
|
||||
},
|
||||
setTabData() {
|
||||
let tab = this.data.tab;
|
||||
|
@ -231,24 +231,28 @@ Page({
|
||||
// 来自页面内转发按钮
|
||||
if (res.from === 'button') var types = res.from === 'button' ? 'share_btn' : 'show';
|
||||
let that = this;
|
||||
console.log("res", that.data.info.share_img);
|
||||
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
|
||||
return {
|
||||
title: that.data.info.subject,
|
||||
imageUrl: that.data.info.share_img,
|
||||
// title: that.data.info.subject,
|
||||
title,
|
||||
// imageUrl: that.data.info.share_img,
|
||||
success: function (res) {
|
||||
miucms.share(app, types)
|
||||
},
|
||||
fail: function (res) {} // 转发失败
|
||||
}
|
||||
},
|
||||
onShareTimeline() {
|
||||
miucms.statistics({
|
||||
name: "share-timeline"
|
||||
})
|
||||
let title = `中国香港 > ${ info.locationList[0].head } > ${ info.locationList[0].end }`
|
||||
if (info.address) title += ' > ' + info.address
|
||||
|
||||
return {
|
||||
title: this.data.info.subject,
|
||||
imageUrl: this.data.info.share_img,
|
||||
// title: this.data.info.subject,
|
||||
title,
|
||||
// imageUrl: this.data.info.share_img,
|
||||
}
|
||||
},
|
||||
get_content: function () {
|
||||
@ -363,7 +367,7 @@ Page({
|
||||
wx.hideLoading()
|
||||
wx.showModal({
|
||||
title: '提示',
|
||||
content: '抱歉,网络出错。请稍后重试~',
|
||||
content: res.message || '抱歉,网络出错。请稍后重试~',
|
||||
})
|
||||
})
|
||||
|
||||
|
@ -475,7 +475,8 @@
|
||||
<text class="collect-num">{{ info.count_fav == 0 ? '收藏' : info.count_fav }}</text>
|
||||
</view>
|
||||
<!-- 转发 -->
|
||||
<button class="transpond" bindtap="share_pic">
|
||||
<!-- <button class="transpond" bindtap="share_pic"> -->
|
||||
<button class="transpond" open-type="share">
|
||||
<image class="transpond-icon" mode="widthFix" src="/img/u1975.png"></image>
|
||||
<text class="transpond-num">转发</text>
|
||||
</button>
|
||||
|
@ -73,9 +73,7 @@ Page({
|
||||
}
|
||||
},
|
||||
onShareTimeline() {
|
||||
miucms.statistics({
|
||||
name: "share-timeline"
|
||||
})
|
||||
|
||||
return {
|
||||
title: app.globalData.topTitle,
|
||||
path: `/pages/webViewwebweb/index?url=${this.data.url}`
|
||||
|
@ -80,9 +80,9 @@ Component({
|
||||
this.setData({
|
||||
groupState: true,
|
||||
})
|
||||
miucms.statistics({
|
||||
name: "side-group"
|
||||
})
|
||||
// miucms.statistics({
|
||||
// name: "side-group"
|
||||
// })
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -83,7 +83,7 @@
|
||||
<image class="arrow-green" mode="widthFix" src="/img/arrow-green.svg"></image>
|
||||
</view>
|
||||
<view class="academy-school-item-journey" wx:if="{{ item.publictransport }}">
|
||||
<view class="journey-item flexacenter" wx:for="{{ item.publictransport.segments }}">
|
||||
<view class="journey-item flexacenter" wx:for="{{ item.publictransport.segments }}" wx:key="index">
|
||||
<view class="circle"></view>
|
||||
<!-- 步行 骑行 -->
|
||||
<view wx:if="{{ item.type == 'walking' }}" class="journey-value flex1">
|
||||
|
@ -9,7 +9,6 @@ Component({
|
||||
openDate: {
|
||||
type: Object,
|
||||
observer: function (res) {
|
||||
console.log("res", res);
|
||||
if (res && res.image && !this.data.load) {
|
||||
this.data.load = true
|
||||
wx.setStorage({
|
||||
|
@ -4,7 +4,7 @@
|
||||
<view class="num">{{ num }}</view>
|
||||
<view class="text">跳过</view>
|
||||
</view>
|
||||
<image class="img" show-menu-by-longpress src="{{ url }}" mode="widthFix"></image>
|
||||
<image class="img" bind:tap="skip" show-menu-by-longpress src="{{ url }}" mode="widthFix"></image>
|
||||
<view class="skip" wx:if="{{ openDate.url }}" bind:tap="skip">
|
||||
<view class="text">点击查看详情</view>
|
||||
<image class="icon" mode="widthFix" src="https://app.gter.net/image/miniApp/offer/right-double-arrow.png"></image>
|
||||
|
@ -361,7 +361,7 @@ const wxget = function (url, data = {}) {
|
||||
wx.hideLoading()
|
||||
wx.showModal({
|
||||
title: '提示',
|
||||
content: res.data.message,
|
||||
content: res.message || res.data.message,
|
||||
})
|
||||
reject(res.data)
|
||||
}
|
||||
@ -571,6 +571,7 @@ function getTitleName(url) {
|
||||
|
||||
// 调用 统计接口
|
||||
function statistics(obj) {
|
||||
return
|
||||
|
||||
let url = ""
|
||||
let options = {}
|
||||
@ -660,15 +661,16 @@ function statistics(obj) {
|
||||
// 判断是否登录 如果登录需要发送 绑定微信信息埋点
|
||||
function bindingUser(user = {}) {
|
||||
if (user.uid <= 0) return;
|
||||
setTimeout(() => {
|
||||
statistics({
|
||||
data: {
|
||||
uid: user.uid,
|
||||
uin: user.uin
|
||||
},
|
||||
type: "identify",
|
||||
});
|
||||
}, 600);
|
||||
wx.xstat && wx.xstat.setUserid(user.uid); // 登录后手动设置用户id , 如果有
|
||||
// setTimeout(() => {
|
||||
// statistics({
|
||||
// data: {
|
||||
// uid: user.uid,
|
||||
// uin: user.uin
|
||||
// },
|
||||
// type: "identify",
|
||||
// });
|
||||
// }, 600);
|
||||
}
|
||||
|
||||
// 将一个JavaScript对象转换为路由参数的形式将键值对转换为key=value的形式
|
||||
@ -677,6 +679,17 @@ function objectToQueryString(obj = {}) {
|
||||
return queryString ? '?' + queryString : '';
|
||||
}
|
||||
|
||||
// 返回上一页或者首页
|
||||
function backOrIndex() {
|
||||
wx.navigateBack({
|
||||
fail: function () {
|
||||
wx.redirectTo({
|
||||
url: '/pages/index/index',
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
initial: initial,
|
||||
share: share,
|
||||
@ -721,4 +734,5 @@ module.exports = {
|
||||
bindingUser,
|
||||
objectToQueryString,
|
||||
gtergreenonionqrcode: "https://oss.x-php.com/Zvt57TuJSUvkyhw-xG7Y2l-d_pIqcXjqqsgFptxhcq_cQnrlcvd3DQYcBq_D-81qNDQyOQ~~",
|
||||
backOrIndex,
|
||||
}
|
1
utils/xstat.js
Normal file
1
utils/xstat.js
Normal file
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user