1 line
14 KiB
Plaintext
1 line
14 KiB
Plaintext
{"version":3,"sources":["uni-app:///main.js",null,"webpack:///E:/云商会/云商会/App.vue?0547","uni-app:///App.vue","webpack:///E:/云商会/云商会/App.vue?2b66","webpack:///E:/云商会/云商会/App.vue?14b3"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","Vue","config","productionTip","App","mpType","use","TuniaoUI","vuexStore","require","mixin","mpShare","prototype","$wxshare","wxshare","app","store","$mount","onLaunch","name","value","uni","success","console","updateManager","title","content","showCancel","onShow","onHide","methods","getUserLogin","service","provider","code","then","openid","id","icon","duration","catch","addWidthToImages","html"],"mappings":";;;;;;;;;;;;;;AAAA;AAE2D;AAC3D;AAEA;AAKA;AAWA;AAEuB;AAAA;AAtBvB;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAI1DC,YAAG,CAACC,MAAM,CAACC,aAAa,GAAG,KAAK;AAChCC,YAAG,CAACC,MAAM,GAAG,KAAK;;AAElB;;AAEAJ,YAAG,CAACK,GAAG,CAACC,iBAAQ,CAAC;;AAEjB;AACA,IAAIC,SAAS,GAAGC,mBAAO,CAAC,8BAAsB,CAAC;AAC/CR,YAAG,CAACS,KAAK,CAACF,SAAS,CAAC;;AAEpB;AACA,IAAIG,OAAO,GAAGF,mBAAO,CAAC,yCAAiC,CAAC;AACxDR,YAAG,CAACS,KAAK,CAACC,OAAO,CAAC;AAKlBV,YAAG,CAACW,SAAS,CAACC,QAAQ,GAAGC,eAAO;AAEhC,IAAMC,GAAG,GAAG,IAAId,YAAG;EAClBe,KAAK,EAALA;AAAK,GACFZ,YAAG,EACL;AAEF,UAAAW,GAAG,EAACE,MAAM,EAAE,C;;;;;;;;;;;;;AC/BZ;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACuD;AACL;AACc;;;AAGhE;AAC+L;AAC/L,gBAAgB,wMAAU;AAC1B,EAAE,yEAAM;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAA+tB,CAAgB,ovBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;ACCnvB;AACA;AACA;AACA;AAEA,eAEA;EACAC;IACA;IACA;MACAF;QACAG;QACAC;MACA;IACA;IACAC;MACAC;QAEA;QACA;QACA;QACA;QACA,oFACA;UACArB;QACA;UACAA;QACA;UACAA;QACA;MAEA;IACA;;IAEA;IACA;IACA;MACAsB;MACAP;QACAG;QACAC;MACA;MACAJ;QACAG;QACAC;MACA;IACA;;IAGA;IACA;MACA;MACAI;QACA;UACAA;YACAH;cACAI;cACAC;cACAJ;gBACA;kBACAD;kBACAG;gBACA;cACA;YACA;UACA;UAEAA;YACAH;cACAI;cACAC;cACAC;YACA;UACA;QACA;UACA;QAAA;MAEA;IACA;MACAN;QACAI;QACAC;QACAC;MACA;IACA;EAEA;EACAC;IACA;EAAA,CACA;EACAC;IACA;EAAA,CACA;EACAC;IACAC;MACAV;QACAW;QACAV;UACAC;UACA;YACAF;cACAY;cACAX;gBACA;kBACAY;gBACA,GACAC;kBACAZ;kBACA;oBACAF,2CACAe;oBACAf,wCACAgB;kBACA;oBACAhB;sBACAiB;sBACAb;sBACAc;oBACA;kBACA;kBACA;gBACA,GACAC;kBACAnB;oBACAiB;oBACAb;oBACAc;kBACA;gBACA;cACA;YACA;UACA;YACAhB;UACA;QACA;MACA;IACA;IACAkB;MACA;MACAC,4EACA;QACA;MACA;;MAEA;MACAA,2DACA;QACA;MACA;MAEA;IACA;EACA;AAEA;AAAA,2B;;;;;;;;;;;;;AC5JA;AAAA;AAAA;AAAA;AAAk3C,CAAgB,+0CAAG,EAAC,C;;;;;;;;;;;ACAt4C;AACA,OAAO,KAAU,EAAE,kBAKd","file":"common/main.js","sourcesContent":["import 'uni-pages';\r\n// @ts-ignore\r\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;import App from './App'\r\nimport store from './store'\r\n\r\nimport Vue from 'vue'\r\nVue.config.productionTip = false\r\nApp.mpType = 'app'\r\n\r\n// 引入全局TuniaoUI\r\nimport TuniaoUI from 'tuniao-ui'\r\nVue.use(TuniaoUI)\r\n\r\n// 引入TuniaoUI提供的vuex简写方法\r\nlet vuexStore = require('@/store/$tn.mixin.js')\r\nVue.mixin(vuexStore)\r\n\r\n// 引入TuniaoUI对小程序分享的mixin封装\r\nlet mpShare = require('tuniao-ui/libs/mixin/mpShare.js')\r\nVue.mixin(mpShare)\r\n\r\nimport {\r\n\twxshare\r\n} from \"util/jwexin.js\"\r\nVue.prototype.$wxshare = wxshare;\r\n\r\nconst app = new Vue({\r\n\tstore,\r\n\t...App\r\n})\r\n\r\napp.$mount()","var render, staticRenderFns, recyclableRender, components\nvar renderjs\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\nimport style0 from \"./App.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\runtime\\\\componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"App.vue\"\nexport default component.exports","import mod from \"-!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--13-1!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--13-1!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./App.vue?vue&type=script&lang=js&\"","<script>\r\nimport Vue from 'vue'\r\nimport store from './store/index.js'\r\nimport updateCustomBarInfo from './tuniao-ui/libs/function/updateCustomBarInfo.js'\r\nimport {\r\n UserLogin\r\n} from '@/util/api.js';\r\n\r\nexport default {\r\n onLaunch: function () {\r\n var Gid = uni.getStorageSync('Gid');\r\n if (Gid) {\r\n store.commit('$tStore', {\r\n name: 'Gid',\r\n value: Gid\r\n })\r\n }\r\n uni.getSystemInfo({\r\n success: function (e) {\r\n // #ifndef H5\r\n // 获取手机系统版本\r\n const system = e.system.toLowerCase()\r\n const platform = e.platform.toLowerCase()\r\n // 判断是否为ios设备\r\n if (platform.indexOf('ios') != -1 && (system.indexOf('ios') != -1 || system.indexOf(\r\n 'macos') != -1)) {\r\n Vue.prototype.SystemPlatform = 'apple'\r\n } else if (platform.indexOf('android') != -1 && (system.indexOf('android') != -1)) {\r\n Vue.prototype.SystemPlatform = 'android'\r\n } else {\r\n Vue.prototype.SystemPlatform = 'devtools'\r\n }\r\n // #endif\r\n }\r\n })\r\n\r\n // 获取设备的状态栏信息和自定义顶栏信息\r\n // store.dispatch('updateCustomBarInfo')\r\n updateCustomBarInfo().then((res) => {\r\n console.log(res);\r\n store.commit('$tStore', {\r\n name: 'vuex_status_bar_height',\r\n value: res.statusBarHeight\r\n })\r\n store.commit('$tStore', {\r\n name: 'vuex_custom_bar_height',\r\n value: res.customBarHeight\r\n })\r\n })\r\n\r\n // #ifdef MP-WEIXIN\r\n //更新检测\r\n if (wx.canIUse('getUpdateManager')) {\r\n const updateManager = wx.getUpdateManager();\r\n updateManager && updateManager.onCheckForUpdate((res) => {\r\n if (res.hasUpdate) {\r\n updateManager.onUpdateReady(() => {\r\n uni.showModal({\r\n title: '更新提示',\r\n content: '新版本已经准备就绪,是否需要重新启动应用?',\r\n success: (res) => {\r\n if (res.confirm) {\r\n uni.clearStorageSync() // 更新完成后刷新storage的数据\r\n updateManager.applyUpdate()\r\n }\r\n }\r\n })\r\n })\r\n\r\n updateManager.onUpdateFailed(() => {\r\n uni.showModal({\r\n title: '已有新版本上线',\r\n content: '小程序自动更新失败,请删除该小程序后重新搜索打开哟~~~',\r\n showCancel: false\r\n })\r\n })\r\n } else {\r\n //没有更新\r\n }\r\n })\r\n } else {\r\n uni.showModal({\r\n title: '提示',\r\n content: '当前微信版本过低,无法使用该功能,请更新到最新的微信后再重试。',\r\n showCancel: false\r\n })\r\n }\r\n // #endif\r\n },\r\n onShow: function () {\r\n // console.log('App Show')\r\n },\r\n onHide: function () {\r\n // console.log('App Hide')\r\n },\r\n methods: {\r\n getUserLogin(returnA) {\r\n uni.getProvider({\r\n service: 'oauth',\r\n success: function (res) {\r\n console.log(res)\r\n if (~res.provider.indexOf('weixin')) {\r\n uni.login({\r\n provider: \"weixin\",\r\n success: function (loginRes) {\r\n UserLogin({\r\n code: loginRes.code\r\n })\r\n .then(response => {\r\n console.log('Login',response);\r\n if (response.code == 1) {\r\n uni.setStorageSync('openid', response.data\r\n .openid);\r\n uni.setStorageSync('uid', response.data\r\n .id);\r\n } else {\r\n uni.showToast({\r\n icon: 'none',\r\n title: response.msg,\r\n duration: 2000\r\n });\r\n }\r\n //returnA(response);\r\n })\r\n .catch(error => {\r\n uni.showToast({\r\n icon: 'none',\r\n title: error,\r\n duration: 2000\r\n });\r\n });\r\n }\r\n });\r\n } else {\r\n console.log(123);\r\n }\r\n }\r\n });\r\n },\r\n addWidthToImages(html) {\r\n // 匹配并更新已有 style 属性的 img 标签\r\n html = html.replace(/(<img\\b[^>]*\\bstyle\\s*=\\s*['\"])([^'\"]*)(['\"][^>]*>)/g,\r\n function (match, p1, p2, p3) {\r\n return p1 + p2.trim() + ';width: 100%' + p3;\r\n });\r\n\r\n // 匹配并添加 style 属性到没有 style 属性的 img 标签\r\n html = html.replace(/(<img\\b(?![^>]*\\bstyle\\s*=)[^>]*>)/g,\r\n function (match, p1) {\r\n return p1.replace(/\\/?>$/, ' style=\"width: 100%;\" />');\r\n });\r\n\r\n return html;\r\n },\r\n },\r\n\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n/* 注意要写在第一行,同时给style标签加入lang=\"scss\"属性 */\r\n@import './tuniao-ui/index.scss';\r\n@import './tuniao-ui/iconfont.css';\r\n@import './static/css/my.scss';\r\n</style>\r\n","import mod from \"-!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./App.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./App.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1715760605957\n var cssReload = require(\"F:/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"/\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""} |