|
@@ -11033,23 +11033,81 @@ var _default = {
|
|
exports.default = _default;
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
/***/ }),
|
|
-/* 38 */,
|
|
|
|
|
|
+/* 38 */
|
|
|
|
+/*!**********************************************************************************!*\
|
|
|
|
+ !*** /Users/whx/Documents/yuiProject/realty/virgo.wzfrontend/wx/config/field.js ***!
|
|
|
|
+ \**********************************************************************************/
|
|
|
|
+/*! no static exports found */
|
|
|
|
+/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
+
|
|
|
|
+"use strict";
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+Object.defineProperty(exports, "__esModule", {
|
|
|
|
+ value: true
|
|
|
|
+});
|
|
|
|
+exports.default = void 0;
|
|
|
|
+var houseType = [{
|
|
|
|
+ id: 1,
|
|
|
|
+ name: '纯写字楼'
|
|
|
|
+}, {
|
|
|
|
+ id: 2,
|
|
|
|
+ name: '商住两用'
|
|
|
|
+}, {
|
|
|
|
+ id: 3,
|
|
|
|
+ name: '商业裙楼'
|
|
|
|
+}, {
|
|
|
|
+ id: 4,
|
|
|
|
+ name: '厂房改造'
|
|
|
|
+}];
|
|
|
|
+var payWay = [{
|
|
|
|
+ id: 1,
|
|
|
|
+ name: '公对公转账'
|
|
|
|
+}, {
|
|
|
|
+ id: 2,
|
|
|
|
+ name: '微信小程序支付'
|
|
|
|
+}];
|
|
|
|
+var findItem = function findItem(type, id) {
|
|
|
|
+ if (type === 'houseType') {
|
|
|
|
+ return houseType.find(function (node) {
|
|
|
|
+ return node.id === id;
|
|
|
|
+ }) || {
|
|
|
|
+ id: 0,
|
|
|
|
+ name: '-'
|
|
|
|
+ };
|
|
|
|
+ } else if (type === 'payWay') {
|
|
|
|
+ return payWay.find(function (node) {
|
|
|
|
+ return node.id === id;
|
|
|
|
+ }) || {
|
|
|
|
+ id: 0,
|
|
|
|
+ name: '-'
|
|
|
|
+ };
|
|
|
|
+ }
|
|
|
|
+};
|
|
|
|
+var _default = {
|
|
|
|
+ field: {
|
|
|
|
+ houseType: houseType,
|
|
|
|
+ payWay: payWay
|
|
|
|
+ },
|
|
|
|
+ findHouseTypeName: function findHouseTypeName(id) {
|
|
|
|
+ return findItem('houseType', id).name;
|
|
|
|
+ },
|
|
|
|
+ findPayWayName: function findPayWayName(id) {
|
|
|
|
+ return findItem('payWay', id).name;
|
|
|
|
+ }
|
|
|
|
+};
|
|
|
|
+exports.default = _default;
|
|
|
|
+
|
|
|
|
+/***/ }),
|
|
/* 39 */,
|
|
/* 39 */,
|
|
/* 40 */,
|
|
/* 40 */,
|
|
/* 41 */,
|
|
/* 41 */,
|
|
/* 42 */,
|
|
/* 42 */,
|
|
/* 43 */,
|
|
/* 43 */,
|
|
/* 44 */,
|
|
/* 44 */,
|
|
-/* 45 */,
|
|
|
|
-/* 46 */,
|
|
|
|
-/* 47 */,
|
|
|
|
-/* 48 */,
|
|
|
|
-/* 49 */,
|
|
|
|
-/* 50 */,
|
|
|
|
-/* 51 */,
|
|
|
|
-/* 52 */
|
|
|
|
|
|
+/* 45 */
|
|
/*!***************************************************************************************!*\
|
|
/*!***************************************************************************************!*\
|
|
- !*** /Users/whx/Documents/yuiProject/realty/virgo.wzfrontend/wx/request/api/login.js ***!
|
|
|
|
|
|
+ !*** /Users/whx/Documents/yuiProject/realty/virgo.wzfrontend/wx/request/api/house.js ***!
|
|
\***************************************************************************************/
|
|
\***************************************************************************************/
|
|
/*! no static exports found */
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
@@ -11060,44 +11118,35 @@ exports.default = _default;
|
|
Object.defineProperty(exports, "__esModule", {
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
value: true
|
|
});
|
|
});
|
|
-exports.getImgCode = getImgCode;
|
|
|
|
-exports.login = login;
|
|
|
|
-exports.sendPhoneCode = sendPhoneCode;
|
|
|
|
-var _request = __webpack_require__(/*! ../request.js */ 53);
|
|
|
|
|
|
+exports.getHouseDetailById = getHouseDetailById;
|
|
|
|
+exports.getHouseListByPage = getHouseListByPage;
|
|
|
|
+var _request = __webpack_require__(/*! @/request/request.js */ 46);
|
|
/*
|
|
/*
|
|
- * 登录
|
|
|
|
|
|
+ * 获取房源列表
|
|
|
|
+ *
|
|
*
|
|
*
|
|
*/
|
|
*/
|
|
-function login(data) {
|
|
|
|
|
|
+function getHouseListByPage(data) {
|
|
return (0, _request.request)({
|
|
return (0, _request.request)({
|
|
- url: "/manager/login",
|
|
|
|
|
|
+ url: "/api/projectItemTargetRoom/".concat(data.currPage, "/").concat(data.pageSize),
|
|
method: 'post',
|
|
method: 'post',
|
|
data: data
|
|
data: data
|
|
});
|
|
});
|
|
}
|
|
}
|
|
/*
|
|
/*
|
|
- * 获取图片验证码
|
|
|
|
|
|
+ * 获取房源详情
|
|
*
|
|
*
|
|
- */
|
|
|
|
-function getImgCode() {
|
|
|
|
- return (0, _request.request)({
|
|
|
|
- url: "/manager/pCode",
|
|
|
|
- method: 'get'
|
|
|
|
- });
|
|
|
|
-}
|
|
|
|
-/*
|
|
|
|
- * 发送手机验证码
|
|
|
|
*
|
|
*
|
|
*/
|
|
*/
|
|
-function sendPhoneCode(phone, vCode) {
|
|
|
|
|
|
+function getHouseDetailById(id) {
|
|
return (0, _request.request)({
|
|
return (0, _request.request)({
|
|
- url: "/manager/send/".concat(phone, "/").concat(vCode),
|
|
|
|
|
|
+ url: "/api/projectItemTargetRoom/".concat(id),
|
|
method: 'get'
|
|
method: 'get'
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
/***/ }),
|
|
-/* 53 */
|
|
|
|
|
|
+/* 46 */
|
|
/*!*************************************************************************************!*\
|
|
/*!*************************************************************************************!*\
|
|
!*** /Users/whx/Documents/yuiProject/realty/virgo.wzfrontend/wx/request/request.js ***!
|
|
!*** /Users/whx/Documents/yuiProject/realty/virgo.wzfrontend/wx/request/request.js ***!
|
|
\*************************************************************************************/
|
|
\*************************************************************************************/
|
|
@@ -11114,6 +11163,10 @@ exports.request = request;
|
|
var BASE_URL = 'https://www.waywish.com';
|
|
var BASE_URL = 'https://www.waywish.com';
|
|
function request(options) {
|
|
function request(options) {
|
|
return new Promise(function (resolve, reject) {
|
|
return new Promise(function (resolve, reject) {
|
|
|
|
+ var header = options.header || {
|
|
|
|
+ 'Content-Type': 'application/json'
|
|
|
|
+ };
|
|
|
|
+ if (uni.getStorageSync('token')) header['token'] = uni.getStorageSync('token');
|
|
uni.request({
|
|
uni.request({
|
|
url: BASE_URL + options.url,
|
|
url: BASE_URL + options.url,
|
|
// 服务器url
|
|
// 服务器url
|
|
@@ -11121,9 +11174,7 @@ function request(options) {
|
|
// 请求方法,默认为GET
|
|
// 请求方法,默认为GET
|
|
data: options.data || {},
|
|
data: options.data || {},
|
|
// 请求参数
|
|
// 请求参数
|
|
- header: options.header || {
|
|
|
|
- 'Content-Type': 'application/json'
|
|
|
|
- },
|
|
|
|
|
|
+ header: header,
|
|
// 设置请求的 header
|
|
// 设置请求的 header
|
|
success: function success(res) {
|
|
success: function success(res) {
|
|
// 请求成功
|
|
// 请求成功
|
|
@@ -11149,7 +11200,77 @@ function request(options) {
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|
|
|
|
|
/***/ }),
|
|
/***/ }),
|
|
-/* 54 */
|
|
|
|
|
|
+/* 47 */,
|
|
|
|
+/* 48 */,
|
|
|
|
+/* 49 */,
|
|
|
|
+/* 50 */,
|
|
|
|
+/* 51 */,
|
|
|
|
+/* 52 */,
|
|
|
|
+/* 53 */,
|
|
|
|
+/* 54 */,
|
|
|
|
+/* 55 */
|
|
|
|
+/*!***************************************************************************************!*\
|
|
|
|
+ !*** /Users/whx/Documents/yuiProject/realty/virgo.wzfrontend/wx/request/api/login.js ***!
|
|
|
|
+ \***************************************************************************************/
|
|
|
|
+/*! no static exports found */
|
|
|
|
+/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
+
|
|
|
|
+"use strict";
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+Object.defineProperty(exports, "__esModule", {
|
|
|
|
+ value: true
|
|
|
|
+});
|
|
|
|
+exports.getImgCode = getImgCode;
|
|
|
|
+exports.getUserInfo = getUserInfo;
|
|
|
|
+exports.login = login;
|
|
|
|
+exports.sendPhoneCode = sendPhoneCode;
|
|
|
|
+var _request = __webpack_require__(/*! @/request/request.js */ 46);
|
|
|
|
+/*
|
|
|
|
+ * 登录
|
|
|
|
+ *
|
|
|
|
+ */
|
|
|
|
+function login(data) {
|
|
|
|
+ return (0, _request.request)({
|
|
|
|
+ url: "/manager/login",
|
|
|
|
+ method: 'post',
|
|
|
|
+ data: data
|
|
|
|
+ });
|
|
|
|
+}
|
|
|
|
+/*
|
|
|
|
+ * 获取图片验证码
|
|
|
|
+ *
|
|
|
|
+ */
|
|
|
|
+function getImgCode() {
|
|
|
|
+ return (0, _request.request)({
|
|
|
|
+ url: "/manager/pCode",
|
|
|
|
+ method: 'get'
|
|
|
|
+ });
|
|
|
|
+}
|
|
|
|
+/*
|
|
|
|
+ * 发送手机验证码
|
|
|
|
+ *
|
|
|
|
+ */
|
|
|
|
+function sendPhoneCode(phone, vCode) {
|
|
|
|
+ return (0, _request.request)({
|
|
|
|
+ url: "/manager/send/".concat(phone, "/").concat(vCode),
|
|
|
|
+ method: 'get'
|
|
|
|
+ });
|
|
|
|
+}
|
|
|
|
+/*
|
|
|
|
+ * 获取当前登录者信息
|
|
|
|
+ * @param null
|
|
|
|
+ *
|
|
|
|
+ */
|
|
|
|
+function getUserInfo(data) {
|
|
|
|
+ return (0, _request.request)({
|
|
|
|
+ url: "/manager/userContext",
|
|
|
|
+ method: 'get'
|
|
|
|
+ });
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+/***/ }),
|
|
|
|
+/* 56 */
|
|
/*!************************************************************************************!*\
|
|
/*!************************************************************************************!*\
|
|
!*** /Users/whx/Documents/yuiProject/realty/virgo.wzfrontend/wx/uitls/validate.js ***!
|
|
!*** /Users/whx/Documents/yuiProject/realty/virgo.wzfrontend/wx/uitls/validate.js ***!
|
|
\************************************************************************************/
|
|
\************************************************************************************/
|
|
@@ -11265,7 +11386,7 @@ function isTel(phone) {
|
|
}
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
/***/ }),
|
|
-/* 55 */
|
|
|
|
|
|
+/* 57 */
|
|
/*!**********************************************************************************************!*\
|
|
/*!**********************************************************************************************!*\
|
|
!*** /Users/whx/Documents/yuiProject/realty/virgo.wzfrontend/wx/static/image/login/logo.png ***!
|
|
!*** /Users/whx/Documents/yuiProject/realty/virgo.wzfrontend/wx/static/image/login/logo.png ***!
|
|
\**********************************************************************************************/
|
|
\**********************************************************************************************/
|
|
@@ -11275,8 +11396,6 @@ function isTel(phone) {
|
|
module.exports = __webpack_require__.p + "static/image/login/logo.png";
|
|
module.exports = __webpack_require__.p + "static/image/login/logo.png";
|
|
|
|
|
|
/***/ }),
|
|
/***/ }),
|
|
-/* 56 */,
|
|
|
|
-/* 57 */,
|
|
|
|
/* 58 */,
|
|
/* 58 */,
|
|
/* 59 */,
|
|
/* 59 */,
|
|
/* 60 */,
|
|
/* 60 */,
|
|
@@ -11291,7 +11410,9 @@ module.exports = __webpack_require__.p + "static/image/login/logo.png";
|
|
/* 69 */,
|
|
/* 69 */,
|
|
/* 70 */,
|
|
/* 70 */,
|
|
/* 71 */,
|
|
/* 71 */,
|
|
-/* 72 */
|
|
|
|
|
|
+/* 72 */,
|
|
|
|
+/* 73 */,
|
|
|
|
+/* 74 */
|
|
/*!*********************************************************************************************!*\
|
|
/*!*********************************************************************************************!*\
|
|
!*** /Users/whx/Documents/yuiProject/realty/virgo.wzfrontend/wx/static/image/my/banner.png ***!
|
|
!*** /Users/whx/Documents/yuiProject/realty/virgo.wzfrontend/wx/static/image/my/banner.png ***!
|
|
\*********************************************************************************************/
|
|
\*********************************************************************************************/
|
|
@@ -11301,8 +11422,6 @@ module.exports = __webpack_require__.p + "static/image/login/logo.png";
|
|
module.exports = __webpack_require__.p + "static/image/my/banner.png";
|
|
module.exports = __webpack_require__.p + "static/image/my/banner.png";
|
|
|
|
|
|
/***/ }),
|
|
/***/ }),
|
|
-/* 73 */,
|
|
|
|
-/* 74 */,
|
|
|
|
/* 75 */,
|
|
/* 75 */,
|
|
/* 76 */,
|
|
/* 76 */,
|
|
/* 77 */,
|
|
/* 77 */,
|
|
@@ -11328,7 +11447,9 @@ module.exports = __webpack_require__.p + "static/image/my/banner.png";
|
|
/* 97 */,
|
|
/* 97 */,
|
|
/* 98 */,
|
|
/* 98 */,
|
|
/* 99 */,
|
|
/* 99 */,
|
|
-/* 100 */
|
|
|
|
|
|
+/* 100 */,
|
|
|
|
+/* 101 */,
|
|
|
|
+/* 102 */
|
|
/*!**********************************************************************************************************************!*\
|
|
/*!**********************************************************************************************************************!*\
|
|
!*** /Users/whx/Documents/yuiProject/realty/virgo.wzfrontend/wx/uni_modules/uni-icons/components/uni-icons/icons.js ***!
|
|
!*** /Users/whx/Documents/yuiProject/realty/virgo.wzfrontend/wx/uni_modules/uni-icons/components/uni-icons/icons.js ***!
|
|
\**********************************************************************************************************************/
|
|
\**********************************************************************************************************************/
|