diff --git a/.env.development b/.env.development index 1dbb09d..e72332b 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,5 @@ NODE_ENV= development # VITE_HTTP_BASE_URL = http://10.39.13.78:8001/api/ -VITE_HTTP_BASE_URL = https://test-weapp-api.linyikj.com.cn/api/ -# VITE_HTTP_BASE_URL= https://weapp-api.linyikj.com.cn/api/ +# VITE_HTTP_BASE_URL = https://test-weapp-api.linyikj.com.cn/api/ +VITE_HTTP_BASE_URL= https://weapp-api.linyikj.com.cn/api/ VITE_ACCESS_TOKEN_KEY= 'ACCESS_TOKEN_CUSTOMER' \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/bill_details/index.js b/dist/dev/mp-weixin/BILL/bill_details/index.js new file mode 100644 index 0000000..96fdf6b --- /dev/null +++ b/dist/dev/mp-weixin/BILL/bill_details/index.js @@ -0,0 +1,8 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const _sfc_main = {}; +function _sfc_render(_ctx, _cache) { + return {}; +} +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/BILL/bill_details/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/BILL/bill_details/index.json b/dist/dev/mp-weixin/BILL/bill_details/index.json new file mode 100644 index 0000000..bbf18d8 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/bill_details/index.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "账单详情", + "usingComponents": {} +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/bill_details/index.wxml b/dist/dev/mp-weixin/BILL/bill_details/index.wxml new file mode 100644 index 0000000..1f1cbab --- /dev/null +++ b/dist/dev/mp-weixin/BILL/bill_details/index.wxml @@ -0,0 +1 @@ + 2025年1月待缴纳费用 ¥3232.32 物业费 ¥3232.32 单价 ¥3232.32 房屋面积 89.9m² 计算 3.5x89.9=314.65(月付) \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/bill_details/index.wxss b/dist/dev/mp-weixin/BILL/bill_details/index.wxss new file mode 100644 index 0000000..3d45ce8 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/bill_details/index.wxss @@ -0,0 +1,45 @@ +page { + background-color: #f8f8f8; +} +.bill_details_header { + background-color: #e8f1ff; + padding: 30rpx; + margin: 30rpx; + border-radius: 10rpx; +} +.bill_details_header .label { + font-size: 27rpx; + color: #333; + padding-bottom: 5rpx; +} +.bill_details_header .fee { + font-size: 40rpx; + color: #2d75ff; + font-weight: 550; +} +.bill_card_body { + background-color: #fff; + margin: 30rpx; + border-radius: 10rpx; + padding: 0 30rpx; +} +.bill_card_body .bill_card_head { + padding: 30rpx 0 25rpx 0; + border-bottom: 1rpx solid #eee; + display: flex; + align-items: center; + justify-content: space-between; + margin-bottom: 20rpx; +} +.bill_card_body .bill_card_head text:first-child { + border-left: 10rpx solid #2d75ff; + padding-left: 16rpx; +} +.bill_card_body .bill_cell { + display: flex; + align-items: center; + justify-content: space-between; + font-size: 28rpx; + color: #333; + padding-bottom: 20rpx; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/collection_record/index/index.js b/dist/dev/mp-weixin/BILL/collection_record/index/index.js new file mode 100644 index 0000000..6b182f0 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/collection_record/index/index.js @@ -0,0 +1,106 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const BILL_collection_record_index_model = require("./model.js"); +const BILL_collection_record_index_method = require("./method.js"); +const gen_Enums = require("../../../gen/Enums.js"); +require("../../../common/libraries/day.js"); +require("../../../common/libraries/apiLoading.js"); +require("../../../gen/Apis.js"); +require("../../../common/libraries/request.js"); +require("../../../common/store/useWeAppAuthStore.js"); +require("../../../common/store/useWorkStore.js"); +if (!Array) { + const _easycom_hs_tabs2 = common_vendor.resolveComponent("hs-tabs"); + const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); + const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon"); + const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag"); + const _easycom_cc_scroll_loading2 = common_vendor.resolveComponent("cc-scroll-loading"); + (_easycom_hs_tabs2 + _easycom_uni_icons2 + _easycom_up_icon2 + _easycom_hs_enum_tag2 + _easycom_cc_scroll_loading2)(); +} +const _easycom_hs_tabs = () => "../../../components/hs-tabs/hs-tabs.js"; +const _easycom_uni_icons = () => "../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; +const _easycom_up_icon = () => "../../../node-modules/uview-plus/components/u-icon/u-icon.js"; +const _easycom_hs_enum_tag = () => "../../../components/hs-enum-tag/hs-enum-tag.js"; +const _easycom_cc_scroll_loading = () => "../../../common/components/cc-scroll-loading/cc-scroll-loading.js"; +if (!Math) { + (_easycom_hs_tabs + _easycom_uni_icons + _easycom_up_icon + _easycom_hs_enum_tag + _easycom_cc_scroll_loading)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + const tablist = [ + { label: "全部", value: "" }, + { label: "已完成", value: "Completed" }, + { label: "进行中", value: "Processing" } + ]; + common_vendor.onLoad(async () => { + var _a, _b; + await ((_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$onLaunched); + BILL_collection_record_index_model.useModel.dataList.value = []; + (_b = BILL_collection_record_index_method.method) == null ? void 0 : _b.getList(); + }); + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e, _f, _g, _h; + return { + a: common_vendor.o((_a = common_vendor.unref(BILL_collection_record_index_method.method)) == null ? void 0 : _a.changeTab), + b: common_vendor.p({ + list: tablist, + current: (_c = (_b = common_vendor.unref(BILL_collection_record_index_model.useModel)) == null ? void 0 : _b.tabCurrent) == null ? void 0 : _c.value + }), + c: common_vendor.f((_e = (_d = common_vendor.unref(BILL_collection_record_index_model.useModel)) == null ? void 0 : _d.dataList) == null ? void 0 : _e.value, (i, index, i0) => { + var _a2; + return common_vendor.e({ + a: common_vendor.t(i == null ? void 0 : i.task_name), + b: (i == null ? void 0 : i.status) === "Processing" + }, (i == null ? void 0 : i.status) === "Processing" ? { + c: "9447b322-2-" + i0 + ",9447b322-1", + d: common_vendor.p({ + type: "refreshempty", + size: "14", + color: "#0082fa" + }) + } : {}, { + e: "9447b322-3-" + i0 + ",9447b322-1", + f: common_vendor.t((_a2 = i == null ? void 0 : i.company_employee) == null ? void 0 : _a2.name), + g: "9447b322-4-" + i0 + ",9447b322-1", + h: common_vendor.t(i == null ? void 0 : i.created_at), + i: "9447b322-5-" + i0 + ",9447b322-1", + j: common_vendor.p({ + value: i == null ? void 0 : i.status, + Enums: common_vendor.unref(gen_Enums.HouseCollectionTasksStatusEnum) + }), + k: "9447b322-6-" + i0 + ",9447b322-1", + l: common_vendor.p({ + type: "right", + size: "15", + color: (i == null ? void 0 : i.status) === "Processing" ? "#0082fa" : "#67C23A" + }), + m: common_vendor.n(`status status_${i == null ? void 0 : i.status}`), + n: `items_${index}`, + o: common_vendor.n(`collection_record_item items_${i == null ? void 0 : i.status}`), + p: common_vendor.o(($event) => { + var _a3; + return (_a3 = common_vendor.unref(BILL_collection_record_index_method.method)) == null ? void 0 : _a3.goDetail(i); + }, `items_${index}`) + }); + }), + d: common_vendor.p({ + type: "person", + size: "15", + color: "#C4C4C4" + }), + e: common_vendor.p({ + name: "clock", + size: "15", + color: "#C4C4C4" + }), + f: common_vendor.o((_f = common_vendor.unref(BILL_collection_record_index_method.method)) == null ? void 0 : _f.load), + g: common_vendor.p({ + meta: (_h = (_g = common_vendor.unref(BILL_collection_record_index_model.useModel)) == null ? void 0 : _g.meta) == null ? void 0 : _h.value + }) + }; + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/BILL/collection_record/index/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/BILL/collection_record/index/index.json b/dist/dev/mp-weixin/BILL/collection_record/index/index.json new file mode 100644 index 0000000..bbd18a8 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/collection_record/index/index.json @@ -0,0 +1,10 @@ +{ + "navigationBarTitleText": "催缴记录", + "usingComponents": { + "hs-tabs": "../../../components/hs-tabs/hs-tabs", + "uni-icons": "../../../uni_modules/uni-icons/components/uni-icons/uni-icons", + "up-icon": "../../../node-modules/uview-plus/components/u-icon/u-icon", + "hs-enum-tag": "../../../components/hs-enum-tag/hs-enum-tag", + "cc-scroll-loading": "../../../common/components/cc-scroll-loading/cc-scroll-loading" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/collection_record/index/index.wxml b/dist/dev/mp-weixin/BILL/collection_record/index/index.wxml new file mode 100644 index 0000000..e2b12ea --- /dev/null +++ b/dist/dev/mp-weixin/BILL/collection_record/index/index.wxml @@ -0,0 +1 @@ +{{i.a}} 刷新状态 {{i.f}}{{i.h}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/collection_record/index/index.wxss b/dist/dev/mp-weixin/BILL/collection_record/index/index.wxss new file mode 100644 index 0000000..6e9f3b2 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/collection_record/index/index.wxss @@ -0,0 +1,75 @@ +page { + background-color: #f8f8f8; +} +.collection_record_header { + position: fixed; + top: 0; + left: 0; + right: 0; + z-index: 100; + background-color: #fff; + box-shadow: 0px 3px 7px rgba(206, 206, 206, 0.25); +} +.collection_record_body { + padding: 110rpx 30rpx 0 30rpx; +} +.collection_record_body .collection_record_item { + display: flex; + padding: 30rpx; + align-items: center; + justify-content: space-between; + background-color: #fff; + border-left: 7px solid #0082fa; + border-radius: 20rpx; + font-size: 28rpx; + margin: 30rpx 0 0 0; +} +.collection_record_body .collection_record_item .item_head_info { + color: #3d3d3d; + font-weight: 500; + display: flex; + align-items: center; + padding-bottom: 10rpx; +} +.collection_record_body .collection_record_item .item_head_info .status_refresh { + margin-left: 30rpx; + background-color: #f9fafb; + border-radius: 100rpx; + padding: 7rpx 20rpx; + display: flex; + align-items: center; + justify-content: center; + color: #0082fa; + font-weight: 400; + font-size: 24rpx; +} +.collection_record_body .collection_record_item .item_others_info { + display: flex; + align-items: center; + padding-top: 10rpx; +} +.collection_record_body .collection_record_item .item_others_info .item_others_info_item { + display: flex; + align-items: center; + color: #666; + height: 25rpx; + font-size: 28rpx; + line-height: 25rpx; +} +.collection_record_body .collection_record_item .item_others_info .item_others_info_item text { + padding-left: 5rpx; +} +.collection_record_body .collection_record_item .item_others_info .item_others_info_item:last-child { + margin-left: 15rpx; + padding-left: 15rpx; + border-left: 1rpx solid #eee; +} +.collection_record_body .collection_record_item .status { + color: #0082fa; +} +.collection_record_body .collection_record_item .status_Completed { + color: #67c23a; +} +.collection_record_body .items_Completed { + border-left: 7px solid #67c23a; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/collection_record/index/method.js b/dist/dev/mp-weixin/BILL/collection_record/index/method.js new file mode 100644 index 0000000..88a5044 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/collection_record/index/method.js @@ -0,0 +1,57 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const common_libraries_apiLoading = require("../../../common/libraries/apiLoading.js"); +const gen_Apis = require("../../../gen/Apis.js"); +const BILL_collection_record_index_model = require("./model.js"); +const gen_Enums = require("../../../gen/Enums.js"); +const getList = () => { + var _a, _b; + gen_Apis.Apis.Collection.HouseCollectionTasks.List((_b = (_a = BILL_collection_record_index_model.useModel) == null ? void 0 : _a.formData) == null ? void 0 : _b.value).then((res) => { + BILL_collection_record_index_model.useModel.dataList.value = [...BILL_collection_record_index_model.useModel.dataList.value, ...res == null ? void 0 : res.data]; + BILL_collection_record_index_model.useModel.meta.value = res == null ? void 0 : res.meta; + console.log("登录", res == null ? void 0 : res.data); + }); +}; +const getTaskRecords = (id) => { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Collection.HouseCollectionRecords.GetTaskRecords, { + collection_tasks_id: id + }).then((res) => { + BILL_collection_record_index_model.useModel.showDataTable.value = res == null ? void 0 : res.data; + }); +}; +const method = { + getList, + changeTab(idx, e) { + BILL_collection_record_index_model.useModel.tabCurrent.value = idx; + BILL_collection_record_index_model.useModel.formData.value.status = e == null ? void 0 : e.value; + BILL_collection_record_index_model.useModel.formData.value.page = 1; + BILL_collection_record_index_model.useModel.dataList.value = []; + getList(); + }, + load(e) { + BILL_collection_record_index_model.useModel.formData.value.page = e == null ? void 0 : e.page; + getList(); + }, + goDetail(e) { + common_vendor.index.navigateTo({ + url: `/BILL/collection_record/show?id=${e == null ? void 0 : e.id}` + }); + }, + getShow(id) { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Collection.HouseCollectionTasks.Show, { id }).then((res) => { + var _a; + BILL_collection_record_index_model.useModel.showData.value = res == null ? void 0 : res.data; + getTaskRecords((_a = res == null ? void 0 : res.data) == null ? void 0 : _a.id); + }); + }, + getTaskRecords, + getShowChannel(list) { + let enums = ""; + list == null ? void 0 : list.map((key) => { + var _a; + enums += key ? `${(_a = gen_Enums.HouseCollectionTasksChannelEnum[key]) == null ? void 0 : _a.text} ` : ""; + }); + return enums; + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/BILL/collection_record/index/model.js b/dist/dev/mp-weixin/BILL/collection_record/index/model.js new file mode 100644 index 0000000..5a2ed4b --- /dev/null +++ b/dist/dev/mp-weixin/BILL/collection_record/index/model.js @@ -0,0 +1,12 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +require("../../../common/libraries/day.js"); +const useModel = { + formData: common_vendor.ref({ page: 1, status: "" }), + dataList: common_vendor.ref([]), + meta: common_vendor.ref({}), + tabCurrent: common_vendor.ref(0), + showData: common_vendor.ref({}), + showDataTable: common_vendor.ref([]) +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/BILL/collection_record/show/index.js b/dist/dev/mp-weixin/BILL/collection_record/show/index.js new file mode 100644 index 0000000..7d95794 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/collection_record/show/index.js @@ -0,0 +1,119 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const BILL_collection_record_show_model = require("./model.js"); +const BILL_collection_record_show_method = require("./method.js"); +const gen_Enums = require("../../../gen/Enums.js"); +require("../../../common/libraries/day.js"); +require("../../../common/libraries/apiLoading.js"); +require("../../../gen/Apis.js"); +require("../../../common/libraries/request.js"); +require("../../../common/store/useWeAppAuthStore.js"); +require("../../../common/store/useWorkStore.js"); +if (!Array) { + const _easycom_hs_cell2 = common_vendor.resolveComponent("hs-cell"); + const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag"); + const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); + const _easycom_hs_refresh2 = common_vendor.resolveComponent("hs-refresh"); + (_easycom_hs_cell2 + _easycom_hs_enum_tag2 + _easycom_uni_icons2 + _easycom_hs_refresh2)(); +} +const _easycom_hs_cell = () => "../../../components/hs-cell/hs-cell.js"; +const _easycom_hs_enum_tag = () => "../../../components/hs-enum-tag/hs-enum-tag.js"; +const _easycom_uni_icons = () => "../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; +const _easycom_hs_refresh = () => "../../../components/hs-refresh/hs-refresh.js"; +if (!Math) { + (_easycom_hs_cell + _easycom_hs_enum_tag + _easycom_uni_icons + _easycom_hs_refresh)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + common_vendor.onLoad((e) => { + var _a; + (_a = BILL_collection_record_show_method.method) == null ? void 0 : _a.getShow(e == null ? void 0 : e.id); + }); + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y; + return { + a: common_vendor.p({ + title: "催缴类型", + borderTop: true, + value: (_c = (_b = (_a = common_vendor.unref(BILL_collection_record_show_model.useModel)) == null ? void 0 : _a.showData) == null ? void 0 : _b.value) == null ? void 0 : _c.task_name + }), + b: common_vendor.p({ + value: (_f = (_e = (_d = common_vendor.unref(BILL_collection_record_show_model.useModel)) == null ? void 0 : _d.showData) == null ? void 0 : _e.value) == null ? void 0 : _f.status, + Enums: common_vendor.unref(gen_Enums.HouseCollectionTasksStatusEnum) + }), + c: common_vendor.n(`status_tag_${(_i = (_h = (_g = common_vendor.unref(BILL_collection_record_show_model.useModel)) == null ? void 0 : _g.showData) == null ? void 0 : _h.value) == null ? void 0 : _i.status}`), + d: common_vendor.p({ + title: "状态", + borderTop: true + }), + e: common_vendor.p({ + title: "发起人", + borderTop: true, + value: (_m = (_l = (_k = (_j = common_vendor.unref(BILL_collection_record_show_model.useModel)) == null ? void 0 : _j.showData) == null ? void 0 : _k.value) == null ? void 0 : _l.company_employee) == null ? void 0 : _m.name + }), + f: common_vendor.t((_q = common_vendor.unref(BILL_collection_record_show_method.method)) == null ? void 0 : _q.getShowChannel((_p = (_o = (_n = common_vendor.unref(BILL_collection_record_show_model.useModel)) == null ? void 0 : _n.showData) == null ? void 0 : _o.value) == null ? void 0 : _p.channel)), + g: common_vendor.p({ + title: "通知方式", + borderTop: true + }), + h: common_vendor.p({ + title: "创建时间", + borderTop: true, + value: (_t = (_s = (_r = common_vendor.unref(BILL_collection_record_show_model.useModel)) == null ? void 0 : _r.showData) == null ? void 0 : _s.value) == null ? void 0 : _t.created_at + }), + i: common_vendor.f((_w = (_v = (_u = common_vendor.unref(BILL_collection_record_show_model.useModel)) == null ? void 0 : _u.showData) == null ? void 0 : _v.value) == null ? void 0 : _w.channel, (i, index, i0) => { + return { + a: "0647cc96-6-" + i0, + b: common_vendor.p({ + value: i, + Enums: common_vendor.unref(gen_Enums.HouseCollectionTasksChannelEnum) + }), + c: `h_td_${index}` + }; + }), + j: common_vendor.f((_y = (_x = common_vendor.unref(BILL_collection_record_show_model.useModel)) == null ? void 0 : _x.showDataTable) == null ? void 0 : _y.value, (i, index, i0) => { + return { + a: common_vendor.t(i == null ? void 0 : i.full_name), + b: common_vendor.f(i == null ? void 0 : i.notify_info, (k, idx, i1) => { + return common_vendor.e({ + a: (k == null ? void 0 : k.status) === "Notified" + }, (k == null ? void 0 : k.status) === "Notified" ? { + b: "0647cc96-7-" + i0 + "-" + i1, + c: common_vendor.p({ + type: "checkbox", + color: "#67C23A", + size: "20" + }) + } : (k == null ? void 0 : k.status) === "Failed" ? { + e: "0647cc96-8-" + i0 + "-" + i1, + f: common_vendor.p({ + type: "close", + color: "#F89898", + size: "20" + }) + } : { + g: "0647cc96-9-" + i0 + "-" + i1, + h: common_vendor.p({ + type: "spinner-cycle", + color: "#999", + size: "20" + }) + }, { + d: (k == null ? void 0 : k.status) === "Failed", + i: `td_${idx}` + }); + }), + c: `tr_${index}` + }; + }), + k: common_vendor.o(($event) => { + var _a2, _b2, _c2; + return common_vendor.unref(BILL_collection_record_show_method.method).getShow((_c2 = (_b2 = (_a2 = common_vendor.unref(BILL_collection_record_show_model.useModel)) == null ? void 0 : _a2.showData) == null ? void 0 : _b2.value) == null ? void 0 : _c2.id); + }) + }; + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/BILL/collection_record/show/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/BILL/collection_record/show/index.json b/dist/dev/mp-weixin/BILL/collection_record/show/index.json new file mode 100644 index 0000000..afd0096 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/collection_record/show/index.json @@ -0,0 +1,9 @@ +{ + "navigationBarTitleText": "催缴详情", + "usingComponents": { + "hs-cell": "../../../components/hs-cell/hs-cell", + "hs-enum-tag": "../../../components/hs-enum-tag/hs-enum-tag", + "uni-icons": "../../../uni_modules/uni-icons/components/uni-icons/uni-icons", + "hs-refresh": "../../../components/hs-refresh/hs-refresh" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/collection_record/show/index.wxml b/dist/dev/mp-weixin/BILL/collection_record/show/index.wxml new file mode 100644 index 0000000..ac1f0ae --- /dev/null +++ b/dist/dev/mp-weixin/BILL/collection_record/show/index.wxml @@ -0,0 +1 @@ +{{f}} 催缴房屋 房屋名称 {{i.a}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/collection_record/show/index.wxss b/dist/dev/mp-weixin/BILL/collection_record/show/index.wxss new file mode 100644 index 0000000..34406a0 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/collection_record/show/index.wxss @@ -0,0 +1,67 @@ +page { + background-color: #f8f8f8; +} +.collection_record_show { + padding-bottom: 150rpx; +} +.show_card { + background-color: #fff; + margin-bottom: 30rpx; + padding: 0 30rpx; +} +.show_card .head_title { + padding: 30rpx 0; + color: #333; + font-size: 28rpx; +} +.card_table { + padding-bottom: 30rpx; +} +.status_tag_Processing { + color: #0082fa; +} +.status_tag_Completed { + color: #67c23a; +} +.record_table { + background-color: #f9fafb; + border-radius: 10rpx; +} +.record_table .table_thead { + display: flex; + align-items: center; + justify-content: space-between; + padding: 25rpx 30rpx; + color: #333; + font-size: 28rpx; +} +.record_table .table_thead .td { + width: 120rpx; + text-align: center; +} +.record_table .table_thead .td:first-child { + flex: 1; + text-align: left; +} +.record_table .table_tbody { + border-top: 1rpx solid #eee; +} +.record_table .table_tbody .table_tr { + display: flex; + align-items: center; + justify-content: space-between; + padding: 25rpx 30rpx; + color: #333; + font-size: 26rpx; +} +.record_table .table_tbody .table_tr .td { + width: 120rpx; + text-align: center; +} +.record_table .table_tbody .table_tr .td:first-child { + flex: 1; + text-align: left; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/collection_record/show/method.js b/dist/dev/mp-weixin/BILL/collection_record/show/method.js new file mode 100644 index 0000000..37cc9de --- /dev/null +++ b/dist/dev/mp-weixin/BILL/collection_record/show/method.js @@ -0,0 +1,57 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const common_libraries_apiLoading = require("../../../common/libraries/apiLoading.js"); +const gen_Apis = require("../../../gen/Apis.js"); +const BILL_collection_record_show_model = require("./model.js"); +const gen_Enums = require("../../../gen/Enums.js"); +const getList = () => { + var _a, _b; + gen_Apis.Apis.Collection.HouseCollectionTasks.List((_b = (_a = BILL_collection_record_show_model.useModel) == null ? void 0 : _a.formData) == null ? void 0 : _b.value).then((res) => { + BILL_collection_record_show_model.useModel.dataList.value = [...BILL_collection_record_show_model.useModel.dataList.value, ...res == null ? void 0 : res.data]; + BILL_collection_record_show_model.useModel.meta.value = res == null ? void 0 : res.meta; + console.log("登录", res == null ? void 0 : res.data); + }); +}; +const getTaskRecords = (id) => { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Collection.HouseCollectionRecords.GetTaskRecords, { + collection_tasks_id: id + }).then((res) => { + BILL_collection_record_show_model.useModel.showDataTable.value = res == null ? void 0 : res.data; + }); +}; +const method = { + getList, + changeTab(idx, e) { + BILL_collection_record_show_model.useModel.tabCurrent.value = idx; + BILL_collection_record_show_model.useModel.formData.value.status = e == null ? void 0 : e.value; + BILL_collection_record_show_model.useModel.formData.value.page = 1; + BILL_collection_record_show_model.useModel.dataList.value = []; + getList(); + }, + load(e) { + BILL_collection_record_show_model.useModel.formData.value.page = e == null ? void 0 : e.page; + getList(); + }, + goDetail(e) { + common_vendor.index.navigateTo({ + url: `/BILL/collection_record/show?id=${e == null ? void 0 : e.id}` + }); + }, + getShow(id) { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Collection.HouseCollectionTasks.Show, { id }).then((res) => { + var _a; + BILL_collection_record_show_model.useModel.showData.value = res == null ? void 0 : res.data; + getTaskRecords((_a = res == null ? void 0 : res.data) == null ? void 0 : _a.id); + }); + }, + getTaskRecords, + getShowChannel(list) { + let enums = ""; + list == null ? void 0 : list.map((key) => { + var _a; + enums += key ? `${(_a = gen_Enums.HouseCollectionTasksChannelEnum[key]) == null ? void 0 : _a.text} ` : ""; + }); + return enums; + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/BILL/collection_record/show/model.js b/dist/dev/mp-weixin/BILL/collection_record/show/model.js new file mode 100644 index 0000000..5a2ed4b --- /dev/null +++ b/dist/dev/mp-weixin/BILL/collection_record/show/model.js @@ -0,0 +1,12 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +require("../../../common/libraries/day.js"); +const useModel = { + formData: common_vendor.ref({ page: 1, status: "" }), + dataList: common_vendor.ref([]), + meta: common_vendor.ref({}), + tabCurrent: common_vendor.ref(0), + showData: common_vendor.ref({}), + showDataTable: common_vendor.ref([]) +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/BILL/information_template/components/PopupSubmitTemplate.js b/dist/dev/mp-weixin/BILL/information_template/components/PopupSubmitTemplate.js new file mode 100644 index 0000000..c4f7c97 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/information_template/components/PopupSubmitTemplate.js @@ -0,0 +1,98 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const common_libraries_apiLoading = require("../../../common/libraries/apiLoading.js"); +const gen_Apis = require("../../../gen/Apis.js"); +require("../../../common/libraries/request.js"); +require("../../../common/store/useWeAppAuthStore.js"); +require("../../../common/store/useWorkStore.js"); +if (!Array) { + const _easycom_hs_button2 = common_vendor.resolveComponent("hs-button"); + const _easycom_hs_popup2 = common_vendor.resolveComponent("hs-popup"); + const _easycom_hs_footer2 = common_vendor.resolveComponent("hs-footer"); + (_easycom_hs_button2 + _easycom_hs_popup2 + _easycom_hs_footer2)(); +} +const _easycom_hs_button = () => "../../../components/hs-button/hs-button.js"; +const _easycom_hs_popup = () => "../../../components/hs-popup/hs-popup.js"; +const _easycom_hs_footer = () => "../../../components/hs-footer/hs-footer.js"; +if (!Math) { + (_easycom_hs_button + _easycom_hs_popup + _easycom_hs_footer)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "PopupSubmitTemplate", + props: ["formData", "type"], + setup(__props) { + const props = __props; + const show = common_vendor.ref(false); + const show_submit = common_vendor.ref(false); + const handleSubmitClick = () => { + var _a; + console.log(props == null ? void 0 : props.type, "type"); + if (!((_a = props == null ? void 0 : props.type) == null ? void 0 : _a.length)) { + common_vendor.index.showToast({ + title: "请选择通知方式!", + icon: "none" + }); + return; + } + show.value = !show.value; + }; + const handleBack = () => { + common_vendor.index.navigateBack({ delta: 1 }); + }; + const handleSubmitHouseCollectionTasks = () => { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Collection.HouseCollectionTasks.Store, { + ...props.formData, + channel: props.type + }).then((res) => { + show.value = false; + show_submit.value = true; + }); + }; + const handleQuery = () => { + common_vendor.index.redirectTo({ + url: "/BILL/collection_record/index/index" + }); + }; + return (_ctx, _cache) => { + var _a, _b; + return { + a: common_vendor.t((_b = (_a = props == null ? void 0 : props.formData) == null ? void 0 : _a.houses) == null ? void 0 : _b.length), + b: common_vendor.o(handleSubmitHouseCollectionTasks), + c: common_vendor.p({ + label: "确认提交", + size: "md", + type: "primary" + }), + d: common_vendor.o(handleSubmitClick), + e: common_vendor.p({ + show: show.value, + mode: "center", + round: 15, + closeable: true + }), + f: common_vendor.o(handleSubmitClick), + g: common_vendor.p({ + btnParimaryName: "提交" + }), + h: common_vendor.o(handleBack), + i: common_vendor.p({ + label: "返回欠费列表", + size: "md", + type: "default" + }), + j: common_vendor.o(handleQuery), + k: common_vendor.p({ + label: "查看任务详情", + size: "md" + }), + l: common_vendor.p({ + show: show_submit.value, + mode: "center", + round: 15 + }) + }; + }; + } +}); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-ddb79a06"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/BILL/information_template/components/PopupSubmitTemplate.vue"]]); +wx.createComponent(Component); diff --git a/dist/dev/mp-weixin/BILL/information_template/components/PopupSubmitTemplate.json b/dist/dev/mp-weixin/BILL/information_template/components/PopupSubmitTemplate.json new file mode 100644 index 0000000..5a28df5 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/information_template/components/PopupSubmitTemplate.json @@ -0,0 +1,8 @@ +{ + "component": true, + "usingComponents": { + "hs-button": "../../../components/hs-button/hs-button", + "hs-popup": "../../../components/hs-popup/hs-popup", + "hs-footer": "../../../components/hs-footer/hs-footer" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/information_template/components/PopupSubmitTemplate.wxml b/dist/dev/mp-weixin/BILL/information_template/components/PopupSubmitTemplate.wxml new file mode 100644 index 0000000..e285a0f --- /dev/null +++ b/dist/dev/mp-weixin/BILL/information_template/components/PopupSubmitTemplate.wxml @@ -0,0 +1 @@ + 确认提交 发送摘要 发送房屋数量 {{a}}户 公众号/小程序通知内容预览 【XX物业】您名下房产存在待缴账单,可点击详情缴纳。如已缴费请忽略。 企微批量发送内容预览 您的物业费账单已生成,请点击此处进行缴费! 提交成功 提交成功,任务正在处理中! 您可随时前往【首页 > 催缴记录】查看任务。 \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/information_template/components/PopupSubmitTemplate.wxss b/dist/dev/mp-weixin/BILL/information_template/components/PopupSubmitTemplate.wxss new file mode 100644 index 0000000..04b840f --- /dev/null +++ b/dist/dev/mp-weixin/BILL/information_template/components/PopupSubmitTemplate.wxss @@ -0,0 +1,73 @@ +.popup_content.data-v-ddb79a06 { + background-color: #fff; + width: 94vw; + border-radius: 15px; + overflow: hidden; + padding-bottom: 30rpx; +} +.popup_content .popup_title.data-v-ddb79a06 { + padding: 30rpx 0; + text-align: center; + font-size: 38rpx; +} +.popup_content .popup_subtitle.data-v-ddb79a06 { + color: #333; + padding: 40rpx 30rpx 20rpx 30rpx; + font-size: 30rpx; + font-weight: 550; +} +.popup_content .popup_card.data-v-ddb79a06 { + background-color: #f9fafb; + padding: 30rpx 30rpx 10rpx 30rpx; + margin: 0 30rpx; + border-radius: 10rpx; +} +.popup_content .popup_card .popup_card_cell.data-v-ddb79a06 { + display: flex; + align-items: center; + justify-content: space-between; + padding-bottom: 20rpx; + color: #333; + font-size: 30rpx; +} +.popup_content .popup_card_primary.data-v-ddb79a06 { + color: #333; + font-size: 28rpx; + padding-bottom: 30rpx; +} +.popup_content .popup_icon.data-v-ddb79a06 { + width: 100%; + text-align: center; + padding: 30rpx 0; +} +.popup_content .popup_icon image.data-v-ddb79a06 { + width: 284rpx; + height: 200rpx; +} +.popup_content .popup_submit_name.data-v-ddb79a06 { + text-align: center; + color: #3d3d3d; + font-size: 32rpx; +} +.popup_content .popup_submit_path.data-v-ddb79a06 { + text-align: center; + color: #666; + font-size: 28rpx; + padding: 10rpx 0 30rpx 0; +} +.popup_footer_value.data-v-ddb79a06 { + padding: 40rpx 30rpx 10rpx 30rpx; +} +.popup_footer.data-v-ddb79a06 { + padding: 30rpx 30rpx 0 30rpx; + display: flex; + align-items: center; + justify-content: space-between; + padding: 30rpx 30rpx 20rpx 30rpx; +} +.popup_footer .btn.data-v-ddb79a06 { + width: 48%; +} +.enterprise_wechat_content_popup.data-v-ddb79a06 { + margin: 0 30rpx; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/information_template/index.js b/dist/dev/mp-weixin/BILL/information_template/index.js new file mode 100644 index 0000000..13b6685 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/information_template/index.js @@ -0,0 +1,83 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const BILL_information_template_method = require("./method.js"); +const BILL_information_template_model = require("./model.js"); +require("../../common/libraries/day.js"); +if (!Array) { + const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon"); + const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); + (_easycom_up_icon2 + _easycom_uni_icons2)(); +} +const _easycom_up_icon = () => "../../node-modules/uview-plus/components/u-icon/u-icon.js"; +const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; +if (!Math) { + (_easycom_up_icon + _easycom_uni_icons + MyPopupSubmitTemplate)(); +} +const MyPopupSubmitTemplate = () => "./components/PopupSubmitTemplate.js"; +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + common_vendor.onShow(() => { + var _a; + (_a = BILL_information_template_method.method) == null ? void 0 : _a.handleInit(); + }); + common_vendor.onLoad((e) => { + BILL_information_template_model.useModel.formData.value = { + houses: (e == null ? void 0 : e.data) ? JSON.parse(e == null ? void 0 : e.data) : [] + }; + }); + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l; + return common_vendor.e({ + a: common_vendor.p({ + name: "error-circle", + size: "19", + color: "#2d75ff" + }), + b: common_vendor.f((_b = (_a = common_vendor.unref(BILL_information_template_model.useModel)) == null ? void 0 : _a.selectType) == null ? void 0 : _b.value, (i, index, i0) => { + return common_vendor.e({ + a: common_vendor.t(i == null ? void 0 : i.label), + b: i == null ? void 0 : i.tab + }, (i == null ? void 0 : i.tab) ? { + c: common_vendor.t(i == null ? void 0 : i.tab) + } : {}, { + d: i == null ? void 0 : i.is_select + }, (i == null ? void 0 : i.is_select) ? { + e: "57161569-1-" + i0, + f: common_vendor.p({ + type: "checkbox-filled", + size: "20", + color: "#0082FA" + }) + } : { + g: "57161569-2-" + i0, + h: common_vendor.p({ + type: "circle", + size: "20", + color: "#999" + }) + }, { + i: common_vendor.t(i == null ? void 0 : i.des), + j: i == null ? void 0 : i.subDes + }, (i == null ? void 0 : i.subDes) ? { + k: common_vendor.t(i == null ? void 0 : i.subDes) + } : {}, { + l: `items_${index}`, + m: common_vendor.o(($event) => { + var _a2; + return (_a2 = common_vendor.unref(BILL_information_template_method.method)) == null ? void 0 : _a2.handleSelect(index, i); + }, `items_${index}`) + }); + }), + c: (_e = (_d = (_c = common_vendor.unref(BILL_information_template_model.useModel)) == null ? void 0 : _c.selectEdType) == null ? void 0 : _d.value) == null ? void 0 : _e.length + }, ((_h = (_g = (_f = common_vendor.unref(BILL_information_template_model.useModel)) == null ? void 0 : _f.selectEdType) == null ? void 0 : _g.value) == null ? void 0 : _h.length) ? {} : {}, { + d: common_vendor.p({ + formData: (_j = (_i = common_vendor.unref(BILL_information_template_model.useModel)) == null ? void 0 : _i.formData) == null ? void 0 : _j.value, + type: (_l = (_k = common_vendor.unref(BILL_information_template_model.useModel)) == null ? void 0 : _k.selectEdType) == null ? void 0 : _l.value + }) + }); + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/BILL/information_template/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/BILL/information_template/index.json b/dist/dev/mp-weixin/BILL/information_template/index.json new file mode 100644 index 0000000..7a014e9 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/information_template/index.json @@ -0,0 +1,8 @@ +{ + "navigationBarTitleText": "选择信息模版", + "usingComponents": { + "up-icon": "../../node-modules/uview-plus/components/u-icon/u-icon", + "uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons", + "my-popup-submit-template": "./components/PopupSubmitTemplate" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/information_template/index.wxml b/dist/dev/mp-weixin/BILL/information_template/index.wxml new file mode 100644 index 0000000..afaa2ec --- /dev/null +++ b/dist/dev/mp-weixin/BILL/information_template/index.wxml @@ -0,0 +1 @@ + 通知对象默认为常用联系人,如无则通知产权人 请选择通知方式 {{i.a}} {{i.c}}{{i.i}} {{i.k}} 公众号/小程序通知内容预览 【XX物业】您名下房产存在待缴账单,可点击详情缴纳。如已缴费请忽略。 企微批量发送内容预览 您的物业费账单已生成,请点击此处进行缴费! \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/information_template/index.wxss b/dist/dev/mp-weixin/BILL/information_template/index.wxss new file mode 100644 index 0000000..79b9996 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/information_template/index.wxss @@ -0,0 +1,116 @@ +page { + background-color: #f8f8f8; +} +.information_template { + padding-bottom: calc(150rpx + constant(safe-area-inset-bottom)); + padding-bottom: calc(150rpx + env(safe-area-inset-bottom)); +} +.information_head { + background-color: #f0f6fe; + padding: 30rpx; + margin: 30rpx; + display: flex; + align-items: center; + color: #0082fa; + font-size: 28rpx; + border-radius: 10rpx; +} +.information_head text { + padding-left: 10rpx; +} +.information_template_card { + background-color: #fff; + border-radius: 10rpx; + margin: 0 30rpx; + padding: 0 30rpx 10rpx 30rpx; +} +.information_template_card .card_head_info { + color: #3d3d3d; + padding: 30rpx 0; + display: flex; + align-items: center; +} +.information_template_card .card_head_info .border_left { + height: 35rpx; + width: 8rpx; + background-color: #0082fa; + margin-right: 10rpx; +} +.information_template_card .card_select_cell { + border: 1rpx solid #eee; + border-radius: 10rpx; + padding: 30rpx; + margin-bottom: 30rpx; +} +.information_template_card .card_select_cell .cell_title { + color: #333; + font-size: 30rpx; + display: flex; + align-items: center; + justify-content: space-between; + font-weight: 550; +} +.information_template_card .card_select_cell .cell_title .sending_message { + display: flex; + align-items: center; +} +.information_template_card .card_select_cell .cell_title .sending_message text { + background-color: #eee; + color: #df3600; + font-size: 24rpx; + border-radius: 5rpx; + margin-left: 20rpx; + padding: 5rpx 10rpx; +} +.information_template_card .cell_des { + color: #333; + font-size: 24rpx; + padding-top: 10rpx; +} +.information_template_card .cell_des text { + color: #999; +} +.template_info { + border-top: 1rpx solid #eee; +} +.template_info .template_info_item { + margin: 30rpx 0; +} +.template_info .template_info_item .label { + color: #333; + font-size: 28rpx; + font-weight: 500; + padding-bottom: 20rpx; +} +.template_info .template_info_item .template_info_text { + background-color: #f9fafb; + margin: 0 0 20rpx 0; + padding: 20rpx 30rpx; + color: #333; + border-radius: 10rpx; + font-size: 24rpx; +} +.enterprise_wechat_content { + background-color: #f9fafb; + padding: 20rpx; + border-radius: 10rpx; +} +.enterprise_wechat { + display: flex; + align-items: center; + background-color: #fff; + padding: 20rpx; + border-radius: 10rpx; +} +.enterprise_wechat .cover_img, .enterprise_wechat image { + width: 100rpx; + height: 100rpx; + overflow: hidden; +} +.enterprise_wechat .label { + font-size: 28rpx; + padding-left: 30rpx; + line-height: 40rpx; + flex: 1; + font-weight: 400; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/information_template/method.js b/dist/dev/mp-weixin/BILL/information_template/method.js new file mode 100644 index 0000000..3dfc434 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/information_template/method.js @@ -0,0 +1,43 @@ +"use strict"; +const BILL_information_template_model = require("./model.js"); +const method = { + handleSelect(idx, e) { + var _a, _b, _c, _d; + let arr = []; + let is = (_c = (_b = (_a = BILL_information_template_model.useModel) == null ? void 0 : _a.selectType) == null ? void 0 : _b.value[idx]) == null ? void 0 : _c.is_select; + BILL_information_template_model.useModel.selectType.value[idx].is_select = !is; + (_d = BILL_information_template_model.useModel.selectType.value) == null ? void 0 : _d.map((res) => { + if (res == null ? void 0 : res.is_select) { + arr == null ? void 0 : arr.push(e == null ? void 0 : e.type); + } + }); + BILL_information_template_model.useModel.selectEdType.value = arr; + console.log(idx, "e"); + }, + handleInit() { + BILL_information_template_model.useModel.selectEdType.value = ["SMS", "MiniProgram", "OfficialAccount"]; + BILL_information_template_model.useModel.selectType.value = [ + { + label: "小程序催缴通知", + des: "覆盖范围:仅限完成小程序订阅授权且保持通知开启状态的客户。", + is_select: true, + type: "MiniProgram" + }, + { + label: "公众号催缴通知", + des: "覆盖范围:限定已关注物业服务公众号的客户。", + is_select: true, + type: "OfficialAccount" + }, + { + label: "发送短信通知", + des: "该方式实现近100%客户触达", + subDes: "(注:需号码状态正常且未设置短信拦截)", + tab: "100%触达", + is_select: true, + type: "SMS" + } + ]; + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/BILL/information_template/model.js b/dist/dev/mp-weixin/BILL/information_template/model.js new file mode 100644 index 0000000..f1f7dfe --- /dev/null +++ b/dist/dev/mp-weixin/BILL/information_template/model.js @@ -0,0 +1,10 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +require("../../common/libraries/day.js"); +const useModel = { + formData: common_vendor.ref({}), + tasksChannelEnum: common_vendor.ref([]), + selectEdType: common_vendor.ref([]), + selectType: common_vendor.ref([]) +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/add/index.js b/dist/dev/mp-weixin/BILL/outstanding_fee/add/index.js new file mode 100644 index 0000000..46afd9e --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/add/index.js @@ -0,0 +1,95 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const common_libraries_naviHelper = require("../../../common/libraries/naviHelper.js"); +const BILL_outstanding_fee_add_model = require("./model.js"); +const common_libraries_apiLoading = require("../../../common/libraries/apiLoading.js"); +const gen_Apis = require("../../../gen/Apis.js"); +require("../../../common/libraries/day.js"); +require("../../../common/libraries/request.js"); +require("../../../common/store/useWeAppAuthStore.js"); +require("../../../common/store/useWorkStore.js"); +if (!Array) { + const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon"); + const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); + const _easycom_hs_footer2 = common_vendor.resolveComponent("hs-footer"); + (_easycom_up_icon2 + _easycom_uni_icons2 + _easycom_hs_footer2)(); +} +const _easycom_up_icon = () => "../../../node-modules/uview-plus/components/u-icon/u-icon.js"; +const _easycom_uni_icons = () => "../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; +const _easycom_hs_footer = () => "../../../components/hs-footer/hs-footer.js"; +if (!Math) { + (MyCollectionMethods + _easycom_up_icon + _easycom_uni_icons + MyCollectionResult + _easycom_hs_footer)(); +} +const MyCollectionMethods = () => "../components/CollectionMethods.js"; +const MyCollectionResult = () => "../components/CollectionResult.js"; +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + const onShowToast = (label) => { + common_vendor.index.showToast({ + title: label || "", + icon: "none" + }); + return; + }; + const handleChange = (e) => { + var _a; + BILL_outstanding_fee_add_model.useModel.formData.value.notified_time = (_a = e == null ? void 0 : e.detail) == null ? void 0 : _a.value; + console.log(e); + }; + const handleSubmit = () => { + let data = BILL_outstanding_fee_add_model.useModel.formData.value; + if (!(data == null ? void 0 : data.channel)) { + return onShowToast("请选择催缴方式!"); + } + if (!(data == null ? void 0 : data.notified_time)) { + return onShowToast("请选择催缴时间!"); + } + if (!(data == null ? void 0 : data.collection_result)) { + return onShowToast("请选择催缴结果!"); + } + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Collection.HouseCollectionRecords.Store, BILL_outstanding_fee_add_model.useModel.formData.value).then((res) => { + common_libraries_naviHelper.showToastBack("提交成功", 1, true); + }); + console.log(data); + }; + common_vendor.onLoad((e) => { + BILL_outstanding_fee_add_model.useModel.formData.value = { total_unpaid_amount: e == null ? void 0 : e.amount, asset_houses_id: e == null ? void 0 : e.id }; + }); + return (_ctx, _cache) => { + return common_vendor.e({ + a: common_vendor.o(($event) => common_vendor.unref(BILL_outstanding_fee_add_model.useModel).formData.value.channel = $event), + b: common_vendor.p({ + valueModel: common_vendor.unref(BILL_outstanding_fee_add_model.useModel).formData.value.channel + }), + c: common_vendor.p({ + name: "calendar", + color: "#C4C4C4", + size: "26" + }), + d: common_vendor.unref(BILL_outstanding_fee_add_model.useModel).formData.value.notified_time + }, common_vendor.unref(BILL_outstanding_fee_add_model.useModel).formData.value.notified_time ? { + e: common_vendor.t(common_vendor.unref(BILL_outstanding_fee_add_model.useModel).formData.value.notified_time || "请选择通知时间") + } : {}, { + f: common_vendor.p({ + type: "right", + size: "15", + color: "#333" + }), + g: common_vendor.o(handleChange), + h: common_vendor.o(($event) => common_vendor.unref(BILL_outstanding_fee_add_model.useModel).formData.value.collection_result = $event), + i: common_vendor.p({ + valueModel: common_vendor.unref(BILL_outstanding_fee_add_model.useModel).formData.value.collection_result + }), + j: common_vendor.unref(BILL_outstanding_fee_add_model.useModel).formData.value.collection_content, + k: common_vendor.o(($event) => common_vendor.unref(BILL_outstanding_fee_add_model.useModel).formData.value.collection_content = $event.detail.value), + l: common_vendor.o(handleSubmit), + m: common_vendor.p({ + btnParimaryName: "提交" + }) + }); + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/BILL/outstanding_fee/add/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/add/index.json b/dist/dev/mp-weixin/BILL/outstanding_fee/add/index.json new file mode 100644 index 0000000..2d3d1c7 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/add/index.json @@ -0,0 +1,10 @@ +{ + "navigationBarTitleText": "新增催缴记录", + "usingComponents": { + "up-icon": "../../../node-modules/uview-plus/components/u-icon/u-icon", + "uni-icons": "../../../uni_modules/uni-icons/components/uni-icons/uni-icons", + "hs-footer": "../../../components/hs-footer/hs-footer", + "my-collection-methods": "../components/CollectionMethods", + "my-collection-result": "../components/CollectionResult" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/add/index.wxml b/dist/dev/mp-weixin/BILL/outstanding_fee/add/index.wxml new file mode 100644 index 0000000..d85dbeb --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/add/index.wxml @@ -0,0 +1 @@ + 催缴方式 * 催缴时间 * {{e}} 请选择通知时间 催缴结果 * 催缴内容 \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/add/index.wxss b/dist/dev/mp-weixin/BILL/outstanding_fee/add/index.wxss new file mode 100644 index 0000000..a8e8e08 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/add/index.wxss @@ -0,0 +1,45 @@ +page { + background-color: #f8f8f8; +} +.outstanding_fee_add { + padding-bottom: calc(150rpx + constant(safe-area-inset-bottom)); + padding-bottom: calc(150rpx + env(safe-area-inset-bottom)); +} +.page_title { + padding: 30rpx 30rpx 0 30rpx; + color: #333; + font-size: 28rpx; +} +.page_title text { + color: #f00; +} +.select_day { + margin: 30rpx 30rpx 0 30rpx; + padding: 25rpx 30rpx; + background-color: #fff; + display: flex; + align-items: center; + border-radius: 15rpx; + font-size: 28rpx; + color: #333; + justify-content: space-between; +} +.select_day .select_day_content { + display: flex; + align-items: center; +} +.select_day text { + padding-left: 6rpx; +} +.select_day .placeholder { + color: #999; +} +.add_textarea { + margin: 30rpx 30rpx 0 30rpx; + background-color: #fff; + padding: 25rpx; + border-radius: 15rpx; +} +.add_textarea textarea { + height: 200rpx; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/add/model.js b/dist/dev/mp-weixin/BILL/outstanding_fee/add/model.js new file mode 100644 index 0000000..5a39f58 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/add/model.js @@ -0,0 +1,7 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +require("../../../common/libraries/day.js"); +const useModel = { + formData: common_vendor.ref({}) +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/components/CollectionMethods.js b/dist/dev/mp-weixin/BILL/outstanding_fee/components/CollectionMethods.js new file mode 100644 index 0000000..a1d3067 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/components/CollectionMethods.js @@ -0,0 +1,91 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +if (!Array) { + const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon"); + const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); + (_easycom_up_icon2 + _easycom_uni_icons2)(); +} +const _easycom_up_icon = () => "../../../node-modules/uview-plus/components/u-icon/u-icon.js"; +const _easycom_uni_icons = () => "../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; +if (!Math) { + (_easycom_up_icon + _easycom_uni_icons)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "CollectionMethods", + props: ["valueModel"], + emits: ["update:valueModel"], + setup(__props, { emit }) { + const props = __props; + const valueModel = common_vendor.ref(""); + const handleSelect = (e) => { + valueModel.value = e == null ? void 0 : e.type; + emit("update:valueModel", e == null ? void 0 : e.type); + }; + const list = [ + { + label: "电话催缴", + des: "直接电话联系", + type: "PhoneCall", + icon: "phone", + color: "#00B75F" + }, + { + label: "上门催缴", + des: "实地走访", + type: "Visit", + icon: "home", + color: "#DF3600" + }, + { + label: "微信联系", + des: "通过微信沟通", + type: "WeChat", + icon: "weixin-fill", + color: "#00B75F" + }, + { + label: "书面通知", + des: "张贴催缴通知", + type: "WrittenNotice", + icon: "edit-pen", + color: "#0082FA" + } + ]; + return (_ctx, _cache) => { + return { + a: common_vendor.f(list, (i, index, i0) => { + return common_vendor.e({ + a: "b14fc94b-0-" + i0, + b: common_vendor.p({ + name: i == null ? void 0 : i.icon, + color: i == null ? void 0 : i.color, + size: "26" + }), + c: common_vendor.t(i == null ? void 0 : i.label), + d: (props == null ? void 0 : props.valueModel) === (i == null ? void 0 : i.type) || valueModel.value === (i == null ? void 0 : i.type) + }, (props == null ? void 0 : props.valueModel) === (i == null ? void 0 : i.type) || valueModel.value === (i == null ? void 0 : i.type) ? { + e: "b14fc94b-1-" + i0, + f: common_vendor.p({ + type: "circle-filled", + size: "18", + color: "#0082FA" + }) + } : { + g: "b14fc94b-2-" + i0, + h: common_vendor.p({ + type: "circle", + size: "18", + color: "#999" + }) + }, { + i: common_vendor.t(i == null ? void 0 : i.des), + j: `item_${index}`, + k: common_vendor.o(($event) => handleSelect(i), `item_${index}`) + }); + }) + }; + }; + } +}); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-b14fc94b"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/BILL/outstanding_fee/components/CollectionMethods.vue"]]); +wx.createComponent(Component); diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/components/CollectionMethods.json b/dist/dev/mp-weixin/BILL/outstanding_fee/components/CollectionMethods.json new file mode 100644 index 0000000..37c03cb --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/components/CollectionMethods.json @@ -0,0 +1,7 @@ +{ + "component": true, + "usingComponents": { + "up-icon": "../../../node-modules/uview-plus/components/u-icon/u-icon", + "uni-icons": "../../../uni_modules/uni-icons/components/uni-icons/uni-icons" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/components/CollectionMethods.wxml b/dist/dev/mp-weixin/BILL/outstanding_fee/components/CollectionMethods.wxml new file mode 100644 index 0000000..e34e3fd --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/components/CollectionMethods.wxml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/components/CollectionMethods.wxss b/dist/dev/mp-weixin/BILL/outstanding_fee/components/CollectionMethods.wxss new file mode 100644 index 0000000..e967d7a --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/components/CollectionMethods.wxss @@ -0,0 +1,32 @@ +.methods_content.data-v-b14fc94b { + display: flex; + align-items: center; + flex-wrap: wrap; + justify-content: space-between; + margin: 0 30rpx; +} +.methods_content .items.data-v-b14fc94b { + background-color: #fff; + width: 43.5%; + padding: 20rpx 15rpx; + border-radius: 15rpx; + margin-top: 30rpx; + display: flex; + align-items: center; +} +.methods_content .items .items_content_info.data-v-b14fc94b { + flex: 1; + padding-left: 5rpx; +} +.methods_content .items .label.data-v-b14fc94b { + color: #333; + font-size: 28rpx; + display: flex; + align-items: center; + justify-content: space-between; +} +.methods_content .items .des.data-v-b14fc94b { + color: #999; + font-size: 24rpx; + padding-top: 10rpx; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/components/CollectionResult.js b/dist/dev/mp-weixin/BILL/outstanding_fee/components/CollectionResult.js new file mode 100644 index 0000000..baef7a2 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/components/CollectionResult.js @@ -0,0 +1,85 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +if (!Array) { + const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); + _easycom_uni_icons2(); +} +const _easycom_uni_icons = () => "../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; +if (!Math) { + _easycom_uni_icons(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "CollectionResult", + props: ["valueModel"], + emits: ["update:valueModel"], + setup(__props, { emit }) { + const props = __props; + const valueModel = common_vendor.ref(""); + const handleSelect = (e) => { + valueModel.value = e == null ? void 0 : e.type; + emit("update:valueModel", e == null ? void 0 : e.type); + }; + const list = [ + { + label: "承若缴费", + des: "住户承诺指定时间内缴费", + type: "PromiseToPay", + bgColor: "#E7FFD6", + color: "##00B75F" + }, + { + label: "拒绝缴费", + des: "住户明确拒绝缴费", + type: "RefuseToPay", + bgColor: "#FFE8E8", + color: "#DF3600" + }, + { + label: "未联系到", + des: "无法联系到住户", + type: "NotReached", + bgColor: "#E8E8E8", + color: "#666666" + }, + { + label: "需要跟进", + des: "需要后续继续跟进", + type: "NeedFollowUp", + bgColor: "#E8F2FF", + color: "#0082FA" + } + ]; + return (_ctx, _cache) => { + return { + a: common_vendor.f(list, (i, index, i0) => { + return common_vendor.e({ + a: common_vendor.t(i == null ? void 0 : i.label), + b: i == null ? void 0 : i.color, + c: i == null ? void 0 : i.bgColor, + d: (props == null ? void 0 : props.valueModel) === (i == null ? void 0 : i.type) || valueModel.value === (i == null ? void 0 : i.type) + }, (props == null ? void 0 : props.valueModel) === (i == null ? void 0 : i.type) || valueModel.value === (i == null ? void 0 : i.type) ? { + e: "62ac5915-0-" + i0, + f: common_vendor.p({ + type: "circle-filled", + size: "18", + color: "#0082FA" + }) + } : { + g: "62ac5915-1-" + i0, + h: common_vendor.p({ + type: "circle", + size: "18", + color: "#999" + }) + }, { + i: common_vendor.t(i == null ? void 0 : i.des), + j: `item_${index}`, + k: common_vendor.o(($event) => handleSelect(i), `item_${index}`) + }); + }) + }; + }; + } +}); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-62ac5915"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/BILL/outstanding_fee/components/CollectionResult.vue"]]); +wx.createComponent(Component); diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/components/CollectionResult.json b/dist/dev/mp-weixin/BILL/outstanding_fee/components/CollectionResult.json new file mode 100644 index 0000000..b513180 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/components/CollectionResult.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + "uni-icons": "../../../uni_modules/uni-icons/components/uni-icons/uni-icons" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/components/CollectionResult.wxml b/dist/dev/mp-weixin/BILL/outstanding_fee/components/CollectionResult.wxml new file mode 100644 index 0000000..616cd0f --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/components/CollectionResult.wxml @@ -0,0 +1 @@ +{{i.a}}{{i.i}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/components/CollectionResult.wxss b/dist/dev/mp-weixin/BILL/outstanding_fee/components/CollectionResult.wxss new file mode 100644 index 0000000..3b151bd --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/components/CollectionResult.wxss @@ -0,0 +1,31 @@ +.methods_content.data-v-62ac5915 { + display: flex; + align-items: center; + flex-wrap: wrap; + justify-content: space-between; + margin: 0 30rpx; +} +.methods_content .items.data-v-62ac5915 { + background-color: #fff; + width: 43.5%; + padding: 20rpx 15rpx; + border-radius: 15rpx; + margin-top: 30rpx; +} +.methods_content .items .label.data-v-62ac5915 { + color: #333; + font-size: 28rpx; + display: flex; + align-items: center; + justify-content: space-between; +} +.methods_content .items .label text.data-v-62ac5915 { + padding: 8rpx 20rpx; + border-radius: 100rpx; + font-size: 24rpx; +} +.methods_content .items .des.data-v-62ac5915 { + color: #999; + font-size: 24rpx; + padding-top: 10rpx; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/components/HeadSearchBtn.js b/dist/dev/mp-weixin/BILL/outstanding_fee/components/HeadSearchBtn.js new file mode 100644 index 0000000..fc7812d --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/components/HeadSearchBtn.js @@ -0,0 +1,45 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const BILL_outstanding_fee_index_model = require("../index/model.js"); +const BILL_outstanding_fee_index_method = require("../index/method.js"); +require("../../../common/libraries/day.js"); +require("../../../common/libraries/sendWxWork.js"); +require("../../../common/libraries/naviHelper.js"); +require("../../../common/libraries/apiLoading.js"); +require("../../../gen/Apis.js"); +require("../../../common/libraries/request.js"); +require("../../../common/store/useWeAppAuthStore.js"); +require("../../../common/store/useWorkStore.js"); +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "HeadSearchBtn", + setup(__props) { + const btn_list = [ + { label: "1天未催缴", value: "1" }, + { label: "3天未催缴", value: "3" }, + { label: "7天未催缴", value: "7" }, + { label: "15天未催缴", value: "15" } + ]; + const handleSelect = (e) => { + if (BILL_outstanding_fee_index_model.useModel.formData.value.uncollected_days === (e == null ? void 0 : e.value)) { + BILL_outstanding_fee_index_model.useModel.formData.value.uncollected_days = void 0; + } else { + BILL_outstanding_fee_index_model.useModel.formData.value.uncollected_days = e == null ? void 0 : e.value; + } + BILL_outstanding_fee_index_method.method.handleSearch(); + }; + return (_ctx, _cache) => { + return { + a: common_vendor.f(btn_list, (i, index, i0) => { + return { + a: common_vendor.t(i == null ? void 0 : i.label), + b: `item_${index}`, + c: common_vendor.n(`item_btn ${common_vendor.unref(BILL_outstanding_fee_index_model.useModel).formData.value.uncollected_days === (i == null ? void 0 : i.value) ? "active" : ""}`), + d: common_vendor.o(($event) => handleSelect(i)) + }; + }) + }; + }; + } +}); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-f677089c"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/BILL/outstanding_fee/components/HeadSearchBtn.vue"]]); +wx.createComponent(Component); diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/components/HeadSearchBtn.json b/dist/dev/mp-weixin/BILL/outstanding_fee/components/HeadSearchBtn.json new file mode 100644 index 0000000..e8cfaaf --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/components/HeadSearchBtn.json @@ -0,0 +1,4 @@ +{ + "component": true, + "usingComponents": {} +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/components/HeadSearchBtn.wxml b/dist/dev/mp-weixin/BILL/outstanding_fee/components/HeadSearchBtn.wxml new file mode 100644 index 0000000..2dc529e --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/components/HeadSearchBtn.wxml @@ -0,0 +1 @@ +{{i.a}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/components/HeadSearchBtn.wxss b/dist/dev/mp-weixin/BILL/outstanding_fee/components/HeadSearchBtn.wxss new file mode 100644 index 0000000..3c45990 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/components/HeadSearchBtn.wxss @@ -0,0 +1,17 @@ +.head_search_group_btn.data-v-f677089c { + display: flex; + align-items: center; + padding: 0 30rpx 20rpx 10rpx; +} +.head_search_group_btn .item_btn.data-v-f677089c { + color: #666; + border: 1px solid #999; + border-radius: 100rpx; + padding: 7rpx 15rpx; + font-size: 24rpx; + margin-left: 20rpx; +} +.head_search_group_btn .active.data-v-f677089c { + color: #000; + border: 1px solid #000; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/components/HeaderSearch.js b/dist/dev/mp-weixin/BILL/outstanding_fee/components/HeaderSearch.js new file mode 100644 index 0000000..0544cfb --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/components/HeaderSearch.js @@ -0,0 +1,39 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const BILL_outstanding_fee_index_method = require("../index/method.js"); +const BILL_outstanding_fee_index_model = require("../index/model.js"); +require("../../../common/libraries/sendWxWork.js"); +require("../../../common/libraries/naviHelper.js"); +require("../../../common/libraries/apiLoading.js"); +require("../../../gen/Apis.js"); +require("../../../common/libraries/request.js"); +require("../../../common/store/useWeAppAuthStore.js"); +require("../../../common/store/useWorkStore.js"); +require("../../../common/libraries/day.js"); +if (!Array) { + const _easycom_up_search2 = common_vendor.resolveComponent("up-search"); + _easycom_up_search2(); +} +const _easycom_up_search = () => "../../../node-modules/uview-plus/components/u-search/u-search.js"; +if (!Math) { + _easycom_up_search(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "HeaderSearch", + setup(__props) { + return (_ctx, _cache) => { + var _a; + return { + a: common_vendor.o((_a = common_vendor.unref(BILL_outstanding_fee_index_method.method)) == null ? void 0 : _a.handleSearch), + b: common_vendor.o(($event) => common_vendor.unref(BILL_outstanding_fee_index_model.useModel).formData.value.full_name = $event), + c: common_vendor.p({ + placeholder: "请输入小区名称", + showAction: false, + modelValue: common_vendor.unref(BILL_outstanding_fee_index_model.useModel).formData.value.full_name + }) + }; + }; + } +}); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-dfaa5c89"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/BILL/outstanding_fee/components/HeaderSearch.vue"]]); +wx.createComponent(Component); diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/components/HeaderSearch.json b/dist/dev/mp-weixin/BILL/outstanding_fee/components/HeaderSearch.json new file mode 100644 index 0000000..de08cfc --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/components/HeaderSearch.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + "up-search": "../../../node-modules/uview-plus/components/u-search/u-search" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/components/HeaderSearch.wxml b/dist/dev/mp-weixin/BILL/outstanding_fee/components/HeaderSearch.wxml new file mode 100644 index 0000000..a7b40a5 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/components/HeaderSearch.wxml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/components/HeaderSearch.wxss b/dist/dev/mp-weixin/BILL/outstanding_fee/components/HeaderSearch.wxss new file mode 100644 index 0000000..df01155 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/components/HeaderSearch.wxss @@ -0,0 +1,4 @@ +.head_search_view.data-v-dfaa5c89 { + border-top: 1rpx solid #eee; + padding: 20rpx 30rpx; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/components/NoticeAlert.js b/dist/dev/mp-weixin/BILL/outstanding_fee/components/NoticeAlert.js new file mode 100644 index 0000000..c54f59c --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/components/NoticeAlert.js @@ -0,0 +1,46 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +if (!Array) { + const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); + _easycom_uni_icons2(); +} +const _easycom_uni_icons = () => "../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; +if (!Math) { + _easycom_uni_icons(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "NoticeAlert", + setup(__props) { + const handleAlert = () => { + common_vendor.index.showModal({ + title: "什么是批量通知", + confirmColor: "#0082FA", + content: "一次性给多套房屋发送账单链接,提醒用户缴费 关键操作:先选择哪些房屋要接收通知,然后选择发送方式(短信/公众号/小程序),系统会自动完成发送。通知对象:默认发给房屋的“常用联系人”;若没设置常用联系人,就发给房屋的“产权人”。", + success: function(res) { + if (res.confirm) { + console.log("用户点击确定"); + } else if (res.cancel) { + console.log("用户点击取消"); + } + } + }); + }; + return (_ctx, _cache) => { + return { + a: common_vendor.p({ + type: "info", + size: "20", + color: "#ed6a0c" + }), + b: common_vendor.p({ + type: "right", + size: "17", + color: "#ed6a0c" + }), + c: common_vendor.o(handleAlert) + }; + }; + } +}); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-1be912f5"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/BILL/outstanding_fee/components/NoticeAlert.vue"]]); +wx.createComponent(Component); diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/components/NoticeAlert.json b/dist/dev/mp-weixin/BILL/outstanding_fee/components/NoticeAlert.json new file mode 100644 index 0000000..b513180 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/components/NoticeAlert.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + "uni-icons": "../../../uni_modules/uni-icons/components/uni-icons/uni-icons" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/components/NoticeAlert.wxml b/dist/dev/mp-weixin/BILL/outstanding_fee/components/NoticeAlert.wxml new file mode 100644 index 0000000..e5101e0 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/components/NoticeAlert.wxml @@ -0,0 +1 @@ + 什么是批量通知? \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/components/NoticeAlert.wxss b/dist/dev/mp-weixin/BILL/outstanding_fee/components/NoticeAlert.wxss new file mode 100644 index 0000000..7e99489 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/components/NoticeAlert.wxss @@ -0,0 +1,13 @@ +.wathing_btn.data-v-1be912f5 { + padding: 20rpx 30rpx; + background-color: #fffbe8; + color: #ed6a0c; + font-size: 28rpx; + display: flex; + align-items: center; + justify-content: space-between; +} +.wathing_btn .wathing_left.data-v-1be912f5 { + display: flex; + align-items: center; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/index/index.js b/dist/dev/mp-weixin/BILL/outstanding_fee/index/index.js new file mode 100644 index 0000000..66e0d35 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/index/index.js @@ -0,0 +1,128 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const BILL_outstanding_fee_index_method = require("./method.js"); +const BILL_outstanding_fee_index_model = require("./model.js"); +const common_libraries_day = require("../../../common/libraries/day.js"); +require("../../../common/libraries/sendWxWork.js"); +require("../../../common/libraries/naviHelper.js"); +require("../../../common/libraries/apiLoading.js"); +require("../../../gen/Apis.js"); +require("../../../common/libraries/request.js"); +require("../../../common/store/useWeAppAuthStore.js"); +require("../../../common/store/useWorkStore.js"); +if (!Array) { + const _easycom_up_tabs2 = common_vendor.resolveComponent("up-tabs"); + const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); + const _easycom_cc_scroll_loading2 = common_vendor.resolveComponent("cc-scroll-loading"); + const _easycom_cc_root_view2 = common_vendor.resolveComponent("cc-root-view"); + (_easycom_up_tabs2 + _easycom_uni_icons2 + _easycom_cc_scroll_loading2 + _easycom_cc_root_view2)(); +} +const _easycom_up_tabs = () => "../../../node-modules/uview-plus/components/u-tabs/u-tabs.js"; +const _easycom_uni_icons = () => "../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; +const _easycom_cc_scroll_loading = () => "../../../common/components/cc-scroll-loading/cc-scroll-loading.js"; +const _easycom_cc_root_view = () => "../../../common/components/cc-root-view/cc-root-view.js"; +if (!Math) { + (_easycom_up_tabs + MyHeaderSearch + MyHeadSearchBtn + _easycom_uni_icons + _easycom_cc_scroll_loading + MyNoticeAlert + _easycom_cc_root_view)(); +} +const MyHeadSearchBtn = () => "../components/HeadSearchBtn.js"; +const MyNoticeAlert = () => "../components/NoticeAlert.js"; +const MyHeaderSearch = () => "../components/HeaderSearch.js"; +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + common_vendor.onLoad(async () => { + var _a, _b, _c; + await ((_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$onLaunched); + BILL_outstanding_fee_index_model.useModel.dataList.value = []; + (_b = BILL_outstanding_fee_index_method.method) == null ? void 0 : _b.init(); + (_c = BILL_outstanding_fee_index_method.method) == null ? void 0 : _c.getList(); + }); + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t; + return common_vendor.e({ + a: (_c = (_b = (_a = common_vendor.unref(BILL_outstanding_fee_index_model.useModel)) == null ? void 0 : _a.headTabsList) == null ? void 0 : _b.value) == null ? void 0 : _c.length + }, ((_f = (_e = (_d = common_vendor.unref(BILL_outstanding_fee_index_model.useModel)) == null ? void 0 : _d.headTabsList) == null ? void 0 : _e.value) == null ? void 0 : _f.length) ? { + b: common_vendor.o((_g = common_vendor.unref(BILL_outstanding_fee_index_method.method)) == null ? void 0 : _g.handleListTabsChange), + c: common_vendor.p({ + list: (_i = (_h = common_vendor.unref(BILL_outstanding_fee_index_model.useModel)) == null ? void 0 : _h.headTabsList) == null ? void 0 : _i.value, + current: (_k = (_j = common_vendor.unref(BILL_outstanding_fee_index_model.useModel)) == null ? void 0 : _j.current) == null ? void 0 : _k.value + }) + } : {}, { + d: common_vendor.f((_m = (_l = common_vendor.unref(BILL_outstanding_fee_index_model.useModel)) == null ? void 0 : _l.dataList) == null ? void 0 : _m.value, (i, index, i0) => { + return common_vendor.e({ + a: i == null ? void 0 : i.is_select + }, (i == null ? void 0 : i.is_select) ? { + b: "17d5eb04-5-" + i0 + ",17d5eb04-4", + c: common_vendor.p({ + type: "checkbox-filled", + size: "18", + color: "#0082FA" + }) + } : { + d: "17d5eb04-6-" + i0 + ",17d5eb04-4", + e: common_vendor.p({ + type: "circle", + size: "18", + color: "#666" + }) + }, { + f: common_vendor.t(i == null ? void 0 : i.full_name), + g: common_vendor.o(($event) => { + var _a2; + return (_a2 = common_vendor.unref(BILL_outstanding_fee_index_method.method)) == null ? void 0 : _a2.handleSelect(index); + }, `item_${index}`), + h: common_vendor.t(i == null ? void 0 : i.total_overdue_amount), + i: common_vendor.t(i == null ? void 0 : i.last_overdue_date), + j: common_vendor.t(common_vendor.unref(common_libraries_day.ShowLastTime)(i == null ? void 0 : i.last_collection_time)), + k: common_vendor.o(($event) => { + var _a2; + return (_a2 = common_vendor.unref(BILL_outstanding_fee_index_method.method)) == null ? void 0 : _a2.toDetail(i); + }, `item_${index}`), + l: `item_${index}` + }); + }), + e: common_vendor.o((_n = common_vendor.unref(BILL_outstanding_fee_index_method.method)) == null ? void 0 : _n.handleLoad), + f: common_vendor.p({ + meta: (_p = (_o = common_vendor.unref(BILL_outstanding_fee_index_model.useModel)) == null ? void 0 : _o.meta) == null ? void 0 : _p.value + }), + g: (_r = (_q = common_vendor.unref(BILL_outstanding_fee_index_model.useModel)) == null ? void 0 : _q.allSelectStatus) == null ? void 0 : _r.value + }, ((_t = (_s = common_vendor.unref(BILL_outstanding_fee_index_model.useModel)) == null ? void 0 : _s.allSelectStatus) == null ? void 0 : _t.value) ? { + h: common_vendor.p({ + type: "checkbox-filled", + size: "20", + color: "#0082FA" + }) + } : { + i: common_vendor.p({ + type: "circle", + size: "20", + color: "#666" + }) + }, { + j: common_vendor.o( + //@ts-ignore + (...args) => { + var _a2, _b2; + return ((_a2 = common_vendor.unref(BILL_outstanding_fee_index_method.method)) == null ? void 0 : _a2.handleAllSelect) && ((_b2 = common_vendor.unref(BILL_outstanding_fee_index_method.method)) == null ? void 0 : _b2.handleAllSelect(...args)); + } + ), + k: common_vendor.o( + //@ts-ignore + (...args) => { + var _a2, _b2; + return ((_a2 = common_vendor.unref(BILL_outstanding_fee_index_method.method)) == null ? void 0 : _a2.toInformationTemplate) && ((_b2 = common_vendor.unref(BILL_outstanding_fee_index_method.method)) == null ? void 0 : _b2.toInformationTemplate(...args)); + } + ), + l: common_vendor.o( + //@ts-ignore + (...args) => { + var _a2, _b2; + return ((_a2 = common_vendor.unref(BILL_outstanding_fee_index_method.method)) == null ? void 0 : _a2.toMassSending) && ((_b2 = common_vendor.unref(BILL_outstanding_fee_index_method.method)) == null ? void 0 : _b2.toMassSending(...args)); + } + ) + }); + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/BILL/outstanding_fee/index/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/index/index.json b/dist/dev/mp-weixin/BILL/outstanding_fee/index/index.json new file mode 100644 index 0000000..58664a0 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/index/index.json @@ -0,0 +1,12 @@ +{ + "navigationBarTitleText": "欠费房屋", + "usingComponents": { + "up-tabs": "../../../node-modules/uview-plus/components/u-tabs/u-tabs", + "uni-icons": "../../../uni_modules/uni-icons/components/uni-icons/uni-icons", + "cc-scroll-loading": "../../../common/components/cc-scroll-loading/cc-scroll-loading", + "cc-root-view": "../../../common/components/cc-root-view/cc-root-view", + "my-head-search-btn": "../components/HeadSearchBtn", + "my-notice-alert": "../components/NoticeAlert", + "my-header-search": "../components/HeaderSearch" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/index/index.wxml b/dist/dev/mp-weixin/BILL/outstanding_fee/index/index.wxml new file mode 100644 index 0000000..0fcc092 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/index/index.wxml @@ -0,0 +1 @@ + {{i.f}} 欠费:{{i.h}}元 到期时间:{{i.i}} 上次催缴:{{i.j}}查看详情 全选 批量通知 微信群发 \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/index/index.wxss b/dist/dev/mp-weixin/BILL/outstanding_fee/index/index.wxss new file mode 100644 index 0000000..22140be --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/index/index.wxss @@ -0,0 +1,102 @@ +page { + background-color: #f8f8f8; +} +.head_tabs_view { + background-color: #fff; + position: fixed; + top: 0; + left: 0; + right: 0; + z-index: 100; + box-shadow: 0px 3px 7px rgba(206, 206, 206, 0.25); +} +.cc_scroll_loading_view { + padding: 260rpx 30rpx 0 30rpx; + padding-bottom: calc(210rpx + constant(safe-area-inset-bottom)); + padding-bottom: calc(210rpx + env(safe-area-inset-bottom)); +} +.arrears_fees_view { + display: flex; + align-items: center; + flex-wrap: wrap; + justify-content: space-between; +} +.arrears_fees_view .item { + width: 48%; + background-color: #fff; + border-radius: 10rpx; + margin-top: 30rpx; +} +.arrears_fees_view .toDetail { + padding: 20rpx 0; + border-top: 1rpx solid #eee; + color: #0082fa; + text-align: center; + font-size: 28rpx; + margin-top: 10rpx; +} +.arrears_fees_view .card_title { + font-size: 32rpx; + font-weight: 550; + padding: 20rpx 20rpx 15rpx 20rpx; + display: flex; + align-items: self-start; +} +.arrears_fees_view .card_fee { + color: #df3600; + font-size: 28rpx; + font-weight: 550; + padding: 0 20rpx 15rpx 20rpx; +} +.arrears_fees_view .card_time { + padding-bottom: 15rpx; + color: #666; + font-size: 24rpx; + padding: 0 20rpx 5rpx 20rpx; +} +.footer { + position: fixed; + bottom: 0; + left: 0; + right: 0; + padding-bottom: calc(22rpx + constant(safe-area-inset-bottom)); + padding-bottom: calc(22rpx + env(safe-area-inset-bottom)); + background-color: #fff; +} +.footer .footer_view { + display: flex; + align-items: center; + justify-content: space-between; + padding: 20rpx 30rpx 0 30rpx; +} +.footer .footer_view .all_select_btn { + padding-right: 30rpx; + font-size: 28rpx; + display: flex; + align-items: center; + color: #666; +} +.footer .footer_view .notice_btn_view { + flex: 1; + display: flex; + align-items: center; + text-align: center; + font-size: 28rpx; +} +.footer .footer_view .notice_btn_view .btn { + background-color: #0082fa; + color: #fff; + width: 50%; + border: 1px solid #0082fa; + padding: 25rpx 0; +} +.footer .footer_view .notice_btn_view .btn:first-child { + color: #0082fa; + background-color: #fff; + border-top-left-radius: 100rpx; + border-bottom-left-radius: 100rpx; +} +.footer .footer_view .notice_btn_view .btn:last-child { + border-top-right-radius: 100rpx; + border-bottom-right-radius: 100rpx; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/index/method.js b/dist/dev/mp-weixin/BILL/outstanding_fee/index/method.js new file mode 100644 index 0000000..a7cccda --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/index/method.js @@ -0,0 +1,115 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const common_libraries_sendWxWork = require("../../../common/libraries/sendWxWork.js"); +const gen_Apis = require("../../../gen/Apis.js"); +const BILL_outstanding_fee_index_model = require("./model.js"); +require("../../../common/libraries/request.js"); +const common_store_useWeAppAuthStore = require("../../../common/store/useWeAppAuthStore.js"); +require("../../../common/store/useWorkStore.js"); +const auth = common_store_useWeAppAuthStore.useWeAppAuthStore(); +const getList = () => { + var _a, _b; + gen_Apis.Apis.Bill.HouseBills.HouseList((_b = (_a = BILL_outstanding_fee_index_model.useModel) == null ? void 0 : _a.formData) == null ? void 0 : _b.value).then((res) => { + var _a2; + (_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.map((item) => { + item.is_select = BILL_outstanding_fee_index_model.useModel.allSelectStatus.value; + }); + BILL_outstanding_fee_index_model.useModel.dataList.value = [...BILL_outstanding_fee_index_model.useModel.dataList.value, ...res == null ? void 0 : res.data]; + BILL_outstanding_fee_index_model.useModel.meta.value = res == null ? void 0 : res.meta; + console.log("登录", res == null ? void 0 : res.data); + }); +}; +const method = { + init() { + BILL_outstanding_fee_index_model.useModel.headTabsList.value = [ + { name: "全部欠费", value: [] }, + { name: "欠费1个月以内", value: [0, 1] }, + { name: "欠费1-3个月", value: [1, 3] }, + { name: "欠费4-6个月", value: [4, 6] }, + { name: "欠费6-9个月", value: [6, 9] }, + { name: "欠费9个月以上", value: [9, 30] } + ]; + }, + getList, + handleSearch() { + BILL_outstanding_fee_index_model.useModel.formData.value.page = 1; + BILL_outstanding_fee_index_model.useModel.dataList.value = []; + getList(); + }, + handleLoad(page) { + BILL_outstanding_fee_index_model.useModel.formData.value.page = page; + getList(); + }, + handleListTabsChange(e) { + var _a, _b, _c; + BILL_outstanding_fee_index_model.useModel.formData.value.page = 1; + BILL_outstanding_fee_index_model.useModel.formData.value.overdue_months_range = (e == null ? void 0 : e.index) ? (_c = (_b = (_a = BILL_outstanding_fee_index_model.useModel) == null ? void 0 : _a.headTabsList) == null ? void 0 : _b.value[e == null ? void 0 : e.index]) == null ? void 0 : _c.value : void 0; + BILL_outstanding_fee_index_model.useModel.dataList.value = []; + getList(); + console.log("e", e); + }, + handleSelect(idx) { + var _a; + let isAll = true; + let is = BILL_outstanding_fee_index_model.useModel.dataList.value[idx].is_select; + BILL_outstanding_fee_index_model.useModel.dataList.value[idx].is_select = !is; + (_a = BILL_outstanding_fee_index_model.useModel.dataList.value) == null ? void 0 : _a.map((res) => { + if (!res.is_select) { + isAll = false; + } + }); + BILL_outstanding_fee_index_model.useModel.allSelectStatus.value = isAll; + }, + handleAllSelect() { + var _a, _b, _c; + BILL_outstanding_fee_index_model.useModel.allSelectStatus.value = !((_b = (_a = BILL_outstanding_fee_index_model.useModel) == null ? void 0 : _a.allSelectStatus) == null ? void 0 : _b.value); + (_c = BILL_outstanding_fee_index_model.useModel.dataList.value) == null ? void 0 : _c.map((res) => { + res.is_select = BILL_outstanding_fee_index_model.useModel.allSelectStatus.value; + }); + }, + toInformationTemplate() { + var _a, _b, _c; + let arr = []; + (_c = (_b = (_a = BILL_outstanding_fee_index_model.useModel) == null ? void 0 : _a.dataList) == null ? void 0 : _b.value) == null ? void 0 : _c.map((res) => { + if (res == null ? void 0 : res.is_select) { + arr.push({ + asset_houses_id: res == null ? void 0 : res.id, + total_unpaid_amount: parseFloat((res == null ? void 0 : res.total_overdue_amount) || 0) + }); + } + }); + if (!(arr == null ? void 0 : arr.length)) { + common_vendor.index.showToast({ + title: "请至少选择一个!", + icon: "none" + }); + return; + } + common_vendor.index.navigateTo({ + url: `/BILL/information_template/index?data=${JSON.stringify(arr)}` + }); + }, + toDetail(e) { + common_vendor.index.navigateTo({ + url: `/BILL/outstanding_fee/show/index?id=${e == null ? void 0 : e.id}` + }); + }, + toMassSending() { + var _a; + if (((_a = auth == null ? void 0 : auth.data) == null ? void 0 : _a.environment) === "wxwork") { + common_libraries_sendWxWork.shareToExternalContact({ + externalUserIds: [], + page: `/INDEX/bill/list/index`, + title: `分享给您物业账单`, + imgUrl: "https://pay-prod-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01K5B5RY2TQQAJ1GT2RZSK426V.jpg" + }); + } else { + common_libraries_sendWxWork.navigateToMiniProgram({ + path: "/pages/forward/index?source=OutstandingFeeList", + envVersion: "develop", + extraData: { source: "OutstandingFeeList" } + }); + } + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/index/model.js b/dist/dev/mp-weixin/BILL/outstanding_fee/index/model.js new file mode 100644 index 0000000..2b3f6f3 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/index/model.js @@ -0,0 +1,12 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +require("../../../common/libraries/day.js"); +const useModel = { + formData: common_vendor.ref({ page: 1, full_name: "" }), + dataList: common_vendor.ref([]), + current: common_vendor.ref(0), + meta: common_vendor.ref({}), + allSelectStatus: common_vendor.ref(false), + headTabsList: common_vendor.ref([]) +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/BillItem.js b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/BillItem.js new file mode 100644 index 0000000..79453c0 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/BillItem.js @@ -0,0 +1,115 @@ +"use strict"; +const common_vendor = require("../../../../common/vendor.js"); +const gen_Enums = require("../../../../gen/Enums.js"); +const BILL_outstanding_fee_show_model = require("../model.js"); +const BILL_outstanding_fee_show_method = require("../method.js"); +require("../../../../common/libraries/day.js"); +require("../../../../common/libraries/apiLoading.js"); +require("../../../../gen/Apis.js"); +require("../../../../common/libraries/request.js"); +require("../../../../common/store/useWeAppAuthStore.js"); +require("../../../../common/store/useWorkStore.js"); +require("../../../../common/libraries/sendWxWork.js"); +require("../../../../common/libraries/naviHelper.js"); +if (!Array) { + const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); + const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag"); + (_easycom_uni_icons2 + _easycom_hs_enum_tag2)(); +} +const _easycom_uni_icons = () => "../../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; +const _easycom_hs_enum_tag = () => "../../../../components/hs-enum-tag/hs-enum-tag.js"; +if (!Math) { + (_easycom_uni_icons + _easycom_hs_enum_tag)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "BillItem", + props: ["item", "index"], + setup(__props) { + const props = __props; + const billsShow = common_vendor.ref(false); + const handleCollapseAllCheckedBtn = () => { + var _a, _b, _c, _d, _e, _f; + let checked = (_a = props == null ? void 0 : props.item) == null ? void 0 : _a.checked; + BILL_outstanding_fee_show_model.useModel.houseBillsData.value[props == null ? void 0 : props.index].checked = !checked; + (_e = (_d = (_c = (_b = BILL_outstanding_fee_show_model.useModel) == null ? void 0 : _b.houseBillsData) == null ? void 0 : _c.value[props == null ? void 0 : props.index]) == null ? void 0 : _d.bills) == null ? void 0 : _e.map((i) => { + i.checked = !checked; + }); + (_f = BILL_outstanding_fee_show_method.method) == null ? void 0 : _f.setCalculateTotalPrice(); + }; + const handleCalculatePrice = (res, index) => { + var _a, _b; + let checked = res == null ? void 0 : res.checked; + BILL_outstanding_fee_show_model.useModel.houseBillsData.value[props == null ? void 0 : props.index].bills[index].checked = !checked; + if (checked) { + BILL_outstanding_fee_show_model.useModel.houseBillsData.value[props == null ? void 0 : props.index].checked = false; + } else { + let allChecked = (_a = BILL_outstanding_fee_show_model.useModel.houseBillsData.value[props == null ? void 0 : props.index].bills) == null ? void 0 : _a.every( + (item) => item == null ? void 0 : item.checked + ); + BILL_outstanding_fee_show_model.useModel.houseBillsData.value[props == null ? void 0 : props.index].checked = allChecked; + console.log(allChecked); + } + (_b = BILL_outstanding_fee_show_method.method) == null ? void 0 : _b.setCalculateTotalPrice(); + }; + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e; + return common_vendor.e({ + a: (_a = props == null ? void 0 : props.item) == null ? void 0 : _a.checked + }, ((_b = props == null ? void 0 : props.item) == null ? void 0 : _b.checked) ? { + b: common_vendor.p({ + type: "checkbox-filled", + size: "20", + color: "#2A7EFB" + }) + } : { + c: common_vendor.p({ + type: "circle", + size: "20", + color: "#888" + }) + }, { + d: common_vendor.t((_c = props == null ? void 0 : props.item) == null ? void 0 : _c.display_text), + e: common_vendor.o(handleCollapseAllCheckedBtn), + f: common_vendor.t((_d = props == null ? void 0 : props.item) == null ? void 0 : _d.pending_amount), + g: common_vendor.p({ + type: "down", + size: "15", + color: "#666" + }), + h: common_vendor.o(($event) => billsShow.value = !billsShow.value), + i: billsShow.value + }, billsShow.value ? { + j: common_vendor.f((_e = props == null ? void 0 : props.item) == null ? void 0 : _e.bills, (i, index, i0) => { + return common_vendor.e({ + a: i == null ? void 0 : i.checked + }, (i == null ? void 0 : i.checked) ? { + b: "8af7247a-3-" + i0, + c: common_vendor.p({ + type: "checkbox-filled", + size: "20", + color: "#2A7EFB" + }) + } : { + d: "8af7247a-4-" + i0, + e: common_vendor.p({ + type: "circle", + size: "20", + color: "#888" + }) + }, { + f: "8af7247a-5-" + i0, + g: common_vendor.p({ + value: i == null ? void 0 : i.type, + Enums: common_vendor.unref(gen_Enums.HouseBillsTypeEnum) + }), + h: common_vendor.o(($event) => handleCalculatePrice(i, index), `fid_items_${index}`), + i: common_vendor.t(i == null ? void 0 : i.total_payable_amount), + j: `fid_items_${index}` + }); + }) + } : {}); + }; + } +}); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-8af7247a"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/BILL/outstanding_fee/show/components/BillItem.vue"]]); +wx.createComponent(Component); diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/BillItem.json b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/BillItem.json new file mode 100644 index 0000000..13feba2 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/BillItem.json @@ -0,0 +1,7 @@ +{ + "component": true, + "usingComponents": { + "uni-icons": "../../../../uni_modules/uni-icons/components/uni-icons/uni-icons", + "hs-enum-tag": "../../../../components/hs-enum-tag/hs-enum-tag" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/BillItem.wxml b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/BillItem.wxml new file mode 100644 index 0000000..a3d59fd --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/BillItem.wxml @@ -0,0 +1 @@ +{{d}} ¥{{f}} ¥{{i.i}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/BillItem.wxss b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/BillItem.wxss new file mode 100644 index 0000000..9d46090 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/BillItem.wxss @@ -0,0 +1,62 @@ +.monthly_bill_content.data-v-8af7247a { + background-color: #f7f8fc; + padding: 30rpx 20rpx; + margin: 30rpx 30rpx 0 30rpx; + border-radius: 10rpx; + position: relative; +} +.monthly_bill_content .monthly_bill_header.data-v-8af7247a { + display: flex; + align-items: center; + justify-content: space-between; +} +.monthly_bill_content .header_left_content.data-v-8af7247a { + display: flex; + align-items: center; + font-size: 28rpx; + color: #333; +} +.monthly_bill_content .header_right_content.data-v-8af7247a { + color: #df3600; + display: flex; + align-items: center; + justify-content: space-between; + font-size: 28rpx; +} +.monthly_bill_content .header_right_content text.data-v-8af7247a { + padding-right: 5rpx; +} +.monthly_bill_content .items_body.data-v-8af7247a { + background-color: #fff; + padding: 30rpx 30rpx 0 30rpx; + border-radius: 10rpx; + margin-top: 20rpx; +} +.monthly_bill_content .items_body .items_cell.data-v-8af7247a { + display: flex; + align-items: center; + justify-content: space-between; + padding-bottom: 30rpx; + font-size: 28rpx; + color: #333; +} +.monthly_bill_content .items_body .items_cell .items_cell_left.data-v-8af7247a { + display: flex; + align-items: center; +} +.bill_to_detail.data-v-8af7247a { + color: #666; + display: flex; + align-items: center; + justify-content: center; + font-size: 23rpx; + text-align: center; + padding-bottom: 30rpx; +} +.bill_to_detail .btn.data-v-8af7247a { + border: 1rpx solid #666; + border-radius: 100rpx; + padding: 10rpx 10rpx 10rpx 20rpx; + display: flex; + align-items: center; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/BillRecord.js b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/BillRecord.js new file mode 100644 index 0000000..fd8e49f --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/BillRecord.js @@ -0,0 +1,41 @@ +"use strict"; +const common_vendor = require("../../../../common/vendor.js"); +const BILL_outstanding_fee_show_model = require("../model.js"); +require("../../../../common/libraries/day.js"); +if (!Array) { + const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon"); + _easycom_up_icon2(); +} +const _easycom_up_icon = () => "../../../../node-modules/uview-plus/components/u-icon/u-icon.js"; +if (!Math) { + _easycom_up_icon(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "BillRecord", + setup(__props) { + const toPage = (url) => { + var _a, _b, _c, _d, _e, _f; + common_vendor.index.navigateTo({ + url: `${url}?asset_houses_id=${(_c = (_b = (_a = BILL_outstanding_fee_show_model.useModel) == null ? void 0 : _a.formData) == null ? void 0 : _b.value) == null ? void 0 : _c.asset_houses_id}&total_pending_amount=${(_f = (_e = (_d = BILL_outstanding_fee_show_model.useModel) == null ? void 0 : _d.showData) == null ? void 0 : _e.value) == null ? void 0 : _f.total_pending_amount}` + }); + }; + return (_ctx, _cache) => { + return { + a: common_vendor.p({ + name: "clock", + size: "18", + color: "#666" + }), + b: common_vendor.o(($event) => toPage("/BILL/record/urge_payment/index")), + c: common_vendor.p({ + name: "rmb-circle", + size: "18", + color: "#666" + }), + d: common_vendor.o(($event) => toPage("/BILL/record/payment/index")) + }; + }; + } +}); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-7208113d"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/BILL/outstanding_fee/show/components/BillRecord.vue"]]); +wx.createComponent(Component); diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/BillRecord.json b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/BillRecord.json new file mode 100644 index 0000000..5656d26 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/BillRecord.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + "up-icon": "../../../../node-modules/uview-plus/components/u-icon/u-icon" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/BillRecord.wxml b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/BillRecord.wxml new file mode 100644 index 0000000..04a6ee7 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/BillRecord.wxml @@ -0,0 +1 @@ + 催费记录 缴费记录 \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/BillRecord.wxss b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/BillRecord.wxss new file mode 100644 index 0000000..07e7c6f --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/BillRecord.wxss @@ -0,0 +1,20 @@ +.bill_record.data-v-7208113d { + display: flex; + align-items: center; + justify-content: space-between; + color: #333; + padding: 20rpx 30rpx 0 30rpx; + font-size: 28rpx; +} +.bill_record .item_btn.data-v-7208113d { + border: 1rpx solid #eee; + border-radius: 4rpx; + width: 300rpx; + display: flex; + align-items: center; + justify-content: center; + padding: 22rpx 0; +} +.bill_record .item_btn text.data-v-7208113d { + padding-left: 5rpx; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/ContactPersonPopup.json b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/ContactPersonPopup.json new file mode 100644 index 0000000..5dd1ac6 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/ContactPersonPopup.json @@ -0,0 +1,9 @@ +{ + "component": true, + "usingComponents": { + "hs-button": "../../../../components/hs-button/hs-button", + "hs-enum-tag": "../../../../components/hs-enum-tag/hs-enum-tag", + "uni-icons": "../../../../uni_modules/uni-icons/components/uni-icons/uni-icons", + "hs-popup": "../../../../components/hs-popup/hs-popup" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/ContactPersonPopup.wxml b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/ContactPersonPopup.wxml new file mode 100644 index 0000000..880f95b --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/ContactPersonPopup.wxml @@ -0,0 +1 @@ + 请选择联系对象 \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PageFooter.js b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PageFooter.js new file mode 100644 index 0000000..75693c1 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PageFooter.js @@ -0,0 +1,62 @@ +"use strict"; +const common_vendor = require("../../../../common/vendor.js"); +const BILL_outstanding_fee_show_method = require("../method.js"); +const BILL_outstanding_fee_show_model = require("../model.js"); +require("../../../../common/libraries/apiLoading.js"); +require("../../../../gen/Apis.js"); +require("../../../../common/libraries/request.js"); +require("../../../../common/store/useWeAppAuthStore.js"); +require("../../../../common/store/useWorkStore.js"); +require("../../../../common/libraries/sendWxWork.js"); +require("../../../../common/libraries/naviHelper.js"); +require("../../../../common/libraries/day.js"); +if (!Array) { + const _easycom_hs_button2 = common_vendor.resolveComponent("hs-button"); + _easycom_hs_button2(); +} +const _easycom_hs_button = () => "../../../../components/hs-button/hs-button.js"; +if (!Math) { + _easycom_hs_button(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "PageFooter", + setup(__props) { + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j; + return common_vendor.e({ + a: common_vendor.unref(BILL_outstanding_fee_show_model.useModel).tabsCurrent.value < 1 + }, common_vendor.unref(BILL_outstanding_fee_show_model.useModel).tabsCurrent.value < 1 ? common_vendor.e({ + b: common_vendor.unref(BILL_outstanding_fee_show_model.useModel).tabsCurrent.value === 0 + }, common_vendor.unref(BILL_outstanding_fee_show_model.useModel).tabsCurrent.value === 0 ? common_vendor.e({ + c: (_c = (_b = (_a = common_vendor.unref(BILL_outstanding_fee_show_model.useModel)) == null ? void 0 : _a.houseBillsData) == null ? void 0 : _b.value) == null ? void 0 : _c.length + }, ((_f = (_e = (_d = common_vendor.unref(BILL_outstanding_fee_show_model.useModel)) == null ? void 0 : _d.houseBillsData) == null ? void 0 : _e.value) == null ? void 0 : _f.length) ? { + d: common_vendor.t(((_h = (_g = common_vendor.unref(BILL_outstanding_fee_show_model.useModel)) == null ? void 0 : _g.total_amount) == null ? void 0 : _h.value) || "0.00"), + e: common_vendor.o((_i = common_vendor.unref(BILL_outstanding_fee_show_method.method)) == null ? void 0 : _i.handleQRCode), + f: common_vendor.p({ + label: "二维码收款", + size: "md", + type: "ghost" + }), + g: common_vendor.o((_j = common_vendor.unref(BILL_outstanding_fee_show_method.method)) == null ? void 0 : _j.handleSelectExternalContact), + h: common_vendor.p({ + type: "primary", + size: "md", + label: "分享账单" + }) + } : { + i: common_vendor.p({ + label: "分享托收", + size: "md", + type: "ghost" + }), + j: common_vendor.p({ + type: "primary", + size: "md", + label: "分享预缴" + }) + }) : {}) : {}); + }; + } +}); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-86c19eb0"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/BILL/outstanding_fee/show/components/PageFooter.vue"]]); +wx.createComponent(Component); diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PageFooter.json b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PageFooter.json new file mode 100644 index 0000000..6e2a218 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PageFooter.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + "hs-button": "../../../../components/hs-button/hs-button" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PageFooter.wxml b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PageFooter.wxml new file mode 100644 index 0000000..93fecd2 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PageFooter.wxml @@ -0,0 +1 @@ + 您已选待缴金额: ¥{{d}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PageFooter.wxss b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PageFooter.wxss new file mode 100644 index 0000000..18bb2d4 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PageFooter.wxss @@ -0,0 +1,38 @@ +.footer_view.data-v-86c19eb0 { + position: fixed; + bottom: 0; + left: 0; + right: 0; + background-color: #fff; + z-index: 100; + padding-bottom: calc(15rpx + constant(safe-area-inset-bottom)); + padding-bottom: calc(15rpx + env(safe-area-inset-bottom)); +} +.footer_view .select_fee.data-v-86c19eb0 { + display: flex; + align-items: center; + justify-content: space-between; + background-color: #edf6ff; + padding: 25rpx 30rpx; + font-size: 28rpx; +} +.footer_view .select_fee .label.data-v-86c19eb0 { + color: #555; +} +.footer_view .select_fee .fee.data-v-86c19eb0 { + color: #df3600; + font-size: 33rpx; + font-weight: 550; +} +.footer_view .btn_group.data-v-86c19eb0 { + display: flex; + align-items: center; + justify-content: space-between; + padding: 20rpx 30rpx 0 30rpx; +} +.footer_view .btn_group_left.data-v-86c19eb0, .footer_view .btn_group_right.data-v-86c19eb0 { + width: 48%; +} +.footer_view .new_add_collection_fee.data-v-86c19eb0 { + padding: 20rpx 30rpx 0 30rpx; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PageHeader.js b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PageHeader.js new file mode 100644 index 0000000..42d6a4f --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PageHeader.js @@ -0,0 +1,67 @@ +"use strict"; +const common_vendor = require("../../../../common/vendor.js"); +const gen_Enums = require("../../../../gen/Enums.js"); +require("../../../../common/libraries/day.js"); +const BILL_outstanding_fee_show_model = require("../model.js"); +require("../method.js"); +require("../../../../common/libraries/apiLoading.js"); +require("../../../../gen/Apis.js"); +require("../../../../common/libraries/request.js"); +require("../../../../common/store/useWeAppAuthStore.js"); +require("../../../../common/store/useWorkStore.js"); +require("../../../../common/libraries/sendWxWork.js"); +require("../../../../common/libraries/naviHelper.js"); +if (!Array) { + const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag"); + _easycom_hs_enum_tag2(); +} +const _easycom_hs_enum_tag = () => "../../../../components/hs-enum-tag/hs-enum-tag.js"; +if (!Math) { + _easycom_hs_enum_tag(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "PageHeader", + setup(__props) { + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja, _ka, _la, _ma, _na, _oa, _pa, _qa, _ra, _sa, _ta, _ua, _va, _wa, _xa, _ya, _za, _Aa, _Ba; + return common_vendor.e({ + a: common_vendor.t(((_c = (_b = (_a = common_vendor.unref(BILL_outstanding_fee_show_model.useModel)) == null ? void 0 : _a.showData) == null ? void 0 : _b.value) == null ? void 0 : _c.full_name) || "-"), + b: common_vendor.t(((_f = (_e = (_d = common_vendor.unref(BILL_outstanding_fee_show_model.useModel)) == null ? void 0 : _d.showData) == null ? void 0 : _e.value) == null ? void 0 : _f.total_pending_amount) ? "欠费" : "结清"), + c: common_vendor.n(`type_text type_text_${((_i = (_h = (_g = common_vendor.unref(BILL_outstanding_fee_show_model.useModel)) == null ? void 0 : _g.showData) == null ? void 0 : _h.value) == null ? void 0 : _i.total_pending_amount) ? "red" : "green"}`), + d: (_l = (_k = (_j = common_vendor.unref(BILL_outstanding_fee_show_model.useModel)) == null ? void 0 : _j.showData) == null ? void 0 : _k.value) == null ? void 0 : _l.total_pending_amount + }, ((_o = (_n = (_m = common_vendor.unref(BILL_outstanding_fee_show_model.useModel)) == null ? void 0 : _m.showData) == null ? void 0 : _n.value) == null ? void 0 : _o.total_pending_amount) ? { + e: common_vendor.t(((_r = (_q = (_p = common_vendor.unref(BILL_outstanding_fee_show_model.useModel)) == null ? void 0 : _p.showData) == null ? void 0 : _q.value) == null ? void 0 : _r.total_pending_amount) || "-") + } : {}, { + f: common_vendor.t(((_v = (_u = (_t = (_s = common_vendor.unref(BILL_outstanding_fee_show_model.useModel)) == null ? void 0 : _s.showData) == null ? void 0 : _t.value) == null ? void 0 : _u.asset_house) == null ? void 0 : _v.built_area) || "-"), + g: common_vendor.t(((_z = (_y = (_x = (_w = common_vendor.unref(BILL_outstanding_fee_show_model.useModel)) == null ? void 0 : _w.showData) == null ? void 0 : _x.value) == null ? void 0 : _y.asset_house) == null ? void 0 : _z.room) || ""), + h: common_vendor.t(((_D = (_C = (_B = (_A = common_vendor.unref(BILL_outstanding_fee_show_model.useModel)) == null ? void 0 : _A.showData) == null ? void 0 : _B.value) == null ? void 0 : _C.asset_house) == null ? void 0 : _D.hall) || ""), + i: common_vendor.t(((_H = (_G = (_F = (_E = common_vendor.unref(BILL_outstanding_fee_show_model.useModel)) == null ? void 0 : _E.showData) == null ? void 0 : _F.value) == null ? void 0 : _G.asset_house) == null ? void 0 : _H.bathroom) || ""), + j: common_vendor.t(((_L = (_K = (_J = (_I = common_vendor.unref(BILL_outstanding_fee_show_model.useModel)) == null ? void 0 : _I.showData) == null ? void 0 : _J.value) == null ? void 0 : _K.asset_house) == null ? void 0 : _L.kitchen) || ""), + k: common_vendor.t(((_P = (_O = (_N = (_M = common_vendor.unref(BILL_outstanding_fee_show_model.useModel)) == null ? void 0 : _M.showData) == null ? void 0 : _N.value) == null ? void 0 : _O.asset_house) == null ? void 0 : _P.balcony) || ""), + l: common_vendor.t(((_T = (_S = (_R = (_Q = common_vendor.unref(BILL_outstanding_fee_show_model.useModel)) == null ? void 0 : _Q.showData) == null ? void 0 : _R.value) == null ? void 0 : _S.asset_house) == null ? void 0 : _T.ownership_term) || "-"), + m: (_X = (_W = (_V = (_U = common_vendor.unref(BILL_outstanding_fee_show_model.useModel)) == null ? void 0 : _U.showData) == null ? void 0 : _V.value) == null ? void 0 : _W.asset_house) == null ? void 0 : _X.status + }, ((_$ = (__ = (_Z = (_Y = common_vendor.unref(BILL_outstanding_fee_show_model.useModel)) == null ? void 0 : _Y.showData) == null ? void 0 : _Z.value) == null ? void 0 : __.asset_house) == null ? void 0 : _$.status) ? { + n: common_vendor.p({ + Enums: common_vendor.unref(gen_Enums.HouseRegistersHouseStatusEnum), + value: (_da = (_ca = (_ba = (_aa = common_vendor.unref(BILL_outstanding_fee_show_model.useModel)) == null ? void 0 : _aa.showData) == null ? void 0 : _ba.value) == null ? void 0 : _ca.asset_house) == null ? void 0 : _da.status + }) + } : {}, { + o: (_ha = (_ga = (_fa = (_ea = common_vendor.unref(BILL_outstanding_fee_show_model.useModel)) == null ? void 0 : _ea.showData) == null ? void 0 : _fa.value) == null ? void 0 : _ga.asset_house) == null ? void 0 : _ha.orientation + }, ((_la = (_ka = (_ja = (_ia = common_vendor.unref(BILL_outstanding_fee_show_model.useModel)) == null ? void 0 : _ia.showData) == null ? void 0 : _ja.value) == null ? void 0 : _ka.asset_house) == null ? void 0 : _la.orientation) ? { + p: common_vendor.p({ + Enums: common_vendor.unref(gen_Enums.AssetHousesOrientationEnum), + value: (_pa = (_oa = (_na = (_ma = common_vendor.unref(BILL_outstanding_fee_show_model.useModel)) == null ? void 0 : _ma.showData) == null ? void 0 : _na.value) == null ? void 0 : _oa.asset_house) == null ? void 0 : _pa.orientation + }) + } : {}, { + q: (_ta = (_sa = (_ra = (_qa = common_vendor.unref(BILL_outstanding_fee_show_model.useModel)) == null ? void 0 : _qa.showData) == null ? void 0 : _ra.value) == null ? void 0 : _sa.asset_house) == null ? void 0 : _ta.usage + }, ((_xa = (_wa = (_va = (_ua = common_vendor.unref(BILL_outstanding_fee_show_model.useModel)) == null ? void 0 : _ua.showData) == null ? void 0 : _va.value) == null ? void 0 : _wa.asset_house) == null ? void 0 : _xa.usage) ? { + r: common_vendor.p({ + Enums: common_vendor.unref(gen_Enums.AssetHousesUsageEnum), + value: (_Ba = (_Aa = (_za = (_ya = common_vendor.unref(BILL_outstanding_fee_show_model.useModel)) == null ? void 0 : _ya.showData) == null ? void 0 : _za.value) == null ? void 0 : _Aa.asset_house) == null ? void 0 : _Ba.usage + }) + } : {}); + }; + } +}); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/BILL/outstanding_fee/show/components/PageHeader.vue"]]); +wx.createComponent(Component); diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PageHeader.json b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PageHeader.json new file mode 100644 index 0000000..1e64b3d --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PageHeader.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + "hs-enum-tag": "../../../../components/hs-enum-tag/hs-enum-tag" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PageHeader.wxml b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PageHeader.wxml new file mode 100644 index 0000000..93791d6 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PageHeader.wxml @@ -0,0 +1 @@ +{{a}}{{b}} 欠费:{{e}}元 基本信息 建筑面积:{{f}}㎡ 户型:{{g}}房{{h}}厅{{i}}卫{{j}}厨{{k}}阳台 产权年限:{{l}}年 房屋状态:- 朝向:- 产权类型:- \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PageHeader.wxss b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PageHeader.wxss new file mode 100644 index 0000000..e69de29 diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PersonnelList.js b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PersonnelList.js new file mode 100644 index 0000000..ed87849 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PersonnelList.js @@ -0,0 +1,86 @@ +"use strict"; +const common_vendor = require("../../../../common/vendor.js"); +const gen_Enums = require("../../../../gen/Enums.js"); +require("../../../../common/libraries/request.js"); +require("../../../../common/store/useWeAppAuthStore.js"); +require("../../../../common/store/useWorkStore.js"); +const BILL_outstanding_fee_show_model = require("../model.js"); +require("../../../../gen/Apis.js"); +require("../../../../common/libraries/apiLoading.js"); +require("../../../../common/libraries/day.js"); +if (!Array) { + const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag"); + const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); + (_easycom_hs_enum_tag2 + _easycom_uni_icons2)(); +} +const _easycom_hs_enum_tag = () => "../../../../components/hs-enum-tag/hs-enum-tag.js"; +const _easycom_uni_icons = () => "../../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; +if (!Math) { + (_easycom_hs_enum_tag + _easycom_uni_icons)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "PersonnelList", + setup(__props) { + const handleCopyPhone = (phone) => { + if (phone) { + common_vendor.index.makePhoneCall({ + phoneNumber: phone + //仅为示例,并非真实的电话号码 + }); + } + }; + const handleNavigateToAddCustomer = (phone) => { + common_vendor.index.setClipboardData({ + data: phone, + success(res) { + setTimeout(() => { + common_vendor.index.qy.navigateToAddCustomer({ + success: function() { + } + }); + }, 1e3); + } + }); + }; + return (_ctx, _cache) => { + return { + a: common_vendor.f(common_vendor.unref(BILL_outstanding_fee_show_model.useModel).listData.value, (i, index, i0) => { + var _a, _b; + return common_vendor.e({ + a: (_a = i == null ? void 0 : i.list) == null ? void 0 : _a.length + }, ((_b = i == null ? void 0 : i.list) == null ? void 0 : _b.length) ? { + b: common_vendor.t(i == null ? void 0 : i.label), + c: common_vendor.f(i == null ? void 0 : i.list, (j, index2, i1) => { + return common_vendor.e({ + a: common_vendor.t(j == null ? void 0 : j.name), + b: common_vendor.t(j == null ? void 0 : j.phone), + c: (j == null ? void 0 : j.house_relation) === "Owner" + }, (j == null ? void 0 : j.house_relation) === "Owner" ? {} : { + d: "04f66b1b-0-" + i0 + "-" + i1, + e: common_vendor.p({ + Enums: common_vendor.unref(gen_Enums.HouseOccupantsResidentialRelationEnum), + value: j == null ? void 0 : j.residential_relation + }) + }, { + f: "04f66b1b-1-" + i0 + "-" + i1, + g: common_vendor.o(($event) => handleCopyPhone(j == null ? void 0 : j.phone), `personnel_${index2}`), + h: common_vendor.o(($event) => handleNavigateToAddCustomer(j == null ? void 0 : j.phone), `personnel_${index2}`), + i: `personnel_${index2}` + }); + }), + d: common_vendor.p({ + type: "star-filled", + size: "20", + color: (i == null ? void 0 : i.is_contact) ? "#FFD666" : "#DCDFE6" + }), + e: common_vendor.t((i == null ? void 0 : i.is_contact) ? "常用联系人" : "设为常用") + } : {}, { + f: `item_${index}` + }); + }) + }; + }; + } +}); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-04f66b1b"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/BILL/outstanding_fee/show/components/PersonnelList.vue"]]); +wx.createComponent(Component); diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PersonnelList.json b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PersonnelList.json new file mode 100644 index 0000000..17fa662 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PersonnelList.json @@ -0,0 +1,7 @@ +{ + "component": true, + "usingComponents": { + "hs-enum-tag": "../../../../components/hs-enum-tag/hs-enum-tag", + "uni-icons": "../../../../uni_modules/uni-icons/components/uni-icons/uni-icons" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PersonnelList.wxml b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PersonnelList.wxml new file mode 100644 index 0000000..9d1cac4 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PersonnelList.wxml @@ -0,0 +1 @@ +{{i.b}}{{j.a}}{{j.b}} 产权人 {{i.e}} 拨打电话 +微信 查看详情 \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PersonnelList.wxss b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PersonnelList.wxss new file mode 100644 index 0000000..401c1f9 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PersonnelList.wxss @@ -0,0 +1,68 @@ +.personnel_list.data-v-04f66b1b { + padding: 0 30rpx; +} +.personnel_list .title.data-v-04f66b1b { + font-size: 28rpx; + font-weight: 500; + color: #333; + padding: 30rpx 0; +} +.personnel_list .personnel_item.data-v-04f66b1b { + background-color: #f9fafb; + border-radius: 20rpx; +} +.personnel_list .personnel_item .personnel_item_type.data-v-04f66b1b { + color: #606266; + font-size: 24rpx; + border: 1px solid #c3c3c3; + border-radius: 100rpx; + padding: 5rpx 22rpx; + background-color: #fff; + display: inline-block; + margin-top: 5rpx; +} +.personnel_list .personnel_item_header.data-v-04f66b1b { + display: flex; + align-items: center; + justify-content: space-between; + padding: 30rpx 30rpx 20rpx 30rpx; +} +.personnel_list .personnel_item_header_left.data-v-04f66b1b { + color: #3d3d3d; + font-size: 28rpx; + font-weight: 500; + flex: 1; +} +.personnel_list .personnel_item_header_left text.data-v-04f66b1b { + font-weight: 400; + padding-left: 6rpx; +} +.personnel_list .personnel_item_header_right.data-v-04f66b1b { + font-size: 24rpx; + text-align: center; + color: #b1b3b8; +} +.personnel_list .personnel_item_header_right .label.data-v-04f66b1b { + padding-top: 7rpx; +} +.personnel_list .personnel_item_footer.data-v-04f66b1b { + display: flex; + align-items: center; + justify-content: space-between; + text-align: center; + padding: 20rpx 0; + border-top: 1rpx solid #ededed; +} +.personnel_list .personnel_item_footer .btn.data-v-04f66b1b { + flex: 1; + color: #333; + font-size: 28rpx; + padding: 10rpx 0; +} +.personnel_list .personnel_item_footer .btn.data-v-04f66b1b:first-child { + color: #0082fa; +} +.personnel_list .personnel_item_footer .btn.data-v-04f66b1b:nth-child(2) { + border-left: 1rpx solid #ededed; + border-right: 1rpx solid #ededed; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/WorkOrderList.js b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/WorkOrderList.js new file mode 100644 index 0000000..6055ebe --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/WorkOrderList.js @@ -0,0 +1,106 @@ +"use strict"; +const common_vendor = require("../../../../common/vendor.js"); +const gen_Enums = require("../../../../gen/Enums.js"); +const BILL_outstanding_fee_show_model = require("../model.js"); +const common_libraries_day = require("../../../../common/libraries/day.js"); +const BILL_outstanding_fee_show_method = require("../method.js"); +require("../../../../common/libraries/apiLoading.js"); +require("../../../../gen/Apis.js"); +require("../../../../common/libraries/request.js"); +require("../../../../common/store/useWeAppAuthStore.js"); +require("../../../../common/store/useWorkStore.js"); +require("../../../../common/libraries/sendWxWork.js"); +require("../../../../common/libraries/naviHelper.js"); +if (!Array) { + const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag"); + const _easycom_hs_level2 = common_vendor.resolveComponent("hs-level"); + const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon"); + (_easycom_hs_enum_tag2 + _easycom_hs_level2 + _easycom_up_icon2)(); +} +const _easycom_hs_enum_tag = () => "../../../../components/hs-enum-tag/hs-enum-tag.js"; +const _easycom_hs_level = () => "../../../../components/hs-level/hs-level.js"; +const _easycom_up_icon = () => "../../../../node-modules/uview-plus/components/u-icon/u-icon.js"; +if (!Math) { + (_easycom_hs_enum_tag + _easycom_hs_level + _easycom_up_icon)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "WorkOrderList", + setup(__props) { + let tabList = [ + { label: "全部", value: void 0 }, + { label: "待处理", value: "Pending" }, + { label: "处理中", value: "Processing" }, + { label: "已完成", value: "Completed" } + ]; + const toPageShow = (e) => { + common_vendor.index.navigateTo({ + url: `/WORKORDER/show/index?id=${e == null ? void 0 : e.id}` + }); + }; + const handleTabChange = (e) => { + var _a; + BILL_outstanding_fee_show_model.useModel.formData.value.status = e == null ? void 0 : e.value; + BILL_outstanding_fee_show_model.useModel.listData.value = []; + (_a = BILL_outstanding_fee_show_method.method) == null ? void 0 : _a.loadMore(1); + }; + return (_ctx, _cache) => { + var _a, _b; + return { + a: common_vendor.f(common_vendor.unref(tabList), (i, index, i0) => { + var _a2, _b2, _c; + return { + a: common_vendor.t(i == null ? void 0 : i.label), + b: `tab_${index}`, + c: common_vendor.n(`items ${((_c = (_b2 = (_a2 = common_vendor.unref(BILL_outstanding_fee_show_model.useModel)) == null ? void 0 : _a2.formData) == null ? void 0 : _b2.value) == null ? void 0 : _c.status) === (i == null ? void 0 : i.value) ? "active" : ""}`), + d: common_vendor.o(($event) => handleTabChange(i), `tab_${index}`) + }; + }), + b: common_vendor.f((_b = (_a = common_vendor.unref(BILL_outstanding_fee_show_model.useModel)) == null ? void 0 : _a.listData) == null ? void 0 : _b.value, (i, index, i0) => { + var _a2, _b2, _c, _d, _e; + return common_vendor.e({ + a: "fb0c29a5-0-" + i0, + b: common_vendor.p({ + value: i == null ? void 0 : i.type, + Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersTypeEnum) + }), + c: "fb0c29a5-1-" + i0, + d: common_vendor.p({ + level: i == null ? void 0 : i.level + }), + e: "fb0c29a5-2-" + i0, + f: common_vendor.p({ + value: i == null ? void 0 : i.status, + Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersStatusEnum) + }), + g: common_vendor.n(`btn_status status_${i == null ? void 0 : i.status}`), + h: common_vendor.t((_a2 = i == null ? void 0 : i.asset_house) == null ? void 0 : _a2.full_name), + i: common_vendor.t(i == null ? void 0 : i.content), + j: common_vendor.f(i == null ? void 0 : i.attachments, (k, idx, i1) => { + return { + a: k == null ? void 0 : k.url, + b: `img_${idx}` + }; + }), + k: (i == null ? void 0 : i.status) === "Pending" + }, (i == null ? void 0 : i.status) === "Pending" ? { + l: "fb0c29a5-3-" + i0, + m: common_vendor.p({ + name: "clock", + color: ((_b2 = common_vendor.unref(common_libraries_day.getTimeStatus)(i == null ? void 0 : i.expect_end_time)) == null ? void 0 : _b2.color) || "#000", + size: "14" + }), + n: common_vendor.t((_c = common_vendor.unref(common_libraries_day.getTimeStatus)(i == null ? void 0 : i.expect_end_time)) == null ? void 0 : _c.label), + o: common_vendor.n(`todo_done_card_footer status_${(_d = common_vendor.unref(common_libraries_day.getTimeStatus)(i == null ? void 0 : i.expect_end_time)) == null ? void 0 : _d.status}`) + } : {}, { + p: common_vendor.t(i == null ? void 0 : i.created_at), + q: `items_${index}`, + r: common_vendor.o(($event) => toPageShow(i), `items_${index}`), + s: common_vendor.n(`todo_done_card ${(i == null ? void 0 : i.status) === "Pending" ? `card_status_${(_e = common_vendor.unref(common_libraries_day.getTimeStatus)(i == null ? void 0 : i.expect_end_time)) == null ? void 0 : _e.status}` : ""}`) + }); + }) + }; + }; + } +}); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-fb0c29a5"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/BILL/outstanding_fee/show/components/WorkOrderList.vue"]]); +wx.createComponent(Component); diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/WorkOrderList.json b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/WorkOrderList.json new file mode 100644 index 0000000..e79f13f --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/WorkOrderList.json @@ -0,0 +1,8 @@ +{ + "component": true, + "usingComponents": { + "hs-enum-tag": "../../../../components/hs-enum-tag/hs-enum-tag", + "hs-level": "../../../../components/hs-level/hs-level", + "up-icon": "../../../../node-modules/uview-plus/components/u-icon/u-icon" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/WorkOrderList.wxml b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/WorkOrderList.wxml new file mode 100644 index 0000000..c3e9203 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/WorkOrderList.wxml @@ -0,0 +1 @@ +{{i.a}}{{i.h}}{{i.i}}{{i.n}}提报时间:{{i.p}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/WorkOrderList.wxss b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/WorkOrderList.wxss new file mode 100644 index 0000000..1f464d1 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/WorkOrderList.wxss @@ -0,0 +1,147 @@ +.todo_done_container.data-v-fb0c29a5 { + padding: 30rpx 30rpx 0 30rpx; +} +.todo_done_container .todo_done_container_head_tab.data-v-fb0c29a5 { + display: flex; + align-items: center; + justify-content: space-between; +} +.todo_done_container .todo_done_container_head_tab .items.data-v-fb0c29a5 { + color: #c3c3c3; + border: 1px solid #c3c3c3; + border-radius: 100rpx; + font-size: 24rpx; + color: #666; + height: 54rpx; + line-height: 54rpx; + width: 140rpx; + text-align: center; +} +.todo_done_container .todo_done_container_head_tab .active.data-v-fb0c29a5 { + color: #0082fa; + border: 1px solid #0082fa; +} +.todo_done_container .todo_done_card.data-v-fb0c29a5 { + background-color: #f9fafb; + border-radius: 20rpx; + padding: 0 30rpx 30rpx 30rpx; + margin-top: 30rpx; +} +.todo_done_container .todo_done_card .todo_done_card_header.data-v-fb0c29a5 { + display: flex; + align-items: center; + justify-content: space-between; + padding: 30rpx 0 25rpx 0; +} +.todo_done_container .todo_done_card .todo_done_card_header .group_type_btn.data-v-fb0c29a5 { + display: flex; + align-items: center; +} +.todo_done_container .todo_done_card .todo_done_card_header .type_btn.data-v-fb0c29a5 { + border-radius: 100rpx; + border: 1px solid #eee; + color: #3d3d3d; + font-size: 24rpx; + padding: 8rpx 20rpx; + margin-right: 16rpx; +} +.todo_done_container .todo_done_card .todo_done_card_header .btn_status.data-v-fb0c29a5 { + border-radius: 100rpx; + font-size: 28rpx; + padding: 7rpx 19rpx; +} +.todo_done_container .todo_done_card .todo_done_card_header .status_Pending.data-v-fb0c29a5 { + color: #f97316; + background-color: #fff7ed; +} +.todo_done_container .todo_done_card .todo_done_card_header .status_Processing.data-v-fb0c29a5 { + color: #0082fa; + background-color: #edf4ff; +} +.todo_done_container .todo_done_card .todo_done_card_header .status_Completed.data-v-fb0c29a5 { + color: #22c55e; + background-color: #f0fdf4; +} +.todo_done_container .todo_done_card .todo_done_card_header .status_Closed.data-v-fb0c29a5 { + color: #909399; + background-color: #f3f3f4; +} +.todo_done_container .todo_done_card .todo_done_card_houses_title.data-v-fb0c29a5 { + display: flex; + align-items: center; + font-size: 28rpx; + font-weight: 500; + padding: 10rpx 0; +} +.todo_done_container .todo_done_card .todo_done_card_houses_title .item.data-v-fb0c29a5 { + height: 30rpx; + line-height: 30rpx; +} +.todo_done_container .todo_done_card .todo_done_card_houses_title .item.data-v-fb0c29a5:last-child { + padding-left: 20rpx; + margin-left: 20rpx; + border-left: 1rpx solid #eee; +} +.todo_done_container .todo_done_card .todo_done_card_content.data-v-fb0c29a5 { + color: #444; + font-size: 28rpx; + padding: 5rpx 0 0 0; +} +.todo_done_container .todo_done_card_attachments.data-v-fb0c29a5 { + display: flex; + align-items: center; + flex-wrap: wrap; + padding-bottom: 30rpx; + border-bottom: 1rpx solid #eee; +} +.todo_done_container .todo_done_card_attachments .item.data-v-fb0c29a5 { + width: 140rpx; + height: 140rpx; + border-radius: 10rpx; + background-color: #f8f8f8; + margin-top: 25rpx; + margin-right: 25rpx; + overflow: hidden; +} +.todo_done_container .todo_done_card_attachments .item.data-v-fb0c29a5:nth-child(4n) { + margin-right: 0; +} +.todo_done_container .todo_done_card_attachments .item image.data-v-fb0c29a5 { + width: 100%; + height: 100%; +} +.todo_done_container .todo_done_card .todo_done_card_footer.data-v-fb0c29a5 { + color: #666666; + font-size: 28rpx; + padding: 12rpx 20rpx; + border-radius: 10rpx; + color: #24bc21; + background: linear-gradient(90deg, #edffed 0%, rgba(232, 255, 231, 0) 103%); + display: flex; + align-items: center; + margin: 25rpx 0 0 0; +} +.todo_done_container .todo_done_card .status_1.data-v-fb0c29a5 { + color: #24bc21; + background: linear-gradient(90deg, #edffed 0%, rgba(232, 255, 231, 0) 103%); +} +.todo_done_container .todo_done_card .status_2.data-v-fb0c29a5 { + color: #0082fa; + background: linear-gradient(90deg, #eff7ff 0%, rgba(231, 241, 255, 0) 103%); +} +.todo_done_container .todo_done_card .status_3.data-v-fb0c29a5 { + color: #f97316; + background: linear-gradient(90deg, #fff4ef 0%, rgba(255, 237, 231, 0) 103%); +} +.todo_done_container .todo_done_card .status_4.data-v-fb0c29a5 { + color: #ea0000; + background: linear-gradient(90deg, #ffe5e5 0%, rgba(255, 255, 255, 0) 103%); +} +.todo_done_container .todo_done_card .expected_time.data-v-fb0c29a5 { + padding: 20rpx 0 0 0; + color: #333; + font-size: 28rpx; +} +.todo_done_container .card_status_4.data-v-fb0c29a5 { + border-top: 6px solid #ef4444; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/show/index.js b/dist/dev/mp-weixin/BILL/outstanding_fee/show/index.js new file mode 100644 index 0000000..fc26690 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/show/index.js @@ -0,0 +1,91 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const BILL_outstanding_fee_show_model = require("./model.js"); +const BILL_outstanding_fee_show_method = require("./method.js"); +require("../../../common/libraries/day.js"); +require("../../../common/libraries/apiLoading.js"); +require("../../../gen/Apis.js"); +require("../../../common/libraries/request.js"); +require("../../../common/store/useWeAppAuthStore.js"); +require("../../../common/store/useWorkStore.js"); +require("../../../common/libraries/sendWxWork.js"); +require("../../../common/libraries/naviHelper.js"); +if (!Array) { + const _easycom_hs_tabs2 = common_vendor.resolveComponent("hs-tabs"); + const _easycom_cc_scroll_loading2 = common_vendor.resolveComponent("cc-scroll-loading"); + (_easycom_hs_tabs2 + _easycom_cc_scroll_loading2)(); +} +const _easycom_hs_tabs = () => "../../../components/hs-tabs/hs-tabs.js"; +const _easycom_cc_scroll_loading = () => "../../../common/components/cc-scroll-loading/cc-scroll-loading.js"; +if (!Math) { + (MyPageHeader + _easycom_hs_tabs + MyBillRecord + MyBillItem + MyWorkOrderList + MyPersonnelList + _easycom_cc_scroll_loading + MyPageFooter)(); +} +const MyBillItem = () => "./components/BillItem.js"; +const MyPageHeader = () => "./components/PageHeader.js"; +const MyPageFooter = () => "./components/PageFooter.js"; +const MyBillRecord = () => "./components/BillRecord.js"; +const MyWorkOrderList = () => "./components/WorkOrderList.js"; +const MyPersonnelList = () => "./components/PersonnelList.js"; +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + const tablist = [{ label: "房屋账单" }, { label: "房屋工单" }, { label: "房屋人员" }]; + common_vendor.onShow(async () => { + var _a, _b, _c, _d, _e; + await ((_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$onLaunched); + if ((_d = (_c = (_b = BILL_outstanding_fee_show_model.useModel) == null ? void 0 : _b.showData) == null ? void 0 : _c.value) == null ? void 0 : _d.id) { + BILL_outstanding_fee_show_model.useModel.houseBillsData.value = []; + BILL_outstanding_fee_show_model.useModel.collectionList.value = []; + (_e = BILL_outstanding_fee_show_method.method) == null ? void 0 : _e.handleTabsChange(BILL_outstanding_fee_show_model.useModel.tabsCurrent.value); + } + }); + common_vendor.onUnload(() => { + BILL_outstanding_fee_show_model.useModel.showData.value = void 0; + BILL_outstanding_fee_show_model.useModel.houseBillsData.value = []; + BILL_outstanding_fee_show_model.useModel.collectionList.value = []; + BILL_outstanding_fee_show_model.useModel.total_amount.value = 0; + }); + common_vendor.onLoad(async (e) => { + var _a, _b, _c; + BILL_outstanding_fee_show_model.useModel.tabsCurrent.value = 0; + await ((_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$onLaunched); + BILL_outstanding_fee_show_model.useModel.formData.value.asset_houses_id = e == null ? void 0 : e.id; + (_b = BILL_outstanding_fee_show_method.method) == null ? void 0 : _b.getShow(e == null ? void 0 : e.id); + (_c = BILL_outstanding_fee_show_method.method) == null ? void 0 : _c.getHouseBills(1); + }); + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e, _f; + return common_vendor.e({ + a: common_vendor.o((_a = common_vendor.unref(BILL_outstanding_fee_show_method.method)) == null ? void 0 : _a.handleTabsChange), + b: common_vendor.p({ + list: tablist, + current: common_vendor.unref(BILL_outstanding_fee_show_model.useModel).tabsCurrent.value + }), + c: common_vendor.unref(BILL_outstanding_fee_show_model.useModel).tabsCurrent.value === 0 + }, common_vendor.unref(BILL_outstanding_fee_show_model.useModel).tabsCurrent.value === 0 ? { + d: common_vendor.f((_c = (_b = common_vendor.unref(BILL_outstanding_fee_show_model.useModel)) == null ? void 0 : _b.houseBillsData) == null ? void 0 : _c.value, (i, index, i0) => { + return { + a: `items_${index}`, + b: "e72aaab2-4-" + i0 + ",e72aaab2-2", + c: common_vendor.p({ + item: i, + index + }) + }; + }) + } : {}, { + e: common_vendor.unref(BILL_outstanding_fee_show_model.useModel).tabsCurrent.value === 1 + }, common_vendor.unref(BILL_outstanding_fee_show_model.useModel).tabsCurrent.value === 1 ? {} : {}, { + f: common_vendor.unref(BILL_outstanding_fee_show_model.useModel).tabsCurrent.value === 2 + }, common_vendor.unref(BILL_outstanding_fee_show_model.useModel).tabsCurrent.value === 2 ? {} : {}, { + g: common_vendor.o((_d = common_vendor.unref(BILL_outstanding_fee_show_method.method)) == null ? void 0 : _d.loadMore), + h: common_vendor.p({ + meta: (_f = (_e = common_vendor.unref(BILL_outstanding_fee_show_model.useModel)) == null ? void 0 : _e.metaData) == null ? void 0 : _f.value + }), + i: common_vendor.n(`show_container_${common_vendor.unref(BILL_outstanding_fee_show_model.useModel).tabsCurrent.value}`) + }); + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/BILL/outstanding_fee/show/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/show/index.json b/dist/dev/mp-weixin/BILL/outstanding_fee/show/index.json new file mode 100644 index 0000000..0dc04ae --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/show/index.json @@ -0,0 +1,13 @@ +{ + "navigationBarTitleText": "房屋详情", + "usingComponents": { + "hs-tabs": "../../../components/hs-tabs/hs-tabs", + "cc-scroll-loading": "../../../common/components/cc-scroll-loading/cc-scroll-loading", + "my-bill-item": "./components/BillItem", + "my-page-header": "./components/PageHeader", + "my-page-footer": "./components/PageFooter", + "my-bill-record": "./components/BillRecord", + "my-work-order-list": "./components/WorkOrderList", + "my-personnel-list": "./components/PersonnelList" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/show/index.wxml b/dist/dev/mp-weixin/BILL/outstanding_fee/show/index.wxml new file mode 100644 index 0000000..95a23bd --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/show/index.wxml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/show/index.wxss b/dist/dev/mp-weixin/BILL/outstanding_fee/show/index.wxss new file mode 100644 index 0000000..c427312 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/show/index.wxss @@ -0,0 +1,105 @@ +.card_container_footer .btn:last-child { + padding-left: 30rpx; +} +page { + background-color: #f8f8f8; +} +.show_container_0 { + padding-bottom: calc(210rpx + constant(safe-area-inset-bottom)); + padding-bottom: calc(210rpx + env(safe-area-inset-bottom)); +} +.show_container_1, .show_container_2 { + padding-bottom: 50rpx; +} +.card_container { + background-color: #fff; + border-radius: 10rpx; + margin: 30rpx; +} +.container_header .card_cell_title { + display: flex; + align-items: center; + justify-content: space-between; + padding: 30rpx; +} +.container_header .type_text { + color: #2d75ff; + background-color: #e8f1ff; + font-size: 26rpx; + padding: 5rpx 15rpx; + border-radius: 6rpx; +} +.container_header .type_text_red { + background-color: #fff0eb; + color: #df3600; +} +.container_header .type_text_green { + background-color: #ebffe2; + color: #389e0d; +} +.container_header .card_cell_min { + display: flex; + align-items: center; + padding: 10rpx 30rpx 0 30rpx; + font-size: 25rpx; + color: #4b5563; +} +.container_header .total_fee { + display: flex; + align-items: center; + padding: 0 30rpx 30rpx 30rpx; + border-radius: 15rpx; + color: #df3600; + font-size: 32rpx; + font-weight: 500; +} +.container_header .total_fee text { + font-size: 25rpx; +} +.card_container_footer { + display: flex; + align-items: center; + justify-content: space-between; + padding: 0 30rpx 30rpx 30rpx; +} +.card_container_footer .btn { + flex: 1; +} +.container_info { + padding: 0 30rpx; +} +.container_info .info_title { + font-size: 28rpx; + font-weight: 500; + color: #333; + padding: 30rpx 0 20rpx 0; +} +.container_info .basic_item_info { + display: flex; + align-items: center; + flex-wrap: wrap; +} +.container_info .basic_item_info .item { + width: 50%; + color: #666; + font-size: 28rpx; + padding-bottom: 30rpx; +} +.collection_info { + background: linear-gradient(180deg, #f1f9ff 0%, #ffffff 50%); + margin: 30rpx; + padding: 30rpx; + display: flex; + align-items: center; + justify-content: space-between; + color: #3d3d3d; + font-size: 26rpx; + border-radius: 8rpx; +} +.collection_info .btn { + background-color: #0082fa; + font-size: 26rpx; + color: #fff; + border-radius: 100rpx; + padding: 10rpx 30rpx; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/show/method.js b/dist/dev/mp-weixin/BILL/outstanding_fee/show/method.js new file mode 100644 index 0000000..6f12d5f --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/show/method.js @@ -0,0 +1,208 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const common_libraries_apiLoading = require("../../../common/libraries/apiLoading.js"); +const gen_Apis = require("../../../gen/Apis.js"); +const BILL_outstanding_fee_show_model = require("./model.js"); +const common_libraries_sendWxWork = require("../../../common/libraries/sendWxWork.js"); +require("../../../common/libraries/request.js"); +const common_store_useWeAppAuthStore = require("../../../common/store/useWeAppAuthStore.js"); +require("../../../common/store/useWorkStore.js"); +const common_libraries_naviHelper = require("../../../common/libraries/naviHelper.js"); +const auth = common_store_useWeAppAuthStore.useWeAppAuthStore(); +const setCalculateTotalPrice = () => { + var _a, _b, _c; + let total_amount = 0; + (_c = (_b = (_a = BILL_outstanding_fee_show_model.useModel) == null ? void 0 : _a.houseBillsData) == null ? void 0 : _b.value) == null ? void 0 : _c.map((res) => { + var _a2; + (_a2 = res == null ? void 0 : res.bills) == null ? void 0 : _a2.map((k) => { + if (k == null ? void 0 : k.checked) { + total_amount += parseFloat(k.amount || 0); + } + }); + }); + BILL_outstanding_fee_show_model.useModel.total_amount.value = parseFloat(total_amount == null ? void 0 : total_amount.toFixed(2)); +}; +const getHouseBills = (type) => { + var _a, _b; + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Bill.HouseBills.List, { + ...(_b = (_a = BILL_outstanding_fee_show_model.useModel) == null ? void 0 : _a.formData) == null ? void 0 : _b.value, + type + }).then((res) => { + var _a2; + console.log(res == null ? void 0 : res.data, "res"); + (_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.map((k) => { + var _a3; + k.checked = true; + (_a3 = k == null ? void 0 : k.bills) == null ? void 0 : _a3.map((i) => { + i.checked = true; + }); + }); + BILL_outstanding_fee_show_model.useModel.houseBillsData.value = [...BILL_outstanding_fee_show_model.useModel.houseBillsData.value, ...res == null ? void 0 : res.data]; + BILL_outstanding_fee_show_model.useModel.metaData.value = res == null ? void 0 : res.meta; + setCalculateTotalPrice(); + }); +}; +const getHouseWorkOrders = () => { + var _a, _b; + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.WorkOrder.HouseWorkOrders.GetHouseWorkOrders, (_b = (_a = BILL_outstanding_fee_show_model.useModel) == null ? void 0 : _a.formData) == null ? void 0 : _b.value).then( + (res) => { + BILL_outstanding_fee_show_model.useModel.listData.value = [...BILL_outstanding_fee_show_model.useModel.listData.value, ...res == null ? void 0 : res.data]; + BILL_outstanding_fee_show_model.useModel.metaData.value = res == null ? void 0 : res.meta; + } + ); +}; +const getBillIds = () => { + var _a, _b, _c; + let bill_ids = []; + (_c = (_b = (_a = BILL_outstanding_fee_show_model.useModel) == null ? void 0 : _a.houseBillsData) == null ? void 0 : _b.value) == null ? void 0 : _c.map((res) => { + var _a2, _b2; + if ((_a2 = res == null ? void 0 : res.bills) == null ? void 0 : _a2.length) { + (_b2 = res == null ? void 0 : res.bills) == null ? void 0 : _b2.map((i) => { + if (i == null ? void 0 : i.checked) { + bill_ids == null ? void 0 : bill_ids.push(i == null ? void 0 : i.id); + } + }); + } + }); + if (!(bill_ids == null ? void 0 : bill_ids.length)) { + common_libraries_naviHelper.showToast("请至少选择一个月账单!"); + return false; + } + return bill_ids; +}; +const getHouseOccupants = () => { + var _a, _b; + let ownerArr = []; + let noOwnerArr = []; + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Archive.HouseOccupants.List, (_b = (_a = BILL_outstanding_fee_show_model.useModel) == null ? void 0 : _a.formData) == null ? void 0 : _b.value).then((res) => { + var _a2; + (_a2 = res.data) == null ? void 0 : _a2.map((i) => { + if ((i == null ? void 0 : i.house_relation) === "Owner") { + ownerArr == null ? void 0 : ownerArr.push(i); + } else { + noOwnerArr == null ? void 0 : noOwnerArr.push(i); + } + }); + BILL_outstanding_fee_show_model.useModel.listData.value = [ + { label: "产权人", list: ownerArr }, + { label: "非产权人", list: noOwnerArr } + ]; + }); +}; +const method = { + getShow: (id) => { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Bill.HouseBills.HouseArrearageAmount, { asset_houses_id: id }).then((res) => { + BILL_outstanding_fee_show_model.useModel.showData.value = res == null ? void 0 : res.data; + }); + }, + getHouseBills, + loadMore(page) { + BILL_outstanding_fee_show_model.useModel.formData.value.page = page; + if (BILL_outstanding_fee_show_model.useModel.tabsCurrent.value === 0) { + getHouseBills(1); + } + if (BILL_outstanding_fee_show_model.useModel.tabsCurrent.value === 1) { + getHouseWorkOrders(); + } + if (BILL_outstanding_fee_show_model.useModel.tabsCurrent.value === 2) { + getHouseOccupants(); + } + }, + handleTabsChange(idx) { + BILL_outstanding_fee_show_model.useModel.tabsCurrent.value = idx; + BILL_outstanding_fee_show_model.useModel.formData.value.page = 1; + if (idx === 0) { + BILL_outstanding_fee_show_model.useModel.houseBillsData.value = []; + getHouseBills(1); + } + if (idx === 1) { + BILL_outstanding_fee_show_model.useModel.listData.value = []; + getHouseWorkOrders(); + } + if (idx === 2) { + BILL_outstanding_fee_show_model.useModel.listData.value = []; + getHouseOccupants(); + } + }, + handleQRCode() { + var _a, _b, _c, _d; + let bill_ids = getBillIds() || []; + if (bill_ids == null ? void 0 : bill_ids.length) { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.HouseOrder.HouseOrders.Store, { + bill_ids: bill_ids || [], + total_payable_amount: (_b = (_a = BILL_outstanding_fee_show_model.useModel) == null ? void 0 : _a.total_amount) == null ? void 0 : _b.value, + amount: (_d = (_c = BILL_outstanding_fee_show_model.useModel) == null ? void 0 : _c.total_amount) == null ? void 0 : _d.value + }).then((res) => { + var _a2, _b2, _c2, _d2, _e, _f, _g, _h, _i, _j, _k; + common_vendor.index.navigateTo({ + url: `/BILL/poster/index?id=${(_b2 = (_a2 = BILL_outstanding_fee_show_model.useModel.showData) == null ? void 0 : _a2.value) == null ? void 0 : _b2.id}&order_id=${(_c2 = res == null ? void 0 : res.data) == null ? void 0 : _c2.id}&time=${(_d2 = res == null ? void 0 : res.data) == null ? void 0 : _d2.created_at}&name=${(_f = (_e = BILL_outstanding_fee_show_model.useModel.showData) == null ? void 0 : _e.value) == null ? void 0 : _f.full_name}&amount=${((_h = (_g = BILL_outstanding_fee_show_model.useModel) == null ? void 0 : _g.total_amount) == null ? void 0 : _h.value) || ((_k = (_j = (_i = BILL_outstanding_fee_show_model.useModel) == null ? void 0 : _i.showData) == null ? void 0 : _j.value) == null ? void 0 : _k.total_pending_amount)}` + }); + }); + } + }, + // handleSelect(idx: number) { + // let isAll = true + // let is = useModel.dataList.value[idx].is_select + // useModel.dataList.value[idx].is_select = !is + // useModel.dataList.value?.map((res: { is_select: boolean }) => { + // if (!res.is_select) { + // isAll = false + // } + // }) + // useModel.allSelectStatus.value = isAll + // }, + // handleAllSelect() { + // useModel.allSelectStatus.value = !useModel?.allSelectStatus?.value + // useModel.dataList.value?.map((res: any) => { + // res.is_select = useModel.allSelectStatus.value + // }) + // }, + handleNotice(res) { + let arr = [ + { + asset_houses_id: res == null ? void 0 : res.id, + total_unpaid_amount: parseFloat(res == null ? void 0 : res.total_pending_amount) + } + ]; + common_vendor.index.navigateTo({ + url: `/BILL/information_template/index?data=${JSON.stringify(arr)}` + }); + }, + setCalculateTotalPrice, + handleSelectExternalContact() { + var _a; + let bill_ids = getBillIds() || []; + console.log(bill_ids, "bill_ids"); + if (!(bill_ids == null ? void 0 : bill_ids.length)) { + return false; + } + if (((_a = auth == null ? void 0 : auth.data) == null ? void 0 : _a.environment) === "wxwork") { + common_vendor.index.qy.getContext({ + success: function(res) { + var _a2, _b, _c; + let entry = res.entry; + if (entry === "single_chat_tools") { + common_libraries_sendWxWork.sendChatMessage({ + page: `/INDEX/bill_order/index.html?bill_ids=${JSON.stringify(bill_ids)}&house_id=${BILL_outstanding_fee_show_model.useModel.formData.value.asset_houses_id}`, + title: `分享给您${(_c = (_b = (_a2 = BILL_outstanding_fee_show_model.useModel) == null ? void 0 : _a2.showData) == null ? void 0 : _b.value) == null ? void 0 : _c.full_name}物业账单`, + imgUrl: "https://pay-prod-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01K5B5RY2TQQAJ1GT2RZSK426V.jpg" + }); + } else { + common_libraries_sendWxWork.navigateToMiniProgram({ + path: "/pages/forward/index?source=OutstandingFeeList", + envVersion: "develop", + extraData: { source: "OutstandingFeeList" } + }); + } + } + }); + } else { + common_libraries_sendWxWork.navigateToMiniProgram({ + path: "/pages/forward/index?source=OutstandingFeeList", + envVersion: "develop", + extraData: { source: "OutstandingFeeList" } + }); + } + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/show/model.js b/dist/dev/mp-weixin/BILL/outstanding_fee/show/model.js new file mode 100644 index 0000000..829e665 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/show/model.js @@ -0,0 +1,18 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +require("../../../common/libraries/day.js"); +const useModel = { + formData: common_vendor.ref({ page: 1 }), + listData: common_vendor.ref([]), + current: common_vendor.ref(0), + meta: common_vendor.ref({}), + showData: common_vendor.ref({}), + metaData: common_vendor.ref({}), + tabsCurrent: common_vendor.ref(0), + houseBillsData: common_vendor.ref([]), + allSelectStatus: common_vendor.ref(false), + headTabsList: common_vendor.ref([]), + collectionList: common_vendor.ref([]), + total_amount: common_vendor.ref(0) +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/BILL/poster/index.js b/dist/dev/mp-weixin/BILL/poster/index.js new file mode 100644 index 0000000..38e909b --- /dev/null +++ b/dist/dev/mp-weixin/BILL/poster/index.js @@ -0,0 +1,27 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const BILL_poster_method = require("./method.js"); +require("./model.js"); +require("../../gen/Apis.js"); +require("../../common/libraries/request.js"); +require("../../common/store/useWeAppAuthStore.js"); +require("../../common/libraries/apiLoading.js"); +require("../../common/store/useWorkStore.js"); +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + common_vendor.onLoad((e) => { + BILL_poster_method.method.setCanvas(e); + }); + return (_ctx, _cache) => { + return { + a: common_vendor.o( + //@ts-ignore + (...args) => common_vendor.unref(BILL_poster_method.method).onDownloadPosters && common_vendor.unref(BILL_poster_method.method).onDownloadPosters(...args) + ) + }; + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-9912baa1"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/BILL/poster/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/BILL/poster/index.json b/dist/dev/mp-weixin/BILL/poster/index.json new file mode 100644 index 0000000..31d4724 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/poster/index.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "二维码收款", + "usingComponents": {} +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/poster/index.wxml b/dist/dev/mp-weixin/BILL/poster/index.wxml new file mode 100644 index 0000000..01960a3 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/poster/index.wxml @@ -0,0 +1 @@ +下载海报 \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/poster/index.wxss b/dist/dev/mp-weixin/BILL/poster/index.wxss new file mode 100644 index 0000000..b03b933 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/poster/index.wxss @@ -0,0 +1,67 @@ +.poster_main.data-v-9912baa1 { + width: 100vw; + height: 100vh; + background-color: #f1f2f5; +} +.poster_canvas.data-v-9912baa1 { + padding-top: 30rpx; + height: 534px; +} +#firstCanvas.data-v-9912baa1 { + margin: 0 auto; +} +.poster_func.data-v-9912baa1 { + margin-top: 40rpx; + display: flex; + flex-direction: column; + align-items: center; +} +.poster_func_choice.data-v-9912baa1 { + font-size: 28rpx; + font-weight: 400; + color: #0082fa; + text-decoration: underline; +} +.poster_func_download.data-v-9912baa1, .poster_func_link.data-v-9912baa1 { + width: 500rpx; + height: 80rpx; + font-size: 28rpx; + border-radius: 66rpx; + display: flex; + justify-content: center; + align-items: center; + background-color: #0082fa; + margin-top: 30rpx; + color: #fff; +} +.poster_func_link.data-v-9912baa1 { + background-color: #fff; +} +.image_popup.data-v-9912baa1 { + display: flex; + justify-content: center; + align-items: center; +} +.image_popup_card.data-v-9912baa1 { + width: 90vw; + z-index: 200; +} +.image_popup_card_title.data-v-9912baa1 { + text-align: center; + font-size: 36rpx; + font-weight: 600; +} +.image_popup_card_title_text.data-v-9912baa1 { + margin: 20rpx 0 60rpx 0; +} +.image_popup_card_enter.data-v-9912baa1 { + margin: 100rpx 0 20rpx 0; +} +.image_popup_card_swiper_item.data-v-9912baa1 { + display: flex; + justify-content: center; +} +.image_popup_card_swiper_image.data-v-9912baa1 { + width: 480rpx; + height: 320rpx; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/poster/method.js b/dist/dev/mp-weixin/BILL/poster/method.js new file mode 100644 index 0000000..d4ae2ff --- /dev/null +++ b/dist/dev/mp-weixin/BILL/poster/method.js @@ -0,0 +1,98 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const gen_Apis = require("../../gen/Apis.js"); +const BILL_poster_model = require("./model.js"); +const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js"); +const getQrCode = (data, fun) => { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.HouseOrder.HouseOrders.GetPayQrCode, { + id: data == null ? void 0 : data.order_id + }).then((res) => { + var _a; + const fs = common_vendor.index.getFileSystemManager(); + var times = new Date().getTime(); + var codeimg = common_vendor.wx$1.env.USER_DATA_PATH + "/" + times + ".png"; + fs.writeFile({ + filePath: codeimg, + data: (_a = res == null ? void 0 : res.data) == null ? void 0 : _a.qr_code.slice(22), + encoding: "base64", + success: () => { + return fun == null ? void 0 : fun(codeimg); + } + }); + }); +}; +const method = { + //method + getHouseDetail(id) { + }, + updateCoverInfo() { + this.setCanvas(BILL_poster_model.useModel.houseDetail.value); + }, + setCanvas(data) { + const context = common_vendor.index.createCanvasContext("firstCanvas"); + getQrCode(data, (url) => { + common_vendor.index.downloadFile({ + url: "https://jyw-dev-1322946948.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01K2GQ7CEB6DJ9BN8HMRV8SSWE.png", + success(res) { + context.drawImage(res.tempFilePath, 0, 0, 345, 504); + context.font = "bold 18px Arial"; + context.setTextAlign("center"); + context.fillText((data == null ? void 0 : data.name) || "-", 345 / 2, 45); + context.font = "bold 16px Arial"; + context.fillStyle = "#DF3600"; + context.fillText(`缴费金额:${data == null ? void 0 : data.amount}元`, 345 / 2, 78); + context.font = "14px Arial"; + context.fillStyle = "#333"; + context.fillText("请使用微信扫码支付", 345 / 2, 450); + context.font = "12px Arial"; + context.fillStyle = "#666"; + context.fillText(`生成时间:${data == null ? void 0 : data.time}`, 345 / 2, 475); + context.drawImage(url, 72.5, 150, 200, 200); + context.restore(); + context.draw(); + } + }); + console.log(url, "二维码路径"); + }); + }, + onDownloadPosters() { + common_vendor.index.showLoading({ + title: "正在保存中..." + }); + common_vendor.index.canvasToTempFilePath({ + x: 0, + y: 0, + width: 345, + height: 504, + destWidth: 345 * 4, + destHeight: 504 * 4, + canvasId: "firstCanvas", + success: function(res) { + common_vendor.index.hideLoading(); + common_vendor.index.saveImageToPhotosAlbum({ + filePath: res.tempFilePath, + success: function() { + console.log("save success"); + common_vendor.index.hideLoading(); + }, + fail() { + common_vendor.index.hideLoading(); + } + }); + console.log(res.tempFilePath); + }, + fail() { + common_vendor.index.hideLoading(); + } + }); + }, + initActualImages: async (id) => { + }, + choiceImgPopControl() { + var _a; + this.initActualImages((_a = BILL_poster_model.useModel.houseDetail.value) == null ? void 0 : _a.id); + }, + copyLink() { + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/BILL/poster/model.js b/dist/dev/mp-weixin/BILL/poster/model.js new file mode 100644 index 0000000..e829716 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/poster/model.js @@ -0,0 +1,19 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const useModel = { + //model + coverBgImg: "https://jyw-1322946948.cos.ap-guangzhou.myqcloud.com/upload/gjEDA6cmTu5FnMCWzyGSE.png", + coverImg: common_vendor.ref(""), + houseDetail: common_vendor.ref({}), + qrCodeByBase64: common_vendor.ref(""), + choiceImgShow: common_vendor.ref(false), + posterStyle: { + background: "url('https://jyw-1322946948.cos.ap-guangzhou.myqcloud.com/upload/jgKWriyfZrPSIBuHrlfNG.png')", + backgroundSize: "100% 100%", + marginTop: "30rpx", + padding: "30rpx" + }, + houseActualImages: common_vendor.ref([]), + posterImage: common_vendor.ref("") +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/BILL/record/payment/index.js b/dist/dev/mp-weixin/BILL/record/payment/index.js new file mode 100644 index 0000000..16ae3c4 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/record/payment/index.js @@ -0,0 +1,73 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const gen_Enums = require("../../../gen/Enums.js"); +const BILL_record_payment_method = require("./method.js"); +const BILL_record_payment_model = require("./model.js"); +require("../../../common/libraries/apiLoading.js"); +require("../../../gen/Apis.js"); +require("../../../common/libraries/request.js"); +require("../../../common/store/useWeAppAuthStore.js"); +require("../../../common/store/useWorkStore.js"); +if (!Array) { + const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); + const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag"); + const _easycom_cc_scroll_loading2 = common_vendor.resolveComponent("cc-scroll-loading"); + (_easycom_uni_icons2 + _easycom_hs_enum_tag2 + _easycom_cc_scroll_loading2)(); +} +const _easycom_uni_icons = () => "../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; +const _easycom_hs_enum_tag = () => "../../../components/hs-enum-tag/hs-enum-tag.js"; +const _easycom_cc_scroll_loading = () => "../../../common/components/cc-scroll-loading/cc-scroll-loading.js"; +if (!Math) { + (_easycom_uni_icons + _easycom_hs_enum_tag + _easycom_cc_scroll_loading)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + const billsShow = common_vendor.ref(false); + common_vendor.onLoad((e) => { + var _a; + console.log(e, "e"); + BILL_record_payment_model.useModel.formData.value.asset_houses_id = e == null ? void 0 : e.asset_houses_id; + (_a = BILL_record_payment_method.method) == null ? void 0 : _a.getHouseBills(); + }); + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e; + return { + a: common_vendor.f((_b = (_a = common_vendor.unref(BILL_record_payment_model.useModel)) == null ? void 0 : _a.listData) == null ? void 0 : _b.value, (i, index, i0) => { + return common_vendor.e({ + a: common_vendor.t((i == null ? void 0 : i.display_text) || "-"), + b: common_vendor.t(i == null ? void 0 : i.total_paid_amount_monthly), + c: "410f6c84-1-" + i0 + ",410f6c84-0", + d: common_vendor.o(($event) => billsShow.value = !billsShow.value, `items_${index}`) + }, billsShow.value ? { + e: common_vendor.f(i == null ? void 0 : i.bills, (k, idx, i1) => { + return { + a: "410f6c84-2-" + i0 + "-" + i1 + ",410f6c84-0", + b: common_vendor.p({ + value: k == null ? void 0 : k.type, + Enums: common_vendor.unref(gen_Enums.HouseBillsTypeEnum) + }), + c: common_vendor.t(k == null ? void 0 : k.total_payable_amount), + d: `bills_${index}_${idx}` + }; + }) + } : {}, { + f: `items_${index}` + }); + }), + b: common_vendor.p({ + type: "down", + size: "15", + color: "#666" + }), + c: billsShow.value, + d: common_vendor.o((_c = common_vendor.unref(BILL_record_payment_method.method)) == null ? void 0 : _c.loadMore), + e: common_vendor.p({ + meta: (_e = (_d = common_vendor.unref(BILL_record_payment_model.useModel)) == null ? void 0 : _d.metaData) == null ? void 0 : _e.value + }) + }; + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/BILL/record/payment/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/BILL/record/payment/index.json b/dist/dev/mp-weixin/BILL/record/payment/index.json new file mode 100644 index 0000000..733b0d3 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/record/payment/index.json @@ -0,0 +1,8 @@ +{ + "navigationBarTitleText": "缴费记录", + "usingComponents": { + "uni-icons": "../../../uni_modules/uni-icons/components/uni-icons/uni-icons", + "hs-enum-tag": "../../../components/hs-enum-tag/hs-enum-tag", + "cc-scroll-loading": "../../../common/components/cc-scroll-loading/cc-scroll-loading" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/record/payment/index.wxml b/dist/dev/mp-weixin/BILL/record/payment/index.wxml new file mode 100644 index 0000000..1d1e363 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/record/payment/index.wxml @@ -0,0 +1 @@ +{{i.a}} ¥{{i.b}} ¥{{k.c}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/record/payment/index.wxss b/dist/dev/mp-weixin/BILL/record/payment/index.wxss new file mode 100644 index 0000000..2d3d7f3 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/record/payment/index.wxss @@ -0,0 +1,36 @@ +page { + background-color: #f8f8f8; +} +.payment_records_item { + margin: 30rpx 30rpx 0 30rpx; + background-color: #fff; + padding: 30rpx; + border-radius: 10rpx; +} +.payment_records_item .payment_records_item_cell { + display: flex; + align-items: center; + justify-content: space-between; + font-size: 29rpx; + color: #333; +} +.payment_records_item .payment_records_item_cell .header_right_content { + display: flex; + align-items: center; +} +.payment_records_item .payment_records_item_cell .header_right_content text { + color: #df3600; +} +.payment_records_item .items_body { + background-color: #f7f8fc; + padding: 20rpx; + border-radius: 15rpx; + margin: 20rpx 0 0 0; +} +.payment_records_item .items_body .bills_cell { + display: flex; + align-items: center; + justify-content: space-between; + color: #333; + font-size: 28rpx; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/record/payment/method.js b/dist/dev/mp-weixin/BILL/record/payment/method.js new file mode 100644 index 0000000..21a4b5b --- /dev/null +++ b/dist/dev/mp-weixin/BILL/record/payment/method.js @@ -0,0 +1,22 @@ +"use strict"; +const common_libraries_apiLoading = require("../../../common/libraries/apiLoading.js"); +const gen_Apis = require("../../../gen/Apis.js"); +const BILL_record_payment_model = require("./model.js"); +const getHouseBills = () => { + var _a, _b; + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Bill.HouseBills.List, { + ...(_b = (_a = BILL_record_payment_model.useModel) == null ? void 0 : _a.formData) == null ? void 0 : _b.value, + type: 2 + }).then((res) => { + BILL_record_payment_model.useModel.listData.value = [...BILL_record_payment_model.useModel.listData.value, ...res == null ? void 0 : res.data]; + BILL_record_payment_model.useModel.metaData.value = res == null ? void 0 : res.meta; + }); +}; +const method = { + getHouseBills, + loadMore(page) { + BILL_record_payment_model.useModel.formData.value.page = page; + getHouseBills(); + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/BILL/record/payment/model.js b/dist/dev/mp-weixin/BILL/record/payment/model.js new file mode 100644 index 0000000..28e5e54 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/record/payment/model.js @@ -0,0 +1,8 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const useModel = { + formData: common_vendor.ref({ page: 1 }), + listData: common_vendor.ref([]), + metaData: common_vendor.ref({}) +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/BILL/record/urge_payment/index.js b/dist/dev/mp-weixin/BILL/record/urge_payment/index.js new file mode 100644 index 0000000..f63b95e --- /dev/null +++ b/dist/dev/mp-weixin/BILL/record/urge_payment/index.js @@ -0,0 +1,105 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const gen_Enums = require("../../../gen/Enums.js"); +const BILL_record_urge_payment_method = require("./method.js"); +const BILL_record_urge_payment_model = require("./model.js"); +require("../../../common/libraries/apiLoading.js"); +require("../../../gen/Apis.js"); +require("../../../common/libraries/request.js"); +require("../../../common/store/useWeAppAuthStore.js"); +require("../../../common/store/useWorkStore.js"); +if (!Array) { + const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag"); + const _easycom_up_steps_item2 = common_vendor.resolveComponent("up-steps-item"); + const _easycom_up_steps2 = common_vendor.resolveComponent("up-steps"); + const _easycom_cc_scroll_loading2 = common_vendor.resolveComponent("cc-scroll-loading"); + const _easycom_hs_footer2 = common_vendor.resolveComponent("hs-footer"); + (_easycom_hs_enum_tag2 + _easycom_up_steps_item2 + _easycom_up_steps2 + _easycom_cc_scroll_loading2 + _easycom_hs_footer2)(); +} +const _easycom_hs_enum_tag = () => "../../../components/hs-enum-tag/hs-enum-tag.js"; +const _easycom_up_steps_item = () => "../../../node-modules/uview-plus/components/u-steps-item/u-steps-item.js"; +const _easycom_up_steps = () => "../../../node-modules/uview-plus/components/u-steps/u-steps.js"; +const _easycom_cc_scroll_loading = () => "../../../common/components/cc-scroll-loading/cc-scroll-loading.js"; +const _easycom_hs_footer = () => "../../../components/hs-footer/hs-footer.js"; +if (!Math) { + (_easycom_hs_enum_tag + _easycom_up_steps_item + _easycom_up_steps + _easycom_cc_scroll_loading + _easycom_hs_footer)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + const toAdd = () => { + var _a, _b, _c, _d, _e, _f; + common_vendor.index.navigateTo({ + url: `/BILL/outstanding_fee/add/index?amount=${(_c = (_b = (_a = BILL_record_urge_payment_model.useModel) == null ? void 0 : _a.formData) == null ? void 0 : _b.value) == null ? void 0 : _c.total_pending_amount}&id=${(_f = (_e = (_d = BILL_record_urge_payment_model.useModel) == null ? void 0 : _d.formData) == null ? void 0 : _e.value) == null ? void 0 : _f.asset_houses_id}` + }); + }; + common_vendor.onShow(() => { + var _a, _b, _c, _d; + if ((_c = (_b = (_a = BILL_record_urge_payment_model.useModel) == null ? void 0 : _a.listData) == null ? void 0 : _b.value) == null ? void 0 : _c.length) { + BILL_record_urge_payment_model.useModel.listData.value = []; + (_d = BILL_record_urge_payment_method.method) == null ? void 0 : _d.loadMore(1); + } + }); + common_vendor.onLoad((e) => { + var _a; + console.log(e, "e"); + BILL_record_urge_payment_model.useModel.formData.value = { + asset_houses_id: e == null ? void 0 : e.asset_houses_id, + total_pending_amount: e == null ? void 0 : e.total_pending_amount, + page: 1 + }; + (_a = BILL_record_urge_payment_method.method) == null ? void 0 : _a.getHouseCollectionRecords(); + }); + common_vendor.onUnload(() => { + BILL_record_urge_payment_model.useModel.listData.value = []; + }); + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e, _f, _g, _h; + return { + a: common_vendor.f((_b = (_a = common_vendor.unref(BILL_record_urge_payment_model.useModel)) == null ? void 0 : _a.listData) == null ? void 0 : _b.value, (i, index, i0) => { + var _a2; + return common_vendor.e({ + a: common_vendor.t(i == null ? void 0 : i.created_at), + b: common_vendor.t((_a2 = i == null ? void 0 : i.company_employee) == null ? void 0 : _a2.name), + c: common_vendor.t(i == null ? void 0 : i.total_unpaid_amount), + d: i == null ? void 0 : i.collection_result + }, (i == null ? void 0 : i.collection_result) ? { + e: "30ebd59a-3-" + i0 + "," + ("30ebd59a-2-" + i0), + f: common_vendor.p({ + value: i == null ? void 0 : i.collection_result, + Enums: common_vendor.unref(gen_Enums.HouseCollectionRecordsCollectionResultEnum) + }), + g: common_vendor.n(`tag_${i == null ? void 0 : i.collection_result}`) + } : {}, { + h: "30ebd59a-4-" + i0 + "," + ("30ebd59a-2-" + i0), + i: common_vendor.p({ + value: i == null ? void 0 : i.channel, + Enums: common_vendor.unref(gen_Enums.HouseCollectionTasksChannelEnum) + }), + j: i == null ? void 0 : i.collection_content + }, (i == null ? void 0 : i.collection_content) ? { + k: common_vendor.t(i == null ? void 0 : i.collection_content) + } : {}, { + l: `pay_item_${index}`, + m: "30ebd59a-2-" + i0 + ",30ebd59a-1" + }); + }), + b: common_vendor.p({ + direction: "column", + dot: true, + current: ((_e = (_d = (_c = common_vendor.unref(BILL_record_urge_payment_model.useModel)) == null ? void 0 : _c.listData) == null ? void 0 : _d.value) == null ? void 0 : _e.length) - 1 + }), + c: common_vendor.o((_f = common_vendor.unref(BILL_record_urge_payment_method.method)) == null ? void 0 : _f.loadMore), + d: common_vendor.p({ + meta: (_h = (_g = common_vendor.unref(BILL_record_urge_payment_model.useModel)) == null ? void 0 : _g.metaData) == null ? void 0 : _h.value + }), + e: common_vendor.o(toAdd), + f: common_vendor.p({ + btnParimaryName: "新增催缴记录" + }) + }; + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/BILL/record/urge_payment/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/BILL/record/urge_payment/index.json b/dist/dev/mp-weixin/BILL/record/urge_payment/index.json new file mode 100644 index 0000000..0be0864 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/record/urge_payment/index.json @@ -0,0 +1,10 @@ +{ + "navigationBarTitleText": "催费记录", + "usingComponents": { + "hs-enum-tag": "../../../components/hs-enum-tag/hs-enum-tag", + "up-steps-item": "../../../node-modules/uview-plus/components/u-steps-item/u-steps-item", + "up-steps": "../../../node-modules/uview-plus/components/u-steps/u-steps", + "cc-scroll-loading": "../../../common/components/cc-scroll-loading/cc-scroll-loading", + "hs-footer": "../../../components/hs-footer/hs-footer" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/record/urge_payment/index.wxml b/dist/dev/mp-weixin/BILL/record/urge_payment/index.wxml new file mode 100644 index 0000000..0ee2f80 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/record/urge_payment/index.wxml @@ -0,0 +1 @@ +{{i.a}} 操作人:{{i.b}} 催缴金额:{{i.c}}元 催缴结果: 催缴方式: 催缴结果:{{i.k}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/record/urge_payment/index.wxss b/dist/dev/mp-weixin/BILL/record/urge_payment/index.wxss new file mode 100644 index 0000000..661bbaa --- /dev/null +++ b/dist/dev/mp-weixin/BILL/record/urge_payment/index.wxss @@ -0,0 +1,43 @@ +page { + background-color: #f8f8f8; +} +.steps_content { + padding: 30rpx 30rpx 0 30rpx; + padding-bottom: calc(120rpx + constant(safe-area-inset-bottom)); + padding-bottom: calc(120rpx + env(safe-area-inset-bottom)); +} +.desc_title { + display: flex; + align-items: center; + justify-content: space-between; + font-size: 26rpx; + color: #666666; +} +.desc_title text { + font-size: 24rpx; +} +.desc_content { + background-color: #fff; + padding: 30rpx 30rpx 15rpx 30rpx; + border-radius: 10rpx; + margin: 20rpx 0; +} +.desc_content .desc_cell { + color: #666; + font-size: 25rpx; + padding-bottom: 15rpx; + display: flex; + align-items: center; +} +.desc_content .desc_cell .tag_RefuseToPay { + color: #df3600; +} +.desc_content .desc_cell .tag_PromiseToPay { + color: #00b75f; +} +.desc_content .desc_cell .tag_NotReached { + color: #666666; +} +.desc_content .desc_cell .tag_NeedFollowUp { + color: #0082fa; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/record/urge_payment/method.js b/dist/dev/mp-weixin/BILL/record/urge_payment/method.js new file mode 100644 index 0000000..65b489f --- /dev/null +++ b/dist/dev/mp-weixin/BILL/record/urge_payment/method.js @@ -0,0 +1,21 @@ +"use strict"; +const common_libraries_apiLoading = require("../../../common/libraries/apiLoading.js"); +const gen_Apis = require("../../../gen/Apis.js"); +const BILL_record_urge_payment_model = require("./model.js"); +const getHouseCollectionRecords = () => { + var _a, _b; + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Collection.HouseCollectionRecords.List, (_b = (_a = BILL_record_urge_payment_model.useModel) == null ? void 0 : _a.formData) == null ? void 0 : _b.value).then( + (res) => { + BILL_record_urge_payment_model.useModel.listData.value = [...BILL_record_urge_payment_model.useModel.listData.value, ...res == null ? void 0 : res.data]; + BILL_record_urge_payment_model.useModel.metaData.value = res == null ? void 0 : res.meta; + } + ); +}; +const method = { + getHouseCollectionRecords, + loadMore(page) { + BILL_record_urge_payment_model.useModel.formData.value.page = page; + getHouseCollectionRecords(); + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/BILL/record/urge_payment/model.js b/dist/dev/mp-weixin/BILL/record/urge_payment/model.js new file mode 100644 index 0000000..28e5e54 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/record/urge_payment/model.js @@ -0,0 +1,8 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const useModel = { + formData: common_vendor.ref({ page: 1 }), + listData: common_vendor.ref([]), + metaData: common_vendor.ref({}) +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/BILL/send_bill/components/pickerSelectHouse.js b/dist/dev/mp-weixin/BILL/send_bill/components/pickerSelectHouse.js new file mode 100644 index 0000000..950dcba --- /dev/null +++ b/dist/dev/mp-weixin/BILL/send_bill/components/pickerSelectHouse.js @@ -0,0 +1,47 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const BILL_send_bill_method = require("../method.js"); +const BILL_send_bill_model = require("../model.js"); +require("../../../common/libraries/naviHelper.js"); +require("../../../gen/Apis.js"); +require("../../../common/libraries/request.js"); +require("../../../common/store/useWeAppAuthStore.js"); +require("../../../common/libraries/apiLoading.js"); +require("../../../common/store/useWorkStore.js"); +require("../../../common/libraries/userUserLogin.js"); +require("../../../common/libraries/sendWxWork.js"); +if (!Array) { + const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); + _easycom_uni_icons2(); +} +const _easycom_uni_icons = () => "../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; +if (!Math) { + _easycom_uni_icons(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "pickerSelectHouse", + props: ["data"], + setup(__props) { + const props = __props; + return (_ctx, _cache) => { + var _a, _b, _c, _d; + return { + a: common_vendor.t(((_c = (_b = (_a = common_vendor.unref(BILL_send_bill_model.useModel)) == null ? void 0 : _a.currentHouses) == null ? void 0 : _b.value) == null ? void 0 : _c.name) || ""), + b: common_vendor.p({ + type: "right", + size: "12" + }), + c: (_d = props == null ? void 0 : props.data) == null ? void 0 : _d.houseList, + d: common_vendor.o( + //@ts-ignore + (...args) => { + var _a2, _b2; + return ((_a2 = common_vendor.unref(BILL_send_bill_method.method)) == null ? void 0 : _a2.handleChange) && ((_b2 = common_vendor.unref(BILL_send_bill_method.method)) == null ? void 0 : _b2.handleChange(...args)); + } + ) + }; + }; + } +}); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/BILL/send_bill/components/pickerSelectHouse.vue"]]); +wx.createComponent(Component); diff --git a/dist/dev/mp-weixin/BILL/send_bill/components/pickerSelectHouse.json b/dist/dev/mp-weixin/BILL/send_bill/components/pickerSelectHouse.json new file mode 100644 index 0000000..b513180 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/send_bill/components/pickerSelectHouse.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + "uni-icons": "../../../uni_modules/uni-icons/components/uni-icons/uni-icons" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/send_bill/components/pickerSelectHouse.wxml b/dist/dev/mp-weixin/BILL/send_bill/components/pickerSelectHouse.wxml new file mode 100644 index 0000000..fa0180f --- /dev/null +++ b/dist/dev/mp-weixin/BILL/send_bill/components/pickerSelectHouse.wxml @@ -0,0 +1 @@ +{{a}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/send_bill/components/pickerSelectHouse.wxss b/dist/dev/mp-weixin/BILL/send_bill/components/pickerSelectHouse.wxss new file mode 100644 index 0000000..622e14d --- /dev/null +++ b/dist/dev/mp-weixin/BILL/send_bill/components/pickerSelectHouse.wxss @@ -0,0 +1,15 @@ +.bill_header { + display: flex; + align-items: center; + justify-content: flex-end; + background-color: #fff; + position: fixed; + top: 0; + left: 0; + right: 0; + border-top: 1rpx solid #eee; + z-index: 100; + padding: 30rpx; + color: #333333; + font-size: 28rpx; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/send_bill/index.js b/dist/dev/mp-weixin/BILL/send_bill/index.js new file mode 100644 index 0000000..89e4bec --- /dev/null +++ b/dist/dev/mp-weixin/BILL/send_bill/index.js @@ -0,0 +1,146 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const gen_Enums = require("../../gen/Enums.js"); +const common_libraries_userUserLogin = require("../../common/libraries/userUserLogin.js"); +const BILL_send_bill_model = require("./model.js"); +const BILL_send_bill_method = require("./method.js"); +require("../../common/libraries/request.js"); +require("../../common/store/useWeAppAuthStore.js"); +require("../../gen/Apis.js"); +require("../../common/store/useWorkStore.js"); +require("../../common/libraries/apiLoading.js"); +require("../../common/libraries/naviHelper.js"); +require("../../common/libraries/sendWxWork.js"); +if (!Array) { + const _easycom_hs_empty2 = common_vendor.resolveComponent("hs-empty"); + const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); + const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag"); + const _easycom_hs_footer2 = common_vendor.resolveComponent("hs-footer"); + (_easycom_hs_empty2 + _easycom_uni_icons2 + _easycom_hs_enum_tag2 + _easycom_hs_footer2)(); +} +const _easycom_hs_empty = () => "../../components/hs-empty/hs-empty.js"; +const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; +const _easycom_hs_enum_tag = () => "../../components/hs-enum-tag/hs-enum-tag.js"; +const _easycom_hs_footer = () => "../../components/hs-footer/hs-footer.js"; +if (!Math) { + (UserPickerSelectHouse + _easycom_hs_empty + _easycom_uni_icons + _easycom_hs_enum_tag + _easycom_hs_footer)(); +} +const UserPickerSelectHouse = () => "./components/pickerSelectHouse.js"; +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + common_vendor.onShow(async () => { + var _a, _b; + await ((_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$onLaunched); + BILL_send_bill_model.useModel.listData.value = []; + BILL_send_bill_model.useModel.showData.value = {}; + BILL_send_bill_model.useModel.currentHouses.value = { id: "", name: "" }; + if ((_b = common_libraries_userUserLogin.getUser) == null ? void 0 : _b.onBindPhone()) { + common_vendor.index.qy.getCurExternalContact({ + success: function(res) { + var _a2; + BILL_send_bill_model.useModel.formData.value.external_userid = res == null ? void 0 : res.userId; + (_a2 = BILL_send_bill_method.method) == null ? void 0 : _a2.getList(); + }, + fail: function(res) { + var _a2; + (_a2 = BILL_send_bill_method.method) == null ? void 0 : _a2.getList(); + } + }); + } + }); + common_vendor.onUnload(() => { + BILL_send_bill_model.useModel.currentHouses.value = { id: "", name: "" }; + }); + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t; + return common_vendor.e({ + a: (_d = (_c = (_b = (_a = common_vendor.unref(BILL_send_bill_model.useModel)) == null ? void 0 : _a.showData) == null ? void 0 : _b.value) == null ? void 0 : _c.houseList) == null ? void 0 : _d.length + }, ((_h = (_g = (_f = (_e = common_vendor.unref(BILL_send_bill_model.useModel)) == null ? void 0 : _e.showData) == null ? void 0 : _f.value) == null ? void 0 : _g.houseList) == null ? void 0 : _h.length) ? { + b: common_vendor.p({ + data: (_j = (_i = common_vendor.unref(BILL_send_bill_model.useModel)) == null ? void 0 : _i.showData) == null ? void 0 : _j.value + }) + } : {}, { + c: !((_m = (_l = (_k = common_vendor.unref(BILL_send_bill_model.useModel)) == null ? void 0 : _k.listData) == null ? void 0 : _l.value) == null ? void 0 : _m.length) + }, !((_p = (_o = (_n = common_vendor.unref(BILL_send_bill_model.useModel)) == null ? void 0 : _n.listData) == null ? void 0 : _o.value) == null ? void 0 : _p.length) ? {} : {}, { + d: common_vendor.f((_r = (_q = common_vendor.unref(BILL_send_bill_model.useModel)) == null ? void 0 : _q.listData) == null ? void 0 : _r.value, (i, index, i0) => { + return common_vendor.e({ + a: i == null ? void 0 : i.isSelect + }, (i == null ? void 0 : i.isSelect) ? { + b: "68f75638-2-" + i0, + c: common_vendor.p({ + type: "checkbox-filled", + size: "18", + color: "#0082FA" + }) + } : { + d: "68f75638-3-" + i0, + e: common_vendor.p({ + type: "circle", + size: "18", + color: "#666" + }) + }, { + f: common_vendor.t(i == null ? void 0 : i.display_text), + g: common_vendor.o(($event) => { + var _a2; + return (_a2 = common_vendor.unref(BILL_send_bill_method.method)) == null ? void 0 : _a2.handleSelect(index); + }, `items_${index}`), + h: common_vendor.t(i == null ? void 0 : i.display_amount), + i: "68f75638-4-" + i0, + j: common_vendor.p({ + type: (i == null ? void 0 : i.isShow) ? "down" : "right", + color: "#999999", + size: "14" + }), + k: common_vendor.o(($event) => i.isShow = !i.isShow, `items_${index}`), + l: i == null ? void 0 : i.isShow + }, (i == null ? void 0 : i.isShow) ? { + m: common_vendor.f(i == null ? void 0 : i.bills, (k, idx, i1) => { + return common_vendor.e({ + a: k == null ? void 0 : k.isSelect + }, (k == null ? void 0 : k.isSelect) ? { + b: "68f75638-5-" + i0 + "-" + i1, + c: common_vendor.p({ + type: "checkbox-filled", + size: "18", + color: "#0082FA" + }) + } : { + d: "68f75638-6-" + i0 + "-" + i1, + e: common_vendor.p({ + type: "circle", + size: "18", + color: "#666" + }) + }, { + f: "68f75638-7-" + i0 + "-" + i1, + g: common_vendor.p({ + Enums: common_vendor.unref(gen_Enums.HouseBillsTypeEnum), + value: k == null ? void 0 : k.type + }), + h: common_vendor.t(k == null ? void 0 : k.amount), + i: `item_f_${index}_${idx}`, + j: common_vendor.o(($event) => { + var _a2; + return (_a2 = common_vendor.unref(BILL_send_bill_method.method)) == null ? void 0 : _a2.handleFindSelect(k, index, idx); + }, `item_f_${index}_${idx}`) + }); + }) + } : {}, { + n: `items_${index}` + }); + }), + e: common_vendor.o((_s = common_vendor.unref(BILL_send_bill_method.method)) == null ? void 0 : _s.handleParmaryClick), + f: common_vendor.o((_t = common_vendor.unref(BILL_send_bill_method.method)) == null ? void 0 : _t.handleQRCode), + g: common_vendor.p({ + btnParimaryName: "分享账单", + btnOtherName: "二维码收款", + btnOtherShow: true + }) + }); + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/BILL/send_bill/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/BILL/send_bill/index.json b/dist/dev/mp-weixin/BILL/send_bill/index.json new file mode 100644 index 0000000..03bac78 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/send_bill/index.json @@ -0,0 +1,10 @@ +{ + "navigationBarTitleText": "账单列表", + "usingComponents": { + "hs-empty": "../../components/hs-empty/hs-empty", + "uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons", + "hs-enum-tag": "../../components/hs-enum-tag/hs-enum-tag", + "hs-footer": "../../components/hs-footer/hs-footer", + "user-picker-select-house": "./components/pickerSelectHouse" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/send_bill/index.wxml b/dist/dev/mp-weixin/BILL/send_bill/index.wxml new file mode 100644 index 0000000..de8ab5d --- /dev/null +++ b/dist/dev/mp-weixin/BILL/send_bill/index.wxml @@ -0,0 +1 @@ +{{i.f}} ¥{{i.h}} ¥{{k.h}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/send_bill/index.wxss b/dist/dev/mp-weixin/BILL/send_bill/index.wxss new file mode 100644 index 0000000..5ca7b9d --- /dev/null +++ b/dist/dev/mp-weixin/BILL/send_bill/index.wxss @@ -0,0 +1,63 @@ +page { + background-color: #f8f8f8; +} +.bill_content { + padding: 120rpx 30rpx 0 30rpx; + padding-bottom: calc(210rpx + constant(safe-area-inset-bottom)); + padding-bottom: calc(210rpx + env(safe-area-inset-bottom)); +} +.bill_content_item { + background-color: #fff; + padding: 1rpx 30rpx 30rpx 30rpx; + border-radius: 20rpx; +} +.bill_content_item .bill_month_item { + background-color: #f7f8fc; + border-radius: 12rpx; + padding: 25rpx 0; + font-size: 28rpx; + margin-top: 29rpx; +} +.bill_content_item .bill_month_item_header { + display: flex; + align-items: center; + justify-content: space-between; +} +.bill_content_item .bill_month_item_header_left { + display: flex; + align-items: center; +} +.bill_content_item .bill_month_item_body { + background-color: #fff; + margin: 30rpx 30rpx 0 30rpx; + padding-bottom: 20rpx; + border-radius: 10rpx; +} +.bill_content_item .bill_month_item_body .item_find_select { + display: flex; + align-items: center; + padding: 20rpx 0 0 0; + font-size: 28rpx; +} +.bill_content_item .bill_month_item_body .item_find_select_btn { + padding: 0 10rpx 0 30rpx; +} +.bill_content_item .bill_month_item_body .item_find_select_name { + flex: 1; + color: #666; +} +.bill_content_item .bill_month_item_body .item_find_select .price { + color: #333; +} +.bill_content_item .bill_month_item .month_info { + flex: 1; +} +.bill_content_item .bill_month_item .select_btn { + padding: 0 20rpx 0 30rpx; +} +.bill_content_item .bill_month_item .price { + display: flex; + align-items: center; + color: #df3600; + padding-right: 20rpx; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/send_bill/method.js b/dist/dev/mp-weixin/BILL/send_bill/method.js new file mode 100644 index 0000000..579a76a --- /dev/null +++ b/dist/dev/mp-weixin/BILL/send_bill/method.js @@ -0,0 +1,119 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const BILL_send_bill_model = require("./model.js"); +const common_libraries_naviHelper = require("../../common/libraries/naviHelper.js"); +const gen_Apis = require("../../gen/Apis.js"); +const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js"); +require("../../common/libraries/userUserLogin.js"); +const common_libraries_sendWxWork = require("../../common/libraries/sendWxWork.js"); +const getHouseBill = (id, name) => { + BILL_send_bill_model.useModel.currentHouses.value = { id, name }; + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Bill.HouseBills.List, { asset_houses_id: id, type: 1 }).then((res) => { + var _a; + (_a = res == null ? void 0 : res.data) == null ? void 0 : _a.map((i) => { + var _a2; + i.isSelect = true; + (_a2 = i == null ? void 0 : i.bills) == null ? void 0 : _a2.map((b) => { + b.isSelect = true; + }); + }); + BILL_send_bill_model.useModel.listData.value = (res == null ? void 0 : res.data) || []; + console.log(res); + }); +}; +const method = { + handleChange(e) { + var _a, _b, _c, _d, _e; + let data = (_d = (_b = (_a = BILL_send_bill_model.useModel) == null ? void 0 : _a.showData) == null ? void 0 : _b.value) == null ? void 0 : _d.houseList[(_c = e == null ? void 0 : e.detail) == null ? void 0 : _c.value]; + getHouseBill(data == null ? void 0 : data.asset_houses_id, (_e = data == null ? void 0 : data.asset_house) == null ? void 0 : _e.full_name); + console.log(e, "e"); + }, + getList() { + var _a, _b; + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Customer.CustomerHouses.List, (_b = (_a = BILL_send_bill_model.useModel) == null ? void 0 : _a.formData) == null ? void 0 : _b.value).then((res) => { + var _a2, _b2, _c, _d, _e, _f; + if ((_b2 = (_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.houseList) == null ? void 0 : _b2.length) { + let data = (_c = res == null ? void 0 : res.data) == null ? void 0 : _c.houseList[0]; + (_e = (_d = res == null ? void 0 : res.data) == null ? void 0 : _d.houseList) == null ? void 0 : _e.map( + (i) => { + var _a3; + i.full_name = (_a3 = i == null ? void 0 : i.asset_house) == null ? void 0 : _a3.full_name; + } + ); + getHouseBill(data == null ? void 0 : data.asset_houses_id, (_f = data == null ? void 0 : data.asset_house) == null ? void 0 : _f.full_name); + } + BILL_send_bill_model.useModel.showData.value = res == null ? void 0 : res.data; + console.log(res); + }); + }, + getHouseBill, + handleSelect(idx) { + var _a, _b; + let is = BILL_send_bill_model.useModel.listData.value[idx].isSelect; + BILL_send_bill_model.useModel.listData.value[idx].isSelect = !is; + (_b = (_a = BILL_send_bill_model.useModel.listData.value[idx]) == null ? void 0 : _a.bills) == null ? void 0 : _b.map((b) => { + b.isSelect = !is; + }); + }, + handleFindSelect(res, index, idx) { + var _a; + let is = res == null ? void 0 : res.isSelect; + BILL_send_bill_model.useModel.listData.value[index].bills[idx].isSelect = !is; + let allChecked = (_a = BILL_send_bill_model.useModel.listData.value[index].bills) == null ? void 0 : _a.every( + (item) => item == null ? void 0 : item.isSelect + ); + BILL_send_bill_model.useModel.listData.value[index].isSelect = allChecked; + }, + handleParmaryClick() { + var _a, _b, _c, _d, _e, _f, _g, _h, _i; + let bill_ids = []; + (_c = (_b = (_a = BILL_send_bill_model.useModel) == null ? void 0 : _a.listData) == null ? void 0 : _b.value) == null ? void 0 : _c.map((res) => { + var _a2, _b2; + if ((_a2 = res == null ? void 0 : res.bills) == null ? void 0 : _a2.length) { + (_b2 = res == null ? void 0 : res.bills) == null ? void 0 : _b2.map((i) => { + if (i == null ? void 0 : i.isSelect) { + bill_ids == null ? void 0 : bill_ids.push(i == null ? void 0 : i.id); + } + }); + } + }); + if (!(bill_ids == null ? void 0 : bill_ids.length)) { + return common_libraries_naviHelper.showToast("请至少选择一个月账单!"); + } + common_libraries_sendWxWork.sendChatMessage({ + page: `/INDEX/bill_order/index.html?bill_ids=${JSON.stringify(bill_ids)}&house_id=${(_f = (_e = (_d = BILL_send_bill_model.useModel) == null ? void 0 : _d.currentHouses) == null ? void 0 : _e.value) == null ? void 0 : _f.id}`, + title: `分享给您${(_i = (_h = (_g = BILL_send_bill_model.useModel) == null ? void 0 : _g.currentHouses) == null ? void 0 : _h.value) == null ? void 0 : _i.name}物业账单`, + imgUrl: "https://pay-prod-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01K5B5RY2TQQAJ1GT2RZSK426V.jpg" + }); + }, + handleQRCode() { + var _a, _b, _c; + let bill_ids = []; + let total_amount = 0; + (_c = (_b = (_a = BILL_send_bill_model.useModel) == null ? void 0 : _a.listData) == null ? void 0 : _b.value) == null ? void 0 : _c.map((res) => { + var _a2, _b2; + if ((_a2 = res == null ? void 0 : res.bills) == null ? void 0 : _a2.length) { + (_b2 = res == null ? void 0 : res.bills) == null ? void 0 : _b2.map((i) => { + if (i == null ? void 0 : i.isSelect) { + bill_ids == null ? void 0 : bill_ids.push(i == null ? void 0 : i.id); + total_amount += parseFloat(i == null ? void 0 : i.amount); + } + }); + } + }); + if (!(bill_ids == null ? void 0 : bill_ids.length)) { + return common_libraries_naviHelper.showToast("请至少选择一个月账单!"); + } + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.HouseOrder.HouseOrders.Store, { + bill_ids: bill_ids || [], + total_payable_amount: total_amount, + amount: total_amount + }).then((res) => { + var _a2, _b2, _c2, _d, _e, _f, _g; + common_vendor.index.navigateTo({ + url: `/BILL/poster/index?id=${(_b2 = (_a2 = BILL_send_bill_model.useModel.currentHouses) == null ? void 0 : _a2.value) == null ? void 0 : _b2.id}&order_id=${(_c2 = res == null ? void 0 : res.data) == null ? void 0 : _c2.id}&time=${(_d = res == null ? void 0 : res.data) == null ? void 0 : _d.created_at}&name=${(_g = (_f = (_e = BILL_send_bill_model.useModel) == null ? void 0 : _e.currentHouses) == null ? void 0 : _f.value) == null ? void 0 : _g.name}&amount=${total_amount}` + }); + }); + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/BILL/send_bill/model.js b/dist/dev/mp-weixin/BILL/send_bill/model.js new file mode 100644 index 0000000..7c4da52 --- /dev/null +++ b/dist/dev/mp-weixin/BILL/send_bill/model.js @@ -0,0 +1,12 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const useModel = { + //model + formData: common_vendor.ref({ external_userid: "" }), + listData: common_vendor.ref([]), + metaData: common_vendor.ref({}), + showData: common_vendor.ref({}), + currentHouses: common_vendor.ref({ id: "", name: "" }), + total_amount: common_vendor.ref(0) +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/CUSTOMER/assets/index.js b/dist/dev/mp-weixin/CUSTOMER/assets/index.js new file mode 100644 index 0000000..39200e6 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/assets/index.js @@ -0,0 +1,87 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const gen_Enums = require("../../gen/Enums.js"); +const CUSTOMER_assets_method = require("./method.js"); +const CUSTOMER_assets_model = require("./model.js"); +require("../../gen/Apis.js"); +require("../../common/libraries/request.js"); +require("../../common/store/useWeAppAuthStore.js"); +require("../../common/libraries/apiLoading.js"); +require("../../common/store/useWorkStore.js"); +if (!Array) { + const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); + const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag"); + (_easycom_uni_icons2 + _easycom_hs_enum_tag2)(); +} +const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; +const _easycom_hs_enum_tag = () => "../../components/hs-enum-tag/hs-enum-tag.js"; +if (!Math) { + (_easycom_uni_icons + _easycom_hs_enum_tag)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + const toPage = (url) => { + common_vendor.index.navigateTo({ + url + }); + }; + common_vendor.onLoad((e) => { + var _a; + CUSTOMER_assets_model.useModel.formData.value = e; + (_a = CUSTOMER_assets_method.method) == null ? void 0 : _a.getUserHoueInfo(e == null ? void 0 : e.phone); + console.log(e); + }); + return (_ctx, _cache) => { + var _a, _b; + return { + a: common_vendor.f((_b = (_a = common_vendor.unref(CUSTOMER_assets_model.useModel)) == null ? void 0 : _a.userHouse) == null ? void 0 : _b.value, (i, index, i0) => { + var _a2, _b2, _c, _d; + return common_vendor.e({ + a: common_vendor.t((_a2 = i == null ? void 0 : i.asset_project) == null ? void 0 : _a2.name), + b: common_vendor.t((_b2 = i == null ? void 0 : i.asset_building) == null ? void 0 : _b2.name), + c: common_vendor.t((_c = i == null ? void 0 : i.asset_unit) == null ? void 0 : _c.name), + d: common_vendor.t((_d = i == null ? void 0 : i.asset_house) == null ? void 0 : _d.name), + e: "40156cf0-0-" + i0, + f: common_vendor.o(($event) => toPage(`/BILL/outstanding_fee/show/index?id=${i == null ? void 0 : i.asset_houses_id}`), `item_${index}`), + g: (i == null ? void 0 : i.house_relation) === "Owner" + }, (i == null ? void 0 : i.house_relation) === "Owner" ? {} : {}, { + h: i == null ? void 0 : i.is_contact + }, (i == null ? void 0 : i.is_contact) ? {} : {}, { + i: i == null ? void 0 : i.residential_relation + }, (i == null ? void 0 : i.residential_relation) ? { + j: "40156cf0-1-" + i0, + k: common_vendor.p({ + Enums: common_vendor.unref(gen_Enums.HouseOccupantsResidentialRelationEnum), + value: i == null ? void 0 : i.residential_relation + }) + } : {}, { + l: (i == null ? void 0 : i.house_relation) !== "Owner" + }, (i == null ? void 0 : i.house_relation) !== "Owner" ? { + m: common_vendor.o(($event) => common_vendor.unref(CUSTOMER_assets_method.method).handleUnbind(i), `item_${index}`) + } : {}, { + n: `item_${index}` + }); + }), + b: common_vendor.p({ + type: "right", + size: "13", + color: "#999" + }), + c: common_vendor.p({ + type: "plus", + size: "20" + }), + d: common_vendor.o( + //@ts-ignore + (...args) => { + var _a2, _b2; + return ((_a2 = common_vendor.unref(CUSTOMER_assets_method.method)) == null ? void 0 : _a2.handleBindHouse) && ((_b2 = common_vendor.unref(CUSTOMER_assets_method.method)) == null ? void 0 : _b2.handleBindHouse(...args)); + } + ) + }; + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/CUSTOMER/assets/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/CUSTOMER/assets/index.json b/dist/dev/mp-weixin/CUSTOMER/assets/index.json new file mode 100644 index 0000000..802e2c2 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/assets/index.json @@ -0,0 +1,7 @@ +{ + "navigationBarTitleText": "客户资产", + "usingComponents": { + "uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons", + "hs-enum-tag": "../../components/hs-enum-tag/hs-enum-tag" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/assets/index.wxml b/dist/dev/mp-weixin/CUSTOMER/assets/index.wxml new file mode 100644 index 0000000..13c3561 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/assets/index.wxml @@ -0,0 +1 @@ +{{i.a}}{{i.b}}{{i.c}}{{i.d}} 身份: 产权人 常用联系人 解绑 新增入户登记 \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/assets/index.wxss b/dist/dev/mp-weixin/CUSTOMER/assets/index.wxss new file mode 100644 index 0000000..271ca22 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/assets/index.wxss @@ -0,0 +1,53 @@ +page { + background-color: #f8f8f8; +} +.customer_item { + background-color: #fff; + border-radius: 15rpx; + padding: 0 30rpx 30rpx 30rpx; + margin: 30rpx; + display: flex; + align-items: center; + border-radius: 20rpx; + justify-content: space-between; + padding: 0 30rpx; +} +.customer_item_head { + padding: 30rpx 0 25rpx 0; + color: #333; + font-size: 28rpx; + font-weight: 500; +} +.customer_item .name { + padding-bottom: 10rpx; +} +.customer_item .identity { + display: flex; + align-items: center; + font-size: 24rpx; + color: #666; + font-weight: 400; +} +.customer_item .identity .status_tab { + font-size: 24rpx; + margin-right: 10rpx; +} +.customer_item .unbind { + color: #0082fa; + font-size: 24rpx; +} +.customer_item_add_btn { + display: flex; + align-items: center; + border-radius: 20rpx; + padding: 25rpx 30rpx; + font-size: 28rpx; + background-color: #fff; + color: #333; + border: 2px dashed #d3d3d3; + font-weight: 500; + margin: 30rpx; +} +.customer_item_add_btn text { + padding-left: 5rpx; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/assets/method.js b/dist/dev/mp-weixin/CUSTOMER/assets/method.js new file mode 100644 index 0000000..ec23d4f --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/assets/method.js @@ -0,0 +1,41 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const gen_Apis = require("../../gen/Apis.js"); +const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js"); +const CUSTOMER_assets_model = require("./model.js"); +const getUserHoueInfo = (phone) => { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Archive.HouseOccupants.GetCustomerHouse, { phone }).then((res) => { + CUSTOMER_assets_model.useModel.userHouse.value = res == null ? void 0 : res.data; + console.log(res); + }); +}; +const method = { + getUserHoueInfo, + handleUnbind(e) { + common_vendor.index.showModal({ + title: "再次确认", + content: "房屋人员解绑申请!此操作需后台审核,结果会以系统通知告知,敬请留意~", + success: function(res) { + if (res.confirm) { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Archive.HouseRegisters.RemoveOwner, { + house_occupants_id: e == null ? void 0 : e.id + }).then((res2) => { + var _a, _b, _c; + getUserHoueInfo((_c = (_b = (_a = CUSTOMER_assets_model.useModel) == null ? void 0 : _a.formData) == null ? void 0 : _b.value) == null ? void 0 : _c.phone); + console.log(res2); + }); + console.log("用户点击确定"); + } else if (res.cancel) { + console.log("用户点击取消"); + } + } + }); + }, + handleBindHouse() { + var _a, _b, _c, _d, _e, _f; + common_vendor.index.navigateTo({ + url: `/CUSTOMER/bind_house/index?phone=${(_c = (_b = (_a = CUSTOMER_assets_model.useModel) == null ? void 0 : _a.formData) == null ? void 0 : _b.value) == null ? void 0 : _c.phone}&name=${(_f = (_e = (_d = CUSTOMER_assets_model.useModel) == null ? void 0 : _d.formData) == null ? void 0 : _e.value) == null ? void 0 : _f.name}` + }); + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/CUSTOMER/assets/model.js b/dist/dev/mp-weixin/CUSTOMER/assets/model.js new file mode 100644 index 0000000..98a1530 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/assets/model.js @@ -0,0 +1,8 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const useModel = { + formData: common_vendor.ref({}), + userHouse: common_vendor.ref([]), + arrearageHouses: common_vendor.ref([]) +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/CUSTOMER/bind_house/index.js b/dist/dev/mp-weixin/CUSTOMER/bind_house/index.js new file mode 100644 index 0000000..73ef903 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/bind_house/index.js @@ -0,0 +1,154 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const CUSTOMER_bind_house_method = require("./method.js"); +const CUSTOMER_bind_house_model = require("./model.js"); +const gen_Enums = require("../../gen/Enums.js"); +require("../../common/libraries/request.js"); +const common_store_useWeAppAuthStore = require("../../common/store/useWeAppAuthStore.js"); +require("../../common/store/useWorkStore.js"); +require("../../common/libraries/naviHelper.js"); +require("../../gen/Apis.js"); +require("../../common/libraries/apiLoading.js"); +require("../../common/libraries/userUserLogin.js"); +require("../../common/libraries/sendWxWork.js"); +if (!Array) { + const _easycom_hs_input2 = common_vendor.resolveComponent("hs-input"); + const _easycom_hs_cell2 = common_vendor.resolveComponent("hs-cell"); + const _easycom_hs_footer2 = common_vendor.resolveComponent("hs-footer"); + const _easycom_hs_empty2 = common_vendor.resolveComponent("hs-empty"); + const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag"); + const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); + (_easycom_hs_input2 + _easycom_hs_cell2 + _easycom_hs_footer2 + _easycom_hs_empty2 + _easycom_hs_enum_tag2 + _easycom_uni_icons2)(); +} +const _easycom_hs_input = () => "../../components/hs-input/hs-input.js"; +const _easycom_hs_cell = () => "../../components/hs-cell/hs-cell.js"; +const _easycom_hs_footer = () => "../../components/hs-footer/hs-footer.js"; +const _easycom_hs_empty = () => "../../components/hs-empty/hs-empty.js"; +const _easycom_hs_enum_tag = () => "../../components/hs-enum-tag/hs-enum-tag.js"; +const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; +if (!Math) { + (_easycom_hs_input + _easycom_hs_cell + _easycom_hs_footer + _easycom_hs_empty + _easycom_hs_enum_tag + _easycom_uni_icons)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + const auth = common_store_useWeAppAuthStore.useWeAppAuthStore(); + common_vendor.onLoad(async (e) => { + var _a, _b, _c; + await ((_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$onLaunched); + if (e == null ? void 0 : e.phone) { + CUSTOMER_bind_house_model.useModel.bindPhone.value = true; + CUSTOMER_bind_house_model.useModel.formData.value = e; + (_b = CUSTOMER_bind_house_method.method) == null ? void 0 : _b.nextStep("phone"); + } + if (((_c = auth == null ? void 0 : auth.data) == null ? void 0 : _c.environment) === "wxwork") { + common_vendor.index.qy.getCurExternalContact({ + success: function(res) { + CUSTOMER_bind_house_model.useModel.formData.value.external_userid = res == null ? void 0 : res.userId; + console.log("开始2", res); + } + }); + } + }); + common_vendor.onUnload(() => { + CUSTOMER_bind_house_model.useModel.bindHouseSelectPage.value = false; + CUSTOMER_bind_house_model.useModel.bindHouseFormPage.value = true; + CUSTOMER_bind_house_model.useModel.formData.value = {}; + }); + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v; + return common_vendor.e({ + a: (_b = (_a = common_vendor.unref(CUSTOMER_bind_house_model.useModel)) == null ? void 0 : _a.bindHouseFormPage) == null ? void 0 : _b.value + }, ((_d = (_c = common_vendor.unref(CUSTOMER_bind_house_model.useModel)) == null ? void 0 : _c.bindHouseFormPage) == null ? void 0 : _d.value) ? { + b: common_vendor.o(($event) => common_vendor.unref(CUSTOMER_bind_house_model.useModel).formData.value.name = $event), + c: common_vendor.p({ + textAlign: "right", + valueModel: common_vendor.unref(CUSTOMER_bind_house_model.useModel).formData.value.name + }), + d: common_vendor.p({ + title: "客户姓名", + required: true, + borderTop: true + }), + e: common_vendor.o(($event) => common_vendor.unref(CUSTOMER_bind_house_model.useModel).formData.value.phone = $event), + f: common_vendor.p({ + maxLength: "11", + type: "number", + textAlign: "right", + valueModel: common_vendor.unref(CUSTOMER_bind_house_model.useModel).formData.value.phone + }), + g: common_vendor.p({ + title: "手机号", + required: true, + borderTop: true + }), + h: common_vendor.o((_e = common_vendor.unref(CUSTOMER_bind_house_method.method)) == null ? void 0 : _e.nextStep), + i: common_vendor.o((_f = common_vendor.unref(CUSTOMER_bind_house_method.method)) == null ? void 0 : _f.handleInviteCustomer), + j: common_vendor.p({ + btnParimaryName: "下一步", + btnOtherName: "邀请客户绑定", + btnOtherShow: true + }) + } : {}, { + k: (_h = (_g = common_vendor.unref(CUSTOMER_bind_house_model.useModel)) == null ? void 0 : _g.bindHouseSelectPage) == null ? void 0 : _h.value + }, ((_j = (_i = common_vendor.unref(CUSTOMER_bind_house_model.useModel)) == null ? void 0 : _i.bindHouseSelectPage) == null ? void 0 : _j.value) ? common_vendor.e({ + l: !((_m = (_l = (_k = common_vendor.unref(CUSTOMER_bind_house_model.useModel)) == null ? void 0 : _k.listData) == null ? void 0 : _l.value) == null ? void 0 : _m.length) + }, !((_p = (_o = (_n = common_vendor.unref(CUSTOMER_bind_house_model.useModel)) == null ? void 0 : _n.listData) == null ? void 0 : _o.value) == null ? void 0 : _p.length) ? {} : {}, { + m: common_vendor.f((_r = (_q = common_vendor.unref(CUSTOMER_bind_house_model.useModel)) == null ? void 0 : _q.listData) == null ? void 0 : _r.value, (i, index, i0) => { + var _a2, _b2, _c2, _d2; + return common_vendor.e({ + a: common_vendor.t((_a2 = i == null ? void 0 : i.asset_project) == null ? void 0 : _a2.name), + b: common_vendor.t((_b2 = i == null ? void 0 : i.asset_building) == null ? void 0 : _b2.name), + c: common_vendor.t((_c2 = i == null ? void 0 : i.asset_unit) == null ? void 0 : _c2.name), + d: common_vendor.t((_d2 = i == null ? void 0 : i.asset_house) == null ? void 0 : _d2.name), + e: "d9cb103a-6-" + i0, + f: common_vendor.p({ + value: i == null ? void 0 : i.house_relation, + size: "md", + Enums: common_vendor.unref(gen_Enums.HouseOccupantsHouseRelationEnum) + }), + g: i == null ? void 0 : i.residential_relation + }, (i == null ? void 0 : i.residential_relation) ? { + h: "d9cb103a-7-" + i0, + i: common_vendor.p({ + value: i == null ? void 0 : i.residential_relation, + size: "md", + Enums: common_vendor.unref(gen_Enums.HouseOccupantsResidentialRelationEnum) + }) + } : {}, { + j: i == null ? void 0 : i.isSelect + }, (i == null ? void 0 : i.isSelect) ? { + k: "d9cb103a-8-" + i0, + l: common_vendor.p({ + type: "checkbox-filled", + size: "18", + color: "#0082FA" + }) + } : { + m: "d9cb103a-9-" + i0, + n: common_vendor.p({ + type: "circle", + size: "18", + color: "#666" + }) + }, { + o: `house_${index}`, + p: common_vendor.o(($event) => { + var _a3; + return (_a3 = common_vendor.unref(CUSTOMER_bind_house_method.method)) == null ? void 0 : _a3.selectHouse(i, index); + }, `house_${index}`) + }); + }), + n: common_vendor.o((_s = common_vendor.unref(CUSTOMER_bind_house_method.method)) == null ? void 0 : _s.handleBindHouse), + o: common_vendor.o((_t = common_vendor.unref(CUSTOMER_bind_house_method.method)) == null ? void 0 : _t.handleBack), + p: common_vendor.p({ + btnParimaryName: "绑定房屋", + btnOtherShow: true, + btnOtherName: ((_v = (_u = common_vendor.unref(CUSTOMER_bind_house_model.useModel)) == null ? void 0 : _u.bindPhone) == null ? void 0 : _v.value) ? "绑定其他房屋" : "上一步" + }) + }) : {}); + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/CUSTOMER/bind_house/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/CUSTOMER/bind_house/index.json b/dist/dev/mp-weixin/CUSTOMER/bind_house/index.json new file mode 100644 index 0000000..3850732 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/bind_house/index.json @@ -0,0 +1,11 @@ +{ + "navigationBarTitleText": "入户登记", + "usingComponents": { + "hs-input": "../../components/hs-input/hs-input", + "hs-cell": "../../components/hs-cell/hs-cell", + "hs-footer": "../../components/hs-footer/hs-footer", + "hs-empty": "../../components/hs-empty/hs-empty", + "hs-enum-tag": "../../components/hs-enum-tag/hs-enum-tag", + "uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/bind_house/index.wxml b/dist/dev/mp-weixin/CUSTOMER/bind_house/index.wxml new file mode 100644 index 0000000..01dbcbc --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/bind_house/index.wxml @@ -0,0 +1 @@ + 请选择需要绑定的房屋 {{i.a}}{{i.b}}{{i.c}}{{i.d}} 身份: \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/bind_house/index.wxss b/dist/dev/mp-weixin/CUSTOMER/bind_house/index.wxss new file mode 100644 index 0000000..ee9ceb2 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/bind_house/index.wxss @@ -0,0 +1,37 @@ +page { + background-color: #f8f8f8; +} +.form_card { + background-color: #fff; + padding: 0 30rpx; + margin-bottom: 30rpx; +} +.house_title { + font-size: 32rpx; + font-weight: 500; + color: #333; +} +.bind_house_select_page { + padding: 40rpx 30rpx 0 30rpx; + padding-bottom: calc(210rpx + constant(safe-area-inset-bottom)); + padding-bottom: calc(210rpx + env(safe-area-inset-bottom)); +} +.house_select_content .house_select_item { + background-color: #fff; + padding: 30rpx; + margin-top: 30rpx; + display: flex; + align-items: center; + justify-content: space-between; + border-radius: 10rpx; +} +.house_select_content .house_select_item .house_name { + color: #3d3d3d; + font-size: 28rpx; + font-weight: 500; +} +.house_select_content .house_select_item .house_identity { + font-size: 24rpx; + color: #666; + padding-top: 5rpx; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/bind_house/method.js b/dist/dev/mp-weixin/CUSTOMER/bind_house/method.js new file mode 100644 index 0000000..cb835b1 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/bind_house/method.js @@ -0,0 +1,101 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const CUSTOMER_bind_house_model = require("./model.js"); +const common_libraries_naviHelper = require("../../common/libraries/naviHelper.js"); +const gen_Apis = require("../../gen/Apis.js"); +const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js"); +const common_libraries_userUserLogin = require("../../common/libraries/userUserLogin.js"); +const common_libraries_sendWxWork = require("../../common/libraries/sendWxWork.js"); +require("../../common/libraries/request.js"); +const common_store_useWeAppAuthStore = require("../../common/store/useWeAppAuthStore.js"); +require("../../common/store/useWorkStore.js"); +const auth = common_store_useWeAppAuthStore.useWeAppAuthStore(); +const method = { + nextStep(type) { + var _a, _b, _c; + let data = (_b = (_a = CUSTOMER_bind_house_model.useModel) == null ? void 0 : _a.formData) == null ? void 0 : _b.value; + if ((_c = common_libraries_userUserLogin.getUser) == null ? void 0 : _c.toPageLogin()) + return; + if (!(data == null ? void 0 : data.phone) || !(data == null ? void 0 : data.name)) { + return common_libraries_naviHelper.showToast("请填写姓名/手机号"); + } + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Archive.HouseOccupants.GetCustomerHouse, { phone: data == null ? void 0 : data.phone }).then( + (res) => { + var _a2; + if (!((_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.length)) { + if (type === "phone") { + common_vendor.index.redirectTo({ + url: "/CUSTOMER/house_select/index" + }); + } else { + common_vendor.index.navigateTo({ + url: "/CUSTOMER/house_select/index" + }); + } + } else { + CUSTOMER_bind_house_model.useModel.bindHouseSelectPage.value = true; + CUSTOMER_bind_house_model.useModel.bindHouseFormPage.value = false; + CUSTOMER_bind_house_model.useModel.listData.value = res == null ? void 0 : res.data; + } + console.log(res); + } + ); + }, + selectHouse(e, index) { + var _a, _b, _c; + let isSelect = (_c = (_b = (_a = CUSTOMER_bind_house_model.useModel) == null ? void 0 : _a.listData) == null ? void 0 : _b.value[index]) == null ? void 0 : _c.isSelect; + CUSTOMER_bind_house_model.useModel.listData.value[index].isSelect = !isSelect; + }, + handleBack() { + var _a, _b, _c, _d, _e, _f, _g, _h; + if ((_b = (_a = CUSTOMER_bind_house_model.useModel) == null ? void 0 : _a.bindPhone) == null ? void 0 : _b.value) { + common_vendor.index.navigateTo({ + url: `/CUSTOMER/house_select/index?phone=${(_e = (_d = (_c = CUSTOMER_bind_house_model.useModel) == null ? void 0 : _c.formData) == null ? void 0 : _d.value) == null ? void 0 : _e.phone}&name=${(_h = (_g = (_f = CUSTOMER_bind_house_model.useModel) == null ? void 0 : _f.formData) == null ? void 0 : _g.value) == null ? void 0 : _h.name}` + }); + } else { + CUSTOMER_bind_house_model.useModel.bindHouseSelectPage.value = false; + CUSTOMER_bind_house_model.useModel.bindHouseFormPage.value = true; + } + }, + handleBindHouse() { + var _a, _b, _c, _d; + let data = (_b = (_a = CUSTOMER_bind_house_model.useModel) == null ? void 0 : _a.formData) == null ? void 0 : _b.value; + let house_info = []; + (_d = (_c = CUSTOMER_bind_house_model.useModel) == null ? void 0 : _c.listData) == null ? void 0 : _d.value.map((res) => { + if (res == null ? void 0 : res.isSelect) { + house_info.push({ + asset_houses_id: res == null ? void 0 : res.asset_houses_id, + residential_relation: res == null ? void 0 : res.residential_relation + }); + } + }); + if (!(house_info == null ? void 0 : house_info.length)) { + return common_libraries_naviHelper.showToast("请至少选择一套房屋!"); + } + console.log(house_info); + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Archive.HouseRegisters.Store, { + ...data, + house_info + }).then((res) => { + common_libraries_naviHelper.showToastBack("绑定成功", 1, false, () => { + common_vendor.index.reLaunch({ + url: `/CUSTOMER/house_list/index` + }); + }); + console.log(res); + }); + }, + handleInviteCustomer() { + var _a; + if (((_a = auth == null ? void 0 : auth.data) == null ? void 0 : _a.environment) === "wxwork") { + common_libraries_sendWxWork.sendChatMessage({ page: "/INDEX/binding/index.html", title: "邀请你绑定房屋" }); + } else { + common_libraries_sendWxWork.navigateToMiniProgram({ + path: "/pages/forward/index?source=HouseholdRegistration", + envVersion: "develop", + extraData: { source: "HouseholdRegistration" } + }); + } + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/CUSTOMER/bind_house/model.js b/dist/dev/mp-weixin/CUSTOMER/bind_house/model.js new file mode 100644 index 0000000..d3e6445 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/bind_house/model.js @@ -0,0 +1,11 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const useModel = { + formData: common_vendor.ref({}), + listData: common_vendor.ref([]), + metaData: common_vendor.ref({}), + bindHouseFormPage: common_vendor.ref(true), + bindHouseSelectPage: common_vendor.ref(false), + bindPhone: common_vendor.ref(false) +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/CUSTOMER/bind_house_form/index.js b/dist/dev/mp-weixin/CUSTOMER/bind_house_form/index.js new file mode 100644 index 0000000..23b98e5 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/bind_house_form/index.js @@ -0,0 +1,105 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const CUSTOMER_bind_house_form_model = require("./model.js"); +const CUSTOMER_bind_house_form_method = require("./method.js"); +require("../../common/libraries/naviHelper.js"); +require("../../gen/Apis.js"); +require("../../common/libraries/request.js"); +require("../../common/store/useWeAppAuthStore.js"); +require("../../common/libraries/apiLoading.js"); +require("../../common/store/useWorkStore.js"); +if (!Array) { + const _easycom_hs_input2 = common_vendor.resolveComponent("hs-input"); + const _easycom_hs_cell2 = common_vendor.resolveComponent("hs-cell"); + const _easycom_hs_upload_id_card2 = common_vendor.resolveComponent("hs-upload-id-card"); + const _easycom_hs_upload2 = common_vendor.resolveComponent("hs-upload"); + const _easycom_hs_footer2 = common_vendor.resolveComponent("hs-footer"); + (_easycom_hs_input2 + _easycom_hs_cell2 + _easycom_hs_upload_id_card2 + _easycom_hs_upload2 + _easycom_hs_footer2)(); +} +const _easycom_hs_input = () => "../../components/hs-input/hs-input.js"; +const _easycom_hs_cell = () => "../../components/hs-cell/hs-cell.js"; +const _easycom_hs_upload_id_card = () => "../../components/hs-upload-id-card/hs-upload-id-card.js"; +const _easycom_hs_upload = () => "../../components/hs-upload/hs-upload.js"; +const _easycom_hs_footer = () => "../../components/hs-footer/hs-footer.js"; +if (!Math) { + (_easycom_hs_input + _easycom_hs_cell + _easycom_hs_upload_id_card + _easycom_hs_upload + _easycom_hs_footer)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + common_vendor.onLoad((e) => { + CUSTOMER_bind_house_form_model.useModel.formData.value.asset_houses_id = e == null ? void 0 : e.asset_houses_id; + common_vendor.index.qy.getCurExternalContact({ + success: function(res) { + CUSTOMER_bind_house_form_model.useModel.formData.value.external_userid = res == null ? void 0 : res.userId; + }, + fail: function(res) { + } + }); + }); + common_vendor.onUnload(() => { + CUSTOMER_bind_house_form_model.useModel.formData.value = { type: "AddOwner", card_type: "MainlandID", house_relation: "Owner" }; + }); + return (_ctx, _cache) => { + var _a, _b, _c; + return { + a: common_vendor.o(($event) => common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.name = $event), + b: common_vendor.p({ + textAlign: "right", + valueModel: common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.name + }), + c: common_vendor.p({ + title: "真实姓名", + required: true, + borderTop: true + }), + d: common_vendor.o(($event) => common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.phone = $event), + e: common_vendor.p({ + maxLength: "11", + textAlign: "right", + type: "number", + valueModel: common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.phone + }), + f: common_vendor.p({ + title: "手机号", + required: true, + borderTop: true + }), + g: common_vendor.o(($event) => common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.id_card = $event), + h: common_vendor.p({ + maxLength: "18", + textAlign: "right", + valueModel: common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.id_card + }), + i: common_vendor.p({ + title: "身份证号", + required: true, + borderTop: true + }), + j: common_vendor.o(($event) => common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.card_front_image = $event), + k: common_vendor.o(($event) => common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.card_back_image = $event), + l: common_vendor.p({ + required: true, + valueFrontModel: common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.card_front_image, + valueBackModel: common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.card_back_image + }), + m: common_vendor.o(($event) => common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.ownership_info = $event), + n: common_vendor.p({ + title: "上传房产证", + count: 10, + size: 4, + required: true, + borderTop: true, + valueModel: common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.ownership_info + }), + o: common_vendor.o((_a = common_vendor.unref(CUSTOMER_bind_house_form_method.method)) == null ? void 0 : _a.handleSubmit), + p: common_vendor.p({ + btnParimaryName: "绑定房屋", + loading: (_c = (_b = common_vendor.unref(CUSTOMER_bind_house_form_model.useModel)) == null ? void 0 : _b.loading) == null ? void 0 : _c.value + }) + }; + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/CUSTOMER/bind_house_form/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/CUSTOMER/bind_house_form/index.json b/dist/dev/mp-weixin/CUSTOMER/bind_house_form/index.json new file mode 100644 index 0000000..7f3c536 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/bind_house_form/index.json @@ -0,0 +1,10 @@ +{ + "navigationBarTitleText": "绑定产权人", + "usingComponents": { + "hs-input": "../../components/hs-input/hs-input", + "hs-cell": "../../components/hs-cell/hs-cell", + "hs-upload-id-card": "../../components/hs-upload-id-card/hs-upload-id-card", + "hs-upload": "../../components/hs-upload/hs-upload", + "hs-footer": "../../components/hs-footer/hs-footer" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/bind_house_form/index.wxml b/dist/dev/mp-weixin/CUSTOMER/bind_house_form/index.wxml new file mode 100644 index 0000000..e32aeb4 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/bind_house_form/index.wxml @@ -0,0 +1 @@ + 个人信息 \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/bind_house_form/index.wxss b/dist/dev/mp-weixin/CUSTOMER/bind_house_form/index.wxss new file mode 100644 index 0000000..39e24d0 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/bind_house_form/index.wxss @@ -0,0 +1,30 @@ +page { + background-color: #f8f8f8; +} +.bangding_form_data { + padding-bottom: calc(130rpx + constant(safe-area-inset-bottom)); + padding-bottom: calc(130rpx + env(safe-area-inset-bottom)); +} +.form_card { + background-color: #fff; + padding: 0 30rpx; + margin-bottom: 30rpx; +} +.form_card .form_card_title { + color: #333; + font-size: 28rpx; + font-weight: 500; + height: 30rpx; + line-height: 30rpx; + padding: 30rpx 0; + display: flex; + align-items: center; +} +.form_card .form_card_title text { + display: inline-block; + height: 30rpx; + line-height: 30rpx; + border-left: 3px solid #2a7efb; + margin-right: 15rpx; + border-radius: 10rpx; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/bind_house_form/method.js b/dist/dev/mp-weixin/CUSTOMER/bind_house_form/method.js new file mode 100644 index 0000000..363ad31 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/bind_house_form/method.js @@ -0,0 +1,37 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const common_libraries_naviHelper = require("../../common/libraries/naviHelper.js"); +const CUSTOMER_bind_house_form_model = require("./model.js"); +const gen_Apis = require("../../gen/Apis.js"); +const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js"); +const method = { + handleSubmit() { + var _a, _b, _c, _d, _e; + let data = (_b = (_a = CUSTOMER_bind_house_form_model.useModel) == null ? void 0 : _a.formData) == null ? void 0 : _b.value; + if (!(data == null ? void 0 : data.name)) { + return common_libraries_naviHelper.showToast("请填写姓名"); + } + if (!(data == null ? void 0 : data.phone)) { + return common_libraries_naviHelper.showToast("请填写手机号"); + } + if (!(data == null ? void 0 : data.id_card)) { + return common_libraries_naviHelper.showToast("请填写身份证号"); + } + if (!((_c = data == null ? void 0 : data.card_front_image) == null ? void 0 : _c.length) || !((_d = data == null ? void 0 : data.card_back_image) == null ? void 0 : _d.length)) { + return common_libraries_naviHelper.showToast("请上传身份证正反面"); + } + if (!((_e = data == null ? void 0 : data.ownership_info) == null ? void 0 : _e.length)) { + return common_libraries_naviHelper.showToast("请上传房产证"); + } + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Archive.HouseRegisters.RegisterHouse, { + ...data, + customer_info: [data] + }).then((res) => { + common_vendor.index.redirectTo({ + url: "/CUSTOMER/bind_house_form/success" + }); + console.log(res); + }); + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/CUSTOMER/bind_house_form/model.js b/dist/dev/mp-weixin/CUSTOMER/bind_house_form/model.js new file mode 100644 index 0000000..7378b1b --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/bind_house_form/model.js @@ -0,0 +1,7 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const useModel = { + formData: common_vendor.ref({ type: "AddOwner", card_type: "MainlandID", house_relation: "Owner" }), + loading: common_vendor.ref(false) +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/CUSTOMER/bind_house_form/success.js b/dist/dev/mp-weixin/CUSTOMER/bind_house_form/success.js new file mode 100644 index 0000000..157287c --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/bind_house_form/success.js @@ -0,0 +1,37 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +if (!Array) { + const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); + const _easycom_hs_button2 = common_vendor.resolveComponent("hs-button"); + (_easycom_uni_icons2 + _easycom_hs_button2)(); +} +const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; +const _easycom_hs_button = () => "../../components/hs-button/hs-button.js"; +if (!Math) { + (_easycom_uni_icons + _easycom_hs_button)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "success", + setup(__props) { + const handleExitMiniProgram = () => { + common_vendor.index.exitMiniProgram(); + }; + return (_ctx, _cache) => { + return { + a: common_vendor.p({ + type: "checkbox-filled", + size: "50", + color: "#0082fa" + }), + b: common_vendor.o(($event) => handleExitMiniProgram()), + c: common_vendor.p({ + label: "返回聊天页", + type: "primary", + size: "md" + }) + }; + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-0b5eebf5"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/CUSTOMER/bind_house_form/success.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/CUSTOMER/bind_house_form/success.json b/dist/dev/mp-weixin/CUSTOMER/bind_house_form/success.json new file mode 100644 index 0000000..99c79c8 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/bind_house_form/success.json @@ -0,0 +1,8 @@ +{ + "navigationBarTitleText": "绑定房屋", + "navigationStyle": "custom", + "usingComponents": { + "uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons", + "hs-button": "../../components/hs-button/hs-button" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/bind_house_form/success.wxml b/dist/dev/mp-weixin/CUSTOMER/bind_house_form/success.wxml new file mode 100644 index 0000000..824513c --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/bind_house_form/success.wxml @@ -0,0 +1 @@ + 提交成功 已提交至后台审核,请耐心等待 \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/bind_house_form/success.wxss b/dist/dev/mp-weixin/CUSTOMER/bind_house_form/success.wxss new file mode 100644 index 0000000..a615230 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/bind_house_form/success.wxss @@ -0,0 +1,30 @@ +.success_page.data-v-0b5eebf5 { + width: 100%; + height: 100vh; + background: linear-gradient(180deg, #d8e7ff 0%, rgba(255, 255, 255, 0) 400rpx); +} +.success_page .success_header.data-v-0b5eebf5 { + display: flex; + align-items: center; + justify-content: center; + font-size: 44rpx; + color: #333; + padding: 280rpx 0 60rpx 0; + font-weight: 500; +} +.success_page .success_header text.data-v-0b5eebf5 { + padding-left: 10rpx; +} +.success_page .success_des.data-v-0b5eebf5 { + font-size: 28rpx; + color: #333; + text-align: center; + line-height: 60rpx; +} +.success_page .success_des text.data-v-0b5eebf5 { + color: #0082fa; +} +.success_page .success_fooer.data-v-0b5eebf5 { + text-align: center; + padding: 40rpx 200rpx 0 200rpx; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/house_Identity/index.js b/dist/dev/mp-weixin/CUSTOMER/house_Identity/index.js new file mode 100644 index 0000000..7f8367b --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/house_Identity/index.js @@ -0,0 +1,105 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const CUSTOMER_house_Identity_model = require("./model.js"); +const CUSTOMER_house_Identity_method = require("./method.js"); +require("../../common/libraries/userUserLogin.js"); +const gen_Enums = require("../../gen/Enums.js"); +require("../../common/libraries/request.js"); +const common_store_useWeAppAuthStore = require("../../common/store/useWeAppAuthStore.js"); +require("../../common/store/useWorkStore.js"); +require("../../common/libraries/naviHelper.js"); +require("../../gen/Apis.js"); +require("../../common/libraries/apiLoading.js"); +require("../../common/libraries/sendWxWork.js"); +if (!Array) { + const _easycom_hs_radio2 = common_vendor.resolveComponent("hs-radio"); + const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); + const _easycom_hs_footer2 = common_vendor.resolveComponent("hs-footer"); + (_easycom_hs_radio2 + _easycom_uni_icons2 + _easycom_hs_footer2)(); +} +const _easycom_hs_radio = () => "../../components/hs-radio/hs-radio.js"; +const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; +const _easycom_hs_footer = () => "../../components/hs-footer/hs-footer.js"; +if (!Math) { + (_easycom_hs_radio + _easycom_uni_icons + _easycom_hs_footer)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + const auth = common_store_useWeAppAuthStore.useWeAppAuthStore(); + common_vendor.onLoad(async (e) => { + var _a, _b; + await ((_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$onLaunched); + CUSTOMER_house_Identity_model.useModel.formData.value = e; + if (((_b = auth == null ? void 0 : auth.data) == null ? void 0 : _b.environment) === "wxwork") { + common_vendor.index.qy.getCurExternalContact({ + success: function(res) { + CUSTOMER_house_Identity_model.useModel.formData.value = { + external_userid: res == null ? void 0 : res.userId, + ...e + }; + console.log("开始2", res); + }, + fail: function(res) { + CUSTOMER_house_Identity_model.useModel.formData.value = e; + console.log("失败", res); + } + }); + } + }); + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e; + return { + a: common_vendor.t((_c = (_b = (_a = common_vendor.unref(CUSTOMER_house_Identity_model.useModel)) == null ? void 0 : _a.formData) == null ? void 0 : _b.value) == null ? void 0 : _c.full_name), + b: common_vendor.o(($event) => common_vendor.unref(CUSTOMER_house_Identity_model.useModel).formData.value.residential_relation = $event), + c: common_vendor.p({ + Enums: common_vendor.unref(gen_Enums.HouseOccupantsResidentialRelationEnum), + valueModel: common_vendor.unref(CUSTOMER_house_Identity_model.useModel).formData.value.residential_relation + }), + d: common_vendor.f((_e = (_d = common_vendor.unref(CUSTOMER_house_Identity_model.useModel)) == null ? void 0 : _d.collapse_list) == null ? void 0 : _e.value, (i, index, i0) => { + return common_vendor.e({ + a: common_vendor.t(i == null ? void 0 : i.label), + b: common_vendor.t((i == null ? void 0 : i.isShow) ? "收起" : "展开"), + c: "5fd4d2bc-1-" + i0, + d: common_vendor.p({ + type: (i == null ? void 0 : i.isShow) ? "down" : "right", + size: "13", + color: "#999" + }), + e: common_vendor.o(($event) => i.isShow = !i.isShow, `collapse_${index}`), + f: i == null ? void 0 : i.isShow + }, (i == null ? void 0 : i.isShow) ? { + g: common_vendor.f(i == null ? void 0 : i.children, (k, idx, i1) => { + return common_vendor.e({ + a: common_vendor.t(k == null ? void 0 : k.label), + b: k == null ? void 0 : k.btnName + }, (k == null ? void 0 : k.btnName) ? { + c: common_vendor.t(k == null ? void 0 : k.btnName), + d: "5fd4d2bc-2-" + i0 + "-" + i1, + e: common_vendor.p({ + type: "right", + size: "13", + color: "#0082FA" + }), + f: common_vendor.o(($event) => { + var _a2; + return (_a2 = common_vendor.unref(CUSTOMER_house_Identity_method.method)) == null ? void 0 : _a2.handleFindLinkClick(k); + }, `collapse_${index}_${idx}`) + } : {}, { + g: `collapse_${index}_${idx}` + }); + }) + } : {}, { + h: `collapse_${index}` + }); + }), + e: common_vendor.o(common_vendor.unref(CUSTOMER_house_Identity_method.method).handleBindHouse), + f: common_vendor.p({ + btnParimaryName: "绑定新房屋" + }) + }; + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/CUSTOMER/house_Identity/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/CUSTOMER/house_Identity/index.json b/dist/dev/mp-weixin/CUSTOMER/house_Identity/index.json new file mode 100644 index 0000000..86ead83 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/house_Identity/index.json @@ -0,0 +1,8 @@ +{ + "navigationBarTitleText": "选择身份", + "usingComponents": { + "hs-radio": "../../components/hs-radio/hs-radio", + "uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons", + "hs-footer": "../../components/hs-footer/hs-footer" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/house_Identity/index.wxml b/dist/dev/mp-weixin/CUSTOMER/house_Identity/index.wxml new file mode 100644 index 0000000..3754eca --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/house_Identity/index.wxml @@ -0,0 +1 @@ + 您已选择房屋: {{a}} 请选择您的身份: 常见问题 {{i.a}} {{i.b}} {{k.a}} {{k.c}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/house_Identity/index.wxss b/dist/dev/mp-weixin/CUSTOMER/house_Identity/index.wxss new file mode 100644 index 0000000..a32f7f8 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/house_Identity/index.wxss @@ -0,0 +1,69 @@ +page { + background-color: #f8f8f8; +} +.house_head_card { + background: linear-gradient(180deg, #eff7ff 0%, #ffffff 35%); + margin: 30rpx; + padding: 0 30rpx; + height: 350rpx; + border-radius: 20rpx; +} +.house_head_card .card_title { + color: #666666; + font-size: 28rpx; + padding: 30rpx 0; +} +.house_head_card .house_name { + color: #3d3d3d; + font-size: 32rpx; + font-weight: 500; + padding: 0 0 20rpx 0; +} +.house_card { + background-color: #fff; + margin: 30rpx; + padding: 0 30rpx; + border-radius: 20rpx; +} +.house_card .card_title { + font-size: 28rpx; + color: #666; + padding: 30rpx 0 0 0; +} +.house_card .collapse_list { + border-bottom: 1rpx solid #eee; + padding: 30rpx 0; +} +.house_card .collapse_list:last-child { + border: none; +} +.house_card .collapse_list .title { + color: #333333; + font-size: 28rpx; + font-weight: 500; + display: flex; + align-items: center; + justify-content: space-between; +} +.house_card .collapse_list .title .collapse_list_icon { + display: flex; + align-items: center; + font-size: 24rpx; + color: #999; + font-weight: 400; +} +.house_card .collapse_find_content { + color: #666; + font-size: 28rpx; + line-height: 50rpx; + padding-top: 20rpx; +} +.house_card .collapse_find_content .collapse_find_item { + display: flex; + align-items: center; + justify-content: space-between; + padding: 10rpx 0; +} +.house_card .collapse_find_content .collapse_find_item text { + color: #0082fa; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/house_Identity/method.js b/dist/dev/mp-weixin/CUSTOMER/house_Identity/method.js new file mode 100644 index 0000000..bd974ad --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/house_Identity/method.js @@ -0,0 +1,44 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const CUSTOMER_house_Identity_model = require("./model.js"); +const common_libraries_naviHelper = require("../../common/libraries/naviHelper.js"); +const gen_Apis = require("../../gen/Apis.js"); +const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js"); +require("../../common/libraries/userUserLogin.js"); +const common_libraries_sendWxWork = require("../../common/libraries/sendWxWork.js"); +const method = { + handleBindHouse() { + var _a, _b; + let data = (_b = (_a = CUSTOMER_house_Identity_model.useModel) == null ? void 0 : _a.formData) == null ? void 0 : _b.value; + if (!(data == null ? void 0 : data.residential_relation)) { + return common_libraries_naviHelper.showToast("请选择身份!"); + } + let house_info = [ + { + asset_houses_id: data == null ? void 0 : data.asset_houses_id, + residential_relation: data == null ? void 0 : data.residential_relation + } + ]; + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Archive.HouseRegisters.Store, { ...data, house_info }).then( + (res) => { + common_vendor.index.reLaunch({ + url: `/CUSTOMER/house_Identity/success?asset_houses_id=${data == null ? void 0 : data.asset_houses_id}&name=${data == null ? void 0 : data.name}&phone=${data == null ? void 0 : data.phone}}` + }); + console.log(res); + } + ); + }, + handleFindLinkClick(e) { + var _a; + if ((e == null ? void 0 : e.type) === "link") { + common_vendor.index.navigateTo({ + url: `${e == null ? void 0 : e.url}?asset_houses_id=${(_a = CUSTOMER_house_Identity_model.useModel.formData.value) == null ? void 0 : _a.asset_houses_id}` + }); + } + if ((e == null ? void 0 : e.type) === "invitation") { + common_libraries_sendWxWork.sendChatMessage({ page: "/INDEX/binding/index.html", title: "邀请你绑定房屋" }); + } + console.log(e, "eee"); + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/CUSTOMER/house_Identity/model.js b/dist/dev/mp-weixin/CUSTOMER/house_Identity/model.js new file mode 100644 index 0000000..32d24be --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/house_Identity/model.js @@ -0,0 +1,46 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const useModel = { + formData: common_vendor.ref({ residential_relation: "" }), + showData: common_vendor.ref({}), + metaData: common_vendor.ref({}), + loading: common_vendor.ref(true), + collapse_list: common_vendor.ref([ + { + label: "怎么绑定产权人?", + isShow: true, + children: [ + { + label: "【方法1】-员工代产权人绑定", + url: "/CUSTOMER/bind_house_form/index", + btnName: "去绑定", + type: "link" + }, + { + label: "【方法2】-邀请产权人绑定", + btnName: "去邀请", + type: "invitation" + }, + { + label: "【方法3】-客户线下前往物业中心登记录手机号" + } + ] + }, + { + label: "怎么产权人修改手机?", + isShow: true, + children: [ + { + label: "【方法1】-员工代修改手机号", + url: "https://www.baidu.com", + btnName: "去修改", + type: "link" + }, + { + label: "【方法2】-客户线下前往物业中心修改手机号" + } + ] + } + ]) +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/CUSTOMER/house_Identity/success.js b/dist/dev/mp-weixin/CUSTOMER/house_Identity/success.js new file mode 100644 index 0000000..91b6ee5 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/house_Identity/success.js @@ -0,0 +1,53 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +if (!Array) { + const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); + const _easycom_hs_button2 = common_vendor.resolveComponent("hs-button"); + (_easycom_uni_icons2 + _easycom_hs_button2)(); +} +const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; +const _easycom_hs_button = () => "../../components/hs-button/hs-button.js"; +if (!Math) { + (_easycom_uni_icons + _easycom_hs_button)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "success", + setup(__props) { + const formData = common_vendor.ref({}); + const handleGoToHouse = () => { + var _a, _b; + common_vendor.index.reLaunch({ + url: `/CUSTOMER/house_select/index?name=${(_a = formData.value) == null ? void 0 : _a.name}&phone=${(_b = formData.value) == null ? void 0 : _b.phone}` + }); + }; + const handleExitMiniProgram = () => { + common_vendor.index.exitMiniProgram(); + }; + common_vendor.onLoad((e) => { + formData.value = e; + }); + return (_ctx, _cache) => { + return { + a: common_vendor.p({ + type: "checkbox-filled", + size: "50", + color: "#0082fa" + }), + b: common_vendor.o(($event) => handleGoToHouse()), + c: common_vendor.p({ + label: "继续绑定房屋", + type: "primary", + size: "md" + }), + d: common_vendor.o(($event) => handleExitMiniProgram()), + e: common_vendor.p({ + label: "返回聊天页", + type: "display", + size: "md" + }) + }; + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-687f415e"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/CUSTOMER/house_Identity/success.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/CUSTOMER/house_Identity/success.json b/dist/dev/mp-weixin/CUSTOMER/house_Identity/success.json new file mode 100644 index 0000000..99c79c8 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/house_Identity/success.json @@ -0,0 +1,8 @@ +{ + "navigationBarTitleText": "绑定房屋", + "navigationStyle": "custom", + "usingComponents": { + "uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons", + "hs-button": "../../components/hs-button/hs-button" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/house_Identity/success.wxml b/dist/dev/mp-weixin/CUSTOMER/house_Identity/success.wxml new file mode 100644 index 0000000..7437613 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/house_Identity/success.wxml @@ -0,0 +1 @@ + 提交成功 已给产权人发送审核申请 请您同步提醒产权人进行审核操作 产权人信息可点击前往【房屋管理】查看 \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/house_Identity/success.wxss b/dist/dev/mp-weixin/CUSTOMER/house_Identity/success.wxss new file mode 100644 index 0000000..c176aa0 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/house_Identity/success.wxss @@ -0,0 +1,33 @@ +.success_page.data-v-687f415e { + width: 100%; + height: 100vh; + background: linear-gradient(180deg, #d8e7ff 0%, rgba(255, 255, 255, 0) 400rpx); +} +.success_page .success_header.data-v-687f415e { + display: flex; + align-items: center; + justify-content: center; + font-size: 44rpx; + color: #333; + padding: 280rpx 0 50rpx 0; + font-weight: 500; +} +.success_page .success_header text.data-v-687f415e { + padding-left: 10rpx; +} +.success_page .success_des.data-v-687f415e { + font-size: 28rpx; + color: #333; + text-align: center; + line-height: 65rpx; +} +.success_page .success_des text.data-v-687f415e { + color: #0082fa; +} +.success_page .success_fooer.data-v-687f415e { + text-align: center; + padding: 40rpx 200rpx 0 200rpx; +} +.success_page .success_fooer .last_btn.data-v-687f415e { + padding-top: 30rpx; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/house_list/components/unBindpopup.js b/dist/dev/mp-weixin/CUSTOMER/house_list/components/unBindpopup.js new file mode 100644 index 0000000..2427854 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/house_list/components/unBindpopup.js @@ -0,0 +1,64 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const gen_Apis = require("../../../gen/Apis.js"); +const common_libraries_apiLoading = require("../../../common/libraries/apiLoading.js"); +const common_libraries_naviHelper = require("../../../common/libraries/naviHelper.js"); +require("../../../common/libraries/request.js"); +require("../../../common/store/useWeAppAuthStore.js"); +require("../../../common/store/useWorkStore.js"); +if (!Array) { + const _easycom_hs_button2 = common_vendor.resolveComponent("hs-button"); + const _easycom_hs_popup_custom2 = common_vendor.resolveComponent("hs-popup-custom"); + (_easycom_hs_button2 + _easycom_hs_popup_custom2)(); +} +const _easycom_hs_button = () => "../../../components/hs-button/hs-button.js"; +const _easycom_hs_popup_custom = () => "../../../components/hs-popup-custom/hs-popup-custom.js"; +if (!Math) { + (_easycom_hs_button + _easycom_hs_popup_custom)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "unBindpopup", + props: ["data"], + emits: ["success"], + setup(__props, { emit }) { + const props = __props; + const popupShow = common_vendor.ref(false); + const handleUnBind = () => { + var _a, _b; + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Archive.HouseRegisters.Unbind, { + external_userid: (_a = props == null ? void 0 : props.data) == null ? void 0 : _a.external_userid, + asset_houses_id: (_b = props == null ? void 0 : props.data) == null ? void 0 : _b.asset_houses_id + }).then((res) => { + common_libraries_naviHelper.showToast("解除成功!"); + emit("success"); + console.log(res); + }); + }; + return (_ctx, _cache) => { + var _a, _b; + return { + a: common_vendor.o(($event) => popupShow.value = true), + b: common_vendor.t((_b = (_a = props == null ? void 0 : props.data) == null ? void 0 : _a.asset_house) == null ? void 0 : _b.full_name), + c: common_vendor.o(handleUnBind), + d: common_vendor.p({ + label: "确认解绑", + type: "primary", + size: "md" + }), + e: common_vendor.o(($event) => popupShow.value = false), + f: common_vendor.p({ + label: "点错了,返回", + size: "md" + }), + g: common_vendor.o(($event) => popupShow.value = false), + h: common_vendor.p({ + show: popupShow.value, + mode: "center", + title: "再次确认" + }) + }; + }; + } +}); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-27899cda"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/CUSTOMER/house_list/components/unBindpopup.vue"]]); +wx.createComponent(Component); diff --git a/dist/dev/mp-weixin/CUSTOMER/house_list/components/unBindpopup.json b/dist/dev/mp-weixin/CUSTOMER/house_list/components/unBindpopup.json new file mode 100644 index 0000000..2c28f02 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/house_list/components/unBindpopup.json @@ -0,0 +1,7 @@ +{ + "component": true, + "usingComponents": { + "hs-button": "../../../components/hs-button/hs-button", + "hs-popup-custom": "../../../components/hs-popup-custom/hs-popup-custom" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/house_list/components/unBindpopup.wxml b/dist/dev/mp-weixin/CUSTOMER/house_list/components/unBindpopup.wxml new file mode 100644 index 0000000..c71e6c9 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/house_list/components/unBindpopup.wxml @@ -0,0 +1 @@ + 解绑 是否解除{{b}}的绑定? \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/house_list/components/unBindpopup.wxss b/dist/dev/mp-weixin/CUSTOMER/house_list/components/unBindpopup.wxss new file mode 100644 index 0000000..7da05c8 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/house_list/components/unBindpopup.wxss @@ -0,0 +1,11 @@ +.customer_item_unbind.data-v-27899cda { + color: #0082fa; + font-size: 24rpx; +} +.popup_contents.data-v-27899cda { + text-align: center; + padding: 0 30rpx 50rpx 30rpx; +} +.popup_footer.data-v-27899cda { + padding: 0 50rpx; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/house_list/index.js b/dist/dev/mp-weixin/CUSTOMER/house_list/index.js new file mode 100644 index 0000000..1f79d96 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/house_list/index.js @@ -0,0 +1,106 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const common_libraries_userUserLogin = require("../../common/libraries/userUserLogin.js"); +const CUSTOMER_house_list_model = require("./model.js"); +const CUSTOMER_house_list_method = require("./method.js"); +const gen_Enums = require("../../gen/Enums.js"); +require("../../common/libraries/request.js"); +require("../../common/store/useWeAppAuthStore.js"); +require("../../gen/Apis.js"); +require("../../common/store/useWorkStore.js"); +require("../../common/libraries/apiLoading.js"); +if (!Array) { + const _easycom_hs_cell2 = common_vendor.resolveComponent("hs-cell"); + const _easycom_hs_empty2 = common_vendor.resolveComponent("hs-empty"); + const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag"); + const _easycom_hs_footer2 = common_vendor.resolveComponent("hs-footer"); + (_easycom_hs_cell2 + _easycom_hs_empty2 + _easycom_hs_enum_tag2 + _easycom_hs_footer2)(); +} +const _easycom_hs_cell = () => "../../components/hs-cell/hs-cell.js"; +const _easycom_hs_empty = () => "../../components/hs-empty/hs-empty.js"; +const _easycom_hs_enum_tag = () => "../../components/hs-enum-tag/hs-enum-tag.js"; +const _easycom_hs_footer = () => "../../components/hs-footer/hs-footer.js"; +if (!Math) { + (_easycom_hs_cell + _easycom_hs_empty + _easycom_hs_enum_tag + MyUnBindpopup + _easycom_hs_footer)(); +} +const MyUnBindpopup = () => "./components/unBindpopup.js"; +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + common_vendor.onShow(async (e) => { + var _a, _b; + await ((_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$onLaunched); + if ((_b = common_libraries_userUserLogin.getUser) == null ? void 0 : _b.onBindPhone()) { + console.log("onShow_21"); + common_vendor.index.qy.getCurExternalContact({ + success: function(res) { + var _a2; + CUSTOMER_house_list_model.useModel.showData.value = {}; + CUSTOMER_house_list_model.useModel.formData.value.external_userid = res == null ? void 0 : res.userId; + (_a2 = CUSTOMER_house_list_method.method) == null ? void 0 : _a2.getList(); + console.log("开始2", res); + }, + fail: function(res) { + var _a2; + (_a2 = CUSTOMER_house_list_method.method) == null ? void 0 : _a2.getList(); + console.log("失败", res); + } + }); + } + }); + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x; + return common_vendor.e({ + a: (_b = (_a = common_vendor.unref(CUSTOMER_house_list_model.useModel)) == null ? void 0 : _a.loading) == null ? void 0 : _b.value + }, ((_d = (_c = common_vendor.unref(CUSTOMER_house_list_model.useModel)) == null ? void 0 : _c.loading) == null ? void 0 : _d.value) ? common_vendor.e({ + b: common_vendor.t(((_h = (_g = (_f = (_e = common_vendor.unref(CUSTOMER_house_list_model.useModel)) == null ? void 0 : _e.showData) == null ? void 0 : _f.value) == null ? void 0 : _g.customer) == null ? void 0 : _h.customer_name) || "请补充姓名"), + c: common_vendor.p({ + title: "手机号", + value: (_l = (_k = (_j = (_i = common_vendor.unref(CUSTOMER_house_list_model.useModel)) == null ? void 0 : _i.showData) == null ? void 0 : _j.value) == null ? void 0 : _k.customer) == null ? void 0 : _l.customer_phone + }), + d: !((_p = (_o = (_n = (_m = common_vendor.unref(CUSTOMER_house_list_model.useModel)) == null ? void 0 : _m.showData) == null ? void 0 : _n.value) == null ? void 0 : _o.houseList) == null ? void 0 : _p.length) + }, !((_t = (_s = (_r = (_q = common_vendor.unref(CUSTOMER_house_list_model.useModel)) == null ? void 0 : _q.showData) == null ? void 0 : _r.value) == null ? void 0 : _s.houseList) == null ? void 0 : _t.length) ? {} : {}, { + e: common_vendor.f((_w = (_v = (_u = common_vendor.unref(CUSTOMER_house_list_model.useModel)) == null ? void 0 : _u.showData) == null ? void 0 : _v.value) == null ? void 0 : _w.houseList, (i, index, i0) => { + var _a2, _b2, _c2, _d2, _e2; + return common_vendor.e({ + a: common_vendor.t((_a2 = i == null ? void 0 : i.asset_house) == null ? void 0 : _a2.full_name), + b: (i == null ? void 0 : i.house_relation) === "Owner" + }, (i == null ? void 0 : i.house_relation) === "Owner" ? { + c: "199b823c-2-" + i0, + d: common_vendor.p({ + value: i == null ? void 0 : i.house_relation, + size: "md", + Enums: common_vendor.unref(gen_Enums.HouseOccupantsHouseRelationEnum) + }) + } : { + e: "199b823c-3-" + i0, + f: common_vendor.p({ + value: i == null ? void 0 : i.residential_relation, + size: "md", + Enums: common_vendor.unref(gen_Enums.HouseOccupantsResidentialRelationEnum) + }) + }, { + g: (i == null ? void 0 : i.house_relation) !== "Owner" + }, (i == null ? void 0 : i.house_relation) !== "Owner" ? { + h: common_vendor.o((_b2 = common_vendor.unref(CUSTOMER_house_list_method.method)) == null ? void 0 : _b2.getList, `iten_${index}`), + i: "199b823c-4-" + i0, + j: common_vendor.p({ + data: { + ...i, + external_userid: (_e2 = (_d2 = (_c2 = common_vendor.unref(CUSTOMER_house_list_model.useModel)) == null ? void 0 : _c2.formData) == null ? void 0 : _d2.value) == null ? void 0 : _e2.external_userid + } + }) + } : {}, { + k: `iten_${index}` + }); + }), + f: common_vendor.o((_x = common_vendor.unref(CUSTOMER_house_list_method.method)) == null ? void 0 : _x.handleBindHouse), + g: common_vendor.p({ + btnParimaryName: "绑定新房屋" + }) + }) : {}); + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/CUSTOMER/house_list/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/CUSTOMER/house_list/index.json b/dist/dev/mp-weixin/CUSTOMER/house_list/index.json new file mode 100644 index 0000000..533c497 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/house_list/index.json @@ -0,0 +1,10 @@ +{ + "navigationBarTitleText": "房屋列表", + "usingComponents": { + "hs-cell": "../../components/hs-cell/hs-cell", + "hs-empty": "../../components/hs-empty/hs-empty", + "hs-enum-tag": "../../components/hs-enum-tag/hs-enum-tag", + "hs-footer": "../../components/hs-footer/hs-footer", + "my-un-bindpopup": "./components/unBindpopup" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/house_list/index.wxml b/dist/dev/mp-weixin/CUSTOMER/house_list/index.wxml new file mode 100644 index 0000000..6645f40 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/house_list/index.wxml @@ -0,0 +1 @@ + 已绑定的房屋 {{i.a}} 身份: \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/house_list/index.wxss b/dist/dev/mp-weixin/CUSTOMER/house_list/index.wxss new file mode 100644 index 0000000..c74995f --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/house_list/index.wxss @@ -0,0 +1,85 @@ +page { + background-color: #f8f8f8; +} +.customer_assets_page { + padding: 30rpx 30rpx 0 30rpx; + padding-bottom: calc(210rpx + constant(safe-area-inset-bottom)); + padding-bottom: calc(210rpx + env(safe-area-inset-bottom)); +} +.customer_assets_page .card_user_header { + display: flex; + align-items: center; + padding: 30rpx 0; + font-size: 28rpx; + border-bottom: 1rpx solid #eee; +} +.customer_assets_page .card_user_header .avatar { + width: 100rpx; + height: 100rpx; + background-color: #f8f8f8; +} +.customer_assets_page .card_user_header .user_info { + flex: 1; + padding: 0 20rpx; + height: 100rpx; +} +.customer_assets_page .card_user_header .user_info .name { + color: #666; +} +.customer_assets_page .card_user_header .user_info .phone { + color: #999; + padding-top: 10rpx; +} +.customer_assets_page .card_user_header .edit_btn { + color: #0082fa; + height: 100rpx; +} +.customer_card { + background-color: #fff; + border-radius: 20rpx; + padding: 0 30rpx; +} +.customer_item { + border-radius: 15rpx; + background-color: #fafafa; + padding: 0 30rpx; + margin-top: 30rpx; + display: flex; + align-items: center; + justify-content: space-between; +} +.customer_item_head { + padding: 30rpx 0 0 0; + color: #3d3d3d; + font-size: 28rpx; + font-weight: 500; +} +.customer_item_identity { + color: #666666; + font-size: 24rpx; + padding: 10rpx 0 30rpx 0; +} +.customer_item_add_btn { + display: flex; + align-items: center; + border-radius: 20rpx; + padding: 30rpx; + font-size: 28rpx; + color: #333; + border: 2px dashed #d3d3d3; + font-weight: 500; +} +.customer_item_add_btn text { + padding-left: 5rpx; +} +.house_contents { + background-color: #fff; + border-radius: 20rpx; + padding: 30rpx; + margin: 30rpx 0; +} +.house_contents .house_title { + color: #333333; + font-size: 32rpx; + font-weight: 500; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/house_list/method.js b/dist/dev/mp-weixin/CUSTOMER/house_list/method.js new file mode 100644 index 0000000..6ffae39 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/house_list/method.js @@ -0,0 +1,31 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const CUSTOMER_house_list_model = require("./model.js"); +const gen_Apis = require("../../gen/Apis.js"); +const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js"); +const common_libraries_userUserLogin = require("../../common/libraries/userUserLogin.js"); +const method = { + getList() { + var _a, _b; + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Customer.CustomerHouses.List, (_b = (_a = CUSTOMER_house_list_model.useModel) == null ? void 0 : _a.formData) == null ? void 0 : _b.value).then((res) => { + CUSTOMER_house_list_model.useModel.showData.value = res == null ? void 0 : res.data; + if (!(res == null ? void 0 : res.data)) { + common_vendor.index.reLaunch({ + url: "/CUSTOMER/bind_house/index" + }); + } else { + CUSTOMER_house_list_model.useModel.loading.value = true; + } + console.log(res); + }); + }, + handleBindHouse() { + var _a, _b, _c, _d, _e, _f, _g, _h, _i; + if ((_a = common_libraries_userUserLogin.getUser) == null ? void 0 : _a.toPageLogin()) + return; + common_vendor.index.navigateTo({ + url: `/CUSTOMER/bind_house/index?phone=${(_e = (_d = (_c = (_b = CUSTOMER_house_list_model.useModel) == null ? void 0 : _b.showData) == null ? void 0 : _c.value) == null ? void 0 : _d.customer) == null ? void 0 : _e.customer_phone}&name=${(_i = (_h = (_g = (_f = CUSTOMER_house_list_model.useModel) == null ? void 0 : _f.showData) == null ? void 0 : _g.value) == null ? void 0 : _h.customer) == null ? void 0 : _i.customer_name}` + }); + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/CUSTOMER/house_list/model.js b/dist/dev/mp-weixin/CUSTOMER/house_list/model.js new file mode 100644 index 0000000..2b9477f --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/house_list/model.js @@ -0,0 +1,10 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const useModel = { + formData: common_vendor.ref({ page: 1, external_userid: "" }), + showData: common_vendor.ref({}), + metaData: common_vendor.ref({}), + loading: common_vendor.ref(false), + popupShow: common_vendor.ref(false) +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/CUSTOMER/house_select/index.js b/dist/dev/mp-weixin/CUSTOMER/house_select/index.js new file mode 100644 index 0000000..4c44e24 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/house_select/index.js @@ -0,0 +1,62 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const CUSTOMER_house_select_model = require("./model.js"); +const CUSTOMER_house_select_method = require("./method.js"); +require("../../gen/Apis.js"); +require("../../common/libraries/request.js"); +require("../../common/store/useWeAppAuthStore.js"); +require("../../common/libraries/apiLoading.js"); +require("../../common/store/useWorkStore.js"); +if (!Array) { + const _easycom_up_search2 = common_vendor.resolveComponent("up-search"); + const _easycom_hs_empty2 = common_vendor.resolveComponent("hs-empty"); + const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); + (_easycom_up_search2 + _easycom_hs_empty2 + _easycom_uni_icons2)(); +} +const _easycom_up_search = () => "../../node-modules/uview-plus/components/u-search/u-search.js"; +const _easycom_hs_empty = () => "../../components/hs-empty/hs-empty.js"; +const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; +if (!Math) { + (_easycom_up_search + _easycom_hs_empty + _easycom_uni_icons)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + common_vendor.onLoad((e) => { + var _a; + CUSTOMER_house_select_model.useModel.pageFormData.value = e; + (_a = CUSTOMER_house_select_method.method) == null ? void 0 : _a.handleSearch(); + }); + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _i; + return common_vendor.e({ + a: common_vendor.o((_a = common_vendor.unref(CUSTOMER_house_select_method.method)) == null ? void 0 : _a.handleSearch), + b: common_vendor.o(($event) => common_vendor.unref(CUSTOMER_house_select_model.useModel).formData.value.name = $event), + c: common_vendor.p({ + showAction: false, + placeholder: "请输入房屋名称搜索", + modelValue: common_vendor.unref(CUSTOMER_house_select_model.useModel).formData.value.name + }), + d: !((_d = (_c = (_b = common_vendor.unref(CUSTOMER_house_select_model.useModel)) == null ? void 0 : _b.listData) == null ? void 0 : _c.value) == null ? void 0 : _d.length) + }, !((_g = (_f = (_e = common_vendor.unref(CUSTOMER_house_select_model.useModel)) == null ? void 0 : _e.listData) == null ? void 0 : _f.value) == null ? void 0 : _g.length) ? {} : {}, { + e: common_vendor.f((_i = (_h = common_vendor.unref(CUSTOMER_house_select_model.useModel)) == null ? void 0 : _h.listData) == null ? void 0 : _i.value, (i, index, i0) => { + return { + a: common_vendor.t(i == null ? void 0 : i.label), + b: "2c60df80-2-" + i0, + c: `item_${index}`, + d: common_vendor.o(($event) => { + var _a2; + return (_a2 = common_vendor.unref(CUSTOMER_house_select_method.method)) == null ? void 0 : _a2.handleSelect(i); + }, `item_${index}`) + }; + }), + f: common_vendor.p({ + type: "right", + size: "13" + }) + }); + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/CUSTOMER/house_select/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/CUSTOMER/house_select/index.json b/dist/dev/mp-weixin/CUSTOMER/house_select/index.json new file mode 100644 index 0000000..46c6d5e --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/house_select/index.json @@ -0,0 +1,8 @@ +{ + "navigationBarTitleText": "房源列表", + "usingComponents": { + "up-search": "../../node-modules/uview-plus/components/u-search/u-search", + "hs-empty": "../../components/hs-empty/hs-empty", + "uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/house_select/index.wxml b/dist/dev/mp-weixin/CUSTOMER/house_select/index.wxml new file mode 100644 index 0000000..8579b6d --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/house_select/index.wxml @@ -0,0 +1 @@ +{{i.a}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/house_select/index.wxss b/dist/dev/mp-weixin/CUSTOMER/house_select/index.wxss new file mode 100644 index 0000000..dedf9a6 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/house_select/index.wxss @@ -0,0 +1,30 @@ +page { + background-color: #f8f8f8; +} +.house_header { + position: fixed; + top: 0; + left: 0; + right: 0; + background-color: #fff; + z-index: 100; + height: 90rpx; + display: flex; + align-items: center; + justify-content: center; + padding: 0 30rpx; +} +.house_content { + padding-top: 90rpx; +} +.house_content .house_item { + display: flex; + align-items: center; + justify-content: space-between; + background-color: #fff; + padding: 30rpx; + border-top: 1rpx solid #eee; + color: #3d3d3d; + font-size: 28rpx; + font-weight: 500; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/house_select/method.js b/dist/dev/mp-weixin/CUSTOMER/house_select/method.js new file mode 100644 index 0000000..c2e9377 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/house_select/method.js @@ -0,0 +1,26 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const CUSTOMER_house_select_model = require("./model.js"); +const gen_Apis = require("../../gen/Apis.js"); +const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js"); +const getList = () => { + var _a, _b; + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Grid.Grids.GridSelectHouse, (_b = (_a = CUSTOMER_house_select_model.useModel) == null ? void 0 : _a.formData) == null ? void 0 : _b.value).then((res) => { + CUSTOMER_house_select_model.useModel.listData.value = res == null ? void 0 : res.data; + console.log(res); + }); +}; +const method = { + handleSearch() { + CUSTOMER_house_select_model.useModel.formData.value.page = 1; + getList(); + }, + handleSelect(e) { + var _a, _b, _c, _d, _e, _f; + common_vendor.index.navigateTo({ + url: `/CUSTOMER/house_Identity/index?phone=${(_c = (_b = (_a = CUSTOMER_house_select_model.useModel) == null ? void 0 : _a.pageFormData) == null ? void 0 : _b.value) == null ? void 0 : _c.phone}&name=${(_f = (_e = (_d = CUSTOMER_house_select_model.useModel) == null ? void 0 : _d.pageFormData) == null ? void 0 : _e.value) == null ? void 0 : _f.name}&asset_houses_id=${e == null ? void 0 : e.value}&full_name=${e == null ? void 0 : e.label}` + }); + console.log(e); + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/CUSTOMER/house_select/model.js b/dist/dev/mp-weixin/CUSTOMER/house_select/model.js new file mode 100644 index 0000000..8d14619 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/house_select/model.js @@ -0,0 +1,8 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const useModel = { + formData: common_vendor.ref({ page: 1, name: "" }), + pageFormData: common_vendor.ref({}), + listData: common_vendor.ref([]) +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/CUSTOMER/list_bill/index.js b/dist/dev/mp-weixin/CUSTOMER/list_bill/index.js new file mode 100644 index 0000000..729abeb --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/list_bill/index.js @@ -0,0 +1,142 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const CUSTOMER_list_bill_method = require("./method.js"); +const CUSTOMER_list_bill_model = require("./model.js"); +const gen_Enums = require("../../gen/Enums.js"); +const common_libraries_userUserLogin = require("../../common/libraries/userUserLogin.js"); +require("../../common/libraries/apiLoading.js"); +require("../../gen/Apis.js"); +require("../../common/libraries/request.js"); +require("../../common/store/useWeAppAuthStore.js"); +require("../../common/store/useWorkStore.js"); +require("../../common/libraries/sendWxWork.js"); +require("../../common/libraries/naviHelper.js"); +if (!Array) { + const _easycom_hs_empty2 = common_vendor.resolveComponent("hs-empty"); + const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); + const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag"); + const _easycom_hs_button2 = common_vendor.resolveComponent("hs-button"); + (_easycom_hs_empty2 + _easycom_uni_icons2 + _easycom_hs_enum_tag2 + _easycom_hs_button2)(); +} +const _easycom_hs_empty = () => "../../components/hs-empty/hs-empty.js"; +const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; +const _easycom_hs_enum_tag = () => "../../components/hs-enum-tag/hs-enum-tag.js"; +const _easycom_hs_button = () => "../../components/hs-button/hs-button.js"; +if (!Math) { + (_easycom_hs_empty + _easycom_uni_icons + _easycom_hs_enum_tag + _easycom_hs_button)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + common_vendor.onLoad(async (e) => { + var _a, _b, _c; + await ((_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$onLaunched); + CUSTOMER_list_bill_model.useModel.formData.value = e; + if ((_b = common_libraries_userUserLogin.getUser) == null ? void 0 : _b.getLoginStatus()) { + CUSTOMER_list_bill_model.useModel.items.value = []; + (_c = CUSTOMER_list_bill_method.method) == null ? void 0 : _c.handleGetList(); + } + }); + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m; + return common_vendor.e({ + a: common_vendor.t((_c = (_b = (_a = common_vendor.unref(CUSTOMER_list_bill_model.useModel)) == null ? void 0 : _a.formData) == null ? void 0 : _b.value) == null ? void 0 : _c.name), + b: !((_f = (_e = (_d = common_vendor.unref(CUSTOMER_list_bill_model.useModel)) == null ? void 0 : _d.items) == null ? void 0 : _e.value) == null ? void 0 : _f.length) + }, !((_i = (_h = (_g = common_vendor.unref(CUSTOMER_list_bill_model.useModel)) == null ? void 0 : _g.items) == null ? void 0 : _h.value) == null ? void 0 : _i.length) ? { + c: common_vendor.p({ + text: "无账单" + }) + } : {}, { + d: common_vendor.f((_k = (_j = common_vendor.unref(CUSTOMER_list_bill_model.useModel)) == null ? void 0 : _j.items) == null ? void 0 : _k.value, (i, index, i0) => { + return common_vendor.e({ + a: i == null ? void 0 : i.checked + }, (i == null ? void 0 : i.checked) ? { + b: "1712258e-1-" + i0, + c: common_vendor.p({ + type: "checkbox-filled", + size: "20", + color: "#2A7EFB" + }) + } : { + d: "1712258e-2-" + i0, + e: common_vendor.p({ + type: "circle", + size: "20", + color: "#888" + }) + }, { + f: common_vendor.t((i == null ? void 0 : i.display_text) || ""), + g: common_vendor.o(($event) => { + var _a2; + return (_a2 = common_vendor.unref(CUSTOMER_list_bill_method.method)) == null ? void 0 : _a2.handleCollapseAllCheckedBtn(index, i); + }, `items_${index}`), + h: common_vendor.t((i == null ? void 0 : i.pending_amount) || "0.00"), + i: "1712258e-3-" + i0, + j: common_vendor.o(($event) => { + var _a2; + return (_a2 = common_vendor.unref(CUSTOMER_list_bill_method.method)) == null ? void 0 : _a2.handleCollapseClick(index, i); + }, `items_${index}`), + k: i == null ? void 0 : i.show + }, (i == null ? void 0 : i.show) ? { + l: common_vendor.f(i == null ? void 0 : i.bills, (k, idx, i1) => { + return common_vendor.e({ + a: k == null ? void 0 : k.checked + }, (k == null ? void 0 : k.checked) ? { + b: "1712258e-4-" + i0 + "-" + i1, + c: common_vendor.p({ + type: "checkbox-filled", + size: "20", + color: "#2A7EFB" + }) + } : { + d: "1712258e-5-" + i0 + "-" + i1, + e: common_vendor.p({ + type: "circle", + size: "20", + color: "#888" + }) + }, { + f: "1712258e-6-" + i0 + "-" + i1, + g: common_vendor.p({ + Enums: common_vendor.unref(gen_Enums.HouseBillsTypeEnum), + value: k == null ? void 0 : k.type, + objStyle: { + color: "#555", + fontSize: "28rpx" + } + }), + h: common_vendor.t((k == null ? void 0 : k.total_payable_amount) || "-"), + i: `ks_${index}_${idx}`, + j: common_vendor.o(($event) => { + var _a2; + return (_a2 = common_vendor.unref(CUSTOMER_list_bill_method.method)) == null ? void 0 : _a2.handleCalculatePrice(index, idx, k); + }, `ks_${index}_${idx}`) + }); + }) + } : {}, { + m: `items_${index}` + }); + }), + e: common_vendor.p({ + type: "down", + size: "15", + color: "#999" + }), + f: common_vendor.o((_l = common_vendor.unref(CUSTOMER_list_bill_method.method)) == null ? void 0 : _l.handleQRCode), + g: common_vendor.p({ + label: "二维码收款", + size: "md", + type: "ghost" + }), + h: common_vendor.o((_m = common_vendor.unref(CUSTOMER_list_bill_method.method)) == null ? void 0 : _m.handleSelectExternalContact), + i: common_vendor.p({ + type: "primary", + size: "md", + label: "分享账单" + }) + }); + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/CUSTOMER/list_bill/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/CUSTOMER/list_bill/index.json b/dist/dev/mp-weixin/CUSTOMER/list_bill/index.json new file mode 100644 index 0000000..9fc5aa3 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/list_bill/index.json @@ -0,0 +1,9 @@ +{ + "navigationBarTitleText": "发送账单", + "usingComponents": { + "hs-empty": "../../components/hs-empty/hs-empty", + "uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons", + "hs-enum-tag": "../../components/hs-enum-tag/hs-enum-tag", + "hs-button": "../../components/hs-button/hs-button" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/list_bill/index.wxml b/dist/dev/mp-weixin/CUSTOMER/list_bill/index.wxml new file mode 100644 index 0000000..bbe85e9 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/list_bill/index.wxml @@ -0,0 +1 @@ +{{a}}{{i.f}}账单 ¥{{i.h}}¥{{k.h}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/list_bill/index.wxss b/dist/dev/mp-weixin/CUSTOMER/list_bill/index.wxss new file mode 100644 index 0000000..99faf3d --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/list_bill/index.wxss @@ -0,0 +1,105 @@ +page { + background-color: #f8f8f8; +} +.page_bill_head_title { + color: #3d3d3d; + font-size: 30rpx; + font-weight: 500; + padding: 30rpx; + background-color: #fff; + border-top: 1rpx solid #eee; +} +.form_card { + background-color: #fff; + padding: 0 30rpx; + margin-bottom: 30rpx; +} +.bill_content { + padding: 20rpx 30rpx 0 30rpx; + padding-bottom: calc(210rpx + constant(safe-area-inset-bottom)); + padding-bottom: calc(210rpx + env(safe-area-inset-bottom)); +} +.bill_content .item_content { + padding: 0 0 30rpx 0; +} +.bill_content .item_content .huse_name { + font-size: 30rpx; +} +.bill_content .card_content { + background-color: #fff; + border-radius: 16rpx; + padding: 0 30rpx 30rpx 30rpx; + margin-top: 20rpx; +} +.bill_content .card_content .collapse_body { + background-color: #f4f5f7; + padding: 30rpx 30rpx 0 30rpx; + border-radius: 10rpx; + text-align: center; + margin-top: 30rpx; +} +.bill_content .card_content .collapse_body .collapse_cell { + display: flex; + align-items: center; + justify-content: space-between; + padding-bottom: 25rpx; + font-size: 28rpx; + color: #666; +} +.bill_content .card_content .collapse_body .collapse_query_btn { + border: 1px solid #999; + font-size: 24rpx; + display: inline-block; + justify-content: center; + align-items: center; + margin: 0 0 30rpx 0; + padding: 12rpx 20rpx; + border-radius: 100rpx; + color: #999; +} +.bill_content .card_content .collapse_body .collapse_cell_find_select { + display: flex; + align-items: center; +} +.bill_content .headner_title { + padding: 25rpx 0; +} +.bill_content .collapse_hader { + display: flex; + align-items: center; + justify-content: space-between; + font-size: 30rpx; + padding: 30rpx 0 0 0; +} +.bill_content .collapse_hader .collapse_hader_left, .bill_content .collapse_hader .collapse_hader_right { + display: flex; + align-items: center; +} +.bill_content .collapse_hader .collapse_hader_left { + flex: 1; +} +.bill_content .collapse_hader .bill_title { + color: #333; + padding-left: 10rpx; + width: 100%; +} +.bill_content .collapse_hader .bill_price { + color: #df3600; + padding-right: 10rpx; +} +.footer { + position: fixed; + left: 0; + bottom: 0; + right: 0; + padding: 20rpx 30rpx 0 30rpx; + background-color: #fff; + display: flex; + align-items: center; + justify-content: space-between; + padding-bottom: calc(20rpx + constant(safe-area-inset-bottom)); + padding-bottom: calc(20rpx + env(safe-area-inset-bottom)); +} +.footer .btn { + width: 48%; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/list_bill/method.js b/dist/dev/mp-weixin/CUSTOMER/list_bill/method.js new file mode 100644 index 0000000..503a60d --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/list_bill/method.js @@ -0,0 +1,181 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const CUSTOMER_list_bill_model = require("./model.js"); +const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js"); +const gen_Apis = require("../../gen/Apis.js"); +const common_libraries_sendWxWork = require("../../common/libraries/sendWxWork.js"); +require("../../common/libraries/request.js"); +const common_store_useWeAppAuthStore = require("../../common/store/useWeAppAuthStore.js"); +require("../../common/store/useWorkStore.js"); +const common_libraries_naviHelper = require("../../common/libraries/naviHelper.js"); +const auth = common_store_useWeAppAuthStore.useWeAppAuthStore(); +const handleGetList = () => { + var _a, _b; + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Bill.HouseBills.List, { ...(_b = (_a = CUSTOMER_list_bill_model.useModel) == null ? void 0 : _a.formData) == null ? void 0 : _b.value, type: 1 }).then((res) => { + var _a2; + (_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.map((i) => { + var _a3; + i.checked = true; + (_a3 = i == null ? void 0 : i.bills) == null ? void 0 : _a3.map((k) => { + k.checked = true; + }); + }); + CUSTOMER_list_bill_model.useModel.items.value = [...CUSTOMER_list_bill_model.useModel.items.value, ...res == null ? void 0 : res.data]; + }); +}; +const getBillIds = () => { + var _a, _b, _c; + let bill_ids = []; + (_c = (_b = (_a = CUSTOMER_list_bill_model.useModel) == null ? void 0 : _a.items) == null ? void 0 : _b.value) == null ? void 0 : _c.map((res) => { + var _a2, _b2; + if ((_a2 = res == null ? void 0 : res.bills) == null ? void 0 : _a2.length) { + (_b2 = res == null ? void 0 : res.bills) == null ? void 0 : _b2.map((i) => { + if (i == null ? void 0 : i.checked) { + bill_ids == null ? void 0 : bill_ids.push(i == null ? void 0 : i.id); + } + }); + } + }); + if (!(bill_ids == null ? void 0 : bill_ids.length)) { + common_libraries_naviHelper.showToast("请至少选择一个月账单!"); + return false; + } + setCalculateTotalPrice(); + return bill_ids; +}; +const setCalculateTotalPrice = () => { + var _a, _b, _c; + let total_amount = 0; + (_c = (_b = (_a = CUSTOMER_list_bill_model.useModel) == null ? void 0 : _a.items) == null ? void 0 : _b.value) == null ? void 0 : _c.map((res) => { + var _a2; + (_a2 = res == null ? void 0 : res.bills) == null ? void 0 : _a2.map((k) => { + if (k == null ? void 0 : k.checked) { + total_amount += parseFloat(k.amount || 0); + } + }); + }); + CUSTOMER_list_bill_model.useModel.total_amount.value = total_amount; +}; +const method = { + handleGetList, + handleCollapseClick: (index, res) => { + var _a, _b, _c; + let show = (_c = (_b = (_a = CUSTOMER_list_bill_model.useModel) == null ? void 0 : _a.items) == null ? void 0 : _b.value[index]) == null ? void 0 : _c.show; + CUSTOMER_list_bill_model.useModel.items.value[index].show = !show; + }, + hanldeSearch: (res) => { + var _a, _b; + CUSTOMER_list_bill_model.useModel.items.value = []; + CUSTOMER_list_bill_model.useModel.formData.value = { ...(_b = (_a = CUSTOMER_list_bill_model.useModel) == null ? void 0 : _a.formData) == null ? void 0 : _b.value, ...res, page: 1 }; + handleGetList(); + }, + handleCalculatePrice(index, idx, res) { + var _a; + let checked = res == null ? void 0 : res.checked; + CUSTOMER_list_bill_model.useModel.items.value[index].bills[idx].checked = !checked; + if (checked) { + CUSTOMER_list_bill_model.useModel.items.value[index].checked = false; + } else { + let allChecked = (_a = CUSTOMER_list_bill_model.useModel.items.value[index].bills) == null ? void 0 : _a.every( + (item) => item == null ? void 0 : item.checked + ); + CUSTOMER_list_bill_model.useModel.items.value[index].checked = allChecked; + console.log(allChecked); + } + }, + handleCollapseAllCheckedBtn: async (index, res) => { + var _a, _b, _c, _d; + let checked = res == null ? void 0 : res.checked; + CUSTOMER_list_bill_model.useModel.items.value[index].checked = !checked; + (_d = (_c = (_b = (_a = CUSTOMER_list_bill_model.useModel) == null ? void 0 : _a.items) == null ? void 0 : _b.value[index]) == null ? void 0 : _c.bills) == null ? void 0 : _d.map((i) => { + i.checked = !checked; + }); + }, + handleQuery(res) { + common_vendor.index.navigateTo({ + url: `/INDEX/bill/show/index?asset_houses_id=${res == null ? void 0 : res.asset_houses_id}&month=${res == null ? void 0 : res.month}` + }); + console.log(res, "res"); + }, + handleSubmitOrder() { + var _a, _b, _c, _d, _e, _f, _g; + let bill_ids = []; + (_c = (_b = (_a = CUSTOMER_list_bill_model.useModel) == null ? void 0 : _a.items) == null ? void 0 : _b.value) == null ? void 0 : _c.map((res) => { + var _a2; + (_a2 = res == null ? void 0 : res.bills) == null ? void 0 : _a2.map((k) => { + var _a3; + (_a3 = k == null ? void 0 : k.details) == null ? void 0 : _a3.map((i) => { + if (k == null ? void 0 : k.checked) { + bill_ids.push(i == null ? void 0 : i.id); + } + }); + }); + }); + if (!(bill_ids == null ? void 0 : bill_ids.length)) { + common_libraries_naviHelper.showToast("至少选择一个账单!"); + return; + } + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.HouseOrder.HouseOrders.Store, { + bill_ids, + amount: (_e = (_d = CUSTOMER_list_bill_model.useModel) == null ? void 0 : _d.total_amount) == null ? void 0 : _e.value, + total_payable_amount: (_g = (_f = CUSTOMER_list_bill_model.useModel) == null ? void 0 : _f.total_amount) == null ? void 0 : _g.value + }).then((res) => { + var _a2; + common_vendor.index.navigateTo({ + url: `/INDEX/pay/index?id=${(_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.id}` + }); + }); + }, + handleQRCode() { + var _a, _b, _c, _d; + let bill_ids = getBillIds() || []; + if (bill_ids == null ? void 0 : bill_ids.length) { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.HouseOrder.HouseOrders.Store, { + bill_ids: bill_ids || [], + total_payable_amount: (_b = (_a = CUSTOMER_list_bill_model.useModel) == null ? void 0 : _a.total_amount) == null ? void 0 : _b.value, + amount: (_d = (_c = CUSTOMER_list_bill_model.useModel) == null ? void 0 : _c.total_amount) == null ? void 0 : _d.value + }).then((res) => { + var _a2, _b2, _c2, _d2, _e, _f, _g, _h, _i, _j; + common_vendor.index.navigateTo({ + url: `/BILL/poster/index?id=${(_b2 = (_a2 = CUSTOMER_list_bill_model.useModel.formData) == null ? void 0 : _a2.value) == null ? void 0 : _b2.asset_houses_id}&order_id=${(_c2 = res == null ? void 0 : res.data) == null ? void 0 : _c2.id}&time=${(_d2 = res == null ? void 0 : res.data) == null ? void 0 : _d2.created_at}&name=${(_f = (_e = CUSTOMER_list_bill_model.useModel.formData) == null ? void 0 : _e.value) == null ? void 0 : _f.name}&amount=${((_h = (_g = CUSTOMER_list_bill_model.useModel) == null ? void 0 : _g.total_amount) == null ? void 0 : _h.value) || ((_j = (_i = CUSTOMER_list_bill_model.useModel) == null ? void 0 : _i.total_amount) == null ? void 0 : _j.value)}` + }); + }); + } + }, + handleSelectExternalContact() { + var _a; + let bill_ids = getBillIds() || []; + console.log(bill_ids, "bill_ids"); + if (!(bill_ids == null ? void 0 : bill_ids.length)) { + return false; + } + if (((_a = auth == null ? void 0 : auth.data) == null ? void 0 : _a.environment) === "wxwork") { + common_vendor.index.qy.getContext({ + success: function(res) { + var _a2, _b, _c; + let entry = res.entry; + if (entry === "single_chat_tools") { + common_libraries_sendWxWork.sendChatMessage({ + page: `/INDEX/bill_order/index.html?bill_ids=${JSON.stringify(bill_ids)}&house_id=${CUSTOMER_list_bill_model.useModel.formData.value.asset_houses_id}`, + title: `分享给您${(_c = (_b = (_a2 = CUSTOMER_list_bill_model.useModel) == null ? void 0 : _a2.formData) == null ? void 0 : _b.value) == null ? void 0 : _c.name}物业账单`, + imgUrl: "https://pay-prod-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01K5B5RY2TQQAJ1GT2RZSK426V.jpg" + }); + } else { + common_libraries_sendWxWork.navigateToMiniProgram({ + path: "/pages/forward/index?source=OutstandingFeeList", + envVersion: "develop", + extraData: { source: "OutstandingFeeList" } + }); + } + } + }); + } else { + common_libraries_sendWxWork.navigateToMiniProgram({ + path: "/pages/forward/index?source=OutstandingFeeList", + envVersion: "develop", + extraData: { source: "OutstandingFeeList" } + }); + } + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/CUSTOMER/list_bill/model.js b/dist/dev/mp-weixin/CUSTOMER/list_bill/model.js new file mode 100644 index 0000000..de66c3a --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/list_bill/model.js @@ -0,0 +1,11 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const useModel = { + items: common_vendor.ref([]), + currentTabs: common_vendor.ref(0), + total_amount: common_vendor.ref(0), + formData: common_vendor.ref({ + page: 1 + }) +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/CUSTOMER/list_house/components/SearchBox.js b/dist/dev/mp-weixin/CUSTOMER/list_house/components/SearchBox.js new file mode 100644 index 0000000..e955429 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/list_house/components/SearchBox.js @@ -0,0 +1,66 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const CUSTOMER_list_house_method = require("../method.js"); +const CUSTOMER_list_house_model = require("../model.js"); +require("../../../gen/Apis.js"); +require("../../../common/libraries/request.js"); +require("../../../common/store/useWeAppAuthStore.js"); +require("../../../common/libraries/apiLoading.js"); +require("../../../common/store/useWorkStore.js"); +require("../../../common/libraries/userUserLogin.js"); +if (!Array) { + const _easycom_up_search2 = common_vendor.resolveComponent("up-search"); + const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); + const _easycom_hs_popup2 = common_vendor.resolveComponent("hs-popup"); + (_easycom_up_search2 + _easycom_uni_icons2 + _easycom_hs_popup2)(); +} +const _easycom_up_search = () => "../../../node-modules/uview-plus/components/u-search/u-search.js"; +const _easycom_uni_icons = () => "../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; +const _easycom_hs_popup = () => "../../../components/hs-popup/hs-popup.js"; +if (!Math) { + (_easycom_up_search + _easycom_uni_icons + _easycom_hs_popup)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "SearchBox", + setup(__props) { + const popupShow = common_vendor.ref(false); + return (_ctx, _cache) => { + var _a, _b, _c; + return { + a: common_vendor.o((_a = common_vendor.unref(CUSTOMER_list_house_method.method)) == null ? void 0 : _a.handleSearch), + b: common_vendor.o(($event) => common_vendor.unref(CUSTOMER_list_house_model.useModel).formData.value.name = $event), + c: common_vendor.p({ + placeholder: "请输入房号", + showAction: false, + modelValue: common_vendor.unref(CUSTOMER_list_house_model.useModel).formData.value.name + }), + d: common_vendor.f((_c = (_b = common_vendor.unref(CUSTOMER_list_house_model.useModel)) == null ? void 0 : _b.buildingData) == null ? void 0 : _c.value, (i, index, i0) => { + return { + a: common_vendor.t(i == null ? void 0 : i.name), + b: `items_${index}`, + c: common_vendor.n(`tab_item ${common_vendor.unref(CUSTOMER_list_house_model.useModel).formData.value.asset_buildings_id === (i == null ? void 0 : i.id) ? "tab_active" : ""}`), + d: common_vendor.o(($event) => { + var _a2; + return (_a2 = common_vendor.unref(CUSTOMER_list_house_method.method)) == null ? void 0 : _a2.handleChangeBuilding(i); + }, `items_${index}`) + }; + }), + e: common_vendor.p({ + type: "help", + size: "20", + color: "#666" + }), + f: common_vendor.o(($event) => popupShow.value = true), + g: common_vendor.o(($event) => popupShow.value = false), + h: common_vendor.p({ + show: popupShow.value, + mode: "bottom", + closeable: true, + round: 20 + }) + }; + }; + } +}); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-2e0b683a"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/CUSTOMER/list_house/components/SearchBox.vue"]]); +wx.createComponent(Component); diff --git a/dist/dev/mp-weixin/CUSTOMER/list_house/components/SearchBox.json b/dist/dev/mp-weixin/CUSTOMER/list_house/components/SearchBox.json new file mode 100644 index 0000000..3cf5230 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/list_house/components/SearchBox.json @@ -0,0 +1,8 @@ +{ + "component": true, + "usingComponents": { + "up-search": "../../../node-modules/uview-plus/components/u-search/u-search", + "uni-icons": "../../../uni_modules/uni-icons/components/uni-icons/uni-icons", + "hs-popup": "../../../components/hs-popup/hs-popup" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/list_house/components/SearchBox.wxml b/dist/dev/mp-weixin/CUSTOMER/list_house/components/SearchBox.wxml new file mode 100644 index 0000000..7588071 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/list_house/components/SearchBox.wxml @@ -0,0 +1 @@ +{{i.a}} 欠费 清欠 托收 预缴 状态说明 状态说明 欠费状态房屋 就是账单过了缴费截止日,该交的钱(比如物业费、水电费)还没交,或者交了但没交够。​ 清欠房屋 就是房屋账单都已经交清了,费用状态是正常的。 开通托收房屋 就是住户开通了托收服务,直接从他指定的银行卡或微信账户里自动扣钱来交费用。 开通托收房屋 就是住户已经充值了钱包,钱包账户里有结余,之后产生的费用会从这个结余里直接扣。 \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/list_house/components/SearchBox.wxss b/dist/dev/mp-weixin/CUSTOMER/list_house/components/SearchBox.wxss new file mode 100644 index 0000000..7cb2fc1 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/list_house/components/SearchBox.wxss @@ -0,0 +1,116 @@ +.search_box.data-v-2e0b683a { + position: fixed; + top: 0; + left: 0; + right: 0; + background-color: #fff; + padding: 20rpx 0 0 0; + border-top: 1rpx solid #eee; +} +.search_box .search_input.data-v-2e0b683a { + padding: 0 30rpx 20rpx 30rpx; +} +.search_tabs.data-v-2e0b683a { + display: flex; + align-items: center; + color: #999; + font-size: 28rpx; + font-weight: 400; + border-bottom: 1rpx solid #eee; +} +.search_tabs .tab_item.data-v-2e0b683a { + padding: 0 0 25rpx 0; + margin-left: 30rpx; + margin-right: 10rpx; +} +.search_tabs .tab_active.data-v-2e0b683a { + font-weight: 500; + color: #333; + border-bottom: 3px solid #0082fa; +} +.status_des.data-v-2e0b683a { + display: flex; + align-items: center; + justify-content: space-between; + color: #666; + font-size: 24rpx; +} +.status_des .status_des_tab.data-v-2e0b683a { + display: flex; + align-items: center; + padding: 30rpx 0; +} +.status_des .status_des_tab .item.data-v-2e0b683a { + font-size: 24rpx; + color: #666; + padding-left: 30rpx; + text-align: center; + display: flex; + align-items: center; +} +.status_des .status_des_tab .item .tab.data-v-2e0b683a { + border-radius: 6rpx; + margin-right: 10rpx; + padding: 5rpx 10rpx; +} +.status_des .status_des_tab .item:first-child .tab.data-v-2e0b683a { + background-color: #fff0eb; + color: #df3600; +} +.status_des .status_des_tab .item:nth-child(2) .tab.data-v-2e0b683a { + background-color: #ebffe2; + color: #389e0d; +} +.status_des .status_des_tab .item:nth-child(3) .tab.data-v-2e0b683a { + background-color: #d9edff; + color: #0082fa; +} +.status_des .status_des_tab .item:last-child .tab.data-v-2e0b683a { + background-color: #eee2ff; + color: #722ed1; +} +.status_des .des_btn.data-v-2e0b683a { + display: flex; + align-items: center; + padding-right: 30rpx; +} +.popup_add_new_content .popup_title.data-v-2e0b683a { + text-align: center; + padding: 30rpx 0; + color: #333333; + font-size: 32rpx; +} +.popup_add_new_content .popup_popup_item.data-v-2e0b683a { + padding: 30rpx; +} +.popup_add_new_content .popup_popup_item .title.data-v-2e0b683a { + display: flex; + align-items: center; +} +.popup_add_new_content .popup_popup_item .des.data-v-2e0b683a { + font-size: 28rpx; + color: #666; + padding: 20rpx 0; +} +.popup_add_new_content .popup_popup_item .tab.data-v-2e0b683a { + border-radius: 6rpx; + margin-right: 10rpx; + padding: 5rpx 10rpx; + font-size: 24rpx; +} +.popup_add_new_content .popup_popup_item:first-child .tab.data-v-2e0b683a { + background-color: #fff0eb; + color: #df3600; +} +.popup_add_new_content .popup_popup_item:nth-child(2) .tab.data-v-2e0b683a { + background-color: #ebffe2; + color: #389e0d; +} +.popup_add_new_content .popup_popup_item:nth-child(3) .tab.data-v-2e0b683a { + background-color: #d9edff; + color: #0082fa; +} +.popup_add_new_content .popup_popup_item:last-child .tab.data-v-2e0b683a { + background-color: #eee2ff; + color: #722ed1; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/list_house/index.js b/dist/dev/mp-weixin/CUSTOMER/list_house/index.js new file mode 100644 index 0000000..115a183 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/list_house/index.js @@ -0,0 +1,54 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const CUSTOMER_list_house_model = require("./model.js"); +const CUSTOMER_list_house_method = require("./method.js"); +require("../../gen/Apis.js"); +require("../../common/libraries/request.js"); +require("../../common/store/useWeAppAuthStore.js"); +require("../../common/libraries/apiLoading.js"); +require("../../common/store/useWorkStore.js"); +require("../../common/libraries/userUserLogin.js"); +if (!Array) { + const _easycom_hs_empty2 = common_vendor.resolveComponent("hs-empty"); + _easycom_hs_empty2(); +} +const _easycom_hs_empty = () => "../../components/hs-empty/hs-empty.js"; +if (!Math) { + (MySearchBox + _easycom_hs_empty)(); +} +const MySearchBox = () => "./components/SearchBox.js"; +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + common_vendor.onLoad(() => { + CUSTOMER_list_house_method.method.getGridAssetBuilding(); + }); + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e, _f, _g, _h; + return common_vendor.e({ + a: !((_c = (_b = (_a = common_vendor.unref(CUSTOMER_list_house_model.useModel)) == null ? void 0 : _a.listData) == null ? void 0 : _b.value) == null ? void 0 : _c.length) + }, !((_f = (_e = (_d = common_vendor.unref(CUSTOMER_list_house_model.useModel)) == null ? void 0 : _d.listData) == null ? void 0 : _e.value) == null ? void 0 : _f.length) ? {} : {}, { + b: common_vendor.f((_h = (_g = common_vendor.unref(CUSTOMER_list_house_model.useModel)) == null ? void 0 : _g.listData) == null ? void 0 : _h.value, (i, index, i0) => { + return { + a: common_vendor.t(i == null ? void 0 : i.floor), + b: common_vendor.f(i == null ? void 0 : i.houses, (k, idx, i1) => { + return { + a: common_vendor.t(k == null ? void 0 : k.name), + b: common_vendor.t((k == null ? void 0 : k.has_arrear) ? "欠费" : "结清"), + c: common_vendor.n(`status status_${k == null ? void 0 : k.has_arrear}`), + d: `item_${index}_${idx}`, + e: common_vendor.o(($event) => { + var _a2; + return (_a2 = common_vendor.unref(CUSTOMER_list_house_method.method)) == null ? void 0 : _a2.toDetaile(k); + }, `item_${index}_${idx}`) + }; + }), + c: `item_${index}` + }; + }) + }); + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/CUSTOMER/list_house/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/CUSTOMER/list_house/index.json b/dist/dev/mp-weixin/CUSTOMER/list_house/index.json new file mode 100644 index 0000000..b865474 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/list_house/index.json @@ -0,0 +1,7 @@ +{ + "navigationBarTitleText": "房屋管理", + "usingComponents": { + "hs-empty": "../../components/hs-empty/hs-empty", + "my-search-box": "./components/SearchBox" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/list_house/index.wxml b/dist/dev/mp-weixin/CUSTOMER/list_house/index.wxml new file mode 100644 index 0000000..532b2a3 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/list_house/index.wxml @@ -0,0 +1 @@ +{{i.a}}楼 {{k.a}}{{k.b}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/list_house/index.wxss b/dist/dev/mp-weixin/CUSTOMER/list_house/index.wxss new file mode 100644 index 0000000..db87d24 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/list_house/index.wxss @@ -0,0 +1,49 @@ +page { + background-color: #f8f8f8; +} +.house_contents { + padding: 310rpx 0 0 0; + padding-bottom: calc(30rpx + constant(safe-area-inset-bottom)); + padding-bottom: calc(30rpx + env(safe-area-inset-bottom)); +} +.house_floor_title { + color: #333333; + font-size: 28rpx; + font-weight: 500; + padding: 0 30rpx; +} +.house_list_content { + display: flex; + align-items: center; + flex-wrap: wrap; + padding-bottom: 30rpx; +} +.house_list_content .house_item { + background-color: #fff; + border-radius: 8rpx; + width: 150rpx; + height: 130rpx; + padding: 30rpx; + margin-top: 25rpx; + margin-left: 30rpx; +} +.house_list_content .house_item .room_number { + color: #333333; + font-size: 28rpx; + font-weight: 500; +} +.house_list_content .house_item .status { + font-size: 24rpx; + border-radius: 4rpx; + display: inline-block; + margin-top: 10rpx; + padding: 3rpx 10rpx; +} +.house_list_content .house_item .status_1 { + background-color: #fff0eb; + color: #df3600; +} +.house_list_content .house_item .status_0 { + background-color: #ebffe2; + color: #389e0d; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/list_house/method.js b/dist/dev/mp-weixin/CUSTOMER/list_house/method.js new file mode 100644 index 0000000..058785a --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/list_house/method.js @@ -0,0 +1,46 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const CUSTOMER_list_house_model = require("./model.js"); +const gen_Apis = require("../../gen/Apis.js"); +const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js"); +require("../../common/libraries/userUserLogin.js"); +const getList = () => { + var _a, _b; + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Grid.Grids.GridAssetHouse, (_b = (_a = CUSTOMER_list_house_model.useModel) == null ? void 0 : _a.formData) == null ? void 0 : _b.value).then((res) => { + CUSTOMER_list_house_model.useModel.listData.value = (res == null ? void 0 : res.data) || []; + CUSTOMER_list_house_model.useModel.metaData.value = (res == null ? void 0 : res.meta) || {}; + console.log(res); + }); +}; +const handleSearch = () => { + CUSTOMER_list_house_model.useModel.formData.value.page = 1; + CUSTOMER_list_house_model.useModel.listData.value = []; + getList(); +}; +const method = { + handleChangeBuilding(e) { + if ((e == null ? void 0 : e.id) !== CUSTOMER_list_house_model.useModel.formData.value.asset_buildings_id) { + CUSTOMER_list_house_model.useModel.formData.value.asset_buildings_id = e == null ? void 0 : e.id; + handleSearch(); + } + console.log(e, "e"); + }, + getGridAssetBuilding() { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Grid.Grids.GridAssetBuilding, {}).then((res) => { + var _a, _b; + CUSTOMER_list_house_model.useModel.buildingData.value = (res == null ? void 0 : res.data) || []; + if ((_a = res == null ? void 0 : res.data) == null ? void 0 : _a.length) { + CUSTOMER_list_house_model.useModel.formData.value.asset_buildings_id = (_b = res == null ? void 0 : res.data[0]) == null ? void 0 : _b.id; + getList(); + } + console.log(res); + }); + }, + handleSearch, + toDetaile(e) { + common_vendor.index.navigateTo({ + url: `/BILL/outstanding_fee/show/index?id=${e == null ? void 0 : e.id}` + }); + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/CUSTOMER/list_house/model.js b/dist/dev/mp-weixin/CUSTOMER/list_house/model.js new file mode 100644 index 0000000..a2d29f3 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/list_house/model.js @@ -0,0 +1,9 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const useModel = { + formData: common_vendor.ref({ page: 1 }), + listData: common_vendor.ref([]), + metaData: common_vendor.ref({}), + buildingData: common_vendor.ref([]) +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/CUSTOMER/list_user/index.js b/dist/dev/mp-weixin/CUSTOMER/list_user/index.js new file mode 100644 index 0000000..d95432c --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/list_user/index.js @@ -0,0 +1,93 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const CUSTOMER_list_user_model = require("./model.js"); +const CUSTOMER_list_user_method = require("./method.js"); +const gen_Enums = require("../../gen/Enums.js"); +require("../../gen/Apis.js"); +require("../../common/libraries/request.js"); +require("../../common/store/useWeAppAuthStore.js"); +require("../../common/libraries/apiLoading.js"); +require("../../common/store/useWorkStore.js"); +if (!Array) { + const _easycom_up_search2 = common_vendor.resolveComponent("up-search"); + const _easycom_up_avatar2 = common_vendor.resolveComponent("up-avatar"); + const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag"); + const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); + const _easycom_cc_scroll_loading2 = common_vendor.resolveComponent("cc-scroll-loading"); + (_easycom_up_search2 + _easycom_up_avatar2 + _easycom_hs_enum_tag2 + _easycom_uni_icons2 + _easycom_cc_scroll_loading2)(); +} +const _easycom_up_search = () => "../../node-modules/uview-plus/components/u-search/u-search.js"; +const _easycom_up_avatar = () => "../../node-modules/uview-plus/components/u-avatar/u-avatar.js"; +const _easycom_hs_enum_tag = () => "../../components/hs-enum-tag/hs-enum-tag.js"; +const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; +const _easycom_cc_scroll_loading = () => "../../common/components/cc-scroll-loading/cc-scroll-loading.js"; +if (!Math) { + (_easycom_up_search + _easycom_up_avatar + _easycom_hs_enum_tag + _easycom_uni_icons + _easycom_cc_scroll_loading)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + const toDetailePage = (e) => { + common_vendor.index.navigateTo({ + url: `/CUSTOMER/show/index?id=${e == null ? void 0 : e.id}` + }); + }; + common_vendor.onLoad(() => { + var _a; + (_a = CUSTOMER_list_user_method.method) == null ? void 0 : _a.getList(); + }); + common_vendor.onUnload(() => { + CUSTOMER_list_user_model.useModel.listData.value = []; + }); + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e, _f; + return { + a: common_vendor.o((_a = common_vendor.unref(CUSTOMER_list_user_method.method)) == null ? void 0 : _a.handleSearch), + b: common_vendor.o(($event) => common_vendor.unref(CUSTOMER_list_user_model.useModel).formData.value.keyword = $event), + c: common_vendor.p({ + placeholder: "搜索房号/手机号/姓名", + showAction: false, + modelValue: common_vendor.unref(CUSTOMER_list_user_model.useModel).formData.value.keyword + }), + d: common_vendor.f((_c = (_b = common_vendor.unref(CUSTOMER_list_user_model.useModel)) == null ? void 0 : _b.listData) == null ? void 0 : _c.value, (i, k0, i0) => { + return { + a: common_vendor.t(i == null ? void 0 : i.house_name), + b: common_vendor.f(i == null ? void 0 : i.occupants, (k, k1, i1) => { + return common_vendor.e({ + a: "508bcffd-2-" + i0 + "-" + i1 + ",508bcffd-1", + b: common_vendor.t(k == null ? void 0 : k.name), + c: common_vendor.t(k == null ? void 0 : k.phone), + d: (k == null ? void 0 : k.house_relation) === "Owner" + }, (k == null ? void 0 : k.house_relation) === "Owner" ? {} : {}, (i == null ? void 0 : i.is_contact) ? {} : {}, { + e: k == null ? void 0 : k.residential_relation + }, (k == null ? void 0 : k.residential_relation) ? { + f: "508bcffd-3-" + i0 + "-" + i1 + ",508bcffd-1", + g: common_vendor.p({ + Enums: common_vendor.unref(gen_Enums.HouseOccupantsResidentialRelationEnum), + value: k == null ? void 0 : k.residential_relation + }) + } : {}, { + h: "508bcffd-4-" + i0 + "-" + i1 + ",508bcffd-1", + i: common_vendor.o(($event) => toDetailePage(k), i == null ? void 0 : i.index) + }); + }), + c: i == null ? void 0 : i.is_contact, + d: i == null ? void 0 : i.index, + e: `customer_${i == null ? void 0 : i.index}` + }; + }), + e: common_vendor.p({ + type: "right", + size: "13", + color: "#999" + }), + f: common_vendor.o((_d = common_vendor.unref(CUSTOMER_list_user_method.method)) == null ? void 0 : _d.handleLoad), + g: common_vendor.p({ + meta: (_f = (_e = common_vendor.unref(CUSTOMER_list_user_model.useModel)) == null ? void 0 : _e.metaData) == null ? void 0 : _f.value + }) + }; + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/CUSTOMER/list_user/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/CUSTOMER/list_user/index.json b/dist/dev/mp-weixin/CUSTOMER/list_user/index.json new file mode 100644 index 0000000..6f9b42e --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/list_user/index.json @@ -0,0 +1,10 @@ +{ + "navigationBarTitleText": "用户列表", + "usingComponents": { + "up-search": "../../node-modules/uview-plus/components/u-search/u-search", + "up-avatar": "../../node-modules/uview-plus/components/u-avatar/u-avatar", + "hs-enum-tag": "../../components/hs-enum-tag/hs-enum-tag", + "uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons", + "cc-scroll-loading": "../../common/components/cc-scroll-loading/cc-scroll-loading" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/list_user/index.wxml b/dist/dev/mp-weixin/CUSTOMER/list_user/index.wxml new file mode 100644 index 0000000..1a296bd --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/list_user/index.wxml @@ -0,0 +1 @@ +{{i.a}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/list_user/index.wxss b/dist/dev/mp-weixin/CUSTOMER/list_user/index.wxss new file mode 100644 index 0000000..c3f1e65 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/list_user/index.wxss @@ -0,0 +1,68 @@ +page { + background-color: #f8f8f8; +} +.search_box { + position: fixed; + top: 0; + left: 0; + right: 0; + background-color: #fff; + padding: 0 30rpx; + border-top: 1rpx solid #eee; + height: 100rpx; + line-height: 100rpx; +} +.user_contents { + padding: 100rpx 0 0 0; + padding-bottom: calc(30rpx + constant(safe-area-inset-bottom)); + padding-bottom: calc(30rpx + env(safe-area-inset-bottom)); +} +.customer_content .customer_title { + padding: 25rpx 30rpx; + font-size: 24rpx; + color: #666; + background-color: #f7f8fa; +} +.customer_list { + padding: 0 30rpx; + background-color: #fff; +} +.customer_list .customer_item { + display: flex; + align-items: center; + justify-content: space-between; + border-bottom: 1rpx solid #eee; + padding: 30rpx 0; + background-color: #fff; +} +.customer_list .customer_item:last-child { + border: none; +} +.customer_list .customer_item .user_info { + flex: 1; + padding-left: 30rpx; + height: 90rpx; + font-size: 28rpx; + font-weight: 500; + color: #3d3d3d; +} +.customer_list .customer_item .user_info .tabs_group { + display: flex; + align-items: center; + padding-top: 8rpx; +} +.customer_list .customer_item .user_info .tabs_group .item { + border: 1rpx solid #c3c3c3; + color: #606266; + font-size: 23rpx; + padding: 4rpx 20rpx; + border-radius: 100rpx; + margin-right: 20rpx; +} +.customer_list .customer_item .user_info .tabs_group .not_added { + background-color: #f3f3f3; + border-radius: 100rpx; + color: #606266; + font-size: 24rpx; + border: 1rpx solid #f3f3f3; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/list_user/method.js b/dist/dev/mp-weixin/CUSTOMER/list_user/method.js new file mode 100644 index 0000000..6d85f44 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/list_user/method.js @@ -0,0 +1,27 @@ +"use strict"; +const gen_Apis = require("../../gen/Apis.js"); +const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js"); +const CUSTOMER_list_user_model = require("./model.js"); +const getList = () => { + var _a, _b; + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Archive.HouseOccupants.GetHouseOccupants, (_b = (_a = CUSTOMER_list_user_model.useModel) == null ? void 0 : _a.formData) == null ? void 0 : _b.value).then( + (res) => { + CUSTOMER_list_user_model.useModel.listData.value = [...CUSTOMER_list_user_model.useModel.listData.value, ...(res == null ? void 0 : res.data) || []]; + CUSTOMER_list_user_model.useModel.metaData.value = res == null ? void 0 : res.meta; + console.log(res); + } + ); +}; +const method = { + handleSearch() { + CUSTOMER_list_user_model.useModel.formData.value.page = 1; + CUSTOMER_list_user_model.useModel.listData.value = []; + getList(); + }, + getList, + handleLoad(page) { + CUSTOMER_list_user_model.useModel.formData.value.page = page; + getList(); + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/CUSTOMER/list_user/model.js b/dist/dev/mp-weixin/CUSTOMER/list_user/model.js new file mode 100644 index 0000000..9dc7832 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/list_user/model.js @@ -0,0 +1,8 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const useModel = { + formData: common_vendor.ref({ page: 1 }), + listData: common_vendor.ref([]), + metaData: common_vendor.ref({}) +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/CUSTOMER/show/index.js b/dist/dev/mp-weixin/CUSTOMER/show/index.js new file mode 100644 index 0000000..b3b1112 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/show/index.js @@ -0,0 +1,118 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const CUSTOMER_show_method = require("./method.js"); +const CUSTOMER_show_model = require("./model.js"); +const gen_Enums = require("../../gen/Enums.js"); +require("../../gen/Apis.js"); +require("../../common/libraries/request.js"); +require("../../common/store/useWeAppAuthStore.js"); +require("../../common/libraries/apiLoading.js"); +require("../../common/store/useWorkStore.js"); +require("../../common/libraries/sendWxWork.js"); +require("../../common/libraries/naviHelper.js"); +if (!Array) { + const _easycom_up_avatar2 = common_vendor.resolveComponent("up-avatar"); + const _easycom_hs_cell2 = common_vendor.resolveComponent("hs-cell"); + const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag"); + const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); + const _easycom_hs_empty2 = common_vendor.resolveComponent("hs-empty"); + const _easycom_hs_footer2 = common_vendor.resolveComponent("hs-footer"); + (_easycom_up_avatar2 + _easycom_hs_cell2 + _easycom_hs_enum_tag2 + _easycom_uni_icons2 + _easycom_hs_empty2 + _easycom_hs_footer2)(); +} +const _easycom_up_avatar = () => "../../node-modules/uview-plus/components/u-avatar/u-avatar.js"; +const _easycom_hs_cell = () => "../../components/hs-cell/hs-cell.js"; +const _easycom_hs_enum_tag = () => "../../components/hs-enum-tag/hs-enum-tag.js"; +const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; +const _easycom_hs_empty = () => "../../components/hs-empty/hs-empty.js"; +const _easycom_hs_footer = () => "../../components/hs-footer/hs-footer.js"; +if (!Math) { + (_easycom_up_avatar + _easycom_hs_cell + _easycom_hs_enum_tag + _easycom_uni_icons + _easycom_hs_empty + _easycom_hs_footer)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + const toPage = (url) => { + common_vendor.index.navigateTo({ + url + }); + }; + common_vendor.onLoad(async (e) => { + var _a, _b; + await ((_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$onLaunched); + (_b = CUSTOMER_show_method.method) == null ? void 0 : _b.getShow(e == null ? void 0 : e.id); + }); + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p; + return common_vendor.e({ + a: common_vendor.p({ + size: "50px" + }), + b: common_vendor.t(((_c = (_b = (_a = common_vendor.unref(CUSTOMER_show_model.useModel)) == null ? void 0 : _a.showData) == null ? void 0 : _b.value) == null ? void 0 : _c.name) || "请补充姓名"), + c: common_vendor.p({ + title: "手机号", + placeholder: "手机号码信息缺失", + value: (_f = (_e = (_d = common_vendor.unref(CUSTOMER_show_model.useModel)) == null ? void 0 : _d.showData) == null ? void 0 : _e.value) == null ? void 0 : _f.phone + }), + d: common_vendor.o(($event) => { + var _a2, _b2, _c2, _d2, _e2, _f2; + return toPage(`/CUSTOMER/assets/index?name=${(_c2 = (_b2 = (_a2 = common_vendor.unref(CUSTOMER_show_model.useModel)) == null ? void 0 : _a2.showData) == null ? void 0 : _b2.value) == null ? void 0 : _c2.name}&phone=${(_f2 = (_e2 = (_d2 = common_vendor.unref(CUSTOMER_show_model.useModel)) == null ? void 0 : _d2.showData) == null ? void 0 : _e2.value) == null ? void 0 : _f2.phone}`); + }), + e: common_vendor.f((_h = (_g = common_vendor.unref(CUSTOMER_show_model.useModel)) == null ? void 0 : _g.userHouse) == null ? void 0 : _h.value, (i, index, i0) => { + var _a2, _b2, _c2, _d2; + return common_vendor.e({ + a: common_vendor.t((_a2 = i == null ? void 0 : i.asset_project) == null ? void 0 : _a2.name), + b: common_vendor.t((_b2 = i == null ? void 0 : i.asset_building) == null ? void 0 : _b2.name), + c: common_vendor.t((_c2 = i == null ? void 0 : i.asset_unit) == null ? void 0 : _c2.name), + d: common_vendor.t((_d2 = i == null ? void 0 : i.asset_house) == null ? void 0 : _d2.name), + e: (i == null ? void 0 : i.house_relation) === "Owner" + }, (i == null ? void 0 : i.house_relation) === "Owner" ? {} : { + f: "9c5679fc-2-" + i0, + g: common_vendor.p({ + Enums: common_vendor.unref(gen_Enums.HouseOccupantsResidentialRelationEnum), + value: i == null ? void 0 : i.residential_relation + }) + }, { + h: "9c5679fc-3-" + i0, + i: `items_${index}`, + j: common_vendor.o(($event) => toPage(`/BILL/outstanding_fee/show/index?id=${i == null ? void 0 : i.asset_houses_id}`), `items_${index}`) + }); + }), + f: common_vendor.p({ + type: "right", + size: "13", + color: "#999" + }), + g: !((_k = (_j = (_i = common_vendor.unref(CUSTOMER_show_model.useModel)) == null ? void 0 : _i.arrearageHouses) == null ? void 0 : _j.value) == null ? void 0 : _k.length) + }, !((_n = (_m = (_l = common_vendor.unref(CUSTOMER_show_model.useModel)) == null ? void 0 : _l.arrearageHouses) == null ? void 0 : _m.value) == null ? void 0 : _n.length) ? { + h: common_vendor.p({ + baseStyle: { + height: "200rpx", + padding: "30rpx 0" + } + }) + } : {}, { + i: common_vendor.f((_p = (_o = common_vendor.unref(CUSTOMER_show_model.useModel)) == null ? void 0 : _o.arrearageHouses) == null ? void 0 : _p.value, (i, index, i0) => { + return { + a: common_vendor.t(i == null ? void 0 : i.full_name), + b: common_vendor.t(i == null ? void 0 : i.total_overdue_amount), + c: common_vendor.o(($event) => toPage(`/CUSTOMER/list_bill/index?asset_houses_id=${i == null ? void 0 : i.asset_houses_id}&name=${i == null ? void 0 : i.full_name}`), `items_${index}`), + d: common_vendor.o(($event) => { + var _a2; + return (_a2 = common_vendor.unref(CUSTOMER_show_method.method)) == null ? void 0 : _a2.shareBill(); + }, `items_${index}`), + e: `items_${index}` + }; + }), + j: common_vendor.o(($event) => { + var _a2; + return (_a2 = common_vendor.unref(CUSTOMER_show_method.method)) == null ? void 0 : _a2.handleMakePhoneCall(); + }), + k: common_vendor.p({ + btnParimaryName: "拨打电话" + }) + }); + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/CUSTOMER/show/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/CUSTOMER/show/index.json b/dist/dev/mp-weixin/CUSTOMER/show/index.json new file mode 100644 index 0000000..b7d79c9 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/show/index.json @@ -0,0 +1,11 @@ +{ + "navigationBarTitleText": "客户详情", + "usingComponents": { + "up-avatar": "../../node-modules/uview-plus/components/u-avatar/u-avatar", + "hs-cell": "../../components/hs-cell/hs-cell", + "hs-enum-tag": "../../components/hs-enum-tag/hs-enum-tag", + "uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons", + "hs-empty": "../../components/hs-empty/hs-empty", + "hs-footer": "../../components/hs-footer/hs-footer" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/show/index.wxml b/dist/dev/mp-weixin/CUSTOMER/show/index.wxml new file mode 100644 index 0000000..6577b76 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/show/index.wxml @@ -0,0 +1 @@ + 资产信息 编辑 {{i.a}}{{i.b}}{{i.c}}{{i.d}} (产权人) () 房屋账单 {{i.a}} 欠费:¥{{i.b}} 查看详情 分享账单 \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/show/index.wxss b/dist/dev/mp-weixin/CUSTOMER/show/index.wxss new file mode 100644 index 0000000..85ed549 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/show/index.wxss @@ -0,0 +1,124 @@ +page { + background-color: #f8f8f8; +} +.customer_page { + padding-bottom: calc(140rpx + constant(safe-area-inset-bottom)); + padding-bottom: calc(140rpx + env(safe-area-inset-bottom)); +} +.customer_page .customer_card { + background-color: #fff; + border-radius: 15rpx; + padding: 0 30rpx; + margin: 30rpx; +} +.customer_page .card_user_header { + display: flex; + align-items: center; + padding: 30rpx 0; + font-size: 28rpx; + border-bottom: 1rpx solid #eee; +} +.customer_page .card_user_header .avatar { + width: 100rpx; + height: 100rpx; + display: flex; + align-items: center; + justify-content: center; +} +.customer_page .card_user_header .user_info { + flex: 1; + padding: 0 20rpx; + height: 100rpx; +} +.customer_page .card_user_header .user_info .name { + color: #666; +} +.customer_page .card_user_header .user_info .phone { + color: #999; + padding-top: 10rpx; +} +.customer_page .card_user_header .edit_btn { + color: #0082fa; + height: 100rpx; +} +.customer_item { + font-size: 28rpx; +} +.customer_item_head { + display: flex; + align-items: center; + justify-content: space-between; + color: #333; + padding-top: 30rpx; + font-weight: 500; + font-size: 28rpx; +} +.customer_item_head text { + color: #0082fa; + font-weight: 400; +} +.customer_item_head .edit_btn { + color: #0082fa; + height: 100rpx; +} +.customer_item_body { + padding: 0 0 30rpx 0; +} +.customer_item_body .item { + font-size: 28rpx; + color: #333; + display: flex; + align-items: center; + padding-top: 30rpx; + justify-content: space-between; +} +.customer_item_body .item .item_name_relation { + display: flex; + align-items: center; +} +.customer_item_body .item .status_tab { + color: #999999; + font-size: 25rpx; +} +.customer_item_body .item_houses { + background-color: #fafafa; + border-radius: 10rpx; + width: 100%; + margin-top: 20rpx; +} +.customer_item_body .item_houses .name { + color: #333333; + font-size: 28rpx; + font-weight: 500; + padding: 30rpx 30rpx 10rpx 30rpx; +} +.customer_item_body .item_houses .fee { + color: #df3600; + font-size: 28rpx; + padding: 0 30rpx; +} +.customer_item_body .item_houses .item_footer { + display: flex; + align-items: center; + justify-content: space-between; + border-top: 1rpx solid #ededed; + margin-top: 30rpx; + padding: 25rpx 0; + text-align: center; + color: #3d3d3d; +} +.customer_item_body .item_houses .item_footer .btn { + font-size: 28rpx; + flex: 1; +} +.customer_item_body .item_houses .item_footer .btn:last-child { + border-left: 1rpx solid #eee; + color: #0082fa; +} +.customer_item_tab_body { + padding: 20rpx 0 30rpx 0; +} +.customer_update_card { + background-color: #fff; + padding: 0 30rpx; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/show/method.js b/dist/dev/mp-weixin/CUSTOMER/show/method.js new file mode 100644 index 0000000..e58fe1e --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/show/method.js @@ -0,0 +1,46 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const gen_Apis = require("../../gen/Apis.js"); +const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js"); +const CUSTOMER_show_model = require("./model.js"); +const common_libraries_sendWxWork = require("../../common/libraries/sendWxWork.js"); +const getUserHoueInfo = (phone) => { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Archive.HouseOccupants.GetHouseOccupantsByPhone, { phone }).then((res) => { + CUSTOMER_show_model.useModel.userHouse.value = res == null ? void 0 : res.data; + console.log(res); + }); +}; +const getOccupantArrearageHouses = (phone) => { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Bill.HouseBills.GetOccupantArrearageHouses, { phone }).then((res) => { + CUSTOMER_show_model.useModel.arrearageHouses.value = res == null ? void 0 : res.data; + console.log(res); + }); +}; +const method = { + handleMakePhoneCall() { + var _a, _b; + if ((_a = CUSTOMER_show_model.useModel.showData.value) == null ? void 0 : _a.phone) { + common_vendor.index.makePhoneCall({ + phoneNumber: (_b = CUSTOMER_show_model.useModel.showData.value) == null ? void 0 : _b.phone + //仅为示例,并非真实的电话号码 + }); + } + }, + getShow(id) { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Archive.HouseOccupants.Show, { id }).then((res) => { + var _a, _b; + CUSTOMER_show_model.useModel.showData.value = res == null ? void 0 : res.data; + getUserHoueInfo((_a = res == null ? void 0 : res.data) == null ? void 0 : _a.phone); + getOccupantArrearageHouses((_b = res == null ? void 0 : res.data) == null ? void 0 : _b.phone); + console.log(res); + }); + }, + shareBill() { + common_libraries_sendWxWork.navigateToMiniProgram({ + path: "/pages/forward/index?source=OutstandingFeeList", + envVersion: "develop", + extraData: { source: "OutstandingFeeList" } + }); + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/CUSTOMER/show/model.js b/dist/dev/mp-weixin/CUSTOMER/show/model.js new file mode 100644 index 0000000..65f782b --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/show/model.js @@ -0,0 +1,8 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const useModel = { + showData: common_vendor.ref({}), + userHouse: common_vendor.ref([]), + arrearageHouses: common_vendor.ref([]) +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/CUSTOMER/update/index.js b/dist/dev/mp-weixin/CUSTOMER/update/index.js new file mode 100644 index 0000000..66cca0c --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/update/index.js @@ -0,0 +1,62 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const CUSTOMER_update_model = require("./model.js"); +require("../../common/libraries/request.js"); +require("../../common/store/useWeAppAuthStore.js"); +require("../../common/store/useWorkStore.js"); +require("../../gen/Apis.js"); +require("../../common/libraries/apiLoading.js"); +if (!Array) { + const _easycom_hs_input2 = common_vendor.resolveComponent("hs-input"); + const _easycom_hs_cell2 = common_vendor.resolveComponent("hs-cell"); + const _easycom_hs_footer2 = common_vendor.resolveComponent("hs-footer"); + (_easycom_hs_input2 + _easycom_hs_cell2 + _easycom_hs_footer2)(); +} +const _easycom_hs_input = () => "../../components/hs-input/hs-input.js"; +const _easycom_hs_cell = () => "../../components/hs-cell/hs-cell.js"; +const _easycom_hs_footer = () => "../../components/hs-footer/hs-footer.js"; +if (!Math) { + (_easycom_hs_input + _easycom_hs_cell + _easycom_hs_footer)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + common_vendor.onLoad((e) => { + console.log(e); + CUSTOMER_update_model.useModel.formData.value = e; + }); + return (_ctx, _cache) => { + return { + a: common_vendor.o(($event) => common_vendor.unref(CUSTOMER_update_model.useModel).formData.value.name = $event), + b: common_vendor.p({ + type: "text", + textAlign: "right", + valueModel: common_vendor.unref(CUSTOMER_update_model.useModel).formData.value.name + }), + c: common_vendor.p({ + title: "客户姓名", + required: true, + borderTop: true + }), + d: common_vendor.o(($event) => common_vendor.unref(CUSTOMER_update_model.useModel).formData.value.phone = $event), + e: common_vendor.p({ + maxLength: "11", + type: "number", + textAlign: "right", + disabled: true, + valueModel: common_vendor.unref(CUSTOMER_update_model.useModel).formData.value.phone + }), + f: common_vendor.p({ + title: "手机号码", + required: true, + borderTop: true + }), + g: common_vendor.p({ + btnParimaryName: "保存" + }) + }; + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/CUSTOMER/update/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/CUSTOMER/update/index.json b/dist/dev/mp-weixin/CUSTOMER/update/index.json new file mode 100644 index 0000000..d4c9b25 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/update/index.json @@ -0,0 +1,8 @@ +{ + "navigationBarTitleText": "客户编辑", + "usingComponents": { + "hs-input": "../../components/hs-input/hs-input", + "hs-cell": "../../components/hs-cell/hs-cell", + "hs-footer": "../../components/hs-footer/hs-footer" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/update/index.wxml b/dist/dev/mp-weixin/CUSTOMER/update/index.wxml new file mode 100644 index 0000000..edf29a3 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/update/index.wxml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/update/index.wxss b/dist/dev/mp-weixin/CUSTOMER/update/index.wxss new file mode 100644 index 0000000..41b74ad --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/update/index.wxss @@ -0,0 +1,57 @@ +page { + background-color: #f8f8f8; +} +.customer_item { + font-size: 28rpx; + background-color: #fff; + border-radius: 15rpx; + padding: 0 30rpx 30rpx 30rpx; + margin: 30rpx; +} +.customer_item_head { + display: flex; + align-items: center; + justify-content: space-between; + color: #333; + padding-top: 30rpx; + font-weight: 500; + padding: 30rpx 0 25rpx 0; + font-size: 28rpx; +} +.customer_item_head text { + color: #0082fa; + font-weight: 400; +} +.customer_item_body { + display: flex; + align-items: center; + padding: 24rpx 0 30rpx 0; +} +.customer_item_body .label { + color: #333; +} +.customer_item_body .content { + color: #999; + flex: 1; + padding: 0 30rpx; +} +.customer_item_tab_body { + padding: 20rpx 0 30rpx 0; +} +.customer_update_card { + background-color: #fff; + padding: 0 30rpx; +} +.customer_item_add_btn { + display: flex; + align-items: center; + border-radius: 20rpx; + padding: 25rpx 30rpx; + font-size: 28rpx; + color: #333; + border: 2px dashed #d3d3d3; + font-weight: 500; +} +.customer_item_add_btn text { + padding-left: 5rpx; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/update/model.js b/dist/dev/mp-weixin/CUSTOMER/update/model.js new file mode 100644 index 0000000..6840b75 --- /dev/null +++ b/dist/dev/mp-weixin/CUSTOMER/update/model.js @@ -0,0 +1,6 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const useModel = { + formData: common_vendor.ref({}) +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/ME/feedback/index.js b/dist/dev/mp-weixin/ME/feedback/index.js new file mode 100644 index 0000000..dacc40b --- /dev/null +++ b/dist/dev/mp-weixin/ME/feedback/index.js @@ -0,0 +1,72 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const ME_feedback_model = require("./model.js"); +const ME_feedback_method = require("./method.js"); +require("../../common/libraries/apiLoading.js"); +require("../../gen/Apis.js"); +require("../../common/libraries/request.js"); +require("../../common/store/useWeAppAuthStore.js"); +require("../../common/store/useWorkStore.js"); +require("../../common/libraries/naviHelper.js"); +if (!Array) { + const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); + const _easycom_hs_upload2 = common_vendor.resolveComponent("hs-upload"); + const _easycom_hs_footer2 = common_vendor.resolveComponent("hs-footer"); + (_easycom_uni_icons2 + _easycom_hs_upload2 + _easycom_hs_footer2)(); +} +const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; +const _easycom_hs_upload = () => "../../components/hs-upload/hs-upload.js"; +const _easycom_hs_footer = () => "../../components/hs-footer/hs-footer.js"; +if (!Math) { + (_easycom_uni_icons + _easycom_hs_upload + _easycom_hs_footer)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + common_vendor.onUnload(() => { + ME_feedback_model.useModel.formData.value = {}; + }); + return (_ctx, _cache) => { + var _a; + return { + a: common_vendor.o( + //@ts-ignore + (...args) => { + var _a2, _b; + return ((_a2 = common_vendor.unref(ME_feedback_method.method)) == null ? void 0 : _a2.toWorkOrder) && ((_b = common_vendor.unref(ME_feedback_method.method)) == null ? void 0 : _b.toWorkOrder(...args)); + } + ), + b: common_vendor.f((_a = common_vendor.unref(ME_feedback_model.useModel)) == null ? void 0 : _a.typeList, (i, index, i0) => { + var _a2, _b, _c, _d, _e, _f; + return { + a: "330eb960-0-" + i0, + b: common_vendor.p({ + type: i == null ? void 0 : i.icon, + size: "20", + color: (i == null ? void 0 : i.value) === ((_c = (_b = (_a2 = common_vendor.unref(ME_feedback_model.useModel)) == null ? void 0 : _a2.formData) == null ? void 0 : _b.value) == null ? void 0 : _c.type) ? "#2a7efb" : "#999" + }), + c: common_vendor.t(i == null ? void 0 : i.label), + d: `item_${index}`, + e: common_vendor.n(`feedback_page_type_item_btn ${(i == null ? void 0 : i.value) === ((_f = (_e = (_d = common_vendor.unref(ME_feedback_model.useModel)) == null ? void 0 : _d.formData) == null ? void 0 : _e.value) == null ? void 0 : _f.type) ? "active" : ""}`), + f: common_vendor.o(($event) => common_vendor.unref(ME_feedback_method.method).handleSelectType(i), `item_${index}`) + }; + }), + c: common_vendor.unref(ME_feedback_model.useModel).formData.value.content, + d: common_vendor.o(($event) => common_vendor.unref(ME_feedback_model.useModel).formData.value.content = $event.detail.value), + e: common_vendor.o(($event) => common_vendor.unref(ME_feedback_model.useModel).formData.value.images = $event), + f: common_vendor.p({ + title: "问题页面截图,最多五张(选填)", + count: 5, + size: 4, + valueModel: common_vendor.unref(ME_feedback_model.useModel).formData.value.images + }), + g: common_vendor.o(common_vendor.unref(ME_feedback_method.method).handleSubmit), + h: common_vendor.p({ + handleParmaryClick: "提交" + }) + }; + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/ME/feedback/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/ME/feedback/index.json b/dist/dev/mp-weixin/ME/feedback/index.json new file mode 100644 index 0000000..d203998 --- /dev/null +++ b/dist/dev/mp-weixin/ME/feedback/index.json @@ -0,0 +1,8 @@ +{ + "navigationBarTitleText": "意见反馈", + "usingComponents": { + "uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons", + "hs-upload": "../../components/hs-upload/hs-upload", + "hs-footer": "../../components/hs-footer/hs-footer" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/ME/feedback/index.wxml b/dist/dev/mp-weixin/ME/feedback/index.wxml new file mode 100644 index 0000000..e5ddf58 --- /dev/null +++ b/dist/dev/mp-weixin/ME/feedback/index.wxml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/dist/dev/mp-weixin/ME/feedback/index.wxss b/dist/dev/mp-weixin/ME/feedback/index.wxss new file mode 100644 index 0000000..abbd025 --- /dev/null +++ b/dist/dev/mp-weixin/ME/feedback/index.wxss @@ -0,0 +1,100 @@ +page { + background-color: #f8f8f8; +} +.feedback_page { + margin: 30rpx; + background-color: #fff; + border-radius: 20rpx; + padding: 0 30rpx; +} +.feedback_page_hader { + display: flex; + align-items: center; + justify-content: space-between; + padding: 30rpx 0; + border-bottom: 1rpx solid #eee; +} +.feedback_page_hader_info { + flex: 1; +} +.feedback_page_hader_info .name { + color: #3d3d3d; + font-size: 32rpx; + font-weight: 500; +} +.feedback_page_hader_info .des { + color: #999999; + font-size: 28rpx; + padding-top: 5rpx; +} +.feedback_page_hader_btn { + background-color: #f7f8fc; + color: #3d3d3d; + font-size: 26rpx; + padding: 12rpx 30rpx; + border-radius: 100rpx; +} +.feedback_page_function { + color: #999999; + font-size: 28rpx; + font-weight: 500; + padding: 25rpx 0; +} +.feedback_page_type { + display: flex; + align-items: center; + justify-content: space-between; + text-align: center; +} +.feedback_page_type .feedback_page_type_item_btn { + background-color: #f7f8fc; + width: 300rpx; + height: 80rpx; + border-radius: 12rpx; + color: #666; + font-size: 28rpx; + display: flex; + align-items: center; + justify-content: center; + border: 1px solid #f7f8fc; +} +.feedback_page_type .active { + border: 1px solid #2a7efb; + color: #2a7efb; + background-color: #fff; +} +.feedback_page_textarea { + background-color: #f7f8fc; + padding: 20rpx; + border-radius: 20rpx; + margin: 30rpx 0 0 0; +} +.feedback_page_textarea textarea { + height: 200rpx; + width: 100%; +} +.feedback_page_textarea .textarea_placeholder { + font-size: 28rpx; + color: #999; +} +.feedback_page_file_tip { + color: #999999; + font-size: 28rpx; + font-weight: 400; + padding: 0 0 30rpx 0; + display: flex; + align-items: center; +} +.feedback_page_file_tip button { + color: #2a7efb; + padding: 0; + margin: 0; + font-size: 28rpx; + font-weight: 400; + background-color: #fff; +} +button::after { + border: none; + padding: 0; + margin: 0; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/ME/feedback/method.js b/dist/dev/mp-weixin/ME/feedback/method.js new file mode 100644 index 0000000..7ba11c2 --- /dev/null +++ b/dist/dev/mp-weixin/ME/feedback/method.js @@ -0,0 +1,34 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js"); +const gen_Apis = require("../../gen/Apis.js"); +const ME_feedback_model = require("./model.js"); +const common_libraries_naviHelper = require("../../common/libraries/naviHelper.js"); +require("../../common/libraries/request.js"); +const common_store_useWeAppAuthStore = require("../../common/store/useWeAppAuthStore.js"); +require("../../common/store/useWorkStore.js"); +common_store_useWeAppAuthStore.useWeAppAuthStore(); +const method = { + handleSelectType(e) { + ME_feedback_model.useModel.formData.value.type = e == null ? void 0 : e.value; + }, + handleSubmit() { + var _a, _b, _c, _d, _e, _f, _g, _h; + if (!((_c = (_b = (_a = ME_feedback_model.useModel) == null ? void 0 : _a.formData) == null ? void 0 : _b.value) == null ? void 0 : _c.type)) { + return common_libraries_naviHelper.showToast("请选择反馈类型!"); + } + if (!((_f = (_e = (_d = ME_feedback_model.useModel) == null ? void 0 : _d.formData) == null ? void 0 : _e.value) == null ? void 0 : _f.type)) { + return common_libraries_naviHelper.showToast("请输入反馈建议!"); + } + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Customer.CustomerOpinions.Store, (_h = (_g = ME_feedback_model.useModel) == null ? void 0 : _g.formData) == null ? void 0 : _h.value).then((res) => { + common_libraries_naviHelper.showToastBack("提交成功", 1, true); + console.log(res); + }); + }, + toWorkOrder() { + common_vendor.index.navigateTo({ + url: "/WORKORDER/list/index" + }); + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/ME/feedback/model.js b/dist/dev/mp-weixin/ME/feedback/model.js new file mode 100644 index 0000000..3fe2e8f --- /dev/null +++ b/dist/dev/mp-weixin/ME/feedback/model.js @@ -0,0 +1,18 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const useModel = { + formData: common_vendor.ref({}), + typeList: [ + { + label: "功能异常", + icon: "info", + value: "FeatureException" + }, + { + label: "新功能建议", + icon: "plus", + value: "FeatureSuggestion" + } + ] +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/ME/knowledge_qa/index.js b/dist/dev/mp-weixin/ME/knowledge_qa/index.js new file mode 100644 index 0000000..6858a1b --- /dev/null +++ b/dist/dev/mp-weixin/ME/knowledge_qa/index.js @@ -0,0 +1,65 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const ME_knowledge_qa_model = require("./model.js"); +const ME_knowledge_qa_method = require("./method.js"); +require("../../common/libraries/request.js"); +require("../../common/store/useWeAppAuthStore.js"); +require("../../gen/Apis.js"); +require("../../common/store/useWorkStore.js"); +require("../../common/libraries/apiLoading.js"); +if (!Array) { + const _easycom_hs_tabs2 = common_vendor.resolveComponent("hs-tabs"); + const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); + (_easycom_hs_tabs2 + _easycom_uni_icons2)(); +} +const _easycom_hs_tabs = () => "../../components/hs-tabs/hs-tabs.js"; +const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; +if (!Math) { + (_easycom_hs_tabs + _easycom_uni_icons)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + const tablist = [ + { label: "住户服务类", value: "1" }, + { label: "工单处理类", value: "2" }, + { label: "催缴费用类", value: "3" } + ]; + return (_ctx, _cache) => { + var _a, _b, _c; + return { + a: common_vendor.o((_a = common_vendor.unref(ME_knowledge_qa_method.method)) == null ? void 0 : _a.handleChangeTabs), + b: common_vendor.p({ + list: tablist, + current: (_c = (_b = common_vendor.unref(ME_knowledge_qa_model.useModel)) == null ? void 0 : _b.currentTabs) == null ? void 0 : _c.value + }), + c: common_vendor.p({ + type: "arrow-right", + size: "13", + color: "#0082FA" + }), + d: common_vendor.o( + //@ts-ignore + (...args) => { + var _a2, _b2; + return ((_a2 = common_vendor.unref(ME_knowledge_qa_method.method)) == null ? void 0 : _a2.handleShowDetail) && ((_b2 = common_vendor.unref(ME_knowledge_qa_method.method)) == null ? void 0 : _b2.handleShowDetail(...args)); + } + ), + e: common_vendor.p({ + type: "arrow-right", + size: "13", + color: "#0082FA" + }), + f: common_vendor.o( + //@ts-ignore + (...args) => { + var _a2, _b2; + return ((_a2 = common_vendor.unref(ME_knowledge_qa_method.method)) == null ? void 0 : _a2.handleShowDetail) && ((_b2 = common_vendor.unref(ME_knowledge_qa_method.method)) == null ? void 0 : _b2.handleShowDetail(...args)); + } + ) + }; + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/ME/knowledge_qa/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/ME/knowledge_qa/index.json b/dist/dev/mp-weixin/ME/knowledge_qa/index.json new file mode 100644 index 0000000..f95b5d9 --- /dev/null +++ b/dist/dev/mp-weixin/ME/knowledge_qa/index.json @@ -0,0 +1,7 @@ +{ + "navigationBarTitleText": "知识问答", + "usingComponents": { + "hs-tabs": "../../components/hs-tabs/hs-tabs", + "uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/ME/knowledge_qa/index.wxml b/dist/dev/mp-weixin/ME/knowledge_qa/index.wxml new file mode 100644 index 0000000..89d0f5c --- /dev/null +++ b/dist/dev/mp-weixin/ME/knowledge_qa/index.wxml @@ -0,0 +1 @@ + 新住户办理入户登记时,需要提供哪些材料?流程是什么? 创建时间:2024-12-31 前往学习 业主打电话或到前台投诉时,情绪很激动(比如大声抱怨、语气强硬),该怎么应对? 创建时间:2024-12-31 前往学习 \ No newline at end of file diff --git a/dist/dev/mp-weixin/ME/knowledge_qa/index.wxss b/dist/dev/mp-weixin/ME/knowledge_qa/index.wxss new file mode 100644 index 0000000..abdf5ed --- /dev/null +++ b/dist/dev/mp-weixin/ME/knowledge_qa/index.wxss @@ -0,0 +1,39 @@ +page { + background-color: #f8f8f8; +} +.knowledge_qa_heder { + position: fixed; + top: 0; + left: 0; + right: 0; + background-color: #fff; + z-index: 100; +} +.knowledge_qa_body { + padding-top: 100rpx; + padding-bottom: calc(30rpx + constant(safe-area-inset-bottom)); + padding-bottom: calc(30rpx + env(safe-area-inset-bottom)); +} +.knowledge_qa_item { + margin: 30rpx; + padding: 0 30rpx; + background-color: #fff; + border-radius: 10rpx; +} +.knowledge_qa_item .title { + color: #3d3d3d; + font-size: 28rpx; + padding: 30rpx 0 25rpx 0; +} +.knowledge_qa_item .cell_footer { + padding: 30rpx 0; + color: #999; + font-size: 24rpx; + border-top: 1rpx solid #eee; + display: flex; + align-items: center; + justify-content: space-between; +} +.knowledge_qa_item .cell_footer .btn { + color: #0082fa; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/ME/knowledge_qa/method.js b/dist/dev/mp-weixin/ME/knowledge_qa/method.js new file mode 100644 index 0000000..55e393c --- /dev/null +++ b/dist/dev/mp-weixin/ME/knowledge_qa/method.js @@ -0,0 +1,28 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +require("../../common/libraries/request.js"); +const common_store_useWeAppAuthStore = require("../../common/store/useWeAppAuthStore.js"); +require("../../common/store/useWorkStore.js"); +const ME_knowledge_qa_model = require("./model.js"); +common_store_useWeAppAuthStore.useWeAppAuthStore(); +const method = { + handleChangeTabs(e) { + ME_knowledge_qa_model.useModel.currentTabs.value = e; + console.log(e); + }, + handleShowDetail() { + common_vendor.index.showModal({ + title: "提示", + showCancel: false, + content: "内容还在编辑中,请稍微再访问...", + success: function(res) { + if (res.confirm) { + console.log("用户点击确定"); + } else if (res.cancel) { + console.log("用户点击取消"); + } + } + }); + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/ME/knowledge_qa/model.js b/dist/dev/mp-weixin/ME/knowledge_qa/model.js new file mode 100644 index 0000000..8d5065d --- /dev/null +++ b/dist/dev/mp-weixin/ME/knowledge_qa/model.js @@ -0,0 +1,7 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const useModel = { + formData: common_vendor.ref({}), + currentTabs: common_vendor.ref(0) +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/ME/knowledge_qa/show.js b/dist/dev/mp-weixin/ME/knowledge_qa/show.js new file mode 100644 index 0000000..a3d2547 --- /dev/null +++ b/dist/dev/mp-weixin/ME/knowledge_qa/show.js @@ -0,0 +1,8 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const _sfc_main = {}; +function _sfc_render(_ctx, _cache) { + return {}; +} +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/ME/knowledge_qa/show.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/ME/knowledge_qa/show.json b/dist/dev/mp-weixin/ME/knowledge_qa/show.json new file mode 100644 index 0000000..dfa26a7 --- /dev/null +++ b/dist/dev/mp-weixin/ME/knowledge_qa/show.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "知识详情", + "usingComponents": {} +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/ME/knowledge_qa/show.wxml b/dist/dev/mp-weixin/ME/knowledge_qa/show.wxml new file mode 100644 index 0000000..e69de29 diff --git a/dist/dev/mp-weixin/ME/knowledge_qa/show.wxss b/dist/dev/mp-weixin/ME/knowledge_qa/show.wxss new file mode 100644 index 0000000..e69de29 diff --git a/dist/dev/mp-weixin/ME/push_show/index.js b/dist/dev/mp-weixin/ME/push_show/index.js new file mode 100644 index 0000000..662fa04 --- /dev/null +++ b/dist/dev/mp-weixin/ME/push_show/index.js @@ -0,0 +1,103 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const ME_push_show_model = require("./model.js"); +const ME_push_show_method = require("./method.js"); +require("../../common/libraries/request.js"); +const common_store_useWeAppAuthStore = require("../../common/store/useWeAppAuthStore.js"); +require("../../common/store/useWorkStore.js"); +require("../../common/libraries/day.js"); +require("../../common/libraries/apiLoading.js"); +require("../../gen/Apis.js"); +require("../../common/libraries/naviHelper.js"); +require("../../common/libraries/sendWxWork.js"); +if (!Array) { + const _easycom_hs_footer2 = common_vendor.resolveComponent("hs-footer"); + _easycom_hs_footer2(); +} +const _easycom_hs_footer = () => "../../components/hs-footer/hs-footer.js"; +if (!Math) { + _easycom_hs_footer(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + const auth = common_store_useWeAppAuthStore.useWeAppAuthStore(); + common_vendor.onShow(() => { + var _a, _b, _c, _d, _e, _f, _g; + if ((_c = (_b = (_a = ME_push_show_model.useModel) == null ? void 0 : _a.showData) == null ? void 0 : _b.value) == null ? void 0 : _c.id) { + (_g = ME_push_show_method.method) == null ? void 0 : _g.getCustomerMomentsShow((_f = (_e = (_d = ME_push_show_model.useModel) == null ? void 0 : _d.showData) == null ? void 0 : _e.value) == null ? void 0 : _f.id); + } + }); + common_vendor.onLoad((e) => { + var _a; + ME_push_show_model.useModel.formData.value = { + customer_moments_id: e == null ? void 0 : e.model_id, + company_employee_backlogs_id: e == null ? void 0 : e.id + }; + (_a = ME_push_show_method.method) == null ? void 0 : _a.getCustomerMomentsShow(e == null ? void 0 : e.data_id); + }); + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja, _ka, _la, _ma, _na, _oa, _pa, _qa, _ra, _sa, _ta, _ua, _va, _wa, _xa, _ya, _za, _Aa, _Ba, _Ca, _Da, _Ea, _Fa, _Ga, _Ha; + return common_vendor.e({ + a: (_e = (_d = (_c = (_b = (_a = common_vendor.unref(auth)) == null ? void 0 : _a.data) == null ? void 0 : _b.user) == null ? void 0 : _c.avatar) == null ? void 0 : _d[0]) == null ? void 0 : _e.url, + b: common_vendor.t(((_h = (_g = (_f = common_vendor.unref(auth)) == null ? void 0 : _f.data) == null ? void 0 : _g.user) == null ? void 0 : _h.name) || "员工名称"), + c: common_vendor.t((_k = (_j = (_i = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _i.showData) == null ? void 0 : _j.value) == null ? void 0 : _k.title), + d: common_vendor.t(((_m = (_l = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _l.status) == null ? void 0 : _m.value) === "Sent" ? "已发送" : "待发送"), + e: common_vendor.n(`status status_${(_o = (_n = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _n.status) == null ? void 0 : _o.value}`), + f: ((_r = (_q = (_p = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _p.showData) == null ? void 0 : _q.value) == null ? void 0 : _r.content_type) === "Image" + }, ((_u = (_t = (_s = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _s.showData) == null ? void 0 : _t.value) == null ? void 0 : _u.content_type) === "Image" ? { + g: common_vendor.f((_x = (_w = (_v = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _v.showData) == null ? void 0 : _w.value) == null ? void 0 : _x.attachments, (i, index, i0) => { + return { + a: `img_${index}`, + b: i.url + }; + }) + } : {}, { + h: ((_A = (_z = (_y = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _y.showData) == null ? void 0 : _z.value) == null ? void 0 : _A.content_type) === "Link" + }, ((_D = (_C = (_B = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _B.showData) == null ? void 0 : _C.value) == null ? void 0 : _D.content_type) === "Link" ? { + i: common_vendor.f((_G = (_F = (_E = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _E.showData) == null ? void 0 : _F.value) == null ? void 0 : _G.cover_image, (i, index, i0) => { + return { + a: `img_${index}`, + b: i.url + }; + }), + j: common_vendor.t((_J = (_I = (_H = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _H.showData) == null ? void 0 : _I.value) == null ? void 0 : _J.content) + } : {}, { + k: ((_M = (_L = (_K = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _K.showData) == null ? void 0 : _L.value) == null ? void 0 : _M.content_type) === "Video" + }, ((_P = (_O = (_N = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _N.showData) == null ? void 0 : _O.value) == null ? void 0 : _P.content_type) === "Video" ? { + l: (_U = (_T = (_S = (_R = (_Q = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _Q.showData) == null ? void 0 : _R.value) == null ? void 0 : _S.attachments) == null ? void 0 : _T[0]) == null ? void 0 : _U.url + } : {}, { + m: ((_X = (_W = (_V = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _V.showData) == null ? void 0 : _W.value) == null ? void 0 : _X.content_type) === "MiniProgram" + }, ((__ = (_Z = (_Y = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _Y.showData) == null ? void 0 : _Z.value) == null ? void 0 : __.content_type) === "MiniProgram" ? { + n: common_vendor.t((_ba = (_aa = (_$ = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _$.showData) == null ? void 0 : _aa.value) == null ? void 0 : _ba.content), + o: (_ga = (_fa = (_ea = (_da = (_ca = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _ca.showData) == null ? void 0 : _da.value) == null ? void 0 : _ea.cover_image) == null ? void 0 : _fa[0]) == null ? void 0 : _ga.url + } : {}, { + p: ((_ja = (_ia = (_ha = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _ha.showData) == null ? void 0 : _ia.value) == null ? void 0 : _ja.channel) === "MomentCorp" + }, ((_ma = (_la = (_ka = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _ka.showData) == null ? void 0 : _la.value) == null ? void 0 : _ma.channel) === "MomentCorp" ? { + q: common_vendor.o((_na = common_vendor.unref(ME_push_show_method.method)) == null ? void 0 : _na.handleMomentCorpSend), + r: common_vendor.p({ + btnParimaryName: "发送客户朋友圈", + parimaryDisabled: ((_pa = (_oa = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _oa.status) == null ? void 0 : _pa.value) === "Sent" + }) + } : {}, { + s: ((_sa = (_ra = (_qa = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _qa.showData) == null ? void 0 : _ra.value) == null ? void 0 : _sa.channel) === "CustomerDirectCorp" + }, ((_va = (_ua = (_ta = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _ta.showData) == null ? void 0 : _ua.value) == null ? void 0 : _va.channel) === "CustomerDirectCorp" ? { + t: common_vendor.o((_wa = common_vendor.unref(ME_push_show_method.method)) == null ? void 0 : _wa.handleCustomerDirectCorpSend), + v: common_vendor.p({ + btnParimaryName: "1对1群发客户", + parimaryDisabled: ((_ya = (_xa = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _xa.status) == null ? void 0 : _ya.value) === "Sent" + }) + } : {}, { + w: ((_Ba = (_Aa = (_za = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _za.showData) == null ? void 0 : _Aa.value) == null ? void 0 : _Ba.channel) === "CustomerGroupCorp" + }, ((_Ea = (_Da = (_Ca = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _Ca.showData) == null ? void 0 : _Da.value) == null ? void 0 : _Ea.channel) === "CustomerGroupCorp" ? { + x: common_vendor.o((_Fa = common_vendor.unref(ME_push_show_method.method)) == null ? void 0 : _Fa.handleCustomerGroupCorpSend), + y: common_vendor.p({ + btnParimaryName: "群发客户群", + parimaryDisabled: ((_Ha = (_Ga = common_vendor.unref(ME_push_show_model.useModel)) == null ? void 0 : _Ga.status) == null ? void 0 : _Ha.value) === "Sent" + }) + } : {}); + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/ME/push_show/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/ME/push_show/index.json b/dist/dev/mp-weixin/ME/push_show/index.json new file mode 100644 index 0000000..6d8b657 --- /dev/null +++ b/dist/dev/mp-weixin/ME/push_show/index.json @@ -0,0 +1,6 @@ +{ + "navigationBarTitleText": "任务预览", + "usingComponents": { + "hs-footer": "../../components/hs-footer/hs-footer" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/ME/push_show/index.wxml b/dist/dev/mp-weixin/ME/push_show/index.wxml new file mode 100644 index 0000000..f8d00b2 --- /dev/null +++ b/dist/dev/mp-weixin/ME/push_show/index.wxml @@ -0,0 +1 @@ +{{b}}{{c}}{{d}}{{j}}{{n}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/ME/push_show/index.wxss b/dist/dev/mp-weixin/ME/push_show/index.wxss new file mode 100644 index 0000000..416fc3c --- /dev/null +++ b/dist/dev/mp-weixin/ME/push_show/index.wxss @@ -0,0 +1,107 @@ +page { + background-color: #f8f8f8; +} +.push_content { + padding: 30rpx; + background-color: #fff; + margin: 30rpx; +} +.push_content .image_content { + display: flex; + align-items: center; + justify-content: space-between; + flex-wrap: wrap; + padding: 10rpx 0 30rpx 0; +} +.push_content .image_content image { + width: 190rpx; + height: 190rpx; + margin-top: 30rpx; +} +.push_content .Link_content { + background-color: #f8f8f8; + display: flex; + align-items: center; + padding: 20rpx; + margin: 30rpx 0 0 0; +} +.push_content .Link_content .cover { + width: 100rpx; + height: 100rpx; +} +.push_content .Link_content .cover image { + width: 100rpx; + height: 100rpx; +} +.push_content .Link_content .content { + flex: 1; + padding: 0 30rpx; + font-size: 28rpx; + color: #333; +} +.push_content .video_content { + padding: 50rpx 0 30rpx 0; + display: flex; + align-items: center; + justify-content: center; +} +.push_content .miniProgram_content { + background-color: #fff; + border-radius: 10rpx; + padding: 20rpx; + width: 280rpx; + margin-top: 30rpx; + border: 1rpx solid #eee; +} +.push_content .miniProgram_content .miniProgram_title { + font-size: 28rpx; +} +.push_content .miniProgram_content .miniProgram_cover { + width: 200rpx; + height: 200rpx; + margin-top: 10rpx; +} +.push_content .miniProgram_content .miniProgram_cover image { + width: 200rpx; + height: 200rpx; +} +.push_header { + display: flex; + align-items: self-start; + border-bottom: 1rpx solid #eee; + padding-bottom: 30rpx; +} +.push_header .avatar { + width: 100rpx; + height: 100rpx; + background-color: #f8f8f8; +} +.push_header .avatar image { + width: 100rpx; + height: 100rpx; + border-radius: 12rpx; +} +.push_header .employee_info { + flex: 1; + padding-left: 20rpx; + color: #3d3d3d; + font-size: 28rpx; + height: 100rpx; +} +.push_header .employee_info .des { + padding-top: 10rpx; +} +.push_header .status { + border-radius: 100rpx; + font-size: 28rpx; + padding: 7rpx 17rpx; + font-weight: 500; +} +.push_header .status_Sent { + color: #0082fa; + background-color: #edf4ff; +} +.push_header .status_NotSent { + color: #f97316; + background-color: #fff7ed; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/ME/push_show/method.js b/dist/dev/mp-weixin/ME/push_show/method.js new file mode 100644 index 0000000..a74772f --- /dev/null +++ b/dist/dev/mp-weixin/ME/push_show/method.js @@ -0,0 +1,328 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js"); +const gen_Apis = require("../../gen/Apis.js"); +const ME_push_show_model = require("./model.js"); +require("../../common/libraries/request.js"); +const common_store_useWeAppAuthStore = require("../../common/store/useWeAppAuthStore.js"); +require("../../common/store/useWorkStore.js"); +const common_libraries_naviHelper = require("../../common/libraries/naviHelper.js"); +const common_libraries_sendWxWork = require("../../common/libraries/sendWxWork.js"); +const auth = common_store_useWeAppAuthStore.useWeAppAuthStore(); +const method = { + getCustomerMomentsShow(id) { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Customer.CustomerMoments.Show, { id }).then((res) => { + var _a, _b, _c, _d; + if ((_b = (_a = res == null ? void 0 : res.data) == null ? void 0 : _a.customer_moment_tasks) == null ? void 0 : _b.length) { + ME_push_show_model.useModel.status.value = (_d = (_c = res == null ? void 0 : res.data) == null ? void 0 : _c.customer_moment_tasks[0]) == null ? void 0 : _d.status; + } + ME_push_show_model.useModel.showData.value = res.data; + console.log(res); + }); + }, + async handleMomentCorpSend() { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U; + if (((_a = auth == null ? void 0 : auth.data) == null ? void 0 : _a.environment) === "wxwork") { + if (((_d = (_c = (_b = ME_push_show_model.useModel) == null ? void 0 : _b.showData) == null ? void 0 : _c.value) == null ? void 0 : _d.channel) === "MomentCorp") { + if (((_g = (_f = (_e = ME_push_show_model.useModel) == null ? void 0 : _e.showData) == null ? void 0 : _f.value) == null ? void 0 : _g.content_type) === "Link") { + common_libraries_sendWxWork.shareToExternalMoments( + { + content: (_j = (_i = (_h = ME_push_show_model.useModel) == null ? void 0 : _h.showData) == null ? void 0 : _i.value) == null ? void 0 : _j.content, + attachments: [ + { + msgtype: "link", + // 消息类型,必填 + link: { + title: (_m = (_l = (_k = ME_push_show_model.useModel) == null ? void 0 : _k.showData) == null ? void 0 : _l.value) == null ? void 0 : _m.title, + // H5消息标题 + imgUrl: (_r = (_q = (_p = (_o = (_n = ME_push_show_model.useModel) == null ? void 0 : _n.showData) == null ? void 0 : _o.value) == null ? void 0 : _p.cover_image) == null ? void 0 : _q[0]) == null ? void 0 : _r.url, + // H5消息封面图片URL + url: (_u = (_t = (_s = ME_push_show_model.useModel) == null ? void 0 : _s.showData) == null ? void 0 : _t.value) == null ? void 0 : _u.skip_url + // H5消息页面url 必填 + } + } + ] + }, + (_w = (_v = ME_push_show_model.useModel) == null ? void 0 : _v.formData) == null ? void 0 : _w.value + ); + return false; + } + if (((_z = (_y = (_x = ME_push_show_model.useModel) == null ? void 0 : _x.showData) == null ? void 0 : _y.value) == null ? void 0 : _z.content_type) === "Image") { + common_vendor.index.showLoading({ + title: "准备资料中...", + mask: true + }); + let attachments_media = []; + (_D = (_C = (_B = (_A = ME_push_show_model.useModel) == null ? void 0 : _A.showData) == null ? void 0 : _B.value) == null ? void 0 : _C.attachments_media) == null ? void 0 : _D.map((res) => { + attachments_media == null ? void 0 : attachments_media.push({ + msgtype: "image", + // 消息类型,必填 + image: { + mediaid: res == null ? void 0 : res.media_id + // 图片的media_id,必填 + } + }); + }); + common_libraries_sendWxWork.shareToExternalMoments( + { + content: (_G = (_F = (_E = ME_push_show_model.useModel) == null ? void 0 : _E.showData) == null ? void 0 : _F.value) == null ? void 0 : _G.content, + attachments: attachments_media + }, + (_I = (_H = ME_push_show_model.useModel) == null ? void 0 : _H.formData) == null ? void 0 : _I.value + ); + setTimeout(() => { + common_vendor.index.hideLoading(); + }, 1e3); + return false; + } + if (((_L = (_K = (_J = ME_push_show_model.useModel) == null ? void 0 : _J.showData) == null ? void 0 : _K.value) == null ? void 0 : _L.content_type) === "Video") { + common_vendor.index.showLoading({ + title: "准备资料中...", + mask: true + }); + let attachments_media = []; + (_P = (_O = (_N = (_M = ME_push_show_model.useModel) == null ? void 0 : _M.showData) == null ? void 0 : _N.value) == null ? void 0 : _O.attachments_media) == null ? void 0 : _P.map((res) => { + attachments_media == null ? void 0 : attachments_media.push({ + msgtype: "video", + // 消息类型,必填 + video: { + mediaid: res == null ? void 0 : res.media_id + // 图片的media_id,必填 + } + }); + }); + common_libraries_sendWxWork.shareToExternalMoments( + { + content: (_S = (_R = (_Q = ME_push_show_model.useModel) == null ? void 0 : _Q.showData) == null ? void 0 : _R.value) == null ? void 0 : _S.content, + attachments: attachments_media + }, + (_U = (_T = ME_push_show_model.useModel) == null ? void 0 : _T.formData) == null ? void 0 : _U.value + ); + setTimeout(() => { + common_vendor.index.hideLoading(); + }, 1e3); + return false; + } + } + } else { + common_libraries_naviHelper.showToast("请在企业微信中操作!"); + } + }, + async handleCustomerDirectCorpSend() { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja, _ka, _la; + if (((_a = auth == null ? void 0 : auth.data) == null ? void 0 : _a.environment) === "wxwork") { + if (((_d = (_c = (_b = ME_push_show_model.useModel) == null ? void 0 : _b.showData) == null ? void 0 : _c.value) == null ? void 0 : _d.content_type) === "MiniProgram") { + common_libraries_sendWxWork.shareToExternalContactTask( + { + content: (_g = (_f = (_e = ME_push_show_model.useModel) == null ? void 0 : _e.showData) == null ? void 0 : _f.value) == null ? void 0 : _g.content, + attachments: [ + { + msgtype: "miniprogram", + // 消息类型,必填 + miniprogram: { + appid: (_j = (_i = (_h = ME_push_show_model.useModel) == null ? void 0 : _h.showData) == null ? void 0 : _i.value) == null ? void 0 : _j.mini_program_app_id, + title: (_m = (_l = (_k = ME_push_show_model.useModel) == null ? void 0 : _k.showData) == null ? void 0 : _l.value) == null ? void 0 : _m.title, + // 消息标题 + imgUrl: (_r = (_q = (_p = (_o = (_n = ME_push_show_model.useModel) == null ? void 0 : _n.showData) == null ? void 0 : _o.value) == null ? void 0 : _p.cover_image) == null ? void 0 : _q[0]) == null ? void 0 : _r.url, + // H5消息封面图片URL + page: (_u = (_t = (_s = ME_push_show_model.useModel) == null ? void 0 : _s.showData) == null ? void 0 : _t.value) == null ? void 0 : _u.skip_url + // 消息页面url 必填 + } + } + ] + }, + (_w = (_v = ME_push_show_model.useModel) == null ? void 0 : _v.formData) == null ? void 0 : _w.value + ); + } + if (((_z = (_y = (_x = ME_push_show_model.useModel) == null ? void 0 : _x.showData) == null ? void 0 : _y.value) == null ? void 0 : _z.content_type) === "Link") { + common_libraries_sendWxWork.shareToExternalContactTask( + { + content: (_C = (_B = (_A = ME_push_show_model.useModel) == null ? void 0 : _A.showData) == null ? void 0 : _B.value) == null ? void 0 : _C.content, + attachments: [ + { + msgtype: "link", + // 消息类型,必填 + link: { + title: (_F = (_E = (_D = ME_push_show_model.useModel) == null ? void 0 : _D.showData) == null ? void 0 : _E.value) == null ? void 0 : _F.title, + // H5消息标题 + imgUrl: (_K = (_J = (_I = (_H = (_G = ME_push_show_model.useModel) == null ? void 0 : _G.showData) == null ? void 0 : _H.value) == null ? void 0 : _I.cover_image) == null ? void 0 : _J[0]) == null ? void 0 : _K.url, + // H5消息封面图片URL + url: (_N = (_M = (_L = ME_push_show_model.useModel) == null ? void 0 : _L.showData) == null ? void 0 : _M.value) == null ? void 0 : _N.skip_url + // H5消息页面url 必填 + } + } + ] + }, + (_P = (_O = ME_push_show_model.useModel) == null ? void 0 : _O.formData) == null ? void 0 : _P.value + ); + } + if (((_S = (_R = (_Q = ME_push_show_model.useModel) == null ? void 0 : _Q.showData) == null ? void 0 : _R.value) == null ? void 0 : _S.content_type) === "Image") { + common_vendor.index.showLoading({ + title: "准备资料中...", + mask: true + }); + let attachments_media = []; + (_W = (_V = (_U = (_T = ME_push_show_model.useModel) == null ? void 0 : _T.showData) == null ? void 0 : _U.value) == null ? void 0 : _V.attachments_media) == null ? void 0 : _W.map((res) => { + attachments_media == null ? void 0 : attachments_media.push({ + msgtype: "image", + // 消息类型,必填 + image: { + mediaid: res == null ? void 0 : res.media_id + // 图片的media_id,必填 + } + }); + }); + common_libraries_sendWxWork.shareToExternalContactTask( + { + content: (_Z = (_Y = (_X = ME_push_show_model.useModel) == null ? void 0 : _X.showData) == null ? void 0 : _Y.value) == null ? void 0 : _Z.content, + attachments: attachments_media + }, + (_$ = (__ = ME_push_show_model.useModel) == null ? void 0 : __.formData) == null ? void 0 : _$.value + ); + setTimeout(() => { + common_vendor.index.hideLoading(); + }, 1e3); + return false; + } + if (((_ca = (_ba = (_aa = ME_push_show_model.useModel) == null ? void 0 : _aa.showData) == null ? void 0 : _ba.value) == null ? void 0 : _ca.content_type) === "Video") { + common_vendor.index.showLoading({ + title: "准备资料中...", + mask: true + }); + let attachments_media = []; + (_ga = (_fa = (_ea = (_da = ME_push_show_model.useModel) == null ? void 0 : _da.showData) == null ? void 0 : _ea.value) == null ? void 0 : _fa.attachments_media) == null ? void 0 : _ga.map((res) => { + attachments_media == null ? void 0 : attachments_media.push({ + msgtype: "video", + // 消息类型,必填 + video: { + mediaid: res == null ? void 0 : res.media_id + // 图片的media_id,必填 + } + }); + }); + common_libraries_sendWxWork.shareToExternalContactTask( + { + content: (_ja = (_ia = (_ha = ME_push_show_model.useModel) == null ? void 0 : _ha.showData) == null ? void 0 : _ia.value) == null ? void 0 : _ja.content, + attachments: attachments_media + }, + (_la = (_ka = ME_push_show_model.useModel) == null ? void 0 : _ka.formData) == null ? void 0 : _la.value + ); + setTimeout(() => { + common_vendor.index.hideLoading(); + }, 1e3); + return false; + } + } else { + common_libraries_naviHelper.showToast("请在企业微信中操作!"); + } + }, + async handleCustomerGroupCorpSend() { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja, _ka, _la; + if (((_a = auth == null ? void 0 : auth.data) == null ? void 0 : _a.environment) === "wxwork") { + if (((_d = (_c = (_b = ME_push_show_model.useModel) == null ? void 0 : _b.showData) == null ? void 0 : _c.value) == null ? void 0 : _d.content_type) === "MiniProgram") { + common_libraries_sendWxWork.shareToExternalChatTask( + { + content: (_g = (_f = (_e = ME_push_show_model.useModel) == null ? void 0 : _e.showData) == null ? void 0 : _f.value) == null ? void 0 : _g.content, + attachments: [ + { + msgtype: "miniprogram", + // 消息类型,必填 + miniprogram: { + appid: (_j = (_i = (_h = ME_push_show_model.useModel) == null ? void 0 : _h.showData) == null ? void 0 : _i.value) == null ? void 0 : _j.mini_program_app_id, + title: (_m = (_l = (_k = ME_push_show_model.useModel) == null ? void 0 : _k.showData) == null ? void 0 : _l.value) == null ? void 0 : _m.title, + // 消息标题 + imgUrl: (_r = (_q = (_p = (_o = (_n = ME_push_show_model.useModel) == null ? void 0 : _n.showData) == null ? void 0 : _o.value) == null ? void 0 : _p.cover_image) == null ? void 0 : _q[0]) == null ? void 0 : _r.url, + // H5消息封面图片URL + page: (_u = (_t = (_s = ME_push_show_model.useModel) == null ? void 0 : _s.showData) == null ? void 0 : _t.value) == null ? void 0 : _u.skip_url + // 消息页面url 必填 + } + } + ] + }, + (_w = (_v = ME_push_show_model.useModel) == null ? void 0 : _v.formData) == null ? void 0 : _w.value + ); + } + if (((_z = (_y = (_x = ME_push_show_model.useModel) == null ? void 0 : _x.showData) == null ? void 0 : _y.value) == null ? void 0 : _z.content_type) === "Link") { + common_libraries_sendWxWork.shareToExternalChatTask( + { + content: (_C = (_B = (_A = ME_push_show_model.useModel) == null ? void 0 : _A.showData) == null ? void 0 : _B.value) == null ? void 0 : _C.content, + attachments: [ + { + msgtype: "link", + // 消息类型,必填 + link: { + title: (_F = (_E = (_D = ME_push_show_model.useModel) == null ? void 0 : _D.showData) == null ? void 0 : _E.value) == null ? void 0 : _F.title, + // H5消息标题 + imgUrl: (_K = (_J = (_I = (_H = (_G = ME_push_show_model.useModel) == null ? void 0 : _G.showData) == null ? void 0 : _H.value) == null ? void 0 : _I.cover_image) == null ? void 0 : _J[0]) == null ? void 0 : _K.url, + // H5消息封面图片URL + url: (_N = (_M = (_L = ME_push_show_model.useModel) == null ? void 0 : _L.showData) == null ? void 0 : _M.value) == null ? void 0 : _N.skip_url + // H5消息页面url 必填 + } + } + ] + }, + (_P = (_O = ME_push_show_model.useModel) == null ? void 0 : _O.formData) == null ? void 0 : _P.value + ); + } + if (((_S = (_R = (_Q = ME_push_show_model.useModel) == null ? void 0 : _Q.showData) == null ? void 0 : _R.value) == null ? void 0 : _S.content_type) === "Image") { + common_vendor.index.showLoading({ + title: "准备资料中...", + mask: true + }); + let attachments_media = []; + (_W = (_V = (_U = (_T = ME_push_show_model.useModel) == null ? void 0 : _T.showData) == null ? void 0 : _U.value) == null ? void 0 : _V.attachments_media) == null ? void 0 : _W.map((res) => { + attachments_media == null ? void 0 : attachments_media.push({ + msgtype: "image", + // 消息类型,必填 + image: { + mediaid: res == null ? void 0 : res.media_id + // 图片的media_id,必填 + } + }); + }); + common_libraries_sendWxWork.shareToExternalChatTask( + { + content: (_Z = (_Y = (_X = ME_push_show_model.useModel) == null ? void 0 : _X.showData) == null ? void 0 : _Y.value) == null ? void 0 : _Z.content, + attachments: attachments_media + }, + (_$ = (__ = ME_push_show_model.useModel) == null ? void 0 : __.formData) == null ? void 0 : _$.value + ); + setTimeout(() => { + common_vendor.index.hideLoading(); + }, 1e3); + return false; + } + if (((_ca = (_ba = (_aa = ME_push_show_model.useModel) == null ? void 0 : _aa.showData) == null ? void 0 : _ba.value) == null ? void 0 : _ca.content_type) === "Video") { + common_vendor.index.showLoading({ + title: "准备资料中...", + mask: true + }); + let attachments_media = []; + (_ga = (_fa = (_ea = (_da = ME_push_show_model.useModel) == null ? void 0 : _da.showData) == null ? void 0 : _ea.value) == null ? void 0 : _fa.attachments_media) == null ? void 0 : _ga.map((res) => { + attachments_media == null ? void 0 : attachments_media.push({ + msgtype: "video", + // 消息类型,必填 + video: { + mediaid: res == null ? void 0 : res.media_id + // media_id,必填 + } + }); + }); + common_libraries_sendWxWork.shareToExternalChatTask( + { + content: (_ja = (_ia = (_ha = ME_push_show_model.useModel) == null ? void 0 : _ha.showData) == null ? void 0 : _ia.value) == null ? void 0 : _ja.content, + attachments: attachments_media + }, + (_la = (_ka = ME_push_show_model.useModel) == null ? void 0 : _ka.formData) == null ? void 0 : _la.value + ); + setTimeout(() => { + common_vendor.index.hideLoading(); + }, 1e3); + return false; + } + } else { + common_libraries_naviHelper.showToast("请在企业微信中操作!"); + } + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/ME/push_show/model.js b/dist/dev/mp-weixin/ME/push_show/model.js new file mode 100644 index 0000000..55d618f --- /dev/null +++ b/dist/dev/mp-weixin/ME/push_show/model.js @@ -0,0 +1,12 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +require("../../common/libraries/day.js"); +const useModel = { + formData: common_vendor.ref({}), + listData: common_vendor.ref([]), + metaData: common_vendor.ref({}), + showData: common_vendor.ref({}), + parimaryDisabled: common_vendor.ref(false), + status: common_vendor.ref("") +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/ME/update/index.js b/dist/dev/mp-weixin/ME/update/index.js new file mode 100644 index 0000000..5820ef0 --- /dev/null +++ b/dist/dev/mp-weixin/ME/update/index.js @@ -0,0 +1,84 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const ME_update_method = require("./method.js"); +const ME_update_model = require("./model.js"); +require("../../common/libraries/request.js"); +require("../../common/store/useWeAppAuthStore.js"); +require("../../gen/Apis.js"); +require("../../common/store/useWorkStore.js"); +require("../../common/libraries/apiLoading.js"); +require("../../common/libraries/naviHelper.js"); +require("../../common/libraries/upload.js"); +if (!Array) { + const _easycom_up_avatar2 = common_vendor.resolveComponent("up-avatar"); + const _easycom_hs_cell2 = common_vendor.resolveComponent("hs-cell"); + const _easycom_hs_footer2 = common_vendor.resolveComponent("hs-footer"); + (_easycom_up_avatar2 + _easycom_hs_cell2 + _easycom_hs_footer2)(); +} +const _easycom_up_avatar = () => "../../node-modules/uview-plus/components/u-avatar/u-avatar.js"; +const _easycom_hs_cell = () => "../../components/hs-cell/hs-cell.js"; +const _easycom_hs_footer = () => "../../components/hs-footer/hs-footer.js"; +if (!Math) { + (_easycom_up_avatar + _easycom_hs_cell + _easycom_hs_footer)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + common_vendor.onLoad(() => { + var _a; + (_a = ME_update_method.method) == null ? void 0 : _a.init(); + }); + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k; + return common_vendor.e({ + a: (_c = (_b = (_a = common_vendor.unref(ME_update_model.useModel)) == null ? void 0 : _a.formData) == null ? void 0 : _b.value) == null ? void 0 : _c.avatar + }, ((_f = (_e = (_d = common_vendor.unref(ME_update_model.useModel)) == null ? void 0 : _d.formData) == null ? void 0 : _e.value) == null ? void 0 : _f.avatar) ? { + b: common_vendor.f((_i = (_h = (_g = common_vendor.unref(ME_update_model.useModel)) == null ? void 0 : _g.formData) == null ? void 0 : _h.value) == null ? void 0 : _i.avatar, (i, index, i0) => { + return { + a: "7053b0d8-1-" + i0 + ",7053b0d8-0", + b: common_vendor.p({ + size: "50", + src: i == null ? void 0 : i.url + }), + c: `avatar_${index}` + }; + }) + } : { + c: common_vendor.p({ + size: "50" + }) + }, { + d: common_vendor.o( + //@ts-ignore + (...args) => { + var _a2, _b2; + return ((_a2 = common_vendor.unref(ME_update_method.method)) == null ? void 0 : _a2.handleChooseAvatar) && ((_b2 = common_vendor.unref(ME_update_method.method)) == null ? void 0 : _b2.handleChooseAvatar(...args)); + } + ), + e: common_vendor.p({ + title: "头像", + borderTop: true + }), + f: common_vendor.p({ + title: "姓名", + borderTop: true, + value: (_j = common_vendor.unref(ME_update_model.useModel).formData.value) == null ? void 0 : _j.name + }), + g: common_vendor.p({ + title: "手机号", + borderTop: true, + value: (_k = common_vendor.unref(ME_update_model.useModel).formData.value) == null ? void 0 : _k.phone + }), + h: common_vendor.o(($event) => { + var _a2; + return (_a2 = common_vendor.unref(ME_update_method.method)) == null ? void 0 : _a2.handleLogout(); + }), + i: common_vendor.p({ + btnParimaryName: "退出登录" + }) + }); + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/ME/update/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/ME/update/index.json b/dist/dev/mp-weixin/ME/update/index.json new file mode 100644 index 0000000..fc3609f --- /dev/null +++ b/dist/dev/mp-weixin/ME/update/index.json @@ -0,0 +1,8 @@ +{ + "navigationBarTitleText": "用户信息", + "usingComponents": { + "up-avatar": "../../node-modules/uview-plus/components/u-avatar/u-avatar", + "hs-cell": "../../components/hs-cell/hs-cell", + "hs-footer": "../../components/hs-footer/hs-footer" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/ME/update/index.wxml b/dist/dev/mp-weixin/ME/update/index.wxml new file mode 100644 index 0000000..1474b93 --- /dev/null +++ b/dist/dev/mp-weixin/ME/update/index.wxml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/dist/dev/mp-weixin/ME/update/index.wxss b/dist/dev/mp-weixin/ME/update/index.wxss new file mode 100644 index 0000000..650df7c --- /dev/null +++ b/dist/dev/mp-weixin/ME/update/index.wxss @@ -0,0 +1,30 @@ +page { + background-color: #f8f8f8; +} +.me_page .me_content { + background-color: #fff; + padding: 0 30rpx; +} +.container-wrapper { + padding: 0; + margin: 0; + border: 0; + background-color: #fff; + border-radius: 100rpx; +} +.avatar { + width: 100rpx; + height: 100rpx; +} +.avatar image { + width: 100%; + height: 100%; + border-radius: 100rpx; +} +.user_phone, .user_name { + padding: 10rpx 0; + color: #666; +} +button::after { + border: none; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/ME/update/method.js b/dist/dev/mp-weixin/ME/update/method.js new file mode 100644 index 0000000..5917c8c --- /dev/null +++ b/dist/dev/mp-weixin/ME/update/method.js @@ -0,0 +1,58 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +require("../../common/libraries/request.js"); +const common_store_useWeAppAuthStore = require("../../common/store/useWeAppAuthStore.js"); +require("../../common/store/useWorkStore.js"); +const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js"); +const common_libraries_naviHelper = require("../../common/libraries/naviHelper.js"); +const ME_update_model = require("./model.js"); +const gen_Apis = require("../../gen/Apis.js"); +const common_libraries_upload = require("../../common/libraries/upload.js"); +const auth = common_store_useWeAppAuthStore.useWeAppAuthStore(); +const handleChangeUserInfo = (data) => { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Login.Auth.ChangeAvatar, data).then((res) => { + auth.data.user = { + ...auth.data.user, + ...data + }; + ME_update_model.useModel.formData.value = { + ...auth.data.user, + ...data + }; + common_vendor.index.showToast({ + icon: "success", + title: "编辑成功!", + duration: 2e3 + }); + console.log(res); + }); +}; +const method = { + init() { + var _a; + ME_update_model.useModel.formData.value = ((_a = auth == null ? void 0 : auth.data) == null ? void 0 : _a.user) || {}; + }, + handleChooseAvatar: async (e) => { + var _a, _b; + if ((_a = e == null ? void 0 : e.detail) == null ? void 0 : _a.avatarUrl) { + let data = await common_libraries_upload.avatarUpload((_b = e == null ? void 0 : e.detail) == null ? void 0 : _b.avatarUrl); + handleChangeUserInfo({ avatar: data }); + console.log(data, "filePath"); + } + console.log(e, "eeeee"); + }, + handleConfirm(e) { + handleChangeUserInfo({ name: e }); + console.log(e, "eeeee"); + }, + handleLogout() { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Login.Auth.Logout, {}).then((res) => { + auth.data = { + user: void 0 + }; + common_libraries_naviHelper.showToastBack("退出成功!", 1, true); + console.log(res); + }); + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/ME/update/model.js b/dist/dev/mp-weixin/ME/update/model.js new file mode 100644 index 0000000..6840b75 --- /dev/null +++ b/dist/dev/mp-weixin/ME/update/model.js @@ -0,0 +1,6 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const useModel = { + formData: common_vendor.ref({}) +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/WORKORDER/add/index.js b/dist/dev/mp-weixin/WORKORDER/add/index.js new file mode 100644 index 0000000..f6314d9 --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/add/index.js @@ -0,0 +1,140 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const WORKORDER_add_method = require("./method.js"); +const WORKORDER_add_model = require("./model.js"); +const gen_Enums = require("../../gen/Enums.js"); +require("../../common/libraries/request.js"); +require("../../common/store/useWeAppAuthStore.js"); +require("../../gen/Apis.js"); +require("../../common/store/useWorkStore.js"); +require("../../common/libraries/apiLoading.js"); +require("../../common/libraries/naviHelper.js"); +if (!Array) { + const _easycom_hs_radio2 = common_vendor.resolveComponent("hs-radio"); + const _easycom_hs_cell2 = common_vendor.resolveComponent("hs-cell"); + const _easycom_hs_radio_cell_picker2 = common_vendor.resolveComponent("hs-radio-cell-picker"); + const _easycom_hs_input2 = common_vendor.resolveComponent("hs-input"); + const _easycom_hs_cell_textarea2 = common_vendor.resolveComponent("hs-cell-textarea"); + const _easycom_hs_upload2 = common_vendor.resolveComponent("hs-upload"); + const _easycom_hs_reservation_picker2 = common_vendor.resolveComponent("hs-reservation-picker"); + const _easycom_hs_footer2 = common_vendor.resolveComponent("hs-footer"); + (_easycom_hs_radio2 + _easycom_hs_cell2 + _easycom_hs_radio_cell_picker2 + _easycom_hs_input2 + _easycom_hs_cell_textarea2 + _easycom_hs_upload2 + _easycom_hs_reservation_picker2 + _easycom_hs_footer2)(); +} +const _easycom_hs_radio = () => "../../components/hs-radio/hs-radio.js"; +const _easycom_hs_cell = () => "../../components/hs-cell/hs-cell.js"; +const _easycom_hs_radio_cell_picker = () => "../../components/hs-radio-cell-picker/hs-radio-cell-picker.js"; +const _easycom_hs_input = () => "../../components/hs-input/hs-input.js"; +const _easycom_hs_cell_textarea = () => "../../components/hs-cell-textarea/hs-cell-textarea.js"; +const _easycom_hs_upload = () => "../../components/hs-upload/hs-upload.js"; +const _easycom_hs_reservation_picker = () => "../../components/hs-reservation-picker/hs-reservation-picker.js"; +const _easycom_hs_footer = () => "../../components/hs-footer/hs-footer.js"; +if (!Math) { + (_easycom_hs_radio + _easycom_hs_cell + _easycom_hs_radio_cell_picker + _easycom_hs_input + _easycom_hs_cell_textarea + _easycom_hs_upload + _easycom_hs_reservation_picker + _easycom_hs_footer)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + const HouseWorkOrdersTypeEnumList = common_vendor.ref({}); + common_vendor.onShow(() => { + var _a, _b; + (_a = gen_Enums.HouseWorkOrdersTypeEnum) == null ? true : delete _a.Complaint; + HouseWorkOrdersTypeEnumList.value = gen_Enums.HouseWorkOrdersTypeEnum; + gen_Enums.HouseWorkOrdersLocationEnum.MyHome.text = "房屋"; + (_b = WORKORDER_add_method.method) == null ? void 0 : _b.init(); + }); + common_vendor.onUnload(() => { + WORKORDER_add_model.useModel.formData.value = { is_anonymous: false }; + }); + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e; + return common_vendor.e({ + a: common_vendor.o(($event) => common_vendor.unref(WORKORDER_add_model.useModel).formData.value.type = $event), + b: common_vendor.p({ + Enums: HouseWorkOrdersTypeEnumList.value, + valueModel: common_vendor.unref(WORKORDER_add_model.useModel).formData.value.type + }), + c: common_vendor.p({ + title: "工单类型", + required: true + }), + d: common_vendor.unref(WORKORDER_add_model.useModel).formData.value.type === "Complaint" + }, common_vendor.unref(WORKORDER_add_model.useModel).formData.value.type === "Complaint" ? { + e: common_vendor.o(($event) => common_vendor.unref(WORKORDER_add_model.useModel).formData.value.complaint_type = $event), + f: common_vendor.p({ + Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersComplaintTypeEnum), + title: "投诉类型", + required: true, + valueModel: common_vendor.unref(WORKORDER_add_model.useModel).formData.value.complaint_type + }) + } : {}, { + g: common_vendor.unref(WORKORDER_add_model.useModel).formData.value.type !== "Complaint" + }, common_vendor.unref(WORKORDER_add_model.useModel).formData.value.type !== "Complaint" ? { + h: common_vendor.o(($event) => common_vendor.unref(WORKORDER_add_model.useModel).formData.value.location = $event), + i: common_vendor.p({ + Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersLocationEnum), + valueModel: common_vendor.unref(WORKORDER_add_model.useModel).formData.value.location + }), + j: common_vendor.p({ + title: "报事位置", + required: true + }) + } : {}, { + k: common_vendor.unref(WORKORDER_add_model.useModel).formData.value.location === "MyHome" + }, common_vendor.unref(WORKORDER_add_model.useModel).formData.value.location === "MyHome" ? { + l: common_vendor.o((_a = common_vendor.unref(WORKORDER_add_method.method)) == null ? void 0 : _a.handleToSelectHouse), + m: common_vendor.p({ + title: "房屋信息", + required: true, + borderTop: true, + isLink: true, + value: (_d = (_c = (_b = common_vendor.unref(WORKORDER_add_model.useModel)) == null ? void 0 : _b.formData) == null ? void 0 : _c.value) == null ? void 0 : _d.full_name, + isPlaceholder: "请选择房屋" + }), + n: common_vendor.o(($event) => common_vendor.unref(WORKORDER_add_model.useModel).formData.value.contact_phone = $event), + o: common_vendor.p({ + maxLength: "11", + textAlign: "right", + valueModel: common_vendor.unref(WORKORDER_add_model.useModel).formData.value.contact_phone + }), + p: common_vendor.p({ + title: "联系电话", + required: true, + borderTop: true + }) + } : {}, { + q: common_vendor.o(($event) => common_vendor.unref(WORKORDER_add_model.useModel).formData.value.content = $event), + r: common_vendor.p({ + borderTop: true, + required: true, + title: "问题描述", + placeholder: "请详细描述问题情况,包括具体位置现象等", + valueModel: common_vendor.unref(WORKORDER_add_model.useModel).formData.value.content + }), + s: common_vendor.o(($event) => common_vendor.unref(WORKORDER_add_model.useModel).formData.value.attachments = $event), + t: common_vendor.p({ + borderTop: true, + title: "上传图片", + count: 6, + valueModel: common_vendor.unref(WORKORDER_add_model.useModel).formData.value.attachments + }), + v: common_vendor.unref(WORKORDER_add_model.useModel).formData.value.location === "MyHome" + }, common_vendor.unref(WORKORDER_add_model.useModel).formData.value.location === "MyHome" ? { + w: common_vendor.o(($event) => common_vendor.unref(WORKORDER_add_model.useModel).formData.value.expect_start_time = $event), + x: common_vendor.o(($event) => common_vendor.unref(WORKORDER_add_model.useModel).formData.value.expect_end_time = $event), + y: common_vendor.p({ + title: "期望上门时间", + required: true, + valueExpectStartTime: common_vendor.unref(WORKORDER_add_model.useModel).formData.value.expect_start_time, + valueExpectEndTime: common_vendor.unref(WORKORDER_add_model.useModel).formData.value.expect_end_time + }) + } : {}, { + z: common_vendor.o((_e = common_vendor.unref(WORKORDER_add_method.method)) == null ? void 0 : _e.handleSubmit), + A: common_vendor.p({ + btnParimaryName: "提交" + }) + }); + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/WORKORDER/add/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/WORKORDER/add/index.json b/dist/dev/mp-weixin/WORKORDER/add/index.json new file mode 100644 index 0000000..f941856 --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/add/index.json @@ -0,0 +1,13 @@ +{ + "navigationBarTitleText": "新增工单", + "usingComponents": { + "hs-radio": "../../components/hs-radio/hs-radio", + "hs-cell": "../../components/hs-cell/hs-cell", + "hs-radio-cell-picker": "../../components/hs-radio-cell-picker/hs-radio-cell-picker", + "hs-input": "../../components/hs-input/hs-input", + "hs-cell-textarea": "../../components/hs-cell-textarea/hs-cell-textarea", + "hs-upload": "../../components/hs-upload/hs-upload", + "hs-reservation-picker": "../../components/hs-reservation-picker/hs-reservation-picker", + "hs-footer": "../../components/hs-footer/hs-footer" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/WORKORDER/add/index.wxml b/dist/dev/mp-weixin/WORKORDER/add/index.wxml new file mode 100644 index 0000000..22f6d1a --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/add/index.wxml @@ -0,0 +1 @@ + *自己处理选后者(进任务列表),处理不了选前者(后台派专人)。 \ No newline at end of file diff --git a/dist/dev/mp-weixin/WORKORDER/add/index.wxss b/dist/dev/mp-weixin/WORKORDER/add/index.wxss new file mode 100644 index 0000000..e9c205a --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/add/index.wxss @@ -0,0 +1,16 @@ +page { + background-color: #f8f8f8; +} +.workorder_add_page { + padding-bottom: calc(150rpx + constant(safe-area-inset-bottom)); + padding-bottom: calc(150rpx + env(safe-area-inset-bottom)); +} +.card_form { + background-color: #fff; + padding: 0 30rpx; + margin-bottom: 30rpx; +} +.report_repair { + padding: 10rpx 0; + color: #999; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/WORKORDER/add/method.js b/dist/dev/mp-weixin/WORKORDER/add/method.js new file mode 100644 index 0000000..644a685 --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/add/method.js @@ -0,0 +1,66 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +require("../../common/libraries/request.js"); +const common_store_useWeAppAuthStore = require("../../common/store/useWeAppAuthStore.js"); +const common_store_useWorkStore = require("../../common/store/useWorkStore.js"); +const WORKORDER_add_model = require("./model.js"); +const gen_Apis = require("../../gen/Apis.js"); +const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js"); +const common_libraries_naviHelper = require("../../common/libraries/naviHelper.js"); +const auth = common_store_useWeAppAuthStore.useWeAppAuthStore(); +const work = common_store_useWorkStore.useWorkStore(); +const method = { + init() { + var _a, _b, _c, _d, _e, _f, _g; + console.log("init", work == null ? void 0 : work.selectWorkHouse); + WORKORDER_add_model.useModel.formData.value = { + ...WORKORDER_add_model.useModel.formData.value, + reporter_phone: WORKORDER_add_model.useModel.formData.value.reporter_phone || ((_b = (_a = auth == null ? void 0 : auth.data) == null ? void 0 : _a.user) == null ? void 0 : _b.phone) || "", + reporter_name: WORKORDER_add_model.useModel.formData.value.reporter_name || ((_d = (_c = auth == null ? void 0 : auth.data) == null ? void 0 : _c.user) == null ? void 0 : _d.name) || "" + }; + if ((_e = work == null ? void 0 : work.selectWorkHouse) == null ? void 0 : _e.value) { + WORKORDER_add_model.useModel.formData.value = { + ...WORKORDER_add_model.useModel.formData.value, + asset_houses_id: (_f = work == null ? void 0 : work.selectWorkHouse) == null ? void 0 : _f.value, + full_name: (_g = work == null ? void 0 : work.selectWorkHouse) == null ? void 0 : _g.label + }; + } + }, + handleSubmit() { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v; + console.log("handleSubmit", WORKORDER_add_model.useModel.formData.value); + if (!((_c = (_b = (_a = WORKORDER_add_model.useModel) == null ? void 0 : _a.formData) == null ? void 0 : _b.value) == null ? void 0 : _c.type)) { + return common_libraries_naviHelper.showToast("请选择工单类型!"); + } + if (((_f = (_e = (_d = WORKORDER_add_model.useModel) == null ? void 0 : _d.formData) == null ? void 0 : _e.value) == null ? void 0 : _f.type) !== "Complaint" && !((_h = (_g = WORKORDER_add_model.useModel) == null ? void 0 : _g.formData.value) == null ? void 0 : _h.location)) { + return common_libraries_naviHelper.showToast("请选择报事位置!"); + } + if (((_k = (_j = (_i = WORKORDER_add_model.useModel) == null ? void 0 : _i.formData) == null ? void 0 : _j.value) == null ? void 0 : _k.location) === "MyHome" && !WORKORDER_add_model.useModel.formData.value.asset_houses_id) { + return common_libraries_naviHelper.showToast("请选择房屋!"); + } + if (((_n = (_m = (_l = WORKORDER_add_model.useModel) == null ? void 0 : _l.formData) == null ? void 0 : _m.value) == null ? void 0 : _n.location) === "MyHome" && !((_p = (_o = WORKORDER_add_model.useModel) == null ? void 0 : _o.formData.value) == null ? void 0 : _p.contact_phone)) { + return common_libraries_naviHelper.showToast("请输入联系人电话!"); + } + if (!((_s = (_r = (_q = WORKORDER_add_model.useModel) == null ? void 0 : _q.formData) == null ? void 0 : _r.value) == null ? void 0 : _s.content)) { + return common_libraries_naviHelper.showToast("请输入问题描述!"); + } + if (((_v = (_u = (_t = WORKORDER_add_model.useModel) == null ? void 0 : _t.formData) == null ? void 0 : _u.value) == null ? void 0 : _v.location) === "MyHome" && !WORKORDER_add_model.useModel.formData.value.expect_start_time) { + return common_libraries_naviHelper.showToast("请选择上门时间!"); + } + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.WorkOrder.HouseWorkOrders.Store, WORKORDER_add_model.useModel.formData.value).then((res) => { + common_libraries_naviHelper.showToastBack("提交成功!", 1, true); + console.log(res); + }); + }, + handleToSelectHouse() { + common_vendor.index.navigateTo({ + url: "/pages/public/asset_houses/index?type=work_add" + }); + }, + handleSwitchChange(e) { + var _a; + WORKORDER_add_model.useModel.formData.value.is_anonymous = (_a = e == null ? void 0 : e.detail) == null ? void 0 : _a.value; + console.log(e, "e"); + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/WORKORDER/add/model.js b/dist/dev/mp-weixin/WORKORDER/add/model.js new file mode 100644 index 0000000..e18f467 --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/add/model.js @@ -0,0 +1,6 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const useModel = { + formData: common_vendor.ref({ is_anonymous: false }) +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/WORKORDER/list/index.js b/dist/dev/mp-weixin/WORKORDER/list/index.js new file mode 100644 index 0000000..fc299c2 --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/list/index.js @@ -0,0 +1,111 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const WORKORDER_list_model = require("./model.js"); +const WORKORDER_list_method = require("./method.js"); +const common_libraries_day = require("../../common/libraries/day.js"); +const gen_Enums = require("../../gen/Enums.js"); +require("../../common/libraries/apiLoading.js"); +require("../../gen/Apis.js"); +require("../../common/libraries/request.js"); +require("../../common/store/useWeAppAuthStore.js"); +require("../../common/store/useWorkStore.js"); +if (!Array) { + const _easycom_hs_tabs2 = common_vendor.resolveComponent("hs-tabs"); + const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag"); + const _easycom_hs_level2 = common_vendor.resolveComponent("hs-level"); + const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon"); + const _easycom_cc_scroll_loading2 = common_vendor.resolveComponent("cc-scroll-loading"); + (_easycom_hs_tabs2 + _easycom_hs_enum_tag2 + _easycom_hs_level2 + _easycom_up_icon2 + _easycom_cc_scroll_loading2)(); +} +const _easycom_hs_tabs = () => "../../components/hs-tabs/hs-tabs.js"; +const _easycom_hs_enum_tag = () => "../../components/hs-enum-tag/hs-enum-tag.js"; +const _easycom_hs_level = () => "../../components/hs-level/hs-level.js"; +const _easycom_up_icon = () => "../../node-modules/uview-plus/components/u-icon/u-icon.js"; +const _easycom_cc_scroll_loading = () => "../../common/components/cc-scroll-loading/cc-scroll-loading.js"; +if (!Math) { + (_easycom_hs_tabs + _easycom_hs_enum_tag + _easycom_hs_level + _easycom_up_icon + _easycom_cc_scroll_loading)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + const tablist = [ + { label: "待处理", value: "Pending" }, + { label: "处理中", value: "Processing" }, + { label: "已完成", value: "Completed" }, + { label: "已关闭", value: "Closed" } + ]; + common_vendor.onLoad(() => { + var _a; + WORKORDER_list_model.useModel.formData.value.page = 1; + WORKORDER_list_model.useModel.listData.value = []; + (_a = WORKORDER_list_method.method) == null ? void 0 : _a.getList(); + }); + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e, _f, _g, _h; + return { + a: common_vendor.o((_a = common_vendor.unref(WORKORDER_list_method.method)) == null ? void 0 : _a.handleChangeTabs), + b: common_vendor.p({ + list: tablist, + current: (_c = (_b = common_vendor.unref(WORKORDER_list_model.useModel)) == null ? void 0 : _b.currentTabs) == null ? void 0 : _c.value + }), + c: common_vendor.f((_e = (_d = common_vendor.unref(WORKORDER_list_model.useModel)) == null ? void 0 : _d.listData) == null ? void 0 : _e.value, (i, index, i0) => { + var _a2, _b2, _c2, _d2, _e2; + return common_vendor.e({ + a: "16520412-2-" + i0 + ",16520412-1", + b: common_vendor.p({ + value: i == null ? void 0 : i.type, + Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersTypeEnum) + }), + c: "16520412-3-" + i0 + ",16520412-1", + d: common_vendor.p({ + value: i == null ? void 0 : i.location, + Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersLocationEnum) + }), + e: "16520412-4-" + i0 + ",16520412-1", + f: common_vendor.p({ + level: i == null ? void 0 : i.level + }), + g: "16520412-5-" + i0 + ",16520412-1", + h: common_vendor.p({ + value: i == null ? void 0 : i.status, + Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersStatusEnum) + }), + i: common_vendor.n(`btn_status status_${i == null ? void 0 : i.status}`), + j: common_vendor.t(((_a2 = i == null ? void 0 : i.asset_house) == null ? void 0 : _a2.full_name) || ""), + k: common_vendor.t(i == null ? void 0 : i.content), + l: common_vendor.f(i == null ? void 0 : i.attachments, (k, idx, i1) => { + return { + a: k == null ? void 0 : k.url, + b: `img_${index}_${idx}` + }; + }), + m: (i == null ? void 0 : i.status) === "Pending" + }, (i == null ? void 0 : i.status) === "Pending" ? { + n: "16520412-6-" + i0 + ",16520412-1", + o: common_vendor.p({ + name: "clock", + color: ((_b2 = common_vendor.unref(common_libraries_day.getTimeStatus)(i == null ? void 0 : i.expect_end_time)) == null ? void 0 : _b2.color) || "#000", + size: "14" + }), + p: common_vendor.t((_c2 = common_vendor.unref(common_libraries_day.getTimeStatus)(i == null ? void 0 : i.expect_end_time)) == null ? void 0 : _c2.label), + q: common_vendor.n(`todo_done_card_footer status_${(_d2 = common_vendor.unref(common_libraries_day.getTimeStatus)(i == null ? void 0 : i.expect_end_time)) == null ? void 0 : _d2.status}`) + } : {}, { + r: common_vendor.t(i == null ? void 0 : i.created_at), + s: `items_${index}`, + t: common_vendor.o(($event) => { + var _a3; + return (_a3 = common_vendor.unref(WORKORDER_list_method.method)) == null ? void 0 : _a3.handleToDetail(i); + }, `items_${index}`), + v: common_vendor.n(`work_item ${(i == null ? void 0 : i.status) === "Pending" ? `card_status_${(_e2 = common_vendor.unref(common_libraries_day.getTimeStatus)(i == null ? void 0 : i.expect_end_time)) == null ? void 0 : _e2.status}` : ""}`) + }); + }), + d: common_vendor.o((_f = common_vendor.unref(WORKORDER_list_method.method)) == null ? void 0 : _f.handleLoad), + e: common_vendor.p({ + meta: (_h = (_g = common_vendor.unref(WORKORDER_list_model.useModel)) == null ? void 0 : _g.metaData) == null ? void 0 : _h.value + }) + }; + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/WORKORDER/list/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/WORKORDER/list/index.json b/dist/dev/mp-weixin/WORKORDER/list/index.json new file mode 100644 index 0000000..a8b328b --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/list/index.json @@ -0,0 +1,10 @@ +{ + "navigationBarTitleText": "我的工单", + "usingComponents": { + "hs-tabs": "../../components/hs-tabs/hs-tabs", + "hs-enum-tag": "../../components/hs-enum-tag/hs-enum-tag", + "hs-level": "../../components/hs-level/hs-level", + "up-icon": "../../node-modules/uview-plus/components/u-icon/u-icon", + "cc-scroll-loading": "../../common/components/cc-scroll-loading/cc-scroll-loading" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/WORKORDER/list/index.wxml b/dist/dev/mp-weixin/WORKORDER/list/index.wxml new file mode 100644 index 0000000..6a607ac --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/list/index.wxml @@ -0,0 +1 @@ +{{i.j}}{{i.k}}{{i.p}}提报时间: {{i.r}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/WORKORDER/list/index.wxss b/dist/dev/mp-weixin/WORKORDER/list/index.wxss new file mode 100644 index 0000000..09c5b51 --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/list/index.wxss @@ -0,0 +1,137 @@ +page { + background-color: #f8f8f8; +} +.header { + background-color: #fff; + position: fixed; + left: 0; + top: 0; + right: 0; + z-index: 100; + box-shadow: 0px 3px 7px rgba(206, 206, 206, 0.25); +} +.work_contents { + padding: 100rpx 0 30rpx 0; +} +.work_contents .work_item { + background-color: #fff; + border-radius: 10rpx; + margin: 30rpx 30rpx 0 30rpx; + border-radius: 15rpx; + padding: 0 30rpx 30rpx 30rpx; +} +.work_contents .work_item .work_item_header { + display: flex; + align-items: center; + justify-content: space-between; + padding: 25rpx 0; +} +.work_contents .work_item .work_item_header .group_btn { + display: flex; + align-items: center; +} +.work_contents .work_item .work_item_header .btn_type { + border: 1rpx solid #eee; + font-size: 28rpx; + padding: 7rpx 19rpx; + border-radius: 100rpx; + margin-right: 10rpx; +} +.work_contents .work_item .work_item_header .btn_status { + border-radius: 100rpx; + font-size: 28rpx; + padding: 7rpx 19rpx; +} +.work_contents .work_item .work_item_header .status_Pending { + color: #f97316; + background-color: #fff7ed; +} +.work_contents .work_item .work_item_header .status_Processing { + color: #0082fa; + background-color: #edf4ff; +} +.work_contents .work_item .work_item_header .status_Completed { + color: #22c55e; + background-color: #f0fdf4; +} +.work_contents .work_item .work_item_header .status_Closed { + color: #909399; + background-color: #f3f3f4; +} +.work_contents .work_item .full_name { + font-size: 28rpx; +} +.work_contents .work_item .work_item_cell { + display: flex; + align-items: center; + justify-content: space-between; + font-size: 30rpx; + color: #666; + padding-top: 20rpx; +} +.work_contents .work_item .work_item_cell text { + color: #333; +} +.work_contents .work_item .work_item_images { + display: flex; + align-items: center; + flex-wrap: wrap; +} +.work_contents .work_item .work_item_images .item { + width: 140rpx; + height: 140rpx; + border-radius: 10rpx; + background-color: #f8f8f8; + margin-top: 25rpx; + margin-right: 25rpx; + overflow: hidden; +} +.work_contents .work_item .work_item_images .item:nth-child(4n) { + margin-right: 0; +} +.work_contents .work_item .work_item_images .item image { + width: 100%; + height: 100%; +} +.work_contents .work_item .work_code { + font-size: 25rpx; +} +.work_item_footer { + border-top: 1rpx solid #eee; + margin-top: 30rpx; +} +.work_item_footer .todo_done_card_footer { + color: #666666; + font-size: 28rpx; + padding: 12rpx 20rpx; + border-radius: 10rpx; + color: #24bc21; + background: linear-gradient(90deg, #edffed 0%, rgba(232, 255, 231, 0) 103%); + display: flex; + align-items: center; + margin: 25rpx 0 0 0; +} +.work_item_footer .status_1 { + color: #24bc21; + background: linear-gradient(90deg, #edffed 0%, rgba(232, 255, 231, 0) 103%); +} +.work_item_footer .status_2 { + color: #0082fa; + background: linear-gradient(90deg, #eff7ff 0%, rgba(231, 241, 255, 0) 103%); +} +.work_item_footer .status_3 { + color: #f97316; + background: linear-gradient(90deg, #fff4ef 0%, rgba(255, 237, 231, 0) 103%); +} +.work_item_footer .status_4 { + color: #ea0000; + background: linear-gradient(90deg, #ffe5e5 0%, rgba(255, 255, 255, 0) 103%); +} +.work_item_footer .expected_time { + padding: 20rpx 0 0 0; + color: #333; + font-size: 28rpx; +} +.card_status_4 { + border-top: 6px solid #ef4444; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/WORKORDER/list/method.js b/dist/dev/mp-weixin/WORKORDER/list/method.js new file mode 100644 index 0000000..278ee2f --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/list/method.js @@ -0,0 +1,35 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const WORKORDER_list_model = require("./model.js"); +const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js"); +const gen_Apis = require("../../gen/Apis.js"); +const getList = () => { + var _a, _b; + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.WorkOrder.HouseWorkOrders.List, (_b = (_a = WORKORDER_list_model.useModel) == null ? void 0 : _a.formData) == null ? void 0 : _b.value).then((res) => { + WORKORDER_list_model.useModel.listData.value = [...WORKORDER_list_model.useModel.listData.value, ...res == null ? void 0 : res.data]; + WORKORDER_list_model.useModel.metaData.value = res == null ? void 0 : res.meta; + }); +}; +const handleSearch = () => { + WORKORDER_list_model.useModel.formData.value.page = 1; + WORKORDER_list_model.useModel.listData.value = []; + getList(); +}; +const method = { + getList, + handleChangeTabs(idx, e) { + WORKORDER_list_model.useModel.currentTabs.value = idx; + WORKORDER_list_model.useModel.formData.value.status = e == null ? void 0 : e.value; + handleSearch(); + }, + handleLoad(page) { + WORKORDER_list_model.useModel.formData.value.page = page; + getList(); + }, + handleToDetail(e) { + common_vendor.index.navigateTo({ + url: `/WORKORDER/show/index?id=${e == null ? void 0 : e.id}` + }); + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/WORKORDER/list/model.js b/dist/dev/mp-weixin/WORKORDER/list/model.js new file mode 100644 index 0000000..d0e0a52 --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/list/model.js @@ -0,0 +1,9 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const useModel = { + currentTabs: common_vendor.ref(0), + formData: common_vendor.ref({ page: 1, status: "Pending" }), + listData: common_vendor.ref([]), + metaData: common_vendor.ref({}) +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/WORKORDER/show/components/ProcessLogs.js b/dist/dev/mp-weixin/WORKORDER/show/components/ProcessLogs.js new file mode 100644 index 0000000..9e5da83 --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/show/components/ProcessLogs.js @@ -0,0 +1,56 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const gen_Enums = require("../../../gen/Enums.js"); +const WORKORDER_show_model = require("../model.js"); +if (!Array) { + const _easycom_hs_empty2 = common_vendor.resolveComponent("hs-empty"); + const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag"); + const _easycom_up_steps_item2 = common_vendor.resolveComponent("up-steps-item"); + const _easycom_up_steps2 = common_vendor.resolveComponent("up-steps"); + (_easycom_hs_empty2 + _easycom_hs_enum_tag2 + _easycom_up_steps_item2 + _easycom_up_steps2)(); +} +const _easycom_hs_empty = () => "../../../components/hs-empty/hs-empty.js"; +const _easycom_hs_enum_tag = () => "../../../components/hs-enum-tag/hs-enum-tag.js"; +const _easycom_up_steps_item = () => "../../../node-modules/uview-plus/components/u-steps-item/u-steps-item.js"; +const _easycom_up_steps = () => "../../../node-modules/uview-plus/components/u-steps/u-steps.js"; +if (!Math) { + (_easycom_hs_empty + _easycom_hs_enum_tag + _easycom_up_steps_item + _easycom_up_steps)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "ProcessLogs", + setup(__props) { + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k; + return common_vendor.e({ + a: !((_c = (_b = (_a = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _a.logsData) == null ? void 0 : _b.value) == null ? void 0 : _c.length) + }, !((_f = (_e = (_d = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _d.logsData) == null ? void 0 : _e.value) == null ? void 0 : _f.length) ? {} : {}, { + b: common_vendor.f((_h = (_g = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _g.logsData) == null ? void 0 : _h.value, (i, index, i0) => { + return { + a: "c8bc8d18-3-" + i0 + "," + ("c8bc8d18-2-" + i0), + b: common_vendor.p({ + value: i == null ? void 0 : i.status, + Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersStatusEnum) + }), + c: common_vendor.t(i == null ? void 0 : i.description), + d: common_vendor.f(i == null ? void 0 : i.attachments, (k, index2, i1) => { + return { + a: k == null ? void 0 : k.url, + b: `attachment_${index2}` + }; + }), + e: common_vendor.t(i == null ? void 0 : i.created_at), + f: `log_item_${index}`, + g: "c8bc8d18-2-" + i0 + ",c8bc8d18-1" + }; + }), + c: common_vendor.p({ + direction: "column", + dot: true, + current: ((_k = (_j = (_i = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _i.logsData) == null ? void 0 : _j.value) == null ? void 0 : _k.length) - 1 + }) + }); + }; + } +}); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-c8bc8d18"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/WORKORDER/show/components/ProcessLogs.vue"]]); +wx.createComponent(Component); diff --git a/dist/dev/mp-weixin/WORKORDER/show/components/ProcessLogs.json b/dist/dev/mp-weixin/WORKORDER/show/components/ProcessLogs.json new file mode 100644 index 0000000..98e603e --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/show/components/ProcessLogs.json @@ -0,0 +1,9 @@ +{ + "component": true, + "usingComponents": { + "hs-empty": "../../../components/hs-empty/hs-empty", + "hs-enum-tag": "../../../components/hs-enum-tag/hs-enum-tag", + "up-steps-item": "../../../node-modules/uview-plus/components/u-steps-item/u-steps-item", + "up-steps": "../../../node-modules/uview-plus/components/u-steps/u-steps" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/WORKORDER/show/components/ProcessLogs.wxml b/dist/dev/mp-weixin/WORKORDER/show/components/ProcessLogs.wxml new file mode 100644 index 0000000..c9b8825 --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/show/components/ProcessLogs.wxml @@ -0,0 +1 @@ + 处理日志 工单进度:{{i.c}}{{i.e}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/WORKORDER/show/components/ProcessLogs.wxss b/dist/dev/mp-weixin/WORKORDER/show/components/ProcessLogs.wxss new file mode 100644 index 0000000..18d9113 --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/show/components/ProcessLogs.wxss @@ -0,0 +1,34 @@ +.desc_title.data-v-c8bc8d18 { + color: #333333; + font-size: 28rpx; + display: flex; + align-items: center; + justify-content: space-between; +} +.desc_content.data-v-c8bc8d18 { + color: #666; + font-size: 28rpx; + padding: 10rpx 0 0 0; +} +.attachments.data-v-c8bc8d18 { + display: flex; + align-items: center; + flex-wrap: wrap; + padding: 20rpx 0 0 0; +} +.attachments .attachment_item.data-v-c8bc8d18 { + width: 140rpx; + height: 140rpx; + overflow: hidden; + border-radius: 15rpx; +} +.attachments image.data-v-c8bc8d18 { + width: 140rpx; + height: 140rpx; + border-radius: 15rpx; +} +.created_at.data-v-c8bc8d18 { + padding: 10rpx 0 30rpx 0; + color: #999; + font-size: 24rpx; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/WORKORDER/show/index.js b/dist/dev/mp-weixin/WORKORDER/show/index.js new file mode 100644 index 0000000..3a4a8ea --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/show/index.js @@ -0,0 +1,103 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const common_libraries_day = require("../../common/libraries/day.js"); +const WORKORDER_show_method = require("./method.js"); +const WORKORDER_show_model = require("./model.js"); +const gen_Enums = require("../../gen/Enums.js"); +require("../../common/libraries/apiLoading.js"); +require("../../gen/Apis.js"); +require("../../common/libraries/request.js"); +require("../../common/store/useWeAppAuthStore.js"); +require("../../common/store/useWorkStore.js"); +if (!Array) { + const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag"); + const _easycom_hs_level2 = common_vendor.resolveComponent("hs-level"); + const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon"); + const _easycom_hs_footer2 = common_vendor.resolveComponent("hs-footer"); + (_easycom_hs_enum_tag2 + _easycom_hs_level2 + _easycom_up_icon2 + _easycom_hs_footer2)(); +} +const _easycom_hs_enum_tag = () => "../../components/hs-enum-tag/hs-enum-tag.js"; +const _easycom_hs_level = () => "../../components/hs-level/hs-level.js"; +const _easycom_up_icon = () => "../../node-modules/uview-plus/components/u-icon/u-icon.js"; +const _easycom_hs_footer = () => "../../components/hs-footer/hs-footer.js"; +if (!Math) { + (_easycom_hs_enum_tag + _easycom_hs_level + _easycom_up_icon + MyProcessLogs + _easycom_hs_footer)(); +} +const MyProcessLogs = () => "./components/ProcessLogs.js"; +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + common_vendor.onLoad((e) => { + var _a, _b; + WORKORDER_show_model.useModel.dataShow.value = {}; + (_a = WORKORDER_show_method.method) == null ? void 0 : _a.getShow(e == null ? void 0 : e.id); + (_b = WORKORDER_show_method.method) == null ? void 0 : _b.getHouseWorkLogs(e == null ? void 0 : e.id); + }); + common_vendor.onShow(() => { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k; + if ((_c = (_b = (_a = WORKORDER_show_model.useModel) == null ? void 0 : _a.dataShow) == null ? void 0 : _b.value) == null ? void 0 : _c.id) { + (_g = WORKORDER_show_method.method) == null ? void 0 : _g.getShow((_f = (_e = (_d = WORKORDER_show_model.useModel) == null ? void 0 : _d.dataShow) == null ? void 0 : _e.value) == null ? void 0 : _f.id); + (_k = WORKORDER_show_method.method) == null ? void 0 : _k.getHouseWorkLogs((_j = (_i = (_h = WORKORDER_show_model.useModel) == null ? void 0 : _h.dataShow) == null ? void 0 : _i.value) == null ? void 0 : _j.id); + } + }); + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja, _ka, _la, _ma, _na, _oa, _pa, _qa, _ra, _sa, _ta, _ua; + return common_vendor.e({ + a: common_vendor.p({ + value: (_c = (_b = (_a = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _a.dataShow) == null ? void 0 : _b.value) == null ? void 0 : _c.type, + Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersTypeEnum) + }), + b: common_vendor.p({ + value: (_f = (_e = (_d = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _d.dataShow) == null ? void 0 : _e.value) == null ? void 0 : _f.location, + Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersLocationEnum) + }), + c: common_vendor.p({ + level: (_i = (_h = (_g = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _g.dataShow) == null ? void 0 : _h.value) == null ? void 0 : _i.level + }), + d: common_vendor.p({ + value: (_l = (_k = (_j = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _j.dataShow) == null ? void 0 : _k.value) == null ? void 0 : _l.status, + Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersStatusEnum) + }), + e: common_vendor.n(`btn_status status_${(_o = (_n = (_m = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _m.dataShow) == null ? void 0 : _n.value) == null ? void 0 : _o.status}`), + f: ((_r = (_q = (_p = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _p.dataShow) == null ? void 0 : _q.value) == null ? void 0 : _r.status) === "Pending" && ((_u = (_t = (_s = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _s.dataShow) == null ? void 0 : _t.value) == null ? void 0 : _u.location) === "MyHome" + }, ((_x = (_w = (_v = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _v.dataShow) == null ? void 0 : _w.value) == null ? void 0 : _x.status) === "Pending" && ((_A = (_z = (_y = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _y.dataShow) == null ? void 0 : _z.value) == null ? void 0 : _A.location) === "MyHome" ? { + g: common_vendor.p({ + name: "clock", + color: ((_E = common_vendor.unref(common_libraries_day.getTimeStatus)((_D = (_C = (_B = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _B.dataShow) == null ? void 0 : _C.value) == null ? void 0 : _D.expect_end_time)) == null ? void 0 : _E.color) || "#000", + size: "14" + }), + h: common_vendor.t((_I = common_vendor.unref(common_libraries_day.getTimeStatus)((_H = (_G = (_F = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _F.dataShow) == null ? void 0 : _G.value) == null ? void 0 : _H.expect_end_time)) == null ? void 0 : _I.label), + i: common_vendor.n(`time_status status_${(_M = common_vendor.unref(common_libraries_day.getTimeStatus)((_L = (_K = (_J = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _J.dataShow) == null ? void 0 : _K.value) == null ? void 0 : _L.expect_end_time)) == null ? void 0 : _M.status}`) + } : {}, { + j: ((_P = (_O = (_N = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _N.dataShow) == null ? void 0 : _O.value) == null ? void 0 : _P.location) === "MyHome" + }, ((_S = (_R = (_Q = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Q.dataShow) == null ? void 0 : _R.value) == null ? void 0 : _S.location) === "MyHome" ? { + k: common_vendor.t((_W = (_V = (_U = (_T = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _T.dataShow) == null ? void 0 : _U.value) == null ? void 0 : _V.asset_house) == null ? void 0 : _W.full_name), + l: common_vendor.t((_Z = (_Y = (_X = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _X.dataShow) == null ? void 0 : _Y.value) == null ? void 0 : _Z.title) + } : {}, { + m: common_vendor.t((_aa = (_$ = (__ = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : __.dataShow) == null ? void 0 : _$.value) == null ? void 0 : _aa.content), + n: common_vendor.f((_da = (_ca = (_ba = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _ba.dataShow) == null ? void 0 : _ca.value) == null ? void 0 : _da.attachments, (k, idx, i0) => { + return { + a: k == null ? void 0 : k.url, + b: `img_${idx}` + }; + }), + o: common_vendor.t((_ga = (_fa = (_ea = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _ea.dataShow) == null ? void 0 : _fa.value) == null ? void 0 : _ga.code), + p: common_vendor.t((_ja = (_ia = (_ha = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _ha.dataShow) == null ? void 0 : _ia.value) == null ? void 0 : _ja.reporter_phone), + q: common_vendor.t((_ma = (_la = (_ka = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _ka.dataShow) == null ? void 0 : _la.value) == null ? void 0 : _ma.created_at), + r: common_vendor.n(`show_card ${((_pa = (_oa = (_na = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _na.dataShow) == null ? void 0 : _oa.value) == null ? void 0 : _pa.status) === "Pending" ? `card_status_${(_ta = common_vendor.unref(common_libraries_day.getTimeStatus)((_sa = (_ra = (_qa = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _qa.dataShow) == null ? void 0 : _ra.value) == null ? void 0 : _sa.expect_end_time)) == null ? void 0 : _ta.status}` : ""}`), + s: common_vendor.o((_ua = common_vendor.unref(WORKORDER_show_method.method)) == null ? void 0 : _ua.toPageAddLogs), + t: common_vendor.o(($event) => { + var _a2, _b2, _c2, _d2; + return (_d2 = common_vendor.unref(WORKORDER_show_method.method)) == null ? void 0 : _d2.handleCopyPhone((_c2 = (_b2 = (_a2 = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _a2.dataShow) == null ? void 0 : _b2.value) == null ? void 0 : _c2.contact_phone); + }), + v: common_vendor.p({ + btnOtherShow: true, + btnParimaryName: "更新进度", + btnOtherName: "联系客户" + }) + }); + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/WORKORDER/show/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/WORKORDER/show/index.json b/dist/dev/mp-weixin/WORKORDER/show/index.json new file mode 100644 index 0000000..1e4ffc3 --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/show/index.json @@ -0,0 +1,10 @@ +{ + "navigationBarTitleText": "工单详情", + "usingComponents": { + "hs-enum-tag": "../../components/hs-enum-tag/hs-enum-tag", + "hs-level": "../../components/hs-level/hs-level", + "up-icon": "../../node-modules/uview-plus/components/u-icon/u-icon", + "hs-footer": "../../components/hs-footer/hs-footer", + "my-process-logs": "./components/ProcessLogs" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/WORKORDER/show/index.wxml b/dist/dev/mp-weixin/WORKORDER/show/index.wxml new file mode 100644 index 0000000..b0007e0 --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/show/index.wxml @@ -0,0 +1 @@ +{{h}}{{k}}{{l}} 工单编号 {{o}} 联系电话 {{p}} 提报时间 {{q}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/WORKORDER/show/index.wxss b/dist/dev/mp-weixin/WORKORDER/show/index.wxss new file mode 100644 index 0000000..b4e3d3b --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/show/index.wxss @@ -0,0 +1,149 @@ +page { + background-color: #f8f8f8; +} +.work_page { + padding-bottom: calc(150rpx + constant(safe-area-inset-bottom)); + padding-bottom: calc(150rpx + env(safe-area-inset-bottom)); +} +.show_card { + margin: 30rpx; + background-color: #fff; + border-radius: 16rpx; + padding: 0 30rpx; +} +.show_card .card_header_type_status { + display: flex; + align-items: center; + justify-content: space-between; + padding: 25rpx 0; +} +.show_card .card_header_type_status .group_type_btn { + display: flex; + align-items: center; +} +.show_card .card_header_type_status .btn_type { + border: 1rpx solid #eee; + font-size: 28rpx; + padding: 7rpx 19rpx; + border-radius: 100rpx; + margin-right: 20rpx; +} +.show_card .card_header_type_status .btn_status { + border-radius: 100rpx; + font-size: 28rpx; + padding: 7rpx 19rpx; +} +.show_card .card_header_type_status .status_Pending { + color: #f97316; + background-color: #fff7ed; +} +.show_card .card_header_type_status .status_Processing { + color: #0082fa; + background-color: #edf4ff; +} +.show_card .card_header_type_status .status_Completed { + color: #22c55e; + background-color: #f0fdf4; +} +.show_card .card_header_type_status .status_Closed { + color: #909399; + background-color: #f3f3f4; +} +.show_card .time_status { + color: #666666; + font-size: 28rpx; + padding: 12rpx 20rpx; + border-radius: 10rpx; + display: flex; + align-items: center; + margin: 0 0 25rpx 0; +} +.show_card .status_1 { + color: #24bc21; + background: linear-gradient(90deg, #edffed 0%, rgba(232, 255, 231, 0) 103%); +} +.show_card .status_2 { + color: #0082fa; + background: linear-gradient(90deg, #eff7ff 0%, rgba(231, 241, 255, 0) 103%); +} +.show_card .status_3 { + color: #f97316; + background: linear-gradient(90deg, #fff4ef 0%, rgba(255, 237, 231, 0) 103%); +} +.show_card .status_4 { + color: #ea0000; + background: linear-gradient(90deg, #ffe5e5 0%, rgba(255, 255, 255, 0) 103%); +} +.show_card .card_header_huse_info { + display: flex; + align-items: center; + font-size: 28rpx; +} +.show_card .card_header_huse_info text { + display: inline-block; + height: 28rpx; + line-height: 28rpx; +} +.show_card .card_header_huse_info text:last-child { + margin-left: 15rpx; + border-left: 1rpx solid #eee; + padding-left: 15rpx; +} +.show_card .card_header_content_info { + font-size: 30rpx; + color: #444; + padding: 15rpx 0 0 0; +} +.show_card .card_header_imgs { + display: flex; + align-items: center; + flex-wrap: wrap; + padding-bottom: 30rpx; +} +.show_card .card_header_imgs .item { + width: 140rpx; + height: 140rpx; + border-radius: 10rpx; + background-color: #f8f8f8; + margin-top: 25rpx; + margin-right: 25rpx; + overflow: hidden; +} +.show_card .card_header_imgs .item:nth-child(4n) { + margin-right: 0; +} +.show_card .card_header_imgs .item image { + width: 100%; + height: 100%; +} +.show_card .show_card_footer { + border-top: 1rpx solid #eee; +} +.work_item_cell { + display: flex; + align-items: center; + justify-content: space-between; + font-size: 30rpx; + color: #666; + padding-top: 25rpx; +} +.work_item_cell:last-child { + padding-bottom: 25rpx; +} +.work_item_cell text { + color: #333; +} +.work_amount_cell { + color: #cf1322; +} +.work_amount_cell text { + color: #cf1322; +} +.show_card_title { + font-size: 28rpx; + padding: 30rpx 0; + font-weight: 500; +} +.card_status_4 { + border-top: 6px solid #ef4444; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/WORKORDER/show/method.js b/dist/dev/mp-weixin/WORKORDER/show/method.js new file mode 100644 index 0000000..f99f304 --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/show/method.js @@ -0,0 +1,32 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const WORKORDER_show_model = require("./model.js"); +const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js"); +const gen_Apis = require("../../gen/Apis.js"); +const method = { + getShow(id) { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.WorkOrder.HouseWorkOrders.Show, { id }).then((res) => { + WORKORDER_show_model.useModel.dataShow.value = res == null ? void 0 : res.data; + }); + }, + getHouseWorkLogs(id) { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.WorkOrder.HouseWorkLogs.List, { house_work_orders_id: id }).then((res) => { + WORKORDER_show_model.useModel.logsData.value = res == null ? void 0 : res.data; + }); + }, + toPageAddLogs() { + var _a, _b, _c, _d, _e, _f, _g, _h, _i; + common_vendor.index.navigateTo({ + url: `/WORKORDER/update/index?id=${(_c = (_b = (_a = WORKORDER_show_model.useModel) == null ? void 0 : _a.dataShow) == null ? void 0 : _b.value) == null ? void 0 : _c.id}&code=${(_f = (_e = (_d = WORKORDER_show_model.useModel) == null ? void 0 : _d.dataShow) == null ? void 0 : _e.value) == null ? void 0 : _f.code}&title=${(_i = (_h = (_g = WORKORDER_show_model.useModel) == null ? void 0 : _g.dataShow) == null ? void 0 : _h.value) == null ? void 0 : _i.title}` + }); + }, + handleCopyPhone(phone) { + if (phone) { + common_vendor.index.makePhoneCall({ + phoneNumber: phone + //仅为示例,并非真实的电话号码 + }); + } + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/WORKORDER/show/model.js b/dist/dev/mp-weixin/WORKORDER/show/model.js new file mode 100644 index 0000000..202cdbd --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/show/model.js @@ -0,0 +1,7 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const useModel = { + dataShow: common_vendor.ref({}), + logsData: common_vendor.ref([]) +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/WORKORDER/update/index.js b/dist/dev/mp-weixin/WORKORDER/update/index.js new file mode 100644 index 0000000..7b12aa9 --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/update/index.js @@ -0,0 +1,67 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const WORKORDER_update_method = require("./method.js"); +const WORKORDER_update_model = require("./model.js"); +const gen_Enums = require("../../gen/Enums.js"); +require("../../common/libraries/request.js"); +require("../../common/store/useWeAppAuthStore.js"); +require("../../gen/Apis.js"); +require("../../common/store/useWorkStore.js"); +require("../../common/libraries/apiLoading.js"); +require("../../common/libraries/naviHelper.js"); +if (!Array) { + const _easycom_hs_radio_cell_picker2 = common_vendor.resolveComponent("hs-radio-cell-picker"); + const _easycom_hs_cell_textarea2 = common_vendor.resolveComponent("hs-cell-textarea"); + const _easycom_hs_upload2 = common_vendor.resolveComponent("hs-upload"); + const _easycom_hs_footer2 = common_vendor.resolveComponent("hs-footer"); + (_easycom_hs_radio_cell_picker2 + _easycom_hs_cell_textarea2 + _easycom_hs_upload2 + _easycom_hs_footer2)(); +} +const _easycom_hs_radio_cell_picker = () => "../../components/hs-radio-cell-picker/hs-radio-cell-picker.js"; +const _easycom_hs_cell_textarea = () => "../../components/hs-cell-textarea/hs-cell-textarea.js"; +const _easycom_hs_upload = () => "../../components/hs-upload/hs-upload.js"; +const _easycom_hs_footer = () => "../../components/hs-footer/hs-footer.js"; +if (!Math) { + (_easycom_hs_radio_cell_picker + _easycom_hs_cell_textarea + _easycom_hs_upload + _easycom_hs_footer)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + common_vendor.onLoad((e) => { + var _a; + (_a = WORKORDER_update_method.method) == null ? void 0 : _a.init(e); + }); + return (_ctx, _cache) => { + var _a; + return { + a: common_vendor.o(($event) => common_vendor.unref(WORKORDER_update_model.useModel).formData.value.status = $event), + b: common_vendor.p({ + Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersStatusEnum), + title: "工单状态", + borderTop: true, + required: true, + valueModel: common_vendor.unref(WORKORDER_update_model.useModel).formData.value.status + }), + c: common_vendor.o(($event) => common_vendor.unref(WORKORDER_update_model.useModel).formData.value.description = $event), + d: common_vendor.p({ + borderTop: true, + title: "进度说明", + placeholder: "请输入进度说明", + valueModel: common_vendor.unref(WORKORDER_update_model.useModel).formData.value.description + }), + e: common_vendor.o(($event) => common_vendor.unref(WORKORDER_update_model.useModel).formData.value.attachments = $event), + f: common_vendor.p({ + borderTop: true, + title: "上传图片", + count: 6, + valueModel: common_vendor.unref(WORKORDER_update_model.useModel).formData.value.attachments + }), + g: common_vendor.o((_a = common_vendor.unref(WORKORDER_update_method.method)) == null ? void 0 : _a.handleSubmit), + h: common_vendor.p({ + btnParimaryName: "提交" + }) + }; + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/WORKORDER/update/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/WORKORDER/update/index.json b/dist/dev/mp-weixin/WORKORDER/update/index.json new file mode 100644 index 0000000..a5b4daf --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/update/index.json @@ -0,0 +1,9 @@ +{ + "navigationBarTitleText": "更新进度", + "usingComponents": { + "hs-radio-cell-picker": "../../components/hs-radio-cell-picker/hs-radio-cell-picker", + "hs-cell-textarea": "../../components/hs-cell-textarea/hs-cell-textarea", + "hs-upload": "../../components/hs-upload/hs-upload", + "hs-footer": "../../components/hs-footer/hs-footer" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/WORKORDER/update/index.wxml b/dist/dev/mp-weixin/WORKORDER/update/index.wxml new file mode 100644 index 0000000..0ef26ab --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/update/index.wxml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/dist/dev/mp-weixin/WORKORDER/update/index.wxss b/dist/dev/mp-weixin/WORKORDER/update/index.wxss new file mode 100644 index 0000000..1490af2 --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/update/index.wxss @@ -0,0 +1,8 @@ +page { + background-color: #f8f8f8; +} +.card_form { + background-color: #fff; + padding: 0 30rpx; + margin-bottom: 30rpx; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/WORKORDER/update/method.js b/dist/dev/mp-weixin/WORKORDER/update/method.js new file mode 100644 index 0000000..317b944 --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/update/method.js @@ -0,0 +1,47 @@ +"use strict"; +require("../../common/libraries/request.js"); +const common_store_useWeAppAuthStore = require("../../common/store/useWeAppAuthStore.js"); +require("../../common/store/useWorkStore.js"); +const WORKORDER_update_model = require("./model.js"); +const gen_Apis = require("../../gen/Apis.js"); +const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js"); +const common_libraries_naviHelper = require("../../common/libraries/naviHelper.js"); +common_store_useWeAppAuthStore.useWeAppAuthStore(); +const method = { + init(data) { + WORKORDER_update_model.useModel.formData.value = { + ...data, + house_work_orders_id: data == null ? void 0 : data.id + }; + }, + handleSubmit() { + var _a, _b, _c, _d, _e, _f, _g; + console.log("handleSubmit", WORKORDER_update_model.useModel.formData.value); + if (!WORKORDER_update_model.useModel.formData.value.status) { + return common_libraries_naviHelper.showToast("请先选择状态!"); + } + if (!WORKORDER_update_model.useModel.formData.value.description) { + return common_libraries_naviHelper.showToast("请输入备注说明/进度说明!"); + } + if (WORKORDER_update_model.useModel.formData.value.status === "Completed" && !((_a = WORKORDER_update_model.useModel.formData.value.attachments) == null ? void 0 : _a.length)) { + return common_libraries_naviHelper.showToast("请上传完工图片!"); + } + if (WORKORDER_update_model.useModel.formData.value.status === "Completed" && !WORKORDER_update_model.useModel.formData.value.is_fee) { + return common_libraries_naviHelper.showToast("请上选择是否产生费用!"); + } + if (WORKORDER_update_model.useModel.formData.value.is_fee === "1" && !((_d = (_c = (_b = WORKORDER_update_model.useModel) == null ? void 0 : _b.formData) == null ? void 0 : _c.value) == null ? void 0 : _d.amount)) { + return common_libraries_naviHelper.showToast("请输入费用金额!"); + } + if (WORKORDER_update_model.useModel.formData.value.is_fee === "1" && !((_g = (_f = (_e = WORKORDER_update_model.useModel) == null ? void 0 : _e.formData) == null ? void 0 : _f.value) == null ? void 0 : _g.company_project_receipt_accounts_id)) { + return common_libraries_naviHelper.showToast("请选择收款账号!"); + } + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.WorkOrder.HouseWorkLogs.Store, { + ...WORKORDER_update_model.useModel.formData.value, + is_fee: WORKORDER_update_model.useModel.formData.value.is_fee === "1" ? true : false + }).then((res) => { + common_libraries_naviHelper.showToastBack("提交成功!", 1, true); + console.log(res); + }); + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/WORKORDER/update/model.js b/dist/dev/mp-weixin/WORKORDER/update/model.js new file mode 100644 index 0000000..6840b75 --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/update/model.js @@ -0,0 +1,6 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const useModel = { + formData: common_vendor.ref({}) +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/app.js b/dist/dev/mp-weixin/app.js new file mode 100644 index 0000000..8b940ac --- /dev/null +++ b/dist/dev/mp-weixin/app.js @@ -0,0 +1,85 @@ +"use strict"; +Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); +const common_vendor = require("./common/vendor.js"); +require("./common/libraries/request.js"); +const common_store_useWeAppAuthStore = require("./common/store/useWeAppAuthStore.js"); +require("./common/store/useWorkStore.js"); +const common_libraries_updateManager = require("./common/libraries/updateManager.js"); +require("./gen/Apis.js"); +require("./common/libraries/apiLoading.js"); +if (!Math) { + "./pages/index/index.js"; + "./pages/loading.js"; + "./pages/login.js"; + "./pages/data_oard/index.js"; + "./pages/me/index.js"; + "./pages/public/asset_houses/index.js"; + "./WORKORDER/list/index.js"; + "./WORKORDER/update/index.js"; + "./WORKORDER/show/index.js"; + "./WORKORDER/add/index.js"; + "./ME/update/index.js"; + "./ME/feedback/index.js"; + "./ME/knowledge_qa/index.js"; + "./ME/knowledge_qa/show.js"; + "./ME/push_show/index.js"; + "./CUSTOMER/show/index.js"; + "./CUSTOMER/update/index.js"; + "./CUSTOMER/assets/index.js"; + "./CUSTOMER/bind_house/index.js"; + "./CUSTOMER/house_list/index.js"; + "./CUSTOMER/house_select/index.js"; + "./CUSTOMER/house_Identity/index.js"; + "./CUSTOMER/house_Identity/success.js"; + "./CUSTOMER/bind_house_form/index.js"; + "./CUSTOMER/bind_house_form/success.js"; + "./CUSTOMER/list_user/index.js"; + "./CUSTOMER/list_house/index.js"; + "./CUSTOMER/list_bill/index.js"; + "./BILL/outstanding_fee/index/index.js"; + "./BILL/record/payment/index.js"; + "./BILL/record/urge_payment/index.js"; + "./BILL/outstanding_fee/show/index.js"; + "./BILL/outstanding_fee/add/index.js"; + "./BILL/bill_details/index.js"; + "./BILL/information_template/index.js"; + "./BILL/poster/index.js"; + "./BILL/collection_record/index/index.js"; + "./BILL/collection_record/show/index.js"; + "./BILL/send_bill/index.js"; +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "App", + setup(__props) { + const auth = common_store_useWeAppAuthStore.useWeAppAuthStore(); + common_vendor.onLaunch(async () => { + const app = common_vendor.getCurrentInstance(); + await auth.login(app); + console.log("App Launch"); + common_libraries_updateManager.CheckUpdate(); + }); + common_vendor.onShow(async () => { + console.log("App Show"); + }); + common_vendor.onHide(() => { + console.log("App Hide"); + }); + return () => { + }; + } +}); +const App = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/App.vue"]]); +function createApp() { + const app = common_vendor.createSSRApp(App); + app.use(common_vendor.uviewPlus); + app.config.globalProperties.$onLaunched = new Promise((resolve) => { + app.config.globalProperties.$isResolve = resolve; + }); + app.use(common_vendor.createPinia()); + return { + app, + Pinia: common_vendor.Pinia + }; +} +createApp().app.mount("#app"); +exports.createApp = createApp; diff --git a/dist/dev/mp-weixin/app.json b/dist/dev/mp-weixin/app.json new file mode 100644 index 0000000..269274c --- /dev/null +++ b/dist/dev/mp-weixin/app.json @@ -0,0 +1,90 @@ +{ + "pages": [ + "pages/index/index", + "pages/loading", + "pages/login", + "pages/data_oard/index", + "pages/me/index", + "pages/public/asset_houses/index" + ], + "subPackages": [ + { + "root": "WORKORDER", + "pages": [ + "list/index", + "update/index", + "show/index", + "add/index" + ] + }, + { + "root": "ME", + "pages": [ + "update/index", + "feedback/index", + "knowledge_qa/index", + "knowledge_qa/show", + "push_show/index" + ] + }, + { + "root": "CUSTOMER", + "pages": [ + "show/index", + "update/index", + "assets/index", + "bind_house/index", + "house_list/index", + "house_select/index", + "house_Identity/index", + "house_Identity/success", + "bind_house_form/index", + "bind_house_form/success", + "list_user/index", + "list_house/index", + "list_bill/index" + ] + }, + { + "root": "BILL", + "pages": [ + "outstanding_fee/index/index", + "record/payment/index", + "record/urge_payment/index", + "outstanding_fee/show/index", + "outstanding_fee/add/index", + "bill_details/index", + "information_template/index", + "poster/index", + "collection_record/index/index", + "collection_record/show/index", + "send_bill/index" + ] + } + ], + "window": { + "navigationBarBackgroundColor": "#fff", + "navigationBarTextStyle": "black" + }, + "tabBar": { + "color": "#3D3D3D", + "selectedColor": "#3D3D3D", + "backgroundColor": "#ffffff", + "borderStyle": "black", + "list": [ + { + "pagePath": "pages/index/index", + "text": "首页", + "iconPath": "/static/tabbar/home.png", + "selectedIconPath": "/static/tabbar/home_active.png" + }, + { + "pagePath": "pages/me/index", + "text": "我的", + "iconPath": "/static/tabbar/me.png", + "selectedIconPath": "/static/tabbar/me_active.png" + } + ] + }, + "usingComponents": {} +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/app.wxss b/dist/dev/mp-weixin/app.wxss new file mode 100644 index 0000000..86c8a6a --- /dev/null +++ b/dist/dev/mp-weixin/app.wxss @@ -0,0 +1,3191 @@ +.u-line-1, .up-line-1 { + display: -webkit-box !important; + overflow: hidden; + text-overflow: ellipsis; + word-break: break-all; + -webkit-line-clamp: 1; + -webkit-box-orient: vertical !important; +} +.u-line-2, .up-line-2 { + display: -webkit-box !important; + overflow: hidden; + text-overflow: ellipsis; + word-break: break-all; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical !important; +} +.u-line-3, .up-line-3 { + display: -webkit-box !important; + overflow: hidden; + text-overflow: ellipsis; + word-break: break-all; + -webkit-line-clamp: 3; + -webkit-box-orient: vertical !important; +} +.u-line-4, .up-line-4 { + display: -webkit-box !important; + overflow: hidden; + text-overflow: ellipsis; + word-break: break-all; + -webkit-line-clamp: 4; + -webkit-box-orient: vertical !important; +} +.u-line-5, .up-line-5 { + display: -webkit-box !important; + overflow: hidden; + text-overflow: ellipsis; + word-break: break-all; + -webkit-line-clamp: 5; + -webkit-box-orient: vertical !important; +} +.u-line-6, .up-line-6 { + display: -webkit-box !important; + overflow: hidden; + text-overflow: ellipsis; + word-break: break-all; + -webkit-line-clamp: 6; + -webkit-box-orient: vertical !important; +} +.u-line-7, .up-line-7 { + display: -webkit-box !important; + overflow: hidden; + text-overflow: ellipsis; + word-break: break-all; + -webkit-line-clamp: 7; + -webkit-box-orient: vertical !important; +} +.u-line-8, .up-line-8 { + display: -webkit-box !important; + overflow: hidden; + text-overflow: ellipsis; + word-break: break-all; + -webkit-line-clamp: 8; + -webkit-box-orient: vertical !important; +} +.u-line-9, .up-line-9 { + display: -webkit-box !important; + overflow: hidden; + text-overflow: ellipsis; + word-break: break-all; + -webkit-line-clamp: 9; + -webkit-box-orient: vertical !important; +} +.u-line-10, .up-line-10 { + display: -webkit-box !important; + overflow: hidden; + text-overflow: ellipsis; + word-break: break-all; + -webkit-line-clamp: 10; + -webkit-box-orient: vertical !important; +} +.u-border, .up-border { + border-width: 0.5px !important; + border-color: #dadbde !important; + border-style: solid; +} +.u-border-top, .up-border-top { + border-top-width: 0.5px !important; + border-color: #dadbde !important; + border-top-style: solid; +} +.u-border-left, .up-border-left { + border-left-width: 0.5px !important; + border-color: #dadbde !important; + border-left-style: solid; +} +.u-border-right, .up-border-right { + border-right-width: 0.5px !important; + border-color: #dadbde !important; + border-right-style: solid; +} +.u-border-bottom, .up-border-bottom { + border-bottom-width: 0.5px !important; + border-color: #dadbde !important; + border-bottom-style: solid; +} +.u-border-top-bottom, .up-border-top-bottom { + border-top-width: 0.5px !important; + border-bottom-width: 0.5px !important; + border-color: #dadbde !important; + border-top-style: solid; + border-bottom-style: solid; +} +.u-reset-button, .up-reset-button { + padding: 0; + background-color: transparent; + font-size: inherit; + line-height: inherit; + color: inherit; +} +.u-reset-button::after, .up-reset-button::after { + border: none; +} +.u-hover-class, .up-hover-class { + opacity: 0.7; +} +.u-flex, .u-flex-row, .u-flex-x, .up-flex, .up-flex-row, .up-flex-x { + display: flex; + flex-direction: row; +} +.u-flex-y, .u-flex-column, .up-flex-y, .up-flex-column { + display: flex; + flex-direction: column; +} +.u-flex-x-center, .up-flex-x-center { + display: flex; + flex-direction: row; + justify-content: center; +} +.u-flex-xy-center, .up-flex-xy-center { + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; +} +.u-flex-y-center, .up-flex-y-center { + display: flex; + flex-direction: row; + align-items: center; +} +.u-flex-x-left, .up-flex-x-left { + display: flex; + flex-direction: row; +} +.u-flex-x-reverse, .u-flex-row-reverse, .up-flex-x-reverse, .up-flex-row-reverse { + flex-direction: row-reverse; +} +.u-flex-y-reverse, .u-flex-column-reverse, .up-flex-y-reverse, .up-flex-column-reverse { + flex-direction: column-reverse; +} +.u-flex.u-flex-reverse, .u-flex-row.u-flex-reverse, .u-flex-x.u-flex-reverse, .up-flex.up-flex-reverse, .up-flex-row.up-flex-reverse, .up-flex-x.up-flex-reverse { + flex-direction: row-reverse; +} +.u-flex-column.u-flex-reverse, .u-flex-y.u-flex-reverse, .up-flex-column.up-flex-reverse, .up-flex-y.up-flex-reverse { + flex-direction: column-reverse; +} +.u-flex-fill, .up-flex-fill { + flex: 1 1 auto; +} +.u-margin-top-auto, .u-m-t-auto, .up-margin-top-auto, .up-m-t-auto { + margin-top: auto !important; +} +.u-margin-right-auto, .u-m-r-auto, .up-margin-right-auto, .up-m-r-auto { + margin-right: auto !important; +} +.u-margin-bottom-auto, .u-m-b-auto, .up-margin-bottom-auto, .up-m-b-auto { + margin-bottom: auto !important; +} +.u-margin-left-auto, .u-m-l-auto, .up-margin-left-auto, .up-m-l-auto { + margin-left: auto !important; +} +.u-margin-center-auto, .u-m-c-auto, .up-margin-center-auto, .up-m-c-auto { + margin-left: auto !important; + margin-right: auto !important; +} +.u-margin-middle-auto, .u-m-m-auto, .up-margin-middle-auto, .up-m-m-auto { + margin-top: auto !important; + margin-bottom: auto !important; +} +.u-flex-wrap, .up-flex-wrap { + flex-wrap: wrap; +} +.u-flex-wrap-reverse, .up-flex-wrap-reverse { + flex-wrap: wrap-reverse; +} +.u-flex-start, .up-flex-start { + justify-content: flex-start; +} +.u-flex-center, .up-flex-center { + justify-content: center; +} +.u-flex-end, .up-flex-end { + justify-content: flex-end; +} +.u-flex-between, .up-flex-between { + justify-content: space-between; +} +.u-flex-around, .up-flex-around { + justify-content: space-around; +} +.u-flex-items-start, .up-flex-items-start { + align-items: flex-start; +} +.u-flex-items-center, .up-flex-items-center { + align-items: center; +} +.u-flex-items-end, .up-flex-items-end { + align-items: flex-end; +} +.u-flex-items-baseline, .up-flex-items-baseline { + align-items: baseline; +} +.u-flex-items-stretch, .up-flex-items-stretch { + align-items: stretch; +} +.u-flex-self-start, .up-flex-self-start { + align-self: flex-start; +} +.u-flex-self-center, .up-flex-self-center { + align-self: center; +} +.u-flex-self-end, .up-flex-self-end { + align-self: flex-end; +} +.u-flex-self-baseline, .up-flex-self-baseline { + align-self: baseline; +} +.u-flex-self-stretch, .up-flex-self-stretch { + align-self: stretch; +} +.u-flex-content-start, .up-flex-content-start { + align-content: flex-start; +} +.u-flex-content-center, .up-flex-content-center { + align-content: center; +} +.u-flex-content-end, .up-flex-content-end { + align-content: flex-end; +} +.u-flex-content-between, .up-flex-content-between { + align-content: space-between; +} +.u-flex-content-around, .up-flex-content-around { + align-content: space-around; +} +.u-flex-middle, .up-flex-middle { + justify-content: center; + align-items: center; + align-self: center; + align-content: center; +} +.u-flex-grow, .up-flex-grow { + flex-grow: 1; +} +.u-flex-shrink, .up-flex-shrink { + flex-shrink: 1; +} +.u-margin-0, .u-m-0, .up-margin-0, .up-m-0 { + margin: 0rpx !important; +} +.u-padding-0, .u-p-0, .up-padding-0, .up-p-0 { + padding: 0rpx !important; +} +.u-m-l-0, .up-m-l-0 { + margin-left: 0rpx !important; +} +.u-p-l-0, .up-p-l-0 { + padding-left: 0rpx !important; +} +.u-margin-left-0, .up-margin-left-0 { + margin-left: 0rpx !important; +} +.u-padding-left-0, .up-padding-left-0 { + padding-left: 0rpx !important; +} +.u-m-t-0, .up-m-t-0 { + margin-top: 0rpx !important; +} +.u-p-t-0, .up-p-t-0 { + padding-top: 0rpx !important; +} +.u-margin-top-0, .up-margin-top-0 { + margin-top: 0rpx !important; +} +.u-padding-top-0, .up-padding-top-0 { + padding-top: 0rpx !important; +} +.u-m-r-0, .up-m-r-0 { + margin-right: 0rpx !important; +} +.u-p-r-0, .up-p-r-0 { + padding-right: 0rpx !important; +} +.u-margin-right-0, .up-margin-right-0 { + margin-right: 0rpx !important; +} +.u-padding-right-0, .up-padding-right-0 { + padding-right: 0rpx !important; +} +.u-m-b-0, .up-m-b-0 { + margin-bottom: 0rpx !important; +} +.u-p-b-0, .up-p-b-0 { + padding-bottom: 0rpx !important; +} +.u-margin-bottom-0, .up-margin-bottom-0 { + margin-bottom: 0rpx !important; +} +.u-padding-bottom-0, .up-padding-bottom-0 { + padding-bottom: 0rpx !important; +} +.u-margin-2, .u-m-2, .up-margin-2, .up-m-2 { + margin: 2rpx !important; +} +.u-padding-2, .u-p-2, .up-padding-2, .up-p-2 { + padding: 2rpx !important; +} +.u-m-l-2, .up-m-l-2 { + margin-left: 2rpx !important; +} +.u-p-l-2, .up-p-l-2 { + padding-left: 2rpx !important; +} +.u-margin-left-2, .up-margin-left-2 { + margin-left: 2rpx !important; +} +.u-padding-left-2, .up-padding-left-2 { + padding-left: 2rpx !important; +} +.u-m-t-2, .up-m-t-2 { + margin-top: 2rpx !important; +} +.u-p-t-2, .up-p-t-2 { + padding-top: 2rpx !important; +} +.u-margin-top-2, .up-margin-top-2 { + margin-top: 2rpx !important; +} +.u-padding-top-2, .up-padding-top-2 { + padding-top: 2rpx !important; +} +.u-m-r-2, .up-m-r-2 { + margin-right: 2rpx !important; +} +.u-p-r-2, .up-p-r-2 { + padding-right: 2rpx !important; +} +.u-margin-right-2, .up-margin-right-2 { + margin-right: 2rpx !important; +} +.u-padding-right-2, .up-padding-right-2 { + padding-right: 2rpx !important; +} +.u-m-b-2, .up-m-b-2 { + margin-bottom: 2rpx !important; +} +.u-p-b-2, .up-p-b-2 { + padding-bottom: 2rpx !important; +} +.u-margin-bottom-2, .up-margin-bottom-2 { + margin-bottom: 2rpx !important; +} +.u-padding-bottom-2, .up-padding-bottom-2 { + padding-bottom: 2rpx !important; +} +.u-margin-4, .u-m-4, .up-margin-4, .up-m-4 { + margin: 4rpx !important; +} +.u-padding-4, .u-p-4, .up-padding-4, .up-p-4 { + padding: 4rpx !important; +} +.u-m-l-4, .up-m-l-4 { + margin-left: 4rpx !important; +} +.u-p-l-4, .up-p-l-4 { + padding-left: 4rpx !important; +} +.u-margin-left-4, .up-margin-left-4 { + margin-left: 4rpx !important; +} +.u-padding-left-4, .up-padding-left-4 { + padding-left: 4rpx !important; +} +.u-m-t-4, .up-m-t-4 { + margin-top: 4rpx !important; +} +.u-p-t-4, .up-p-t-4 { + padding-top: 4rpx !important; +} +.u-margin-top-4, .up-margin-top-4 { + margin-top: 4rpx !important; +} +.u-padding-top-4, .up-padding-top-4 { + padding-top: 4rpx !important; +} +.u-m-r-4, .up-m-r-4 { + margin-right: 4rpx !important; +} +.u-p-r-4, .up-p-r-4 { + padding-right: 4rpx !important; +} +.u-margin-right-4, .up-margin-right-4 { + margin-right: 4rpx !important; +} +.u-padding-right-4, .up-padding-right-4 { + padding-right: 4rpx !important; +} +.u-m-b-4, .up-m-b-4 { + margin-bottom: 4rpx !important; +} +.u-p-b-4, .up-p-b-4 { + padding-bottom: 4rpx !important; +} +.u-margin-bottom-4, .up-margin-bottom-4 { + margin-bottom: 4rpx !important; +} +.u-padding-bottom-4, .up-padding-bottom-4 { + padding-bottom: 4rpx !important; +} +.u-margin-5, .u-m-5, .up-margin-5, .up-m-5 { + margin: 5rpx !important; +} +.u-padding-5, .u-p-5, .up-padding-5, .up-p-5 { + padding: 5rpx !important; +} +.u-m-l-5, .up-m-l-5 { + margin-left: 5rpx !important; +} +.u-p-l-5, .up-p-l-5 { + padding-left: 5rpx !important; +} +.u-margin-left-5, .up-margin-left-5 { + margin-left: 5rpx !important; +} +.u-padding-left-5, .up-padding-left-5 { + padding-left: 5rpx !important; +} +.u-m-t-5, .up-m-t-5 { + margin-top: 5rpx !important; +} +.u-p-t-5, .up-p-t-5 { + padding-top: 5rpx !important; +} +.u-margin-top-5, .up-margin-top-5 { + margin-top: 5rpx !important; +} +.u-padding-top-5, .up-padding-top-5 { + padding-top: 5rpx !important; +} +.u-m-r-5, .up-m-r-5 { + margin-right: 5rpx !important; +} +.u-p-r-5, .up-p-r-5 { + padding-right: 5rpx !important; +} +.u-margin-right-5, .up-margin-right-5 { + margin-right: 5rpx !important; +} +.u-padding-right-5, .up-padding-right-5 { + padding-right: 5rpx !important; +} +.u-m-b-5, .up-m-b-5 { + margin-bottom: 5rpx !important; +} +.u-p-b-5, .up-p-b-5 { + padding-bottom: 5rpx !important; +} +.u-margin-bottom-5, .up-margin-bottom-5 { + margin-bottom: 5rpx !important; +} +.u-padding-bottom-5, .up-padding-bottom-5 { + padding-bottom: 5rpx !important; +} +.u-margin-6, .u-m-6, .up-margin-6, .up-m-6 { + margin: 6rpx !important; +} +.u-padding-6, .u-p-6, .up-padding-6, .up-p-6 { + padding: 6rpx !important; +} +.u-m-l-6, .up-m-l-6 { + margin-left: 6rpx !important; +} +.u-p-l-6, .up-p-l-6 { + padding-left: 6rpx !important; +} +.u-margin-left-6, .up-margin-left-6 { + margin-left: 6rpx !important; +} +.u-padding-left-6, .up-padding-left-6 { + padding-left: 6rpx !important; +} +.u-m-t-6, .up-m-t-6 { + margin-top: 6rpx !important; +} +.u-p-t-6, .up-p-t-6 { + padding-top: 6rpx !important; +} +.u-margin-top-6, .up-margin-top-6 { + margin-top: 6rpx !important; +} +.u-padding-top-6, .up-padding-top-6 { + padding-top: 6rpx !important; +} +.u-m-r-6, .up-m-r-6 { + margin-right: 6rpx !important; +} +.u-p-r-6, .up-p-r-6 { + padding-right: 6rpx !important; +} +.u-margin-right-6, .up-margin-right-6 { + margin-right: 6rpx !important; +} +.u-padding-right-6, .up-padding-right-6 { + padding-right: 6rpx !important; +} +.u-m-b-6, .up-m-b-6 { + margin-bottom: 6rpx !important; +} +.u-p-b-6, .up-p-b-6 { + padding-bottom: 6rpx !important; +} +.u-margin-bottom-6, .up-margin-bottom-6 { + margin-bottom: 6rpx !important; +} +.u-padding-bottom-6, .up-padding-bottom-6 { + padding-bottom: 6rpx !important; +} +.u-margin-8, .u-m-8, .up-margin-8, .up-m-8 { + margin: 8rpx !important; +} +.u-padding-8, .u-p-8, .up-padding-8, .up-p-8 { + padding: 8rpx !important; +} +.u-m-l-8, .up-m-l-8 { + margin-left: 8rpx !important; +} +.u-p-l-8, .up-p-l-8 { + padding-left: 8rpx !important; +} +.u-margin-left-8, .up-margin-left-8 { + margin-left: 8rpx !important; +} +.u-padding-left-8, .up-padding-left-8 { + padding-left: 8rpx !important; +} +.u-m-t-8, .up-m-t-8 { + margin-top: 8rpx !important; +} +.u-p-t-8, .up-p-t-8 { + padding-top: 8rpx !important; +} +.u-margin-top-8, .up-margin-top-8 { + margin-top: 8rpx !important; +} +.u-padding-top-8, .up-padding-top-8 { + padding-top: 8rpx !important; +} +.u-m-r-8, .up-m-r-8 { + margin-right: 8rpx !important; +} +.u-p-r-8, .up-p-r-8 { + padding-right: 8rpx !important; +} +.u-margin-right-8, .up-margin-right-8 { + margin-right: 8rpx !important; +} +.u-padding-right-8, .up-padding-right-8 { + padding-right: 8rpx !important; +} +.u-m-b-8, .up-m-b-8 { + margin-bottom: 8rpx !important; +} +.u-p-b-8, .up-p-b-8 { + padding-bottom: 8rpx !important; +} +.u-margin-bottom-8, .up-margin-bottom-8 { + margin-bottom: 8rpx !important; +} +.u-padding-bottom-8, .up-padding-bottom-8 { + padding-bottom: 8rpx !important; +} +.u-margin-10, .u-m-10, .up-margin-10, .up-m-10 { + margin: 10rpx !important; +} +.u-padding-10, .u-p-10, .up-padding-10, .up-p-10 { + padding: 10rpx !important; +} +.u-m-l-10, .up-m-l-10 { + margin-left: 10rpx !important; +} +.u-p-l-10, .up-p-l-10 { + padding-left: 10rpx !important; +} +.u-margin-left-10, .up-margin-left-10 { + margin-left: 10rpx !important; +} +.u-padding-left-10, .up-padding-left-10 { + padding-left: 10rpx !important; +} +.u-m-t-10, .up-m-t-10 { + margin-top: 10rpx !important; +} +.u-p-t-10, .up-p-t-10 { + padding-top: 10rpx !important; +} +.u-margin-top-10, .up-margin-top-10 { + margin-top: 10rpx !important; +} +.u-padding-top-10, .up-padding-top-10 { + padding-top: 10rpx !important; +} +.u-m-r-10, .up-m-r-10 { + margin-right: 10rpx !important; +} +.u-p-r-10, .up-p-r-10 { + padding-right: 10rpx !important; +} +.u-margin-right-10, .up-margin-right-10 { + margin-right: 10rpx !important; +} +.u-padding-right-10, .up-padding-right-10 { + padding-right: 10rpx !important; +} +.u-m-b-10, .up-m-b-10 { + margin-bottom: 10rpx !important; +} +.u-p-b-10, .up-p-b-10 { + padding-bottom: 10rpx !important; +} +.u-margin-bottom-10, .up-margin-bottom-10 { + margin-bottom: 10rpx !important; +} +.u-padding-bottom-10, .up-padding-bottom-10 { + padding-bottom: 10rpx !important; +} +.u-margin-12, .u-m-12, .up-margin-12, .up-m-12 { + margin: 12rpx !important; +} +.u-padding-12, .u-p-12, .up-padding-12, .up-p-12 { + padding: 12rpx !important; +} +.u-m-l-12, .up-m-l-12 { + margin-left: 12rpx !important; +} +.u-p-l-12, .up-p-l-12 { + padding-left: 12rpx !important; +} +.u-margin-left-12, .up-margin-left-12 { + margin-left: 12rpx !important; +} +.u-padding-left-12, .up-padding-left-12 { + padding-left: 12rpx !important; +} +.u-m-t-12, .up-m-t-12 { + margin-top: 12rpx !important; +} +.u-p-t-12, .up-p-t-12 { + padding-top: 12rpx !important; +} +.u-margin-top-12, .up-margin-top-12 { + margin-top: 12rpx !important; +} +.u-padding-top-12, .up-padding-top-12 { + padding-top: 12rpx !important; +} +.u-m-r-12, .up-m-r-12 { + margin-right: 12rpx !important; +} +.u-p-r-12, .up-p-r-12 { + padding-right: 12rpx !important; +} +.u-margin-right-12, .up-margin-right-12 { + margin-right: 12rpx !important; +} +.u-padding-right-12, .up-padding-right-12 { + padding-right: 12rpx !important; +} +.u-m-b-12, .up-m-b-12 { + margin-bottom: 12rpx !important; +} +.u-p-b-12, .up-p-b-12 { + padding-bottom: 12rpx !important; +} +.u-margin-bottom-12, .up-margin-bottom-12 { + margin-bottom: 12rpx !important; +} +.u-padding-bottom-12, .up-padding-bottom-12 { + padding-bottom: 12rpx !important; +} +.u-margin-14, .u-m-14, .up-margin-14, .up-m-14 { + margin: 14rpx !important; +} +.u-padding-14, .u-p-14, .up-padding-14, .up-p-14 { + padding: 14rpx !important; +} +.u-m-l-14, .up-m-l-14 { + margin-left: 14rpx !important; +} +.u-p-l-14, .up-p-l-14 { + padding-left: 14rpx !important; +} +.u-margin-left-14, .up-margin-left-14 { + margin-left: 14rpx !important; +} +.u-padding-left-14, .up-padding-left-14 { + padding-left: 14rpx !important; +} +.u-m-t-14, .up-m-t-14 { + margin-top: 14rpx !important; +} +.u-p-t-14, .up-p-t-14 { + padding-top: 14rpx !important; +} +.u-margin-top-14, .up-margin-top-14 { + margin-top: 14rpx !important; +} +.u-padding-top-14, .up-padding-top-14 { + padding-top: 14rpx !important; +} +.u-m-r-14, .up-m-r-14 { + margin-right: 14rpx !important; +} +.u-p-r-14, .up-p-r-14 { + padding-right: 14rpx !important; +} +.u-margin-right-14, .up-margin-right-14 { + margin-right: 14rpx !important; +} +.u-padding-right-14, .up-padding-right-14 { + padding-right: 14rpx !important; +} +.u-m-b-14, .up-m-b-14 { + margin-bottom: 14rpx !important; +} +.u-p-b-14, .up-p-b-14 { + padding-bottom: 14rpx !important; +} +.u-margin-bottom-14, .up-margin-bottom-14 { + margin-bottom: 14rpx !important; +} +.u-padding-bottom-14, .up-padding-bottom-14 { + padding-bottom: 14rpx !important; +} +.u-margin-15, .u-m-15, .up-margin-15, .up-m-15 { + margin: 15rpx !important; +} +.u-padding-15, .u-p-15, .up-padding-15, .up-p-15 { + padding: 15rpx !important; +} +.u-m-l-15, .up-m-l-15 { + margin-left: 15rpx !important; +} +.u-p-l-15, .up-p-l-15 { + padding-left: 15rpx !important; +} +.u-margin-left-15, .up-margin-left-15 { + margin-left: 15rpx !important; +} +.u-padding-left-15, .up-padding-left-15 { + padding-left: 15rpx !important; +} +.u-m-t-15, .up-m-t-15 { + margin-top: 15rpx !important; +} +.u-p-t-15, .up-p-t-15 { + padding-top: 15rpx !important; +} +.u-margin-top-15, .up-margin-top-15 { + margin-top: 15rpx !important; +} +.u-padding-top-15, .up-padding-top-15 { + padding-top: 15rpx !important; +} +.u-m-r-15, .up-m-r-15 { + margin-right: 15rpx !important; +} +.u-p-r-15, .up-p-r-15 { + padding-right: 15rpx !important; +} +.u-margin-right-15, .up-margin-right-15 { + margin-right: 15rpx !important; +} +.u-padding-right-15, .up-padding-right-15 { + padding-right: 15rpx !important; +} +.u-m-b-15, .up-m-b-15 { + margin-bottom: 15rpx !important; +} +.u-p-b-15, .up-p-b-15 { + padding-bottom: 15rpx !important; +} +.u-margin-bottom-15, .up-margin-bottom-15 { + margin-bottom: 15rpx !important; +} +.u-padding-bottom-15, .up-padding-bottom-15 { + padding-bottom: 15rpx !important; +} +.u-margin-16, .u-m-16, .up-margin-16, .up-m-16 { + margin: 16rpx !important; +} +.u-padding-16, .u-p-16, .up-padding-16, .up-p-16 { + padding: 16rpx !important; +} +.u-m-l-16, .up-m-l-16 { + margin-left: 16rpx !important; +} +.u-p-l-16, .up-p-l-16 { + padding-left: 16rpx !important; +} +.u-margin-left-16, .up-margin-left-16 { + margin-left: 16rpx !important; +} +.u-padding-left-16, .up-padding-left-16 { + padding-left: 16rpx !important; +} +.u-m-t-16, .up-m-t-16 { + margin-top: 16rpx !important; +} +.u-p-t-16, .up-p-t-16 { + padding-top: 16rpx !important; +} +.u-margin-top-16, .up-margin-top-16 { + margin-top: 16rpx !important; +} +.u-padding-top-16, .up-padding-top-16 { + padding-top: 16rpx !important; +} +.u-m-r-16, .up-m-r-16 { + margin-right: 16rpx !important; +} +.u-p-r-16, .up-p-r-16 { + padding-right: 16rpx !important; +} +.u-margin-right-16, .up-margin-right-16 { + margin-right: 16rpx !important; +} +.u-padding-right-16, .up-padding-right-16 { + padding-right: 16rpx !important; +} +.u-m-b-16, .up-m-b-16 { + margin-bottom: 16rpx !important; +} +.u-p-b-16, .up-p-b-16 { + padding-bottom: 16rpx !important; +} +.u-margin-bottom-16, .up-margin-bottom-16 { + margin-bottom: 16rpx !important; +} +.u-padding-bottom-16, .up-padding-bottom-16 { + padding-bottom: 16rpx !important; +} +.u-margin-18, .u-m-18, .up-margin-18, .up-m-18 { + margin: 18rpx !important; +} +.u-padding-18, .u-p-18, .up-padding-18, .up-p-18 { + padding: 18rpx !important; +} +.u-m-l-18, .up-m-l-18 { + margin-left: 18rpx !important; +} +.u-p-l-18, .up-p-l-18 { + padding-left: 18rpx !important; +} +.u-margin-left-18, .up-margin-left-18 { + margin-left: 18rpx !important; +} +.u-padding-left-18, .up-padding-left-18 { + padding-left: 18rpx !important; +} +.u-m-t-18, .up-m-t-18 { + margin-top: 18rpx !important; +} +.u-p-t-18, .up-p-t-18 { + padding-top: 18rpx !important; +} +.u-margin-top-18, .up-margin-top-18 { + margin-top: 18rpx !important; +} +.u-padding-top-18, .up-padding-top-18 { + padding-top: 18rpx !important; +} +.u-m-r-18, .up-m-r-18 { + margin-right: 18rpx !important; +} +.u-p-r-18, .up-p-r-18 { + padding-right: 18rpx !important; +} +.u-margin-right-18, .up-margin-right-18 { + margin-right: 18rpx !important; +} +.u-padding-right-18, .up-padding-right-18 { + padding-right: 18rpx !important; +} +.u-m-b-18, .up-m-b-18 { + margin-bottom: 18rpx !important; +} +.u-p-b-18, .up-p-b-18 { + padding-bottom: 18rpx !important; +} +.u-margin-bottom-18, .up-margin-bottom-18 { + margin-bottom: 18rpx !important; +} +.u-padding-bottom-18, .up-padding-bottom-18 { + padding-bottom: 18rpx !important; +} +.u-margin-20, .u-m-20, .up-margin-20, .up-m-20 { + margin: 20rpx !important; +} +.u-padding-20, .u-p-20, .up-padding-20, .up-p-20 { + padding: 20rpx !important; +} +.u-m-l-20, .up-m-l-20 { + margin-left: 20rpx !important; +} +.u-p-l-20, .up-p-l-20 { + padding-left: 20rpx !important; +} +.u-margin-left-20, .up-margin-left-20 { + margin-left: 20rpx !important; +} +.u-padding-left-20, .up-padding-left-20 { + padding-left: 20rpx !important; +} +.u-m-t-20, .up-m-t-20 { + margin-top: 20rpx !important; +} +.u-p-t-20, .up-p-t-20 { + padding-top: 20rpx !important; +} +.u-margin-top-20, .up-margin-top-20 { + margin-top: 20rpx !important; +} +.u-padding-top-20, .up-padding-top-20 { + padding-top: 20rpx !important; +} +.u-m-r-20, .up-m-r-20 { + margin-right: 20rpx !important; +} +.u-p-r-20, .up-p-r-20 { + padding-right: 20rpx !important; +} +.u-margin-right-20, .up-margin-right-20 { + margin-right: 20rpx !important; +} +.u-padding-right-20, .up-padding-right-20 { + padding-right: 20rpx !important; +} +.u-m-b-20, .up-m-b-20 { + margin-bottom: 20rpx !important; +} +.u-p-b-20, .up-p-b-20 { + padding-bottom: 20rpx !important; +} +.u-margin-bottom-20, .up-margin-bottom-20 { + margin-bottom: 20rpx !important; +} +.u-padding-bottom-20, .up-padding-bottom-20 { + padding-bottom: 20rpx !important; +} +.u-margin-22, .u-m-22, .up-margin-22, .up-m-22 { + margin: 22rpx !important; +} +.u-padding-22, .u-p-22, .up-padding-22, .up-p-22 { + padding: 22rpx !important; +} +.u-m-l-22, .up-m-l-22 { + margin-left: 22rpx !important; +} +.u-p-l-22, .up-p-l-22 { + padding-left: 22rpx !important; +} +.u-margin-left-22, .up-margin-left-22 { + margin-left: 22rpx !important; +} +.u-padding-left-22, .up-padding-left-22 { + padding-left: 22rpx !important; +} +.u-m-t-22, .up-m-t-22 { + margin-top: 22rpx !important; +} +.u-p-t-22, .up-p-t-22 { + padding-top: 22rpx !important; +} +.u-margin-top-22, .up-margin-top-22 { + margin-top: 22rpx !important; +} +.u-padding-top-22, .up-padding-top-22 { + padding-top: 22rpx !important; +} +.u-m-r-22, .up-m-r-22 { + margin-right: 22rpx !important; +} +.u-p-r-22, .up-p-r-22 { + padding-right: 22rpx !important; +} +.u-margin-right-22, .up-margin-right-22 { + margin-right: 22rpx !important; +} +.u-padding-right-22, .up-padding-right-22 { + padding-right: 22rpx !important; +} +.u-m-b-22, .up-m-b-22 { + margin-bottom: 22rpx !important; +} +.u-p-b-22, .up-p-b-22 { + padding-bottom: 22rpx !important; +} +.u-margin-bottom-22, .up-margin-bottom-22 { + margin-bottom: 22rpx !important; +} +.u-padding-bottom-22, .up-padding-bottom-22 { + padding-bottom: 22rpx !important; +} +.u-margin-24, .u-m-24, .up-margin-24, .up-m-24 { + margin: 24rpx !important; +} +.u-padding-24, .u-p-24, .up-padding-24, .up-p-24 { + padding: 24rpx !important; +} +.u-m-l-24, .up-m-l-24 { + margin-left: 24rpx !important; +} +.u-p-l-24, .up-p-l-24 { + padding-left: 24rpx !important; +} +.u-margin-left-24, .up-margin-left-24 { + margin-left: 24rpx !important; +} +.u-padding-left-24, .up-padding-left-24 { + padding-left: 24rpx !important; +} +.u-m-t-24, .up-m-t-24 { + margin-top: 24rpx !important; +} +.u-p-t-24, .up-p-t-24 { + padding-top: 24rpx !important; +} +.u-margin-top-24, .up-margin-top-24 { + margin-top: 24rpx !important; +} +.u-padding-top-24, .up-padding-top-24 { + padding-top: 24rpx !important; +} +.u-m-r-24, .up-m-r-24 { + margin-right: 24rpx !important; +} +.u-p-r-24, .up-p-r-24 { + padding-right: 24rpx !important; +} +.u-margin-right-24, .up-margin-right-24 { + margin-right: 24rpx !important; +} +.u-padding-right-24, .up-padding-right-24 { + padding-right: 24rpx !important; +} +.u-m-b-24, .up-m-b-24 { + margin-bottom: 24rpx !important; +} +.u-p-b-24, .up-p-b-24 { + padding-bottom: 24rpx !important; +} +.u-margin-bottom-24, .up-margin-bottom-24 { + margin-bottom: 24rpx !important; +} +.u-padding-bottom-24, .up-padding-bottom-24 { + padding-bottom: 24rpx !important; +} +.u-margin-25, .u-m-25, .up-margin-25, .up-m-25 { + margin: 25rpx !important; +} +.u-padding-25, .u-p-25, .up-padding-25, .up-p-25 { + padding: 25rpx !important; +} +.u-m-l-25, .up-m-l-25 { + margin-left: 25rpx !important; +} +.u-p-l-25, .up-p-l-25 { + padding-left: 25rpx !important; +} +.u-margin-left-25, .up-margin-left-25 { + margin-left: 25rpx !important; +} +.u-padding-left-25, .up-padding-left-25 { + padding-left: 25rpx !important; +} +.u-m-t-25, .up-m-t-25 { + margin-top: 25rpx !important; +} +.u-p-t-25, .up-p-t-25 { + padding-top: 25rpx !important; +} +.u-margin-top-25, .up-margin-top-25 { + margin-top: 25rpx !important; +} +.u-padding-top-25, .up-padding-top-25 { + padding-top: 25rpx !important; +} +.u-m-r-25, .up-m-r-25 { + margin-right: 25rpx !important; +} +.u-p-r-25, .up-p-r-25 { + padding-right: 25rpx !important; +} +.u-margin-right-25, .up-margin-right-25 { + margin-right: 25rpx !important; +} +.u-padding-right-25, .up-padding-right-25 { + padding-right: 25rpx !important; +} +.u-m-b-25, .up-m-b-25 { + margin-bottom: 25rpx !important; +} +.u-p-b-25, .up-p-b-25 { + padding-bottom: 25rpx !important; +} +.u-margin-bottom-25, .up-margin-bottom-25 { + margin-bottom: 25rpx !important; +} +.u-padding-bottom-25, .up-padding-bottom-25 { + padding-bottom: 25rpx !important; +} +.u-margin-26, .u-m-26, .up-margin-26, .up-m-26 { + margin: 26rpx !important; +} +.u-padding-26, .u-p-26, .up-padding-26, .up-p-26 { + padding: 26rpx !important; +} +.u-m-l-26, .up-m-l-26 { + margin-left: 26rpx !important; +} +.u-p-l-26, .up-p-l-26 { + padding-left: 26rpx !important; +} +.u-margin-left-26, .up-margin-left-26 { + margin-left: 26rpx !important; +} +.u-padding-left-26, .up-padding-left-26 { + padding-left: 26rpx !important; +} +.u-m-t-26, .up-m-t-26 { + margin-top: 26rpx !important; +} +.u-p-t-26, .up-p-t-26 { + padding-top: 26rpx !important; +} +.u-margin-top-26, .up-margin-top-26 { + margin-top: 26rpx !important; +} +.u-padding-top-26, .up-padding-top-26 { + padding-top: 26rpx !important; +} +.u-m-r-26, .up-m-r-26 { + margin-right: 26rpx !important; +} +.u-p-r-26, .up-p-r-26 { + padding-right: 26rpx !important; +} +.u-margin-right-26, .up-margin-right-26 { + margin-right: 26rpx !important; +} +.u-padding-right-26, .up-padding-right-26 { + padding-right: 26rpx !important; +} +.u-m-b-26, .up-m-b-26 { + margin-bottom: 26rpx !important; +} +.u-p-b-26, .up-p-b-26 { + padding-bottom: 26rpx !important; +} +.u-margin-bottom-26, .up-margin-bottom-26 { + margin-bottom: 26rpx !important; +} +.u-padding-bottom-26, .up-padding-bottom-26 { + padding-bottom: 26rpx !important; +} +.u-margin-28, .u-m-28, .up-margin-28, .up-m-28 { + margin: 28rpx !important; +} +.u-padding-28, .u-p-28, .up-padding-28, .up-p-28 { + padding: 28rpx !important; +} +.u-m-l-28, .up-m-l-28 { + margin-left: 28rpx !important; +} +.u-p-l-28, .up-p-l-28 { + padding-left: 28rpx !important; +} +.u-margin-left-28, .up-margin-left-28 { + margin-left: 28rpx !important; +} +.u-padding-left-28, .up-padding-left-28 { + padding-left: 28rpx !important; +} +.u-m-t-28, .up-m-t-28 { + margin-top: 28rpx !important; +} +.u-p-t-28, .up-p-t-28 { + padding-top: 28rpx !important; +} +.u-margin-top-28, .up-margin-top-28 { + margin-top: 28rpx !important; +} +.u-padding-top-28, .up-padding-top-28 { + padding-top: 28rpx !important; +} +.u-m-r-28, .up-m-r-28 { + margin-right: 28rpx !important; +} +.u-p-r-28, .up-p-r-28 { + padding-right: 28rpx !important; +} +.u-margin-right-28, .up-margin-right-28 { + margin-right: 28rpx !important; +} +.u-padding-right-28, .up-padding-right-28 { + padding-right: 28rpx !important; +} +.u-m-b-28, .up-m-b-28 { + margin-bottom: 28rpx !important; +} +.u-p-b-28, .up-p-b-28 { + padding-bottom: 28rpx !important; +} +.u-margin-bottom-28, .up-margin-bottom-28 { + margin-bottom: 28rpx !important; +} +.u-padding-bottom-28, .up-padding-bottom-28 { + padding-bottom: 28rpx !important; +} +.u-margin-30, .u-m-30, .up-margin-30, .up-m-30 { + margin: 30rpx !important; +} +.u-padding-30, .u-p-30, .up-padding-30, .up-p-30 { + padding: 30rpx !important; +} +.u-m-l-30, .up-m-l-30 { + margin-left: 30rpx !important; +} +.u-p-l-30, .up-p-l-30 { + padding-left: 30rpx !important; +} +.u-margin-left-30, .up-margin-left-30 { + margin-left: 30rpx !important; +} +.u-padding-left-30, .up-padding-left-30 { + padding-left: 30rpx !important; +} +.u-m-t-30, .up-m-t-30 { + margin-top: 30rpx !important; +} +.u-p-t-30, .up-p-t-30 { + padding-top: 30rpx !important; +} +.u-margin-top-30, .up-margin-top-30 { + margin-top: 30rpx !important; +} +.u-padding-top-30, .up-padding-top-30 { + padding-top: 30rpx !important; +} +.u-m-r-30, .up-m-r-30 { + margin-right: 30rpx !important; +} +.u-p-r-30, .up-p-r-30 { + padding-right: 30rpx !important; +} +.u-margin-right-30, .up-margin-right-30 { + margin-right: 30rpx !important; +} +.u-padding-right-30, .up-padding-right-30 { + padding-right: 30rpx !important; +} +.u-m-b-30, .up-m-b-30 { + margin-bottom: 30rpx !important; +} +.u-p-b-30, .up-p-b-30 { + padding-bottom: 30rpx !important; +} +.u-margin-bottom-30, .up-margin-bottom-30 { + margin-bottom: 30rpx !important; +} +.u-padding-bottom-30, .up-padding-bottom-30 { + padding-bottom: 30rpx !important; +} +.u-margin-32, .u-m-32, .up-margin-32, .up-m-32 { + margin: 32rpx !important; +} +.u-padding-32, .u-p-32, .up-padding-32, .up-p-32 { + padding: 32rpx !important; +} +.u-m-l-32, .up-m-l-32 { + margin-left: 32rpx !important; +} +.u-p-l-32, .up-p-l-32 { + padding-left: 32rpx !important; +} +.u-margin-left-32, .up-margin-left-32 { + margin-left: 32rpx !important; +} +.u-padding-left-32, .up-padding-left-32 { + padding-left: 32rpx !important; +} +.u-m-t-32, .up-m-t-32 { + margin-top: 32rpx !important; +} +.u-p-t-32, .up-p-t-32 { + padding-top: 32rpx !important; +} +.u-margin-top-32, .up-margin-top-32 { + margin-top: 32rpx !important; +} +.u-padding-top-32, .up-padding-top-32 { + padding-top: 32rpx !important; +} +.u-m-r-32, .up-m-r-32 { + margin-right: 32rpx !important; +} +.u-p-r-32, .up-p-r-32 { + padding-right: 32rpx !important; +} +.u-margin-right-32, .up-margin-right-32 { + margin-right: 32rpx !important; +} +.u-padding-right-32, .up-padding-right-32 { + padding-right: 32rpx !important; +} +.u-m-b-32, .up-m-b-32 { + margin-bottom: 32rpx !important; +} +.u-p-b-32, .up-p-b-32 { + padding-bottom: 32rpx !important; +} +.u-margin-bottom-32, .up-margin-bottom-32 { + margin-bottom: 32rpx !important; +} +.u-padding-bottom-32, .up-padding-bottom-32 { + padding-bottom: 32rpx !important; +} +.u-margin-34, .u-m-34, .up-margin-34, .up-m-34 { + margin: 34rpx !important; +} +.u-padding-34, .u-p-34, .up-padding-34, .up-p-34 { + padding: 34rpx !important; +} +.u-m-l-34, .up-m-l-34 { + margin-left: 34rpx !important; +} +.u-p-l-34, .up-p-l-34 { + padding-left: 34rpx !important; +} +.u-margin-left-34, .up-margin-left-34 { + margin-left: 34rpx !important; +} +.u-padding-left-34, .up-padding-left-34 { + padding-left: 34rpx !important; +} +.u-m-t-34, .up-m-t-34 { + margin-top: 34rpx !important; +} +.u-p-t-34, .up-p-t-34 { + padding-top: 34rpx !important; +} +.u-margin-top-34, .up-margin-top-34 { + margin-top: 34rpx !important; +} +.u-padding-top-34, .up-padding-top-34 { + padding-top: 34rpx !important; +} +.u-m-r-34, .up-m-r-34 { + margin-right: 34rpx !important; +} +.u-p-r-34, .up-p-r-34 { + padding-right: 34rpx !important; +} +.u-margin-right-34, .up-margin-right-34 { + margin-right: 34rpx !important; +} +.u-padding-right-34, .up-padding-right-34 { + padding-right: 34rpx !important; +} +.u-m-b-34, .up-m-b-34 { + margin-bottom: 34rpx !important; +} +.u-p-b-34, .up-p-b-34 { + padding-bottom: 34rpx !important; +} +.u-margin-bottom-34, .up-margin-bottom-34 { + margin-bottom: 34rpx !important; +} +.u-padding-bottom-34, .up-padding-bottom-34 { + padding-bottom: 34rpx !important; +} +.u-margin-35, .u-m-35, .up-margin-35, .up-m-35 { + margin: 35rpx !important; +} +.u-padding-35, .u-p-35, .up-padding-35, .up-p-35 { + padding: 35rpx !important; +} +.u-m-l-35, .up-m-l-35 { + margin-left: 35rpx !important; +} +.u-p-l-35, .up-p-l-35 { + padding-left: 35rpx !important; +} +.u-margin-left-35, .up-margin-left-35 { + margin-left: 35rpx !important; +} +.u-padding-left-35, .up-padding-left-35 { + padding-left: 35rpx !important; +} +.u-m-t-35, .up-m-t-35 { + margin-top: 35rpx !important; +} +.u-p-t-35, .up-p-t-35 { + padding-top: 35rpx !important; +} +.u-margin-top-35, .up-margin-top-35 { + margin-top: 35rpx !important; +} +.u-padding-top-35, .up-padding-top-35 { + padding-top: 35rpx !important; +} +.u-m-r-35, .up-m-r-35 { + margin-right: 35rpx !important; +} +.u-p-r-35, .up-p-r-35 { + padding-right: 35rpx !important; +} +.u-margin-right-35, .up-margin-right-35 { + margin-right: 35rpx !important; +} +.u-padding-right-35, .up-padding-right-35 { + padding-right: 35rpx !important; +} +.u-m-b-35, .up-m-b-35 { + margin-bottom: 35rpx !important; +} +.u-p-b-35, .up-p-b-35 { + padding-bottom: 35rpx !important; +} +.u-margin-bottom-35, .up-margin-bottom-35 { + margin-bottom: 35rpx !important; +} +.u-padding-bottom-35, .up-padding-bottom-35 { + padding-bottom: 35rpx !important; +} +.u-margin-36, .u-m-36, .up-margin-36, .up-m-36 { + margin: 36rpx !important; +} +.u-padding-36, .u-p-36, .up-padding-36, .up-p-36 { + padding: 36rpx !important; +} +.u-m-l-36, .up-m-l-36 { + margin-left: 36rpx !important; +} +.u-p-l-36, .up-p-l-36 { + padding-left: 36rpx !important; +} +.u-margin-left-36, .up-margin-left-36 { + margin-left: 36rpx !important; +} +.u-padding-left-36, .up-padding-left-36 { + padding-left: 36rpx !important; +} +.u-m-t-36, .up-m-t-36 { + margin-top: 36rpx !important; +} +.u-p-t-36, .up-p-t-36 { + padding-top: 36rpx !important; +} +.u-margin-top-36, .up-margin-top-36 { + margin-top: 36rpx !important; +} +.u-padding-top-36, .up-padding-top-36 { + padding-top: 36rpx !important; +} +.u-m-r-36, .up-m-r-36 { + margin-right: 36rpx !important; +} +.u-p-r-36, .up-p-r-36 { + padding-right: 36rpx !important; +} +.u-margin-right-36, .up-margin-right-36 { + margin-right: 36rpx !important; +} +.u-padding-right-36, .up-padding-right-36 { + padding-right: 36rpx !important; +} +.u-m-b-36, .up-m-b-36 { + margin-bottom: 36rpx !important; +} +.u-p-b-36, .up-p-b-36 { + padding-bottom: 36rpx !important; +} +.u-margin-bottom-36, .up-margin-bottom-36 { + margin-bottom: 36rpx !important; +} +.u-padding-bottom-36, .up-padding-bottom-36 { + padding-bottom: 36rpx !important; +} +.u-margin-38, .u-m-38, .up-margin-38, .up-m-38 { + margin: 38rpx !important; +} +.u-padding-38, .u-p-38, .up-padding-38, .up-p-38 { + padding: 38rpx !important; +} +.u-m-l-38, .up-m-l-38 { + margin-left: 38rpx !important; +} +.u-p-l-38, .up-p-l-38 { + padding-left: 38rpx !important; +} +.u-margin-left-38, .up-margin-left-38 { + margin-left: 38rpx !important; +} +.u-padding-left-38, .up-padding-left-38 { + padding-left: 38rpx !important; +} +.u-m-t-38, .up-m-t-38 { + margin-top: 38rpx !important; +} +.u-p-t-38, .up-p-t-38 { + padding-top: 38rpx !important; +} +.u-margin-top-38, .up-margin-top-38 { + margin-top: 38rpx !important; +} +.u-padding-top-38, .up-padding-top-38 { + padding-top: 38rpx !important; +} +.u-m-r-38, .up-m-r-38 { + margin-right: 38rpx !important; +} +.u-p-r-38, .up-p-r-38 { + padding-right: 38rpx !important; +} +.u-margin-right-38, .up-margin-right-38 { + margin-right: 38rpx !important; +} +.u-padding-right-38, .up-padding-right-38 { + padding-right: 38rpx !important; +} +.u-m-b-38, .up-m-b-38 { + margin-bottom: 38rpx !important; +} +.u-p-b-38, .up-p-b-38 { + padding-bottom: 38rpx !important; +} +.u-margin-bottom-38, .up-margin-bottom-38 { + margin-bottom: 38rpx !important; +} +.u-padding-bottom-38, .up-padding-bottom-38 { + padding-bottom: 38rpx !important; +} +.u-margin-40, .u-m-40, .up-margin-40, .up-m-40 { + margin: 40rpx !important; +} +.u-padding-40, .u-p-40, .up-padding-40, .up-p-40 { + padding: 40rpx !important; +} +.u-m-l-40, .up-m-l-40 { + margin-left: 40rpx !important; +} +.u-p-l-40, .up-p-l-40 { + padding-left: 40rpx !important; +} +.u-margin-left-40, .up-margin-left-40 { + margin-left: 40rpx !important; +} +.u-padding-left-40, .up-padding-left-40 { + padding-left: 40rpx !important; +} +.u-m-t-40, .up-m-t-40 { + margin-top: 40rpx !important; +} +.u-p-t-40, .up-p-t-40 { + padding-top: 40rpx !important; +} +.u-margin-top-40, .up-margin-top-40 { + margin-top: 40rpx !important; +} +.u-padding-top-40, .up-padding-top-40 { + padding-top: 40rpx !important; +} +.u-m-r-40, .up-m-r-40 { + margin-right: 40rpx !important; +} +.u-p-r-40, .up-p-r-40 { + padding-right: 40rpx !important; +} +.u-margin-right-40, .up-margin-right-40 { + margin-right: 40rpx !important; +} +.u-padding-right-40, .up-padding-right-40 { + padding-right: 40rpx !important; +} +.u-m-b-40, .up-m-b-40 { + margin-bottom: 40rpx !important; +} +.u-p-b-40, .up-p-b-40 { + padding-bottom: 40rpx !important; +} +.u-margin-bottom-40, .up-margin-bottom-40 { + margin-bottom: 40rpx !important; +} +.u-padding-bottom-40, .up-padding-bottom-40 { + padding-bottom: 40rpx !important; +} +.u-margin-42, .u-m-42, .up-margin-42, .up-m-42 { + margin: 42rpx !important; +} +.u-padding-42, .u-p-42, .up-padding-42, .up-p-42 { + padding: 42rpx !important; +} +.u-m-l-42, .up-m-l-42 { + margin-left: 42rpx !important; +} +.u-p-l-42, .up-p-l-42 { + padding-left: 42rpx !important; +} +.u-margin-left-42, .up-margin-left-42 { + margin-left: 42rpx !important; +} +.u-padding-left-42, .up-padding-left-42 { + padding-left: 42rpx !important; +} +.u-m-t-42, .up-m-t-42 { + margin-top: 42rpx !important; +} +.u-p-t-42, .up-p-t-42 { + padding-top: 42rpx !important; +} +.u-margin-top-42, .up-margin-top-42 { + margin-top: 42rpx !important; +} +.u-padding-top-42, .up-padding-top-42 { + padding-top: 42rpx !important; +} +.u-m-r-42, .up-m-r-42 { + margin-right: 42rpx !important; +} +.u-p-r-42, .up-p-r-42 { + padding-right: 42rpx !important; +} +.u-margin-right-42, .up-margin-right-42 { + margin-right: 42rpx !important; +} +.u-padding-right-42, .up-padding-right-42 { + padding-right: 42rpx !important; +} +.u-m-b-42, .up-m-b-42 { + margin-bottom: 42rpx !important; +} +.u-p-b-42, .up-p-b-42 { + padding-bottom: 42rpx !important; +} +.u-margin-bottom-42, .up-margin-bottom-42 { + margin-bottom: 42rpx !important; +} +.u-padding-bottom-42, .up-padding-bottom-42 { + padding-bottom: 42rpx !important; +} +.u-margin-44, .u-m-44, .up-margin-44, .up-m-44 { + margin: 44rpx !important; +} +.u-padding-44, .u-p-44, .up-padding-44, .up-p-44 { + padding: 44rpx !important; +} +.u-m-l-44, .up-m-l-44 { + margin-left: 44rpx !important; +} +.u-p-l-44, .up-p-l-44 { + padding-left: 44rpx !important; +} +.u-margin-left-44, .up-margin-left-44 { + margin-left: 44rpx !important; +} +.u-padding-left-44, .up-padding-left-44 { + padding-left: 44rpx !important; +} +.u-m-t-44, .up-m-t-44 { + margin-top: 44rpx !important; +} +.u-p-t-44, .up-p-t-44 { + padding-top: 44rpx !important; +} +.u-margin-top-44, .up-margin-top-44 { + margin-top: 44rpx !important; +} +.u-padding-top-44, .up-padding-top-44 { + padding-top: 44rpx !important; +} +.u-m-r-44, .up-m-r-44 { + margin-right: 44rpx !important; +} +.u-p-r-44, .up-p-r-44 { + padding-right: 44rpx !important; +} +.u-margin-right-44, .up-margin-right-44 { + margin-right: 44rpx !important; +} +.u-padding-right-44, .up-padding-right-44 { + padding-right: 44rpx !important; +} +.u-m-b-44, .up-m-b-44 { + margin-bottom: 44rpx !important; +} +.u-p-b-44, .up-p-b-44 { + padding-bottom: 44rpx !important; +} +.u-margin-bottom-44, .up-margin-bottom-44 { + margin-bottom: 44rpx !important; +} +.u-padding-bottom-44, .up-padding-bottom-44 { + padding-bottom: 44rpx !important; +} +.u-margin-45, .u-m-45, .up-margin-45, .up-m-45 { + margin: 45rpx !important; +} +.u-padding-45, .u-p-45, .up-padding-45, .up-p-45 { + padding: 45rpx !important; +} +.u-m-l-45, .up-m-l-45 { + margin-left: 45rpx !important; +} +.u-p-l-45, .up-p-l-45 { + padding-left: 45rpx !important; +} +.u-margin-left-45, .up-margin-left-45 { + margin-left: 45rpx !important; +} +.u-padding-left-45, .up-padding-left-45 { + padding-left: 45rpx !important; +} +.u-m-t-45, .up-m-t-45 { + margin-top: 45rpx !important; +} +.u-p-t-45, .up-p-t-45 { + padding-top: 45rpx !important; +} +.u-margin-top-45, .up-margin-top-45 { + margin-top: 45rpx !important; +} +.u-padding-top-45, .up-padding-top-45 { + padding-top: 45rpx !important; +} +.u-m-r-45, .up-m-r-45 { + margin-right: 45rpx !important; +} +.u-p-r-45, .up-p-r-45 { + padding-right: 45rpx !important; +} +.u-margin-right-45, .up-margin-right-45 { + margin-right: 45rpx !important; +} +.u-padding-right-45, .up-padding-right-45 { + padding-right: 45rpx !important; +} +.u-m-b-45, .up-m-b-45 { + margin-bottom: 45rpx !important; +} +.u-p-b-45, .up-p-b-45 { + padding-bottom: 45rpx !important; +} +.u-margin-bottom-45, .up-margin-bottom-45 { + margin-bottom: 45rpx !important; +} +.u-padding-bottom-45, .up-padding-bottom-45 { + padding-bottom: 45rpx !important; +} +.u-margin-46, .u-m-46, .up-margin-46, .up-m-46 { + margin: 46rpx !important; +} +.u-padding-46, .u-p-46, .up-padding-46, .up-p-46 { + padding: 46rpx !important; +} +.u-m-l-46, .up-m-l-46 { + margin-left: 46rpx !important; +} +.u-p-l-46, .up-p-l-46 { + padding-left: 46rpx !important; +} +.u-margin-left-46, .up-margin-left-46 { + margin-left: 46rpx !important; +} +.u-padding-left-46, .up-padding-left-46 { + padding-left: 46rpx !important; +} +.u-m-t-46, .up-m-t-46 { + margin-top: 46rpx !important; +} +.u-p-t-46, .up-p-t-46 { + padding-top: 46rpx !important; +} +.u-margin-top-46, .up-margin-top-46 { + margin-top: 46rpx !important; +} +.u-padding-top-46, .up-padding-top-46 { + padding-top: 46rpx !important; +} +.u-m-r-46, .up-m-r-46 { + margin-right: 46rpx !important; +} +.u-p-r-46, .up-p-r-46 { + padding-right: 46rpx !important; +} +.u-margin-right-46, .up-margin-right-46 { + margin-right: 46rpx !important; +} +.u-padding-right-46, .up-padding-right-46 { + padding-right: 46rpx !important; +} +.u-m-b-46, .up-m-b-46 { + margin-bottom: 46rpx !important; +} +.u-p-b-46, .up-p-b-46 { + padding-bottom: 46rpx !important; +} +.u-margin-bottom-46, .up-margin-bottom-46 { + margin-bottom: 46rpx !important; +} +.u-padding-bottom-46, .up-padding-bottom-46 { + padding-bottom: 46rpx !important; +} +.u-margin-48, .u-m-48, .up-margin-48, .up-m-48 { + margin: 48rpx !important; +} +.u-padding-48, .u-p-48, .up-padding-48, .up-p-48 { + padding: 48rpx !important; +} +.u-m-l-48, .up-m-l-48 { + margin-left: 48rpx !important; +} +.u-p-l-48, .up-p-l-48 { + padding-left: 48rpx !important; +} +.u-margin-left-48, .up-margin-left-48 { + margin-left: 48rpx !important; +} +.u-padding-left-48, .up-padding-left-48 { + padding-left: 48rpx !important; +} +.u-m-t-48, .up-m-t-48 { + margin-top: 48rpx !important; +} +.u-p-t-48, .up-p-t-48 { + padding-top: 48rpx !important; +} +.u-margin-top-48, .up-margin-top-48 { + margin-top: 48rpx !important; +} +.u-padding-top-48, .up-padding-top-48 { + padding-top: 48rpx !important; +} +.u-m-r-48, .up-m-r-48 { + margin-right: 48rpx !important; +} +.u-p-r-48, .up-p-r-48 { + padding-right: 48rpx !important; +} +.u-margin-right-48, .up-margin-right-48 { + margin-right: 48rpx !important; +} +.u-padding-right-48, .up-padding-right-48 { + padding-right: 48rpx !important; +} +.u-m-b-48, .up-m-b-48 { + margin-bottom: 48rpx !important; +} +.u-p-b-48, .up-p-b-48 { + padding-bottom: 48rpx !important; +} +.u-margin-bottom-48, .up-margin-bottom-48 { + margin-bottom: 48rpx !important; +} +.u-padding-bottom-48, .up-padding-bottom-48 { + padding-bottom: 48rpx !important; +} +.u-margin-50, .u-m-50, .up-margin-50, .up-m-50 { + margin: 50rpx !important; +} +.u-padding-50, .u-p-50, .up-padding-50, .up-p-50 { + padding: 50rpx !important; +} +.u-m-l-50, .up-m-l-50 { + margin-left: 50rpx !important; +} +.u-p-l-50, .up-p-l-50 { + padding-left: 50rpx !important; +} +.u-margin-left-50, .up-margin-left-50 { + margin-left: 50rpx !important; +} +.u-padding-left-50, .up-padding-left-50 { + padding-left: 50rpx !important; +} +.u-m-t-50, .up-m-t-50 { + margin-top: 50rpx !important; +} +.u-p-t-50, .up-p-t-50 { + padding-top: 50rpx !important; +} +.u-margin-top-50, .up-margin-top-50 { + margin-top: 50rpx !important; +} +.u-padding-top-50, .up-padding-top-50 { + padding-top: 50rpx !important; +} +.u-m-r-50, .up-m-r-50 { + margin-right: 50rpx !important; +} +.u-p-r-50, .up-p-r-50 { + padding-right: 50rpx !important; +} +.u-margin-right-50, .up-margin-right-50 { + margin-right: 50rpx !important; +} +.u-padding-right-50, .up-padding-right-50 { + padding-right: 50rpx !important; +} +.u-m-b-50, .up-m-b-50 { + margin-bottom: 50rpx !important; +} +.u-p-b-50, .up-p-b-50 { + padding-bottom: 50rpx !important; +} +.u-margin-bottom-50, .up-margin-bottom-50 { + margin-bottom: 50rpx !important; +} +.u-padding-bottom-50, .up-padding-bottom-50 { + padding-bottom: 50rpx !important; +} +.u-margin-52, .u-m-52, .up-margin-52, .up-m-52 { + margin: 52rpx !important; +} +.u-padding-52, .u-p-52, .up-padding-52, .up-p-52 { + padding: 52rpx !important; +} +.u-m-l-52, .up-m-l-52 { + margin-left: 52rpx !important; +} +.u-p-l-52, .up-p-l-52 { + padding-left: 52rpx !important; +} +.u-margin-left-52, .up-margin-left-52 { + margin-left: 52rpx !important; +} +.u-padding-left-52, .up-padding-left-52 { + padding-left: 52rpx !important; +} +.u-m-t-52, .up-m-t-52 { + margin-top: 52rpx !important; +} +.u-p-t-52, .up-p-t-52 { + padding-top: 52rpx !important; +} +.u-margin-top-52, .up-margin-top-52 { + margin-top: 52rpx !important; +} +.u-padding-top-52, .up-padding-top-52 { + padding-top: 52rpx !important; +} +.u-m-r-52, .up-m-r-52 { + margin-right: 52rpx !important; +} +.u-p-r-52, .up-p-r-52 { + padding-right: 52rpx !important; +} +.u-margin-right-52, .up-margin-right-52 { + margin-right: 52rpx !important; +} +.u-padding-right-52, .up-padding-right-52 { + padding-right: 52rpx !important; +} +.u-m-b-52, .up-m-b-52 { + margin-bottom: 52rpx !important; +} +.u-p-b-52, .up-p-b-52 { + padding-bottom: 52rpx !important; +} +.u-margin-bottom-52, .up-margin-bottom-52 { + margin-bottom: 52rpx !important; +} +.u-padding-bottom-52, .up-padding-bottom-52 { + padding-bottom: 52rpx !important; +} +.u-margin-54, .u-m-54, .up-margin-54, .up-m-54 { + margin: 54rpx !important; +} +.u-padding-54, .u-p-54, .up-padding-54, .up-p-54 { + padding: 54rpx !important; +} +.u-m-l-54, .up-m-l-54 { + margin-left: 54rpx !important; +} +.u-p-l-54, .up-p-l-54 { + padding-left: 54rpx !important; +} +.u-margin-left-54, .up-margin-left-54 { + margin-left: 54rpx !important; +} +.u-padding-left-54, .up-padding-left-54 { + padding-left: 54rpx !important; +} +.u-m-t-54, .up-m-t-54 { + margin-top: 54rpx !important; +} +.u-p-t-54, .up-p-t-54 { + padding-top: 54rpx !important; +} +.u-margin-top-54, .up-margin-top-54 { + margin-top: 54rpx !important; +} +.u-padding-top-54, .up-padding-top-54 { + padding-top: 54rpx !important; +} +.u-m-r-54, .up-m-r-54 { + margin-right: 54rpx !important; +} +.u-p-r-54, .up-p-r-54 { + padding-right: 54rpx !important; +} +.u-margin-right-54, .up-margin-right-54 { + margin-right: 54rpx !important; +} +.u-padding-right-54, .up-padding-right-54 { + padding-right: 54rpx !important; +} +.u-m-b-54, .up-m-b-54 { + margin-bottom: 54rpx !important; +} +.u-p-b-54, .up-p-b-54 { + padding-bottom: 54rpx !important; +} +.u-margin-bottom-54, .up-margin-bottom-54 { + margin-bottom: 54rpx !important; +} +.u-padding-bottom-54, .up-padding-bottom-54 { + padding-bottom: 54rpx !important; +} +.u-margin-55, .u-m-55, .up-margin-55, .up-m-55 { + margin: 55rpx !important; +} +.u-padding-55, .u-p-55, .up-padding-55, .up-p-55 { + padding: 55rpx !important; +} +.u-m-l-55, .up-m-l-55 { + margin-left: 55rpx !important; +} +.u-p-l-55, .up-p-l-55 { + padding-left: 55rpx !important; +} +.u-margin-left-55, .up-margin-left-55 { + margin-left: 55rpx !important; +} +.u-padding-left-55, .up-padding-left-55 { + padding-left: 55rpx !important; +} +.u-m-t-55, .up-m-t-55 { + margin-top: 55rpx !important; +} +.u-p-t-55, .up-p-t-55 { + padding-top: 55rpx !important; +} +.u-margin-top-55, .up-margin-top-55 { + margin-top: 55rpx !important; +} +.u-padding-top-55, .up-padding-top-55 { + padding-top: 55rpx !important; +} +.u-m-r-55, .up-m-r-55 { + margin-right: 55rpx !important; +} +.u-p-r-55, .up-p-r-55 { + padding-right: 55rpx !important; +} +.u-margin-right-55, .up-margin-right-55 { + margin-right: 55rpx !important; +} +.u-padding-right-55, .up-padding-right-55 { + padding-right: 55rpx !important; +} +.u-m-b-55, .up-m-b-55 { + margin-bottom: 55rpx !important; +} +.u-p-b-55, .up-p-b-55 { + padding-bottom: 55rpx !important; +} +.u-margin-bottom-55, .up-margin-bottom-55 { + margin-bottom: 55rpx !important; +} +.u-padding-bottom-55, .up-padding-bottom-55 { + padding-bottom: 55rpx !important; +} +.u-margin-56, .u-m-56, .up-margin-56, .up-m-56 { + margin: 56rpx !important; +} +.u-padding-56, .u-p-56, .up-padding-56, .up-p-56 { + padding: 56rpx !important; +} +.u-m-l-56, .up-m-l-56 { + margin-left: 56rpx !important; +} +.u-p-l-56, .up-p-l-56 { + padding-left: 56rpx !important; +} +.u-margin-left-56, .up-margin-left-56 { + margin-left: 56rpx !important; +} +.u-padding-left-56, .up-padding-left-56 { + padding-left: 56rpx !important; +} +.u-m-t-56, .up-m-t-56 { + margin-top: 56rpx !important; +} +.u-p-t-56, .up-p-t-56 { + padding-top: 56rpx !important; +} +.u-margin-top-56, .up-margin-top-56 { + margin-top: 56rpx !important; +} +.u-padding-top-56, .up-padding-top-56 { + padding-top: 56rpx !important; +} +.u-m-r-56, .up-m-r-56 { + margin-right: 56rpx !important; +} +.u-p-r-56, .up-p-r-56 { + padding-right: 56rpx !important; +} +.u-margin-right-56, .up-margin-right-56 { + margin-right: 56rpx !important; +} +.u-padding-right-56, .up-padding-right-56 { + padding-right: 56rpx !important; +} +.u-m-b-56, .up-m-b-56 { + margin-bottom: 56rpx !important; +} +.u-p-b-56, .up-p-b-56 { + padding-bottom: 56rpx !important; +} +.u-margin-bottom-56, .up-margin-bottom-56 { + margin-bottom: 56rpx !important; +} +.u-padding-bottom-56, .up-padding-bottom-56 { + padding-bottom: 56rpx !important; +} +.u-margin-58, .u-m-58, .up-margin-58, .up-m-58 { + margin: 58rpx !important; +} +.u-padding-58, .u-p-58, .up-padding-58, .up-p-58 { + padding: 58rpx !important; +} +.u-m-l-58, .up-m-l-58 { + margin-left: 58rpx !important; +} +.u-p-l-58, .up-p-l-58 { + padding-left: 58rpx !important; +} +.u-margin-left-58, .up-margin-left-58 { + margin-left: 58rpx !important; +} +.u-padding-left-58, .up-padding-left-58 { + padding-left: 58rpx !important; +} +.u-m-t-58, .up-m-t-58 { + margin-top: 58rpx !important; +} +.u-p-t-58, .up-p-t-58 { + padding-top: 58rpx !important; +} +.u-margin-top-58, .up-margin-top-58 { + margin-top: 58rpx !important; +} +.u-padding-top-58, .up-padding-top-58 { + padding-top: 58rpx !important; +} +.u-m-r-58, .up-m-r-58 { + margin-right: 58rpx !important; +} +.u-p-r-58, .up-p-r-58 { + padding-right: 58rpx !important; +} +.u-margin-right-58, .up-margin-right-58 { + margin-right: 58rpx !important; +} +.u-padding-right-58, .up-padding-right-58 { + padding-right: 58rpx !important; +} +.u-m-b-58, .up-m-b-58 { + margin-bottom: 58rpx !important; +} +.u-p-b-58, .up-p-b-58 { + padding-bottom: 58rpx !important; +} +.u-margin-bottom-58, .up-margin-bottom-58 { + margin-bottom: 58rpx !important; +} +.u-padding-bottom-58, .up-padding-bottom-58 { + padding-bottom: 58rpx !important; +} +.u-margin-60, .u-m-60, .up-margin-60, .up-m-60 { + margin: 60rpx !important; +} +.u-padding-60, .u-p-60, .up-padding-60, .up-p-60 { + padding: 60rpx !important; +} +.u-m-l-60, .up-m-l-60 { + margin-left: 60rpx !important; +} +.u-p-l-60, .up-p-l-60 { + padding-left: 60rpx !important; +} +.u-margin-left-60, .up-margin-left-60 { + margin-left: 60rpx !important; +} +.u-padding-left-60, .up-padding-left-60 { + padding-left: 60rpx !important; +} +.u-m-t-60, .up-m-t-60 { + margin-top: 60rpx !important; +} +.u-p-t-60, .up-p-t-60 { + padding-top: 60rpx !important; +} +.u-margin-top-60, .up-margin-top-60 { + margin-top: 60rpx !important; +} +.u-padding-top-60, .up-padding-top-60 { + padding-top: 60rpx !important; +} +.u-m-r-60, .up-m-r-60 { + margin-right: 60rpx !important; +} +.u-p-r-60, .up-p-r-60 { + padding-right: 60rpx !important; +} +.u-margin-right-60, .up-margin-right-60 { + margin-right: 60rpx !important; +} +.u-padding-right-60, .up-padding-right-60 { + padding-right: 60rpx !important; +} +.u-m-b-60, .up-m-b-60 { + margin-bottom: 60rpx !important; +} +.u-p-b-60, .up-p-b-60 { + padding-bottom: 60rpx !important; +} +.u-margin-bottom-60, .up-margin-bottom-60 { + margin-bottom: 60rpx !important; +} +.u-padding-bottom-60, .up-padding-bottom-60 { + padding-bottom: 60rpx !important; +} +.u-margin-62, .u-m-62, .up-margin-62, .up-m-62 { + margin: 62rpx !important; +} +.u-padding-62, .u-p-62, .up-padding-62, .up-p-62 { + padding: 62rpx !important; +} +.u-m-l-62, .up-m-l-62 { + margin-left: 62rpx !important; +} +.u-p-l-62, .up-p-l-62 { + padding-left: 62rpx !important; +} +.u-margin-left-62, .up-margin-left-62 { + margin-left: 62rpx !important; +} +.u-padding-left-62, .up-padding-left-62 { + padding-left: 62rpx !important; +} +.u-m-t-62, .up-m-t-62 { + margin-top: 62rpx !important; +} +.u-p-t-62, .up-p-t-62 { + padding-top: 62rpx !important; +} +.u-margin-top-62, .up-margin-top-62 { + margin-top: 62rpx !important; +} +.u-padding-top-62, .up-padding-top-62 { + padding-top: 62rpx !important; +} +.u-m-r-62, .up-m-r-62 { + margin-right: 62rpx !important; +} +.u-p-r-62, .up-p-r-62 { + padding-right: 62rpx !important; +} +.u-margin-right-62, .up-margin-right-62 { + margin-right: 62rpx !important; +} +.u-padding-right-62, .up-padding-right-62 { + padding-right: 62rpx !important; +} +.u-m-b-62, .up-m-b-62 { + margin-bottom: 62rpx !important; +} +.u-p-b-62, .up-p-b-62 { + padding-bottom: 62rpx !important; +} +.u-margin-bottom-62, .up-margin-bottom-62 { + margin-bottom: 62rpx !important; +} +.u-padding-bottom-62, .up-padding-bottom-62 { + padding-bottom: 62rpx !important; +} +.u-margin-64, .u-m-64, .up-margin-64, .up-m-64 { + margin: 64rpx !important; +} +.u-padding-64, .u-p-64, .up-padding-64, .up-p-64 { + padding: 64rpx !important; +} +.u-m-l-64, .up-m-l-64 { + margin-left: 64rpx !important; +} +.u-p-l-64, .up-p-l-64 { + padding-left: 64rpx !important; +} +.u-margin-left-64, .up-margin-left-64 { + margin-left: 64rpx !important; +} +.u-padding-left-64, .up-padding-left-64 { + padding-left: 64rpx !important; +} +.u-m-t-64, .up-m-t-64 { + margin-top: 64rpx !important; +} +.u-p-t-64, .up-p-t-64 { + padding-top: 64rpx !important; +} +.u-margin-top-64, .up-margin-top-64 { + margin-top: 64rpx !important; +} +.u-padding-top-64, .up-padding-top-64 { + padding-top: 64rpx !important; +} +.u-m-r-64, .up-m-r-64 { + margin-right: 64rpx !important; +} +.u-p-r-64, .up-p-r-64 { + padding-right: 64rpx !important; +} +.u-margin-right-64, .up-margin-right-64 { + margin-right: 64rpx !important; +} +.u-padding-right-64, .up-padding-right-64 { + padding-right: 64rpx !important; +} +.u-m-b-64, .up-m-b-64 { + margin-bottom: 64rpx !important; +} +.u-p-b-64, .up-p-b-64 { + padding-bottom: 64rpx !important; +} +.u-margin-bottom-64, .up-margin-bottom-64 { + margin-bottom: 64rpx !important; +} +.u-padding-bottom-64, .up-padding-bottom-64 { + padding-bottom: 64rpx !important; +} +.u-margin-65, .u-m-65, .up-margin-65, .up-m-65 { + margin: 65rpx !important; +} +.u-padding-65, .u-p-65, .up-padding-65, .up-p-65 { + padding: 65rpx !important; +} +.u-m-l-65, .up-m-l-65 { + margin-left: 65rpx !important; +} +.u-p-l-65, .up-p-l-65 { + padding-left: 65rpx !important; +} +.u-margin-left-65, .up-margin-left-65 { + margin-left: 65rpx !important; +} +.u-padding-left-65, .up-padding-left-65 { + padding-left: 65rpx !important; +} +.u-m-t-65, .up-m-t-65 { + margin-top: 65rpx !important; +} +.u-p-t-65, .up-p-t-65 { + padding-top: 65rpx !important; +} +.u-margin-top-65, .up-margin-top-65 { + margin-top: 65rpx !important; +} +.u-padding-top-65, .up-padding-top-65 { + padding-top: 65rpx !important; +} +.u-m-r-65, .up-m-r-65 { + margin-right: 65rpx !important; +} +.u-p-r-65, .up-p-r-65 { + padding-right: 65rpx !important; +} +.u-margin-right-65, .up-margin-right-65 { + margin-right: 65rpx !important; +} +.u-padding-right-65, .up-padding-right-65 { + padding-right: 65rpx !important; +} +.u-m-b-65, .up-m-b-65 { + margin-bottom: 65rpx !important; +} +.u-p-b-65, .up-p-b-65 { + padding-bottom: 65rpx !important; +} +.u-margin-bottom-65, .up-margin-bottom-65 { + margin-bottom: 65rpx !important; +} +.u-padding-bottom-65, .up-padding-bottom-65 { + padding-bottom: 65rpx !important; +} +.u-margin-66, .u-m-66, .up-margin-66, .up-m-66 { + margin: 66rpx !important; +} +.u-padding-66, .u-p-66, .up-padding-66, .up-p-66 { + padding: 66rpx !important; +} +.u-m-l-66, .up-m-l-66 { + margin-left: 66rpx !important; +} +.u-p-l-66, .up-p-l-66 { + padding-left: 66rpx !important; +} +.u-margin-left-66, .up-margin-left-66 { + margin-left: 66rpx !important; +} +.u-padding-left-66, .up-padding-left-66 { + padding-left: 66rpx !important; +} +.u-m-t-66, .up-m-t-66 { + margin-top: 66rpx !important; +} +.u-p-t-66, .up-p-t-66 { + padding-top: 66rpx !important; +} +.u-margin-top-66, .up-margin-top-66 { + margin-top: 66rpx !important; +} +.u-padding-top-66, .up-padding-top-66 { + padding-top: 66rpx !important; +} +.u-m-r-66, .up-m-r-66 { + margin-right: 66rpx !important; +} +.u-p-r-66, .up-p-r-66 { + padding-right: 66rpx !important; +} +.u-margin-right-66, .up-margin-right-66 { + margin-right: 66rpx !important; +} +.u-padding-right-66, .up-padding-right-66 { + padding-right: 66rpx !important; +} +.u-m-b-66, .up-m-b-66 { + margin-bottom: 66rpx !important; +} +.u-p-b-66, .up-p-b-66 { + padding-bottom: 66rpx !important; +} +.u-margin-bottom-66, .up-margin-bottom-66 { + margin-bottom: 66rpx !important; +} +.u-padding-bottom-66, .up-padding-bottom-66 { + padding-bottom: 66rpx !important; +} +.u-margin-68, .u-m-68, .up-margin-68, .up-m-68 { + margin: 68rpx !important; +} +.u-padding-68, .u-p-68, .up-padding-68, .up-p-68 { + padding: 68rpx !important; +} +.u-m-l-68, .up-m-l-68 { + margin-left: 68rpx !important; +} +.u-p-l-68, .up-p-l-68 { + padding-left: 68rpx !important; +} +.u-margin-left-68, .up-margin-left-68 { + margin-left: 68rpx !important; +} +.u-padding-left-68, .up-padding-left-68 { + padding-left: 68rpx !important; +} +.u-m-t-68, .up-m-t-68 { + margin-top: 68rpx !important; +} +.u-p-t-68, .up-p-t-68 { + padding-top: 68rpx !important; +} +.u-margin-top-68, .up-margin-top-68 { + margin-top: 68rpx !important; +} +.u-padding-top-68, .up-padding-top-68 { + padding-top: 68rpx !important; +} +.u-m-r-68, .up-m-r-68 { + margin-right: 68rpx !important; +} +.u-p-r-68, .up-p-r-68 { + padding-right: 68rpx !important; +} +.u-margin-right-68, .up-margin-right-68 { + margin-right: 68rpx !important; +} +.u-padding-right-68, .up-padding-right-68 { + padding-right: 68rpx !important; +} +.u-m-b-68, .up-m-b-68 { + margin-bottom: 68rpx !important; +} +.u-p-b-68, .up-p-b-68 { + padding-bottom: 68rpx !important; +} +.u-margin-bottom-68, .up-margin-bottom-68 { + margin-bottom: 68rpx !important; +} +.u-padding-bottom-68, .up-padding-bottom-68 { + padding-bottom: 68rpx !important; +} +.u-margin-70, .u-m-70, .up-margin-70, .up-m-70 { + margin: 70rpx !important; +} +.u-padding-70, .u-p-70, .up-padding-70, .up-p-70 { + padding: 70rpx !important; +} +.u-m-l-70, .up-m-l-70 { + margin-left: 70rpx !important; +} +.u-p-l-70, .up-p-l-70 { + padding-left: 70rpx !important; +} +.u-margin-left-70, .up-margin-left-70 { + margin-left: 70rpx !important; +} +.u-padding-left-70, .up-padding-left-70 { + padding-left: 70rpx !important; +} +.u-m-t-70, .up-m-t-70 { + margin-top: 70rpx !important; +} +.u-p-t-70, .up-p-t-70 { + padding-top: 70rpx !important; +} +.u-margin-top-70, .up-margin-top-70 { + margin-top: 70rpx !important; +} +.u-padding-top-70, .up-padding-top-70 { + padding-top: 70rpx !important; +} +.u-m-r-70, .up-m-r-70 { + margin-right: 70rpx !important; +} +.u-p-r-70, .up-p-r-70 { + padding-right: 70rpx !important; +} +.u-margin-right-70, .up-margin-right-70 { + margin-right: 70rpx !important; +} +.u-padding-right-70, .up-padding-right-70 { + padding-right: 70rpx !important; +} +.u-m-b-70, .up-m-b-70 { + margin-bottom: 70rpx !important; +} +.u-p-b-70, .up-p-b-70 { + padding-bottom: 70rpx !important; +} +.u-margin-bottom-70, .up-margin-bottom-70 { + margin-bottom: 70rpx !important; +} +.u-padding-bottom-70, .up-padding-bottom-70 { + padding-bottom: 70rpx !important; +} +.u-margin-72, .u-m-72, .up-margin-72, .up-m-72 { + margin: 72rpx !important; +} +.u-padding-72, .u-p-72, .up-padding-72, .up-p-72 { + padding: 72rpx !important; +} +.u-m-l-72, .up-m-l-72 { + margin-left: 72rpx !important; +} +.u-p-l-72, .up-p-l-72 { + padding-left: 72rpx !important; +} +.u-margin-left-72, .up-margin-left-72 { + margin-left: 72rpx !important; +} +.u-padding-left-72, .up-padding-left-72 { + padding-left: 72rpx !important; +} +.u-m-t-72, .up-m-t-72 { + margin-top: 72rpx !important; +} +.u-p-t-72, .up-p-t-72 { + padding-top: 72rpx !important; +} +.u-margin-top-72, .up-margin-top-72 { + margin-top: 72rpx !important; +} +.u-padding-top-72, .up-padding-top-72 { + padding-top: 72rpx !important; +} +.u-m-r-72, .up-m-r-72 { + margin-right: 72rpx !important; +} +.u-p-r-72, .up-p-r-72 { + padding-right: 72rpx !important; +} +.u-margin-right-72, .up-margin-right-72 { + margin-right: 72rpx !important; +} +.u-padding-right-72, .up-padding-right-72 { + padding-right: 72rpx !important; +} +.u-m-b-72, .up-m-b-72 { + margin-bottom: 72rpx !important; +} +.u-p-b-72, .up-p-b-72 { + padding-bottom: 72rpx !important; +} +.u-margin-bottom-72, .up-margin-bottom-72 { + margin-bottom: 72rpx !important; +} +.u-padding-bottom-72, .up-padding-bottom-72 { + padding-bottom: 72rpx !important; +} +.u-margin-74, .u-m-74, .up-margin-74, .up-m-74 { + margin: 74rpx !important; +} +.u-padding-74, .u-p-74, .up-padding-74, .up-p-74 { + padding: 74rpx !important; +} +.u-m-l-74, .up-m-l-74 { + margin-left: 74rpx !important; +} +.u-p-l-74, .up-p-l-74 { + padding-left: 74rpx !important; +} +.u-margin-left-74, .up-margin-left-74 { + margin-left: 74rpx !important; +} +.u-padding-left-74, .up-padding-left-74 { + padding-left: 74rpx !important; +} +.u-m-t-74, .up-m-t-74 { + margin-top: 74rpx !important; +} +.u-p-t-74, .up-p-t-74 { + padding-top: 74rpx !important; +} +.u-margin-top-74, .up-margin-top-74 { + margin-top: 74rpx !important; +} +.u-padding-top-74, .up-padding-top-74 { + padding-top: 74rpx !important; +} +.u-m-r-74, .up-m-r-74 { + margin-right: 74rpx !important; +} +.u-p-r-74, .up-p-r-74 { + padding-right: 74rpx !important; +} +.u-margin-right-74, .up-margin-right-74 { + margin-right: 74rpx !important; +} +.u-padding-right-74, .up-padding-right-74 { + padding-right: 74rpx !important; +} +.u-m-b-74, .up-m-b-74 { + margin-bottom: 74rpx !important; +} +.u-p-b-74, .up-p-b-74 { + padding-bottom: 74rpx !important; +} +.u-margin-bottom-74, .up-margin-bottom-74 { + margin-bottom: 74rpx !important; +} +.u-padding-bottom-74, .up-padding-bottom-74 { + padding-bottom: 74rpx !important; +} +.u-margin-75, .u-m-75, .up-margin-75, .up-m-75 { + margin: 75rpx !important; +} +.u-padding-75, .u-p-75, .up-padding-75, .up-p-75 { + padding: 75rpx !important; +} +.u-m-l-75, .up-m-l-75 { + margin-left: 75rpx !important; +} +.u-p-l-75, .up-p-l-75 { + padding-left: 75rpx !important; +} +.u-margin-left-75, .up-margin-left-75 { + margin-left: 75rpx !important; +} +.u-padding-left-75, .up-padding-left-75 { + padding-left: 75rpx !important; +} +.u-m-t-75, .up-m-t-75 { + margin-top: 75rpx !important; +} +.u-p-t-75, .up-p-t-75 { + padding-top: 75rpx !important; +} +.u-margin-top-75, .up-margin-top-75 { + margin-top: 75rpx !important; +} +.u-padding-top-75, .up-padding-top-75 { + padding-top: 75rpx !important; +} +.u-m-r-75, .up-m-r-75 { + margin-right: 75rpx !important; +} +.u-p-r-75, .up-p-r-75 { + padding-right: 75rpx !important; +} +.u-margin-right-75, .up-margin-right-75 { + margin-right: 75rpx !important; +} +.u-padding-right-75, .up-padding-right-75 { + padding-right: 75rpx !important; +} +.u-m-b-75, .up-m-b-75 { + margin-bottom: 75rpx !important; +} +.u-p-b-75, .up-p-b-75 { + padding-bottom: 75rpx !important; +} +.u-margin-bottom-75, .up-margin-bottom-75 { + margin-bottom: 75rpx !important; +} +.u-padding-bottom-75, .up-padding-bottom-75 { + padding-bottom: 75rpx !important; +} +.u-margin-76, .u-m-76, .up-margin-76, .up-m-76 { + margin: 76rpx !important; +} +.u-padding-76, .u-p-76, .up-padding-76, .up-p-76 { + padding: 76rpx !important; +} +.u-m-l-76, .up-m-l-76 { + margin-left: 76rpx !important; +} +.u-p-l-76, .up-p-l-76 { + padding-left: 76rpx !important; +} +.u-margin-left-76, .up-margin-left-76 { + margin-left: 76rpx !important; +} +.u-padding-left-76, .up-padding-left-76 { + padding-left: 76rpx !important; +} +.u-m-t-76, .up-m-t-76 { + margin-top: 76rpx !important; +} +.u-p-t-76, .up-p-t-76 { + padding-top: 76rpx !important; +} +.u-margin-top-76, .up-margin-top-76 { + margin-top: 76rpx !important; +} +.u-padding-top-76, .up-padding-top-76 { + padding-top: 76rpx !important; +} +.u-m-r-76, .up-m-r-76 { + margin-right: 76rpx !important; +} +.u-p-r-76, .up-p-r-76 { + padding-right: 76rpx !important; +} +.u-margin-right-76, .up-margin-right-76 { + margin-right: 76rpx !important; +} +.u-padding-right-76, .up-padding-right-76 { + padding-right: 76rpx !important; +} +.u-m-b-76, .up-m-b-76 { + margin-bottom: 76rpx !important; +} +.u-p-b-76, .up-p-b-76 { + padding-bottom: 76rpx !important; +} +.u-margin-bottom-76, .up-margin-bottom-76 { + margin-bottom: 76rpx !important; +} +.u-padding-bottom-76, .up-padding-bottom-76 { + padding-bottom: 76rpx !important; +} +.u-margin-78, .u-m-78, .up-margin-78, .up-m-78 { + margin: 78rpx !important; +} +.u-padding-78, .u-p-78, .up-padding-78, .up-p-78 { + padding: 78rpx !important; +} +.u-m-l-78, .up-m-l-78 { + margin-left: 78rpx !important; +} +.u-p-l-78, .up-p-l-78 { + padding-left: 78rpx !important; +} +.u-margin-left-78, .up-margin-left-78 { + margin-left: 78rpx !important; +} +.u-padding-left-78, .up-padding-left-78 { + padding-left: 78rpx !important; +} +.u-m-t-78, .up-m-t-78 { + margin-top: 78rpx !important; +} +.u-p-t-78, .up-p-t-78 { + padding-top: 78rpx !important; +} +.u-margin-top-78, .up-margin-top-78 { + margin-top: 78rpx !important; +} +.u-padding-top-78, .up-padding-top-78 { + padding-top: 78rpx !important; +} +.u-m-r-78, .up-m-r-78 { + margin-right: 78rpx !important; +} +.u-p-r-78, .up-p-r-78 { + padding-right: 78rpx !important; +} +.u-margin-right-78, .up-margin-right-78 { + margin-right: 78rpx !important; +} +.u-padding-right-78, .up-padding-right-78 { + padding-right: 78rpx !important; +} +.u-m-b-78, .up-m-b-78 { + margin-bottom: 78rpx !important; +} +.u-p-b-78, .up-p-b-78 { + padding-bottom: 78rpx !important; +} +.u-margin-bottom-78, .up-margin-bottom-78 { + margin-bottom: 78rpx !important; +} +.u-padding-bottom-78, .up-padding-bottom-78 { + padding-bottom: 78rpx !important; +} +.u-margin-80, .u-m-80, .up-margin-80, .up-m-80 { + margin: 80rpx !important; +} +.u-padding-80, .u-p-80, .up-padding-80, .up-p-80 { + padding: 80rpx !important; +} +.u-m-l-80, .up-m-l-80 { + margin-left: 80rpx !important; +} +.u-p-l-80, .up-p-l-80 { + padding-left: 80rpx !important; +} +.u-margin-left-80, .up-margin-left-80 { + margin-left: 80rpx !important; +} +.u-padding-left-80, .up-padding-left-80 { + padding-left: 80rpx !important; +} +.u-m-t-80, .up-m-t-80 { + margin-top: 80rpx !important; +} +.u-p-t-80, .up-p-t-80 { + padding-top: 80rpx !important; +} +.u-margin-top-80, .up-margin-top-80 { + margin-top: 80rpx !important; +} +.u-padding-top-80, .up-padding-top-80 { + padding-top: 80rpx !important; +} +.u-m-r-80, .up-m-r-80 { + margin-right: 80rpx !important; +} +.u-p-r-80, .up-p-r-80 { + padding-right: 80rpx !important; +} +.u-margin-right-80, .up-margin-right-80 { + margin-right: 80rpx !important; +} +.u-padding-right-80, .up-padding-right-80 { + padding-right: 80rpx !important; +} +.u-m-b-80, .up-m-b-80 { + margin-bottom: 80rpx !important; +} +.u-p-b-80, .up-p-b-80 { + padding-bottom: 80rpx !important; +} +.u-margin-bottom-80, .up-margin-bottom-80 { + margin-bottom: 80rpx !important; +} +.u-padding-bottom-80, .up-padding-bottom-80 { + padding-bottom: 80rpx !important; +} +.u-primary-light { + color: #ecf5ff; +} +.u-warning-light { + color: #fdf6ec; +} +.u-success-light { + color: #f5fff0; +} +.u-error-light { + color: #fef0f0; +} +.u-info-light { + color: #f4f4f5; +} +.u-primary-light-bg { + background-color: #ecf5ff; +} +.u-warning-light-bg { + background-color: #fdf6ec; +} +.u-success-light-bg { + background-color: #f5fff0; +} +.u-error-light-bg { + background-color: #fef0f0; +} +.u-info-light-bg { + background-color: #f4f4f5; +} +.u-primary-dark { + color: #398ade; +} +.u-warning-dark { + color: #f1a532; +} +.u-success-dark { + color: #53c21d; +} +.u-error-dark { + color: #e45656; +} +.u-info-dark { + color: #767a82; +} +.u-primary-dark-bg { + background-color: #398ade; +} +.u-warning-dark-bg { + background-color: #f1a532; +} +.u-success-dark-bg { + background-color: #53c21d; +} +.u-error-dark-bg { + background-color: #e45656; +} +.u-info-dark-bg { + background-color: #767a82; +} +.u-primary-disabled { + color: #9acafc; +} +.u-warning-disabled { + color: #f9d39b; +} +.u-success-disabled { + color: #a9e08f; +} +.u-error-disabled { + color: #f7b2b2; +} +.u-info-disabled { + color: #c4c6c9; +} +.u-primary { + color: #3c9cff; +} +.u-warning { + color: #f9ae3d; +} +.u-success { + color: #5ac725; +} +.u-error { + color: #f56c6c; +} +.u-info { + color: #909399; +} +.u-primary-bg { + background-color: #3c9cff; +} +.u-warning-bg { + background-color: #f9ae3d; +} +.u-success-bg { + background-color: #5ac725; +} +.u-error-bg { + background-color: #f56c6c; +} +.u-info-bg { + background-color: #909399; +} +.u-main-color { + color: #303133; +} +.u-content-color { + color: #606266; +} +.u-tips-color { + color: #909193; +} +.u-light-color { + color: #c0c4cc; +} +.up-primary-light { + color: #ecf5ff; +} +.up-warning-light { + color: #fdf6ec; +} +.up-success-light { + color: #f5fff0; +} +.up-error-light { + color: #fef0f0; +} +.up-info-light { + color: #f4f4f5; +} +.up-primary-light-bg { + background-color: #ecf5ff; +} +.up-warning-light-bg { + background-color: #fdf6ec; +} +.up-success-light-bg { + background-color: #f5fff0; +} +.up-error-light-bg { + background-color: #fef0f0; +} +.up-info-light-bg { + background-color: #f4f4f5; +} +.up-primary-dark { + color: #398ade; +} +.up-warning-dark { + color: #f1a532; +} +.up-success-dark { + color: #53c21d; +} +.up-error-dark { + color: #e45656; +} +.up-info-dark { + color: #767a82; +} +.up-primary-dark-bg { + background-color: #398ade; +} +.up-warning-dark-bg { + background-color: #f1a532; +} +.up-success-dark-bg { + background-color: #53c21d; +} +.up-error-dark-bg { + background-color: #e45656; +} +.up-info-dark-bg { + background-color: #767a82; +} +.up-primary-disabled { + color: #9acafc; +} +.up-warning-disabled { + color: #f9d39b; +} +.up-success-disabled { + color: #a9e08f; +} +.up-error-disabled { + color: #f7b2b2; +} +.up-info-disabled { + color: #c4c6c9; +} +.up-primary { + color: #3c9cff; +} +.up-warning { + color: #f9ae3d; +} +.up-success { + color: #5ac725; +} +.up-error { + color: #f56c6c; +} +.up-info { + color: #909399; +} +.up-primary-bg { + background-color: #3c9cff; +} +.up-warning-bg { + background-color: #f9ae3d; +} +.up-success-bg { + background-color: #5ac725; +} +.up-error-bg { + background-color: #f56c6c; +} +.up-info-bg { + background-color: #909399; +} +.up-main-color { + color: #303133; +} +.up-content-color { + color: #606266; +} +.up-tips-color { + color: #909193; +} +.up-light-color { + color: #c0c4cc; +} +.u-safe-area-inset-top, .up-safe-area-inset-top { + padding-top: 0; + padding-top: constant(safe-area-inset-top); + padding-top: env(safe-area-inset-top); +} +.u-safe-area-inset-right, .up-safe-area-inset-right { + padding-right: 0; + padding-right: constant(safe-area-inset-right); + padding-right: env(safe-area-inset-right); +} +.u-safe-area-inset-bottom, .up-safe-area-inset-bottom { + padding-bottom: 0; + padding-bottom: constant(safe-area-inset-bottom); + padding-bottom: env(safe-area-inset-bottom); +} +.u-safe-area-inset-left, .up-safe-area-inset-left { + padding-left: 0; + padding-left: constant(safe-area-inset-left); + padding-left: env(safe-area-inset-left); +} +::-webkit-scrollbar { + display: none; + width: 0 !important; + height: 0 !important; + -webkit-appearance: none; + background: transparent; +} +wx-swiper .wx-swiper-dot { + width: 10rpx !important; + height: 10rpx !important; +} +.min_price, .max_price { + width: 220rpx; + height: 70rpx; + padding: 0 !important; +} +.min_price_input, .max_price_input { + width: 100%; + height: 100%; + display: flex; + font-size: 24rpx; + justify-content: center; + background: #f5f5f5; + text-align: center !important; +}page{--status-bar-height:25px;--top-window-height:0px;--window-top:0px;--window-bottom:0px;--window-left:0px;--window-right:0px;--window-magin:0px}[data-c-h="true"]{display: none !important;} \ No newline at end of file diff --git a/dist/dev/mp-weixin/assets/IdCard1.49557d44.png b/dist/dev/mp-weixin/assets/IdCard1.49557d44.png new file mode 100644 index 0000000..143d008 Binary files /dev/null and b/dist/dev/mp-weixin/assets/IdCard1.49557d44.png differ diff --git a/dist/dev/mp-weixin/assets/IdCard2.c526cb3a.png b/dist/dev/mp-weixin/assets/IdCard2.c526cb3a.png new file mode 100644 index 0000000..00e387b Binary files /dev/null and b/dist/dev/mp-weixin/assets/IdCard2.c526cb3a.png differ diff --git a/dist/dev/mp-weixin/assets/empty_icon.c11822f3.svg b/dist/dev/mp-weixin/assets/empty_icon.c11822f3.svg new file mode 100644 index 0000000..cbb1cf6 --- /dev/null +++ b/dist/dev/mp-weixin/assets/empty_icon.c11822f3.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/dist/dev/mp-weixin/common/assets.js b/dist/dev/mp-weixin/common/assets.js new file mode 100644 index 0000000..a7ef4ac --- /dev/null +++ b/dist/dev/mp-weixin/common/assets.js @@ -0,0 +1,7 @@ +"use strict"; +const _imports_0$1 = "/assets/empty_icon.c11822f3.svg"; +const _imports_0 = "/assets/IdCard1.49557d44.png"; +const _imports_1 = "/assets/IdCard2.c526cb3a.png"; +exports._imports_0 = _imports_0$1; +exports._imports_0$1 = _imports_0; +exports._imports_1 = _imports_1; diff --git a/dist/dev/mp-weixin/common/components/cc-root-view/Loading.js b/dist/dev/mp-weixin/common/components/cc-root-view/Loading.js new file mode 100644 index 0000000..42296cb --- /dev/null +++ b/dist/dev/mp-weixin/common/components/cc-root-view/Loading.js @@ -0,0 +1,22 @@ +"use strict"; +const common_vendor = require("../../vendor.js"); +const _sfc_main = {}; +if (!Array) { + const _easycom_u_loading_icon2 = common_vendor.resolveComponent("u-loading-icon"); + _easycom_u_loading_icon2(); +} +const _easycom_u_loading_icon = () => "../../../node-modules/uview-plus/components/u-loading-icon/u-loading-icon.js"; +if (!Math) { + _easycom_u_loading_icon(); +} +function _sfc_render(_ctx, _cache) { + return { + a: common_vendor.p({ + text: "努力加载中", + size: "36", + vertical: true + }) + }; +} +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-bcef2396"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/common/components/cc-root-view/Loading.vue"]]); +wx.createComponent(Component); diff --git a/dist/dev/mp-weixin/common/components/cc-root-view/Loading.json b/dist/dev/mp-weixin/common/components/cc-root-view/Loading.json new file mode 100644 index 0000000..f9c966e --- /dev/null +++ b/dist/dev/mp-weixin/common/components/cc-root-view/Loading.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + "u-loading-icon": "../../../node-modules/uview-plus/components/u-loading-icon/u-loading-icon" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/common/components/cc-root-view/Loading.wxml b/dist/dev/mp-weixin/common/components/cc-root-view/Loading.wxml new file mode 100644 index 0000000..d9681fd --- /dev/null +++ b/dist/dev/mp-weixin/common/components/cc-root-view/Loading.wxml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/dist/dev/mp-weixin/common/components/cc-root-view/Loading.wxss b/dist/dev/mp-weixin/common/components/cc-root-view/Loading.wxss new file mode 100644 index 0000000..8a8b988 --- /dev/null +++ b/dist/dev/mp-weixin/common/components/cc-root-view/Loading.wxss @@ -0,0 +1,6 @@ +.loading-container.data-v-bcef2396 { + min-height: 100vh; + display: flex; + justify-content: center; + align-items: center; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/common/components/cc-root-view/NetworkError.js b/dist/dev/mp-weixin/common/components/cc-root-view/NetworkError.js new file mode 100644 index 0000000..9fc3930 --- /dev/null +++ b/dist/dev/mp-weixin/common/components/cc-root-view/NetworkError.js @@ -0,0 +1,54 @@ +"use strict"; +const common_vendor = require("../../vendor.js"); +const common_store_useWeAppAuthStore = require("../../store/useWeAppAuthStore.js"); +require("../../../gen/Apis.js"); +require("../../libraries/request.js"); +require("../../store/useWorkStore.js"); +require("../../libraries/apiLoading.js"); +if (!Array) { + const _easycom_up_button2 = common_vendor.resolveComponent("up-button"); + _easycom_up_button2(); +} +const _easycom_up_button = () => "../../../node-modules/uview-plus/components/u-button/u-button.js"; +if (!Math) { + _easycom_up_button(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "NetworkError", + setup(__props) { + common_store_useWeAppAuthStore.useWeAppAuthStore(); + const query = common_vendor.ref(); + common_vendor.onLoad((options) => { + query.value = options; + }); + function refreshPage() { + const pages = getCurrentPages(); + const currentPage = pages[pages.length - 1]; + console.log("currentPage", currentPage); + const path = currentPage.$page.fullPath; + if (currentPage.$page.options) { + const options = currentPage.$page.options; + const fullPath = `${path}?${Object.keys(options).map((key) => `${key}=${encodeURIComponent(options[key])}`).join("&")}`; + common_vendor.index.reLaunch({ + url: fullPath + }); + console.log(fullPath); + } else { + common_vendor.index.reLaunch({ + url: path + }); + } + } + return (_ctx, _cache) => { + return { + a: common_vendor.o(refreshPage), + b: common_vendor.p({ + type: "warning", + text: "点击重试" + }) + }; + }; + } +}); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-c150de06"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/common/components/cc-root-view/NetworkError.vue"]]); +wx.createComponent(Component); diff --git a/dist/dev/mp-weixin/common/components/cc-root-view/NetworkError.json b/dist/dev/mp-weixin/common/components/cc-root-view/NetworkError.json new file mode 100644 index 0000000..c364b52 --- /dev/null +++ b/dist/dev/mp-weixin/common/components/cc-root-view/NetworkError.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + "up-button": "../../../node-modules/uview-plus/components/u-button/u-button" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/common/components/cc-root-view/NetworkError.wxml b/dist/dev/mp-weixin/common/components/cc-root-view/NetworkError.wxml new file mode 100644 index 0000000..1d36318 --- /dev/null +++ b/dist/dev/mp-weixin/common/components/cc-root-view/NetworkError.wxml @@ -0,0 +1 @@ +网络可能发生错误 \ No newline at end of file diff --git a/dist/dev/mp-weixin/common/components/cc-root-view/NetworkError.wxss b/dist/dev/mp-weixin/common/components/cc-root-view/NetworkError.wxss new file mode 100644 index 0000000..565edb8 --- /dev/null +++ b/dist/dev/mp-weixin/common/components/cc-root-view/NetworkError.wxss @@ -0,0 +1,7 @@ +.errpr_page.data-v-c150de06 { + padding: 0 40rpx; + text-align: center; +} +.errpr_page .des.data-v-c150de06 { + padding: 40rpx 0; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/common/components/cc-root-view/cc-root-view.js b/dist/dev/mp-weixin/common/components/cc-root-view/cc-root-view.js new file mode 100644 index 0000000..64d3223 --- /dev/null +++ b/dist/dev/mp-weixin/common/components/cc-root-view/cc-root-view.js @@ -0,0 +1,38 @@ +"use strict"; +const common_vendor = require("../../vendor.js"); +require("../../libraries/request.js"); +const common_store_useWeAppAuthStore = require("../../store/useWeAppAuthStore.js"); +require("../../store/useWorkStore.js"); +require("../../libraries/userUserLogin.js"); +require("../../../gen/Apis.js"); +require("../../libraries/apiLoading.js"); +if (!Math) { + (Loading + NetworkError)(); +} +const Loading = () => "./Loading.js"; +const NetworkError = () => "./NetworkError.js"; +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "cc-root-view", + setup(__props) { + const auth = common_store_useWeAppAuthStore.useWeAppAuthStore(); + common_vendor.onLoad(async () => { + var _a; + console.log("cc-root-view onLoad 1", auth == null ? void 0 : auth.loading, auth == null ? void 0 : auth.hasError); + await ((_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$onLaunched); + console.log("cc-root-view onLoad 2"); + }); + common_vendor.onShow(async () => { + var _a; + await ((_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$onLaunched); + }); + return (_ctx, _cache) => { + return common_vendor.e({ + a: common_vendor.unref(auth).loading + }, common_vendor.unref(auth).loading ? {} : common_vendor.unref(auth).hasError ? {} : {}, { + b: common_vendor.unref(auth).hasError + }); + }; + } +}); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/common/components/cc-root-view/cc-root-view.vue"]]); +wx.createComponent(Component); diff --git a/dist/dev/mp-weixin/common/components/cc-root-view/cc-root-view.json b/dist/dev/mp-weixin/common/components/cc-root-view/cc-root-view.json new file mode 100644 index 0000000..7c921e5 --- /dev/null +++ b/dist/dev/mp-weixin/common/components/cc-root-view/cc-root-view.json @@ -0,0 +1,7 @@ +{ + "component": true, + "usingComponents": { + "loading": "./Loading", + "network-error": "./NetworkError" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/common/components/cc-root-view/cc-root-view.wxml b/dist/dev/mp-weixin/common/components/cc-root-view/cc-root-view.wxml new file mode 100644 index 0000000..670421a --- /dev/null +++ b/dist/dev/mp-weixin/common/components/cc-root-view/cc-root-view.wxml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/dist/dev/mp-weixin/common/components/cc-root-view/cc-root-view.wxss b/dist/dev/mp-weixin/common/components/cc-root-view/cc-root-view.wxss new file mode 100644 index 0000000..e69de29 diff --git a/dist/dev/mp-weixin/common/components/cc-scroll-loading/cc-scroll-loading.js b/dist/dev/mp-weixin/common/components/cc-scroll-loading/cc-scroll-loading.js new file mode 100644 index 0000000..f36d84c --- /dev/null +++ b/dist/dev/mp-weixin/common/components/cc-scroll-loading/cc-scroll-loading.js @@ -0,0 +1,80 @@ +"use strict"; +const common_vendor = require("../../vendor.js"); +if (!Array) { + const _easycom_hs_empty2 = common_vendor.resolveComponent("hs-empty"); + const _easycom_u_loading_icon2 = common_vendor.resolveComponent("u-loading-icon"); + (_easycom_hs_empty2 + _easycom_u_loading_icon2)(); +} +const _easycom_hs_empty = () => "../../../components/hs-empty/hs-empty.js"; +const _easycom_u_loading_icon = () => "../../../node-modules/uview-plus/components/u-loading-icon/u-loading-icon.js"; +if (!Math) { + (_easycom_hs_empty + _easycom_u_loading_icon)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "cc-scroll-loading", + props: { + meta: { + type: Object, + default: {} + // 参数 + }, + showLoad: { + type: Boolean, + default: true + // 是否显示加载状态 + } + }, + emits: ["load"], + setup(__props, { emit }) { + const props = __props; + const loadingStatusTest = common_vendor.ref(""); + const loadingStatus = common_vendor.ref(false); + const params = common_vendor.ref({ + page: 1, + perPage: 20 + }); + common_vendor.watch( + () => props == null ? void 0 : props.meta, + () => { + const { current_page, last_page } = props.meta; + const hasNextPage = current_page < last_page; + loadingStatus.value = hasNextPage; + loadingStatusTest.value = hasNextPage ? "上拉加载更多" : "已经到底啦~"; + console.log(props == null ? void 0 : props.meta, "meta数据变化"); + } + ); + const handleLoad = () => { + const { current_page, last_page } = props.meta; + const hasNextPage = current_page < last_page; + loadingStatus.value = hasNextPage; + loadingStatusTest.value = hasNextPage ? "上拉加载更多" : "已经到底啦~"; + if (hasNextPage) { + params.value.page = current_page + 1; + emit("load", params.value); + setTimeout(() => { + loadingStatus.value = false; + loadingStatusTest.value = ""; + }, 1e3); + } + }; + common_vendor.onReachBottom(handleLoad); + return (_ctx, _cache) => { + var _a, _b; + return common_vendor.e({ + a: !((_a = props.meta) == null ? void 0 : _a.total) + }, !((_b = props.meta) == null ? void 0 : _b.total) ? {} : common_vendor.e({ + b: common_vendor.p({ + text: loadingStatusTest.value, + mode: "circle", + size: "30rpx", + show: loadingStatus.value + }), + c: !loadingStatus.value + }, !loadingStatus.value ? { + d: common_vendor.t(loadingStatusTest.value) + } : {})); + }; + } +}); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-60d51fde"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/common/components/cc-scroll-loading/cc-scroll-loading.vue"]]); +wx.createComponent(Component); diff --git a/dist/dev/mp-weixin/common/components/cc-scroll-loading/cc-scroll-loading.json b/dist/dev/mp-weixin/common/components/cc-scroll-loading/cc-scroll-loading.json new file mode 100644 index 0000000..baa2616 --- /dev/null +++ b/dist/dev/mp-weixin/common/components/cc-scroll-loading/cc-scroll-loading.json @@ -0,0 +1,7 @@ +{ + "component": true, + "usingComponents": { + "hs-empty": "../../../components/hs-empty/hs-empty", + "u-loading-icon": "../../../node-modules/uview-plus/components/u-loading-icon/u-loading-icon" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/common/components/cc-scroll-loading/cc-scroll-loading.wxml b/dist/dev/mp-weixin/common/components/cc-scroll-loading/cc-scroll-loading.wxml new file mode 100644 index 0000000..5d13a4f --- /dev/null +++ b/dist/dev/mp-weixin/common/components/cc-scroll-loading/cc-scroll-loading.wxml @@ -0,0 +1 @@ +{{d}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/common/components/cc-scroll-loading/cc-scroll-loading.wxss b/dist/dev/mp-weixin/common/components/cc-scroll-loading/cc-scroll-loading.wxss new file mode 100644 index 0000000..19be005 --- /dev/null +++ b/dist/dev/mp-weixin/common/components/cc-scroll-loading/cc-scroll-loading.wxss @@ -0,0 +1,9 @@ +.scrollLoadingContainer.data-v-60d51fde { + padding: 30rpx 0; + font-size: 25rpx; + color: #999; +} +.showLoadingText.data-v-60d51fde { + text-align: center; + padding-bottom: 30rpx; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/common/index.js b/dist/dev/mp-weixin/common/index.js new file mode 100644 index 0000000..7130a80 --- /dev/null +++ b/dist/dev/mp-weixin/common/index.js @@ -0,0 +1,4 @@ +"use strict"; +require("./libraries/request.js"); +require("./store/useWeAppAuthStore.js"); +require("./store/useWorkStore.js"); diff --git a/dist/dev/mp-weixin/common/libraries/apiLoading.js b/dist/dev/mp-weixin/common/libraries/apiLoading.js new file mode 100644 index 0000000..8510273 --- /dev/null +++ b/dist/dev/mp-weixin/common/libraries/apiLoading.js @@ -0,0 +1,11 @@ +"use strict"; +const common_vendor = require("../vendor.js"); +async function getApiLoading(Apis, data) { + common_vendor.index.showLoading({ title: "加载中...", mask: true }); + let res = await Apis(data); + common_vendor.index.hideLoading(); + if (res.success) { + return res; + } +} +exports.getApiLoading = getApiLoading; diff --git a/dist/dev/mp-weixin/common/libraries/day.js b/dist/dev/mp-weixin/common/libraries/day.js new file mode 100644 index 0000000..e5a1aa8 --- /dev/null +++ b/dist/dev/mp-weixin/common/libraries/day.js @@ -0,0 +1,107 @@ +"use strict"; +const common_vendor = require("../vendor.js"); +common_vendor.dayjs.locale("zh-cn"); +common_vendor.dayjs.extend(common_vendor.relativeTime); +function ShowLastTime(time) { + return time ? common_vendor.dayjs(time).fromNow() : "-"; +} +function getTimeStatus(endTime) { + const now = common_vendor.dayjs(); + const end = common_vendor.dayjs(endTime); + if (end.isBefore(now)) { + const hours = now.diff(end, "hour"); + const minutes = now.diff(end, "minute") % 60; + let label = "已过期望处理时间:"; + if (hours > 0) { + label += `${hours}个小时`; + } + if (minutes > 0) { + label += `${minutes}分钟`; + } + return { + label, + status: "4", + color: "#EA0000" + }; + } else { + const diffHours = end.diff(now, "hour"); + const diffMinutes = end.diff(now, "minute") % 60; + let status; + let color; + if (diffHours >= 24) { + status = "1"; + color = "#24BC21"; + } else if (diffHours >= 2) { + status = "2"; + color = "#0082FA"; + } else { + status = "3"; + color = "#F97316"; + } + const days = Math.floor(diffHours / 24); + const hours = diffHours % 24; + let label = "上门时间还剩:"; + if (days > 0) { + label += `${days}天`; + } + if (hours > 0) { + label += `${hours}个小时`; + } + if (diffMinutes > 0) { + label += `${diffMinutes}分钟`; + } + return { + label, + status, + color + }; + } +} +function generateTimeSlots(externalDate = null) { + const baseDate = externalDate ? common_vendor.dayjs(externalDate) : common_vendor.dayjs(); + const now = externalDate ? common_vendor.dayjs(externalDate) : common_vendor.dayjs(); + const startHour = 8; + const endHour = 18; + const interval = 2; + const currentTime = now.valueOf(); + const slots = []; + let currentStart = startHour; + while (currentStart < endHour) { + const currentEnd = Math.min(currentStart + interval, endHour); + const startTime = baseDate.hour(currentStart).minute(0).second(0); + const endTime = baseDate.hour(currentEnd).minute(0).second(0); + const startStr = startTime.format("HH:mm"); + const endStr = endTime.format("HH:mm"); + const isCurrentPeriod = currentTime >= startTime.valueOf() && currentTime < endTime.valueOf(); + if (endTime.valueOf() > currentTime) { + slots.push({ + label: isCurrentPeriod ? "两个小时内" : `${startStr}-${endStr}`, + str: startStr, + end: endStr, + isCurrent: isCurrentPeriod, + date: baseDate.format("YYYY-MM-DD"), + startTimestamp: startTime.valueOf(), + endTimestamp: endTime.valueOf() + }); + } + currentStart = currentEnd; + } + console.log("slots", slots); + return slots; +} +function getCurrentHour() { + const now = new Date(); + const currentHour = now.getHours(); + const currentMinute = now.getMinutes(); + console.log(currentHour, currentMinute, "dayjs().hour()"); + return { currentHour, currentMinute }; +} +function getTheFutureDay(num = 1) { + const pastFifteenDays = common_vendor.dayjs().add(num, "day"); + return pastFifteenDays.format("YYYY-MM-DD"); +} +exports.ShowLastTime = ShowLastTime; +exports.generateTimeSlots = generateTimeSlots; +exports.getCurrentHour = getCurrentHour; +exports.getTheFutureDay = getTheFutureDay; +exports.getTimeStatus = getTimeStatus; diff --git a/dist/dev/mp-weixin/common/libraries/naviHelper.js b/dist/dev/mp-weixin/common/libraries/naviHelper.js new file mode 100644 index 0000000..bc2734e --- /dev/null +++ b/dist/dev/mp-weixin/common/libraries/naviHelper.js @@ -0,0 +1,33 @@ +"use strict"; +const common_vendor = require("../vendor.js"); +function goto(url) { + common_vendor.index.navigateTo({ url, fail: () => common_vendor.index.switchTab({ url }) }); +} +function showToastBack(label, delta = 1, back = true, backFun) { + common_vendor.index.showToast({ + title: label || "提交成功!", + duration: 1e3, + icon: "none", + success() { + if (back) { + setTimeout(() => { + common_vendor.index.navigateBack({ delta }); + }, 1e3); + } else { + setTimeout(() => { + return backFun == null ? void 0 : backFun(); + }, 1e3); + } + } + }); +} +function showToast(label) { + common_vendor.index.showToast({ + title: label || "提交成功!", + duration: 1e3, + icon: "none" + }); +} +exports.goto = goto; +exports.showToast = showToast; +exports.showToastBack = showToastBack; diff --git a/dist/dev/mp-weixin/common/libraries/public.js b/dist/dev/mp-weixin/common/libraries/public.js new file mode 100644 index 0000000..3918c74 --- /dev/null +++ b/dist/dev/mp-weixin/common/libraries/public.js @@ -0,0 +1 @@ +"use strict"; diff --git a/dist/dev/mp-weixin/common/libraries/request.js b/dist/dev/mp-weixin/common/libraries/request.js new file mode 100644 index 0000000..a3f4133 --- /dev/null +++ b/dist/dev/mp-weixin/common/libraries/request.js @@ -0,0 +1,50 @@ +"use strict"; +const common_vendor = require("../vendor.js"); +const common_store_useWeAppAuthStore = require("../store/useWeAppAuthStore.js"); +const http = new common_vendor.Request(); +http.setConfig((config) => { + config.baseURL = "https://weapp-api.linyikj.com.cn/api/"; + config.header = { + ...config.header + }; + return config; +}); +http.interceptors.request.use( + (config) => { + config.header = { + ...config.header, + Authorization: "Bearer " + common_vendor.index.getStorageSync("ACCESS_TOKEN_CUSTOMER") + }; + return config; + }, + (config) => { + return Promise.reject(config); + } +); +http.interceptors.response.use( + (response) => { + const data = response.data; + common_vendor.index.hideLoading(); + if (data.success !== true) { + if (data.errorCode === 10001) { + const auth = common_store_useWeAppAuthStore.useWeAppAuthStore(); + auth.loading = false; + common_vendor.index.showToast({ title: data.errorMessage, icon: "none" }); + } else { + common_vendor.index.showToast({ title: data.errorMessage, icon: "none" }); + } + return Promise.reject(response.data); + } + return response.data; + }, + (response) => { + console.log("error", response); + const auth = common_store_useWeAppAuthStore.useWeAppAuthStore(); + auth.loading = false; + return Promise.reject(response); + } +); +function request(url, data) { + return http.post(url, data.data); +} +exports.request = request; diff --git a/dist/dev/mp-weixin/common/libraries/sendWxWork.js b/dist/dev/mp-weixin/common/libraries/sendWxWork.js new file mode 100644 index 0000000..d444af1 --- /dev/null +++ b/dist/dev/mp-weixin/common/libraries/sendWxWork.js @@ -0,0 +1,183 @@ +"use strict"; +const common_vendor = require("../vendor.js"); +const common_libraries_naviHelper = require("./naviHelper.js"); +const common_libraries_apiLoading = require("./apiLoading.js"); +const gen_Apis = require("../../gen/Apis.js"); +function sendChatMessage(data) { + if (!(data == null ? void 0 : data.page)) { + return common_libraries_naviHelper.showToast("请设置跳转页面路径!"); + } + common_vendor.index.showLoading({ + title: "加载中...", + mask: true + }); + common_vendor.index.qy.sendChatMessage({ + msgtype: (data == null ? void 0 : data.msgtype) || "miniprogram", + //消息类型,必填 + enterChat: (data == null ? void 0 : data.enterChat) || false, + //为true时表示发送完成之后顺便进入会话,仅移动端3.1.10及以上版本支持该字段 + miniprogram: { + appid: "wx31500e871924b903", + //小程序的appid + title: (data == null ? void 0 : data.title) || "邀请你绑定房屋", + //小程序消息的title + imgUrl: (data == null ? void 0 : data.imgUrl) || "https://pay-prod-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01K58GCT5DGWKBSYH0G7118XT4.jpg", + //小程序消息的封面图 + page: data == null ? void 0 : data.page + //小程序消息打开后的路径,注意要以.html作为后缀,否则在微信端打开会提示找不到页面 + }, + success: function() { + common_vendor.index.hideLoading(); + common_libraries_naviHelper.showToast("发送成功!"); + }, + fail: function(err) { + console.log("sendChatMessage fail", err); + common_vendor.index.hideLoading(); + if ((err == null ? void 0 : err.errMsg) !== "qy__sendChatMessage:fail cancel") { + common_libraries_naviHelper.showToast((err == null ? void 0 : err.errMsg) || "当前操作,只能在企业微信上聊天工具栏操作"); + } + } + }); +} +function shareToExternalContact(data) { + if (!(data == null ? void 0 : data.page)) { + return common_libraries_naviHelper.showToast("请设置跳转页面路径!"); + } + common_vendor.index.showLoading({ + title: "加载中...", + mask: true + }); + common_vendor.index.qy.shareToExternalContact({ + externalUserIds: (data == null ? void 0 : data.externalUserIds) || [], + text: { + content: (data == null ? void 0 : data.title) || "待缴费账单" + // 文本内容 + }, + attachments: [ + { + msgtype: (data == null ? void 0 : data.msgtype) || "miniprogram", + //消息类型,必填 + miniprogram: { + appid: "wx31500e871924b903", + //小程序的appid + title: (data == null ? void 0 : data.title) || "待缴费账单", + //小程序消息的title + imgUrl: (data == null ? void 0 : data.imgUrl) || "https://pay-prod-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01K58GCT5DGWKBSYH0G7118XT4.jpg", + //小程序消息的封面图 + page: data == null ? void 0 : data.page + //小程序消息打开后的路径,注意要以.html作为后缀,否则在微信端打开会提示找不到页面 + } + } + ], + success: function() { + common_vendor.index.hideLoading(); + common_libraries_naviHelper.showToast("发送成功!"); + }, + fail: function(err) { + console.log("sendChatMessage fail", err); + common_vendor.index.hideLoading(); + if ((err == null ? void 0 : err.errMsg) !== "qy__sendChatMessage:fail cancel") { + common_libraries_naviHelper.showToast((err == null ? void 0 : err.errMsg) || "当前操作,只能在企业微信上聊天工具栏操作"); + } + } + }); +} +function navigateToMiniProgram(data) { + common_vendor.index.showLoading({ + title: "加载中", + mask: true + }); + common_vendor.index.navigateToMiniProgram({ + appId: "wx31500e871924b903", + path: (data == null ? void 0 : data.path) || "", + extraData: (data == null ? void 0 : data.extraData) || {}, + envVersion: (data == null ? void 0 : data.envVersion) || "release", + success() { + common_vendor.index.hideLoading(); + }, + fail() { + common_vendor.index.hideLoading(); + } + }); +} +function shareToExternalMoments(data, dataTasks) { + console.log("shareToExternalMoments", data, dataTasks); + common_vendor.wx$1.qy.shareToExternalMoments( + { + text: { + content: (data == null ? void 0 : data.content) || "" + // 文本内容 + }, + attachments: data == null ? void 0 : data.attachments, + success(res) { + if (res.errMsg == "qy__shareToExternalMoments:ok") { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Customer.CustomerMomentTasks.Store, dataTasks).then((res2) => { + common_libraries_naviHelper.showToast("发送成功!"); + console.log(res2); + }); + } + console.log("分享回调结果success", res); + } + }, + function(res) { + console.log("分享回调结果", res); + if (res.err_msg == "shareToExternalMoments:ok") { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Customer.CustomerMomentTasks.Store, dataTasks).then((res2) => { + common_libraries_naviHelper.showToast("发送成功!"); + console.log(res2); + }); + } + } + ); +} +function shareToExternalContactTask(data, dataTasks) { + common_vendor.index.qy.shareToExternalContact({ + text: { + content: (data == null ? void 0 : data.content) || "" + // 文本内容 + }, + attachments: (data == null ? void 0 : data.attachments) || [], + success: function(res) { + console.log("shareToExternalContact", res); + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Customer.CustomerMomentTasks.Store, dataTasks).then((res2) => { + common_libraries_naviHelper.showToast("发送成功!"); + console.log(res2); + }); + console.log("success", res); + }, + fail() { + console.log("fail"); + }, + complete() { + console.log("complete"); + } + }); +} +function shareToExternalChatTask(data, dataTasks) { + common_vendor.index.qy.shareToExternalChat({ + text: { + content: (data == null ? void 0 : data.content) || "" + // 文本内容 + }, + attachments: (data == null ? void 0 : data.attachments) || [], + success: function(res) { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Customer.CustomerMomentTasks.Store, dataTasks).then((res2) => { + common_libraries_naviHelper.showToast("发送成功!"); + console.log(res2); + }); + console.log("success", res); + }, + fail() { + console.log("fail"); + }, + complete() { + console.log("complete"); + } + }); +} +exports.navigateToMiniProgram = navigateToMiniProgram; +exports.sendChatMessage = sendChatMessage; +exports.shareToExternalChatTask = shareToExternalChatTask; +exports.shareToExternalContact = shareToExternalContact; +exports.shareToExternalContactTask = shareToExternalContactTask; +exports.shareToExternalMoments = shareToExternalMoments; diff --git a/dist/dev/mp-weixin/common/libraries/setTabBar.js b/dist/dev/mp-weixin/common/libraries/setTabBar.js new file mode 100644 index 0000000..8d1bfec --- /dev/null +++ b/dist/dev/mp-weixin/common/libraries/setTabBar.js @@ -0,0 +1,39 @@ +"use strict"; +require("../vendor.js"); +const common_libraries_updateMenu = require("./updateMenu.js"); +function setTabBarData(idx, type) { + const pages = getCurrentPages(); + const currentPage = pages[pages.length - 1]; + if (currentPage) { + const tabBar = currentPage.getTabBar ? currentPage.getTabBar() : null; + if (tabBar) { + if (idx === 3) { + if (type === "boss") { + tabBar.setData({ + selected: 3, + list: common_libraries_updateMenu.Merchant + }); + } + if (type === "investor") { + tabBar.setData({ + selected: 3, + list: common_libraries_updateMenu.Investor + }); + } + if (type === "agent") { + tabBar.setData({ + selected: 3, + list: common_libraries_updateMenu.Agent + }); + } + return; + } + tabBar.setData({ + selected: idx + }); + } else { + console.error("当前页面没有TabBar"); + } + } +} +exports.setTabBarData = setTabBarData; diff --git a/dist/dev/mp-weixin/common/libraries/updateManager.js b/dist/dev/mp-weixin/common/libraries/updateManager.js new file mode 100644 index 0000000..2410013 --- /dev/null +++ b/dist/dev/mp-weixin/common/libraries/updateManager.js @@ -0,0 +1,22 @@ +"use strict"; +const common_vendor = require("../vendor.js"); +function CheckUpdate() { + const updateManager = common_vendor.index.getUpdateManager(); + updateManager.onCheckForUpdate(function(res) { + console.log(res.hasUpdate); + }); + updateManager.onUpdateReady(function() { + common_vendor.index.showModal({ + title: "更新提示", + content: "新版本已经准备好,是否重启应用?", + success: function(res) { + if (res.confirm) { + updateManager.applyUpdate(); + } + } + }); + }); + updateManager.onUpdateFailed(function() { + }); +} +exports.CheckUpdate = CheckUpdate; diff --git a/dist/dev/mp-weixin/common/libraries/updateMenu.js b/dist/dev/mp-weixin/common/libraries/updateMenu.js new file mode 100644 index 0000000..4fe477f --- /dev/null +++ b/dist/dev/mp-weixin/common/libraries/updateMenu.js @@ -0,0 +1,85 @@ +"use strict"; +const Merchant = [ + //商户 + { + pagePath: "/pages/MERCHANT/index/index", + text: "首页", + iconPath: "/static/tabbar/home.png", + selectedIconPath: "/static/tabbar/homeAct.png" + }, + { + pagePath: "/pages/MERCHANT/pay/index", + text: "支付", + iconPath: "/static/tabbar/pay.png", + selectedIconPath: "/static/tabbar/payAct.png" + }, + { + pagePath: "/pages/MERCHANT/loans/index", + text: "支出", + iconPath: "/static/tabbar/expenses.png", + selectedIconPath: "/static/tabbar/expensesAct.png" + }, + { + pagePath: "/pages/Me/index", + text: "我的", + iconPath: "/static/tabbar/me.png", + selectedIconPath: "/static/tabbar/meAct.png" + } +]; +const Investor = [ + //投资方 + { + pagePath: "/pages/INVESTOR/index/index", + text: "首页", + iconPath: "/static/tabbar/home.png", + selectedIconPath: "/static/tabbar/homeAct.png" + }, + { + pagePath: "/pages/INVESTOR/loans/index", + text: "分期", + iconPath: "/static/tabbar/expenses.png", + selectedIconPath: "/static/tabbar/expensesAct.png" + }, + { + pagePath: "/pages/INVESTOR/stages_det/index", + text: "明细", + iconPath: "/static/tabbar/pay.png", + selectedIconPath: "/static/tabbar/payAct.png" + }, + { + pagePath: "/pages/Me/index", + text: "我的", + iconPath: "/static/tabbar/me.png", + selectedIconPath: "/static/tabbar/meAct.png" + } +]; +const Agent = [ + //代理商 + { + pagePath: "/pages/AGENT/index/index", + text: "首页", + iconPath: "/static/tabbar/home.png", + selectedIconPath: "/static/tabbar/homeAct.png" + }, + { + pagePath: "/pages/AGENT/pay/index", + text: "支付", + iconPath: "/static/tabbar/pay.png", + selectedIconPath: "/static/tabbar/payAct.png" + }, + { + pagePath: "/pages/AGENT/loans/index", + text: "支出", + iconPath: "/static/tabbar/expenses.png", + selectedIconPath: "/static/tabbar/expensesAct.png" + }, + { + pagePath: "/pages/Me/index", + text: "我的", + iconPath: "/static/tabbar/me.png", + selectedIconPath: "/static/tabbar/meAct.png" + } +]; +exports.Agent = Agent; +exports.Investor = Investor; +exports.Merchant = Merchant; diff --git a/dist/dev/mp-weixin/common/libraries/upload.js b/dist/dev/mp-weixin/common/libraries/upload.js new file mode 100644 index 0000000..c29bb49 --- /dev/null +++ b/dist/dev/mp-weixin/common/libraries/upload.js @@ -0,0 +1,239 @@ +"use strict"; +const common_vendor = require("../vendor.js"); +const gen_Apis = require("../../gen/Apis.js"); +const handlePreUpload = async (val) => { + const res = await gen_Apis.Apis.Login.Auth.PreUpload(val); + return res; +}; +const avatarUpload = (path) => { + return new Promise( + (resolve, reject) => { + if (path.startsWith("wxfile://")) { + const match = path.match(/[^\/\\]+(?=\.[^\.]+$|$)/); + const filePathName = match[0]; + const filePath = path; + handlePreUpload({ + filename: filePathName, + alc: "public-read" + }).then((res) => { + if (res == null ? void 0 : res.success) { + const wxfs = common_vendor.index.getFileSystemManager(); + wxfs.readFile({ + filePath, + complete(e) { + console.log("complete", e); + }, + success: function(fileRes) { + var _a, _b; + console.log(fileRes, "fileRes1"); + common_vendor.index.request({ + url: (_a = res == null ? void 0 : res.data) == null ? void 0 : _a.url, + method: "PUT", + header: { + ...(_b = res == null ? void 0 : res.data) == null ? void 0 : _b.headers, + "x-amz-acl": "public-read" + // 明确指定 ACL + }, + data: fileRes == null ? void 0 : fileRes.data, + success: function success(json) { + var _a2, _b2; + console.log(json, "resUpadte"); + if (json.statusCode !== 200) { + common_vendor.index.showToast({ + title: "上传失败", + icon: "none" + }); + reject(); + } else { + let data = { + url: (_b2 = (_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.url) == null ? void 0 : _b2.split("?")[0], + status: "done", + type: "image/png", + uid: Date.now() + }; + resolve([data]); + } + }, + fail: function fail() { + common_vendor.index.showToast({ + title: "上传失败", + icon: "none" + }); + reject(); + } + }); + console.log(fileRes, "fileRes"); + } + }); + } + }); + return; + } + common_vendor.index.downloadFile({ + url: path, + success: async (res) => { + if (res.statusCode === 200) { + const match = res.tempFilePath.match(/[^\/\\]+(?=\.[^\.]+$|$)/); + const filePath = res.tempFilePath; + const filePathName = match[0]; + console.log(match[0]); + handlePreUpload({ + filename: filePathName, + alc: "public-read" + }).then((res2) => { + if (res2 == null ? void 0 : res2.success) { + const wxfs = common_vendor.index.getFileSystemManager(); + wxfs.readFile({ + filePath, + complete(e) { + console.log("complete", e); + }, + success: function(fileRes) { + var _a, _b; + console.log(fileRes, "fileRes1"); + common_vendor.index.request({ + url: (_a = res2 == null ? void 0 : res2.data) == null ? void 0 : _a.url, + method: "PUT", + header: { + ...(_b = res2 == null ? void 0 : res2.data) == null ? void 0 : _b.headers, + "x-amz-acl": "public-read" + // 明确指定 ACL + }, + data: fileRes == null ? void 0 : fileRes.data, + success: function success(json) { + var _a2, _b2; + console.log(json, "resUpadte"); + if (json.statusCode !== 200) { + common_vendor.index.showToast({ + title: "上传失败", + icon: "none" + }); + reject(); + } else { + let data = { + url: (_b2 = (_a2 = res2 == null ? void 0 : res2.data) == null ? void 0 : _a2.url) == null ? void 0 : _b2.split("?")[0], + status: "done", + type: "image/png", + uid: Date.now() + }; + resolve([data]); + } + }, + fail: function fail() { + common_vendor.index.showToast({ + title: "上传失败", + icon: "none" + }); + reject(); + } + }); + console.log(fileRes, "fileRes"); + } + }); + } + }); + } else { + console.log(`文件下载失败,状态码: ${res.statusCode}`); + } + }, + fail: (err) => { + } + }); + } + ); +}; +const upload = (count = 1, size = 2, mediaType = ["image"]) => { + return new Promise( + (resolve, reject) => { + let ArrImgList = []; + common_vendor.index.chooseMedia({ + count: count > 9 ? 9 : count, + //默认9 + mediaType, + sizeType: ["original", "compressed"], + //可以指定是原图还是压缩图,默认二者都有 + success: async function(i) { + var _a; + console.log("filePath_i", i); + (_a = i.tempFiles) == null ? void 0 : _a.map((k) => { + console.log(k, "??kj"); + let match = k.tempFilePath.match(/[^\/\\]+(?=\.[^\.]+$|$)/); + const filePath = k.tempFilePath; + const extIndex = filePath.lastIndexOf("."); + const filePathName = match[0]; + extIndex >= -1 ? filePath.substr(extIndex + 1) : ""; + const img_size = i.tempFiles[0].size; + const max_size = 1024 * 1024 * (size || 2); + if (img_size > max_size) { + common_vendor.index.showToast({ + title: `${filePathName}文件大小不能超过${size}M`, + icon: "none" + }); + return false; + } + handlePreUpload({ + filename: filePathName, + alc: "public-read" + }).then((res) => { + if (res == null ? void 0 : res.success) { + const wxfs = common_vendor.index.getFileSystemManager(); + wxfs.readFile({ + filePath, + complete(e) { + console.log("complete", e); + }, + success: function(fileRes) { + var _a2, _b; + console.log(fileRes, "fileRes1"); + common_vendor.index.request({ + url: (_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.url, + method: "PUT", + header: { + ...(_b = res == null ? void 0 : res.data) == null ? void 0 : _b.headers, + "x-amz-acl": "public-read" + // 明确指定 ACL + }, + data: fileRes == null ? void 0 : fileRes.data, + success: function success(json) { + var _a3, _b2; + console.log(json, "resUpadte"); + if (json.statusCode !== 200) { + common_vendor.index.showToast({ + title: "上传失败", + icon: "none" + }); + reject(); + } else { + const timestamp = Date.now(); + let data = { + url: (_b2 = (_a3 = res == null ? void 0 : res.data) == null ? void 0 : _a3.url) == null ? void 0 : _b2.split("?")[0], + status: "done", + type: `${k == null ? void 0 : k.fileType}/${filePath.split(".")[1]}`, + uid: timestamp, + size: k == null ? void 0 : k.size + }; + ArrImgList == null ? void 0 : ArrImgList.push(data); + resolve(ArrImgList); + } + }, + fail: function fail() { + common_vendor.index.showToast({ + title: "上传失败", + icon: "none" + }); + reject(); + } + }); + console.log(fileRes, "fileRes"); + } + }); + } + }); + }); + } + }); + } + ); +}; +exports.avatarUpload = avatarUpload; +exports.upload = upload; diff --git a/dist/dev/mp-weixin/common/libraries/userUserLogin.js b/dist/dev/mp-weixin/common/libraries/userUserLogin.js new file mode 100644 index 0000000..b3114b9 --- /dev/null +++ b/dist/dev/mp-weixin/common/libraries/userUserLogin.js @@ -0,0 +1,50 @@ +"use strict"; +const common_vendor = require("../vendor.js"); +require("./request.js"); +const common_store_useWeAppAuthStore = require("../store/useWeAppAuthStore.js"); +require("../store/useWorkStore.js"); +const auth = common_store_useWeAppAuthStore.useWeAppAuthStore(); +const getUser = { + onBindPhone() { + var _a; + console.log("auth?.userInfo:", auth == null ? void 0 : auth.data); + if (!((_a = auth == null ? void 0 : auth.data) == null ? void 0 : _a.user)) { + common_vendor.index.showModal({ + title: "登录", + content: "请先登录体验更多功能!", + success: function(res) { + if (res.confirm) { + common_vendor.index.navigateTo({ + url: "/pages/login" + }); + console.log("用户点击确定"); + } else if (res.cancel) { + common_vendor.index.exitMiniProgram(); + console.log("用户点击取消"); + } + } + }); + return false; + } else { + return true; + } + }, + getLoginStatus() { + var _a; + if (!((_a = auth == null ? void 0 : auth.data) == null ? void 0 : _a.user)) { + return false; + } else { + return true; + } + }, + toPageLogin() { + var _a; + if (!((_a = auth == null ? void 0 : auth.data) == null ? void 0 : _a.user)) { + common_vendor.index.navigateTo({ + url: "/pages/login" + }); + return true; + } + } +}; +exports.getUser = getUser; diff --git a/dist/dev/mp-weixin/common/libraries/watermark.js b/dist/dev/mp-weixin/common/libraries/watermark.js new file mode 100644 index 0000000..0511328 --- /dev/null +++ b/dist/dev/mp-weixin/common/libraries/watermark.js @@ -0,0 +1,52 @@ +"use strict"; +const common_vendor = require("../vendor.js"); +const watermark = { + addWatermark(imagePath, watermarkTxt) { + const ctx = common_vendor.index.createCanvasContext("myCanvas"); + common_vendor.index.getImageInfo({ + src: imagePath, + success: (imageInfo) => { + const { width, height } = imageInfo; + console.log(imageInfo, "imageInfo"); + const canvasWidth = 390; + const canvasHeight = height * canvasWidth / width; + ctx.drawImage(imagePath, 0, 0, canvasWidth, canvasHeight); + ctx.setFontSize(17); + ctx.setFillStyle("#FFD415"); + ctx.rotate(-Math.PI / 4); + ctx.fillText(watermarkTxt, -500, 400); + ctx.fillText(watermarkTxt, -200, 200); + ctx.fillText(watermarkTxt, -200, 300); + ctx.fillText(watermarkTxt, -200, 400); + ctx.fillText(watermarkTxt, -200, 600); + ctx.fillText(watermarkTxt, -550, 800); + ctx.draw(false, () => { + common_vendor.index.canvasToTempFilePath({ + canvasId: "myCanvas", + success: (res) => { + console.log("水印图片地址:", res.tempFilePath); + common_vendor.index.hideLoading(); + common_vendor.index.previewMedia({ + sources: [ + { + url: res.tempFilePath, + type: "image" + } + ], + current: 0 + }); + }, + fail: (err) => { + common_vendor.index.showToast({ + title: "获取失败", + duration: 1e3 + }); + console.error(err); + } + }); + }); + } + }); + } +}; +exports.watermark = watermark; diff --git a/dist/dev/mp-weixin/common/store/useWeAppAuthStore.js b/dist/dev/mp-weixin/common/store/useWeAppAuthStore.js new file mode 100644 index 0000000..6ea7591 --- /dev/null +++ b/dist/dev/mp-weixin/common/store/useWeAppAuthStore.js @@ -0,0 +1,106 @@ +"use strict"; +const common_vendor = require("../vendor.js"); +const gen_Apis = require("../../gen/Apis.js"); +const common_libraries_apiLoading = require("../libraries/apiLoading.js"); +const wxworkId = "ww96c806131a95c739"; +const wxAppId = "wx04d2d27ca198367b"; +const useWeAppAuthStore = common_vendor.defineStore("we_app_auth", () => { + const loading = common_vendor.ref(true); + const hasError = common_vendor.ref(false); + const data = common_vendor.ref({ + user: { id: 0, name: "", phone: "" }, + work_info: { session_key: "", openid: "" }, + environment: "" + }); + function login(app) { + const res = common_vendor.index.getSystemInfoSync(); + data.value.environment = res == null ? void 0 : res.environment; + console.log(res == null ? void 0 : res.environment, "res?.environment"); + if ((res == null ? void 0 : res.environment) === "wxwork") { + common_vendor.index.qy.login({ + success: function(res2) { + console.log(res2); + getWorkToken(app, res2.code); + } + }); + } else { + common_vendor.index.login({ + provider: "weixin", + //使用微信登录 + success: function(loginRes) { + console.log(loginRes); + getWXToken(app, loginRes.code); + } + }); + } + } + const getWorkToken = (app, code) => { + gen_Apis.Apis.Login.Auth.WorkLogin({ code, app_id: wxworkId }).then((res) => { + var _a, _b, _c, _d; + console.log("企业微信登录", res == null ? void 0 : res.data); + data.value.user = (_a = res.data) == null ? void 0 : _a.user; + data.value.work_info = (_b = res.data) == null ? void 0 : _b.work_info; + loading.value = false; + common_vendor.index.setStorageSync("ACCESS_TOKEN_CUSTOMER", (_d = (_c = res == null ? void 0 : res.data) == null ? void 0 : _c.token) == null ? void 0 : _d.token); + app == null ? void 0 : app.appContext.config.globalProperties.$isResolve(); + }).catch(() => { + loading.value = false; + hasError.value = true; + }); + }; + const getWXToken = (app, code) => { + gen_Apis.Apis.Login.Auth.Login({ code, app_id: wxAppId }).then((res) => { + var _a, _b, _c; + console.log("登录", res == null ? void 0 : res.data); + data.value.user = (_a = res.data) == null ? void 0 : _a.user; + loading.value = false; + common_vendor.index.setStorageSync("ACCESS_TOKEN_CUSTOMER", (_c = (_b = res == null ? void 0 : res.data) == null ? void 0 : _b.token) == null ? void 0 : _c.token); + app == null ? void 0 : app.appContext.config.globalProperties.$isResolve(); + }).catch(() => { + loading.value = false; + hasError.value = true; + }); + }; + function me(fun) { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Login.Auth.Me, {}).then((res) => { + data.value.user = res.data.user; + console.log("me", res.data); + loading.value = false; + hasError.value = false; + return fun(); + }); + } + const handleUserLoginWxwork = async (from_data) => { + var _a, _b; + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Login.Auth.BindWork, { + app_id: wxAppId, + session_key: (_b = (_a = data == null ? void 0 : data.value) == null ? void 0 : _a.work_info) == null ? void 0 : _b.session_key, + iv: from_data == null ? void 0 : from_data.iv, + encrypted_data: from_data == null ? void 0 : from_data.encryptedData + }).then((res) => { + me(() => { + common_vendor.index.navigateBack({ delta: 1 }); + }); + }); + }; + const handleUserLogin = async (from_data) => { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Login.Auth.BindPhoneNumber, { + app_id: wxAppId, + ...from_data + }).then((res) => { + me(() => { + common_vendor.index.navigateBack({ delta: 1 }); + }); + }); + }; + return { + loading, + hasError, + data, + login, + me, + handleUserLogin, + handleUserLoginWxwork + }; +}); +exports.useWeAppAuthStore = useWeAppAuthStore; diff --git a/dist/dev/mp-weixin/common/store/useWorkStore.js b/dist/dev/mp-weixin/common/store/useWorkStore.js new file mode 100644 index 0000000..4f321c5 --- /dev/null +++ b/dist/dev/mp-weixin/common/store/useWorkStore.js @@ -0,0 +1,11 @@ +"use strict"; +const common_vendor = require("../vendor.js"); +const useWorkStore = common_vendor.defineStore("goods_store", () => { + const selectWorkHouse = common_vendor.ref({}); + const selectedHouse = common_vendor.ref(0); + return { + selectWorkHouse, + selectedHouse + }; +}); +exports.useWorkStore = useWorkStore; diff --git a/dist/dev/mp-weixin/common/vendor.js b/dist/dev/mp-weixin/common/vendor.js new file mode 100644 index 0000000..84fb187 --- /dev/null +++ b/dist/dev/mp-weixin/common/vendor.js @@ -0,0 +1,16748 @@ +"use strict"; +const _export_sfc = (sfc, props2) => { + const target = sfc.__vccOpts || sfc; + for (const [key, val] of props2) { + target[key] = val; + } + return target; +}; +function makeMap(str, expectsLowerCase) { + const map = /* @__PURE__ */ Object.create(null); + const list = str.split(","); + for (let i2 = 0; i2 < list.length; i2++) { + map[list[i2]] = true; + } + return expectsLowerCase ? (val) => !!map[val.toLowerCase()] : (val) => !!map[val]; +} +function normalizeStyle(value2) { + if (isArray$2(value2)) { + const res = {}; + for (let i2 = 0; i2 < value2.length; i2++) { + const item = value2[i2]; + const normalized = isString(item) ? parseStringStyle(item) : normalizeStyle(item); + if (normalized) { + for (const key in normalized) { + res[key] = normalized[key]; + } + } + } + return res; + } else if (isString(value2)) { + return value2; + } else if (isObject$3(value2)) { + return value2; + } +} +const listDelimiterRE = /;(?![^(]*\))/g; +const propertyDelimiterRE = /:([^]+)/; +const styleCommentRE = /\/\*.*?\*\//gs; +function parseStringStyle(cssText) { + const ret = {}; + cssText.replace(styleCommentRE, "").split(listDelimiterRE).forEach((item) => { + if (item) { + const tmp = item.split(propertyDelimiterRE); + tmp.length > 1 && (ret[tmp[0].trim()] = tmp[1].trim()); + } + }); + return ret; +} +function normalizeClass(value2) { + let res = ""; + if (isString(value2)) { + res = value2; + } else if (isArray$2(value2)) { + for (let i2 = 0; i2 < value2.length; i2++) { + const normalized = normalizeClass(value2[i2]); + if (normalized) { + res += normalized + " "; + } + } + } else if (isObject$3(value2)) { + for (const name in value2) { + if (value2[name]) { + res += name + " "; + } + } + } + return res.trim(); +} +const toDisplayString = (val) => { + return isString(val) ? val : val == null ? "" : isArray$2(val) || isObject$3(val) && (val.toString === objectToString || !isFunction(val.toString)) ? JSON.stringify(val, replacer, 2) : String(val); +}; +const replacer = (_key, val) => { + if (val && val.__v_isRef) { + return replacer(_key, val.value); + } else if (isMap(val)) { + return { + [`Map(${val.size})`]: [...val.entries()].reduce((entries, [key, val2]) => { + entries[`${key} =>`] = val2; + return entries; + }, {}) + }; + } else if (isSet(val)) { + return { + [`Set(${val.size})`]: [...val.values()] + }; + } else if (isObject$3(val) && !isArray$2(val) && !isPlainObject$3(val)) { + return String(val); + } + return val; +}; +const EMPTY_OBJ = Object.freeze({}); +const EMPTY_ARR = Object.freeze([]); +const NOOP = () => { +}; +const NO = () => false; +const onRE = /^on[^a-z]/; +const isOn = (key) => onRE.test(key); +const isModelListener = (key) => key.startsWith("onUpdate:"); +const extend = Object.assign; +const remove = (arr, el) => { + const i2 = arr.indexOf(el); + if (i2 > -1) { + arr.splice(i2, 1); + } +}; +const hasOwnProperty$2 = Object.prototype.hasOwnProperty; +const hasOwn$1 = (val, key) => hasOwnProperty$2.call(val, key); +const isArray$2 = Array.isArray; +const isMap = (val) => toTypeString(val) === "[object Map]"; +const isSet = (val) => toTypeString(val) === "[object Set]"; +const isFunction = (val) => typeof val === "function"; +const isString = (val) => typeof val === "string"; +const isSymbol = (val) => typeof val === "symbol"; +const isObject$3 = (val) => val !== null && typeof val === "object"; +const isPromise = (val) => { + return isObject$3(val) && isFunction(val.then) && isFunction(val.catch); +}; +const objectToString = Object.prototype.toString; +const toTypeString = (value2) => objectToString.call(value2); +const toRawType = (value2) => { + return toTypeString(value2).slice(8, -1); +}; +const isPlainObject$3 = (val) => toTypeString(val) === "[object Object]"; +const isIntegerKey = (key) => isString(key) && key !== "NaN" && key[0] !== "-" && "" + parseInt(key, 10) === key; +const isReservedProp = /* @__PURE__ */ makeMap( + // the leading comma is intentional so empty string "" is also included + ",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted" +); +const isBuiltInDirective = /* @__PURE__ */ makeMap("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"); +const cacheStringFunction = (fn) => { + const cache = /* @__PURE__ */ Object.create(null); + return (str) => { + const hit = cache[str]; + return hit || (cache[str] = fn(str)); + }; +}; +const camelizeRE = /-(\w)/g; +const camelize = cacheStringFunction((str) => { + return str.replace(camelizeRE, (_2, c2) => c2 ? c2.toUpperCase() : ""); +}); +const hyphenateRE = /\B([A-Z])/g; +const hyphenate = cacheStringFunction((str) => str.replace(hyphenateRE, "-$1").toLowerCase()); +const capitalize = cacheStringFunction((str) => str.charAt(0).toUpperCase() + str.slice(1)); +const toHandlerKey = cacheStringFunction((str) => str ? `on${capitalize(str)}` : ``); +const hasChanged = (value2, oldValue) => !Object.is(value2, oldValue); +const invokeArrayFns$1 = (fns, arg) => { + for (let i2 = 0; i2 < fns.length; i2++) { + fns[i2](arg); + } +}; +const def = (obj, key, value2) => { + Object.defineProperty(obj, key, { + configurable: true, + enumerable: false, + value: value2 + }); +}; +const looseToNumber = (val) => { + const n2 = parseFloat(val); + return isNaN(n2) ? val : n2; +}; +const LINEFEED = "\n"; +const SLOT_DEFAULT_NAME = "d"; +const ON_SHOW = "onShow"; +const ON_HIDE = "onHide"; +const ON_LAUNCH = "onLaunch"; +const ON_ERROR = "onError"; +const ON_THEME_CHANGE = "onThemeChange"; +const ON_PAGE_NOT_FOUND = "onPageNotFound"; +const ON_UNHANDLE_REJECTION = "onUnhandledRejection"; +const ON_LOAD = "onLoad"; +const ON_READY = "onReady"; +const ON_UNLOAD = "onUnload"; +const ON_INIT = "onInit"; +const ON_SAVE_EXIT_STATE = "onSaveExitState"; +const ON_RESIZE = "onResize"; +const ON_BACK_PRESS = "onBackPress"; +const ON_PAGE_SCROLL = "onPageScroll"; +const ON_TAB_ITEM_TAP = "onTabItemTap"; +const ON_REACH_BOTTOM = "onReachBottom"; +const ON_PULL_DOWN_REFRESH = "onPullDownRefresh"; +const ON_SHARE_TIMELINE = "onShareTimeline"; +const ON_ADD_TO_FAVORITES = "onAddToFavorites"; +const ON_SHARE_APP_MESSAGE = "onShareAppMessage"; +const ON_NAVIGATION_BAR_BUTTON_TAP = "onNavigationBarButtonTap"; +const ON_NAVIGATION_BAR_SEARCH_INPUT_CLICKED = "onNavigationBarSearchInputClicked"; +const ON_NAVIGATION_BAR_SEARCH_INPUT_CHANGED = "onNavigationBarSearchInputChanged"; +const ON_NAVIGATION_BAR_SEARCH_INPUT_CONFIRMED = "onNavigationBarSearchInputConfirmed"; +const ON_NAVIGATION_BAR_SEARCH_INPUT_FOCUS_CHANGED = "onNavigationBarSearchInputFocusChanged"; +const customizeRE = /:/g; +function customizeEvent(str) { + return camelize(str.replace(customizeRE, "-")); +} +function hasLeadingSlash(str) { + return str.indexOf("/") === 0; +} +function addLeadingSlash(str) { + return hasLeadingSlash(str) ? str : "/" + str; +} +const invokeArrayFns = (fns, arg) => { + let ret; + for (let i2 = 0; i2 < fns.length; i2++) { + ret = fns[i2](arg); + } + return ret; +}; +function once(fn, ctx = null) { + let res; + return (...args) => { + if (fn) { + res = fn.apply(ctx, args); + fn = null; + } + return res; + }; +} +function getValueByDataPath(obj, path) { + if (!isString(path)) { + return; + } + path = path.replace(/\[(\d+)\]/g, ".$1"); + const parts = path.split("."); + let key = parts[0]; + if (!obj) { + obj = {}; + } + if (parts.length === 1) { + return obj[key]; + } + return getValueByDataPath(obj[key], parts.slice(1).join(".")); +} +function sortObject(obj) { + let sortObj = {}; + if (isPlainObject$3(obj)) { + Object.keys(obj).sort().forEach((key) => { + const _key = key; + sortObj[_key] = obj[_key]; + }); + } + return !Object.keys(sortObj) ? obj : sortObj; +} +const encode$2 = encodeURIComponent; +function stringifyQuery(obj, encodeStr = encode$2) { + const res = obj ? Object.keys(obj).map((key) => { + let val = obj[key]; + if (typeof val === void 0 || val === null) { + val = ""; + } else if (isPlainObject$3(val)) { + val = JSON.stringify(val); + } + return encodeStr(key) + "=" + encodeStr(val); + }).filter((x2) => x2.length > 0).join("&") : null; + return res ? `?${res}` : ""; +} +const PAGE_HOOKS = [ + ON_INIT, + ON_LOAD, + ON_SHOW, + ON_HIDE, + ON_UNLOAD, + ON_BACK_PRESS, + ON_PAGE_SCROLL, + ON_TAB_ITEM_TAP, + ON_REACH_BOTTOM, + ON_PULL_DOWN_REFRESH, + ON_SHARE_TIMELINE, + ON_SHARE_APP_MESSAGE, + ON_ADD_TO_FAVORITES, + ON_SAVE_EXIT_STATE, + ON_NAVIGATION_BAR_BUTTON_TAP, + ON_NAVIGATION_BAR_SEARCH_INPUT_CLICKED, + ON_NAVIGATION_BAR_SEARCH_INPUT_CHANGED, + ON_NAVIGATION_BAR_SEARCH_INPUT_CONFIRMED, + ON_NAVIGATION_BAR_SEARCH_INPUT_FOCUS_CHANGED +]; +function isRootHook(name) { + return PAGE_HOOKS.indexOf(name) > -1; +} +const UniLifecycleHooks = [ + ON_SHOW, + ON_HIDE, + ON_LAUNCH, + ON_ERROR, + ON_THEME_CHANGE, + ON_PAGE_NOT_FOUND, + ON_UNHANDLE_REJECTION, + ON_INIT, + ON_LOAD, + ON_READY, + ON_UNLOAD, + ON_RESIZE, + ON_BACK_PRESS, + ON_PAGE_SCROLL, + ON_TAB_ITEM_TAP, + ON_REACH_BOTTOM, + ON_PULL_DOWN_REFRESH, + ON_SHARE_TIMELINE, + ON_ADD_TO_FAVORITES, + ON_SHARE_APP_MESSAGE, + ON_SAVE_EXIT_STATE, + ON_NAVIGATION_BAR_BUTTON_TAP, + ON_NAVIGATION_BAR_SEARCH_INPUT_CLICKED, + ON_NAVIGATION_BAR_SEARCH_INPUT_CHANGED, + ON_NAVIGATION_BAR_SEARCH_INPUT_CONFIRMED, + ON_NAVIGATION_BAR_SEARCH_INPUT_FOCUS_CHANGED +]; +const MINI_PROGRAM_PAGE_RUNTIME_HOOKS = /* @__PURE__ */ (() => { + return { + onPageScroll: 1, + onShareAppMessage: 1 << 1, + onShareTimeline: 1 << 2 + }; +})(); +function isUniLifecycleHook(name, value2, checkType = true) { + if (checkType && !isFunction(value2)) { + return false; + } + if (UniLifecycleHooks.indexOf(name) > -1) { + return true; + } else if (name.indexOf("on") === 0) { + return true; + } + return false; +} +let vueApp; +const createVueAppHooks = []; +function onCreateVueApp(hook) { + if (vueApp) { + return hook(vueApp); + } + createVueAppHooks.push(hook); +} +function invokeCreateVueAppHook(app) { + vueApp = app; + createVueAppHooks.forEach((hook) => hook(app)); +} +const invokeCreateErrorHandler = once((app, createErrorHandler2) => { + if (isFunction(app._component.onError)) { + return createErrorHandler2(app); + } +}); +const E$1 = function() { +}; +E$1.prototype = { + on: function(name, callback, ctx) { + var e2 = this.e || (this.e = {}); + (e2[name] || (e2[name] = [])).push({ + fn: callback, + ctx + }); + return this; + }, + once: function(name, callback, ctx) { + var self2 = this; + function listener() { + self2.off(name, listener); + callback.apply(ctx, arguments); + } + listener._ = callback; + return this.on(name, listener, ctx); + }, + emit: function(name) { + var data = [].slice.call(arguments, 1); + var evtArr = ((this.e || (this.e = {}))[name] || []).slice(); + var i2 = 0; + var len = evtArr.length; + for (i2; i2 < len; i2++) { + evtArr[i2].fn.apply(evtArr[i2].ctx, data); + } + return this; + }, + off: function(name, callback) { + var e2 = this.e || (this.e = {}); + var evts = e2[name]; + var liveEvents = []; + if (evts && callback) { + for (var i2 = 0, len = evts.length; i2 < len; i2++) { + if (evts[i2].fn !== callback && evts[i2].fn._ !== callback) + liveEvents.push(evts[i2]); + } + } + liveEvents.length ? e2[name] = liveEvents : delete e2[name]; + return this; + } +}; +var E$1$1 = E$1; +const isObject$2 = (val) => val !== null && typeof val === "object"; +const defaultDelimiters = ["{", "}"]; +class BaseFormatter { + constructor() { + this._caches = /* @__PURE__ */ Object.create(null); + } + interpolate(message, values, delimiters = defaultDelimiters) { + if (!values) { + return [message]; + } + let tokens = this._caches[message]; + if (!tokens) { + tokens = parse(message, delimiters); + this._caches[message] = tokens; + } + return compile$1(tokens, values); + } +} +const RE_TOKEN_LIST_VALUE = /^(?:\d)+/; +const RE_TOKEN_NAMED_VALUE = /^(?:\w)+/; +function parse(format, [startDelimiter, endDelimiter]) { + const tokens = []; + let position = 0; + let text = ""; + while (position < format.length) { + let char = format[position++]; + if (char === startDelimiter) { + if (text) { + tokens.push({ type: "text", value: text }); + } + text = ""; + let sub = ""; + char = format[position++]; + while (char !== void 0 && char !== endDelimiter) { + sub += char; + char = format[position++]; + } + const isClosed = char === endDelimiter; + const type = RE_TOKEN_LIST_VALUE.test(sub) ? "list" : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? "named" : "unknown"; + tokens.push({ value: sub, type }); + } else { + text += char; + } + } + text && tokens.push({ type: "text", value: text }); + return tokens; +} +function compile$1(tokens, values) { + const compiled = []; + let index2 = 0; + const mode = Array.isArray(values) ? "list" : isObject$2(values) ? "named" : "unknown"; + if (mode === "unknown") { + return compiled; + } + while (index2 < tokens.length) { + const token = tokens[index2]; + switch (token.type) { + case "text": + compiled.push(token.value); + break; + case "list": + compiled.push(values[parseInt(token.value, 10)]); + break; + case "named": + if (mode === "named") { + compiled.push(values[token.value]); + } else { + { + console.warn(`Type of token '${token.type}' and format of value '${mode}' don't match!`); + } + } + break; + case "unknown": + { + console.warn(`Detect 'unknown' type of token!`); + } + break; + } + index2++; + } + return compiled; +} +const LOCALE_ZH_HANS = "zh-Hans"; +const LOCALE_ZH_HANT = "zh-Hant"; +const LOCALE_EN = "en"; +const LOCALE_FR = "fr"; +const LOCALE_ES = "es"; +const hasOwnProperty$1 = Object.prototype.hasOwnProperty; +const hasOwn = (val, key) => hasOwnProperty$1.call(val, key); +const defaultFormatter = new BaseFormatter(); +function include(str, parts) { + return !!parts.find((part) => str.indexOf(part) !== -1); +} +function startsWith(str, parts) { + return parts.find((part) => str.indexOf(part) === 0); +} +function normalizeLocale(locale, messages) { + if (!locale) { + return; + } + locale = locale.trim().replace(/_/g, "-"); + if (messages && messages[locale]) { + return locale; + } + locale = locale.toLowerCase(); + if (locale === "chinese") { + return LOCALE_ZH_HANS; + } + if (locale.indexOf("zh") === 0) { + if (locale.indexOf("-hans") > -1) { + return LOCALE_ZH_HANS; + } + if (locale.indexOf("-hant") > -1) { + return LOCALE_ZH_HANT; + } + if (include(locale, ["-tw", "-hk", "-mo", "-cht"])) { + return LOCALE_ZH_HANT; + } + return LOCALE_ZH_HANS; + } + let locales = [LOCALE_EN, LOCALE_FR, LOCALE_ES]; + if (messages && Object.keys(messages).length > 0) { + locales = Object.keys(messages); + } + const lang = startsWith(locale, locales); + if (lang) { + return lang; + } +} +class I18n { + constructor({ locale, fallbackLocale, messages, watcher, formater }) { + this.locale = LOCALE_EN; + this.fallbackLocale = LOCALE_EN; + this.message = {}; + this.messages = {}; + this.watchers = []; + if (fallbackLocale) { + this.fallbackLocale = fallbackLocale; + } + this.formater = formater || defaultFormatter; + this.messages = messages || {}; + this.setLocale(locale || LOCALE_EN); + if (watcher) { + this.watchLocale(watcher); + } + } + setLocale(locale) { + const oldLocale = this.locale; + this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale; + if (!this.messages[this.locale]) { + this.messages[this.locale] = {}; + } + this.message = this.messages[this.locale]; + if (oldLocale !== this.locale) { + this.watchers.forEach((watcher) => { + watcher(this.locale, oldLocale); + }); + } + } + getLocale() { + return this.locale; + } + watchLocale(fn) { + const index2 = this.watchers.push(fn) - 1; + return () => { + this.watchers.splice(index2, 1); + }; + } + add(locale, message, override = true) { + const curMessages = this.messages[locale]; + if (curMessages) { + if (override) { + Object.assign(curMessages, message); + } else { + Object.keys(message).forEach((key) => { + if (!hasOwn(curMessages, key)) { + curMessages[key] = message[key]; + } + }); + } + } else { + this.messages[locale] = message; + } + } + f(message, values, delimiters) { + return this.formater.interpolate(message, values, delimiters).join(""); + } + t(key, locale, values) { + let message = this.message; + if (typeof locale === "string") { + locale = normalizeLocale(locale, this.messages); + locale && (message = this.messages[locale]); + } else { + values = locale; + } + if (!hasOwn(message, key)) { + console.warn(`Cannot translate the value of keypath ${key}. Use the value of keypath as default.`); + return key; + } + return this.formater.interpolate(message[key], values).join(""); + } +} +function watchAppLocale(appVm, i18n) { + if (appVm.$watchLocale) { + appVm.$watchLocale((newLocale) => { + i18n.setLocale(newLocale); + }); + } else { + appVm.$watch(() => appVm.$locale, (newLocale) => { + i18n.setLocale(newLocale); + }); + } +} +function getDefaultLocale() { + if (typeof index$1 !== "undefined" && index$1.getLocale) { + return index$1.getLocale(); + } + if (typeof global !== "undefined" && global.getLocale) { + return global.getLocale(); + } + return LOCALE_EN; +} +function initVueI18n(locale, messages = {}, fallbackLocale, watcher) { + if (typeof locale !== "string") { + [locale, messages] = [ + messages, + locale + ]; + } + if (typeof locale !== "string") { + locale = getDefaultLocale(); + } + if (typeof fallbackLocale !== "string") { + fallbackLocale = typeof __uniConfig !== "undefined" && __uniConfig.fallbackLocale || LOCALE_EN; + } + const i18n = new I18n({ + locale, + fallbackLocale, + messages, + watcher + }); + let t2 = (key, values) => { + if (typeof getApp !== "function") { + t2 = function(key2, values2) { + return i18n.t(key2, values2); + }; + } else { + let isWatchedAppLocale = false; + t2 = function(key2, values2) { + const appVm = getApp().$vm; + if (appVm) { + appVm.$locale; + if (!isWatchedAppLocale) { + isWatchedAppLocale = true; + watchAppLocale(appVm, i18n); + } + } + return i18n.t(key2, values2); + }; + } + return t2(key, values); + }; + return { + i18n, + f(message, values, delimiters) { + return i18n.f(message, values, delimiters); + }, + t(key, values) { + return t2(key, values); + }, + add(locale2, message, override = true) { + return i18n.add(locale2, message, override); + }, + watch(fn) { + return i18n.watchLocale(fn); + }, + getLocale() { + return i18n.getLocale(); + }, + setLocale(newLocale) { + return i18n.setLocale(newLocale); + } + }; +} +function getBaseSystemInfo() { + return wx.getSystemInfoSync(); +} +function validateProtocolFail(name, msg) { + console.warn(`${name}: ${msg}`); +} +function validateProtocol(name, data, protocol, onFail) { + if (!onFail) { + onFail = validateProtocolFail; + } + for (const key in protocol) { + const errMsg = validateProp$1(key, data[key], protocol[key], !hasOwn$1(data, key)); + if (isString(errMsg)) { + onFail(name, errMsg); + } + } +} +function validateProtocols(name, args, protocol, onFail) { + if (!protocol) { + return; + } + if (!isArray$2(protocol)) { + return validateProtocol(name, args[0] || /* @__PURE__ */ Object.create(null), protocol, onFail); + } + const len = protocol.length; + const argsLen = args.length; + for (let i2 = 0; i2 < len; i2++) { + const opts = protocol[i2]; + const data = /* @__PURE__ */ Object.create(null); + if (argsLen > i2) { + data[opts.name] = args[i2]; + } + validateProtocol(name, data, { [opts.name]: opts }, onFail); + } +} +function validateProp$1(name, value2, prop, isAbsent) { + if (!isPlainObject$3(prop)) { + prop = { type: prop }; + } + const { type, required, validator } = prop; + if (required && isAbsent) { + return 'Missing required args: "' + name + '"'; + } + if (value2 == null && !required) { + return; + } + if (type != null) { + let isValid = false; + const types = isArray$2(type) ? type : [type]; + const expectedTypes = []; + for (let i2 = 0; i2 < types.length && !isValid; i2++) { + const { valid, expectedType } = assertType$1(value2, types[i2]); + expectedTypes.push(expectedType || ""); + isValid = valid; + } + if (!isValid) { + return getInvalidTypeMessage$1(name, value2, expectedTypes); + } + } + if (validator) { + return validator(value2); + } +} +const isSimpleType$1 = /* @__PURE__ */ makeMap("String,Number,Boolean,Function,Symbol"); +function assertType$1(value2, type) { + let valid; + const expectedType = getType$1(type); + if (isSimpleType$1(expectedType)) { + const t2 = typeof value2; + valid = t2 === expectedType.toLowerCase(); + if (!valid && t2 === "object") { + valid = value2 instanceof type; + } + } else if (expectedType === "Object") { + valid = isObject$3(value2); + } else if (expectedType === "Array") { + valid = isArray$2(value2); + } else { + { + valid = value2 instanceof type; + } + } + return { + valid, + expectedType + }; +} +function getInvalidTypeMessage$1(name, value2, expectedTypes) { + let message = `Invalid args: type check failed for args "${name}". Expected ${expectedTypes.map(capitalize).join(", ")}`; + const expectedType = expectedTypes[0]; + const receivedType = toRawType(value2); + const expectedValue = styleValue$1(value2, expectedType); + const receivedValue = styleValue$1(value2, receivedType); + if (expectedTypes.length === 1 && isExplicable$1(expectedType) && !isBoolean$1(expectedType, receivedType)) { + message += ` with value ${expectedValue}`; + } + message += `, got ${receivedType} `; + if (isExplicable$1(receivedType)) { + message += `with value ${receivedValue}.`; + } + return message; +} +function getType$1(ctor) { + const match = ctor && ctor.toString().match(/^\s*function (\w+)/); + return match ? match[1] : ""; +} +function styleValue$1(value2, type) { + if (type === "String") { + return `"${value2}"`; + } else if (type === "Number") { + return `${Number(value2)}`; + } else { + return `${value2}`; + } +} +function isExplicable$1(type) { + const explicitTypes = ["string", "number", "boolean"]; + return explicitTypes.some((elem) => type.toLowerCase() === elem); +} +function isBoolean$1(...args) { + return args.some((elem) => elem.toLowerCase() === "boolean"); +} +function tryCatch(fn) { + return function() { + try { + return fn.apply(fn, arguments); + } catch (e2) { + console.error(e2); + } + }; +} +let invokeCallbackId = 1; +const invokeCallbacks = {}; +function addInvokeCallback(id, name, callback, keepAlive = false) { + invokeCallbacks[id] = { + name, + keepAlive, + callback + }; + return id; +} +function invokeCallback(id, res, extras) { + if (typeof id === "number") { + const opts = invokeCallbacks[id]; + if (opts) { + if (!opts.keepAlive) { + delete invokeCallbacks[id]; + } + return opts.callback(res, extras); + } + } + return res; +} +const API_SUCCESS = "success"; +const API_FAIL = "fail"; +const API_COMPLETE = "complete"; +function getApiCallbacks(args) { + const apiCallbacks = {}; + for (const name in args) { + const fn = args[name]; + if (isFunction(fn)) { + apiCallbacks[name] = tryCatch(fn); + delete args[name]; + } + } + return apiCallbacks; +} +function normalizeErrMsg$1(errMsg, name) { + if (!errMsg || errMsg.indexOf(":fail") === -1) { + return name + ":ok"; + } + return name + errMsg.substring(errMsg.indexOf(":fail")); +} +function createAsyncApiCallback(name, args = {}, { beforeAll, beforeSuccess } = {}) { + if (!isPlainObject$3(args)) { + args = {}; + } + const { success, fail, complete } = getApiCallbacks(args); + const hasSuccess = isFunction(success); + const hasFail = isFunction(fail); + const hasComplete = isFunction(complete); + const callbackId = invokeCallbackId++; + addInvokeCallback(callbackId, name, (res) => { + res = res || {}; + res.errMsg = normalizeErrMsg$1(res.errMsg, name); + isFunction(beforeAll) && beforeAll(res); + if (res.errMsg === name + ":ok") { + isFunction(beforeSuccess) && beforeSuccess(res, args); + hasSuccess && success(res); + } else { + hasFail && fail(res); + } + hasComplete && complete(res); + }); + return callbackId; +} +const HOOK_SUCCESS = "success"; +const HOOK_FAIL = "fail"; +const HOOK_COMPLETE = "complete"; +const globalInterceptors = {}; +const scopedInterceptors = {}; +function wrapperHook(hook, params) { + return function(data) { + return hook(data, params) || data; + }; +} +function queue$1(hooks, data, params) { + let promise2 = false; + for (let i2 = 0; i2 < hooks.length; i2++) { + const hook = hooks[i2]; + if (promise2) { + promise2 = Promise.resolve(wrapperHook(hook, params)); + } else { + const res = hook(data, params); + if (isPromise(res)) { + promise2 = Promise.resolve(res); + } + if (res === false) { + return { + then() { + }, + catch() { + } + }; + } + } + } + return promise2 || { + then(callback) { + return callback(data); + }, + catch() { + } + }; +} +function wrapperOptions(interceptors2, options = {}) { + [HOOK_SUCCESS, HOOK_FAIL, HOOK_COMPLETE].forEach((name) => { + const hooks = interceptors2[name]; + if (!isArray$2(hooks)) { + return; + } + const oldCallback = options[name]; + options[name] = function callbackInterceptor(res) { + queue$1(hooks, res, options).then((res2) => { + return isFunction(oldCallback) && oldCallback(res2) || res2; + }); + }; + }); + return options; +} +function wrapperReturnValue(method, returnValue) { + const returnValueHooks = []; + if (isArray$2(globalInterceptors.returnValue)) { + returnValueHooks.push(...globalInterceptors.returnValue); + } + const interceptor = scopedInterceptors[method]; + if (interceptor && isArray$2(interceptor.returnValue)) { + returnValueHooks.push(...interceptor.returnValue); + } + returnValueHooks.forEach((hook) => { + returnValue = hook(returnValue) || returnValue; + }); + return returnValue; +} +function getApiInterceptorHooks(method) { + const interceptor = /* @__PURE__ */ Object.create(null); + Object.keys(globalInterceptors).forEach((hook) => { + if (hook !== "returnValue") { + interceptor[hook] = globalInterceptors[hook].slice(); + } + }); + const scopedInterceptor = scopedInterceptors[method]; + if (scopedInterceptor) { + Object.keys(scopedInterceptor).forEach((hook) => { + if (hook !== "returnValue") { + interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]); + } + }); + } + return interceptor; +} +function invokeApi(method, api, options, params) { + const interceptor = getApiInterceptorHooks(method); + if (interceptor && Object.keys(interceptor).length) { + if (isArray$2(interceptor.invoke)) { + const res = queue$1(interceptor.invoke, options); + return res.then((options2) => { + return api(wrapperOptions(getApiInterceptorHooks(method), options2), ...params); + }); + } else { + return api(wrapperOptions(interceptor, options), ...params); + } + } + return api(options, ...params); +} +function hasCallback(args) { + if (isPlainObject$3(args) && [API_SUCCESS, API_FAIL, API_COMPLETE].find((cb) => isFunction(args[cb]))) { + return true; + } + return false; +} +function handlePromise(promise2) { + return promise2; +} +function promisify$1(name, fn) { + return (args = {}, ...rest) => { + if (hasCallback(args)) { + return wrapperReturnValue(name, invokeApi(name, fn, args, rest)); + } + return wrapperReturnValue(name, handlePromise(new Promise((resolve2, reject) => { + invokeApi(name, fn, extend(args, { success: resolve2, fail: reject }), rest); + }))); + }; +} +function formatApiArgs(args, options) { + const params = args[0]; + if (!options || !isPlainObject$3(options.formatArgs) && isPlainObject$3(params)) { + return; + } + const formatArgs = options.formatArgs; + const keys = Object.keys(formatArgs); + for (let i2 = 0; i2 < keys.length; i2++) { + const name = keys[i2]; + const formatterOrDefaultValue = formatArgs[name]; + if (isFunction(formatterOrDefaultValue)) { + const errMsg = formatterOrDefaultValue(args[0][name], params); + if (isString(errMsg)) { + return errMsg; + } + } else { + if (!hasOwn$1(params, name)) { + params[name] = formatterOrDefaultValue; + } + } + } +} +function invokeSuccess(id, name, res) { + return invokeCallback(id, extend(res || {}, { errMsg: name + ":ok" })); +} +function invokeFail(id, name, errMsg, errRes) { + return invokeCallback(id, extend({ errMsg: name + ":fail" + (errMsg ? " " + errMsg : "") }, errRes)); +} +function beforeInvokeApi(name, args, protocol, options) { + { + validateProtocols(name, args, protocol); + } + if (options && options.beforeInvoke) { + const errMsg2 = options.beforeInvoke(args); + if (isString(errMsg2)) { + return errMsg2; + } + } + const errMsg = formatApiArgs(args, options); + if (errMsg) { + return errMsg; + } +} +function normalizeErrMsg(errMsg) { + if (!errMsg || isString(errMsg)) { + return errMsg; + } + if (errMsg.stack) { + console.error(errMsg.message + LINEFEED + errMsg.stack); + return errMsg.message; + } + return errMsg; +} +function wrapperTaskApi(name, fn, protocol, options) { + return (args) => { + const id = createAsyncApiCallback(name, args, options); + const errMsg = beforeInvokeApi(name, [args], protocol, options); + if (errMsg) { + return invokeFail(id, name, errMsg); + } + return fn(args, { + resolve: (res) => invokeSuccess(id, name, res), + reject: (errMsg2, errRes) => invokeFail(id, name, normalizeErrMsg(errMsg2), errRes) + }); + }; +} +function wrapperSyncApi(name, fn, protocol, options) { + return (...args) => { + const errMsg = beforeInvokeApi(name, args, protocol, options); + if (errMsg) { + throw new Error(errMsg); + } + return fn.apply(null, args); + }; +} +function wrapperAsyncApi(name, fn, protocol, options) { + return wrapperTaskApi(name, fn, protocol, options); +} +function defineSyncApi(name, fn, protocol, options) { + return wrapperSyncApi(name, fn, protocol, options); +} +function defineAsyncApi(name, fn, protocol, options) { + return promisify$1(name, wrapperAsyncApi(name, fn, protocol, options)); +} +const API_UPX2PX = "upx2px"; +const Upx2pxProtocol = [ + { + name: "upx", + type: [Number, String], + required: true + } +]; +const EPS = 1e-4; +const BASE_DEVICE_WIDTH = 750; +let isIOS = false; +let deviceWidth = 0; +let deviceDPR = 0; +function checkDeviceWidth() { + const { platform: platform2, pixelRatio, windowWidth } = getBaseSystemInfo(); + deviceWidth = windowWidth; + deviceDPR = pixelRatio; + isIOS = platform2 === "ios"; +} +const upx2px = defineSyncApi(API_UPX2PX, (number2, newDeviceWidth) => { + if (deviceWidth === 0) { + checkDeviceWidth(); + } + number2 = Number(number2); + if (number2 === 0) { + return 0; + } + let width = newDeviceWidth || deviceWidth; + let result = number2 / BASE_DEVICE_WIDTH * width; + if (result < 0) { + result = -result; + } + result = Math.floor(result + EPS); + if (result === 0) { + if (deviceDPR === 1 || !isIOS) { + result = 1; + } else { + result = 0.5; + } + } + return number2 < 0 ? -result : result; +}, Upx2pxProtocol); +const API_ADD_INTERCEPTOR = "addInterceptor"; +const API_REMOVE_INTERCEPTOR = "removeInterceptor"; +const AddInterceptorProtocol = [ + { + name: "method", + type: [String, Object], + required: true + } +]; +const RemoveInterceptorProtocol = AddInterceptorProtocol; +function mergeInterceptorHook(interceptors2, interceptor) { + Object.keys(interceptor).forEach((hook) => { + if (isFunction(interceptor[hook])) { + interceptors2[hook] = mergeHook(interceptors2[hook], interceptor[hook]); + } + }); +} +function removeInterceptorHook(interceptors2, interceptor) { + if (!interceptors2 || !interceptor) { + return; + } + Object.keys(interceptor).forEach((name) => { + const hooks = interceptors2[name]; + const hook = interceptor[name]; + if (isArray$2(hooks) && isFunction(hook)) { + remove(hooks, hook); + } + }); +} +function mergeHook(parentVal, childVal) { + const res = childVal ? parentVal ? parentVal.concat(childVal) : isArray$2(childVal) ? childVal : [childVal] : parentVal; + return res ? dedupeHooks(res) : res; +} +function dedupeHooks(hooks) { + const res = []; + for (let i2 = 0; i2 < hooks.length; i2++) { + if (res.indexOf(hooks[i2]) === -1) { + res.push(hooks[i2]); + } + } + return res; +} +const addInterceptor = defineSyncApi(API_ADD_INTERCEPTOR, (method, interceptor) => { + if (isString(method) && isPlainObject$3(interceptor)) { + mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), interceptor); + } else if (isPlainObject$3(method)) { + mergeInterceptorHook(globalInterceptors, method); + } +}, AddInterceptorProtocol); +const removeInterceptor = defineSyncApi(API_REMOVE_INTERCEPTOR, (method, interceptor) => { + if (isString(method)) { + if (isPlainObject$3(interceptor)) { + removeInterceptorHook(scopedInterceptors[method], interceptor); + } else { + delete scopedInterceptors[method]; + } + } else if (isPlainObject$3(method)) { + removeInterceptorHook(globalInterceptors, method); + } +}, RemoveInterceptorProtocol); +const interceptors = {}; +const API_ON = "$on"; +const OnProtocol = [ + { + name: "event", + type: String, + required: true + }, + { + name: "callback", + type: Function, + required: true + } +]; +const API_ONCE = "$once"; +const OnceProtocol = OnProtocol; +const API_OFF = "$off"; +const OffProtocol = [ + { + name: "event", + type: [String, Array] + }, + { + name: "callback", + type: Function + } +]; +const API_EMIT = "$emit"; +const EmitProtocol = [ + { + name: "event", + type: String, + required: true + } +]; +const emitter = new E$1$1(); +const $on = defineSyncApi(API_ON, (name, callback) => { + emitter.on(name, callback); + return () => emitter.off(name, callback); +}, OnProtocol); +const $once = defineSyncApi(API_ONCE, (name, callback) => { + emitter.once(name, callback); + return () => emitter.off(name, callback); +}, OnceProtocol); +const $off = defineSyncApi(API_OFF, (name, callback) => { + if (!name) { + emitter.e = {}; + return; + } + if (!isArray$2(name)) + name = [name]; + name.forEach((n2) => emitter.off(n2, callback)); +}, OffProtocol); +const $emit = defineSyncApi(API_EMIT, (name, ...args) => { + emitter.emit(name, ...args); +}, EmitProtocol); +let cid; +let cidErrMsg; +let enabled; +function normalizePushMessage(message) { + try { + return JSON.parse(message); + } catch (e2) { + } + return message; +} +function invokePushCallback(args) { + if (args.type === "enabled") { + enabled = true; + } else if (args.type === "clientId") { + cid = args.cid; + cidErrMsg = args.errMsg; + invokeGetPushCidCallbacks(cid, args.errMsg); + } else if (args.type === "pushMsg") { + const message = { + type: "receive", + data: normalizePushMessage(args.message) + }; + for (let i2 = 0; i2 < onPushMessageCallbacks.length; i2++) { + const callback = onPushMessageCallbacks[i2]; + callback(message); + if (message.stopped) { + break; + } + } + } else if (args.type === "click") { + onPushMessageCallbacks.forEach((callback) => { + callback({ + type: "click", + data: normalizePushMessage(args.message) + }); + }); + } +} +const getPushCidCallbacks = []; +function invokeGetPushCidCallbacks(cid2, errMsg) { + getPushCidCallbacks.forEach((callback) => { + callback(cid2, errMsg); + }); + getPushCidCallbacks.length = 0; +} +const API_GET_PUSH_CLIENT_ID = "getPushClientId"; +const getPushClientId = defineAsyncApi(API_GET_PUSH_CLIENT_ID, (_2, { resolve: resolve2, reject }) => { + Promise.resolve().then(() => { + if (typeof enabled === "undefined") { + enabled = false; + cid = ""; + cidErrMsg = "uniPush is not enabled"; + } + getPushCidCallbacks.push((cid2, errMsg) => { + if (cid2) { + resolve2({ cid: cid2 }); + } else { + reject(errMsg); + } + }); + if (typeof cid !== "undefined") { + invokeGetPushCidCallbacks(cid, cidErrMsg); + } + }); +}); +const onPushMessageCallbacks = []; +const onPushMessage = (fn) => { + if (onPushMessageCallbacks.indexOf(fn) === -1) { + onPushMessageCallbacks.push(fn); + } +}; +const offPushMessage = (fn) => { + if (!fn) { + onPushMessageCallbacks.length = 0; + } else { + const index2 = onPushMessageCallbacks.indexOf(fn); + if (index2 > -1) { + onPushMessageCallbacks.splice(index2, 1); + } + } +}; +const SYNC_API_RE = /^\$|getLocale|setLocale|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getDeviceInfo|getAppBaseInfo|getWindowInfo|getSystemSetting|getAppAuthorizeSetting/; +const CONTEXT_API_RE = /^create|Manager$/; +const CONTEXT_API_RE_EXC = ["createBLEConnection"]; +const ASYNC_API = ["createBLEConnection"]; +const CALLBACK_API_RE = /^on|^off/; +function isContextApi(name) { + return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1; +} +function isSyncApi(name) { + return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1; +} +function isCallbackApi(name) { + return CALLBACK_API_RE.test(name) && name !== "onPush"; +} +function shouldPromise(name) { + if (isContextApi(name) || isSyncApi(name) || isCallbackApi(name)) { + return false; + } + return true; +} +if (!Promise.prototype.finally) { + Promise.prototype.finally = function(onfinally) { + const promise2 = this.constructor; + return this.then((value2) => promise2.resolve(onfinally && onfinally()).then(() => value2), (reason) => promise2.resolve(onfinally && onfinally()).then(() => { + throw reason; + })); + }; +} +function promisify(name, api) { + if (!shouldPromise(name)) { + return api; + } + if (!isFunction(api)) { + return api; + } + return function promiseApi(options = {}, ...rest) { + if (isFunction(options.success) || isFunction(options.fail) || isFunction(options.complete)) { + return wrapperReturnValue(name, invokeApi(name, api, options, rest)); + } + return wrapperReturnValue(name, handlePromise(new Promise((resolve2, reject) => { + invokeApi(name, api, extend({}, options, { + success: resolve2, + fail: reject + }), rest); + }))); + }; +} +const CALLBACKS = ["success", "fail", "cancel", "complete"]; +function initWrapper(protocols2) { + function processCallback(methodName, method, returnValue) { + return function(res) { + return method(processReturnValue(methodName, res, returnValue)); + }; + } + function processArgs(methodName, fromArgs, argsOption = {}, returnValue = {}, keepFromArgs = false) { + if (isPlainObject$3(fromArgs)) { + const toArgs = keepFromArgs === true ? fromArgs : {}; + if (isFunction(argsOption)) { + argsOption = argsOption(fromArgs, toArgs) || {}; + } + for (const key in fromArgs) { + if (hasOwn$1(argsOption, key)) { + let keyOption = argsOption[key]; + if (isFunction(keyOption)) { + keyOption = keyOption(fromArgs[key], fromArgs, toArgs); + } + if (!keyOption) { + console.warn(`微信小程序 ${methodName} 暂不支持 ${key}`); + } else if (isString(keyOption)) { + toArgs[keyOption] = fromArgs[key]; + } else if (isPlainObject$3(keyOption)) { + toArgs[keyOption.name ? keyOption.name : key] = keyOption.value; + } + } else if (CALLBACKS.indexOf(key) !== -1) { + const callback = fromArgs[key]; + if (isFunction(callback)) { + toArgs[key] = processCallback(methodName, callback, returnValue); + } + } else { + if (!keepFromArgs && !hasOwn$1(toArgs, key)) { + toArgs[key] = fromArgs[key]; + } + } + } + return toArgs; + } else if (isFunction(fromArgs)) { + fromArgs = processCallback(methodName, fromArgs, returnValue); + } + return fromArgs; + } + function processReturnValue(methodName, res, returnValue, keepReturnValue = false) { + if (isFunction(protocols2.returnValue)) { + res = protocols2.returnValue(methodName, res); + } + return processArgs(methodName, res, returnValue, {}, keepReturnValue); + } + return function wrapper(methodName, method) { + if (!hasOwn$1(protocols2, methodName)) { + return method; + } + const protocol = protocols2[methodName]; + if (!protocol) { + return function() { + console.error(`微信小程序 暂不支持${methodName}`); + }; + } + return function(arg1, arg2) { + let options = protocol; + if (isFunction(protocol)) { + options = protocol(arg1); + } + arg1 = processArgs(methodName, arg1, options.args, options.returnValue); + const args = [arg1]; + if (typeof arg2 !== "undefined") { + args.push(arg2); + } + const returnValue = wx[options.name || methodName].apply(wx, args); + if (isSyncApi(methodName)) { + return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName)); + } + return returnValue; + }; + }; +} +const getLocale = () => { + const app = isFunction(getApp) && getApp({ allowDefault: true }); + if (app && app.$vm) { + return app.$vm.$locale; + } + return normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN; +}; +const setLocale = (locale) => { + const app = isFunction(getApp) && getApp(); + if (!app) { + return false; + } + const oldLocale = app.$vm.$locale; + if (oldLocale !== locale) { + app.$vm.$locale = locale; + onLocaleChangeCallbacks.forEach((fn) => fn({ locale })); + return true; + } + return false; +}; +const onLocaleChangeCallbacks = []; +const onLocaleChange = (fn) => { + if (onLocaleChangeCallbacks.indexOf(fn) === -1) { + onLocaleChangeCallbacks.push(fn); + } +}; +if (typeof global !== "undefined") { + global.getLocale = getLocale; +} +const UUID_KEY = "__DC_STAT_UUID"; +let deviceId; +function useDeviceId(global2 = wx) { + return function addDeviceId(_2, toRes) { + deviceId = deviceId || global2.getStorageSync(UUID_KEY); + if (!deviceId) { + deviceId = Date.now() + "" + Math.floor(Math.random() * 1e7); + wx.setStorage({ + key: UUID_KEY, + data: deviceId + }); + } + toRes.deviceId = deviceId; + }; +} +function addSafeAreaInsets(fromRes, toRes) { + if (fromRes.safeArea) { + const safeArea = fromRes.safeArea; + toRes.safeAreaInsets = { + top: safeArea.top, + left: safeArea.left, + right: fromRes.windowWidth - safeArea.right, + bottom: fromRes.screenHeight - safeArea.bottom + }; + } +} +function populateParameters(fromRes, toRes) { + const { brand = "", model = "", system = "", language = "", theme, version: version2, platform: platform2, fontSizeSetting, SDKVersion, pixelRatio, deviceOrientation } = fromRes; + let osName = ""; + let osVersion = ""; + { + osName = system.split(" ")[0] || ""; + osVersion = system.split(" ")[1] || ""; + } + let hostVersion = version2; + let deviceType = getGetDeviceType(fromRes, model); + let deviceBrand = getDeviceBrand(brand); + let _hostName = getHostName(fromRes); + let _deviceOrientation = deviceOrientation; + let _devicePixelRatio = pixelRatio; + let _SDKVersion = SDKVersion; + const hostLanguage = language.replace(/_/g, "-"); + const parameters = { + appId: "", + appName: "", + appVersion: "1.0.0", + appVersionCode: "100", + appLanguage: getAppLanguage(hostLanguage), + uniCompileVersion: "3.8.12", + uniRuntimeVersion: "3.8.12", + uniPlatform: "mp-weixin", + deviceBrand, + deviceModel: model, + deviceType, + devicePixelRatio: _devicePixelRatio, + deviceOrientation: _deviceOrientation, + osName: osName.toLocaleLowerCase(), + osVersion, + hostTheme: theme, + hostVersion, + hostLanguage, + hostName: _hostName, + hostSDKVersion: _SDKVersion, + hostFontSizeSetting: fontSizeSetting, + windowTop: 0, + windowBottom: 0, + // TODO + osLanguage: void 0, + osTheme: void 0, + ua: void 0, + hostPackageName: void 0, + browserName: void 0, + browserVersion: void 0 + }; + extend(toRes, parameters); +} +function getGetDeviceType(fromRes, model) { + let deviceType = fromRes.deviceType || "phone"; + { + const deviceTypeMaps = { + ipad: "pad", + windows: "pc", + mac: "pc" + }; + const deviceTypeMapsKeys = Object.keys(deviceTypeMaps); + const _model = model.toLocaleLowerCase(); + for (let index2 = 0; index2 < deviceTypeMapsKeys.length; index2++) { + const _m = deviceTypeMapsKeys[index2]; + if (_model.indexOf(_m) !== -1) { + deviceType = deviceTypeMaps[_m]; + break; + } + } + } + return deviceType; +} +function getDeviceBrand(brand) { + let deviceBrand = brand; + if (deviceBrand) { + deviceBrand = deviceBrand.toLocaleLowerCase(); + } + return deviceBrand; +} +function getAppLanguage(defaultLanguage) { + return getLocale ? getLocale() : defaultLanguage; +} +function getHostName(fromRes) { + const _platform = "WeChat"; + let _hostName = fromRes.hostName || _platform; + { + if (fromRes.environment) { + _hostName = fromRes.environment; + } else if (fromRes.host && fromRes.host.env) { + _hostName = fromRes.host.env; + } + } + return _hostName; +} +const getSystemInfo = { + returnValue: (fromRes, toRes) => { + addSafeAreaInsets(fromRes, toRes); + useDeviceId()(fromRes, toRes); + populateParameters(fromRes, toRes); + } +}; +const getSystemInfoSync = getSystemInfo; +const redirectTo = {}; +const previewImage = { + args(fromArgs, toArgs) { + let currentIndex = parseInt(fromArgs.current); + if (isNaN(currentIndex)) { + return; + } + const urls = fromArgs.urls; + if (!isArray$2(urls)) { + return; + } + const len = urls.length; + if (!len) { + return; + } + if (currentIndex < 0) { + currentIndex = 0; + } else if (currentIndex >= len) { + currentIndex = len - 1; + } + if (currentIndex > 0) { + toArgs.current = urls[currentIndex]; + toArgs.urls = urls.filter((item, index2) => index2 < currentIndex ? item !== urls[currentIndex] : true); + } else { + toArgs.current = urls[0]; + } + return { + indicator: false, + loop: false + }; + } +}; +const showActionSheet = { + args(fromArgs, toArgs) { + toArgs.alertText = fromArgs.title; + } +}; +const getDeviceInfo = { + returnValue: (fromRes, toRes) => { + const { brand, model } = fromRes; + let deviceType = getGetDeviceType(fromRes, model); + let deviceBrand = getDeviceBrand(brand); + useDeviceId()(fromRes, toRes); + toRes = sortObject(extend(toRes, { + deviceType, + deviceBrand, + deviceModel: model + })); + } +}; +const getAppBaseInfo = { + returnValue: (fromRes, toRes) => { + const { version: version2, language, SDKVersion, theme } = fromRes; + let _hostName = getHostName(fromRes); + let hostLanguage = language.replace(/_/g, "-"); + toRes = sortObject(extend(toRes, { + hostVersion: version2, + hostLanguage, + hostName: _hostName, + hostSDKVersion: SDKVersion, + hostTheme: theme, + appId: "", + appName: "", + appVersion: "1.0.0", + appVersionCode: "100", + appLanguage: getAppLanguage(hostLanguage) + })); + } +}; +const getWindowInfo$1 = { + returnValue: (fromRes, toRes) => { + addSafeAreaInsets(fromRes, toRes); + toRes = sortObject(extend(toRes, { + windowTop: 0, + windowBottom: 0 + })); + } +}; +const getAppAuthorizeSetting = { + returnValue: function(fromRes, toRes) { + const { locationReducedAccuracy } = fromRes; + toRes.locationAccuracy = "unsupported"; + if (locationReducedAccuracy === true) { + toRes.locationAccuracy = "reduced"; + } else if (locationReducedAccuracy === false) { + toRes.locationAccuracy = "full"; + } + } +}; +const baseApis = { + $on, + $off, + $once, + $emit, + upx2px, + interceptors, + addInterceptor, + removeInterceptor, + onCreateVueApp, + invokeCreateVueAppHook, + getLocale, + setLocale, + onLocaleChange, + getPushClientId, + onPushMessage, + offPushMessage, + invokePushCallback +}; +function initUni(api, protocols2, platform2 = wx) { + const wrapper = initWrapper(protocols2); + const UniProxyHandlers = { + get(target, key) { + if (hasOwn$1(target, key)) { + return target[key]; + } + if (hasOwn$1(api, key)) { + return promisify(key, api[key]); + } + if (hasOwn$1(baseApis, key)) { + return promisify(key, baseApis[key]); + } + return promisify(key, wrapper(key, platform2[key])); + } + }; + return new Proxy({}, UniProxyHandlers); +} +function initGetProvider(providers) { + return function getProvider2({ service, success, fail, complete }) { + let res; + if (providers[service]) { + res = { + errMsg: "getProvider:ok", + service, + provider: providers[service] + }; + isFunction(success) && success(res); + } else { + res = { + errMsg: "getProvider:fail:服务[" + service + "]不存在" + }; + isFunction(fail) && fail(res); + } + isFunction(complete) && complete(res); + }; +} +const objectKeys = [ + "qy", + "env", + "error", + "version", + "lanDebug", + "cloud", + "serviceMarket", + "router", + "worklet", + "__webpack_require_UNI_MP_PLUGIN__" +]; +const singlePageDisableKey = ["lanDebug", "router", "worklet"]; +const launchOption = wx.getLaunchOptionsSync ? wx.getLaunchOptionsSync() : null; +function isWxKey(key) { + if (launchOption && launchOption.scene === 1154 && singlePageDisableKey.includes(key)) { + return false; + } + return objectKeys.indexOf(key) > -1 || typeof wx[key] === "function"; +} +function initWx() { + const newWx = {}; + for (const key in wx) { + if (isWxKey(key)) { + newWx[key] = wx[key]; + } + } + if (typeof globalThis !== "undefined" && typeof requireMiniProgram === "undefined") { + globalThis.wx = newWx; + } + return newWx; +} +const mocks$1 = ["__route__", "__wxExparserNodeId__", "__wxWebviewId__"]; +const getProvider = initGetProvider({ + oauth: ["weixin"], + share: ["weixin"], + payment: ["wxpay"], + push: ["weixin"] +}); +function initComponentMocks(component) { + const res = /* @__PURE__ */ Object.create(null); + mocks$1.forEach((name) => { + res[name] = component[name]; + }); + return res; +} +function createSelectorQuery() { + const query = wx$2.createSelectorQuery(); + const oldIn = query.in; + query.in = function newIn(component) { + return oldIn.call(this, initComponentMocks(component)); + }; + return query; +} +const wx$2 = initWx(); +let baseInfo = wx$2.getAppBaseInfo && wx$2.getAppBaseInfo(); +if (!baseInfo) { + baseInfo = wx$2.getSystemInfoSync(); +} +const host = baseInfo ? baseInfo.host : null; +const shareVideoMessage = host && host.env === "SAAASDK" ? wx$2.miniapp.shareVideoMessage : wx$2.shareVideoMessage; +var shims = /* @__PURE__ */ Object.freeze({ + __proto__: null, + createSelectorQuery, + getProvider, + shareVideoMessage +}); +const compressImage = { + args(fromArgs, toArgs) { + if (fromArgs.compressedHeight && !toArgs.compressHeight) { + toArgs.compressHeight = fromArgs.compressedHeight; + } + if (fromArgs.compressedWidth && !toArgs.compressWidth) { + toArgs.compressWidth = fromArgs.compressedWidth; + } + } +}; +var protocols = /* @__PURE__ */ Object.freeze({ + __proto__: null, + compressImage, + getAppAuthorizeSetting, + getAppBaseInfo, + getDeviceInfo, + getSystemInfo, + getSystemInfoSync, + getWindowInfo: getWindowInfo$1, + previewImage, + redirectTo, + showActionSheet +}); +const wx$1 = initWx(); +var index$1 = initUni(shims, protocols, wx$1); +function warn$1(msg, ...args) { + console.warn(`[Vue warn] ${msg}`, ...args); +} +let activeEffectScope; +class EffectScope { + constructor(detached = false) { + this.detached = detached; + this._active = true; + this.effects = []; + this.cleanups = []; + this.parent = activeEffectScope; + if (!detached && activeEffectScope) { + this.index = (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(this) - 1; + } + } + get active() { + return this._active; + } + run(fn) { + if (this._active) { + const currentEffectScope = activeEffectScope; + try { + activeEffectScope = this; + return fn(); + } finally { + activeEffectScope = currentEffectScope; + } + } else { + warn$1(`cannot run an inactive effect scope.`); + } + } + /** + * This should only be called on non-detached scopes + * @internal + */ + on() { + activeEffectScope = this; + } + /** + * This should only be called on non-detached scopes + * @internal + */ + off() { + activeEffectScope = this.parent; + } + stop(fromParent) { + if (this._active) { + let i2, l2; + for (i2 = 0, l2 = this.effects.length; i2 < l2; i2++) { + this.effects[i2].stop(); + } + for (i2 = 0, l2 = this.cleanups.length; i2 < l2; i2++) { + this.cleanups[i2](); + } + if (this.scopes) { + for (i2 = 0, l2 = this.scopes.length; i2 < l2; i2++) { + this.scopes[i2].stop(true); + } + } + if (!this.detached && this.parent && !fromParent) { + const last = this.parent.scopes.pop(); + if (last && last !== this) { + this.parent.scopes[this.index] = last; + last.index = this.index; + } + } + this.parent = void 0; + this._active = false; + } + } +} +function effectScope(detached) { + return new EffectScope(detached); +} +function recordEffectScope(effect, scope = activeEffectScope) { + if (scope && scope.active) { + scope.effects.push(effect); + } +} +function getCurrentScope() { + return activeEffectScope; +} +function onScopeDispose(fn) { + if (activeEffectScope) { + activeEffectScope.cleanups.push(fn); + } else { + warn$1(`onScopeDispose() is called when there is no active effect scope to be associated with.`); + } +} +const createDep = (effects) => { + const dep = new Set(effects); + dep.w = 0; + dep.n = 0; + return dep; +}; +const wasTracked = (dep) => (dep.w & trackOpBit) > 0; +const newTracked = (dep) => (dep.n & trackOpBit) > 0; +const initDepMarkers = ({ deps }) => { + if (deps.length) { + for (let i2 = 0; i2 < deps.length; i2++) { + deps[i2].w |= trackOpBit; + } + } +}; +const finalizeDepMarkers = (effect) => { + const { deps } = effect; + if (deps.length) { + let ptr = 0; + for (let i2 = 0; i2 < deps.length; i2++) { + const dep = deps[i2]; + if (wasTracked(dep) && !newTracked(dep)) { + dep.delete(effect); + } else { + deps[ptr++] = dep; + } + dep.w &= ~trackOpBit; + dep.n &= ~trackOpBit; + } + deps.length = ptr; + } +}; +const targetMap = /* @__PURE__ */ new WeakMap(); +let effectTrackDepth = 0; +let trackOpBit = 1; +const maxMarkerBits = 30; +let activeEffect; +const ITERATE_KEY = Symbol("iterate"); +const MAP_KEY_ITERATE_KEY = Symbol("Map key iterate"); +class ReactiveEffect { + constructor(fn, scheduler = null, scope) { + this.fn = fn; + this.scheduler = scheduler; + this.active = true; + this.deps = []; + this.parent = void 0; + recordEffectScope(this, scope); + } + run() { + if (!this.active) { + return this.fn(); + } + let parent = activeEffect; + let lastShouldTrack = shouldTrack; + while (parent) { + if (parent === this) { + return; + } + parent = parent.parent; + } + try { + this.parent = activeEffect; + activeEffect = this; + shouldTrack = true; + trackOpBit = 1 << ++effectTrackDepth; + if (effectTrackDepth <= maxMarkerBits) { + initDepMarkers(this); + } else { + cleanupEffect(this); + } + return this.fn(); + } finally { + if (effectTrackDepth <= maxMarkerBits) { + finalizeDepMarkers(this); + } + trackOpBit = 1 << --effectTrackDepth; + activeEffect = this.parent; + shouldTrack = lastShouldTrack; + this.parent = void 0; + if (this.deferStop) { + this.stop(); + } + } + } + stop() { + if (activeEffect === this) { + this.deferStop = true; + } else if (this.active) { + cleanupEffect(this); + if (this.onStop) { + this.onStop(); + } + this.active = false; + } + } +} +function cleanupEffect(effect) { + const { deps } = effect; + if (deps.length) { + for (let i2 = 0; i2 < deps.length; i2++) { + deps[i2].delete(effect); + } + deps.length = 0; + } +} +let shouldTrack = true; +const trackStack = []; +function pauseTracking() { + trackStack.push(shouldTrack); + shouldTrack = false; +} +function resetTracking() { + const last = trackStack.pop(); + shouldTrack = last === void 0 ? true : last; +} +function track(target, type, key) { + if (shouldTrack && activeEffect) { + let depsMap = targetMap.get(target); + if (!depsMap) { + targetMap.set(target, depsMap = /* @__PURE__ */ new Map()); + } + let dep = depsMap.get(key); + if (!dep) { + depsMap.set(key, dep = createDep()); + } + const eventInfo = { effect: activeEffect, target, type, key }; + trackEffects(dep, eventInfo); + } +} +function trackEffects(dep, debuggerEventExtraInfo) { + let shouldTrack2 = false; + if (effectTrackDepth <= maxMarkerBits) { + if (!newTracked(dep)) { + dep.n |= trackOpBit; + shouldTrack2 = !wasTracked(dep); + } + } else { + shouldTrack2 = !dep.has(activeEffect); + } + if (shouldTrack2) { + dep.add(activeEffect); + activeEffect.deps.push(dep); + if (activeEffect.onTrack) { + activeEffect.onTrack(Object.assign({ effect: activeEffect }, debuggerEventExtraInfo)); + } + } +} +function trigger(target, type, key, newValue, oldValue, oldTarget) { + const depsMap = targetMap.get(target); + if (!depsMap) { + return; + } + let deps = []; + if (type === "clear") { + deps = [...depsMap.values()]; + } else if (key === "length" && isArray$2(target)) { + const newLength = Number(newValue); + depsMap.forEach((dep, key2) => { + if (key2 === "length" || key2 >= newLength) { + deps.push(dep); + } + }); + } else { + if (key !== void 0) { + deps.push(depsMap.get(key)); + } + switch (type) { + case "add": + if (!isArray$2(target)) { + deps.push(depsMap.get(ITERATE_KEY)); + if (isMap(target)) { + deps.push(depsMap.get(MAP_KEY_ITERATE_KEY)); + } + } else if (isIntegerKey(key)) { + deps.push(depsMap.get("length")); + } + break; + case "delete": + if (!isArray$2(target)) { + deps.push(depsMap.get(ITERATE_KEY)); + if (isMap(target)) { + deps.push(depsMap.get(MAP_KEY_ITERATE_KEY)); + } + } + break; + case "set": + if (isMap(target)) { + deps.push(depsMap.get(ITERATE_KEY)); + } + break; + } + } + const eventInfo = { target, type, key, newValue, oldValue, oldTarget }; + if (deps.length === 1) { + if (deps[0]) { + { + triggerEffects(deps[0], eventInfo); + } + } + } else { + const effects = []; + for (const dep of deps) { + if (dep) { + effects.push(...dep); + } + } + { + triggerEffects(createDep(effects), eventInfo); + } + } +} +function triggerEffects(dep, debuggerEventExtraInfo) { + const effects = isArray$2(dep) ? dep : [...dep]; + for (const effect of effects) { + if (effect.computed) { + triggerEffect(effect, debuggerEventExtraInfo); + } + } + for (const effect of effects) { + if (!effect.computed) { + triggerEffect(effect, debuggerEventExtraInfo); + } + } +} +function triggerEffect(effect, debuggerEventExtraInfo) { + if (effect !== activeEffect || effect.allowRecurse) { + if (effect.onTrigger) { + effect.onTrigger(extend({ effect }, debuggerEventExtraInfo)); + } + if (effect.scheduler) { + effect.scheduler(); + } else { + effect.run(); + } + } +} +function getDepFromReactive(object2, key) { + var _a2; + return (_a2 = targetMap.get(object2)) === null || _a2 === void 0 ? void 0 : _a2.get(key); +} +const isNonTrackableKeys = /* @__PURE__ */ makeMap(`__proto__,__v_isRef,__isVue`); +const builtInSymbols = new Set( + /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((key) => key !== "arguments" && key !== "caller").map((key) => Symbol[key]).filter(isSymbol) +); +const get$1 = /* @__PURE__ */ createGetter(); +const shallowGet = /* @__PURE__ */ createGetter(false, true); +const readonlyGet = /* @__PURE__ */ createGetter(true); +const shallowReadonlyGet = /* @__PURE__ */ createGetter(true, true); +const arrayInstrumentations = /* @__PURE__ */ createArrayInstrumentations(); +function createArrayInstrumentations() { + const instrumentations = {}; + ["includes", "indexOf", "lastIndexOf"].forEach((key) => { + instrumentations[key] = function(...args) { + const arr = toRaw(this); + for (let i2 = 0, l2 = this.length; i2 < l2; i2++) { + track(arr, "get", i2 + ""); + } + const res = arr[key](...args); + if (res === -1 || res === false) { + return arr[key](...args.map(toRaw)); + } else { + return res; + } + }; + }); + ["push", "pop", "shift", "unshift", "splice"].forEach((key) => { + instrumentations[key] = function(...args) { + pauseTracking(); + const res = toRaw(this)[key].apply(this, args); + resetTracking(); + return res; + }; + }); + return instrumentations; +} +function hasOwnProperty(key) { + const obj = toRaw(this); + track(obj, "has", key); + return obj.hasOwnProperty(key); +} +function createGetter(isReadonly2 = false, shallow = false) { + return function get2(target, key, receiver) { + if (key === "__v_isReactive") { + return !isReadonly2; + } else if (key === "__v_isReadonly") { + return isReadonly2; + } else if (key === "__v_isShallow") { + return shallow; + } else if (key === "__v_raw" && receiver === (isReadonly2 ? shallow ? shallowReadonlyMap : readonlyMap : shallow ? shallowReactiveMap : reactiveMap).get(target)) { + return target; + } + const targetIsArray = isArray$2(target); + if (!isReadonly2) { + if (targetIsArray && hasOwn$1(arrayInstrumentations, key)) { + return Reflect.get(arrayInstrumentations, key, receiver); + } + if (key === "hasOwnProperty") { + return hasOwnProperty; + } + } + const res = Reflect.get(target, key, receiver); + if (isSymbol(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) { + return res; + } + if (!isReadonly2) { + track(target, "get", key); + } + if (shallow) { + return res; + } + if (isRef(res)) { + return targetIsArray && isIntegerKey(key) ? res : res.value; + } + if (isObject$3(res)) { + return isReadonly2 ? readonly(res) : reactive(res); + } + return res; + }; +} +const set$1 = /* @__PURE__ */ createSetter(); +const shallowSet = /* @__PURE__ */ createSetter(true); +function createSetter(shallow = false) { + return function set2(target, key, value2, receiver) { + let oldValue = target[key]; + if (isReadonly(oldValue) && isRef(oldValue) && !isRef(value2)) { + return false; + } + if (!shallow) { + if (!isShallow(value2) && !isReadonly(value2)) { + oldValue = toRaw(oldValue); + value2 = toRaw(value2); + } + if (!isArray$2(target) && isRef(oldValue) && !isRef(value2)) { + oldValue.value = value2; + return true; + } + } + const hadKey = isArray$2(target) && isIntegerKey(key) ? Number(key) < target.length : hasOwn$1(target, key); + const result = Reflect.set(target, key, value2, receiver); + if (target === toRaw(receiver)) { + if (!hadKey) { + trigger(target, "add", key, value2); + } else if (hasChanged(value2, oldValue)) { + trigger(target, "set", key, value2, oldValue); + } + } + return result; + }; +} +function deleteProperty(target, key) { + const hadKey = hasOwn$1(target, key); + const oldValue = target[key]; + const result = Reflect.deleteProperty(target, key); + if (result && hadKey) { + trigger(target, "delete", key, void 0, oldValue); + } + return result; +} +function has$1(target, key) { + const result = Reflect.has(target, key); + if (!isSymbol(key) || !builtInSymbols.has(key)) { + track(target, "has", key); + } + return result; +} +function ownKeys(target) { + track(target, "iterate", isArray$2(target) ? "length" : ITERATE_KEY); + return Reflect.ownKeys(target); +} +const mutableHandlers = { + get: get$1, + set: set$1, + deleteProperty, + has: has$1, + ownKeys +}; +const readonlyHandlers = { + get: readonlyGet, + set(target, key) { + { + warn$1(`Set operation on key "${String(key)}" failed: target is readonly.`, target); + } + return true; + }, + deleteProperty(target, key) { + { + warn$1(`Delete operation on key "${String(key)}" failed: target is readonly.`, target); + } + return true; + } +}; +const shallowReactiveHandlers = /* @__PURE__ */ extend({}, mutableHandlers, { + get: shallowGet, + set: shallowSet +}); +const shallowReadonlyHandlers = /* @__PURE__ */ extend({}, readonlyHandlers, { + get: shallowReadonlyGet +}); +const toShallow = (value2) => value2; +const getProto = (v2) => Reflect.getPrototypeOf(v2); +function get(target, key, isReadonly2 = false, isShallow2 = false) { + target = target[ + "__v_raw" + /* ReactiveFlags.RAW */ + ]; + const rawTarget = toRaw(target); + const rawKey = toRaw(key); + if (!isReadonly2) { + if (key !== rawKey) { + track(rawTarget, "get", key); + } + track(rawTarget, "get", rawKey); + } + const { has: has2 } = getProto(rawTarget); + const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive; + if (has2.call(rawTarget, key)) { + return wrap(target.get(key)); + } else if (has2.call(rawTarget, rawKey)) { + return wrap(target.get(rawKey)); + } else if (target !== rawTarget) { + target.get(key); + } +} +function has(key, isReadonly2 = false) { + const target = this[ + "__v_raw" + /* ReactiveFlags.RAW */ + ]; + const rawTarget = toRaw(target); + const rawKey = toRaw(key); + if (!isReadonly2) { + if (key !== rawKey) { + track(rawTarget, "has", key); + } + track(rawTarget, "has", rawKey); + } + return key === rawKey ? target.has(key) : target.has(key) || target.has(rawKey); +} +function size(target, isReadonly2 = false) { + target = target[ + "__v_raw" + /* ReactiveFlags.RAW */ + ]; + !isReadonly2 && track(toRaw(target), "iterate", ITERATE_KEY); + return Reflect.get(target, "size", target); +} +function add(value2) { + value2 = toRaw(value2); + const target = toRaw(this); + const proto = getProto(target); + const hadKey = proto.has.call(target, value2); + if (!hadKey) { + target.add(value2); + trigger(target, "add", value2, value2); + } + return this; +} +function set$2(key, value2) { + value2 = toRaw(value2); + const target = toRaw(this); + const { has: has2, get: get2 } = getProto(target); + let hadKey = has2.call(target, key); + if (!hadKey) { + key = toRaw(key); + hadKey = has2.call(target, key); + } else { + checkIdentityKeys(target, has2, key); + } + const oldValue = get2.call(target, key); + target.set(key, value2); + if (!hadKey) { + trigger(target, "add", key, value2); + } else if (hasChanged(value2, oldValue)) { + trigger(target, "set", key, value2, oldValue); + } + return this; +} +function deleteEntry(key) { + const target = toRaw(this); + const { has: has2, get: get2 } = getProto(target); + let hadKey = has2.call(target, key); + if (!hadKey) { + key = toRaw(key); + hadKey = has2.call(target, key); + } else { + checkIdentityKeys(target, has2, key); + } + const oldValue = get2 ? get2.call(target, key) : void 0; + const result = target.delete(key); + if (hadKey) { + trigger(target, "delete", key, void 0, oldValue); + } + return result; +} +function clear() { + const target = toRaw(this); + const hadItems = target.size !== 0; + const oldTarget = isMap(target) ? new Map(target) : new Set(target); + const result = target.clear(); + if (hadItems) { + trigger(target, "clear", void 0, void 0, oldTarget); + } + return result; +} +function createForEach(isReadonly2, isShallow2) { + return function forEach4(callback, thisArg) { + const observed = this; + const target = observed[ + "__v_raw" + /* ReactiveFlags.RAW */ + ]; + const rawTarget = toRaw(target); + const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive; + !isReadonly2 && track(rawTarget, "iterate", ITERATE_KEY); + return target.forEach((value2, key) => { + return callback.call(thisArg, wrap(value2), wrap(key), observed); + }); + }; +} +function createIterableMethod(method, isReadonly2, isShallow2) { + return function(...args) { + const target = this[ + "__v_raw" + /* ReactiveFlags.RAW */ + ]; + const rawTarget = toRaw(target); + const targetIsMap = isMap(rawTarget); + const isPair = method === "entries" || method === Symbol.iterator && targetIsMap; + const isKeyOnly = method === "keys" && targetIsMap; + const innerIterator = target[method](...args); + const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive; + !isReadonly2 && track(rawTarget, "iterate", isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY); + return { + // iterator protocol + next() { + const { value: value2, done } = innerIterator.next(); + return done ? { value: value2, done } : { + value: isPair ? [wrap(value2[0]), wrap(value2[1])] : wrap(value2), + done + }; + }, + // iterable protocol + [Symbol.iterator]() { + return this; + } + }; + }; +} +function createReadonlyMethod(type) { + return function(...args) { + { + const key = args[0] ? `on key "${args[0]}" ` : ``; + console.warn(`${capitalize(type)} operation ${key}failed: target is readonly.`, toRaw(this)); + } + return type === "delete" ? false : this; + }; +} +function createInstrumentations() { + const mutableInstrumentations2 = { + get(key) { + return get(this, key); + }, + get size() { + return size(this); + }, + has, + add, + set: set$2, + delete: deleteEntry, + clear, + forEach: createForEach(false, false) + }; + const shallowInstrumentations2 = { + get(key) { + return get(this, key, false, true); + }, + get size() { + return size(this); + }, + has, + add, + set: set$2, + delete: deleteEntry, + clear, + forEach: createForEach(false, true) + }; + const readonlyInstrumentations2 = { + get(key) { + return get(this, key, true); + }, + get size() { + return size(this, true); + }, + has(key) { + return has.call(this, key, true); + }, + add: createReadonlyMethod( + "add" + /* TriggerOpTypes.ADD */ + ), + set: createReadonlyMethod( + "set" + /* TriggerOpTypes.SET */ + ), + delete: createReadonlyMethod( + "delete" + /* TriggerOpTypes.DELETE */ + ), + clear: createReadonlyMethod( + "clear" + /* TriggerOpTypes.CLEAR */ + ), + forEach: createForEach(true, false) + }; + const shallowReadonlyInstrumentations2 = { + get(key) { + return get(this, key, true, true); + }, + get size() { + return size(this, true); + }, + has(key) { + return has.call(this, key, true); + }, + add: createReadonlyMethod( + "add" + /* TriggerOpTypes.ADD */ + ), + set: createReadonlyMethod( + "set" + /* TriggerOpTypes.SET */ + ), + delete: createReadonlyMethod( + "delete" + /* TriggerOpTypes.DELETE */ + ), + clear: createReadonlyMethod( + "clear" + /* TriggerOpTypes.CLEAR */ + ), + forEach: createForEach(true, true) + }; + const iteratorMethods = ["keys", "values", "entries", Symbol.iterator]; + iteratorMethods.forEach((method) => { + mutableInstrumentations2[method] = createIterableMethod(method, false, false); + readonlyInstrumentations2[method] = createIterableMethod(method, true, false); + shallowInstrumentations2[method] = createIterableMethod(method, false, true); + shallowReadonlyInstrumentations2[method] = createIterableMethod(method, true, true); + }); + return [ + mutableInstrumentations2, + readonlyInstrumentations2, + shallowInstrumentations2, + shallowReadonlyInstrumentations2 + ]; +} +const [mutableInstrumentations, readonlyInstrumentations, shallowInstrumentations, shallowReadonlyInstrumentations] = /* @__PURE__ */ createInstrumentations(); +function createInstrumentationGetter(isReadonly2, shallow) { + const instrumentations = shallow ? isReadonly2 ? shallowReadonlyInstrumentations : shallowInstrumentations : isReadonly2 ? readonlyInstrumentations : mutableInstrumentations; + return (target, key, receiver) => { + if (key === "__v_isReactive") { + return !isReadonly2; + } else if (key === "__v_isReadonly") { + return isReadonly2; + } else if (key === "__v_raw") { + return target; + } + return Reflect.get(hasOwn$1(instrumentations, key) && key in target ? instrumentations : target, key, receiver); + }; +} +const mutableCollectionHandlers = { + get: /* @__PURE__ */ createInstrumentationGetter(false, false) +}; +const shallowCollectionHandlers = { + get: /* @__PURE__ */ createInstrumentationGetter(false, true) +}; +const readonlyCollectionHandlers = { + get: /* @__PURE__ */ createInstrumentationGetter(true, false) +}; +const shallowReadonlyCollectionHandlers = { + get: /* @__PURE__ */ createInstrumentationGetter(true, true) +}; +function checkIdentityKeys(target, has2, key) { + const rawKey = toRaw(key); + if (rawKey !== key && has2.call(target, rawKey)) { + const type = toRawType(target); + console.warn(`Reactive ${type} contains both the raw and reactive versions of the same object${type === `Map` ? ` as keys` : ``}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`); + } +} +const reactiveMap = /* @__PURE__ */ new WeakMap(); +const shallowReactiveMap = /* @__PURE__ */ new WeakMap(); +const readonlyMap = /* @__PURE__ */ new WeakMap(); +const shallowReadonlyMap = /* @__PURE__ */ new WeakMap(); +function targetTypeMap(rawType) { + switch (rawType) { + case "Object": + case "Array": + return 1; + case "Map": + case "Set": + case "WeakMap": + case "WeakSet": + return 2; + default: + return 0; + } +} +function getTargetType(value2) { + return value2[ + "__v_skip" + /* ReactiveFlags.SKIP */ + ] || !Object.isExtensible(value2) ? 0 : targetTypeMap(toRawType(value2)); +} +function reactive(target) { + if (isReadonly(target)) { + return target; + } + return createReactiveObject(target, false, mutableHandlers, mutableCollectionHandlers, reactiveMap); +} +function shallowReactive(target) { + return createReactiveObject(target, false, shallowReactiveHandlers, shallowCollectionHandlers, shallowReactiveMap); +} +function readonly(target) { + return createReactiveObject(target, true, readonlyHandlers, readonlyCollectionHandlers, readonlyMap); +} +function shallowReadonly(target) { + return createReactiveObject(target, true, shallowReadonlyHandlers, shallowReadonlyCollectionHandlers, shallowReadonlyMap); +} +function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandlers, proxyMap) { + if (!isObject$3(target)) { + { + console.warn(`value cannot be made reactive: ${String(target)}`); + } + return target; + } + if (target[ + "__v_raw" + /* ReactiveFlags.RAW */ + ] && !(isReadonly2 && target[ + "__v_isReactive" + /* ReactiveFlags.IS_REACTIVE */ + ])) { + return target; + } + const existingProxy = proxyMap.get(target); + if (existingProxy) { + return existingProxy; + } + const targetType = getTargetType(target); + if (targetType === 0) { + return target; + } + const proxy = new Proxy(target, targetType === 2 ? collectionHandlers : baseHandlers); + proxyMap.set(target, proxy); + return proxy; +} +function isReactive(value2) { + if (isReadonly(value2)) { + return isReactive(value2[ + "__v_raw" + /* ReactiveFlags.RAW */ + ]); + } + return !!(value2 && value2[ + "__v_isReactive" + /* ReactiveFlags.IS_REACTIVE */ + ]); +} +function isReadonly(value2) { + return !!(value2 && value2[ + "__v_isReadonly" + /* ReactiveFlags.IS_READONLY */ + ]); +} +function isShallow(value2) { + return !!(value2 && value2[ + "__v_isShallow" + /* ReactiveFlags.IS_SHALLOW */ + ]); +} +function isProxy(value2) { + return isReactive(value2) || isReadonly(value2); +} +function toRaw(observed) { + const raw = observed && observed[ + "__v_raw" + /* ReactiveFlags.RAW */ + ]; + return raw ? toRaw(raw) : observed; +} +function markRaw(value2) { + def(value2, "__v_skip", true); + return value2; +} +const toReactive = (value2) => isObject$3(value2) ? reactive(value2) : value2; +const toReadonly = (value2) => isObject$3(value2) ? readonly(value2) : value2; +function trackRefValue(ref2) { + if (shouldTrack && activeEffect) { + ref2 = toRaw(ref2); + { + trackEffects(ref2.dep || (ref2.dep = createDep()), { + target: ref2, + type: "get", + key: "value" + }); + } + } +} +function triggerRefValue(ref2, newVal) { + ref2 = toRaw(ref2); + const dep = ref2.dep; + if (dep) { + { + triggerEffects(dep, { + target: ref2, + type: "set", + key: "value", + newValue: newVal + }); + } + } +} +function isRef(r2) { + return !!(r2 && r2.__v_isRef === true); +} +function ref(value2) { + return createRef(value2, false); +} +function createRef(rawValue, shallow) { + if (isRef(rawValue)) { + return rawValue; + } + return new RefImpl(rawValue, shallow); +} +class RefImpl { + constructor(value2, __v_isShallow) { + this.__v_isShallow = __v_isShallow; + this.dep = void 0; + this.__v_isRef = true; + this._rawValue = __v_isShallow ? value2 : toRaw(value2); + this._value = __v_isShallow ? value2 : toReactive(value2); + } + get value() { + trackRefValue(this); + return this._value; + } + set value(newVal) { + const useDirectValue = this.__v_isShallow || isShallow(newVal) || isReadonly(newVal); + newVal = useDirectValue ? newVal : toRaw(newVal); + if (hasChanged(newVal, this._rawValue)) { + this._rawValue = newVal; + this._value = useDirectValue ? newVal : toReactive(newVal); + triggerRefValue(this, newVal); + } + } +} +function unref(ref2) { + return isRef(ref2) ? ref2.value : ref2; +} +const shallowUnwrapHandlers = { + get: (target, key, receiver) => unref(Reflect.get(target, key, receiver)), + set: (target, key, value2, receiver) => { + const oldValue = target[key]; + if (isRef(oldValue) && !isRef(value2)) { + oldValue.value = value2; + return true; + } else { + return Reflect.set(target, key, value2, receiver); + } + } +}; +function proxyRefs(objectWithRefs) { + return isReactive(objectWithRefs) ? objectWithRefs : new Proxy(objectWithRefs, shallowUnwrapHandlers); +} +function toRefs(object2) { + if (!isProxy(object2)) { + console.warn(`toRefs() expects a reactive object but received a plain one.`); + } + const ret = isArray$2(object2) ? new Array(object2.length) : {}; + for (const key in object2) { + ret[key] = toRef(object2, key); + } + return ret; +} +class ObjectRefImpl { + constructor(_object, _key, _defaultValue) { + this._object = _object; + this._key = _key; + this._defaultValue = _defaultValue; + this.__v_isRef = true; + } + get value() { + const val = this._object[this._key]; + return val === void 0 ? this._defaultValue : val; + } + set value(newVal) { + this._object[this._key] = newVal; + } + get dep() { + return getDepFromReactive(toRaw(this._object), this._key); + } +} +function toRef(object2, key, defaultValue) { + const val = object2[key]; + return isRef(val) ? val : new ObjectRefImpl(object2, key, defaultValue); +} +var _a; +class ComputedRefImpl { + constructor(getter, _setter, isReadonly2, isSSR) { + this._setter = _setter; + this.dep = void 0; + this.__v_isRef = true; + this[_a] = false; + this._dirty = true; + this.effect = new ReactiveEffect(getter, () => { + if (!this._dirty) { + this._dirty = true; + triggerRefValue(this); + } + }); + this.effect.computed = this; + this.effect.active = this._cacheable = !isSSR; + this[ + "__v_isReadonly" + /* ReactiveFlags.IS_READONLY */ + ] = isReadonly2; + } + get value() { + const self2 = toRaw(this); + trackRefValue(self2); + if (self2._dirty || !self2._cacheable) { + self2._dirty = false; + self2._value = self2.effect.run(); + } + return self2._value; + } + set value(newValue) { + this._setter(newValue); + } +} +_a = "__v_isReadonly"; +function computed$1(getterOrOptions, debugOptions, isSSR = false) { + let getter; + let setter; + const onlyGetter = isFunction(getterOrOptions); + if (onlyGetter) { + getter = getterOrOptions; + setter = () => { + console.warn("Write operation failed: computed value is readonly"); + }; + } else { + getter = getterOrOptions.get; + setter = getterOrOptions.set; + } + const cRef = new ComputedRefImpl(getter, setter, onlyGetter || !setter, isSSR); + if (debugOptions && !isSSR) { + cRef.effect.onTrack = debugOptions.onTrack; + cRef.effect.onTrigger = debugOptions.onTrigger; + } + return cRef; +} +const stack = []; +function pushWarningContext(vnode) { + stack.push(vnode); +} +function popWarningContext() { + stack.pop(); +} +function warn(msg, ...args) { + pauseTracking(); + const instance = stack.length ? stack[stack.length - 1].component : null; + const appWarnHandler = instance && instance.appContext.config.warnHandler; + const trace = getComponentTrace(); + if (appWarnHandler) { + callWithErrorHandling(appWarnHandler, instance, 11, [ + msg + args.join(""), + instance && instance.proxy, + trace.map(({ vnode }) => `at <${formatComponentName(instance, vnode.type)}>`).join("\n"), + trace + ]); + } else { + const warnArgs = [`[Vue warn]: ${msg}`, ...args]; + if (trace.length && // avoid spamming console during tests + true) { + warnArgs.push(` +`, ...formatTrace(trace)); + } + console.warn(...warnArgs); + } + resetTracking(); +} +function getComponentTrace() { + let currentVNode = stack[stack.length - 1]; + if (!currentVNode) { + return []; + } + const normalizedStack = []; + while (currentVNode) { + const last = normalizedStack[0]; + if (last && last.vnode === currentVNode) { + last.recurseCount++; + } else { + normalizedStack.push({ + vnode: currentVNode, + recurseCount: 0 + }); + } + const parentInstance = currentVNode.component && currentVNode.component.parent; + currentVNode = parentInstance && parentInstance.vnode; + } + return normalizedStack; +} +function formatTrace(trace) { + const logs = []; + trace.forEach((entry, i2) => { + logs.push(...i2 === 0 ? [] : [` +`], ...formatTraceEntry(entry)); + }); + return logs; +} +function formatTraceEntry({ vnode, recurseCount }) { + const postfix = recurseCount > 0 ? `... (${recurseCount} recursive calls)` : ``; + const isRoot = vnode.component ? vnode.component.parent == null : false; + const open = ` at <${formatComponentName(vnode.component, vnode.type, isRoot)}`; + const close = `>` + postfix; + return vnode.props ? [open, ...formatProps(vnode.props), close] : [open + close]; +} +function formatProps(props2) { + const res = []; + const keys = Object.keys(props2); + keys.slice(0, 3).forEach((key) => { + res.push(...formatProp(key, props2[key])); + }); + if (keys.length > 3) { + res.push(` ...`); + } + return res; +} +function formatProp(key, value2, raw) { + if (isString(value2)) { + value2 = JSON.stringify(value2); + return raw ? value2 : [`${key}=${value2}`]; + } else if (typeof value2 === "number" || typeof value2 === "boolean" || value2 == null) { + return raw ? value2 : [`${key}=${value2}`]; + } else if (isRef(value2)) { + value2 = formatProp(key, toRaw(value2.value), true); + return raw ? value2 : [`${key}=Ref<`, value2, `>`]; + } else if (isFunction(value2)) { + return [`${key}=fn${value2.name ? `<${value2.name}>` : ``}`]; + } else { + value2 = toRaw(value2); + return raw ? value2 : [`${key}=`, value2]; + } +} +const ErrorTypeStrings = { + [ + "sp" + /* LifecycleHooks.SERVER_PREFETCH */ + ]: "serverPrefetch hook", + [ + "bc" + /* LifecycleHooks.BEFORE_CREATE */ + ]: "beforeCreate hook", + [ + "c" + /* LifecycleHooks.CREATED */ + ]: "created hook", + [ + "bm" + /* LifecycleHooks.BEFORE_MOUNT */ + ]: "beforeMount hook", + [ + "m" + /* LifecycleHooks.MOUNTED */ + ]: "mounted hook", + [ + "bu" + /* LifecycleHooks.BEFORE_UPDATE */ + ]: "beforeUpdate hook", + [ + "u" + /* LifecycleHooks.UPDATED */ + ]: "updated", + [ + "bum" + /* LifecycleHooks.BEFORE_UNMOUNT */ + ]: "beforeUnmount hook", + [ + "um" + /* LifecycleHooks.UNMOUNTED */ + ]: "unmounted hook", + [ + "a" + /* LifecycleHooks.ACTIVATED */ + ]: "activated hook", + [ + "da" + /* LifecycleHooks.DEACTIVATED */ + ]: "deactivated hook", + [ + "ec" + /* LifecycleHooks.ERROR_CAPTURED */ + ]: "errorCaptured hook", + [ + "rtc" + /* LifecycleHooks.RENDER_TRACKED */ + ]: "renderTracked hook", + [ + "rtg" + /* LifecycleHooks.RENDER_TRIGGERED */ + ]: "renderTriggered hook", + [ + 0 + /* ErrorCodes.SETUP_FUNCTION */ + ]: "setup function", + [ + 1 + /* ErrorCodes.RENDER_FUNCTION */ + ]: "render function", + [ + 2 + /* ErrorCodes.WATCH_GETTER */ + ]: "watcher getter", + [ + 3 + /* ErrorCodes.WATCH_CALLBACK */ + ]: "watcher callback", + [ + 4 + /* ErrorCodes.WATCH_CLEANUP */ + ]: "watcher cleanup function", + [ + 5 + /* ErrorCodes.NATIVE_EVENT_HANDLER */ + ]: "native event handler", + [ + 6 + /* ErrorCodes.COMPONENT_EVENT_HANDLER */ + ]: "component event handler", + [ + 7 + /* ErrorCodes.VNODE_HOOK */ + ]: "vnode hook", + [ + 8 + /* ErrorCodes.DIRECTIVE_HOOK */ + ]: "directive hook", + [ + 9 + /* ErrorCodes.TRANSITION_HOOK */ + ]: "transition hook", + [ + 10 + /* ErrorCodes.APP_ERROR_HANDLER */ + ]: "app errorHandler", + [ + 11 + /* ErrorCodes.APP_WARN_HANDLER */ + ]: "app warnHandler", + [ + 12 + /* ErrorCodes.FUNCTION_REF */ + ]: "ref function", + [ + 13 + /* ErrorCodes.ASYNC_COMPONENT_LOADER */ + ]: "async component loader", + [ + 14 + /* ErrorCodes.SCHEDULER */ + ]: "scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core" +}; +function callWithErrorHandling(fn, instance, type, args) { + let res; + try { + res = args ? fn(...args) : fn(); + } catch (err) { + handleError(err, instance, type); + } + return res; +} +function callWithAsyncErrorHandling(fn, instance, type, args) { + if (isFunction(fn)) { + const res = callWithErrorHandling(fn, instance, type, args); + if (res && isPromise(res)) { + res.catch((err) => { + handleError(err, instance, type); + }); + } + return res; + } + const values = []; + for (let i2 = 0; i2 < fn.length; i2++) { + values.push(callWithAsyncErrorHandling(fn[i2], instance, type, args)); + } + return values; +} +function handleError(err, instance, type, throwInDev = true) { + const contextVNode = instance ? instance.vnode : null; + if (instance) { + let cur = instance.parent; + const exposedInstance = instance.proxy; + const errorInfo = ErrorTypeStrings[type] || type; + while (cur) { + const errorCapturedHooks = cur.ec; + if (errorCapturedHooks) { + for (let i2 = 0; i2 < errorCapturedHooks.length; i2++) { + if (errorCapturedHooks[i2](err, exposedInstance, errorInfo) === false) { + return; + } + } + } + cur = cur.parent; + } + const appErrorHandler = instance.appContext.config.errorHandler; + if (appErrorHandler) { + callWithErrorHandling(appErrorHandler, null, 10, [err, exposedInstance, errorInfo]); + return; + } + } + logError(err, type, contextVNode, throwInDev); +} +function logError(err, type, contextVNode, throwInDev = true) { + { + const info = ErrorTypeStrings[type] || type; + if (contextVNode) { + pushWarningContext(contextVNode); + } + warn(`Unhandled error${info ? ` during execution of ${info}` : ``}`); + if (contextVNode) { + popWarningContext(); + } + if (throwInDev) { + console.error(err); + } else { + console.error(err); + } + } +} +let isFlushing = false; +let isFlushPending = false; +const queue = []; +let flushIndex = 0; +const pendingPostFlushCbs = []; +let activePostFlushCbs = null; +let postFlushIndex = 0; +const resolvedPromise = /* @__PURE__ */ Promise.resolve(); +let currentFlushPromise = null; +const RECURSION_LIMIT = 100; +function nextTick$1(fn) { + const p2 = currentFlushPromise || resolvedPromise; + return fn ? p2.then(this ? fn.bind(this) : fn) : p2; +} +function findInsertionIndex(id) { + let start = flushIndex + 1; + let end = queue.length; + while (start < end) { + const middle = start + end >>> 1; + const middleJobId = getId(queue[middle]); + middleJobId < id ? start = middle + 1 : end = middle; + } + return start; +} +function queueJob(job) { + if (!queue.length || !queue.includes(job, isFlushing && job.allowRecurse ? flushIndex + 1 : flushIndex)) { + if (job.id == null) { + queue.push(job); + } else { + queue.splice(findInsertionIndex(job.id), 0, job); + } + queueFlush(); + } +} +function queueFlush() { + if (!isFlushing && !isFlushPending) { + isFlushPending = true; + currentFlushPromise = resolvedPromise.then(flushJobs); + } +} +function hasQueueJob(job) { + return queue.indexOf(job) > -1; +} +function invalidateJob(job) { + const i2 = queue.indexOf(job); + if (i2 > flushIndex) { + queue.splice(i2, 1); + } +} +function queuePostFlushCb(cb) { + if (!isArray$2(cb)) { + if (!activePostFlushCbs || !activePostFlushCbs.includes(cb, cb.allowRecurse ? postFlushIndex + 1 : postFlushIndex)) { + pendingPostFlushCbs.push(cb); + } + } else { + pendingPostFlushCbs.push(...cb); + } + queueFlush(); +} +function flushPreFlushCbs(seen, i2 = isFlushing ? flushIndex + 1 : 0) { + { + seen = seen || /* @__PURE__ */ new Map(); + } + for (; i2 < queue.length; i2++) { + const cb = queue[i2]; + if (cb && cb.pre) { + if (checkRecursiveUpdates(seen, cb)) { + continue; + } + queue.splice(i2, 1); + i2--; + cb(); + } + } +} +function flushPostFlushCbs(seen) { + if (pendingPostFlushCbs.length) { + const deduped = [...new Set(pendingPostFlushCbs)]; + pendingPostFlushCbs.length = 0; + if (activePostFlushCbs) { + activePostFlushCbs.push(...deduped); + return; + } + activePostFlushCbs = deduped; + { + seen = seen || /* @__PURE__ */ new Map(); + } + activePostFlushCbs.sort((a2, b2) => getId(a2) - getId(b2)); + for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) { + if (checkRecursiveUpdates(seen, activePostFlushCbs[postFlushIndex])) { + continue; + } + activePostFlushCbs[postFlushIndex](); + } + activePostFlushCbs = null; + postFlushIndex = 0; + } +} +const getId = (job) => job.id == null ? Infinity : job.id; +const comparator = (a2, b2) => { + const diff2 = getId(a2) - getId(b2); + if (diff2 === 0) { + if (a2.pre && !b2.pre) + return -1; + if (b2.pre && !a2.pre) + return 1; + } + return diff2; +}; +function flushJobs(seen) { + isFlushPending = false; + isFlushing = true; + { + seen = seen || /* @__PURE__ */ new Map(); + } + queue.sort(comparator); + const check = (job) => checkRecursiveUpdates(seen, job); + try { + for (flushIndex = 0; flushIndex < queue.length; flushIndex++) { + const job = queue[flushIndex]; + if (job && job.active !== false) { + if (check(job)) { + continue; + } + callWithErrorHandling( + job, + null, + 14 + /* ErrorCodes.SCHEDULER */ + ); + } + } + } finally { + flushIndex = 0; + queue.length = 0; + flushPostFlushCbs(seen); + isFlushing = false; + currentFlushPromise = null; + if (queue.length || pendingPostFlushCbs.length) { + flushJobs(seen); + } + } +} +function checkRecursiveUpdates(seen, fn) { + if (!seen.has(fn)) { + seen.set(fn, 1); + } else { + const count = seen.get(fn); + if (count > RECURSION_LIMIT) { + const instance = fn.ownerInstance; + const componentName = instance && getComponentName(instance.type); + warn(`Maximum recursive updates exceeded${componentName ? ` in component <${componentName}>` : ``}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`); + return true; + } else { + seen.set(fn, count + 1); + } + } +} +let devtools; +let buffer = []; +let devtoolsNotInstalled = false; +function emit$1(event, ...args) { + if (devtools) { + devtools.emit(event, ...args); + } else if (!devtoolsNotInstalled) { + buffer.push({ event, args }); + } +} +function setDevtoolsHook(hook, target) { + var _a2, _b; + devtools = hook; + if (devtools) { + devtools.enabled = true; + buffer.forEach(({ event, args }) => devtools.emit(event, ...args)); + buffer = []; + } else if ( + // handle late devtools injection - only do this if we are in an actual + // browser environment to avoid the timer handle stalling test runner exit + // (#4815) + typeof window !== "undefined" && // some envs mock window but not fully + // eslint-disable-next-line no-restricted-globals + window.HTMLElement && // also exclude jsdom + // eslint-disable-next-line no-restricted-globals + !((_b = (_a2 = window.navigator) === null || _a2 === void 0 ? void 0 : _a2.userAgent) === null || _b === void 0 ? void 0 : _b.includes("jsdom")) + ) { + const replay = target.__VUE_DEVTOOLS_HOOK_REPLAY__ = target.__VUE_DEVTOOLS_HOOK_REPLAY__ || []; + replay.push((newHook) => { + setDevtoolsHook(newHook, target); + }); + setTimeout(() => { + if (!devtools) { + target.__VUE_DEVTOOLS_HOOK_REPLAY__ = null; + devtoolsNotInstalled = true; + buffer = []; + } + }, 3e3); + } else { + devtoolsNotInstalled = true; + buffer = []; + } +} +function devtoolsInitApp(app, version2) { + emit$1("app:init", app, version2, { + Fragment, + Text: Text$1, + Comment, + Static + }); +} +const devtoolsComponentAdded = /* @__PURE__ */ createDevtoolsComponentHook( + "component:added" + /* DevtoolsHooks.COMPONENT_ADDED */ +); +const devtoolsComponentUpdated = /* @__PURE__ */ createDevtoolsComponentHook( + "component:updated" + /* DevtoolsHooks.COMPONENT_UPDATED */ +); +const _devtoolsComponentRemoved = /* @__PURE__ */ createDevtoolsComponentHook( + "component:removed" + /* DevtoolsHooks.COMPONENT_REMOVED */ +); +const devtoolsComponentRemoved = (component) => { + if (devtools && typeof devtools.cleanupBuffer === "function" && // remove the component if it wasn't buffered + !devtools.cleanupBuffer(component)) { + _devtoolsComponentRemoved(component); + } +}; +function createDevtoolsComponentHook(hook) { + return (component) => { + emit$1( + hook, + component.appContext.app, + component.uid, + // fixed by xxxxxx + // 为 0 是 App,无 parent 是 Page 指向 App + component.uid === 0 ? void 0 : component.parent ? component.parent.uid : 0, + component + ); + }; +} +const devtoolsPerfStart = /* @__PURE__ */ createDevtoolsPerformanceHook( + "perf:start" + /* DevtoolsHooks.PERFORMANCE_START */ +); +const devtoolsPerfEnd = /* @__PURE__ */ createDevtoolsPerformanceHook( + "perf:end" + /* DevtoolsHooks.PERFORMANCE_END */ +); +function createDevtoolsPerformanceHook(hook) { + return (component, type, time) => { + emit$1(hook, component.appContext.app, component.uid, component, type, time); + }; +} +function devtoolsComponentEmit(component, event, params) { + emit$1("component:emit", component.appContext.app, component, event, params); +} +function emit(instance, event, ...rawArgs) { + if (instance.isUnmounted) + return; + const props2 = instance.vnode.props || EMPTY_OBJ; + { + const { emitsOptions, propsOptions: [propsOptions] } = instance; + if (emitsOptions) { + if (!(event in emitsOptions) && true) { + if (!propsOptions || !(toHandlerKey(event) in propsOptions)) { + warn(`Component emitted event "${event}" but it is neither declared in the emits option nor as an "${toHandlerKey(event)}" prop.`); + } + } else { + const validator = emitsOptions[event]; + if (isFunction(validator)) { + const isValid = validator(...rawArgs); + if (!isValid) { + warn(`Invalid event arguments: event validation failed for event "${event}".`); + } + } + } + } + } + let args = rawArgs; + const isModelListener2 = event.startsWith("update:"); + const modelArg = isModelListener2 && event.slice(7); + if (modelArg && modelArg in props2) { + const modifiersKey = `${modelArg === "modelValue" ? "model" : modelArg}Modifiers`; + const { number: number2, trim: trim2 } = props2[modifiersKey] || EMPTY_OBJ; + if (trim2) { + args = rawArgs.map((a2) => isString(a2) ? a2.trim() : a2); + } + if (number2) { + args = rawArgs.map(looseToNumber); + } + } + { + devtoolsComponentEmit(instance, event, args); + } + { + const lowerCaseEvent = event.toLowerCase(); + if (lowerCaseEvent !== event && props2[toHandlerKey(lowerCaseEvent)]) { + warn(`Event "${lowerCaseEvent}" is emitted in component ${formatComponentName(instance, instance.type)} but the handler is registered for "${event}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${hyphenate(event)}" instead of "${event}".`); + } + } + let handlerName; + let handler = props2[handlerName = toHandlerKey(event)] || // also try camelCase event handler (#2249) + props2[handlerName = toHandlerKey(camelize(event))]; + if (!handler && isModelListener2) { + handler = props2[handlerName = toHandlerKey(hyphenate(event))]; + } + if (handler) { + callWithAsyncErrorHandling(handler, instance, 6, args); + } + const onceHandler = props2[handlerName + `Once`]; + if (onceHandler) { + if (!instance.emitted) { + instance.emitted = {}; + } else if (instance.emitted[handlerName]) { + return; + } + instance.emitted[handlerName] = true; + callWithAsyncErrorHandling(onceHandler, instance, 6, args); + } +} +function normalizeEmitsOptions(comp, appContext, asMixin = false) { + const cache = appContext.emitsCache; + const cached = cache.get(comp); + if (cached !== void 0) { + return cached; + } + const raw = comp.emits; + let normalized = {}; + let hasExtends = false; + if (!isFunction(comp)) { + const extendEmits = (raw2) => { + const normalizedFromExtend = normalizeEmitsOptions(raw2, appContext, true); + if (normalizedFromExtend) { + hasExtends = true; + extend(normalized, normalizedFromExtend); + } + }; + if (!asMixin && appContext.mixins.length) { + appContext.mixins.forEach(extendEmits); + } + if (comp.extends) { + extendEmits(comp.extends); + } + if (comp.mixins) { + comp.mixins.forEach(extendEmits); + } + } + if (!raw && !hasExtends) { + if (isObject$3(comp)) { + cache.set(comp, null); + } + return null; + } + if (isArray$2(raw)) { + raw.forEach((key) => normalized[key] = null); + } else { + extend(normalized, raw); + } + if (isObject$3(comp)) { + cache.set(comp, normalized); + } + return normalized; +} +function isEmitListener(options, key) { + if (!options || !isOn(key)) { + return false; + } + key = key.slice(2).replace(/Once$/, ""); + return hasOwn$1(options, key[0].toLowerCase() + key.slice(1)) || hasOwn$1(options, hyphenate(key)) || hasOwn$1(options, key); +} +let currentRenderingInstance = null; +function setCurrentRenderingInstance(instance) { + const prev = currentRenderingInstance; + currentRenderingInstance = instance; + instance && instance.type.__scopeId || null; + return prev; +} +function provide(key, value2) { + if (!currentInstance) { + { + warn(`provide() can only be used inside setup().`); + } + } else { + let provides = currentInstance.provides; + const parentProvides = currentInstance.parent && currentInstance.parent.provides; + if (parentProvides === provides) { + provides = currentInstance.provides = Object.create(parentProvides); + } + provides[key] = value2; + if (currentInstance.type.mpType === "app") { + currentInstance.appContext.app.provide(key, value2); + } + } +} +function inject(key, defaultValue, treatDefaultAsFactory = false) { + const instance = currentInstance || currentRenderingInstance; + if (instance) { + const provides = instance.parent == null ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides; + if (provides && key in provides) { + return provides[key]; + } else if (arguments.length > 1) { + return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance.proxy) : defaultValue; + } else { + warn(`injection "${String(key)}" not found.`); + } + } else { + warn(`inject() can only be used inside setup() or functional components.`); + } +} +const INITIAL_WATCHER_VALUE = {}; +function watch(source, cb, options) { + if (!isFunction(cb)) { + warn(`\`watch(fn, options?)\` signature has been moved to a separate API. Use \`watchEffect(fn, options?)\` instead. \`watch\` now only supports \`watch(source, cb, options?) signature.`); + } + return doWatch(source, cb, options); +} +function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EMPTY_OBJ) { + if (!cb) { + if (immediate !== void 0) { + warn(`watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`); + } + if (deep !== void 0) { + warn(`watch() "deep" option is only respected when using the watch(source, callback, options?) signature.`); + } + } + const warnInvalidSource = (s2) => { + warn(`Invalid watch source: `, s2, `A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.`); + }; + const instance = getCurrentScope() === (currentInstance === null || currentInstance === void 0 ? void 0 : currentInstance.scope) ? currentInstance : null; + let getter; + let forceTrigger = false; + let isMultiSource = false; + if (isRef(source)) { + getter = () => source.value; + forceTrigger = isShallow(source); + } else if (isReactive(source)) { + getter = () => source; + deep = true; + } else if (isArray$2(source)) { + isMultiSource = true; + forceTrigger = source.some((s2) => isReactive(s2) || isShallow(s2)); + getter = () => source.map((s2) => { + if (isRef(s2)) { + return s2.value; + } else if (isReactive(s2)) { + return traverse(s2); + } else if (isFunction(s2)) { + return callWithErrorHandling( + s2, + instance, + 2 + /* ErrorCodes.WATCH_GETTER */ + ); + } else { + warnInvalidSource(s2); + } + }); + } else if (isFunction(source)) { + if (cb) { + getter = () => callWithErrorHandling( + source, + instance, + 2 + /* ErrorCodes.WATCH_GETTER */ + ); + } else { + getter = () => { + if (instance && instance.isUnmounted) { + return; + } + if (cleanup) { + cleanup(); + } + return callWithAsyncErrorHandling(source, instance, 3, [onCleanup]); + }; + } + } else { + getter = NOOP; + warnInvalidSource(source); + } + if (cb && deep) { + const baseGetter = getter; + getter = () => traverse(baseGetter()); + } + let cleanup; + let onCleanup = (fn) => { + cleanup = effect.onStop = () => { + callWithErrorHandling( + fn, + instance, + 4 + /* ErrorCodes.WATCH_CLEANUP */ + ); + }; + }; + let oldValue = isMultiSource ? new Array(source.length).fill(INITIAL_WATCHER_VALUE) : INITIAL_WATCHER_VALUE; + const job = () => { + if (!effect.active) { + return; + } + if (cb) { + const newValue = effect.run(); + if (deep || forceTrigger || (isMultiSource ? newValue.some((v2, i2) => hasChanged(v2, oldValue[i2])) : hasChanged(newValue, oldValue)) || false) { + if (cleanup) { + cleanup(); + } + callWithAsyncErrorHandling(cb, instance, 3, [ + newValue, + // pass undefined as the old value when it's changed for the first time + oldValue === INITIAL_WATCHER_VALUE ? void 0 : isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE ? [] : oldValue, + onCleanup + ]); + oldValue = newValue; + } + } else { + effect.run(); + } + }; + job.allowRecurse = !!cb; + let scheduler; + if (flush === "sync") { + scheduler = job; + } else if (flush === "post") { + scheduler = () => queuePostRenderEffect$1(job, instance && instance.suspense); + } else { + job.pre = true; + if (instance) + job.id = instance.uid; + scheduler = () => queueJob(job); + } + const effect = new ReactiveEffect(getter, scheduler); + { + effect.onTrack = onTrack; + effect.onTrigger = onTrigger; + } + if (cb) { + if (immediate) { + job(); + } else { + oldValue = effect.run(); + } + } else if (flush === "post") { + queuePostRenderEffect$1(effect.run.bind(effect), instance && instance.suspense); + } else { + effect.run(); + } + const unwatch = () => { + effect.stop(); + if (instance && instance.scope) { + remove(instance.scope.effects, effect); + } + }; + return unwatch; +} +function instanceWatch(source, value2, options) { + const publicThis = this.proxy; + const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis); + let cb; + if (isFunction(value2)) { + cb = value2; + } else { + cb = value2.handler; + options = value2; + } + const cur = currentInstance; + setCurrentInstance(this); + const res = doWatch(getter, cb.bind(publicThis), options); + if (cur) { + setCurrentInstance(cur); + } else { + unsetCurrentInstance(); + } + return res; +} +function createPathGetter(ctx, path) { + const segments = path.split("."); + return () => { + let cur = ctx; + for (let i2 = 0; i2 < segments.length && cur; i2++) { + cur = cur[segments[i2]]; + } + return cur; + }; +} +function traverse(value2, seen) { + if (!isObject$3(value2) || value2[ + "__v_skip" + /* ReactiveFlags.SKIP */ + ]) { + return value2; + } + seen = seen || /* @__PURE__ */ new Set(); + if (seen.has(value2)) { + return value2; + } + seen.add(value2); + if (isRef(value2)) { + traverse(value2.value, seen); + } else if (isArray$2(value2)) { + for (let i2 = 0; i2 < value2.length; i2++) { + traverse(value2[i2], seen); + } + } else if (isSet(value2) || isMap(value2)) { + value2.forEach((v2) => { + traverse(v2, seen); + }); + } else if (isPlainObject$3(value2)) { + for (const key in value2) { + traverse(value2[key], seen); + } + } + return value2; +} +function defineComponent(options) { + return isFunction(options) ? { setup: options, name: options.name } : options; +} +const isKeepAlive = (vnode) => vnode.type.__isKeepAlive; +function onActivated(hook, target) { + registerKeepAliveHook(hook, "a", target); +} +function onDeactivated(hook, target) { + registerKeepAliveHook(hook, "da", target); +} +function registerKeepAliveHook(hook, type, target = currentInstance) { + const wrappedHook = hook.__wdc || (hook.__wdc = () => { + let current = target; + while (current) { + if (current.isDeactivated) { + return; + } + current = current.parent; + } + return hook(); + }); + injectHook(type, wrappedHook, target); + if (target) { + let current = target.parent; + while (current && current.parent) { + if (isKeepAlive(current.parent.vnode)) { + injectToKeepAliveRoot(wrappedHook, type, target, current); + } + current = current.parent; + } + } +} +function injectToKeepAliveRoot(hook, type, target, keepAliveRoot) { + const injected = injectHook( + type, + hook, + keepAliveRoot, + true + /* prepend */ + ); + onUnmounted(() => { + remove(keepAliveRoot[type], injected); + }, target); +} +function injectHook(type, hook, target = currentInstance, prepend = false) { + if (target) { + if (isRootHook(type)) { + target = target.root; + } + const hooks = target[type] || (target[type] = []); + const wrappedHook = hook.__weh || (hook.__weh = (...args) => { + if (target.isUnmounted) { + return; + } + pauseTracking(); + setCurrentInstance(target); + const res = callWithAsyncErrorHandling(hook, target, type, args); + unsetCurrentInstance(); + resetTracking(); + return res; + }); + if (prepend) { + hooks.unshift(wrappedHook); + } else { + hooks.push(wrappedHook); + } + return wrappedHook; + } else { + const apiName = toHandlerKey((ErrorTypeStrings[type] || type.replace(/^on/, "")).replace(/ hook$/, "")); + warn(`${apiName} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup().`); + } +} +const createHook$1 = (lifecycle) => (hook, target = currentInstance) => ( + // post-create lifecycle registrations are noops during SSR (except for serverPrefetch) + (!isInSSRComponentSetup || lifecycle === "sp") && injectHook(lifecycle, (...args) => hook(...args), target) +); +const onBeforeMount = createHook$1( + "bm" + /* LifecycleHooks.BEFORE_MOUNT */ +); +const onMounted = createHook$1( + "m" + /* LifecycleHooks.MOUNTED */ +); +const onBeforeUpdate = createHook$1( + "bu" + /* LifecycleHooks.BEFORE_UPDATE */ +); +const onUpdated = createHook$1( + "u" + /* LifecycleHooks.UPDATED */ +); +const onBeforeUnmount = createHook$1( + "bum" + /* LifecycleHooks.BEFORE_UNMOUNT */ +); +const onUnmounted = createHook$1( + "um" + /* LifecycleHooks.UNMOUNTED */ +); +const onServerPrefetch = createHook$1( + "sp" + /* LifecycleHooks.SERVER_PREFETCH */ +); +const onRenderTriggered = createHook$1( + "rtg" + /* LifecycleHooks.RENDER_TRIGGERED */ +); +const onRenderTracked = createHook$1( + "rtc" + /* LifecycleHooks.RENDER_TRACKED */ +); +function onErrorCaptured(hook, target = currentInstance) { + injectHook("ec", hook, target); +} +function validateDirectiveName(name) { + if (isBuiltInDirective(name)) { + warn("Do not use built-in directive ids as custom directive id: " + name); + } +} +const COMPONENTS = "components"; +function resolveComponent(name, maybeSelfReference) { + return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name; +} +function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false) { + const instance = currentRenderingInstance || currentInstance; + if (instance) { + const Component2 = instance.type; + if (type === COMPONENTS) { + const selfName = getComponentName( + Component2, + false + /* do not include inferred name to avoid breaking existing code */ + ); + if (selfName && (selfName === name || selfName === camelize(name) || selfName === capitalize(camelize(name)))) { + return Component2; + } + } + const res = ( + // local registration + // check instance[type] first which is resolved for options API + resolve(instance[type] || Component2[type], name) || // global registration + resolve(instance.appContext[type], name) + ); + if (!res && maybeSelfReference) { + return Component2; + } + if (warnMissing && !res) { + const extra = type === COMPONENTS ? ` +If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.` : ``; + warn(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`); + } + return res; + } else { + warn(`resolve${capitalize(type.slice(0, -1))} can only be used in render() or setup().`); + } +} +function resolve(registry, name) { + return registry && (registry[name] || registry[camelize(name)] || registry[capitalize(camelize(name))]); +} +const getPublicInstance = (i2) => { + if (!i2) + return null; + if (isStatefulComponent(i2)) + return getExposeProxy(i2) || i2.proxy; + return getPublicInstance(i2.parent); +}; +const publicPropertiesMap = ( + // Move PURE marker to new line to workaround compiler discarding it + // due to type annotation + /* @__PURE__ */ extend(/* @__PURE__ */ Object.create(null), { + $: (i2) => i2, + // fixed by xxxxxx vue-i18n 在 dev 模式,访问了 $el,故模拟一个假的 + // $el: i => i.vnode.el, + $el: (i2) => i2.__$el || (i2.__$el = {}), + $data: (i2) => i2.data, + $props: (i2) => shallowReadonly(i2.props), + $attrs: (i2) => shallowReadonly(i2.attrs), + $slots: (i2) => shallowReadonly(i2.slots), + $refs: (i2) => shallowReadonly(i2.refs), + $parent: (i2) => getPublicInstance(i2.parent), + $root: (i2) => getPublicInstance(i2.root), + $emit: (i2) => i2.emit, + $options: (i2) => resolveMergedOptions(i2), + $forceUpdate: (i2) => i2.f || (i2.f = () => queueJob(i2.update)), + // $nextTick: i => i.n || (i.n = nextTick.bind(i.proxy!)),// fixed by xxxxxx + $watch: (i2) => instanceWatch.bind(i2) + }) +); +const isReservedPrefix = (key) => key === "_" || key === "$"; +const hasSetupBinding = (state, key) => state !== EMPTY_OBJ && !state.__isScriptSetup && hasOwn$1(state, key); +const PublicInstanceProxyHandlers = { + get({ _: instance }, key) { + const { ctx, setupState, data, props: props2, accessCache, type, appContext } = instance; + if (key === "__isVue") { + return true; + } + let normalizedProps; + if (key[0] !== "$") { + const n2 = accessCache[key]; + if (n2 !== void 0) { + switch (n2) { + case 1: + return setupState[key]; + case 2: + return data[key]; + case 4: + return ctx[key]; + case 3: + return props2[key]; + } + } else if (hasSetupBinding(setupState, key)) { + accessCache[key] = 1; + return setupState[key]; + } else if (data !== EMPTY_OBJ && hasOwn$1(data, key)) { + accessCache[key] = 2; + return data[key]; + } else if ( + // only cache other properties when instance has declared (thus stable) + // props + (normalizedProps = instance.propsOptions[0]) && hasOwn$1(normalizedProps, key) + ) { + accessCache[key] = 3; + return props2[key]; + } else if (ctx !== EMPTY_OBJ && hasOwn$1(ctx, key)) { + accessCache[key] = 4; + return ctx[key]; + } else if (shouldCacheAccess) { + accessCache[key] = 0; + } + } + const publicGetter = publicPropertiesMap[key]; + let cssModule, globalProperties; + if (publicGetter) { + if (key === "$attrs") { + track(instance, "get", key); + } + return publicGetter(instance); + } else if ( + // css module (injected by vue-loader) + (cssModule = type.__cssModules) && (cssModule = cssModule[key]) + ) { + return cssModule; + } else if (ctx !== EMPTY_OBJ && hasOwn$1(ctx, key)) { + accessCache[key] = 4; + return ctx[key]; + } else if ( + // global properties + globalProperties = appContext.config.globalProperties, hasOwn$1(globalProperties, key) + ) { + { + return globalProperties[key]; + } + } else if (currentRenderingInstance && (!isString(key) || // #1091 avoid internal isRef/isVNode checks on component instance leading + // to infinite warning loop + key.indexOf("__v") !== 0)) { + if (data !== EMPTY_OBJ && isReservedPrefix(key[0]) && hasOwn$1(data, key)) { + warn(`Property ${JSON.stringify(key)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`); + } else if (instance === currentRenderingInstance) { + warn(`Property ${JSON.stringify(key)} was accessed during render but is not defined on instance.`); + } + } + }, + set({ _: instance }, key, value2) { + const { data, setupState, ctx } = instance; + if (hasSetupBinding(setupState, key)) { + setupState[key] = value2; + return true; + } else if (setupState.__isScriptSetup && hasOwn$1(setupState, key)) { + warn(`Cannot mutate