feat:初始化
This commit is contained in:
parent
066650e4e3
commit
4711f95598
3
.env.development
Normal file
3
.env.development
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
NODE_ENV= development
|
||||||
|
VITE_HTTP_BASE_URL = http://10.39.13.80:8003/api/
|
||||||
|
VITE_ACCESS_TOKEN_KEY= 'ACCESS_TOKEN_CUSTOMER'
|
||||||
3
.env.prod
Normal file
3
.env.prod
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
NODE_ENV= prod
|
||||||
|
# VITE_HTTP_BASE_URL= https://v3api.nchl.net/api/
|
||||||
|
VITE_ACCESS_TOKEN_KEY= 'NCHL_PROD_ACCESS_TOKEN_CUSTOMER'
|
||||||
3
.env.test
Normal file
3
.env.test
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
NODE_ENV= test
|
||||||
|
# VITE_HTTP_BASE_URL= https://v3api-dev.nchl.net/api/
|
||||||
|
VITE_ACCESS_TOKEN_KEY= 'NCHL_TEST_ACCESS_TOKEN_CUSTOMER'
|
||||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
node_modules
|
||||||
10
.prettierrc
Normal file
10
.prettierrc
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"semi": false,
|
||||||
|
"singleQuote": true,
|
||||||
|
"tabWidth": 2,
|
||||||
|
"trailingComma": "none",
|
||||||
|
"printWidth": 100,
|
||||||
|
"bracketSpacing": true,
|
||||||
|
"arrowParens": "avoid",
|
||||||
|
"endOfLine": "auto"
|
||||||
|
}
|
||||||
17
.vscode/settings.json
vendored
Normal file
17
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"editor.formatOnSave": true,
|
||||||
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||||
|
"[vue]": {
|
||||||
|
"editor.defaultFormatter": "vscode.typescript-language-features"
|
||||||
|
},
|
||||||
|
"[javascript]": {
|
||||||
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
|
},
|
||||||
|
"[typescript]": {
|
||||||
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
|
},
|
||||||
|
"[json]": {
|
||||||
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
|
},
|
||||||
|
"prettier.requireConfig": true
|
||||||
|
}
|
||||||
22
dist/dev/mp-weixin/INDEX/bill/index.js
vendored
Normal file
22
dist/dev/mp-weixin/INDEX/bill/index.js
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
"use strict";
|
||||||
|
const common_vendor = require("../../common/vendor.js");
|
||||||
|
const INDEX_bill_method = require("./method.js");
|
||||||
|
require("./model.js");
|
||||||
|
require("../../common/libraries/apiLoading.js");
|
||||||
|
require("../../gen/Apis.js");
|
||||||
|
require("../../common/libraries/request.js");
|
||||||
|
require("../../common/store/useWeAppAuthStore.js");
|
||||||
|
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||||
|
__name: "index",
|
||||||
|
setup(__props) {
|
||||||
|
common_vendor.onLoad(() => {
|
||||||
|
var _a;
|
||||||
|
(_a = INDEX_bill_method.method) == null ? void 0 : _a.handleGetList();
|
||||||
|
});
|
||||||
|
return (_ctx, _cache) => {
|
||||||
|
return {};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
});
|
||||||
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-customer/src/INDEX/bill/index.vue"]]);
|
||||||
|
wx.createPage(MiniProgramPage);
|
||||||
4
dist/dev/mp-weixin/INDEX/bill/index.json
vendored
Normal file
4
dist/dev/mp-weixin/INDEX/bill/index.json
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"navigationBarTitleText": "我的账单",
|
||||||
|
"usingComponents": {}
|
||||||
|
}
|
||||||
1
dist/dev/mp-weixin/INDEX/bill/index.wxml
vendored
Normal file
1
dist/dev/mp-weixin/INDEX/bill/index.wxml
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
2
|
||||||
8
dist/dev/mp-weixin/INDEX/bill/index.wxss
vendored
Normal file
8
dist/dev/mp-weixin/INDEX/bill/index.wxss
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
page {
|
||||||
|
background-color: #f8f8f8;
|
||||||
|
}
|
||||||
|
.form_card {
|
||||||
|
background-color: #fff;
|
||||||
|
padding: 0 30rpx;
|
||||||
|
margin-bottom: 30rpx;
|
||||||
|
}
|
||||||
13
dist/dev/mp-weixin/INDEX/bill/method.js
vendored
Normal file
13
dist/dev/mp-weixin/INDEX/bill/method.js
vendored
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
"use strict";
|
||||||
|
require("../../common/vendor.js");
|
||||||
|
const INDEX_bill_model = require("./model.js");
|
||||||
|
const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js");
|
||||||
|
const gen_Apis = require("../../gen/Apis.js");
|
||||||
|
const method = {
|
||||||
|
handleGetList: () => {
|
||||||
|
var _a, _b;
|
||||||
|
common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Bill.HouseBills.List, (_b = (_a = INDEX_bill_model.model) == null ? void 0 : _a.formData) == null ? void 0 : _b.value).then((res) => {
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
exports.method = method;
|
||||||
8
dist/dev/mp-weixin/INDEX/bill/model.js
vendored
Normal file
8
dist/dev/mp-weixin/INDEX/bill/model.js
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
"use strict";
|
||||||
|
const common_vendor = require("../../common/vendor.js");
|
||||||
|
const model = {
|
||||||
|
formData: common_vendor.ref({
|
||||||
|
asset_houses_id: 1
|
||||||
|
})
|
||||||
|
};
|
||||||
|
exports.model = model;
|
||||||
108
dist/dev/mp-weixin/INDEX/binding/index.js
vendored
Normal file
108
dist/dev/mp-weixin/INDEX/binding/index.js
vendored
Normal file
@ -0,0 +1,108 @@
|
|||||||
|
"use strict";
|
||||||
|
const common_vendor = require("../../common/vendor.js");
|
||||||
|
const gen_Enums = require("../../gen/Enums.js");
|
||||||
|
const INDEX_binding_method = require("./method.js");
|
||||||
|
const INDEX_binding_model = require("./model.js");
|
||||||
|
if (!Array) {
|
||||||
|
const _easycom_hs_popup_project2 = common_vendor.resolveComponent("hs-popup-project");
|
||||||
|
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_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_date_picker2 = common_vendor.resolveComponent("hs-date-picker");
|
||||||
|
const _easycom_hs_footer2 = common_vendor.resolveComponent("hs-footer");
|
||||||
|
(_easycom_hs_popup_project2 + _easycom_hs_radio_cell_picker2 + _easycom_hs_input2 + _easycom_hs_cell2 + _easycom_hs_upload_id_card2 + _easycom_hs_upload2 + _easycom_hs_date_picker2 + _easycom_hs_footer2)();
|
||||||
|
}
|
||||||
|
const _easycom_hs_popup_project = () => "../../components/hs-popup-project/hs-popup-project.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 = () => "../../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_date_picker = () => "../../components/hs-date-picker/hs-date-picker.js";
|
||||||
|
const _easycom_hs_footer = () => "../../components/hs-footer/hs-footer.js";
|
||||||
|
if (!Math) {
|
||||||
|
(_easycom_hs_popup_project + _easycom_hs_radio_cell_picker + _easycom_hs_input + _easycom_hs_cell + _easycom_hs_upload_id_card + _easycom_hs_upload + _easycom_hs_date_picker + _easycom_hs_footer)();
|
||||||
|
}
|
||||||
|
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||||
|
__name: "index",
|
||||||
|
setup(__props) {
|
||||||
|
return (_ctx, _cache) => {
|
||||||
|
var _a;
|
||||||
|
return {
|
||||||
|
a: common_vendor.o((_a = common_vendor.unref(INDEX_binding_method.method)) == null ? void 0 : _a.handleSelectProject),
|
||||||
|
b: common_vendor.p({
|
||||||
|
title: "选择小区"
|
||||||
|
}),
|
||||||
|
c: common_vendor.o(($event) => common_vendor.unref(INDEX_binding_model.model).formData.value.type = $event),
|
||||||
|
d: common_vendor.p({
|
||||||
|
Enums: common_vendor.unref(gen_Enums.HouseOccupantsHouseRelationEnum),
|
||||||
|
title: "请选择您的身份",
|
||||||
|
required: true,
|
||||||
|
borderTop: true,
|
||||||
|
valueModel: common_vendor.unref(INDEX_binding_model.model).formData.value.type
|
||||||
|
}),
|
||||||
|
e: common_vendor.o(($event) => common_vendor.unref(INDEX_binding_model.model).formData.value.name = $event),
|
||||||
|
f: common_vendor.p({
|
||||||
|
textAlign: "right",
|
||||||
|
modelValue: common_vendor.unref(INDEX_binding_model.model).formData.value.name
|
||||||
|
}),
|
||||||
|
g: common_vendor.p({
|
||||||
|
title: "真实姓名",
|
||||||
|
required: true,
|
||||||
|
borderTop: true
|
||||||
|
}),
|
||||||
|
h: common_vendor.o(($event) => common_vendor.unref(INDEX_binding_model.model).formData.value.phone = $event),
|
||||||
|
i: common_vendor.p({
|
||||||
|
textAlign: "right",
|
||||||
|
modelValue: common_vendor.unref(INDEX_binding_model.model).formData.value.phone
|
||||||
|
}),
|
||||||
|
j: common_vendor.p({
|
||||||
|
title: "手机号",
|
||||||
|
required: true,
|
||||||
|
borderTop: true
|
||||||
|
}),
|
||||||
|
k: common_vendor.o(($event) => common_vendor.unref(INDEX_binding_model.model).formData.value.name = $event),
|
||||||
|
l: common_vendor.p({
|
||||||
|
textAlign: "right",
|
||||||
|
modelValue: common_vendor.unref(INDEX_binding_model.model).formData.value.name
|
||||||
|
}),
|
||||||
|
m: common_vendor.p({
|
||||||
|
title: "身份证号",
|
||||||
|
required: true
|
||||||
|
}),
|
||||||
|
n: common_vendor.o(($event) => common_vendor.unref(INDEX_binding_model.model).formData.value.card_front_image = $event),
|
||||||
|
o: common_vendor.o(($event) => common_vendor.unref(INDEX_binding_model.model).formData.value.card_back_image = $event),
|
||||||
|
p: common_vendor.p({
|
||||||
|
required: true,
|
||||||
|
borderTop: true,
|
||||||
|
valueFrontModel: common_vendor.unref(INDEX_binding_model.model).formData.value.card_front_image,
|
||||||
|
valueBackModel: common_vendor.unref(INDEX_binding_model.model).formData.value.card_back_image
|
||||||
|
}),
|
||||||
|
q: common_vendor.o(($event) => common_vendor.unref(INDEX_binding_model.model).formData.value.ownership_info = $event),
|
||||||
|
r: common_vendor.p({
|
||||||
|
title: "上传房产证",
|
||||||
|
count: 10,
|
||||||
|
size: 4,
|
||||||
|
required: true,
|
||||||
|
valueModel: common_vendor.unref(INDEX_binding_model.model).formData.value.ownership_info
|
||||||
|
}),
|
||||||
|
s: common_vendor.p({
|
||||||
|
title: "是否入住该房屋",
|
||||||
|
required: true
|
||||||
|
}),
|
||||||
|
t: common_vendor.p({
|
||||||
|
title: "入住时间",
|
||||||
|
borderTop: true,
|
||||||
|
isLink: true
|
||||||
|
}),
|
||||||
|
v: common_vendor.p({
|
||||||
|
btnParimaryName: "绑定房屋"
|
||||||
|
})
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
});
|
||||||
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-customer/src/INDEX/binding/index.vue"]]);
|
||||||
|
wx.createPage(MiniProgramPage);
|
||||||
13
dist/dev/mp-weixin/INDEX/binding/index.json
vendored
Normal file
13
dist/dev/mp-weixin/INDEX/binding/index.json
vendored
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"navigationBarTitleText": "绑定房屋",
|
||||||
|
"usingComponents": {
|
||||||
|
"hs-popup-project": "../../components/hs-popup-project/hs-popup-project",
|
||||||
|
"hs-radio-cell-picker": "../../components/hs-radio-cell-picker/hs-radio-cell-picker",
|
||||||
|
"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-date-picker": "../../components/hs-date-picker/hs-date-picker",
|
||||||
|
"hs-footer": "../../components/hs-footer/hs-footer"
|
||||||
|
}
|
||||||
|
}
|
||||||
1
dist/dev/mp-weixin/INDEX/binding/index.wxml
vendored
Normal file
1
dist/dev/mp-weixin/INDEX/binding/index.wxml
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
<view class="bangding_form_data"><view class="form_card"><hs-popup-project wx:if="{{b}}" bindchange="{{a}}" u-i="d19a6168-0" bind:__l="__l" u-p="{{b}}"/><hs-radio-cell-picker wx:if="{{d}}" u-i="d19a6168-1" bind:__l="__l" bindupdateValueModel="{{c}}" u-p="{{d}}"/><hs-cell wx:if="{{g}}" u-s="{{['d']}}" u-i="d19a6168-2" bind:__l="__l" u-p="{{g}}"><hs-input wx:if="{{f}}" u-i="d19a6168-3,d19a6168-2" bind:__l="__l" bindupdateModelValue="{{e}}" u-p="{{f}}"/></hs-cell><hs-cell wx:if="{{j}}" u-s="{{['d']}}" u-i="d19a6168-4" bind:__l="__l" u-p="{{j}}"><hs-input wx:if="{{i}}" u-i="d19a6168-5,d19a6168-4" bind:__l="__l" bindupdateModelValue="{{h}}" u-p="{{i}}"/></hs-cell></view><view class="form_card"><hs-cell wx:if="{{m}}" u-s="{{['d']}}" u-i="d19a6168-6" bind:__l="__l" u-p="{{m}}"><hs-input wx:if="{{l}}" u-i="d19a6168-7,d19a6168-6" bind:__l="__l" bindupdateModelValue="{{k}}" u-p="{{l}}"/></hs-cell><hs-upload-id-card wx:if="{{p}}" u-i="d19a6168-8" bind:__l="__l" bindupdateValueFrontModel="{{n}}" bindupdateValueBackModel="{{o}}" u-p="{{p}}"/><hs-upload wx:if="{{r}}" u-i="d19a6168-9" bind:__l="__l" bindupdateValueModel="{{q}}" u-p="{{r}}"/></view><view class="form_card"><hs-cell wx:if="{{s}}" u-s="{{['d']}}" u-i="d19a6168-10" bind:__l="__l" u-p="{{s}}"><switch color="#FFCC33" style="transform:scale(0.7)"/></hs-cell><hs-date-picker wx:if="{{t}}" u-i="d19a6168-11" bind:__l="__l" u-p="{{t}}"/></view><hs-footer wx:if="{{v}}" u-i="d19a6168-12" bind:__l="__l" u-p="{{v}}"/></view>
|
||||||
12
dist/dev/mp-weixin/INDEX/binding/index.wxss
vendored
Normal file
12
dist/dev/mp-weixin/INDEX/binding/index.wxss
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
page {
|
||||||
|
background-color: #f8f8f8;
|
||||||
|
}
|
||||||
|
.form_card {
|
||||||
|
background-color: #fff;
|
||||||
|
padding: 0 30rpx;
|
||||||
|
margin-bottom: 30rpx;
|
||||||
|
}
|
||||||
|
.bangding_form_data {
|
||||||
|
padding-bottom: calc(130rpx + constant(safe-area-inset-bottom));
|
||||||
|
padding-bottom: calc(130rpx + env(safe-area-inset-bottom));
|
||||||
|
}
|
||||||
12
dist/dev/mp-weixin/INDEX/binding/method.js
vendored
Normal file
12
dist/dev/mp-weixin/INDEX/binding/method.js
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
"use strict";
|
||||||
|
require("../../common/vendor.js");
|
||||||
|
const INDEX_binding_model = require("./model.js");
|
||||||
|
const method = {
|
||||||
|
handleSelectProject: (e) => {
|
||||||
|
INDEX_binding_model.model.formData.value.asset_project_id = e == null ? void 0 : e.id;
|
||||||
|
},
|
||||||
|
handleSelectHouse: (e) => {
|
||||||
|
INDEX_binding_model.model.formData.value.asset_houses_id = e == null ? void 0 : e.id;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
exports.method = method;
|
||||||
20
dist/dev/mp-weixin/INDEX/binding/model.js
vendored
Normal file
20
dist/dev/mp-weixin/INDEX/binding/model.js
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
"use strict";
|
||||||
|
const common_vendor = require("../../common/vendor.js");
|
||||||
|
const model = {
|
||||||
|
formData: common_vendor.ref({
|
||||||
|
asset_project_id: "",
|
||||||
|
asset_houses_id: "",
|
||||||
|
type: "",
|
||||||
|
customer_info: [],
|
||||||
|
name: "",
|
||||||
|
phone: "",
|
||||||
|
card_front_image: [],
|
||||||
|
card_back_image: [],
|
||||||
|
card_type: "MainlandID",
|
||||||
|
customer_type: "",
|
||||||
|
house_status: "",
|
||||||
|
usage_plan: "",
|
||||||
|
ownership_info: []
|
||||||
|
})
|
||||||
|
};
|
||||||
|
exports.model = model;
|
||||||
50
dist/dev/mp-weixin/app.js
vendored
Normal file
50
dist/dev/mp-weixin/app.js
vendored
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
"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");
|
||||||
|
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/login.js";
|
||||||
|
"./pages/me/index.js";
|
||||||
|
"./INDEX/binding/index.js";
|
||||||
|
"./INDEX/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-customer/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;
|
||||||
41
dist/dev/mp-weixin/app.json
vendored
Normal file
41
dist/dev/mp-weixin/app.json
vendored
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
{
|
||||||
|
"pages": [
|
||||||
|
"pages/index/index",
|
||||||
|
"pages/login",
|
||||||
|
"pages/me/index"
|
||||||
|
],
|
||||||
|
"subPackages": [
|
||||||
|
{
|
||||||
|
"root": "INDEX",
|
||||||
|
"pages": [
|
||||||
|
"binding/index",
|
||||||
|
"bill/index"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"window": {
|
||||||
|
"navigationBarBackgroundColor": "#fff",
|
||||||
|
"navigationBarTextStyle": "black"
|
||||||
|
},
|
||||||
|
"tabBar": {
|
||||||
|
"color": "#000000",
|
||||||
|
"selectedColor": "#0082FA",
|
||||||
|
"backgroundColor": "#ffffff",
|
||||||
|
"borderStyle": "black",
|
||||||
|
"list": [
|
||||||
|
{
|
||||||
|
"pagePath": "pages/index/index",
|
||||||
|
"text": "首页",
|
||||||
|
"iconPath": "/static/tabbar/home.png",
|
||||||
|
"selectedIconPath": "/static/tabbar/home_act.png"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"pagePath": "pages/me/index",
|
||||||
|
"text": "我的",
|
||||||
|
"iconPath": "/static/tabbar/me.png",
|
||||||
|
"selectedIconPath": "/static/tabbar/me_act.png"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"usingComponents": {}
|
||||||
|
}
|
||||||
3191
dist/dev/mp-weixin/app.wxss
vendored
Normal file
3191
dist/dev/mp-weixin/app.wxss
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
dist/dev/mp-weixin/assets/IdCard1.da66b600.png
vendored
Normal file
BIN
dist/dev/mp-weixin/assets/IdCard1.da66b600.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.0 KiB |
BIN
dist/dev/mp-weixin/assets/IdCard2.36e111ae.png
vendored
Normal file
BIN
dist/dev/mp-weixin/assets/IdCard2.36e111ae.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
5
dist/dev/mp-weixin/common/assets.js
vendored
Normal file
5
dist/dev/mp-weixin/common/assets.js
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
"use strict";
|
||||||
|
const _imports_0 = "/assets/IdCard1.da66b600.png";
|
||||||
|
const _imports_1 = "/assets/IdCard2.36e111ae.png";
|
||||||
|
exports._imports_0 = _imports_0;
|
||||||
|
exports._imports_1 = _imports_1;
|
||||||
22
dist/dev/mp-weixin/common/components/cc-root-view/Loading.js
vendored
Normal file
22
dist/dev/mp-weixin/common/components/cc-root-view/Loading.js
vendored
Normal file
@ -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-customer/src/common/components/cc-root-view/Loading.vue"]]);
|
||||||
|
wx.createComponent(Component);
|
||||||
6
dist/dev/mp-weixin/common/components/cc-root-view/Loading.json
vendored
Normal file
6
dist/dev/mp-weixin/common/components/cc-root-view/Loading.json
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"component": true,
|
||||||
|
"usingComponents": {
|
||||||
|
"u-loading-icon": "../../../node-modules/uview-plus/components/u-loading-icon/u-loading-icon"
|
||||||
|
}
|
||||||
|
}
|
||||||
1
dist/dev/mp-weixin/common/components/cc-root-view/Loading.wxml
vendored
Normal file
1
dist/dev/mp-weixin/common/components/cc-root-view/Loading.wxml
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
<view class="loading-container data-v-bcef2396"><u-loading-icon wx:if="{{a}}" class="data-v-bcef2396" u-i="bcef2396-0" bind:__l="__l" u-p="{{a}}"/></view>
|
||||||
6
dist/dev/mp-weixin/common/components/cc-root-view/Loading.wxss
vendored
Normal file
6
dist/dev/mp-weixin/common/components/cc-root-view/Loading.wxss
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
.loading-container.data-v-bcef2396 {
|
||||||
|
min-height: 100vh;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
53
dist/dev/mp-weixin/common/components/cc-root-view/NetworkError.js
vendored
Normal file
53
dist/dev/mp-weixin/common/components/cc-root-view/NetworkError.js
vendored
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
"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("../../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-customer/src/common/components/cc-root-view/NetworkError.vue"]]);
|
||||||
|
wx.createComponent(Component);
|
||||||
6
dist/dev/mp-weixin/common/components/cc-root-view/NetworkError.json
vendored
Normal file
6
dist/dev/mp-weixin/common/components/cc-root-view/NetworkError.json
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"component": true,
|
||||||
|
"usingComponents": {
|
||||||
|
"up-button": "../../../node-modules/uview-plus/components/u-button/u-button"
|
||||||
|
}
|
||||||
|
}
|
||||||
1
dist/dev/mp-weixin/common/components/cc-root-view/NetworkError.wxml
vendored
Normal file
1
dist/dev/mp-weixin/common/components/cc-root-view/NetworkError.wxml
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
<view class="errpr_page data-v-c150de06"><view class="des data-v-c150de06">网络可能发生错误</view><up-button wx:if="{{b}}" class="data-v-c150de06" bindclick="{{a}}" u-i="c150de06-0" bind:__l="__l" u-p="{{b}}"></up-button></view>
|
||||||
7
dist/dev/mp-weixin/common/components/cc-root-view/NetworkError.wxss
vendored
Normal file
7
dist/dev/mp-weixin/common/components/cc-root-view/NetworkError.wxss
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
.errpr_page.data-v-c150de06 {
|
||||||
|
padding: 0 40rpx;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.errpr_page .des.data-v-c150de06 {
|
||||||
|
padding: 40rpx 0;
|
||||||
|
}
|
||||||
26
dist/dev/mp-weixin/common/components/cc-root-view/cc-root-view.js
vendored
Normal file
26
dist/dev/mp-weixin/common/components/cc-root-view/cc-root-view.js
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
"use strict";
|
||||||
|
const common_vendor = require("../../vendor.js");
|
||||||
|
require("../../libraries/request.js");
|
||||||
|
const common_store_useWeAppAuthStore = require("../../store/useWeAppAuthStore.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();
|
||||||
|
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-customer/src/common/components/cc-root-view/cc-root-view.vue"]]);
|
||||||
|
wx.createComponent(Component);
|
||||||
7
dist/dev/mp-weixin/common/components/cc-root-view/cc-root-view.json
vendored
Normal file
7
dist/dev/mp-weixin/common/components/cc-root-view/cc-root-view.json
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"component": true,
|
||||||
|
"usingComponents": {
|
||||||
|
"loading": "./Loading",
|
||||||
|
"network-error": "./NetworkError"
|
||||||
|
}
|
||||||
|
}
|
||||||
1
dist/dev/mp-weixin/common/components/cc-root-view/cc-root-view.wxml
vendored
Normal file
1
dist/dev/mp-weixin/common/components/cc-root-view/cc-root-view.wxml
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
<view class="container mx-auto min-h-screen bg-gray-100"><loading wx:if="{{a}}" u-i="8129ddca-0" bind:__l="__l"/><network-error wx:elif="{{b}}" u-i="8129ddca-1" bind:__l="__l"/><view wx:else><slot></slot></view></view>
|
||||||
0
dist/dev/mp-weixin/common/components/cc-root-view/cc-root-view.wxss
vendored
Normal file
0
dist/dev/mp-weixin/common/components/cc-root-view/cc-root-view.wxss
vendored
Normal file
3
dist/dev/mp-weixin/common/index.js
vendored
Normal file
3
dist/dev/mp-weixin/common/index.js
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
"use strict";
|
||||||
|
require("./libraries/request.js");
|
||||||
|
require("./store/useWeAppAuthStore.js");
|
||||||
11
dist/dev/mp-weixin/common/libraries/apiLoading.js
vendored
Normal file
11
dist/dev/mp-weixin/common/libraries/apiLoading.js
vendored
Normal file
@ -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;
|
||||||
13
dist/dev/mp-weixin/common/libraries/day.js
vendored
Normal file
13
dist/dev/mp-weixin/common/libraries/day.js
vendored
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
"use strict";
|
||||||
|
const common_vendor = require("../vendor.js");
|
||||||
|
common_vendor.dayjs.locale("zh-cn");
|
||||||
|
common_vendor.dayjs.extend(common_vendor.relativeTime);
|
||||||
|
function getDay(num) {
|
||||||
|
if (num) {
|
||||||
|
const yesterday = common_vendor.dayjs().subtract(num, "day");
|
||||||
|
console.log(yesterday.format("YYYY-MM-DD"));
|
||||||
|
return yesterday.format("YYYY-MM-DD");
|
||||||
|
}
|
||||||
|
return common_vendor.dayjs().format("YYYY-MM-DD");
|
||||||
|
}
|
||||||
|
exports.getDay = getDay;
|
||||||
6
dist/dev/mp-weixin/common/libraries/naviHelper.js
vendored
Normal file
6
dist/dev/mp-weixin/common/libraries/naviHelper.js
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
"use strict";
|
||||||
|
const common_vendor = require("../vendor.js");
|
||||||
|
function goto(url) {
|
||||||
|
common_vendor.index.navigateTo({ url, fail: () => common_vendor.index.switchTab({ url }) });
|
||||||
|
}
|
||||||
|
exports.goto = goto;
|
||||||
50
dist/dev/mp-weixin/common/libraries/request.js
vendored
Normal file
50
dist/dev/mp-weixin/common/libraries/request.js
vendored
Normal file
@ -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 = "http://10.39.13.80:8003/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;
|
||||||
14
dist/dev/mp-weixin/common/libraries/tools.js
vendored
Normal file
14
dist/dev/mp-weixin/common/libraries/tools.js
vendored
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
"use strict";
|
||||||
|
require("../vendor.js");
|
||||||
|
function debounce(fn, delay) {
|
||||||
|
let timer = null;
|
||||||
|
return (...args) => {
|
||||||
|
if (timer) {
|
||||||
|
clearTimeout(timer);
|
||||||
|
}
|
||||||
|
timer = setTimeout(() => {
|
||||||
|
fn(...args);
|
||||||
|
}, delay);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
exports.debounce = debounce;
|
||||||
22
dist/dev/mp-weixin/common/libraries/updateManager.js
vendored
Normal file
22
dist/dev/mp-weixin/common/libraries/updateManager.js
vendored
Normal file
@ -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;
|
||||||
101
dist/dev/mp-weixin/common/libraries/upload.js
vendored
Normal file
101
dist/dev/mp-weixin/common/libraries/upload.js
vendored
Normal file
@ -0,0 +1,101 @@
|
|||||||
|
"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 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.upload = upload;
|
||||||
52
dist/dev/mp-weixin/common/libraries/watermark.js
vendored
Normal file
52
dist/dev/mp-weixin/common/libraries/watermark.js
vendored
Normal file
@ -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;
|
||||||
63
dist/dev/mp-weixin/common/store/useWeAppAuthStore.js
vendored
Normal file
63
dist/dev/mp-weixin/common/store/useWeAppAuthStore.js
vendored
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
"use strict";
|
||||||
|
const common_vendor = require("../vendor.js");
|
||||||
|
const gen_Apis = require("../../gen/Apis.js");
|
||||||
|
const common_libraries_apiLoading = require("../libraries/apiLoading.js");
|
||||||
|
const wxAppId = "wxa191e69e5e77acca";
|
||||||
|
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, username: "" },
|
||||||
|
work_info: { session_key: "", openid: "" },
|
||||||
|
environment: ""
|
||||||
|
});
|
||||||
|
function login(app) {
|
||||||
|
common_vendor.index.login({
|
||||||
|
provider: "weixin",
|
||||||
|
//使用微信登录
|
||||||
|
success: function(loginRes) {
|
||||||
|
console.log(loginRes);
|
||||||
|
getWXToken(app, loginRes.code);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
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() {
|
||||||
|
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;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
const handleUserLogin = async (from_data) => {
|
||||||
|
common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Login.Auth.BindPhoneNumber, {
|
||||||
|
app_id: wxAppId,
|
||||||
|
...from_data
|
||||||
|
}).then((res) => {
|
||||||
|
common_vendor.index.navigateBack({ delta: 1 });
|
||||||
|
me();
|
||||||
|
});
|
||||||
|
};
|
||||||
|
return {
|
||||||
|
loading,
|
||||||
|
hasError,
|
||||||
|
data,
|
||||||
|
login,
|
||||||
|
me,
|
||||||
|
handleUserLogin
|
||||||
|
};
|
||||||
|
});
|
||||||
|
exports.useWeAppAuthStore = useWeAppAuthStore;
|
||||||
13196
dist/dev/mp-weixin/common/vendor.js
vendored
Normal file
13196
dist/dev/mp-weixin/common/vendor.js
vendored
Normal file
File diff suppressed because one or more lines are too long
31
dist/dev/mp-weixin/components/hs-button/hs-button.js
vendored
Normal file
31
dist/dev/mp-weixin/components/hs-button/hs-button.js
vendored
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
"use strict";
|
||||||
|
const common_vendor = require("../../common/vendor.js");
|
||||||
|
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||||
|
__name: "hs-button",
|
||||||
|
props: ["type", "label", "size", "openType", "buttonStyle"],
|
||||||
|
emits: ["click", "onGetPhoneNumber"],
|
||||||
|
setup(__props, { emit }) {
|
||||||
|
const props = __props;
|
||||||
|
const handleClick = () => {
|
||||||
|
emit("click");
|
||||||
|
};
|
||||||
|
const handleGetPhoneNumber = (e) => {
|
||||||
|
var _a;
|
||||||
|
if (((_a = e == null ? void 0 : e.detail) == null ? void 0 : _a.errMsg) === "getPhoneNumber:ok") {
|
||||||
|
emit("onGetPhoneNumber", e);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return (_ctx, _cache) => {
|
||||||
|
return {
|
||||||
|
a: common_vendor.t((props == null ? void 0 : props.label) || "我是按钮"),
|
||||||
|
b: common_vendor.s(props.buttonStyle),
|
||||||
|
c: (props == null ? void 0 : props.openType) || "",
|
||||||
|
d: common_vendor.n(`nchl_button ${props == null ? void 0 : props.type}_button ${(props == null ? void 0 : props.size) || "sm"}_size`),
|
||||||
|
e: common_vendor.o(handleClick),
|
||||||
|
f: common_vendor.o(handleGetPhoneNumber)
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
});
|
||||||
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-abb95bf8"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-customer/src/components/hs-button/hs-button.vue"]]);
|
||||||
|
wx.createComponent(Component);
|
||||||
4
dist/dev/mp-weixin/components/hs-button/hs-button.json
vendored
Normal file
4
dist/dev/mp-weixin/components/hs-button/hs-button.json
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"component": true,
|
||||||
|
"usingComponents": {}
|
||||||
|
}
|
||||||
1
dist/dev/mp-weixin/components/hs-button/hs-button.wxml
vendored
Normal file
1
dist/dev/mp-weixin/components/hs-button/hs-button.wxml
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
<button style="{{b}}" open-type="{{c}}" class="{{['data-v-abb95bf8', d]}}" bindtap="{{e}}" bindgetphonenumber="{{f}}">{{a}}</button>
|
||||||
44
dist/dev/mp-weixin/components/hs-button/hs-button.wxss
vendored
Normal file
44
dist/dev/mp-weixin/components/hs-button/hs-button.wxss
vendored
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
button.data-v-abb95bf8::after {
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
.page_title.data-v-abb95bf8 {
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 28rpx;
|
||||||
|
}
|
||||||
|
.nchl_button.data-v-abb95bf8 {
|
||||||
|
padding: 0 23rpx;
|
||||||
|
border-radius: 100rpx;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 26rpx;
|
||||||
|
background-color: #FBA60D;
|
||||||
|
text-align: center;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
.primary_button.data-v-abb95bf8 {
|
||||||
|
background: #FBA60D;
|
||||||
|
}
|
||||||
|
.default_button.data-v-abb95bf8 {
|
||||||
|
background: #fff;
|
||||||
|
color: #000;
|
||||||
|
border: 1rpx solid #eee;
|
||||||
|
}
|
||||||
|
.display_button.data-v-abb95bf8 {
|
||||||
|
background: #c3c3c3;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
.delete_button.data-v-abb95bf8 {
|
||||||
|
background: #d43030;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
.sm_size.data-v-abb95bf8 {
|
||||||
|
height: 60rpx;
|
||||||
|
line-height: 60rpx;
|
||||||
|
}
|
||||||
|
.md_size.data-v-abb95bf8 {
|
||||||
|
height: 88rpx;
|
||||||
|
line-height: 88rpx;
|
||||||
|
}
|
||||||
|
.lg_size.data-v-abb95bf8 {
|
||||||
|
height: 100rpx;
|
||||||
|
line-height: 100rpx;
|
||||||
|
}
|
||||||
76
dist/dev/mp-weixin/components/hs-cell/hs-cell.js
vendored
Normal file
76
dist/dev/mp-weixin/components/hs-cell/hs-cell.js
vendored
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
"use strict";
|
||||||
|
const common_vendor = require("../../common/vendor.js");
|
||||||
|
const common_libraries_naviHelper = require("../../common/libraries/naviHelper.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: "hs-cell",
|
||||||
|
props: [
|
||||||
|
"title",
|
||||||
|
"required",
|
||||||
|
"borderTop",
|
||||||
|
"isLink",
|
||||||
|
"tip",
|
||||||
|
"value",
|
||||||
|
"url",
|
||||||
|
"isPlaceholder",
|
||||||
|
"padding",
|
||||||
|
"des",
|
||||||
|
"rightStyle",
|
||||||
|
"titleStyle"
|
||||||
|
],
|
||||||
|
emits: ["click"],
|
||||||
|
setup(__props, { emit }) {
|
||||||
|
const props = __props;
|
||||||
|
const handleClick = () => {
|
||||||
|
if (props == null ? void 0 : props.url) {
|
||||||
|
common_libraries_naviHelper.goto(props.url);
|
||||||
|
} else {
|
||||||
|
emit("click");
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return (_ctx, _cache) => {
|
||||||
|
return common_vendor.e({
|
||||||
|
a: common_vendor.t((props == null ? void 0 : props.title) || "标题"),
|
||||||
|
b: __props.required
|
||||||
|
}, __props.required ? {} : {}, {
|
||||||
|
c: common_vendor.s(props.titleStyle),
|
||||||
|
d: props == null ? void 0 : props.value
|
||||||
|
}, (props == null ? void 0 : props.value) ? {
|
||||||
|
e: common_vendor.t(props == null ? void 0 : props.value)
|
||||||
|
} : {
|
||||||
|
f: common_vendor.s(props.rightStyle)
|
||||||
|
}, {
|
||||||
|
g: props == null ? void 0 : props.isLink
|
||||||
|
}, (props == null ? void 0 : props.isLink) ? {
|
||||||
|
h: common_vendor.t(!(props == null ? void 0 : props.value) && (props == null ? void 0 : props.isPlaceholder) ? (props == null ? void 0 : props.tip) || "请选择" : ""),
|
||||||
|
i: common_vendor.p({
|
||||||
|
type: "right",
|
||||||
|
size: "15",
|
||||||
|
color: "#999"
|
||||||
|
})
|
||||||
|
} : {}, {
|
||||||
|
j: props == null ? void 0 : props.des
|
||||||
|
}, (props == null ? void 0 : props.des) ? {
|
||||||
|
k: common_vendor.p({
|
||||||
|
type: "info-filled",
|
||||||
|
size: "15",
|
||||||
|
color: "#999"
|
||||||
|
}),
|
||||||
|
l: common_vendor.t(props == null ? void 0 : props.des)
|
||||||
|
} : {}, {
|
||||||
|
m: props.borderTop ? "1rpx solid #eee" : "",
|
||||||
|
n: (props == null ? void 0 : props.padding) || "10rpx 0",
|
||||||
|
o: common_vendor.o(handleClick)
|
||||||
|
});
|
||||||
|
};
|
||||||
|
}
|
||||||
|
});
|
||||||
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-a47406cc"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-customer/src/components/hs-cell/hs-cell.vue"]]);
|
||||||
|
wx.createComponent(Component);
|
||||||
6
dist/dev/mp-weixin/components/hs-cell/hs-cell.json
vendored
Normal file
6
dist/dev/mp-weixin/components/hs-cell/hs-cell.json
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"component": true,
|
||||||
|
"usingComponents": {
|
||||||
|
"uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons"
|
||||||
|
}
|
||||||
|
}
|
||||||
1
dist/dev/mp-weixin/components/hs-cell/hs-cell.wxml
vendored
Normal file
1
dist/dev/mp-weixin/components/hs-cell/hs-cell.wxml
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
<view class="wl_cell data-v-a47406cc" style="{{'border-top:' + m + ';' + ('padding:' + n)}}" bindtap="{{o}}"><view class="wl_cell_header data-v-a47406cc"><view style="{{c}}" class="title data-v-a47406cc">{{a}} <text wx:if="{{b}}" class="data-v-a47406cc"> * </text></view><view wx:if="{{d}}" class="right_value data-v-a47406cc">{{e}}</view><view wx:else style="{{f}}" class="right_value data-v-a47406cc"><slot></slot></view><view wx:if="{{g}}" class="isLabelRight data-v-a47406cc">{{h}} <uni-icons wx:if="{{i}}" class="data-v-a47406cc" u-i="a47406cc-0" bind:__l="__l" u-p="{{i}}"></uni-icons></view></view><view wx:if="{{j}}" class="rent_des data-v-a47406cc"><uni-icons wx:if="{{k}}" class="data-v-a47406cc" u-i="a47406cc-1" bind:__l="__l" u-p="{{k}}"></uni-icons><text class="data-v-a47406cc">{{l}}</text></view></view>
|
||||||
43
dist/dev/mp-weixin/components/hs-cell/hs-cell.wxss
vendored
Normal file
43
dist/dev/mp-weixin/components/hs-cell/hs-cell.wxss
vendored
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
.wl_cell.data-v-a47406cc {
|
||||||
|
padding: 10rpx 0;
|
||||||
|
}
|
||||||
|
.wl_cell .wl_cell_header.data-v-a47406cc {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
.wl_cell .title.data-v-a47406cc {
|
||||||
|
color: #333333;
|
||||||
|
font-size: 29rpx;
|
||||||
|
padding: 10rpx 0;
|
||||||
|
}
|
||||||
|
.wl_cell .title text.data-v-a47406cc {
|
||||||
|
color: #f00;
|
||||||
|
}
|
||||||
|
.wl_cell .right_value.data-v-a47406cc {
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: flex-end;
|
||||||
|
padding: 10rpx;
|
||||||
|
font-size: 28rpx;
|
||||||
|
}
|
||||||
|
.isLabelRight.data-v-a47406cc {
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #ccc;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
height: 56rpx;
|
||||||
|
padding: 15rpx 0;
|
||||||
|
}
|
||||||
|
.rent_des.data-v-a47406cc {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
color: #999;
|
||||||
|
font-size: 20rpx;
|
||||||
|
padding: 0 0 20rpx 0;
|
||||||
|
}
|
||||||
|
.rent_des text.data-v-a47406cc {
|
||||||
|
padding-left: 10rpx;
|
||||||
|
}
|
||||||
53
dist/dev/mp-weixin/components/hs-date-picker/hs-date-picker.js
vendored
Normal file
53
dist/dev/mp-weixin/components/hs-date-picker/hs-date-picker.js
vendored
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
"use strict";
|
||||||
|
const common_vendor = require("../../common/vendor.js");
|
||||||
|
if (!Array) {
|
||||||
|
const _easycom_hs_cell2 = common_vendor.resolveComponent("hs-cell");
|
||||||
|
_easycom_hs_cell2();
|
||||||
|
}
|
||||||
|
const _easycom_hs_cell = () => "../hs-cell/hs-cell.js";
|
||||||
|
if (!Math) {
|
||||||
|
_easycom_hs_cell();
|
||||||
|
}
|
||||||
|
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||||
|
__name: "hs-date-picker",
|
||||||
|
props: ["valueModel", "tip", "title", "hasFutureDate", "borderTop", "isLink"],
|
||||||
|
emits: ["change", "update:valueModel"],
|
||||||
|
setup(__props, { emit }) {
|
||||||
|
const props = __props;
|
||||||
|
const dateValue = common_vendor.ref("");
|
||||||
|
const startDate = common_vendor.ref("");
|
||||||
|
const endDate = common_vendor.ref("");
|
||||||
|
const onChange = (e) => {
|
||||||
|
dateValue.value = e == null ? void 0 : e.detail.value;
|
||||||
|
emit("update:valueModel", e == null ? void 0 : e.detail.value);
|
||||||
|
emit("change", e == null ? void 0 : e.detail.value);
|
||||||
|
};
|
||||||
|
common_vendor.onMounted(() => {
|
||||||
|
const date = new Date();
|
||||||
|
let year = date.getFullYear();
|
||||||
|
let month = date.getMonth() + 1;
|
||||||
|
let day = date.getDate();
|
||||||
|
month = month > 9 ? month : "0" + month;
|
||||||
|
day = day > 9 ? day : "0" + day;
|
||||||
|
startDate.value = (props == null ? void 0 : props.hasFutureDate) ? `${year}-${month}-${day}` : `${year - 60}-${month}-${day}`;
|
||||||
|
endDate.value = `${year + 60}-${month}-${day}`;
|
||||||
|
});
|
||||||
|
return (_ctx, _cache) => {
|
||||||
|
return {
|
||||||
|
a: common_vendor.p({
|
||||||
|
title: (props == null ? void 0 : props.title) || "选择日期",
|
||||||
|
borderTop: props == null ? void 0 : props.borderTop,
|
||||||
|
value: dateValue.value,
|
||||||
|
isLink: props == null ? void 0 : props.isLink,
|
||||||
|
isPlaceholder: true
|
||||||
|
}),
|
||||||
|
b: props.valueModel,
|
||||||
|
c: common_vendor.o(onChange),
|
||||||
|
d: startDate.value,
|
||||||
|
e: endDate.value
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
});
|
||||||
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-customer/src/components/hs-date-picker/hs-date-picker.vue"]]);
|
||||||
|
wx.createComponent(Component);
|
||||||
6
dist/dev/mp-weixin/components/hs-date-picker/hs-date-picker.json
vendored
Normal file
6
dist/dev/mp-weixin/components/hs-date-picker/hs-date-picker.json
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"component": true,
|
||||||
|
"usingComponents": {
|
||||||
|
"hs-cell": "../hs-cell/hs-cell"
|
||||||
|
}
|
||||||
|
}
|
||||||
1
dist/dev/mp-weixin/components/hs-date-picker/hs-date-picker.wxml
vendored
Normal file
1
dist/dev/mp-weixin/components/hs-date-picker/hs-date-picker.wxml
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
<picker mode="date" value="{{b}}" bindchange="{{c}}" start="{{d}}" end="{{e}}"><hs-cell wx:if="{{a}}" u-i="5247c485-0" bind:__l="__l" u-p="{{a}}"/></picker>
|
||||||
0
dist/dev/mp-weixin/components/hs-date-picker/hs-date-picker.wxss
vendored
Normal file
0
dist/dev/mp-weixin/components/hs-date-picker/hs-date-picker.wxss
vendored
Normal file
39
dist/dev/mp-weixin/components/hs-empty/hs-empty.js
vendored
Normal file
39
dist/dev/mp-weixin/components/hs-empty/hs-empty.js
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
"use strict";
|
||||||
|
const common_vendor = require("../../common/vendor.js");
|
||||||
|
if (!Array) {
|
||||||
|
const _easycom_up_empty2 = common_vendor.resolveComponent("up-empty");
|
||||||
|
_easycom_up_empty2();
|
||||||
|
}
|
||||||
|
const _easycom_up_empty = () => "../../node-modules/uview-plus/components/u-empty/u-empty.js";
|
||||||
|
if (!Math) {
|
||||||
|
_easycom_up_empty();
|
||||||
|
}
|
||||||
|
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||||
|
__name: "hs-empty",
|
||||||
|
props: {
|
||||||
|
mode: null,
|
||||||
|
text: null,
|
||||||
|
height: null,
|
||||||
|
iconSize: null,
|
||||||
|
textSize: null
|
||||||
|
},
|
||||||
|
setup(__props) {
|
||||||
|
const props = __props;
|
||||||
|
const baseStyle = {
|
||||||
|
height: props.height || "40vh"
|
||||||
|
};
|
||||||
|
return (_ctx, _cache) => {
|
||||||
|
return {
|
||||||
|
a: common_vendor.p({
|
||||||
|
mode: (props == null ? void 0 : props.mode) || "favor",
|
||||||
|
text: (props == null ? void 0 : props.text) || "暂无数据",
|
||||||
|
iconSize: (props == null ? void 0 : props.iconSize) || 60,
|
||||||
|
textSize: (props == null ? void 0 : props.textSize) || "20rpx"
|
||||||
|
}),
|
||||||
|
b: common_vendor.s(baseStyle)
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
});
|
||||||
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-9e2a467e"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-customer/src/components/hs-empty/hs-empty.vue"]]);
|
||||||
|
wx.createComponent(Component);
|
||||||
6
dist/dev/mp-weixin/components/hs-empty/hs-empty.json
vendored
Normal file
6
dist/dev/mp-weixin/components/hs-empty/hs-empty.json
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"component": true,
|
||||||
|
"usingComponents": {
|
||||||
|
"up-empty": "../../node-modules/uview-plus/components/u-empty/u-empty"
|
||||||
|
}
|
||||||
|
}
|
||||||
1
dist/dev/mp-weixin/components/hs-empty/hs-empty.wxml
vendored
Normal file
1
dist/dev/mp-weixin/components/hs-empty/hs-empty.wxml
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
<view class="wl-empty data-v-9e2a467e" style="{{b}}"><up-empty wx:if="{{a}}" class="data-v-9e2a467e" u-i="9e2a467e-0" bind:__l="__l" u-p="{{a}}"/></view>
|
||||||
5
dist/dev/mp-weixin/components/hs-empty/hs-empty.wxss
vendored
Normal file
5
dist/dev/mp-weixin/components/hs-empty/hs-empty.wxss
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
.wl-empty.data-v-9e2a467e {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
47
dist/dev/mp-weixin/components/hs-footer/hs-footer.js
vendored
Normal file
47
dist/dev/mp-weixin/components/hs-footer/hs-footer.js
vendored
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
"use strict";
|
||||||
|
const common_vendor = require("../../common/vendor.js");
|
||||||
|
if (!Array) {
|
||||||
|
const _easycom_hs_button2 = common_vendor.resolveComponent("hs-button");
|
||||||
|
_easycom_hs_button2();
|
||||||
|
}
|
||||||
|
const _easycom_hs_button = () => "../hs-button/hs-button.js";
|
||||||
|
if (!Math) {
|
||||||
|
_easycom_hs_button();
|
||||||
|
}
|
||||||
|
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||||
|
__name: "hs-footer",
|
||||||
|
props: ["btnParimaryName", "btnOtherName", "btnOtherShow", "back"],
|
||||||
|
emits: ["handleParmaryClick", "handleOtherClick"],
|
||||||
|
setup(__props, { emit }) {
|
||||||
|
const props = __props;
|
||||||
|
const handleParmaryClick = () => {
|
||||||
|
emit("handleParmaryClick");
|
||||||
|
};
|
||||||
|
const handleOtherClick = () => {
|
||||||
|
emit("handleOtherClick");
|
||||||
|
if (props == null ? void 0 : props.back) {
|
||||||
|
common_vendor.index.navigateBack({ delta: 1 });
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return (_ctx, _cache) => {
|
||||||
|
return common_vendor.e({
|
||||||
|
a: props == null ? void 0 : props.btnOtherShow
|
||||||
|
}, (props == null ? void 0 : props.btnOtherShow) ? {
|
||||||
|
b: common_vendor.p({
|
||||||
|
label: (props == null ? void 0 : props.btnOtherName) || "返回",
|
||||||
|
size: "md"
|
||||||
|
}),
|
||||||
|
c: common_vendor.o(handleOtherClick)
|
||||||
|
} : {}, {
|
||||||
|
d: common_vendor.p({
|
||||||
|
label: (props == null ? void 0 : props.btnParimaryName) || "提交",
|
||||||
|
type: "primary",
|
||||||
|
size: "md"
|
||||||
|
}),
|
||||||
|
e: common_vendor.o(handleParmaryClick)
|
||||||
|
});
|
||||||
|
};
|
||||||
|
}
|
||||||
|
});
|
||||||
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-343c1add"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-customer/src/components/hs-footer/hs-footer.vue"]]);
|
||||||
|
wx.createComponent(Component);
|
||||||
6
dist/dev/mp-weixin/components/hs-footer/hs-footer.json
vendored
Normal file
6
dist/dev/mp-weixin/components/hs-footer/hs-footer.json
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"component": true,
|
||||||
|
"usingComponents": {
|
||||||
|
"hs-button": "../hs-button/hs-button"
|
||||||
|
}
|
||||||
|
}
|
||||||
1
dist/dev/mp-weixin/components/hs-footer/hs-footer.wxml
vendored
Normal file
1
dist/dev/mp-weixin/components/hs-footer/hs-footer.wxml
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
<view class="wl_footer data-v-343c1add"><slot/><view class="wl_footer_contents data-v-343c1add"><view wx:if="{{a}}" class="wl_footer_item first_child_btn data-v-343c1add" bindtap="{{c}}"><hs-button wx:if="{{b}}" class="data-v-343c1add" u-i="343c1add-0" bind:__l="__l" u-p="{{b}}"/></view><view class="wl_footer_item data-v-343c1add" bindtap="{{e}}"><hs-button wx:if="{{d}}" class="data-v-343c1add" u-i="343c1add-1" bind:__l="__l" u-p="{{d}}"/></view></view></view>
|
||||||
23
dist/dev/mp-weixin/components/hs-footer/hs-footer.wxss
vendored
Normal file
23
dist/dev/mp-weixin/components/hs-footer/hs-footer.wxss
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
.wl_footer.data-v-343c1add {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
box-shadow: 0px -3px 7px rgba(206, 206, 206, 0.25);
|
||||||
|
padding: 30rpx 30rpx 0 30rpx;
|
||||||
|
z-index: 100;
|
||||||
|
background-color: #fff;
|
||||||
|
padding-bottom: calc(20rpx + constant(safe-area-inset-bottom));
|
||||||
|
padding-bottom: calc(20rpx + env(safe-area-inset-bottom));
|
||||||
|
}
|
||||||
|
.wl_footer .wl_footer_contents.data-v-343c1add {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
.wl_footer .wl_footer_item.data-v-343c1add {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
.wl_footer .first_child_btn.data-v-343c1add {
|
||||||
|
margin-right: 30rpx;
|
||||||
|
}
|
||||||
87
dist/dev/mp-weixin/components/hs-input/hs-input.js
vendored
Normal file
87
dist/dev/mp-weixin/components/hs-input/hs-input.js
vendored
Normal file
@ -0,0 +1,87 @@
|
|||||||
|
"use strict";
|
||||||
|
const common_vendor = require("../../common/vendor.js");
|
||||||
|
const components_hsInput_reducer = require("./reducer.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: "hs-input",
|
||||||
|
props: components_hsInput_reducer.wlInputProps,
|
||||||
|
emits: ["update:valueModel", "input", "blur", "bindconfirm", "onClose"],
|
||||||
|
setup(__props, { emit }) {
|
||||||
|
const props = __props;
|
||||||
|
const valueModel = common_vendor.ref("");
|
||||||
|
common_vendor.watch(
|
||||||
|
() => props.valueModel,
|
||||||
|
(val) => {
|
||||||
|
valueModel.value = val;
|
||||||
|
handleChange(val);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
common_vendor.onMounted(() => {
|
||||||
|
valueModel.value = props.valueModel;
|
||||||
|
handleChange(props.valueModel);
|
||||||
|
});
|
||||||
|
const onChange = (e) => {
|
||||||
|
const target = e.target;
|
||||||
|
let value = target.value;
|
||||||
|
handleChange(value);
|
||||||
|
};
|
||||||
|
const handleChange = (value) => {
|
||||||
|
emit("update:valueModel", value);
|
||||||
|
emit("input", value);
|
||||||
|
};
|
||||||
|
const onBlur = () => {
|
||||||
|
emit("blur", props.valueModel);
|
||||||
|
};
|
||||||
|
const onConfirm = (e) => {
|
||||||
|
const target = e.target;
|
||||||
|
let value = target.value;
|
||||||
|
emit("bindconfirm", value);
|
||||||
|
};
|
||||||
|
const emptyInput = () => {
|
||||||
|
valueModel.value = "";
|
||||||
|
onChange({ target: { value: "" } });
|
||||||
|
};
|
||||||
|
return (_ctx, _cache) => {
|
||||||
|
return common_vendor.e({
|
||||||
|
a: common_vendor.n(props.classInputName),
|
||||||
|
b: common_vendor.o([($event) => valueModel.value = $event.detail.value, onChange]),
|
||||||
|
c: props.placeholderStyle,
|
||||||
|
d: (props == null ? void 0 : props.width) || "300rpx",
|
||||||
|
e: props == null ? void 0 : props.textAlign,
|
||||||
|
f: common_vendor.o(onChange),
|
||||||
|
g: (props == null ? void 0 : props.placeholder) || "请输入",
|
||||||
|
h: (props == null ? void 0 : props.maxLength) || 255,
|
||||||
|
i: (props == null ? void 0 : props.type) || "text",
|
||||||
|
j: common_vendor.o(onBlur),
|
||||||
|
k: common_vendor.o(onConfirm),
|
||||||
|
l: props == null ? void 0 : props.disabled,
|
||||||
|
m: props == null ? void 0 : props.confirmType,
|
||||||
|
n: (props == null ? void 0 : props.password) || false,
|
||||||
|
o: valueModel.value,
|
||||||
|
p: valueModel.value.length
|
||||||
|
}, valueModel.value.length ? {
|
||||||
|
q: common_vendor.o(emptyInput),
|
||||||
|
r: common_vendor.p({
|
||||||
|
type: "closeempty",
|
||||||
|
color: "#999999",
|
||||||
|
size: "12"
|
||||||
|
})
|
||||||
|
} : {}, {
|
||||||
|
s: _ctx.suffix
|
||||||
|
}, _ctx.suffix ? {
|
||||||
|
t: common_vendor.t(_ctx.suffix)
|
||||||
|
} : {}, {
|
||||||
|
v: common_vendor.n(props.className)
|
||||||
|
});
|
||||||
|
};
|
||||||
|
}
|
||||||
|
});
|
||||||
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-customer/src/components/hs-input/hs-input.vue"]]);
|
||||||
|
wx.createComponent(Component);
|
||||||
6
dist/dev/mp-weixin/components/hs-input/hs-input.json
vendored
Normal file
6
dist/dev/mp-weixin/components/hs-input/hs-input.json
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"component": true,
|
||||||
|
"usingComponents": {
|
||||||
|
"uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons"
|
||||||
|
}
|
||||||
|
}
|
||||||
1
dist/dev/mp-weixin/components/hs-input/hs-input.wxml
vendored
Normal file
1
dist/dev/mp-weixin/components/hs-input/hs-input.wxml
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
<view class="{{['input_content', v]}}"><block wx:if="{{r0}}"><input class="{{['uni-input', a]}}" bindinput="{{b}}" placeholder-style="{{c}}" style="{{'width:' + d + ';' + ('text-align:' + e)}}" bindchange="{{f}}" placeholder="{{g}}" maxlength="{{h}}" type="{{i}}" bindblur="{{j}}" bindconfirm="{{k}}" disabled="{{l}}" confirm-type="{{m}}" password="{{n}}" value="{{o}}"/></block><view wx:if="{{p}}" class="close"><uni-icons wx:if="{{r}}" bindclick="{{q}}" u-i="30e70db6-0" bind:__l="__l" u-p="{{r}}"/></view><view wx:if="{{s}}" class="suffix">{{t}}</view></view>
|
||||||
19
dist/dev/mp-weixin/components/hs-input/hs-input.wxss
vendored
Normal file
19
dist/dev/mp-weixin/components/hs-input/hs-input.wxss
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
.input_content {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
.input_content .uni-input {
|
||||||
|
flex: 1;
|
||||||
|
height: 65rpx;
|
||||||
|
}
|
||||||
|
.suffix {
|
||||||
|
color: #333333;
|
||||||
|
font-size: 28rpx;
|
||||||
|
margin-left: 20rpx;
|
||||||
|
}
|
||||||
|
.close {
|
||||||
|
height: 65rpx;
|
||||||
|
line-height: 65rpx;
|
||||||
|
padding: 0 10rpx;
|
||||||
|
}
|
||||||
74
dist/dev/mp-weixin/components/hs-input/reducer.js
vendored
Normal file
74
dist/dev/mp-weixin/components/hs-input/reducer.js
vendored
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
"use strict";
|
||||||
|
const defInputProps = {
|
||||||
|
valueModel: "",
|
||||||
|
placeholder: "请输入内容",
|
||||||
|
width: "100%",
|
||||||
|
suffix: "",
|
||||||
|
maxLength: 255,
|
||||||
|
type: "text",
|
||||||
|
className: "",
|
||||||
|
placeholderStyle: "color: #ccc;font-size:25rpx;",
|
||||||
|
classInputName: "",
|
||||||
|
textAlign: "left",
|
||||||
|
confirmType: "done",
|
||||||
|
hasClose: false
|
||||||
|
};
|
||||||
|
const wlInputProps = {
|
||||||
|
valueModel: {
|
||||||
|
type: String,
|
||||||
|
default: defInputProps.valueModel
|
||||||
|
},
|
||||||
|
placeholder: {
|
||||||
|
type: String,
|
||||||
|
default: defInputProps.placeholder
|
||||||
|
},
|
||||||
|
width: {
|
||||||
|
type: String,
|
||||||
|
default: defInputProps.width
|
||||||
|
},
|
||||||
|
suffix: {
|
||||||
|
type: String,
|
||||||
|
default: defInputProps.suffix
|
||||||
|
},
|
||||||
|
maxLength: {
|
||||||
|
type: Number,
|
||||||
|
default: defInputProps.maxLength
|
||||||
|
},
|
||||||
|
type: {
|
||||||
|
type: String,
|
||||||
|
default: defInputProps.type
|
||||||
|
},
|
||||||
|
className: {
|
||||||
|
type: String,
|
||||||
|
default: defInputProps.className
|
||||||
|
},
|
||||||
|
placeholderStyle: {
|
||||||
|
type: String,
|
||||||
|
default: defInputProps.placeholderStyle
|
||||||
|
},
|
||||||
|
classInputName: {
|
||||||
|
type: String,
|
||||||
|
default: defInputProps.classInputName
|
||||||
|
},
|
||||||
|
password: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
|
textAlign: {
|
||||||
|
type: String,
|
||||||
|
default: defInputProps.textAlign
|
||||||
|
},
|
||||||
|
confirmType: {
|
||||||
|
type: String,
|
||||||
|
default: defInputProps.confirmType
|
||||||
|
},
|
||||||
|
disabled: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
|
hasClose: {
|
||||||
|
type: Boolean,
|
||||||
|
default: defInputProps.hasClose
|
||||||
|
}
|
||||||
|
};
|
||||||
|
exports.wlInputProps = wlInputProps;
|
||||||
209
dist/dev/mp-weixin/components/hs-popup-project/hs-popup-project.js
vendored
Normal file
209
dist/dev/mp-weixin/components/hs-popup-project/hs-popup-project.js
vendored
Normal file
@ -0,0 +1,209 @@
|
|||||||
|
"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 common_libraries_tools = require("../../common/libraries/tools.js");
|
||||||
|
require("../../common/libraries/request.js");
|
||||||
|
require("../../common/store/useWeAppAuthStore.js");
|
||||||
|
if (!Array) {
|
||||||
|
const _easycom_hs_cell2 = common_vendor.resolveComponent("hs-cell");
|
||||||
|
const _easycom_up_tabs2 = common_vendor.resolveComponent("up-tabs");
|
||||||
|
const _easycom_hs_empty2 = common_vendor.resolveComponent("hs-empty");
|
||||||
|
const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
|
||||||
|
const _easycom_hs_popup2 = common_vendor.resolveComponent("hs-popup");
|
||||||
|
(_easycom_hs_cell2 + _easycom_up_tabs2 + _easycom_hs_empty2 + _easycom_uni_icons2 + _easycom_hs_popup2)();
|
||||||
|
}
|
||||||
|
const _easycom_hs_cell = () => "../hs-cell/hs-cell.js";
|
||||||
|
const _easycom_up_tabs = () => "../../node-modules/uview-plus/components/u-tabs/u-tabs.js";
|
||||||
|
const _easycom_hs_empty = () => "../hs-empty/hs-empty.js";
|
||||||
|
const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
|
||||||
|
const _easycom_hs_popup = () => "../hs-popup/hs-popup.js";
|
||||||
|
if (!Math) {
|
||||||
|
(_easycom_hs_cell + _easycom_up_tabs + _easycom_hs_empty + _easycom_uni_icons + _easycom_hs_popup)();
|
||||||
|
}
|
||||||
|
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||||
|
__name: "hs-popup-project",
|
||||||
|
props: ["title"],
|
||||||
|
emits: ["close", "change"],
|
||||||
|
setup(__props, { emit }) {
|
||||||
|
const props = __props;
|
||||||
|
let keywordStore = "";
|
||||||
|
const formData = common_vendor.ref({ page: 1 });
|
||||||
|
const searchValue = common_vendor.ref("");
|
||||||
|
const selectEd = common_vendor.ref({ name: "", id: 0 });
|
||||||
|
const pickerList = common_vendor.ref([]);
|
||||||
|
const pickerListProject = common_vendor.ref([]);
|
||||||
|
const pickerListBuilding = common_vendor.ref([]);
|
||||||
|
const pickerListUnit = common_vendor.ref([]);
|
||||||
|
common_vendor.ref([]);
|
||||||
|
const popupShow = common_vendor.ref(false);
|
||||||
|
const currentValue = common_vendor.ref(0);
|
||||||
|
const itemsList = common_vendor.ref([{ name: "小区" }]);
|
||||||
|
const selectValueEd = common_vendor.ref([]);
|
||||||
|
const handleSearch = common_libraries_tools.debounce((e) => {
|
||||||
|
if (e === keywordStore) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
keywordStore = e;
|
||||||
|
formData.value.page = 1;
|
||||||
|
pickerListProject.value = [];
|
||||||
|
getPickerList();
|
||||||
|
}, 500);
|
||||||
|
const onPopupShow = () => {
|
||||||
|
popupShow.value = !popupShow.value;
|
||||||
|
if (popupShow.value) {
|
||||||
|
setTimeout(() => {
|
||||||
|
currentValue.value = 0;
|
||||||
|
pickerListProject.value = [];
|
||||||
|
getPickerList();
|
||||||
|
}, 300);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const handleSwitchClick = (e) => {
|
||||||
|
currentValue.value = e == null ? void 0 : e.index;
|
||||||
|
console.log(e, "eee");
|
||||||
|
};
|
||||||
|
const getPickerList = () => {
|
||||||
|
common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Asset.AssetHouses.SelectProject, { name: searchValue.value, ...formData.value }).then((res) => {
|
||||||
|
pickerListProject.value = res == null ? void 0 : res.data;
|
||||||
|
pickerList.value = res == null ? void 0 : res.data;
|
||||||
|
console.log(res);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
const onSelectMerchant = (i) => {
|
||||||
|
currentValue.value = 1;
|
||||||
|
itemsList.value = [{ name: "小区" }, { name: "楼栋" }];
|
||||||
|
selectValueEd.value[0] = i;
|
||||||
|
handleGetBuilding(i);
|
||||||
|
};
|
||||||
|
const handleGetBuilding = (data) => {
|
||||||
|
common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Asset.AssetHouses.SelectBuilding, { asset_projects_id: data == null ? void 0 : data.id, name: searchValue.value, ...formData.value }).then((res) => {
|
||||||
|
pickerListBuilding.value = res == null ? void 0 : res.data;
|
||||||
|
pickerList.value = res == null ? void 0 : res.data;
|
||||||
|
console.log(res);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
const onSelectBuildingt = (i) => {
|
||||||
|
currentValue.value = 2;
|
||||||
|
itemsList.value = [{ name: "小区" }, { name: "楼栋" }, { name: "单元" }];
|
||||||
|
selectValueEd.value[1] = i;
|
||||||
|
handleGetUnit(i);
|
||||||
|
};
|
||||||
|
const handleGetUnit = (data) => {
|
||||||
|
var _a;
|
||||||
|
common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Asset.AssetHouses.SelectUnit, { asset_projects_id: (_a = selectValueEd.value[0]) == null ? void 0 : _a.id, asset_buildings_id: data == null ? void 0 : data.id, name: searchValue.value, ...formData.value }).then((res) => {
|
||||||
|
pickerListUnit.value = res == null ? void 0 : res.data;
|
||||||
|
pickerList.value = res == null ? void 0 : res.data;
|
||||||
|
console.log(res);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
const onSelectUnit = (i) => {
|
||||||
|
currentValue.value = 3;
|
||||||
|
itemsList.value = [{ name: "小区" }, { name: "楼栋" }, { name: "单元" }, { name: "房屋" }];
|
||||||
|
selectValueEd.value[2] = i;
|
||||||
|
};
|
||||||
|
return (_ctx, _cache) => {
|
||||||
|
var _a, _b, _c;
|
||||||
|
return common_vendor.e({
|
||||||
|
a: common_vendor.o(onPopupShow),
|
||||||
|
b: common_vendor.p({
|
||||||
|
title: props == null ? void 0 : props.title,
|
||||||
|
isLink: true,
|
||||||
|
isPlaceholder: true,
|
||||||
|
required: true,
|
||||||
|
borderTop: true,
|
||||||
|
value: (_a = selectEd.value) == null ? void 0 : _a.name
|
||||||
|
}),
|
||||||
|
c: common_vendor.o([
|
||||||
|
($event) => searchValue.value = $event.detail.value,
|
||||||
|
//@ts-ignore
|
||||||
|
(...args) => common_vendor.unref(handleSearch) && common_vendor.unref(handleSearch)(...args)
|
||||||
|
]),
|
||||||
|
d: common_vendor.o(
|
||||||
|
//@ts-ignore
|
||||||
|
(...args) => common_vendor.unref(handleSearch) && common_vendor.unref(handleSearch)(...args)
|
||||||
|
),
|
||||||
|
e: searchValue.value,
|
||||||
|
f: popupShow.value
|
||||||
|
}, popupShow.value ? {
|
||||||
|
g: common_vendor.o(handleSwitchClick),
|
||||||
|
h: common_vendor.p({
|
||||||
|
list: itemsList.value,
|
||||||
|
current: currentValue.value || 0
|
||||||
|
})
|
||||||
|
} : {}, {
|
||||||
|
i: !((_b = pickerList.value) == null ? void 0 : _b.length)
|
||||||
|
}, !((_c = pickerList.value) == null ? void 0 : _c.length) ? {} : {}, {
|
||||||
|
j: currentValue.value === 0
|
||||||
|
}, currentValue.value === 0 ? {
|
||||||
|
k: common_vendor.f(pickerListProject.value, (i, index, i0) => {
|
||||||
|
var _a2, _b2;
|
||||||
|
return common_vendor.e({
|
||||||
|
a: common_vendor.t(i == null ? void 0 : i.name),
|
||||||
|
b: ((_a2 = selectEd.value) == null ? void 0 : _a2.id) === (i == null ? void 0 : i.id)
|
||||||
|
}, ((_b2 = selectEd.value) == null ? void 0 : _b2.id) === (i == null ? void 0 : i.id) ? {
|
||||||
|
c: "7ecd4980-4-" + i0 + ",7ecd4980-1",
|
||||||
|
d: common_vendor.p({
|
||||||
|
type: "checkmarkempty",
|
||||||
|
size: "20",
|
||||||
|
color: "#FBA60D"
|
||||||
|
})
|
||||||
|
} : {}, {
|
||||||
|
e: `key_${index}`,
|
||||||
|
f: common_vendor.o(($event) => onSelectMerchant(i), `key_${index}`)
|
||||||
|
});
|
||||||
|
})
|
||||||
|
} : {}, {
|
||||||
|
l: currentValue.value === 1
|
||||||
|
}, currentValue.value === 1 ? {
|
||||||
|
m: common_vendor.f(pickerListBuilding.value, (i, index, i0) => {
|
||||||
|
var _a2, _b2;
|
||||||
|
return common_vendor.e({
|
||||||
|
a: common_vendor.t(i == null ? void 0 : i.name),
|
||||||
|
b: ((_a2 = selectEd.value) == null ? void 0 : _a2.id) === (i == null ? void 0 : i.id)
|
||||||
|
}, ((_b2 = selectEd.value) == null ? void 0 : _b2.id) === (i == null ? void 0 : i.id) ? {
|
||||||
|
c: "7ecd4980-5-" + i0 + ",7ecd4980-1",
|
||||||
|
d: common_vendor.p({
|
||||||
|
type: "checkmarkempty",
|
||||||
|
size: "20",
|
||||||
|
color: "#FBA60D"
|
||||||
|
})
|
||||||
|
} : {}, {
|
||||||
|
e: `key_${index}`,
|
||||||
|
f: common_vendor.o(($event) => onSelectBuildingt(i), `key_${index}`)
|
||||||
|
});
|
||||||
|
})
|
||||||
|
} : {}, {
|
||||||
|
n: currentValue.value === 2
|
||||||
|
}, currentValue.value === 2 ? {
|
||||||
|
o: common_vendor.f(pickerListUnit.value, (i, index, i0) => {
|
||||||
|
var _a2, _b2;
|
||||||
|
return common_vendor.e({
|
||||||
|
a: common_vendor.t(i == null ? void 0 : i.name),
|
||||||
|
b: ((_a2 = selectEd.value) == null ? void 0 : _a2.id) === (i == null ? void 0 : i.id)
|
||||||
|
}, ((_b2 = selectEd.value) == null ? void 0 : _b2.id) === (i == null ? void 0 : i.id) ? {
|
||||||
|
c: "7ecd4980-6-" + i0 + ",7ecd4980-1",
|
||||||
|
d: common_vendor.p({
|
||||||
|
type: "checkmarkempty",
|
||||||
|
size: "20",
|
||||||
|
color: "#FBA60D"
|
||||||
|
})
|
||||||
|
} : {}, {
|
||||||
|
e: `key_${index}`,
|
||||||
|
f: common_vendor.o(($event) => onSelectUnit(i), `key_${index}`)
|
||||||
|
});
|
||||||
|
})
|
||||||
|
} : {}, {
|
||||||
|
p: common_vendor.o(onPopupShow),
|
||||||
|
q: common_vendor.p({
|
||||||
|
show: popupShow.value,
|
||||||
|
mode: "bottom",
|
||||||
|
closeable: true,
|
||||||
|
round: 20
|
||||||
|
})
|
||||||
|
});
|
||||||
|
};
|
||||||
|
}
|
||||||
|
});
|
||||||
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-7ecd4980"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-customer/src/components/hs-popup-project/hs-popup-project.vue"]]);
|
||||||
|
wx.createComponent(Component);
|
||||||
10
dist/dev/mp-weixin/components/hs-popup-project/hs-popup-project.json
vendored
Normal file
10
dist/dev/mp-weixin/components/hs-popup-project/hs-popup-project.json
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"component": true,
|
||||||
|
"usingComponents": {
|
||||||
|
"hs-cell": "../hs-cell/hs-cell",
|
||||||
|
"up-tabs": "../../node-modules/uview-plus/components/u-tabs/u-tabs",
|
||||||
|
"hs-empty": "../hs-empty/hs-empty",
|
||||||
|
"uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons",
|
||||||
|
"hs-popup": "../hs-popup/hs-popup"
|
||||||
|
}
|
||||||
|
}
|
||||||
1
dist/dev/mp-weixin/components/hs-popup-project/hs-popup-project.wxml
vendored
Normal file
1
dist/dev/mp-weixin/components/hs-popup-project/hs-popup-project.wxml
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
<view class="data-v-7ecd4980"><hs-cell wx:if="{{b}}" class="data-v-7ecd4980" bindclick="{{a}}" u-i="7ecd4980-0" bind:__l="__l" u-p="{{b}}"/><hs-popup wx:if="{{q}}" class="data-v-7ecd4980" u-s="{{['d']}}" bindclose="{{p}}" u-i="7ecd4980-1" bind:__l="__l" u-p="{{q}}"><view class="popup_merchant_select_body data-v-7ecd4980"><view class="popup_merchant_select_title data-v-7ecd4980"> 选择小区 </view><view class="popup_search_input data-v-7ecd4980"><input class="data-v-7ecd4980" placeholder="请输入关键词" confirm-type="search" bindinput="{{c}}" bindconfirm="{{d}}" placeholder-style="font-size:27rpx;color:#ccc;" value="{{e}}"/></view><view wx:if="{{f}}" class="popup_tabs data-v-7ecd4980"><up-tabs wx:if="{{h}}" class="data-v-7ecd4980" bindclick="{{g}}" u-i="7ecd4980-2,7ecd4980-1" bind:__l="__l" u-p="{{h}}"/></view><scroll-view scroll-y="true" class="scroll-Y data-v-7ecd4980"><view class="popup_merchant_body data-v-7ecd4980"><hs-empty wx:if="{{i}}" class="data-v-7ecd4980" u-i="7ecd4980-3,7ecd4980-1" bind:__l="__l"/><block wx:if="{{j}}"><view wx:for="{{k}}" wx:for-item="i" wx:key="e" class="merchant_item data-v-7ecd4980" bindtap="{{i.f}}"><view class="data-v-7ecd4980">{{i.a}}</view><uni-icons wx:if="{{i.b}}" class="data-v-7ecd4980" u-i="{{i.c}}" bind:__l="__l" u-p="{{i.d}}"></uni-icons></view></block><block wx:if="{{l}}"><view wx:for="{{m}}" wx:for-item="i" wx:key="e" class="merchant_item data-v-7ecd4980" bindtap="{{i.f}}"><view class="data-v-7ecd4980">{{i.a}}</view><uni-icons wx:if="{{i.b}}" class="data-v-7ecd4980" u-i="{{i.c}}" bind:__l="__l" u-p="{{i.d}}"></uni-icons></view></block><block wx:if="{{n}}"><view wx:for="{{o}}" wx:for-item="i" wx:key="e" class="merchant_item data-v-7ecd4980" bindtap="{{i.f}}"><view class="data-v-7ecd4980">{{i.a}}</view><uni-icons wx:if="{{i.b}}" class="data-v-7ecd4980" u-i="{{i.c}}" bind:__l="__l" u-p="{{i.d}}"></uni-icons></view></block></view></scroll-view></view></hs-popup></view>
|
||||||
37
dist/dev/mp-weixin/components/hs-popup-project/hs-popup-project.wxss
vendored
Normal file
37
dist/dev/mp-weixin/components/hs-popup-project/hs-popup-project.wxss
vendored
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
.popup_merchant_select_body.data-v-7ecd4980 {
|
||||||
|
background-color: #fff;
|
||||||
|
padding-bottom: calc(48px + constant(safe-area-inset-bottom));
|
||||||
|
padding-bottom: calc(48px + env(safe-area-inset-bottom));
|
||||||
|
border-top-left-radius: 20rpx;
|
||||||
|
border-top-right-radius: 20rpx;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.popup_merchant_select_body .popup_merchant_select_title.data-v-7ecd4980 {
|
||||||
|
text-align: center;
|
||||||
|
padding: 30rpx 0;
|
||||||
|
font-size: 30rpx;
|
||||||
|
background-color: #f8f8f8;
|
||||||
|
border-bottom: 1rpx solid #eee;
|
||||||
|
}
|
||||||
|
.popup_merchant_select_body .scroll-Y.data-v-7ecd4980 {
|
||||||
|
width: 100%;
|
||||||
|
height: 860rpx;
|
||||||
|
}
|
||||||
|
.popup_merchant_select_body .popup_merchant_body.data-v-7ecd4980 {
|
||||||
|
font-size: 30rpx;
|
||||||
|
color: #333;
|
||||||
|
border-top: 1rpx solid #f8f8f8;
|
||||||
|
}
|
||||||
|
.popup_merchant_select_body .popup_merchant_body .merchant_item.data-v-7ecd4980 {
|
||||||
|
padding: 30rpx;
|
||||||
|
border-bottom: 1rpx solid #f8f8f8;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.popup_search_input.data-v-7ecd4980 {
|
||||||
|
padding: 15rpx 20rpx;
|
||||||
|
margin: 20rpx 30rpx 0 30rpx;
|
||||||
|
border-radius: 100rpx;
|
||||||
|
border: 1rpx solid #eee;
|
||||||
|
}
|
||||||
40
dist/dev/mp-weixin/components/hs-popup/hs-popup.js
vendored
Normal file
40
dist/dev/mp-weixin/components/hs-popup/hs-popup.js
vendored
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
"use strict";
|
||||||
|
const common_vendor = require("../../common/vendor.js");
|
||||||
|
if (!Array) {
|
||||||
|
const _easycom_up_popup2 = common_vendor.resolveComponent("up-popup");
|
||||||
|
_easycom_up_popup2();
|
||||||
|
}
|
||||||
|
const _easycom_up_popup = () => "../../node-modules/uview-plus/components/u-popup/u-popup.js";
|
||||||
|
if (!Math) {
|
||||||
|
_easycom_up_popup();
|
||||||
|
}
|
||||||
|
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||||
|
__name: "hs-popup",
|
||||||
|
props: ["show", "mode", "insetBottom", "round", "closeable"],
|
||||||
|
emits: ["close"],
|
||||||
|
setup(__props, { emit }) {
|
||||||
|
const props = __props;
|
||||||
|
const onClose = () => {
|
||||||
|
emit("close");
|
||||||
|
};
|
||||||
|
return (_ctx, _cache) => {
|
||||||
|
return {
|
||||||
|
a: common_vendor.o(onClose),
|
||||||
|
b: common_vendor.p({
|
||||||
|
customStyle: (props == null ? void 0 : props.insetBottom) ? {
|
||||||
|
bottom: "calc(env(safe-area-inset-bottom) + 48px)"
|
||||||
|
} : {},
|
||||||
|
overlayStyle: (props == null ? void 0 : props.insetBottom) ? {
|
||||||
|
bottom: "calc(env(safe-area-inset-bottom) + 48px)"
|
||||||
|
} : {},
|
||||||
|
show: props.show,
|
||||||
|
mode: (props == null ? void 0 : props.mode) || "top",
|
||||||
|
round: (props == null ? void 0 : props.round) || 0,
|
||||||
|
closeable: props == null ? void 0 : props.closeable
|
||||||
|
})
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
});
|
||||||
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-775dba8e"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-customer/src/components/hs-popup/hs-popup.vue"]]);
|
||||||
|
wx.createComponent(Component);
|
||||||
6
dist/dev/mp-weixin/components/hs-popup/hs-popup.json
vendored
Normal file
6
dist/dev/mp-weixin/components/hs-popup/hs-popup.json
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"component": true,
|
||||||
|
"usingComponents": {
|
||||||
|
"up-popup": "../../node-modules/uview-plus/components/u-popup/u-popup"
|
||||||
|
}
|
||||||
|
}
|
||||||
1
dist/dev/mp-weixin/components/hs-popup/hs-popup.wxml
vendored
Normal file
1
dist/dev/mp-weixin/components/hs-popup/hs-popup.wxml
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
<up-popup wx:if="{{b}}" class="data-v-775dba8e" u-s="{{['d']}}" bindclose="{{a}}" u-i="775dba8e-0" bind:__l="__l" u-p="{{b}}"><slot></slot></up-popup>
|
||||||
3
dist/dev/mp-weixin/components/hs-popup/hs-popup.wxss
vendored
Normal file
3
dist/dev/mp-weixin/components/hs-popup/hs-popup.wxss
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
.data-v-775dba8e .u-transition {
|
||||||
|
padding-bottom: calc(env(safe-area-inset-bottom) + 48px) !important;
|
||||||
|
}
|
||||||
92
dist/dev/mp-weixin/components/hs-private-policy/hs-private-policy.js
vendored
Normal file
92
dist/dev/mp-weixin/components/hs-private-policy/hs-private-policy.js
vendored
Normal file
@ -0,0 +1,92 @@
|
|||||||
|
"use strict";
|
||||||
|
const common_vendor = require("../../common/vendor.js");
|
||||||
|
if (!Array) {
|
||||||
|
const _easycom_u_checkbox2 = common_vendor.resolveComponent("u-checkbox");
|
||||||
|
const _easycom_u_checkbox_group2 = common_vendor.resolveComponent("u-checkbox-group");
|
||||||
|
(_easycom_u_checkbox2 + _easycom_u_checkbox_group2)();
|
||||||
|
}
|
||||||
|
const _easycom_u_checkbox = () => "../../node-modules/uview-plus/components/u-checkbox/u-checkbox.js";
|
||||||
|
const _easycom_u_checkbox_group = () => "../../node-modules/uview-plus/components/u-checkbox-group/u-checkbox-group.js";
|
||||||
|
if (!Math) {
|
||||||
|
(_easycom_u_checkbox + _easycom_u_checkbox_group)();
|
||||||
|
}
|
||||||
|
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||||
|
__name: "hs-private-policy",
|
||||||
|
props: {
|
||||||
|
isAgree: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
|
isDisabled: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
|
policyName: {
|
||||||
|
type: String,
|
||||||
|
default: "隐私政策名称"
|
||||||
|
},
|
||||||
|
activeColor: {
|
||||||
|
type: String,
|
||||||
|
default: "#3b65a9"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
emits: ["update:isAgree", "clickPolicy", "clickCheckbox"],
|
||||||
|
setup(__props, { emit }) {
|
||||||
|
const props = __props;
|
||||||
|
const isAgree = common_vendor.ref([]);
|
||||||
|
if (props.isAgree) {
|
||||||
|
isAgree.value = ["isAgree"];
|
||||||
|
} else {
|
||||||
|
isAgree.value = [];
|
||||||
|
}
|
||||||
|
common_vendor.watch(
|
||||||
|
() => props == null ? void 0 : props.isAgree,
|
||||||
|
() => {
|
||||||
|
if (isAgree.value) {
|
||||||
|
isAgree.value = ["isAgree"];
|
||||||
|
} else {
|
||||||
|
isAgree.value = [];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
const onPolicy = () => {
|
||||||
|
emit("clickPolicy");
|
||||||
|
};
|
||||||
|
const handleAgreePrivatePolicy = () => {
|
||||||
|
var _a;
|
||||||
|
if (props.isDisabled) {
|
||||||
|
emit("clickCheckbox");
|
||||||
|
isAgree.value = [];
|
||||||
|
emit("update:isAgree", false);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
let checkbox = false;
|
||||||
|
if ((_a = isAgree.value) == null ? void 0 : _a.length) {
|
||||||
|
isAgree.value = [];
|
||||||
|
checkbox = false;
|
||||||
|
} else {
|
||||||
|
isAgree.value = ["isAgree"];
|
||||||
|
checkbox = true;
|
||||||
|
}
|
||||||
|
emit("update:isAgree", checkbox);
|
||||||
|
};
|
||||||
|
return (_ctx, _cache) => {
|
||||||
|
return {
|
||||||
|
a: common_vendor.p({
|
||||||
|
shape: "circle",
|
||||||
|
activeColor: props == null ? void 0 : props.activeColor,
|
||||||
|
name: "isAgree"
|
||||||
|
}),
|
||||||
|
b: common_vendor.o(handleAgreePrivatePolicy),
|
||||||
|
c: common_vendor.p({
|
||||||
|
modelValue: isAgree.value
|
||||||
|
}),
|
||||||
|
d: common_vendor.o(handleAgreePrivatePolicy),
|
||||||
|
e: common_vendor.t(props.policyName),
|
||||||
|
f: common_vendor.o(onPolicy)
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
});
|
||||||
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-48e3a8c0"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-customer/src/components/hs-private-policy/hs-private-policy.vue"]]);
|
||||||
|
wx.createComponent(Component);
|
||||||
7
dist/dev/mp-weixin/components/hs-private-policy/hs-private-policy.json
vendored
Normal file
7
dist/dev/mp-weixin/components/hs-private-policy/hs-private-policy.json
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"component": true,
|
||||||
|
"usingComponents": {
|
||||||
|
"u-checkbox": "../../node-modules/uview-plus/components/u-checkbox/u-checkbox",
|
||||||
|
"u-checkbox-group": "../../node-modules/uview-plus/components/u-checkbox-group/u-checkbox-group"
|
||||||
|
}
|
||||||
|
}
|
||||||
1
dist/dev/mp-weixin/components/hs-private-policy/hs-private-policy.wxml
vendored
Normal file
1
dist/dev/mp-weixin/components/hs-private-policy/hs-private-policy.wxml
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
<view class="privatePolicy data-v-48e3a8c0"><view class="scal-box data-v-48e3a8c0" bindtap="{{d}}"><u-checkbox-group wx:if="{{c}}" class="data-v-48e3a8c0" u-s="{{['d']}}" bindchange="{{b}}" u-i="48e3a8c0-0" bind:__l="__l" u-p="{{c}}"><u-checkbox wx:if="{{a}}" class="data-v-48e3a8c0" u-i="48e3a8c0-1,48e3a8c0-0" bind:__l="__l" u-p="{{a}}"></u-checkbox></u-checkbox-group><view class="t-l data-v-48e3a8c0">我已阅读并同意</view></view><view class="text data-v-48e3a8c0"><view class="t-r data-v-48e3a8c0" catchtap="{{f}}">{{e}}</view></view></view>
|
||||||
18
dist/dev/mp-weixin/components/hs-private-policy/hs-private-policy.wxss
vendored
Normal file
18
dist/dev/mp-weixin/components/hs-private-policy/hs-private-policy.wxss
vendored
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
.privatePolicy.data-v-48e3a8c0 {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
.privatePolicy .scal-box.data-v-48e3a8c0 {
|
||||||
|
transform: scale(0.9);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.privatePolicy .text.data-v-48e3a8c0 {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
font-size: 26rpx;
|
||||||
|
}
|
||||||
|
.privatePolicy .text .t-r.data-v-48e3a8c0 {
|
||||||
|
color: #3b65a9;
|
||||||
|
}
|
||||||
81
dist/dev/mp-weixin/components/hs-radio-cell-picker/hs-radio-cell-picker.js
vendored
Normal file
81
dist/dev/mp-weixin/components/hs-radio-cell-picker/hs-radio-cell-picker.js
vendored
Normal file
@ -0,0 +1,81 @@
|
|||||||
|
"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: "hs-radio-cell-picker",
|
||||||
|
props: [
|
||||||
|
"Enums",
|
||||||
|
"title",
|
||||||
|
"pickerIndex",
|
||||||
|
"value",
|
||||||
|
"borderTop",
|
||||||
|
"required",
|
||||||
|
"tip",
|
||||||
|
"key",
|
||||||
|
"des",
|
||||||
|
"padding",
|
||||||
|
"valueModel",
|
||||||
|
"disabled"
|
||||||
|
],
|
||||||
|
emits: ["change", "update:valueModel"],
|
||||||
|
setup(__props, { emit }) {
|
||||||
|
const props = __props;
|
||||||
|
const placeholder = "请选择";
|
||||||
|
const valueEd = common_vendor.ref("");
|
||||||
|
const pickerList = common_vendor.ref([]);
|
||||||
|
const onChange = (e) => {
|
||||||
|
let selectData = pickerList.value[e == null ? void 0 : e.detail.value];
|
||||||
|
valueEd.value = selectData == null ? void 0 : selectData.text;
|
||||||
|
emit("update:valueModel", selectData == null ? void 0 : selectData.value);
|
||||||
|
emit("change", selectData);
|
||||||
|
};
|
||||||
|
const getEnums = () => {
|
||||||
|
let list = Object.entries(props == null ? void 0 : props.Enums).map(
|
||||||
|
([key, value]) => ({
|
||||||
|
text: value.text,
|
||||||
|
value: value.value,
|
||||||
|
type: (value == null ? void 0 : value.type) || ""
|
||||||
|
})
|
||||||
|
);
|
||||||
|
pickerList.value = list;
|
||||||
|
};
|
||||||
|
common_vendor.watch(
|
||||||
|
() => props == null ? void 0 : props.Enums,
|
||||||
|
() => {
|
||||||
|
getEnums();
|
||||||
|
}
|
||||||
|
);
|
||||||
|
common_vendor.onMounted(() => {
|
||||||
|
getEnums();
|
||||||
|
});
|
||||||
|
return (_ctx, _cache) => {
|
||||||
|
return common_vendor.e({
|
||||||
|
a: common_vendor.t((props == null ? void 0 : props.title) || "标题"),
|
||||||
|
b: __props.required
|
||||||
|
}, __props.required ? {} : {}, {
|
||||||
|
c: common_vendor.t(valueEd.value || placeholder),
|
||||||
|
d: common_vendor.p({
|
||||||
|
type: "right",
|
||||||
|
size: "15",
|
||||||
|
color: "#999"
|
||||||
|
}),
|
||||||
|
e: common_vendor.n(valueEd.value ? "valueStyle" : "valueStyle placeholderStyle"),
|
||||||
|
f: props.borderTop ? "1rpx solid #eee" : "",
|
||||||
|
g: (props == null ? void 0 : props.padding) || "10rpx 0",
|
||||||
|
h: pickerList.value,
|
||||||
|
i: (props == null ? void 0 : props.key) || "text",
|
||||||
|
j: common_vendor.o(onChange),
|
||||||
|
k: props == null ? void 0 : props.disabled
|
||||||
|
});
|
||||||
|
};
|
||||||
|
}
|
||||||
|
});
|
||||||
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-565e829c"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-customer/src/components/hs-radio-cell-picker/hs-radio-cell-picker.vue"]]);
|
||||||
|
wx.createComponent(Component);
|
||||||
6
dist/dev/mp-weixin/components/hs-radio-cell-picker/hs-radio-cell-picker.json
vendored
Normal file
6
dist/dev/mp-weixin/components/hs-radio-cell-picker/hs-radio-cell-picker.json
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"component": true,
|
||||||
|
"usingComponents": {
|
||||||
|
"uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons"
|
||||||
|
}
|
||||||
|
}
|
||||||
1
dist/dev/mp-weixin/components/hs-radio-cell-picker/hs-radio-cell-picker.wxml
vendored
Normal file
1
dist/dev/mp-weixin/components/hs-radio-cell-picker/hs-radio-cell-picker.wxml
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
<picker class="data-v-565e829c" range="{{h}}" range-key="{{i}}" bindchange="{{j}}" disabled="{{k}}"><view class="cell_content data-v-565e829c" style="{{'border-top:' + f + ';' + ('padding:' + g)}}"><view class="title data-v-565e829c">{{a}} <text wx:if="{{b}}" class="data-v-565e829c"> * </text></view><view class="{{['data-v-565e829c', e]}}">{{c}} <uni-icons wx:if="{{d}}" class="data-v-565e829c" u-i="565e829c-0" bind:__l="__l" u-p="{{d}}"></uni-icons></view></view></picker>
|
||||||
20
dist/dev/mp-weixin/components/hs-radio-cell-picker/hs-radio-cell-picker.wxss
vendored
Normal file
20
dist/dev/mp-weixin/components/hs-radio-cell-picker/hs-radio-cell-picker.wxss
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
.cell_content.data-v-565e829c {
|
||||||
|
padding: 10rpx 0;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
.cell_content .title.data-v-565e829c {
|
||||||
|
color: #333333;
|
||||||
|
font-size: 29rpx;
|
||||||
|
padding: 16rpx 0;
|
||||||
|
}
|
||||||
|
.cell_content .title text.data-v-565e829c {
|
||||||
|
color: #f00;
|
||||||
|
}
|
||||||
|
.cell_content .valueStyle.data-v-565e829c {
|
||||||
|
font-size: 28rpx;
|
||||||
|
}
|
||||||
|
.cell_content .placeholderStyle.data-v-565e829c {
|
||||||
|
color: #ccc;
|
||||||
|
}
|
||||||
71
dist/dev/mp-weixin/components/hs-upload-id-card/hs-upload-id-card.js
vendored
Normal file
71
dist/dev/mp-weixin/components/hs-upload-id-card/hs-upload-id-card.js
vendored
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
"use strict";
|
||||||
|
const common_vendor = require("../../common/vendor.js");
|
||||||
|
const common_assets = require("../../common/assets.js");
|
||||||
|
const common_libraries_upload = require("../../common/libraries/upload.js");
|
||||||
|
require("../../gen/Apis.js");
|
||||||
|
require("../../common/libraries/request.js");
|
||||||
|
require("../../common/store/useWeAppAuthStore.js");
|
||||||
|
require("../../common/libraries/apiLoading.js");
|
||||||
|
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||||
|
__name: "hs-upload-id-card",
|
||||||
|
props: [
|
||||||
|
"valueFrontModel",
|
||||||
|
"valueBackModel",
|
||||||
|
"size",
|
||||||
|
"display",
|
||||||
|
"borderTop",
|
||||||
|
"length",
|
||||||
|
"required",
|
||||||
|
"mediaType",
|
||||||
|
"labelTitle",
|
||||||
|
"count",
|
||||||
|
"styles",
|
||||||
|
"hasCover",
|
||||||
|
"iconName",
|
||||||
|
"iconSize"
|
||||||
|
],
|
||||||
|
emits: ["update:valueFrontModel", "update:valueBackModel"],
|
||||||
|
setup(__props, { emit }) {
|
||||||
|
const props = __props;
|
||||||
|
const frontImg = common_vendor.ref({});
|
||||||
|
const backImg = common_vendor.ref({});
|
||||||
|
const handleUpload = async (type) => {
|
||||||
|
const res = await common_libraries_upload.upload(1, 4, (props == null ? void 0 : props.mediaType) || ["image"]);
|
||||||
|
console.log(res, "res32");
|
||||||
|
if (type === 1) {
|
||||||
|
frontImg.value = res[0];
|
||||||
|
emit("update:valueFrontModel", res);
|
||||||
|
}
|
||||||
|
if (type === 2) {
|
||||||
|
backImg.value = res[0];
|
||||||
|
emit("update:valueBackModel", res);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return (_ctx, _cache) => {
|
||||||
|
var _a, _b, _c, _d, _e, _f;
|
||||||
|
return common_vendor.e({
|
||||||
|
a: props == null ? void 0 : props.required
|
||||||
|
}, (props == null ? void 0 : props.required) ? {} : {}, {
|
||||||
|
b: !((_a = frontImg.value) == null ? void 0 : _a.url)
|
||||||
|
}, !((_b = frontImg.value) == null ? void 0 : _b.url) ? {
|
||||||
|
c: common_assets._imports_0
|
||||||
|
} : {
|
||||||
|
d: (_c = frontImg.value) == null ? void 0 : _c.url
|
||||||
|
}, {
|
||||||
|
e: common_vendor.o(($event) => handleUpload(1)),
|
||||||
|
f: common_vendor.s(props == null ? void 0 : props.styles),
|
||||||
|
g: !((_d = backImg.value) == null ? void 0 : _d.url)
|
||||||
|
}, !((_e = backImg.value) == null ? void 0 : _e.url) ? {
|
||||||
|
h: common_assets._imports_1
|
||||||
|
} : {
|
||||||
|
i: (_f = backImg.value) == null ? void 0 : _f.url
|
||||||
|
}, {
|
||||||
|
j: common_vendor.o(($event) => handleUpload(2)),
|
||||||
|
k: common_vendor.s(props == null ? void 0 : props.styles),
|
||||||
|
l: props.borderTop ? "1rpx solid #eee" : ""
|
||||||
|
});
|
||||||
|
};
|
||||||
|
}
|
||||||
|
});
|
||||||
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-1ecf7582"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-customer/src/components/hs-upload-id-card/hs-upload-id-card.vue"]]);
|
||||||
|
wx.createComponent(Component);
|
||||||
4
dist/dev/mp-weixin/components/hs-upload-id-card/hs-upload-id-card.json
vendored
Normal file
4
dist/dev/mp-weixin/components/hs-upload-id-card/hs-upload-id-card.json
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"component": true,
|
||||||
|
"usingComponents": {}
|
||||||
|
}
|
||||||
1
dist/dev/mp-weixin/components/hs-upload-id-card/hs-upload-id-card.wxml
vendored
Normal file
1
dist/dev/mp-weixin/components/hs-upload-id-card/hs-upload-id-card.wxml
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
<view class="upload_content data-v-1ecf7582" style="{{'border-top:' + l}}"><view class="id_card_title data-v-1ecf7582">上传身份证<text wx:if="{{a}}" class="data-v-1ecf7582"> * </text></view><view class="upload_body data-v-1ecf7582"><view class="data-v-1ecf7582"><view class="upload_item data-v-1ecf7582" bindtap="{{e}}" style="{{f}}"><image wx:if="{{b}}" class="icon data-v-1ecf7582" src="{{c}}" mode="heightFix"/><image wx:else class="showImg data-v-1ecf7582" src="{{d}}" mode="heightFix"/></view><view class="item_name data-v-1ecf7582">证件正面</view></view><view class="data-v-1ecf7582"><view class="upload_item data-v-1ecf7582" bindtap="{{j}}" style="{{k}}"><image wx:if="{{g}}" class="icon data-v-1ecf7582" src="{{h}}" mode="heightFix"/><image wx:else class="showImg data-v-1ecf7582" src="{{i}}" mode="heightFix"/></view><view class="item_name data-v-1ecf7582">证件反面</view></view></view></view>
|
||||||
54
dist/dev/mp-weixin/components/hs-upload-id-card/hs-upload-id-card.wxss
vendored
Normal file
54
dist/dev/mp-weixin/components/hs-upload-id-card/hs-upload-id-card.wxss
vendored
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
.upload_content.data-v-1ecf7582 {
|
||||||
|
border-bottom: 1rpx solid #eee;
|
||||||
|
padding: 0 0 10rpx 0;
|
||||||
|
}
|
||||||
|
.upload_content .id_card_title.data-v-1ecf7582 {
|
||||||
|
padding: 30rpx 0 20rpx 0;
|
||||||
|
font-size: 29rpx;
|
||||||
|
}
|
||||||
|
.upload_content .id_card_title text.data-v-1ecf7582 {
|
||||||
|
color: #f00;
|
||||||
|
}
|
||||||
|
.upload_body.data-v-1ecf7582 {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 10rpx 0;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.upload_body .no_data.data-v-1ecf7582 {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
width: 100%;
|
||||||
|
height: 120rpx;
|
||||||
|
font-size: 25rpx;
|
||||||
|
color: #666;
|
||||||
|
background-color: #f8f8f8;
|
||||||
|
border-radius: 6rpx;
|
||||||
|
}
|
||||||
|
.upload_body .item_name.data-v-1ecf7582 {
|
||||||
|
padding: 20rpx 0 0 0;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
.upload_item.data-v-1ecf7582 {
|
||||||
|
position: relative;
|
||||||
|
flex-shrink: 0;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
width: 330rpx;
|
||||||
|
height: 200rpx;
|
||||||
|
background-color: #f3f3f3;
|
||||||
|
border: 1px solid #f3f3f3;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.upload_item image.icon.data-v-1ecf7582 {
|
||||||
|
height: 134rpx;
|
||||||
|
}
|
||||||
|
.upload_item image.showImg.data-v-1ecf7582 {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
148
dist/dev/mp-weixin/components/hs-upload/hs-upload.js
vendored
Normal file
148
dist/dev/mp-weixin/components/hs-upload/hs-upload.js
vendored
Normal file
@ -0,0 +1,148 @@
|
|||||||
|
"use strict";
|
||||||
|
const common_vendor = require("../../common/vendor.js");
|
||||||
|
const common_libraries_watermark = require("../../common/libraries/watermark.js");
|
||||||
|
const common_libraries_upload = require("../../common/libraries/upload.js");
|
||||||
|
require("../../gen/Apis.js");
|
||||||
|
require("../../common/libraries/request.js");
|
||||||
|
require("../../common/store/useWeAppAuthStore.js");
|
||||||
|
require("../../common/libraries/apiLoading.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: "hs-upload",
|
||||||
|
props: [
|
||||||
|
"valueModel",
|
||||||
|
"size",
|
||||||
|
"display",
|
||||||
|
"length",
|
||||||
|
"mediaType",
|
||||||
|
"labelTitle",
|
||||||
|
"count",
|
||||||
|
"styles",
|
||||||
|
"hasCover",
|
||||||
|
"iconName",
|
||||||
|
"iconSize",
|
||||||
|
"required",
|
||||||
|
"title"
|
||||||
|
],
|
||||||
|
emits: ["update:valueModel"],
|
||||||
|
setup(__props, { emit }) {
|
||||||
|
const props = __props;
|
||||||
|
const list = common_vendor.ref([]);
|
||||||
|
const handleUpload = async () => {
|
||||||
|
const res = await common_libraries_upload.upload(props.count || 1, props == null ? void 0 : props.size, (props == null ? void 0 : props.mediaType) || ["image"]);
|
||||||
|
console.log(res, "res");
|
||||||
|
list.value = [...list.value, ...res];
|
||||||
|
emit("update:valueModel", list.value);
|
||||||
|
};
|
||||||
|
const onDelete = (idx) => {
|
||||||
|
if (props == null ? void 0 : props.display) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
list.value.splice(idx, 1);
|
||||||
|
};
|
||||||
|
common_vendor.watch(
|
||||||
|
() => props == null ? void 0 : props.valueModel,
|
||||||
|
() => {
|
||||||
|
if (props.valueModel) {
|
||||||
|
list.value = props.valueModel || [];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
const onPreviewMedia = (url) => {
|
||||||
|
console.log(url, "url1");
|
||||||
|
if (url) {
|
||||||
|
common_vendor.index.showLoading({
|
||||||
|
title: "获取图片中...",
|
||||||
|
mask: true
|
||||||
|
});
|
||||||
|
console.log(url, "url2");
|
||||||
|
common_vendor.index.downloadFile({
|
||||||
|
url,
|
||||||
|
success: (res) => {
|
||||||
|
const imagePath = res.tempFilePath;
|
||||||
|
console.log(imagePath, "imagePath");
|
||||||
|
common_libraries_watermark.watermark.addWatermark(imagePath, "仅用于内部查看,请勿外传");
|
||||||
|
},
|
||||||
|
fail: (err) => {
|
||||||
|
common_vendor.index.showToast({
|
||||||
|
title: "获取失败",
|
||||||
|
duration: 1e3
|
||||||
|
});
|
||||||
|
console.error("下载图片失败:", err);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
common_vendor.onMounted(() => {
|
||||||
|
if (props.valueModel) {
|
||||||
|
list.value = props.valueModel || [];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return (_ctx, _cache) => {
|
||||||
|
var _a, _b, _c, _d;
|
||||||
|
return common_vendor.e({
|
||||||
|
a: common_vendor.t((props == null ? void 0 : props.title) || "上传"),
|
||||||
|
b: props == null ? void 0 : props.required
|
||||||
|
}, (props == null ? void 0 : props.required) ? {} : {}, {
|
||||||
|
c: common_vendor.f(list.value, (i, index, i0) => {
|
||||||
|
var _a2, _b2;
|
||||||
|
return common_vendor.e({
|
||||||
|
a: (_a2 = i == null ? void 0 : i.type) == null ? void 0 : _a2.includes("video")
|
||||||
|
}, ((_b2 = i == null ? void 0 : i.type) == null ? void 0 : _b2.includes("video")) ? {
|
||||||
|
b: "eb3a1d92-0-" + i0,
|
||||||
|
c: common_vendor.p({
|
||||||
|
name: "play-circle-fill",
|
||||||
|
size: "30"
|
||||||
|
})
|
||||||
|
} : {
|
||||||
|
d: i == null ? void 0 : i.url,
|
||||||
|
e: common_vendor.o(($event) => onPreviewMedia(i == null ? void 0 : i.url), index)
|
||||||
|
}, {
|
||||||
|
f: common_vendor.o(($event) => onDelete(index), index),
|
||||||
|
g: index === 0 && (props == null ? void 0 : props.hasCover)
|
||||||
|
}, index === 0 && (props == null ? void 0 : props.hasCover) ? {
|
||||||
|
h: common_vendor.o(($event) => onDelete(index), index)
|
||||||
|
} : {}, {
|
||||||
|
i: index
|
||||||
|
});
|
||||||
|
}),
|
||||||
|
d: common_vendor.s(props == null ? void 0 : props.styles),
|
||||||
|
e: !(props == null ? void 0 : props.display) && ((_a = list.value) == null ? void 0 : _a.length) < ((props == null ? void 0 : props.count) || 1)
|
||||||
|
}, !(props == null ? void 0 : props.display) && ((_b = list.value) == null ? void 0 : _b.length) < ((props == null ? void 0 : props.count) || 1) ? common_vendor.e({
|
||||||
|
f: props == null ? void 0 : props.iconName
|
||||||
|
}, (props == null ? void 0 : props.iconName) ? {
|
||||||
|
g: common_vendor.p({
|
||||||
|
name: props == null ? void 0 : props.iconName,
|
||||||
|
label: props.labelTitle || "",
|
||||||
|
color: "#333",
|
||||||
|
size: (props == null ? void 0 : props.iconSize) || 50
|
||||||
|
})
|
||||||
|
} : {
|
||||||
|
h: common_vendor.p({
|
||||||
|
name: (props == null ? void 0 : props.iconName) || "plus",
|
||||||
|
label: props.labelTitle || "",
|
||||||
|
labelPos: "bottom",
|
||||||
|
labelSize: "20rpx",
|
||||||
|
lableColor: "#666",
|
||||||
|
color: "#333",
|
||||||
|
size: "20",
|
||||||
|
space: "6px"
|
||||||
|
})
|
||||||
|
}, {
|
||||||
|
i: common_vendor.o(handleUpload),
|
||||||
|
j: common_vendor.s(props == null ? void 0 : props.styles)
|
||||||
|
}) : {}, {
|
||||||
|
k: (props == null ? void 0 : props.display) && !((_c = list.value) == null ? void 0 : _c.length)
|
||||||
|
}, (props == null ? void 0 : props.display) && !((_d = list.value) == null ? void 0 : _d.length) ? {} : {});
|
||||||
|
};
|
||||||
|
}
|
||||||
|
});
|
||||||
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-eb3a1d92"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-customer/src/components/hs-upload/hs-upload.vue"]]);
|
||||||
|
wx.createComponent(Component);
|
||||||
6
dist/dev/mp-weixin/components/hs-upload/hs-upload.json
vendored
Normal file
6
dist/dev/mp-weixin/components/hs-upload/hs-upload.json
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"component": true,
|
||||||
|
"usingComponents": {
|
||||||
|
"up-icon": "../../node-modules/uview-plus/components/u-icon/u-icon"
|
||||||
|
}
|
||||||
|
}
|
||||||
1
dist/dev/mp-weixin/components/hs-upload/hs-upload.wxml
vendored
Normal file
1
dist/dev/mp-weixin/components/hs-upload/hs-upload.wxml
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
<view class="upload_content data-v-eb3a1d92"><view class="upload_title data-v-eb3a1d92">{{a}}<text wx:if="{{b}}" class="data-v-eb3a1d92"> * </text></view><view class="upload_body data-v-eb3a1d92"><view wx:for="{{c}}" wx:for-item="i" wx:key="i" class="upload_item data-v-eb3a1d92" style="{{d}}"><view wx:if="{{i.a}}" class="data-v-eb3a1d92"><up-icon wx:if="{{i.c}}" class="data-v-eb3a1d92" u-i="{{i.b}}" bind:__l="__l" u-p="{{i.c}}"></up-icon></view><image wx:else class="data-v-eb3a1d92" src="{{i.d}}" mode="aspectFill" lazy-load="false" bindtap="{{i.e}}"/><view class="upload_item_delete data-v-eb3a1d92" bindtap="{{i.f}}"><image class="data-v-eb3a1d92" src="/static/svg/closeRed.svg" mode="scaleToFill"/></view><view wx:if="{{i.g}}" class="upload_item_cover data-v-eb3a1d92" bindtap="{{i.h}}"><view class="cover_font data-v-eb3a1d92"> 封 </view></view></view><view wx:if="{{e}}" class="upload_item data-v-eb3a1d92" bindtap="{{i}}" style="{{j}}"><up-icon wx:if="{{f}}" class="data-v-eb3a1d92" u-i="eb3a1d92-1" bind:__l="__l" u-p="{{g}}"></up-icon><up-icon wx:else class="data-v-eb3a1d92" u-i="eb3a1d92-2" bind:__l="__l" u-p="{{h||''}}"></up-icon></view><view wx:if="{{k}}" class="no_data data-v-eb3a1d92"> 无媒体文件 </view></view></view>
|
||||||
69
dist/dev/mp-weixin/components/hs-upload/hs-upload.wxss
vendored
Normal file
69
dist/dev/mp-weixin/components/hs-upload/hs-upload.wxss
vendored
Normal file
@ -0,0 +1,69 @@
|
|||||||
|
.upload_content.data-v-eb3a1d92 {
|
||||||
|
padding: 0 0 10rpx 0;
|
||||||
|
}
|
||||||
|
.upload_content .upload_title.data-v-eb3a1d92 {
|
||||||
|
font-size: 29rpx;
|
||||||
|
padding: 30rpx 0 20rpx 0;
|
||||||
|
}
|
||||||
|
.upload_content .upload_title text.data-v-eb3a1d92 {
|
||||||
|
color: #f00;
|
||||||
|
}
|
||||||
|
.upload_body.data-v-eb3a1d92 {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 15rpx;
|
||||||
|
padding: 10rpx 0;
|
||||||
|
}
|
||||||
|
.upload_body .no_data.data-v-eb3a1d92 {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
width: 100%;
|
||||||
|
height: 120rpx;
|
||||||
|
font-size: 25rpx;
|
||||||
|
color: #666;
|
||||||
|
background-color: #f8f8f8;
|
||||||
|
border-radius: 6rpx;
|
||||||
|
}
|
||||||
|
.upload_item.data-v-eb3a1d92 {
|
||||||
|
position: relative;
|
||||||
|
flex-shrink: 0;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
width: 155rpx;
|
||||||
|
height: 155rpx;
|
||||||
|
background-color: #f3f3f3;
|
||||||
|
border: 1px solid #f3f3f3;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.upload_item image.data-v-eb3a1d92 {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
}
|
||||||
|
.upload_item .upload_item_delete.data-v-eb3a1d92 {
|
||||||
|
position: absolute;
|
||||||
|
top: 10rpx;
|
||||||
|
right: 10rpx;
|
||||||
|
width: 40rpx;
|
||||||
|
height: 40rpx;
|
||||||
|
}
|
||||||
|
.upload_item .upload_item_cover.data-v-eb3a1d92 {
|
||||||
|
position: absolute;
|
||||||
|
top: -18rpx;
|
||||||
|
left: -43rpx;
|
||||||
|
width: 116rpx;
|
||||||
|
height: 64rpx;
|
||||||
|
background: #e37318;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #fff;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: flex-end;
|
||||||
|
transform: rotate(-45deg);
|
||||||
|
}
|
||||||
|
.upload_item .upload_item_cover .cover_font.data-v-eb3a1d92 {
|
||||||
|
transform: rotate(45deg);
|
||||||
|
}
|
||||||
125
dist/dev/mp-weixin/gen/Apis.js
vendored
Normal file
125
dist/dev/mp-weixin/gen/Apis.js
vendored
Normal file
@ -0,0 +1,125 @@
|
|||||||
|
"use strict";
|
||||||
|
const common_libraries_request = require("../common/libraries/request.js");
|
||||||
|
require("../common/store/useWeAppAuthStore.js");
|
||||||
|
const Apis = {
|
||||||
|
Archive: {
|
||||||
|
HouseOccupants: {
|
||||||
|
List(data) {
|
||||||
|
return common_libraries_request.request("customer/archive/house_occupants/list", { data });
|
||||||
|
},
|
||||||
|
GetCustomerIsBindHouse() {
|
||||||
|
return common_libraries_request.request("customer/archive/house_occupants/get_customer_is_bind_house", {});
|
||||||
|
},
|
||||||
|
GetHouseOccupants(data) {
|
||||||
|
return common_libraries_request.request("customer/archive/house_occupants/get_house_occupants", { data });
|
||||||
|
},
|
||||||
|
DeleteOccupant(data) {
|
||||||
|
return common_libraries_request.request("customer/archive/house_occupants/delete_occupant", { data });
|
||||||
|
}
|
||||||
|
},
|
||||||
|
HouseRegisters: {
|
||||||
|
List(data) {
|
||||||
|
return common_libraries_request.request("customer/archive/house_registers/list", { data });
|
||||||
|
},
|
||||||
|
Store(data) {
|
||||||
|
return common_libraries_request.request("customer/archive/house_registers/store", { data });
|
||||||
|
},
|
||||||
|
Update(data) {
|
||||||
|
return common_libraries_request.request("customer/archive/house_registers/update", { data });
|
||||||
|
},
|
||||||
|
Audit(data) {
|
||||||
|
return common_libraries_request.request("customer/archive/house_registers/audit", { data });
|
||||||
|
},
|
||||||
|
Show(data) {
|
||||||
|
return common_libraries_request.request("customer/archive/house_registers/show", { data });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
Asset: {
|
||||||
|
AssetHouses: {
|
||||||
|
SelectProject(data) {
|
||||||
|
return common_libraries_request.request("customer/asset/asset_houses/select_project", { data });
|
||||||
|
},
|
||||||
|
SelectBuilding(data) {
|
||||||
|
return common_libraries_request.request("customer/asset/asset_houses/select_building", { data });
|
||||||
|
},
|
||||||
|
SelectUnit(data) {
|
||||||
|
return common_libraries_request.request("customer/asset/asset_houses/select_unit", { data });
|
||||||
|
},
|
||||||
|
SelectHouse(data) {
|
||||||
|
return common_libraries_request.request("customer/asset/asset_houses/select_house", { data });
|
||||||
|
},
|
||||||
|
Show(data) {
|
||||||
|
return common_libraries_request.request("customer/asset/asset_houses/show", { data });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
Bill: {
|
||||||
|
HouseBills: {
|
||||||
|
List(data) {
|
||||||
|
return common_libraries_request.request("customer/bill/house_bills/list", { data });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
Customer: {
|
||||||
|
CustomerBacklogs: {
|
||||||
|
List(data) {
|
||||||
|
return common_libraries_request.request("customer/customer/customer_backlogs/list", { data });
|
||||||
|
},
|
||||||
|
Show(data) {
|
||||||
|
return common_libraries_request.request("customer/customer/customer_backlogs/show", { data });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
HouseOrder: {
|
||||||
|
HouseOrders: {
|
||||||
|
List(data) {
|
||||||
|
return common_libraries_request.request("customer/house_order/house_orders/list", { data });
|
||||||
|
},
|
||||||
|
Store(data) {
|
||||||
|
return common_libraries_request.request("customer/house_order/house_orders/store", { data });
|
||||||
|
},
|
||||||
|
Show(data) {
|
||||||
|
return common_libraries_request.request("customer/house_order/house_orders/show", { data });
|
||||||
|
},
|
||||||
|
Payment(data) {
|
||||||
|
return common_libraries_request.request("customer/house_order/house_orders/payment", { data });
|
||||||
|
},
|
||||||
|
HouseOrderNotify() {
|
||||||
|
return common_libraries_request.request("customer/house_order/house_orders/house_order_notify", {});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
Login: {
|
||||||
|
Auth: {
|
||||||
|
Login(data) {
|
||||||
|
return common_libraries_request.request("customer/login/auth/login", { data });
|
||||||
|
},
|
||||||
|
Register(data) {
|
||||||
|
return common_libraries_request.request("customer/login/auth/register", { data });
|
||||||
|
},
|
||||||
|
Logout() {
|
||||||
|
return common_libraries_request.request("customer/login/auth/logout", {});
|
||||||
|
},
|
||||||
|
Me() {
|
||||||
|
return common_libraries_request.request("customer/login/auth/me", {});
|
||||||
|
},
|
||||||
|
BindPhoneNumber(data) {
|
||||||
|
return common_libraries_request.request("customer/login/auth/bind_phone_number", { data });
|
||||||
|
},
|
||||||
|
SendValidateSms(data) {
|
||||||
|
return common_libraries_request.request("customer/login/auth/send_validate_sms", { data });
|
||||||
|
},
|
||||||
|
GetAccessToken(data) {
|
||||||
|
return common_libraries_request.request("customer/login/auth/get_access_token", { data });
|
||||||
|
},
|
||||||
|
PreUpload(data) {
|
||||||
|
return common_libraries_request.request("customer/login/auth/pre_upload", { data });
|
||||||
|
},
|
||||||
|
TemporaryUrl(data) {
|
||||||
|
return common_libraries_request.request("customer/login/auth/temporary_url", { data });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
exports.Apis = Apis;
|
||||||
7
dist/dev/mp-weixin/gen/Enums.js
vendored
Normal file
7
dist/dev/mp-weixin/gen/Enums.js
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
"use strict";
|
||||||
|
const HouseOccupantsHouseRelationEnum = {
|
||||||
|
"Owner": { "text": "产权人", "color": "#2db7f5", "value": "Owner" },
|
||||||
|
"Resident": { "text": "住户", "color": "#87d068", "value": "Resident" },
|
||||||
|
"Tenant": { "text": "租客", "color": "#fa8c16", "value": "Tenant" }
|
||||||
|
};
|
||||||
|
exports.HouseOccupantsHouseRelationEnum = HouseOccupantsHouseRelationEnum;
|
||||||
63
dist/dev/mp-weixin/node-modules/uview-plus/components/u-badge/u-badge.js
vendored
Normal file
63
dist/dev/mp-weixin/node-modules/uview-plus/components/u-badge/u-badge.js
vendored
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
"use strict";
|
||||||
|
const common_vendor = require("../../../../common/vendor.js");
|
||||||
|
const _sfc_main = {
|
||||||
|
name: "u-badge",
|
||||||
|
mixins: [common_vendor.mpMixin, common_vendor.props$6, common_vendor.mixin],
|
||||||
|
computed: {
|
||||||
|
// 是否将badge中心与父组件右上角重合
|
||||||
|
boxStyle() {
|
||||||
|
let style = {};
|
||||||
|
return style;
|
||||||
|
},
|
||||||
|
// 整个组件的样式
|
||||||
|
badgeStyle() {
|
||||||
|
const style = {};
|
||||||
|
if (this.color) {
|
||||||
|
style.color = this.color;
|
||||||
|
}
|
||||||
|
if (this.bgColor && !this.inverted) {
|
||||||
|
style.backgroundColor = this.bgColor;
|
||||||
|
}
|
||||||
|
if (this.absolute) {
|
||||||
|
style.position = "absolute";
|
||||||
|
if (this.offset.length) {
|
||||||
|
const top = this.offset[0];
|
||||||
|
const right = this.offset[1] || top;
|
||||||
|
style.top = common_vendor.addUnit(top);
|
||||||
|
style.right = common_vendor.addUnit(right);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return style;
|
||||||
|
},
|
||||||
|
showValue() {
|
||||||
|
switch (this.numberType) {
|
||||||
|
case "overflow":
|
||||||
|
return Number(this.value) > Number(this.max) ? this.max + "+" : this.value;
|
||||||
|
case "ellipsis":
|
||||||
|
return Number(this.value) > Number(this.max) ? "..." : this.value;
|
||||||
|
case "limit":
|
||||||
|
return Number(this.value) > 999 ? Number(this.value) >= 9999 ? Math.floor(this.value / 1e4 * 100) / 100 + "w" : Math.floor(this.value / 1e3 * 100) / 100 + "k" : this.value;
|
||||||
|
default:
|
||||||
|
return Number(this.value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
addStyle: common_vendor.addStyle
|
||||||
|
}
|
||||||
|
};
|
||||||
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||||
|
return common_vendor.e({
|
||||||
|
a: _ctx.show && ((Number(_ctx.value) === 0 ? _ctx.showZero : true) || _ctx.isDot)
|
||||||
|
}, _ctx.show && ((Number(_ctx.value) === 0 ? _ctx.showZero : true) || _ctx.isDot) ? {
|
||||||
|
b: common_vendor.t(_ctx.isDot ? "" : $options.showValue),
|
||||||
|
c: common_vendor.n(_ctx.isDot ? "u-badge--dot" : "u-badge--not-dot"),
|
||||||
|
d: common_vendor.n(_ctx.inverted && "u-badge--inverted"),
|
||||||
|
e: common_vendor.n(_ctx.shape === "horn" && "u-badge--horn"),
|
||||||
|
f: common_vendor.n(`u-badge--${_ctx.type}${_ctx.inverted ? "--inverted" : ""}`),
|
||||||
|
g: common_vendor.s($options.addStyle(_ctx.customStyle)),
|
||||||
|
h: common_vendor.s($options.badgeStyle)
|
||||||
|
} : {});
|
||||||
|
}
|
||||||
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-aa9883b1"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-customer/node_modules/uview-plus/components/u-badge/u-badge.vue"]]);
|
||||||
|
wx.createComponent(Component);
|
||||||
4
dist/dev/mp-weixin/node-modules/uview-plus/components/u-badge/u-badge.json
vendored
Normal file
4
dist/dev/mp-weixin/node-modules/uview-plus/components/u-badge/u-badge.json
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"component": true,
|
||||||
|
"usingComponents": {}
|
||||||
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user