From 66db45b59873012e346d8d07cb22533500e591fa Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Wed, 19 Jun 2024 19:24:23 +0800 Subject: [PATCH] 1 --- src/api.js | 24 ++++++++-------- src/components/townDetail/topCenter.vue | 28 +++++++++++++------ src/view/townDetail.vue | 25 +++++++++++------ .../{Bill-ng_iSFaJ.js => Bill-0XrImhvO.js} | 2 +- ...ses-Gkoz1utS.js => Businesses-eYSqAagc.js} | 2 +- ...{Remake-dUZfhVja.js => Remake-_85yyqjh.js} | 2 +- yusi/assets/api-6AhkDDlN.js | 1 - yusi/assets/api-cxsdgs3-.js | 1 + ...dity-Vwg_MLAU.js => commodity-FfJcv-d2.js} | 2 +- ...inance-sRs1nnCn.js => finance-uBvUXspn.js} | 2 +- .../{home-I71bmuFN.js => home-gUk_sCE9.js} | 2 +- .../{index-TOkJe_Cp.js => index-BiB-8MRW.js} | 2 +- .../{index-F1El3hcz.js => index-YcrvWpTH.js} | 6 ++-- .../{login-J7CIBObW.js => login-dbUO5f67.js} | 2 +- .../{order-hdHPeYr_.js => order-p2xqvgh2.js} | 2 +- ...gin-Ur5jt5TZ.js => storeLogin-NrIiPAoT.js} | 2 +- yusi/assets/townDetail-Bo6FAP0x.js | 3 -- ...l-FmQ7NlNQ.css => townDetail-cv8eeZuu.css} | 2 +- yusi/assets/townDetail-dZdkgmWZ.js | 3 ++ yusi/index.html | 2 +- 20 files changed, 67 insertions(+), 48 deletions(-) rename yusi/assets/{Bill-ng_iSFaJ.js => Bill-0XrImhvO.js} (97%) rename yusi/assets/{Businesses-Gkoz1utS.js => Businesses-eYSqAagc.js} (88%) rename yusi/assets/{Remake-dUZfhVja.js => Remake-_85yyqjh.js} (99%) delete mode 100644 yusi/assets/api-6AhkDDlN.js create mode 100644 yusi/assets/api-cxsdgs3-.js rename yusi/assets/{commodity-Vwg_MLAU.js => commodity-FfJcv-d2.js} (98%) rename yusi/assets/{finance-sRs1nnCn.js => finance-uBvUXspn.js} (98%) rename yusi/assets/{home-I71bmuFN.js => home-gUk_sCE9.js} (99%) rename yusi/assets/{index-TOkJe_Cp.js => index-BiB-8MRW.js} (98%) rename yusi/assets/{index-F1El3hcz.js => index-YcrvWpTH.js} (99%) rename yusi/assets/{login-J7CIBObW.js => login-dbUO5f67.js} (99%) rename yusi/assets/{order-hdHPeYr_.js => order-p2xqvgh2.js} (99%) rename yusi/assets/{storeLogin-Ur5jt5TZ.js => storeLogin-NrIiPAoT.js} (99%) delete mode 100644 yusi/assets/townDetail-Bo6FAP0x.js rename yusi/assets/{townDetail-FmQ7NlNQ.css => townDetail-cv8eeZuu.css} (89%) create mode 100644 yusi/assets/townDetail-dZdkgmWZ.js diff --git a/src/api.js b/src/api.js index 6181012..372f337 100644 --- a/src/api.js +++ b/src/api.js @@ -9,7 +9,7 @@ let expire = localStorage.getItem("TRADE_USER") ? JSON.parse(localStorage.getIte // 创建axios 实例 const instacne = axios.create({ // baseURL: "http://192.168.1.22:8545", - baseURL: "https://multi-store.lihaink", + baseURL: "https://multi-store.lihaink.cn", // baseURL: "https://shop.lihaink.cn/", timeout: 30000, }); @@ -18,22 +18,22 @@ const instacne = axios.create({ instacne.interceptors.request.use( (config) => { // 在发送请求之前做什么 - let timestamp = Math.floor(new Date().getTime() / 1000); + // let timestamp = Math.floor(new Date().getTime() / 1000); - if (expire) { + // if (expire) { - if (timestamp > expire) { - ElMessage({ - message: "登录过期,请重新登录", - type: 'warning', - }) + // if (timestamp > expire) { + // ElMessage({ + // message: "登录过期,请重新登录", + // type: 'warning', + // }) - localStorage.removeItem('TRADE_USER') - router.replace('/login') + // localStorage.removeItem('TRADE_USER') + // router.replace('/login') - } + // } - } + // } return config; }, diff --git a/src/components/townDetail/topCenter.vue b/src/components/townDetail/topCenter.vue index 3897d32..fd06cde 100644 --- a/src/components/townDetail/topCenter.vue +++ b/src/components/townDetail/topCenter.vue @@ -113,7 +113,7 @@ diff --git a/yusi/assets/Bill-ng_iSFaJ.js b/yusi/assets/Bill-0XrImhvO.js similarity index 97% rename from yusi/assets/Bill-ng_iSFaJ.js rename to yusi/assets/Bill-0XrImhvO.js index 896f1e8..60d5b39 100644 --- a/yusi/assets/Bill-ng_iSFaJ.js +++ b/yusi/assets/Bill-0XrImhvO.js @@ -1 +1 @@ -import{b as i,f as o,d as t,t as s}from"./index-F1El3hcz.js";const a="/yusi/assets/bg-sv6D9nMu.png",e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADMAAAAzCAYAAAA6oTAqAAAGMklEQVRogdWaSW9cRRDH//PmjT0exwkBYsIFAcE3kOBA2GQIu5AixAUBMtuX4FPwBbihHKxIiAtCCiIg9ohAJLYDFwd8QIQtgSSOx+PZjAr9K/pT9Dzbs8RDS6XRvJn3un6vqrqru7q0sFTHkFoO4CYANwO4HsAsgBkAFQCTANYBtACsAPgNwK8AfgCwDKDTjwqLc7V/fc8H5LD7bwVwEMAtALoAmlS6TcXt2gaAEoAMQBnADQAOAHiQ1w3qJIDveV/fyvTTqgDmARyigmsAzgJoCEyHsiEwJcKUabEJPms/gOcI/gGAE3zWSGFMmXsBHGbHlwDUCbNGkCbf7mYwOWFMpijmNw8BeATA2wA+571Dh7kWwEsA9gG4SBCHaQSrOEw3AZMJjFqnSphVALsAPAngbgBHAJwbJswdAJ6lwr8LzCot0pAAV6t0w5tVGAWaJMwUX46/oD0AXgFwFMC3w4Axkz8O4DzlQsIqDqKxoi6mMOpqHjsK5C/Hn7sXwPOMq3cHgXmKMWJm/oswahXvMAZ9N7hYhMmChdzd/HnrwdImDxP2rX5gHhOQPwlzgcOtu1cKxC3S5XMiDAiiFmrJ4OGSir372O/x7cBYjDxKkGiVVXGvlnTaDa7lECkYt1BbYHJ+L4q7EvX6A8DXW4HZx2A/LxAaKz4UxxiJbpUaUlUp/+zSUt2Em0YQd02bk37mYHS5ZaEzu+FlKqsQGif14F7thEU2mxvifztiFXtug/2sst+L1MN1Mv1eWFiql/Sh0TLmk9cwd3KIFYFYK5jhtzy5JaBKwQq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XwL4CcCLrFjpaYp6qOE0E7VJb7FkPhHixGd2H8Gsyv0aT0Bt2rZz3OQXAK+yuPMEO40FqehuvSyTh6FYg97EfjvGeW8kZ2dA5T6myS2O7ucbrCcOOLQLLJMK+hoV/4Sy7YNw/R7RqjP1saC8HcCdrCa0etR0FCam9BWeNzvF8zH/JI39tEEPz1nHpoSJKWYVBRPbv7bzBDYK+VDuw7eV7sxlbVAxCBN7AYM1AH8DPEPdvBM7sdwAAAAASUVORK5CYII=",c={style:{position:"relative","margin-right":"21px","margin-top":"20px"}},n=t("img",{src:a,style:{width:"100%",position:"absolute",height:"50px"},alt:""},null,-1),g=t("img",{src:e,style:{position:"absolute"},alt:""},null,-1),r=["src"],d={style:{position:"relative",padding:"0 10px",top:"5px","margin-left":"45px"}},l={style:{"font-size":"16px","font-family":"FZCYJ",color:"#A9EDFC"}},x={style:{"font-size":"12px",color:"#8395A4","margin-top":"5px"}},E={__name:"Bill",props:{data:Object},setup(A){return(p,w)=>(i(),o("div",c,[n,g,t("img",{src:`/static/a/${A.data.icon}.png`,style:{position:"absolute",top:"50%",transform:"translate(15px,-30%)"},alt:""},null,8,r),t("div",d,[t("div",l,s(A.data.num),1),t("div",x,s(A.data.text),1)])]))}};export{E as _}; +import{b as i,f as o,d as t,t as s}from"./index-YcrvWpTH.js";const a="/yusi/assets/bg-sv6D9nMu.png",e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADMAAAAzCAYAAAA6oTAqAAAGMklEQVRogdWaSW9cRRDH//PmjT0exwkBYsIFAcE3kOBA2GQIu5AixAUBMtuX4FPwBbihHKxIiAtCCiIg9ohAJLYDFwd8QIQtgSSOx+PZjAr9K/pT9Dzbs8RDS6XRvJn3un6vqrqru7q0sFTHkFoO4CYANwO4HsAsgBkAFQCTANYBtACsAPgNwK8AfgCwDKDTjwqLc7V/fc8H5LD7bwVwEMAtALoAmlS6TcXt2gaAEoAMQBnADQAOAHiQ1w3qJIDveV/fyvTTqgDmARyigmsAzgJoC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qu7w4V2v54uwLpjVeWohAVzqGiioGE7LJ7mWQU5CV5necRaf5Y403TBbAjAooziVxc31KdJzmPd8ojE2cn/LHCFRNuNyogFIB7yBVsUhNdP3MXExhrH1EC+wSqYnb6cAwCqAiizjEtOg2w/986A9QGFtLv2OpNGWGMi3+GYftYQFFi3gfWiKcFgjX8djiXO1yuTxuz5qr3cOKVbPHpgZE+Xgd28y8NVFMjVoOohB7KOd0axaJjXNT6nU+wG64irJbrFQLc1I/g0PKpfIwd3jcKoTrY9ePLM7V9CUmSxq2af4mgGfCii6+wQY/W6EkUbSoi/WZkrwIda2qWERB9vLzaCxn9IIBx+29rGc6SJbw6dTWbT+Vs6Jgd2tcTXkPwFcppYvKgMf5Vg6GbLUSJrFYQesklt8KEzPgPORYBqPBriAne5UAN4MB3c1Wog9IxxPScT2ci4k7POpuveIkDzO7xYODaJy8P2i1GTwpYXH0tED4G9SSRzMAxV2eaJU8WKUqQa+xYt/f8JRlUBhrXwL4CcCLrFjpaYp6qOE0E7VJb7FkPhHixGd2H8Gsyv0aT0Bt2rZz3OQXAK+yuPMEO40FqehuvSyTh6FYg97EfjvGeW8kZ2dA5T6myS2O7ucbrCcOOLQLLJMK+hoV/4Sy7YNw/R7RqjP1saC8HcCdrCa0etR0FCam9BWeNzvF8zH/JI39tEEPz1nHpoSJKWYVBRPbv7bzBDYK+VDuw7eV7sxlbVAxCBN7AYM1AH8DPEPdvBM7sdwAAAAASUVORK5CYII=",c={style:{position:"relative","margin-right":"21px","margin-top":"20px"}},n=t("img",{src:a,style:{width:"100%",position:"absolute",height:"50px"},alt:""},null,-1),g=t("img",{src:e,style:{position:"absolute"},alt:""},null,-1),r=["src"],d={style:{position:"relative",padding:"0 10px",top:"5px","margin-left":"45px"}},l={style:{"font-size":"16px","font-family":"FZCYJ",color:"#A9EDFC"}},x={style:{"font-size":"12px",color:"#8395A4","margin-top":"5px"}},E={__name:"Bill",props:{data:Object},setup(A){return(p,w)=>(i(),o("div",c,[n,g,t("img",{src:`/static/a/${A.data.icon}.png`,style:{position:"absolute",top:"50%",transform:"translate(15px,-30%)"},alt:""},null,8,r),t("div",d,[t("div",l,s(A.data.num),1),t("div",x,s(A.data.text),1)])]))}};export{E as _}; diff --git a/yusi/assets/Businesses-Gkoz1utS.js b/yusi/assets/Businesses-eYSqAagc.js similarity index 88% rename from yusi/assets/Businesses-Gkoz1utS.js rename to yusi/assets/Businesses-eYSqAagc.js index 8247c1c..e571838 100644 --- a/yusi/assets/Businesses-Gkoz1utS.js +++ b/yusi/assets/Businesses-eYSqAagc.js @@ -1 +1 @@ -import{_ as m}from"./TABBG-WY6uizpD.js";import{_ as f,i as v,a as $,u as B,r as D,o as E,j as b,b as g,f as h,k as _,w as C,d as a,q as k,e as w,h as I,n as N,y as S,z as V,A as j}from"./index-F1El3hcz.js";import{m as A,j as G}from"./api-6AhkDDlN.js";import"./axios-QLjAsgXu.js";const L=n=>(S("data-v-bc6a521c"),n=n(),V(),n),R={key:0,class:"center"},z={key:1,class:"box"},T={class:"img-cls"},q=L(()=>a("img",{src:m,style:{width:"100%",height:"100%",position:"absolute"},alt:""},null,-1)),M={class:"content"},O={class:"btns"},F={key:0,class:"table"},H={__name:"Businesses",setup(n){const y=v(!1),o=$();B();let d=v(0),u={};const s=t=>{i.data.splice(0,i.data.length),d.value=t,A({...o.area,status:d.value,limit:50}).then(e=>{u=e.data.list,p(e.data.list)})},x=t=>{t.columnIndex==10&&G({mer_id:u[t.rowIndex].mer_id,...o.area}).then(e=>{o.storeLogin(e.data),j.push("/storeLogin"),console.log(o.userInfo)})},p=t=>{t.forEach((e,l)=>{var c,r;l%2==0?i.data.push([`
{i(),ju(this)},{checked:t!==!1});return}else i()}const a=this.parent;!a||a.level===0||r||ju(a)}getChildren(t=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const r=this.store.props;let o="children";return r&&(o=r.children||"children"),n[o]===void 0&&(n[o]=null),t&&!n[o]&&(n[o]=[]),n[o]}updateChildren(){const t=this.getChildren()||[],n=this.childNodes.map(a=>a.data),r={},o=[];t.forEach((a,l)=>{const s=a[fl];!!s&&n.findIndex(c=>c[fl]===s)>=0?r[s]={index:l,data:a}:o.push({index:l,data:a})}),this.store.lazy||n.forEach(a=>{r[a[fl]]||this.removeChildByData(a)}),o.forEach(({index:a,data:l})=>{this.insertChild({data:l},a)}),this.updateLeafState()}loadData(t,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const r=o=>{this.childNodes=[],this.doCreateChildren(o,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,o)};this.store.load(this,r)}else t&&t.call(this)}};class vie{constructor(t){this.currentNode=null,this.currentNodeKey=null;for(const n in t)gt(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new Xh({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,n=>{this.root.doCreateChildren(n),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(t){const n=this.filterNodeMethod,r=this.lazy,o=function(a){const l=a.root?a.root.childNodes:a.childNodes;if(l.forEach(s=>{s.visible=n.call(s,t,s.data,s),o(s)}),!a.visible&&l.length){let s=!0;s=!l.some(i=>i.visible),a.root?a.root.visible=s===!1:a.visible=s===!1}t&&a.visible&&!a.isLeaf&&!r&&a.expand()};o(this)}setData(t){t!==this.root.data?(this.root.setData(t),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(t){if(t instanceof Xh)return t;const n=ct(t)?ug(this.key,t):t;return this.nodesMap[n]||null}insertBefore(t,n){const r=this.getNode(n);r.parent.insertBefore({data:t},r)}insertAfter(t,n){const r=this.getNode(n);r.parent.insertAfter({data:t},r)}remove(t){const n=this.getNode(t);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(t,n){const r=n?this.getNode(n):this.root;r&&r.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach(r=>{const o=n[r];o&&o.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){(this.defaultCheckedKeys||[]).includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const n=this.key;!t||!t.data||(n?t.key!==void 0&&(this.nodesMap[t.key]=t):this.nodesMap[t.id]=t)}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(r=>{this.deregisterNode(r)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,n=!1){const r=[],o=function(a){(a.root?a.root.childNodes:a.childNodes).forEach(s=>{(s.checked||n&&s.indeterminate)&&(!t||t&&s.isLeaf)&&r.push(s.data),o(s)})};return o(this),r}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const t=[],n=function(r){(r.root?r.root.childNodes:r.childNodes).forEach(a=>{a.indeterminate&&t.push(a.data),n(a)})};return n(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],n=this.nodesMap;for(const r in n)gt(n,r)&&t.push(n[r]);return t}updateChildren(t,n){const r=this.nodesMap[t];if(!r)return;const o=r.childNodes;for(let a=o.length-1;a>=0;a--){const l=o[a];this.remove(l.data)}for(let a=0,l=n.length;a {i(),ju(this)},{checked:t!==!1});return}else i()}const a=this.parent;!a||a.level===0||r||ju(a)}getChildren(t=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const r=this.store.props;let o="children";return r&&(o=r.children||"children"),n[o]===void 0&&(n[o]=null),t&&!n[o]&&(n[o]=[]),n[o]}updateChildren(){const t=this.getChildren()||[],n=this.childNodes.map(a=>a.data),r={},o=[];t.forEach((a,l)=>{const s=a[fl];!!s&&n.findIndex(c=>c[fl]===s)>=0?r[s]={index:l,data:a}:o.push({index:l,data:a})}),this.store.lazy||n.forEach(a=>{r[a[fl]]||this.removeChildByData(a)}),o.forEach(({index:a,data:l})=>{this.insertChild({data:l},a)}),this.updateLeafState()}loadData(t,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const r=o=>{this.childNodes=[],this.doCreateChildren(o,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,o)};this.store.load(this,r)}else t&&t.call(this)}};class vie{constructor(t){this.currentNode=null,this.currentNodeKey=null;for(const n in t)gt(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new Xh({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,n=>{this.root.doCreateChildren(n),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(t){const n=this.filterNodeMethod,r=this.lazy,o=function(a){const l=a.root?a.root.childNodes:a.childNodes;if(l.forEach(s=>{s.visible=n.call(s,t,s.data,s),o(s)}),!a.visible&&l.length){let s=!0;s=!l.some(i=>i.visible),a.root?a.root.visible=s===!1:a.visible=s===!1}t&&a.visible&&!a.isLeaf&&!r&&a.expand()};o(this)}setData(t){t!==this.root.data?(this.root.setData(t),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(t){if(t instanceof Xh)return t;const n=ct(t)?ug(this.key,t):t;return this.nodesMap[n]||null}insertBefore(t,n){const r=this.getNode(n);r.parent.insertBefore({data:t},r)}insertAfter(t,n){const r=this.getNode(n);r.parent.insertAfter({data:t},r)}remove(t){const n=this.getNode(t);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(t,n){const r=n?this.getNode(n):this.root;r&&r.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach(r=>{const o=n[r];o&&o.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){(this.defaultCheckedKeys||[]).includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const n=this.key;!t||!t.data||(n?t.key!==void 0&&(this.nodesMap[t.key]=t):this.nodesMap[t.id]=t)}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(r=>{this.deregisterNode(r)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,n=!1){const r=[],o=function(a){(a.root?a.root.childNodes:a.childNodes).forEach(s=>{(s.checked||n&&s.indeterminate)&&(!t||t&&s.isLeaf)&&r.push(s.data),o(s)})};return o(this),r}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const t=[],n=function(r){(r.root?r.root.childNodes:r.childNodes).forEach(a=>{a.indeterminate&&t.push(a.data),n(a)})};return n(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],n=this.nodesMap;for(const r in n)gt(n,r)&&t.push(n[r]);return t}updateChildren(t,n){const r=this.nodesMap[t];if(!r)return;const o=r.childNodes;for(let a=o.length-1;a>=0;a--){const l=o[a];this.remove(l.data)}for(let a=0,l=n.length;a