"use strict";const e=require("../../common/vendor.js");require("../../common/libraries/request.js"),require("../../common/store/useWatermarkStore.js");const o=require("../../common/store/useWeAppAuthStore.js");require("../../common/store/useWorkStore.js");const i=require("../../common/libraries/apiLoading.js"),s=require("./model.js"),n=require("../../gen/Apis.js"),r=require("../../common/libraries/userUserLogin.js"),t=o.useWeAppAuthStore(),u={init(){var e;s.useModel.userData.value=(null==(e=null==t?void 0:t.data)?void 0:e.user)||void 0},getCountGridHouse(){i.getApiLoading(n.Apis.Grid.Grids.CountGridHouse,{}).then(e=>{s.useModel.gridHouseData.value=e.data,console.log(e)})},handleJinGang(o){var i;(null==o?void 0:o.url)?e.index.navigateTo({url:(null==(i=r.getUser)?void 0:i.getLoginStatus())?(null==o?void 0:o.url)||"":"/pages/login"}):("Permission"===(null==o?void 0:o.icon)&&e.index.openSetting(),"Feedback"===(null==o?void 0:o.icon)&&(e.index.showLoading({title:"加载中...",mask:!0}),e.index.downloadFile({url:"https://pay-test-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01K44N5AP6T246WQWHNB2ERQ9M.pdf",success:function(o){const i=o.tempFilePath;e.index.hideLoading(),e.index.openDocument({filePath:i,showMenu:!0})}})),console.log(o,"e"))}};exports.method=u;
