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ID,EAAIoM,UAAUC,UACdC,IAAUtM,EAAEuM,MAAM,iCAClBD,EACAxN,OAAOF,SAAS4N,KAAOvM,EAG3BnB,OAAO2N,KAAKxM,EAPZ,CAOgB,EAEpB2L,EAAc3L,EAEhB,CA2FK,SAASyM,EAAOC,GACnB,MAAMC,EAAY,IAAIC,IAAJ,CAAc,SAChCD,EAAUE,GAAG,WAAWH,KACpBjL,EAAAA,EAAAA,IAAU,QAGVkL,EAAUG,SAAS,IAEvBH,EAAUE,GAAG,SAASH,KAClBjL,EAAAA,EAAAA,IAAU,QAIVkL,EAAUG,SAAS,GAE3B,C","sources":["webpack://YJZ/./src/utils/request.js","webpack://YJZ/./src/api/index.js","webpack://YJZ/./src/App.vue","webpack://YJZ/./src/App.vue?7ccd","webpack://YJZ/./src/plugins/vant.js","webpack://YJZ/./src/plugins/index.js","webpack://YJZ/./src/main.js","webpack://YJZ/./src/router.js","webpack://YJZ/./src/store.js","webpack://YJZ/./src/utils/cookie.js","webpack://YJZ/./src/utils/auth.js","webpack://YJZ/./src/utils/index.js"],"sourcesContent":["\r\nconst baseUrl = location.protocol+'//'+window.location.host ;\r\nimport axios from 'axios'\r\nimport { getToken, removeToken} from './auth'\r\nimport {router} from '@/router'\r\nimport qs from 'qs'\r\nimport { showLoadingToast,closeToast,showToast } from 'vant';\r\n// import { JSONStringify } from 'lib/tool';\r\n// import Vue from 'vue'\r\nimport { store } from '@/store'\r\n\r\nconst service = axios.create({\r\n baseURL: baseUrl,\r\n // withCredentials:true,\r\n timeout: 60000,\r\n headers:{\r\n 'Content-Type':'application/json; charset=utf-8'\r\n }\r\n \r\n})\r\n\r\nservice.defaults.headers.post['Content-Type']='application/x-www-form-urlencoded;charset=utf-8'\r\n\r\nconst pending = []\r\nconst CancelToken = axios.CancelToken\r\nconst removePending = (req) => {\r\n for (const p in pending) {\r\n let str = ''\r\n if(req.params){\r\n str = JSON.stringify(req.params)\r\n }\r\n if (pending[p].u === req.url + '&' + req.method +'&'+ str) {\r\n pending[p].f()\r\n pending.splice(p, 1)\r\n }\r\n }\r\n}\r\n\r\n\r\nservice.interceptors.request.use(\r\n (req) => { \r\n if(req.method=='post'){\r\n // req.headers['Content-Type'] = 'application/x-www-form-urlencoded'\r\n // req.data = qs.stringify(req.data)\r\n }\r\n if(req.method=='get'){\r\n req.headers['Content-Type'] = 'application/json; charset=utf-8'\r\n }\r\n // 添加固定参数\r\n let token = getToken() || ''\r\n if(token) req.headers['Token'] = token\r\n req.params = {\r\n ...req.params,\r\n // token:getToken() || '',\r\n // Language:getLang() || 'en'\r\n }\r\n removePending(req)\r\n req.cancelToken = new CancelToken((c) => {\r\n let str = ''\r\n if(req.params){\r\n str = JSON.stringify(req.params)\r\n }\r\n pending.push({ u: req.url + '&' + req.method +'&'+ str, f: c })\r\n })\r\n return req\r\n },\r\n (error) => {\r\n return Promise.reject(error)\r\n }\r\n)\r\nservice.interceptors.response.use(\r\n (response) => {\r\n closeToast()\r\n removePending(response.config)\r\n \r\n if (response.data.ErrorCode === 0) {\r\n // 请求 success\r\n localStorage.setItem('login',true)\r\n return Promise.resolve(response.data) \r\n } else {\r\n if (\r\n response.data.ErrorCode === -2\r\n ) {\r\n if(response.data.RedirectUrl){\r\n // location.href = response.data.RedirectUrl;\r\n // return\r\n }\r\n //未登录\r\n removeToken()\r\n \r\n showToast('请登录')\r\n localStorage.setItem('login',false)\r\n store.dispatch('getClear')\r\n setTimeout(()=>{\r\n router.push(\"/login\")\r\n },1500)\r\n return\r\n } \r\n // setIsPast(true)\r\n showToast(response.data.ErrorMsg)\r\n \r\n return Promise.reject(new Error(response.data.ErrorMsg || 'Error'))\r\n }\r\n \r\n },\r\n (error) => {\r\n console.log(error)\r\n // closeToast()\r\n if(error.code === 'ECONNABORTED' || error == 'timeout of 60000ms exceeded'){ \r\n showToast('系统繁忙,请稍后重试')\r\n \r\n }\r\n\r\n return Promise.reject(error)\r\n }\r\n)\r\nexport default service\r\n","import request from '../utils/request'\r\nimport { showLoadingToast,closeToast,showToast } from 'vant';\r\n\r\nimport {toToast} from '@/utils'\r\n\r\n// 初始化接口\r\nexport function ValidateCode(data) {\r\n return request({\r\n url: '/Qt/common/GetValidateCode',\r\n method: 'post',\r\n data,\r\n })\r\n}\r\n\r\nexport function MemberName(data) {\r\n return request({\r\n url: '/Qt/DefaultF/GetMemberInfo',\r\n method: 'post',\r\n data,\r\n })\r\n}\r\n\r\nexport function MemberView(params) {\r\n return request({\r\n url: '/Qt/MemberF/MemberView',\r\n method: 'get',\r\n params,\r\n })\r\n}\r\n\r\nexport function GainAwardsRecord(params) {\r\n return request({\r\n url: '/Qt/FinanceF/GainAwardsRecord',\r\n method: 'get',\r\n params,\r\n })\r\n}\r\n\r\nexport function GetBillflowList(params) {\r\n return request({\r\n url: '/Qt/FinanceF/GetBillflowList',\r\n method: 'get',\r\n params,\r\n })\r\n}\r\n\r\nexport function RegeditSumbit(data) {\r\n showLoadingToast({\r\n duration:0,\r\n message:'提交中...',\r\n forbidClick: true,\r\n });\r\n return request({\r\n url: '/Qt/DefaultF/RegeditSumbit',\r\n method: 'post',\r\n data,\r\n })\r\n}\r\n\r\nexport function uploadimg(data) {\r\n showLoadingToast({\r\n duration:0,\r\n message: '上传中...',\r\n forbidClick: true,\r\n });\r\n return request({\r\n url: '/Qt/common/uploadimg',\r\n method: 'post',\r\n data,\r\n })\r\n}\r\n\r\nexport function uploadfile(data) {\r\n showLoadingToast({\r\n duration:0,\r\n message: '上传中...',\r\n forbidClick: true,\r\n });\r\n return request({\r\n url: '/Qt/common/uploadfile',\r\n method: 'post',\r\n data,\r\n })\r\n}\r\n\r\n\r\nexport function submitForgetPassword(data) {\r\n return request({\r\n url: '/Qt/DefaultF/ForgetPassword',\r\n method: 'post',\r\n data,\r\n })\r\n}\r\n\r\nexport function getForgetPassword(data) {\r\n return request({\r\n url: '/Qt/common/GetQuestionList',\r\n method: 'post',\r\n data,\r\n })\r\n}\r\n\r\nexport function Loginout(data) {\r\n showLoadingToast({\r\n duration:0,\r\n message: '提交中...',\r\n forbidClick: true,\r\n });\r\n return request({\r\n url: '/Qt/MemberF/Loginout',\r\n method: 'post',\r\n data,\r\n })\r\n}\r\n\r\nexport function CarouselImage(params) {\r\n return request({\r\n url: '/Qt/DefaultF/GetCarouselImage',\r\n method: 'get',\r\n params,\r\n })\r\n}\r\n\r\nexport function Login(data) {\r\n showLoadingToast({\r\n duration:0,\r\n message:'登录中...',\r\n forbidClick: true,\r\n });\r\n return request({\r\n url: '/Qt/DefaultF/Login',\r\n method: 'post',\r\n data,\r\n })\r\n}\r\n\r\n\r\nexport function getActiveted(params) {\r\n return request({\r\n url: '/Qt/MemberF/Activeted',\r\n method: 'get',\r\n params,\r\n })\r\n}\r\n\r\n\r\nexport function NewNews(params) {\r\n return request({\r\n url: '/Qt/DefaultF/NewNews',\r\n method: 'get',\r\n params,\r\n })\r\n}\r\n\r\n\r\nexport function MyTeamList(params) {\r\n return request({\r\n url: '/Qt/MemberF/MyTeamList',\r\n method: 'get',\r\n params,\r\n })\r\n}\r\n\r\nexport function GetReceiveList(params) {\r\n return request({\r\n url: '/Qt/JobF/GetReceiveList',\r\n method: 'get',\r\n params,\r\n })\r\n}\r\n\r\nexport function GetKFkUrl(params) {\r\n return request({\r\n url: '/Qt/MemberF/GetKFkUrl',\r\n method: 'get',\r\n params,\r\n })\r\n}\r\n\r\nexport function GetMySendCount(params) {\r\n return request({\r\n url: '/Qt/JobF/GetMySendCount',\r\n method: 'get',\r\n params,\r\n })\r\n}\r\n\r\nexport function VerifiedSubmit(data) {\r\n showLoadingToast({\r\n duration:0,\r\n message: '提交中...',\r\n forbidClick: true,\r\n });\r\n return request({\r\n url: '/Qt/MemberF/VerifiedSubmit',\r\n method: 'post',\r\n data,\r\n })\r\n}\r\n\r\nexport function GetJumpLinkUrl(params) {\r\n return request({\r\n url: '/Qt/DefaultF/GetJumpLinkUrl ',\r\n method: 'get',\r\n params,\r\n })\r\n}\r\n\r\nexport function GetNewsList(params) {\r\n return request({\r\n url: '/Qt/NoticeF/GetNewsList',\r\n method: 'get',\r\n params,\r\n })\r\n}\r\n\r\nexport function ReceiveAward(data) {\r\n showLoadingToast({\r\n duration:0,\r\n message:'领取中...',\r\n forbidClick: true,\r\n });\r\n return request({\r\n url: '/Qt/JobF/ReceiveAward',\r\n method: 'post',\r\n data,\r\n })\r\n}\r\n\r\nexport function GetReferralLink(params) {\r\n return request({\r\n url: '/Qt/MemberF/GetReferralLink',\r\n method: 'get',\r\n params,\r\n })\r\n}\r\n\r\nexport function EditMemberLoginPwd(data) {\r\n showLoadingToast({\r\n duration:0,\r\n message:'提交中...',\r\n forbidClick: true,\r\n });\r\n return request({\r\n url: '/Qt/MemberF/EditMemberLoginPwd',\r\n method: 'post',\r\n data,\r\n })\r\n}\r\n\r\nexport function SetAnswer(data) {\r\n showLoadingToast({\r\n duration:0,\r\n message:'提交中...',\r\n forbidClick: true,\r\n });\r\n return request({\r\n url: '/Qt/MemberF/SetAnswer',\r\n method: 'post',\r\n data,\r\n })\r\n}\r\n\r\nexport function SetMembeSecPwd(data) {\r\n showLoadingToast({\r\n duration:0,\r\n message:'提交中...',\r\n forbidClick: true,\r\n });\r\n return request({\r\n url: '/Qt/MemberF/SetMembeSecPwd',\r\n method: 'post',\r\n data,\r\n })\r\n}\r\n\r\nexport function EditMemberSecondPwd(data) {\r\n showLoadingToast({\r\n duration:0,\r\n message:'提交中...',\r\n forbidClick: true,\r\n });\r\n return request({\r\n url: '/Qt/MemberF/EditMemberSecondPwd',\r\n method: 'post',\r\n data,\r\n })\r\n}\r\n\r\nexport function getJobSubmit(params) {\r\n return request({\r\n url: '/Qt/JobF/JobSubmit',\r\n method: 'get',\r\n params,\r\n })\r\n}\r\n\r\nexport function getBankInfo(params) {\r\n return request({\r\n url: '/Qt/MemberF/EditMemberView',\r\n method: 'get',\r\n params,\r\n })\r\n}\r\n\r\nexport function BankListUrl(data) {\r\n return request({\r\n url: '/Qt/common/GetBankList',\r\n method: 'post',\r\n data,\r\n })\r\n}\r\n\r\nexport function EditMemberView(data) {\r\n showLoadingToast({\r\n duration:0,\r\n message:'提交中...',\r\n forbidClick: true,\r\n });\r\n return request({\r\n url: '/Qt/MemberF/EditMemberView',\r\n method: 'post',\r\n data,\r\n })\r\n}\r\n\r\nexport function GetNewsDetail(params) {\r\n return request({\r\n url: '/Qt/NoticeF/GetNewsDetail',\r\n method: 'get',\r\n params,\r\n })\r\n}\r\n\r\nexport function getSubmitWithdraw(params) {\r\n return request({\r\n url: '/Qt/FinanceF/SubmitWithdraw',\r\n method: 'get',\r\n params,\r\n })\r\n}\r\n\r\n\r\nexport function GetWithdraws(params) {\r\n return request({\r\n url: '/Qt/FinanceF/GetWithdraws',\r\n method: 'get',\r\n params,\r\n })\r\n}\r\n\r\nexport function ReferralLink(params) {\r\n return request({\r\n url: '/Qt/MemberF/GetReferralLink',\r\n method: 'get',\r\n params,\r\n })\r\n}\r\n\r\nexport function GetSubmit(params) {\r\n return request({\r\n url: '/Qt/JobF/GetSubmit',\r\n method: 'get',\r\n params,\r\n })\r\n}\r\n\r\nexport function JobSubmit(data) {\r\n showLoadingToast({\r\n duration:0,\r\n message:'提交中...',\r\n forbidClick: true,\r\n });\r\n return request({\r\n url: '/Qt/JobF/JobSubmit',\r\n method: 'post',\r\n data,\r\n })\r\n}\r\n\r\nexport function SubmitWithdraw(data) {\r\n showLoadingToast({\r\n duration:0,\r\n message:'提交中...',\r\n forbidClick: true,\r\n });\r\n return request({\r\n url: '/Qt/FinanceF/SubmitWithdraw',\r\n method: 'post',\r\n data,\r\n })\r\n}\r\n\r\n\r\nexport function GetMyJobList(params) {\r\n return request({\r\n url: '/Qt/JobF/GetMyJobList',\r\n method: 'get',\r\n params,\r\n })\r\n}\r\n\r\nexport function GetJobInfo(params) {\r\n return request({\r\n url: '/Qt/JobF/GetJobInfo',\r\n method: 'get',\r\n params,\r\n })\r\n}","\n \n \n \n \t\n \n \n
\n\n\n\n","import { render } from \"./App.vue?vue&type=template&id=0792d139\"\nimport script from \"./App.vue?vue&type=script&lang=js\"\nexport * from \"./App.vue?vue&type=script&lang=js\"\n\nimport \"./App.vue?vue&type=style&index=0&id=0792d139&lang=less\"\n\nimport exportComponent from \"../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import Vant from 'vant'\r\nimport 'vant/lib/index.css'\r\n\r\nexport default function (App) {\r\n App.use(Vant)\r\n}\r\n","import useVant from './vant'\r\n\r\nexport default function InstallPlugins(App) {\r\n useVant(App)\r\n}\r\n","import { createApp } from 'vue'\nimport App from './App.vue'\nimport { router } from './router'\nimport { store } from './store'\nimport './App.css'\nimport './css/style.less'\nimport 'lib-flexible' \nimport { setToastDefaultOptions } from 'vant'; \nsetToastDefaultOptions({ duration: 2000 });\nimport vconsole from 'vconsole'\n// 测试环境开启控制台\n// if (import.meta.env.MODE === 'test') {\n// // new vconsole()\n// }\n\nimport InstallPlugins from './plugins'\n\nconst Instance = createApp(App)\n// 挂载插件\nInstallPlugins(Instance)\n\nInstance.use(store).use(router).mount('#app')\n","import { createRouter, createWebHistory,createWebHashHistory} from 'vue-router'\r\n\r\nconst routes = [\r\n // {\r\n // path: '/',\r\n // redirect: '/home',\r\n // },\r\n \r\n \r\n {\r\n path: '/',\r\n name: 'Index',\r\n redirect: '/home',\r\n component: () => import(/* webpackChunkName: \"home\" */ './pages/index/index.vue'),\r\n children:[\r\n {\r\n path: '/home',\r\n component: () => import('@/pages/index/home.vue'),\r\n name: 'Home',\r\n },\r\n {\r\n path: '/my',\r\n component: () => import('@/pages/my/my.vue'),\r\n name: 'My',\r\n },\r\n ]\r\n },\r\n {\r\n path: '/login',\r\n name: 'Login',\r\n component: () =>\r\n import('@/pages/login/login.vue'),\r\n },{\r\n path: '/register',\r\n name: 'register',\r\n component: () =>\r\n import('@/pages/login/register.vue'),\r\n },{\r\n path: '/forgot',\r\n name: 'Forgot',\r\n component: () =>\r\n import('@/pages/login/forgot.vue'),\r\n },{\r\n path: '/order',\r\n name: 'order',\r\n component: () =>\r\n import('@/pages/index/order.vue'),\r\n },{\r\n path:'/orderDetail',\r\n name: 'orderDetail',\r\n component: () =>\r\n import('@/pages/index/orderDetail.vue'),\r\n },{\r\n path:'/bill',\r\n name: 'bill',\r\n component: () =>\r\n import('@/pages/my/bill.vue'),\r\n },{\r\n path:'/rod',\r\n name: 'rod',\r\n component: () =>\r\n import('@/pages/my/rod.vue'),\r\n },{\r\n path:'/team',\r\n name: 'team',\r\n component: () =>\r\n import('@/pages/my/team.vue'),\r\n },{\r\n path:'/extract',\r\n name: 'extract',\r\n component: () =>\r\n import('@/pages/my/extract.vue'),\r\n },{\r\n path:'/txRod',\r\n name: 'txRod',\r\n component: () =>\r\n import('@/pages/my/txRod.vue'),\r\n },{\r\n path:'/myset',\r\n name: 'set',\r\n component: () =>\r\n import('@/pages/my/set.vue'),\r\n },{\r\n path:'/newsDetail',\r\n name: 'newsDetail',\r\n component: () =>\r\n import('@/pages/index/newsDetail.vue'),\r\n },{\r\n path:\"/inviteLink\",\r\n name: 'inviteLink',\r\n component: () =>\r\n import('@/pages/my/inviteLink.vue'),\r\n },{\r\n path:\"/setSecPws\",\r\n name: 'setSecPws',\r\n component: () =>\r\n import('@/pages/my/setSecPws.vue'),\r\n },{\r\n path:'/mybank',\r\n name: 'mybank',\r\n component: () =>\r\n import('@/pages/my/mybank.vue'),\r\n },{\r\n path:'/addBank',\r\n name: 'addBank',\r\n component: () =>\r\n import('@/pages/my/addBank.vue'),\r\n },{\r\n path:'/realname',\r\n name: 'realname',\r\n component: () =>\r\n import('@/pages/my/realname.vue'),\r\n },{\r\n path:'/mykf',\r\n name: 'mykf',\r\n component: () =>\r\n import('@/pages/my/mykf.vue'),\r\n }\r\n]\r\n\r\nexport const router = createRouter({\r\n history: createWebHashHistory(),\r\n routes,\r\n})\r\n\r\n// 0-9,a-z, length:8\r\nconst randomString = () => {\r\n return Math.random().toString(36).slice(-8)\r\n}\r\n\r\nrouter.beforeEach((to) => {\r\n \r\n})\r\n\r\nrouter.afterEach(() => {\r\n // 隐藏菜单\r\n // hideMenuItems()\r\n})\r\n","import { createStore } from 'vuex'\r\nimport { getChainId,setChainId,getToken } from '@/utils/auth'\r\nimport {MemberView,Loginout} from '@/api'\r\n// import App from \"@/api/app-ether\"\r\nimport { showToast,showConfirmDialog } from 'vant'\r\nimport {router} from '@/router'\r\n\r\n\r\nexport const store = createStore({\r\n state: {\r\n isConnect:false,\r\n Token:'',\r\n chain:'',\r\n address:\"\",\r\n member:'',\r\n },\r\n mutations: {\r\n set_Connect:(state, data)=>{\r\n state.isConnect = data\r\n },\r\n set_Token:(state, data)=>{\r\n state.Token = data\r\n },\r\n set_Chain:(state, data)=>{\r\n state.chain = data\r\n },\r\n set_address:(state, data)=>{\r\n state.address = data\r\n },\r\n set_member:(state, data)=>{\r\n state.member = data\r\n },\r\n },\r\n actions:{\r\n getAccountData({ commit }){\r\n // const accountAddr = App.MetaMask.getCurrentAccount()\r\n // // commit('set_address',accountAddr)\r\n // if(accountAddr&&getToken()){\r\n // commit('set_address',accountAddr)\r\n // }\r\n },\r\n getClear({ commit }){\r\n commit('set_address','')\r\n commit('set_Token','')\r\n commit('set_Chain','')\r\n commit('set_member','')\r\n },\r\n getReset({ commit }){\r\n Loginout().then(res=>{\r\n if(res){\r\n showToast(\"退出成功\")\r\n commit('set_Token','')\r\n commit('set_member','')\r\n setTimeout(()=>{\r\n router.push('/login')\r\n })\r\n }\r\n \r\n })\r\n \r\n },\r\n getChain({ commit }){\r\n // App.MetaMask.getChain().then(res=>{\r\n // setChainId(res.chainId)\r\n // commit('set_Chain', res)\r\n // // console.log(res)\r\n // })\r\n },\r\n getMemberView({ commit }){\r\n return new Promise((resolve, reject) => {\r\n MemberView().then(response => {\r\n const data = response.Data\r\n commit('set_member', data.member)\r\n resolve(data)\r\n }).catch(error => {\r\n reject(error)\r\n })\r\n })\r\n } ,\r\n },\r\n getters: {},\r\n})\r\n","/* eslint-disable no-useless-escape */\r\n/*\\\r\n|*|\r\n|*| :: cookies.js ::\r\n|*|\r\n|*| A complete cookies reader/writer framework with full unicode support.\r\n|*|\r\n|*| https://developer.mozilla.org/en-US/docs/DOM/document.cookie\r\n|*|\r\n|*| This framework is released under the GNU Public License, version 3 or later.\r\n|*| http://www.gnu.org/licenses/gpl-3.0-standalone.html\r\n|*|\r\n|*| Syntaxes:\r\n|*|\r\n|*| * docCookies.setItem(name, value[, end[, path[, domain[, secure]]]])\r\n|*| * docCookies.getItem(name)\r\n|*| * docCookies.removeItem(name[, path], domain)\r\n|*| * docCookies.hasItem(name)\r\n|*| * docCookies.keys()\r\n|*|\r\n\\*/\r\n\r\nexport default {\r\n getItem: function (sKey) {\r\n return (\r\n decodeURIComponent(\r\n document.cookie.replace(\r\n new RegExp(\r\n '(?:(?:^|.*;)\\\\s*' +\r\n encodeURIComponent(sKey).replace(/[-.+*]/g, '\\\\$&') +\r\n '\\\\s*\\\\=\\\\s*([^;]*).*$)|^.*$'\r\n ),\r\n '$1'\r\n )\r\n ) || null\r\n )\r\n },\r\n setItem: function (sKey, sValue, vEnd, sPath, sDomain, bSecure) {\r\n if (!sKey || /^(?:expires|max\\-age|path|domain|secure)$/i.test(sKey)) {\r\n return false\r\n }\r\n var sExpires = ''\r\n if (vEnd) {\r\n switch (vEnd.constructor) {\r\n case Number:\r\n sExpires =\r\n vEnd === Infinity\r\n ? '; expires=Fri, 31 Dec 9999 23:59:59 GMT'\r\n : '; max-age=' + vEnd\r\n break\r\n case String:\r\n sExpires = '; expires=' + vEnd\r\n break\r\n case Date:\r\n sExpires = '; expires=' + vEnd.toUTCString()\r\n break\r\n }\r\n }\r\n document.cookie =\r\n encodeURIComponent(sKey) +\r\n '=' +\r\n encodeURIComponent(sValue) +\r\n sExpires +\r\n (sDomain ? '; domain=' + sDomain : '') +\r\n (sPath ? '; path=' + sPath : '') +\r\n (bSecure ? '; secure' : '')\r\n return true\r\n },\r\n removeItem: function (sKey, sPath, sDomain) {\r\n if (!sKey || !this.hasItem(sKey)) {\r\n return false\r\n }\r\n document.cookie =\r\n encodeURIComponent(sKey) +\r\n '=; expires=Thu, 01 Jan 1970 00:00:00 GMT' +\r\n (sDomain ? '; domain=' + sDomain : '') +\r\n (sPath ? '; path=' + sPath : '')\r\n return true\r\n },\r\n hasItem: function (sKey) {\r\n return new RegExp(\r\n '(?:^|;\\\\s*)' +\r\n encodeURIComponent(sKey).replace(/[-.+*]/g, '\\\\$&') +\r\n '\\\\s*\\\\='\r\n ).test(document.cookie)\r\n },\r\n keys: /* optional method: you can safely remove it! */ function () {\r\n var aKeys = document.cookie\r\n .replace(/((?:^|\\s*;)[^\\=]+)(?=;|$)|^\\s*|\\s*(?:\\=[^;]*)?(?:\\1|$)/g, '')\r\n .split(/\\s*(?:\\=[^;]*)?;\\s*/)\r\n for (var nIdx = 0; nIdx < aKeys.length; nIdx++) {\r\n aKeys[nIdx] = decodeURIComponent(aKeys[nIdx])\r\n }\r\n return aKeys\r\n },\r\n}\r\n","import Cookies from './cookie'\r\nconst TokenKey = `Token` // 登录授权\r\nconst FId = `FId` // 邀请人id\r\nconst URL = 'URL' // 项目落地地址\r\nconst Lang = 'Lang' //语言\r\nconst inviteCode = 'inviteCode' //邀请人\r\nconst showNews = 'showNews' //\r\n const Stock = \"Stock\"\r\nconst Bank = 'bank'\r\nconst Psw = 'Psw'\r\n\r\nconst showGG = 'showGG'\r\n\r\nexport function getToken() {\r\n return Cookies.getItem(TokenKey)\r\n}\r\nexport function setToken(token) {\r\n return Cookies.setItem(TokenKey, token, 86400)\r\n}\r\n\r\nexport function removeToken() {\r\n return Cookies.removeItem(TokenKey)\r\n}\r\n\r\n\r\nexport function setFId(key) {\r\n return Cookies.setItem(FId, key, { expires: 1 })\r\n}\r\nexport function getFId() {\r\n return Cookies.getItem(FId)\r\n}\r\n\r\nexport function setURL(key) {\r\n return Cookies.setItem(URL, key, 86400)\r\n}\r\nexport function getURL() {\r\n return Cookies.getItem(URL)\r\n}\r\n\r\nexport function getPsw(){\r\n\treturn Cookies.getItem(Psw)\r\n}\r\n\r\nexport function setPsw(key){\r\n\treturn Cookies.setItem(Psw, key, 86400)\r\n}\r\n\r\nexport function getLang(){\r\n\treturn localStorage.getItem(Lang)\r\n}\r\n\r\nexport function setLang(key){\r\n\treturn localStorage.setItem(Lang,key)\r\n}\r\n\r\nexport function getshowNews(){\r\n\treturn localStorage.getItem(showNews)\r\n}\r\n\r\nexport function setshowNews(key){\r\n\treturn localStorage.setItem(showNews,key)\r\n}\r\n\r\nexport function getshowGG(){\r\n\treturn localStorage.getItem(showGG)\r\n}\r\n\r\nexport function setshowGG(key){\r\n\treturn localStorage.setItem(showGG,key)\r\n}\r\n\r\nexport function getInviteCode(){\r\n\treturn sessionStorage.getItem(inviteCode)\r\n}\r\n\r\nexport function setInviteCode(key){\r\n\treturn sessionStorage.setItem(inviteCode,key)\r\n}\r\n\r\nexport function getStockinfo(){\r\n\treturn sessionStorage.getItem(Stock)\r\n}\r\n\r\nexport function setStockinfo(key){\r\n\treturn sessionStorage.setItem(Stock,key)\r\n}\r\n\r\nexport function getdBank(){\r\n\treturn sessionStorage.getItem(Bank)\r\n}\r\n\r\nexport function setdBank(key){\r\n\treturn sessionStorage.setItem(Bank,key)\r\n}\r\n\r\n\r\nexport const checkLogin = (fid) => {\r\n // return (window.location.href = `${\r\n // import.meta.env.VITE_APIURL\r\n // }yx/wxlogin?spid=${import.meta.env.VITE_SPID}${\r\n // fid ? '&f=' + fid : ''\r\n // }&url=${encodeURIComponent(location.href)}`)\r\n}\r\n\r\nexport const MchAuth = async (pathName) => {\r\n // const token = getToken()\r\n // if (!token) return checkLogin()\r\n // // const url = encodeURIComponent(location.origin+ `/${import.meta.env.VITE_NAME}` + pathName)\r\n // let url\r\n // if (pathName) {\r\n // const href = location.origin + location.pathname\r\n // const index = href.lastIndexOf('/')\r\n // url = href.replace(href.substring(index), pathName)\r\n // } else {\r\n // url = location.href\r\n // }\r\n // const res = await authMch({ url })\r\n // // location.href = `${\r\n // // import.meta.env.VITE_APIURL\r\n // // }yx/auth_mch?url=${url}&spid=${\r\n // // import.meta.env.VITE_SPID\r\n // // }&t=${token}`\r\n // location.href = res.data.auth_url\r\n // return\r\n}\r\n","import {router} from '@/router'\r\nimport { showToast } from 'vant'\r\nimport Clipboard from \"clipboard\";\r\n\r\n\r\nexport function _isMobile() { \r\n let flag = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i) \r\n return flag; \r\n}\r\nexport function isPhoneNumber(str) {\r\n var myreg = /^1[3456789]\\d{9}$/;\r\n if (!myreg.test(str)) {\r\n return false;\r\n } else {\r\n return true;\r\n }\r\n}\r\n\r\nexport function filterSpaces(str) {\r\n return str.trim().replace(/\\s+/g, \"\");\r\n }\r\n\r\nexport function getQueryVariable(variable)\r\n{\r\n var query = window.location.search.substring(1);\r\n var vars = query.split(\"&\");\r\n for (var i=0;i {\r\n if (window.android) {\r\n window.android.callAndroid(\"open,\" + url)\r\n return;\r\n }\r\n if (window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.nativeExt) {\r\n window.webkit.messageHandlers.nativeExt.postMessage({ msg: 'open,' + url })\r\n return;\r\n }\r\n var u = navigator.userAgent;\r\n var isiOS = !!u.match(/\\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端\r\n if (isiOS) {\r\n window.location.href = url;\r\n return;\r\n }\r\n window.open(url)\r\n }\r\n openInBrowser(url);\r\n return\r\n }\r\n\r\n\r\n// 压缩图片\r\n// 压缩前将file转换成image对象\r\nexport function readImg(file) {\r\n return new Promise((resolve, reject) => {\r\n const image = new Image();\r\n const reader = new FileReader();\r\n reader.onload = function (e) {\r\n image.src = e.target.result\r\n };\r\n reader.onerror = function (e) {\r\n reject(e)\r\n };\r\n reader.readAsDataURL(file);\r\n\r\n image.onload = function () {\r\n resolve(image)\r\n };\r\n image.onerror = function (e) {\r\n reject(e)\r\n };\r\n })\r\n}\r\n\r\n\r\n\r\nexport function compressImg(file) {\r\n\r\n let quality = 1\r\n if (file.file.size / (1024 * 1024) > 1) {\r\n quality = 1 / Math.ceil(file.file.size / (1024 * 1024)) // 默认到1m以下\r\n }\r\n return new Promise((resolve, reject) => {\r\n\r\n let fileType = file.file.type\r\n let imgResult = ''\r\n let reader = new FileReader()\r\n reader.readAsDataURL(file.file)\r\n\r\n reader.onload = function () {\r\n let img = new Image() //先创建图片对象\r\n img.src = this.result\r\n let canvas = document.createElement('canvas')\r\n let ctx = canvas.getContext('2d')\r\n img.onload = function () { //图片加载完后\r\n // 做适配\r\n let width = 500\r\n if (img.width < 500) {\r\n width = img.width\r\n }\r\n canvas.width = width\r\n canvas.height = (img.height / img.width) * width\r\n ctx.drawImage(img, 0, 0, canvas.width, canvas.height) //绘制图像;把大图片画在一张小画布上,压缩就这么实现了\r\n // 返回base64\r\n //quality表示导出的图片质量,只要导出为jpg和webp格式的时候此参数才有效果,默认值是0.92\r\n imgResult = canvas.toDataURL(fileType, quality)\r\n resolve(imgResult)\r\n \r\n // 这时可能后端要求我们传文件格式图片 base64转Blob\r\n // const blobImg = converrVase64UrlToBlob(imgResult , fileType)\r\n // resolve(blobImg)\r\n }\r\n }\r\n reader.onerror = function (error) {\r\n reject(error)\r\n }\r\n\r\n })\r\n}\r\n\r\nfunction converrVase64UrlToBlob (base64, mimeType){\r\n // mimeType 图片类型,例如 mimeType='image/png'\r\n const bytes = window.atob(base64.split(',')[1]) // atob方法用于解码base64\r\n // 创建一个长度为 bytes.length 的 buffer(一个二进制文件), 它会分配一个 16 字节(byte)的连续内存空间,并用 0 进行预填充。\r\n const ab = new ArrayBuffer(bytes.length)\r\n\r\n // Uint8Array —— 将 ArrayBuffer 中的每个字节视为 0 到 255 之间的单个数字(每个字节是 8 位)。这称为 “8 位无符号整数”。\r\n const ia = new Uint8Array(ab)\r\n for (let i = 0; i < bytes.length; i++) {\r\n // 更改里面的初始化内容\r\n ia[i] = bytes.charCodeAt(i)\r\n }\r\n // 创建blob格式数据,并传入二进制文件和文件原本类型\r\n return new Blob([ia], { type: mimeType })\r\n\r\n}\r\n\r\n\r\n\r\nexport function toCopy(e){\r\n const clipboard = new Clipboard(\".copy\")\r\n clipboard.on('success', e => {\r\n showToast('复制成功')\r\n // this.$Toast(this.$lang.copy_success)\r\n // // 释放内存\r\n clipboard.destroy()\r\n })\r\n clipboard.on('error', e => {\r\n showToast('复制失败')\r\n // 不支持copy \r\n // this.$Toast(this.$lang.browser_not_support)\r\n // 释放内存\r\n clipboard.destroy()\r\n })\r\n}\r\n\r\nexport function sendSmsCallback(res){\r\n console.log('sendSmsCallback--'+res)\r\n // isSend.value = false\r\n // sendTimer.value = null\r\n if(res == '1'){\r\n showToast(\"发送成功\")\r\n }else if(res == '-1'){\r\n showToast(\"未获取发短信没权限,请开启权限后再试\")\r\n }else{\r\n showToast(\"发送失败\")\r\n }\r\n \r\n}\r\n"],"names":["baseUrl","location","protocol","window","host","service","axios","baseURL","timeout","headers","defaults","post","pending","CancelToken","removePending","req","p","str","params","JSON","stringify","u","url","method","f","splice","interceptors","request","use","token","getToken","cancelToken","c","push","error","Promise","reject","response","closeToast","config","data","ErrorCode","localStorage","setItem","resolve","RedirectUrl","removeToken","showToast","store","dispatch","setTimeout","router","ErrorMsg","Error","console","log","code","ValidateCode","MemberView","GainAwardsRecord","GetBillflowList","RegeditSumbit","showLoadingToast","duration","message","forbidClick","uploadimg","uploadfile","submitForgetPassword","getForgetPassword","Loginout","CarouselImage","Login","MyTeamList","GetReceiveList","GetKFkUrl","GetMySendCount","VerifiedSubmit","GetJumpLinkUrl","GetNewsList","ReceiveAward","EditMemberLoginPwd","SetAnswer","SetMembeSecPwd","EditMemberSecondPwd","getJobSubmit","getBankInfo","BankListUrl","EditMemberView","GetNewsDetail","getSubmitWithdraw","GetWithdraws","ReferralLink","GetSubmit","JobSubmit","SubmitWithdraw","GetMyJobList","GetJobInfo","id","_createElementBlock","_hoisted_1","_createVNode","_component_router_view","Component","_Transition","name","mode","_createBlock","_resolveDynamicComponent","components","mounted","__exports__","render","App","Vant","InstallPlugins","useVant","setToastDefaultOptions","Instance","createApp","mount","routes","path","redirect","component","children","createRouter","history","createWebHashHistory","beforeEach","to","afterEach","createStore","state","isConnect","Token","chain","address","member","mutations","set_Connect","set_Token","set_Chain","set_address","set_member","actions","getAccountData","commit","getClear","getReset","then","res","getChain","getMemberView","Data","catch","getters","getItem","sKey","decodeURIComponent","document","cookie","replace","RegExp","encodeURIComponent","sValue","vEnd","sPath","sDomain","bSecure","test","sExpires","constructor","Number","Infinity","String","Date","toUTCString","removeItem","this","hasItem","keys","aKeys","split","nIdx","length","TokenKey","Psw","Cookies","setToken","getPsw","setPsw","key","isPhoneNumber","myreg","filterSpaces","trim","starPhone","phoneNum","strLen","slice","starName","starCardNumber","goLink","query","checkSecPassword","password","checkPassword","openUrl","openInBrowser","android","callAndroid","webkit","messageHandlers","nativeExt","postMessage","msg","navigator","userAgent","isiOS","match","href","open","toCopy","e","clipboard","Clipboard","on","destroy"],"sourceRoot":""}