|
@@ -98,34 +98,40 @@ var components
|
|
|
try {
|
|
|
components = {
|
|
|
uForm: function() {
|
|
|
- return __webpack_require__.e( "uni_modules/vk-uview-ui/components/u-form/u-form").then(__webpack_require__.bind(null, 373))
|
|
|
+ return __webpack_require__.e( "uni_modules/vk-uview-ui/components/u-form/u-form").then(__webpack_require__.bind(null, 381))
|
|
|
},
|
|
|
uFormItem: function() {
|
|
|
- return Promise.all([__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/vk-uview-ui/components/u-form-item/u-form-item")]).then(__webpack_require__.bind(null, 380))
|
|
|
+ return Promise.all([__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/vk-uview-ui/components/u-form-item/u-form-item")]).then(__webpack_require__.bind(null, 388))
|
|
|
},
|
|
|
uInput: function() {
|
|
|
- return Promise.all([__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/vk-uview-ui/components/u-input/u-input")]).then(__webpack_require__.bind(null, 391))
|
|
|
+ return Promise.all([__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/vk-uview-ui/components/u-input/u-input")]).then(__webpack_require__.bind(null, 399))
|
|
|
},
|
|
|
uRadioGroup: function() {
|
|
|
- return Promise.all([__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/vk-uview-ui/components/u-radio-group/u-radio-group")]).then(__webpack_require__.bind(null, 412))
|
|
|
+ return Promise.all([__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/vk-uview-ui/components/u-radio-group/u-radio-group")]).then(__webpack_require__.bind(null, 420))
|
|
|
},
|
|
|
uRadio: function() {
|
|
|
- return __webpack_require__.e( "uni_modules/vk-uview-ui/components/u-radio/u-radio").then(__webpack_require__.bind(null, 419))
|
|
|
+ return __webpack_require__.e( "uni_modules/vk-uview-ui/components/u-radio/u-radio").then(__webpack_require__.bind(null, 427))
|
|
|
},
|
|
|
uGap: function() {
|
|
|
- return __webpack_require__.e( "uni_modules/vk-uview-ui/components/u-gap/u-gap").then(__webpack_require__.bind(null, 398))
|
|
|
+ return __webpack_require__.e( "uni_modules/vk-uview-ui/components/u-gap/u-gap").then(__webpack_require__.bind(null, 406))
|
|
|
},
|
|
|
uButton: function() {
|
|
|
- return __webpack_require__.e( "uni_modules/vk-uview-ui/components/u-button/u-button").then(__webpack_require__.bind(null, 300))
|
|
|
+ return __webpack_require__.e( "uni_modules/vk-uview-ui/components/u-button/u-button").then(__webpack_require__.bind(null, 308))
|
|
|
},
|
|
|
uSelect: function() {
|
|
|
- return __webpack_require__.e( "uni_modules/vk-uview-ui/components/u-select/u-select").then(__webpack_require__.bind(null, 426))
|
|
|
+ return __webpack_require__.e( "uni_modules/vk-uview-ui/components/u-select/u-select").then(__webpack_require__.bind(null, 434))
|
|
|
},
|
|
|
uModal: function() {
|
|
|
- return __webpack_require__.e( "uni_modules/vk-uview-ui/components/u-modal/u-modal").then(__webpack_require__.bind(null, 405))
|
|
|
+ return __webpack_require__.e( "uni_modules/vk-uview-ui/components/u-modal/u-modal").then(__webpack_require__.bind(null, 413))
|
|
|
},
|
|
|
uToast: function() {
|
|
|
- return __webpack_require__.e( "uni_modules/vk-uview-ui/components/u-toast/u-toast").then(__webpack_require__.bind(null, 433))
|
|
|
+ return __webpack_require__.e( "uni_modules/vk-uview-ui/components/u-toast/u-toast").then(__webpack_require__.bind(null, 441))
|
|
|
+ },
|
|
|
+ uPopup: function() {
|
|
|
+ return __webpack_require__.e( "uni_modules/vk-uview-ui/components/u-popup/u-popup").then(__webpack_require__.bind(null, 343))
|
|
|
+ },
|
|
|
+ uTag: function() {
|
|
|
+ return __webpack_require__.e( "uni_modules/vk-uview-ui/components/u-tag/u-tag").then(__webpack_require__.bind(null, 462))
|
|
|
}
|
|
|
}
|
|
|
} catch (e) {
|
|
@@ -153,6 +159,14 @@ var render = function() {
|
|
|
_vm.e0 = function($event) {
|
|
|
_vm.propertySelectShow = true
|
|
|
}
|
|
|
+
|
|
|
+ _vm.e1 = function($event) {
|
|
|
+ _vm.propertySelectShow = false
|
|
|
+ }
|
|
|
+
|
|
|
+ _vm.e2 = function($event) {
|
|
|
+ _vm.propertySelectShow = false
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
var recyclableRender = false
|
|
@@ -187,46 +201,86 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
(function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
-(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-var _default =
|
|
|
+(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+var _utils = __webpack_require__( 44);function _toConsumableArray(arr) {return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();}function _nonIterableSpread() {throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o, minLen) {if (!o) return;if (typeof o === "string") return _arrayLikeToArray(o, minLen);var n = Object.prototype.toString.call(o).slice(8, -1);if (n === "Object" && o.constructor) n = o.constructor.name;if (n === "Map" || n === "Set") return Array.from(o);if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);}function _iterableToArray(iter) {if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);}function _arrayWithoutHoles(arr) {if (Array.isArray(arr)) return _arrayLikeToArray(arr);}function _arrayLikeToArray(arr, len) {if (len == null || len > arr.length) len = arr.length;for (var i = 0, arr2 = new Array(len); i < len; i++) {arr2[i] = arr[i];}return arr2;}var _default =
|
|
|
{
|
|
|
data: function data() {
|
|
|
return {
|
|
@@ -274,6 +328,10 @@ var _default =
|
|
|
|
|
|
propertySelectShow: false,
|
|
|
propertySelectList: [],
|
|
|
+ estateList: [],
|
|
|
+ areaTypeObj: {},
|
|
|
+ userInfo2: {},
|
|
|
+ curEstateName: '',
|
|
|
|
|
|
salerSelectShow: false,
|
|
|
salerSelectList: [],
|
|
@@ -288,17 +346,23 @@ var _default =
|
|
|
|
|
|
if (eventChannel.on) {
|
|
|
eventChannel.on('data', function (data) {
|
|
|
- that.form.name = data.info.name;
|
|
|
- that.form.phone = data.info.phone;
|
|
|
- that.form.sex = data.info.sex;
|
|
|
- that.form.remark = data.info.demand;
|
|
|
+ if (data.info.name) that.form.name = data.info.name;
|
|
|
+ if (data.info.phone) that.form.phone = data.info.phone;
|
|
|
+ if (data.info.sex) that.form.sex = data.info.sex;
|
|
|
+ if (data.info.demand) that.form.remark = data.info.demand;
|
|
|
+ if (data.info.estate_id) that.form.estate_id = data.info.estate_id;
|
|
|
+ if (data.info.estate_name) that.form.estate_name = data.info.estate_name;
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
created: function created() {var _this = this;
|
|
|
+ this.userInfo2 = uni.getStorageSync('MD_userInfo2');
|
|
|
+ var dictObj = uni.getStorageSync('MD_dict');
|
|
|
+ this.areaTypeObj = (0, _utils.arrToObj)(dictObj.area_type);
|
|
|
uni.api.estate.apiestatelist({ page_size: 100, report_open: 1 }).then(function (res) {
|
|
|
var list = res.list || [];
|
|
|
var propertySelectList = [];
|
|
|
+ _this.estateList = _toConsumableArray(list);
|
|
|
list.forEach(function (item) {
|
|
|
propertySelectList.push({
|
|
|
value: item.estate_id,
|
|
@@ -313,14 +377,29 @@ var _default =
|
|
|
this.$refs.uForm.setRules(this.rules);
|
|
|
},
|
|
|
methods: {
|
|
|
+ getEstateList: function getEstateList() {var _this2 = this;
|
|
|
+ uni.api.estate.apiestatelist({ page_size: 100, report_open: 1, estate_name: this.curEstateName }).then(function (res) {
|
|
|
+ var list = res.list || [];
|
|
|
+ _this2.estateList = _toConsumableArray(list);
|
|
|
+ });
|
|
|
+ },
|
|
|
+ listItemHandle: function listItemHandle(val) {
|
|
|
+ this.form.estate_id = val.estate_id;
|
|
|
+ this.form.estate_name = val.estate_name;
|
|
|
+ },
|
|
|
|
|
|
- propertySelectConfirm: function propertySelectConfirm(e) {var _this2 = this;
|
|
|
+ propertySelectConfirm: function propertySelectConfirm(e) {var _this3 = this;
|
|
|
e.map(function (val, index) {
|
|
|
- _this2.form.estate_id = val.value;
|
|
|
- _this2.form.estate_name = val.label;
|
|
|
+ _this3.form.estate_id = val.value;
|
|
|
+ _this3.form.estate_name = val.label;
|
|
|
});
|
|
|
},
|
|
|
- submitHandle: function submitHandle() {var _this3 = this;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ submitHandle: function submitHandle() {var _this4 = this;
|
|
|
var that = this;
|
|
|
this.$refs.uForm.validate(function (valid) {
|
|
|
if (valid) {
|
|
@@ -339,7 +418,7 @@ var _default =
|
|
|
url: '/pages/agent/recommend/list' });
|
|
|
|
|
|
}, function () {
|
|
|
- _this3.form = {
|
|
|
+ _this4.form = {
|
|
|
name: null,
|
|
|
phone: null,
|
|
|
sex: 'male',
|