99999999999

This commit is contained in:
Teng 2025-10-14 08:42:52 +08:00
parent 857966ffd0
commit cc0ce58c24
15 changed files with 37 additions and 25 deletions

View File

@ -100,9 +100,9 @@
import { import {
base_url base_url
} from '@/request/index.js'; } from '@/request/index.js';
import { // import {
changemessage // changemessage
} from './api/addjigou.js' // } from './api/addjigou.js'
import model from "@/compontent/public/model.vue" import model from "@/compontent/public/model.vue"

View File

@ -160,7 +160,7 @@
</view> </view>
</view> </view>
<view class="right-button"> <view class="right-button">
<view class="right-button-one"> <view class="right-button-one" @click="jineng">
<image class="right-button-img" <image class="right-button-img"
:src="`https://www.focusnu.com/media/directive/index/addstaff/jineng.png`" /> :src="`https://www.focusnu.com/media/directive/index/addstaff/jineng.png`" />
<view class=""> <view class="">
@ -278,6 +278,10 @@
const show = ref(false); const show = ref(false);
const content = ref(""); const content = ref("");
const jineng = () =>{
// uni.showLoading()
}
const buttonArray = ref(["信息变更", "员工功能", "员工功能"]) const buttonArray = ref(["信息变更", "员工功能", "员工功能"])
const statusarray = ["loading", "success", "fail"] const statusarray = ["loading", "success", "fail"]

View File

@ -191,8 +191,8 @@
hulitarget.value = -1; hulitarget.value = -1;
buttonOpen.value = false; buttonOpen.value = false;
} else { } else {
hulitarget.value = index; hulitarget.value = index;
console.log("!!!!",hulijigouArray.value[index].employeesApiEntity?.applyType,hulijigouArray.value[index])
if ( if (
( (
(hulijigouArray.value[index].employeesApiEntity?.applyType == 0 || hulijigouArray.value[index].employeesApiEntity?.applyType == 1) && (hulijigouArray.value[index].employeesApiEntity?.applyType == 0 || hulijigouArray.value[index].employeesApiEntity?.applyType == 1) &&
@ -439,6 +439,7 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
background-color: #fff; background-color: #fff;
z-index: 9999;
} }
.blue-button { .blue-button {

View File

@ -17,6 +17,7 @@ export default (params) => {
...params.header ...params.header
} }
uni.showLoading()
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
uni.request({ uni.request({
url: base_url + url, url: base_url + url,
@ -27,7 +28,7 @@ export default (params) => {
success(response) { success(response) {
const res = response const res = response
// 根据返回的状态码做出对应的操作 // 根据返回的状态码做出对应的操作
uni.hideLoading()
if (res.statusCode == 200) { if (res.statusCode == 200) {
resolve(res.data); resolve(res.data);
} else { } else {
@ -68,6 +69,7 @@ export default (params) => {
} }
}, },
fail(err) { fail(err) {
uni.hideLoading()
if (err.errMsg.indexOf('request:fail') !== -1) { if (err.errMsg.indexOf('request:fail') !== -1) {
uni.showToast({ uni.showToast({
title: '网络异常', title: '网络异常',

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
{"version":3,"file":"index.js","sources":["request/index.js"],"sourcesContent":["// 全局请求封装\n// export const base_url = 'http://192.168.2.20:8081/opeapi'\r\nexport const base_url = 'https://www.focusnu.com/opeapi'\r\n\n// 请求超出时间\nconst timeout = 5000\n \n// 需要修改token和根据实际修改请求头\nexport default (params) => {\n\tlet url = params.url;\n\tlet method = params.method || \"get\";\n\tlet data = params.data || {};\n\tlet header = {\n\t\t'X-Access-Token': uni.getStorageSync('token') || '',\n\t\t'Content-Type': 'application/json;charset=UTF-8',\n\t\t'Authorization': 'Basic c2FiZXI6c2FiZXJfc2VjcmV0',\r\n\t\t\n\t\t...params.header\n\t}\n\treturn new Promise((resolve, reject) => {\n\t\tuni.request({\n\t\t\turl: base_url + url,\n\t\t\tmethod: method,\n\t\t\theader: header,\n\t\t\tdata: data,\n timeout,\n\t\t\tsuccess(response) {\n\t\t\t\tconst res = response\n\t\t\t\t// 根据返回的状态码做出对应的操作\r\n\t\t\t\n\t\t\t\tif (res.statusCode == 200) {\n\t\t\t\t\tresolve(res.data);\n\t\t\t\t} else {\n\t\t\t\t\tuni.clearStorageSync()\n\t\t\t\t\tswitch (res.statusCode) {\n\t\t\t\t\t\tcase 401:\r\n\t\t\t\t\t\t\tif(!params.no401){\r\n\t\t\t\t\t\t\t\tuni.showModal({\r\n\t\t\t\t\t\t\t\t\ttitle: \"登录过期\",\r\n\t\t\t\t\t\t\t\t\tcontent: \"登录过期,请重新登录\",\r\n\t\t\t\t\t\t\t\t\tshowCancel: false,\r\n\t\t\t\t\t\t\t\t\tsuccess() {\r\n\t\t\t\t\t\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\t\t\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\t\t\t\t\t\t\t\turl: \"/pages/login/callback\",\r\n\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t}, 1000);\r\n\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 404:\n\t\t\t\t\t\t\tuni.showToast({\n\t\t\t\t\t\t\t\ttitle: '请求地址不存在...',\r\n\t\t\t\t\t\t\t\ticon: \"error\",\n\t\t\t\t\t\t\t\tduration: 2000,\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tuni.showToast({\n\t\t\t\t\t\t\t\ttitle: '请重试...',\r\n\t\t\t\t\t\t\t\ticon: \"error\",\n\t\t\t\t\t\t\t\tduration: 2000,\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\tfail(err) {\n\t\t\t\tif (err.errMsg.indexOf('request:fail') !== -1) {\n\t\t\t\t\tuni.showToast({\n\t\t\t\t\t\ttitle: '网络异常',\n\t\t\t\t\t\ticon: \"error\",\n\t\t\t\t\t\tduration: 2000\n\t\t\t\t\t})\n\t\t\t\t} else {\n\t\t\t\t\tuni.showToast({\n\t\t\t\t\t\ttitle: '未知异常',\n\t\t\t\t\t\tduration: 2000\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t\treject(err);\n \n\t\t\t}\n\t\t});\n\t}).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D,KAAK,KAAK;AACT,YAAI,IAAI,OAAO,QAAQ,cAAc,MAAM,IAAI;AAC9CA,wBAAAA,MAAI,UAAU;AAAA,YACb,OAAO;AAAA,YACP,MAAM;AAAA,YACN,UAAU;AAAA,UAChB,CAAM;AAAA,QACN,OAAW;AACNA,wBAAAA,MAAI,UAAU;AAAA,YACb,OAAO;AAAA,YACP,UAAU;AAAA,UAChB,CAAM;AAAA,QACD;AACD,eAAO,GAAG;AAAA,MAEV;AAAA,IACJ,CAAG;AAAA,EACH,CAAE,EAAE,MAAM,MAAM;AAAA,EAAA,CAAE;AAClB;;;"} {"version":3,"file":"index.js","sources":["request/index.js"],"sourcesContent":["// 全局请求封装\n// export const base_url = 'http://192.168.2.20:8081/opeapi'\r\nexport const base_url = 'https://www.focusnu.com/opeapi'\r\n\n// 请求超出时间\nconst timeout = 5000\n \n// 需要修改token和根据实际修改请求头\nexport default (params) => {\n\tlet url = params.url;\n\tlet method = params.method || \"get\";\n\tlet data = params.data || {};\n\tlet header = {\n\t\t'X-Access-Token': uni.getStorageSync('token') || '',\n\t\t'Content-Type': 'application/json;charset=UTF-8',\n\t\t'Authorization': 'Basic c2FiZXI6c2FiZXJfc2VjcmV0',\r\n\t\t\n\t\t...params.header\n\t}\r\n\tuni.showLoading()\n\treturn new Promise((resolve, reject) => {\n\t\tuni.request({\n\t\t\turl: base_url + url,\n\t\t\tmethod: method,\n\t\t\theader: header,\n\t\t\tdata: data,\n timeout,\n\t\t\tsuccess(response) {\n\t\t\t\tconst res = response\n\t\t\t\t// 根据返回的状态码做出对应的操作\r\n\t\t\t\tuni.hideLoading()\n\t\t\t\tif (res.statusCode == 200) {\n\t\t\t\t\tresolve(res.data);\n\t\t\t\t} else {\n\t\t\t\t\tuni.clearStorageSync()\n\t\t\t\t\tswitch (res.statusCode) {\n\t\t\t\t\t\tcase 401:\r\n\t\t\t\t\t\t\tif(!params.no401){\r\n\t\t\t\t\t\t\t\tuni.showModal({\r\n\t\t\t\t\t\t\t\t\ttitle: \"登录过期\",\r\n\t\t\t\t\t\t\t\t\tcontent: \"登录过期,请重新登录\",\r\n\t\t\t\t\t\t\t\t\tshowCancel: false,\r\n\t\t\t\t\t\t\t\t\tsuccess() {\r\n\t\t\t\t\t\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\t\t\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\t\t\t\t\t\t\t\turl: \"/pages/login/callback\",\r\n\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t}, 1000);\r\n\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 404:\n\t\t\t\t\t\t\tuni.showToast({\n\t\t\t\t\t\t\t\ttitle: '请求地址不存在...',\r\n\t\t\t\t\t\t\t\ticon: \"error\",\n\t\t\t\t\t\t\t\tduration: 2000,\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tuni.showToast({\n\t\t\t\t\t\t\t\ttitle: '请重试...',\r\n\t\t\t\t\t\t\t\ticon: \"error\",\n\t\t\t\t\t\t\t\tduration: 2000,\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\tfail(err) {\r\n\t\t\t\tuni.hideLoading()\n\t\t\t\tif (err.errMsg.indexOf('request:fail') !== -1) {\n\t\t\t\t\tuni.showToast({\n\t\t\t\t\t\ttitle: '网络异常',\n\t\t\t\t\t\ticon: \"error\",\n\t\t\t\t\t\tduration: 2000\n\t\t\t\t\t})\n\t\t\t\t} else {\n\t\t\t\t\tuni.showToast({\n\t\t\t\t\t\ttitle: '未知异常',\n\t\t\t\t\t\tduration: 2000\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t\treject(err);\n \n\t\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ACN,UAAU;AAAA,cAClB,CAAQ;AACD;AAAA,UACD;AAAA,QACD;AAAA,MACD;AAAA,MACD,KAAK,KAAK;AACTA,sBAAAA,MAAI,YAAa;AACjB,YAAI,IAAI,OAAO,QAAQ,cAAc,MAAM,IAAI;AAC9CA,wBAAAA,MAAI,UAAU;AAAA,YACb,OAAO;AAAA,YACP,MAAM;AAAA,YACN,UAAU;AAAA,UAChB,CAAM;AAAA,QACN,OAAW;AACNA,wBAAAA,MAAI,UAAU;AAAA,YACb,OAAO;AAAA,YACP,UAAU;AAAA,UAChB,CAAM;AAAA,QACD;AACD,eAAO,GAAG;AAAA,MAEV;AAAA,IACJ,CAAG;AAAA,EACH,CAAE,EAAE,MAAM,MAAM;AAAA,EAAA,CAAE;AAClB;;;"}

View File

@ -7052,7 +7052,7 @@ function isConsoleWritable() {
function initRuntimeSocketService() { function initRuntimeSocketService() {
const hosts = "192.168.2.27,127.0.0.1"; const hosts = "192.168.2.27,127.0.0.1";
const port = "8090"; const port = "8090";
const id = "mp-weixin_Wr-1uk"; const id = "mp-weixin_uQ0yLb";
const lazy = typeof swan !== "undefined"; const lazy = typeof swan !== "undefined";
let restoreError = lazy ? () => { let restoreError = lazy ? () => {
} : initOnError(); } : initOnError();

View File

@ -12,6 +12,8 @@ const _sfc_main = {
setup(__props) { setup(__props) {
const show = common_vendor.ref(false); const show = common_vendor.ref(false);
const content = common_vendor.ref(""); const content = common_vendor.ref("");
const jineng = () => {
};
const buttonArray = common_vendor.ref(["信息变更", "员工功能", "员工功能"]); const buttonArray = common_vendor.ref(["信息变更", "员工功能", "员工功能"]);
const statusarray = ["loading", "success", "fail"]; const statusarray = ["loading", "success", "fail"];
const which = common_vendor.ref(0); const which = common_vendor.ref(0);
@ -202,8 +204,9 @@ const _sfc_main = {
B: `https://www.focusnu.com/media/directive/index/addstaff/kaoqin.png`, B: `https://www.focusnu.com/media/directive/index/addstaff/kaoqin.png`,
C: `https://www.focusnu.com/media/directive/index/addstaff/more.png`, C: `https://www.focusnu.com/media/directive/index/addstaff/more.png`,
D: `https://www.focusnu.com/media/directive/index/addstaff/jineng.png`, D: `https://www.focusnu.com/media/directive/index/addstaff/jineng.png`,
E: `https://www.focusnu.com/media/directive/index/addstaff/yuangong.png`, E: common_vendor.o(jineng, index),
F: common_vendor.f(buttonArray.value, (item0, index2, i1) => { F: `https://www.focusnu.com/media/directive/index/addstaff/yuangong.png`,
G: common_vendor.f(buttonArray.value, (item0, index2, i1) => {
return { return {
a: `https://www.focusnu.com/media/directive/index/addstaff/${index2 + 2}.png`, a: `https://www.focusnu.com/media/directive/index/addstaff/${index2 + 2}.png`,
b: common_vendor.t(item0), b: common_vendor.t(item0),
@ -212,13 +215,13 @@ const _sfc_main = {
}; };
}) })
} : {}, { } : {}, {
G: item.applyType == "1" && item.applyStatus == `-1` H: item.applyType == "1" && item.applyStatus == `-1`
}, item.applyType == "1" && item.applyStatus == `-1` ? {} : {}, { }, item.applyType == "1" && item.applyStatus == `-1` ? {} : {}, {
H: item.applyStatus == `-1` I: item.applyStatus == `-1`
}, item.applyStatus == `-1` ? { }, item.applyStatus == `-1` ? {
I: common_vendor.o(($event) => searchjigou(), index) J: common_vendor.o(($event) => searchjigou(), index)
} : {}, { } : {}, {
J: index K: index
}); });
}), }),
h: `100vh`, h: `100vh`,

File diff suppressed because one or more lines are too long

View File

@ -41,14 +41,13 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
}); });
const buttonOpen = common_vendor.ref(false); const buttonOpen = common_vendor.ref(false);
const clickCard = (index) => { const clickCard = (index) => {
var _a, _b, _c, _d; var _a, _b, _c;
if (hulitarget.value === index) { if (hulitarget.value === index) {
hulitarget.value = -1; hulitarget.value = -1;
buttonOpen.value = false; buttonOpen.value = false;
} else { } else {
hulitarget.value = index; hulitarget.value = index;
common_vendor.index.__f__("log", "at pages/yuangongindex/searchjigou.vue:195", "!!!!", (_a = hulijigouArray.value[index].employeesApiEntity) == null ? void 0 : _a.applyType, hulijigouArray.value[index]); if ((((_a = hulijigouArray.value[index].employeesApiEntity) == null ? void 0 : _a.applyType) == 0 || ((_b = hulijigouArray.value[index].employeesApiEntity) == null ? void 0 : _b.applyType) == 1) && (hulijigouArray.value[index].employeesApiEntity.status == 1 || hulijigouArray.value[index].employeesApiEntity.status == 2) || ((_c = hulijigouArray.value[index].employeesApiEntity) == null ? void 0 : _c.applyType) == 2) {
if ((((_b = hulijigouArray.value[index].employeesApiEntity) == null ? void 0 : _b.applyType) == 0 || ((_c = hulijigouArray.value[index].employeesApiEntity) == null ? void 0 : _c.applyType) == 1) && (hulijigouArray.value[index].employeesApiEntity.status == 1 || hulijigouArray.value[index].employeesApiEntity.status == 2) || ((_d = hulijigouArray.value[index].employeesApiEntity) == null ? void 0 : _d.applyType) == 2) {
buttonOpen.value = false; buttonOpen.value = false;
} else { } else {
buttonOpen.value = true; buttonOpen.value = true;

View File

@ -128,6 +128,7 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
background-color: #fff; background-color: #fff;
z-index: 9999;
} }
.blue-button.data-v-0e7ef1bb { .blue-button.data-v-0e7ef1bb {
display: flex; display: flex;

View File

@ -5,12 +5,11 @@
}, },
"setting": { "setting": {
"urlCheck": false, "urlCheck": false,
"es6": true, "es6": false,
"postcss": false, "postcss": false,
"minified": true, "minified": true,
"newFeature": true, "newFeature": true,
"bigPackageSizeSupport": true, "bigPackageSizeSupport": true
"enhance": true
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "latest", "libVersion": "latest",

View File

@ -12,6 +12,7 @@ const request = (params) => {
"Authorization": "Basic c2FiZXI6c2FiZXJfc2VjcmV0", "Authorization": "Basic c2FiZXI6c2FiZXJfc2VjcmV0",
...params.header ...params.header
}; };
common_vendor.index.showLoading();
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
common_vendor.index.request({ common_vendor.index.request({
url: base_url + url, url: base_url + url,
@ -21,6 +22,7 @@ const request = (params) => {
timeout, timeout,
success(response) { success(response) {
const res = response; const res = response;
common_vendor.index.hideLoading();
if (res.statusCode == 200) { if (res.statusCode == 200) {
resolve(res.data); resolve(res.data);
} else { } else {
@ -60,6 +62,7 @@ const request = (params) => {
} }
}, },
fail(err) { fail(err) {
common_vendor.index.hideLoading();
if (err.errMsg.indexOf("request:fail") !== -1) { if (err.errMsg.indexOf("request:fail") !== -1) {
common_vendor.index.showToast({ common_vendor.index.showToast({
title: "网络异常", title: "网络异常",