|
@@ -665,7 +665,7 @@ 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 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() {
|
|
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 { isOneRow: false, 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,
|
|
+ return { isOneRow: false, 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, currentPropertyObj: {},
|
|
data: {},
|
|
data: {},
|
|
form1: {}, scrollTop: 0, reportStepCountObj: {}, areaTypeObj: {}, twoObj: {} };}, onPageScroll: function onPageScroll(e) {this.scrollTop = e.scrollTop;this.backTop.scrollTop = e.scrollTop;},
|
|
form1: {}, scrollTop: 0, reportStepCountObj: {}, areaTypeObj: {}, twoObj: {} };}, onPageScroll: function onPageScroll(e) {this.scrollTop = e.scrollTop;this.backTop.scrollTop = e.scrollTop;},
|
|
onLoad: function onLoad() {
|
|
onLoad: function onLoad() {
|
|
@@ -673,7 +673,7 @@ var that;var backTop = function backTop() {__webpack_require__.e(
|
|
|
|
|
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};},
|
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};},
|
|
onReady: function onReady() {},
|
|
onReady: function onReady() {},
|
|
- onShow: function onShow() {this.init();
|
|
+ onShow: function onShow() {this.init();this.checkUpdate();
|
|
|
|
|
|
},
|
|
},
|
|
onHide: function onHide() {},
|
|
onHide: function onHide() {},
|
|
@@ -681,7 +681,8 @@ var that;var backTop = function backTop() {__webpack_require__.e(
|
|
onResize: function onResize() {},
|
|
onResize: function onResize() {},
|
|
onShareAppMessage: function onShareAppMessage(options) {},
|
|
onShareAppMessage: function onShareAppMessage(options) {},
|
|
created: function created() {},
|
|
created: function created() {},
|
|
- 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) });} });},
|
|
+ methods: { checkUpdate: function checkUpdate() {var updateManager = uni.getUpdateManager();updateManager.onUpdateReady(function (res) {uni.showModal({ title: '更新提示', content: '新版本已经准备好,是否重启应用?', success: function success(res) {if (res.confirm) {
|
|
|
|
+ updateManager.applyUpdate();}} });});}, 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 || [];var dictObj = uni.getStorageSync('MD_dict');var areaTypeObj = (0, _utils.arrToObj)(dictObj.area_type);var twoObj = {};list.forEach(function (item) {if (twoObj[item.area_type]) {twoObj[item.area_type].list.push(item);} else {twoObj[item.area_type] = { list: [item], str: areaTypeObj[item.area_type] };}});_this.twoObj = _objectSpread({}, twoObj);
|
|
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 || [];var dictObj = uni.getStorageSync('MD_dict');var areaTypeObj = (0, _utils.arrToObj)(dictObj.area_type);var twoObj = {};list.forEach(function (item) {if (twoObj[item.area_type]) {twoObj[item.area_type].list.push(item);} else {twoObj[item.area_type] = { list: [item], str: areaTypeObj[item.area_type] };}});_this.twoObj = _objectSpread({}, twoObj);
|
|
|
|
|
|
_this.propertyList = _toConsumableArray(list);
|
|
_this.propertyList = _toConsumableArray(list);
|
|
@@ -772,7 +773,7 @@ var that;var backTop = function backTop() {__webpack_require__.e(
|
|
|
|
|
|
|
|
|
|
}, pageTo: function pageTo(path) {if (path === 'dev') {uni.$msg('开发中~');return;}uni.navigateTo({ url: path });},
|
|
}, pageTo: function pageTo(path) {if (path === 'dev') {uni.$msg('开发中~');return;}uni.navigateTo({ url: path });},
|
|
- showDetail: function showDetail(index, item) {var _this2 = this;if (this.userInfo && this.userInfo.auth_state == 1) {this.currentPropertyIndex = index;this.propertyPopupShow = true;uni.api.estate.apiestatecontentdetail({ id: item.id }).then(function (res) {_this2.curHtml = res.content || '';});} else {uni.$msgConfirm('请点击首页右上角设置,进行实名认证,实名认证后可查看详细信息');}} },
|
|
+ showDetail: function showDetail(index, item) {var _this2 = this;if (this.userInfo && this.userInfo.auth_state == 1) {this.currentPropertyIndex = index;this.currentPropertyObj = item;this.propertyPopupShow = true;uni.api.estate.apiestatecontentdetail({ id: item.id }).then(function (res) {_this2.curHtml = res.content || '';});} else {uni.$msgConfirm('请点击首页右上角设置,进行实名认证,实名认证后可查看详细信息');}} },
|
|
watch: {},
|
|
watch: {},
|
|
computed: {} };exports.default = _default;
|
|
computed: {} };exports.default = _default;
|
|
}.call(this, __webpack_require__( 1)["default"]))
|
|
}.call(this, __webpack_require__( 1)["default"]))
|