|
@@ -400,6 +400,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -607,6 +611,10 @@ var _utils = __webpack_require__( 44);function _toConsumableArray(
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
var that;var backTop = function backTop() {__webpack_require__.e( "components/back-top/back-top").then((function () {return resolve(__webpack_require__( 248));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var wmWatermark = function wmWatermark() {__webpack_require__.e( "components/wm-watermark/wm-watermark").then((function () {return resolve(__webpack_require__( 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,
|
|
@@ -623,7 +631,7 @@ var that;var backTop = function backTop() {__webpack_require__.e(
|
|
|
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 || [];
|
|
|
_this.propertyList = _toConsumableArray(list);
|
|
|
});
|