|
@@ -400,6 +400,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -607,6 +611,10 @@ var _utils = __webpack_require__(/*! @/utils */ 44);function _toConsumableArray(
|
|
|
//
|
|
|
//
|
|
|
//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
var that;var backTop = function backTop() {__webpack_require__.e(/*! require.ensure | components/back-top/back-top */ "components/back-top/back-top").then((function () {return resolve(__webpack_require__(/*! @/components/back-top/back-top.vue */ 248));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var wmWatermark = function wmWatermark() {__webpack_require__.e(/*! require.ensure | components/wm-watermark/wm-watermark */ "components/wm-watermark/wm-watermark").then((function () {return resolve(__webpack_require__(/*! @/components/wm-watermark/wm-watermark.vue */ 168));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var _default = { components: { backTop: backTop, wmWatermark: wmWatermark }, filters: { filtersRichText: function filtersRichText(html) {//控制小程序中图片大小
|
|
|
var newContent = html.replace(/<img[^>]*>/gi, function (match, capture) {match = match.replace(/style="[^"]+"/gi, '').replace(/style='[^']+'/gi, '');match = match.replace(/width="[^"]+"/gi, '').replace(/width='[^']+'/gi, '');match = match.replace(/height="[^"]+"/gi, '').replace(/height='[^']+'/gi, '');return match;});newContent = newContent.replace(/style="[^"]+"/gi, function (match, capture) {match = match.replace(/width:[^;]+;/gi, 'max-width:100%;').replace(/width:[^;]+;/gi, 'max-width:100%;');return match;});newContent = newContent.replace(/<br[^>]*\/>/gi, '');newContent = newContent.replace(/\<img/gi, '<img style="max-width:100%;height:auto;display:inline-block;margin:10rpx auto;"');return newContent;} }, data: function data() {// 页面数据变量
|
|
|
return { curHtml: '', backTop: { src: '../../static/back-top/top.png', scrollTop: 0 }, userInfo: {}, skeletonLoading: true, agentTypeList: ['', '自由经纪人', '渠道经纪人', '老业主'], propertyList: [{ estate_name: '在售项目1', pri_image: 'https://zdcdn.2bwin.cn/uploads/20220501/af6eb9c2a5d462be10a15c2302e5e6b5.jpg', sale_tag: '刚需好盘', rulesInfo: { des: '内容加载中1....', des_content: '内容加载中2....' } }], commonRulesShow: false, propertyPopupShow: false, currentPropertyIndex: 0, // init请求返回的数据
|
|
@@ -623,7 +631,7 @@ var that;var backTop = function backTop() {__webpack_require__.e(/*! require.ens
|
|
|
onResize: function onResize() {}, // 监听 - 点击右上角转发时
|
|
|
onShareAppMessage: function onShareAppMessage(options) {}, // 监听 - 页面创建时
|
|
|
created: function created() {}, // 函数
|
|
|
- methods: { scanHandle: function scanHandle() {uni.scanCode({ success: function success(res) {uni.navigateTo({ url: "/pages/agent/recommend/detail2?id=".concat(res.result) });} });}, // 页面数据初始化函数
|
|
|
+ methods: { oneImgHandle: function oneImgHandle(item) {uni.api.estate.apiestateinfodetail({ id: item.id }).then(function (res) {var curImgUrl = res.info_img || '';if (!curImgUrl) {uni.$msg('该楼盘暂未设置一页纸楼盘简介~');return;}uni.previewImage({ current: curImgUrl, urls: [curImgUrl] });});}, scanHandle: function scanHandle() {uni.scanCode({ success: function success(res) {uni.navigateTo({ url: "/pages/agent/recommend/detail2?id=".concat(res.result) });} });}, // 页面数据初始化函数
|
|
|
init: function init(options) {var _this = this;var userInfo2 = uni.getStorageSync('MD_userInfo2');this.userInfo = userInfo2 || {};uni.api.estate.apireportcount().then(function (res) {var reportStepCount = res.report_step_count || [];var reportStepCountObj = {};reportStepCount.forEach(function (item) {reportStepCountObj[item.report_step] = item.total || 0;});_this.reportStepCountObj = _objectSpread({}, reportStepCountObj);});uni.api.estate.apiestatelist({ page_size: 100 }).then(function (res) {var list = res.list || []; // let oneObj = list[0] || {}
|
|
|
_this.propertyList = _toConsumableArray(list); // this.propertyList = [list[0], list[1], list[2]]
|
|
|
}); // let currentTime = Date.parse(new Date()) / 1000; // 秒级
|