1 line
15 KiB
Plaintext
1 line
15 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\n\timport Vue from 'vue'\r\n\timport store from './store/index.js'\r\n\timport updateCustomBarInfo from './tuniao-ui/libs/function/updateCustomBarInfo.js'\r\n\timport {\r\n\t\tUserLogin\r\n\t} from '@/util/api.js';\r\n\r\n\texport default {\r\n\t\tonLaunch: function() {\r\n\t\t\tvar Gid = uni.getStorageSync('Gid');\r\n\t\t\tif (Gid) {\r\n\t\t\t\tstore.commit('$tStore', {\r\n\t\t\t\t\tname: 'Gid',\r\n\t\t\t\t\tvalue: Gid\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t\tuni.getSystemInfo({\r\n\t\t\t\tsuccess: function(e) {\r\n\t\t\t\t\t// #ifndef H5\r\n\t\t\t\t\t// 获取手机系统版本\r\n\t\t\t\t\tconst system = e.system.toLowerCase()\r\n\t\t\t\t\tconst platform = e.platform.toLowerCase()\r\n\t\t\t\t\t// 判断是否为ios设备\r\n\t\t\t\t\tif (platform.indexOf('ios') != -1 && (system.indexOf('ios') != -1 || system.indexOf(\r\n\t\t\t\t\t\t\t'macos') != -1)) {\r\n\t\t\t\t\t\tVue.prototype.SystemPlatform = 'apple'\r\n\t\t\t\t\t} else if (platform.indexOf('android') != -1 && (system.indexOf('android') != -1)) {\r\n\t\t\t\t\t\tVue.prototype.SystemPlatform = 'android'\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tVue.prototype.SystemPlatform = 'devtools'\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// #endif\r\n\t\t\t\t}\r\n\t\t\t})\r\n\r\n\t\t\t// 获取设备的状态栏信息和自定义顶栏信息\r\n\t\t\t// store.dispatch('updateCustomBarInfo')\r\n\t\t\tupdateCustomBarInfo().then((res) => {\r\n\t\t\t\tconsole.log(res);\r\n\t\t\t\tstore.commit('$tStore', {\r\n\t\t\t\t\tname: 'vuex_status_bar_height',\r\n\t\t\t\t\tvalue: res.statusBarHeight\r\n\t\t\t\t})\r\n\t\t\t\tstore.commit('$tStore', {\r\n\t\t\t\t\tname: 'vuex_custom_bar_height',\r\n\t\t\t\t\tvalue: res.customBarHeight\r\n\t\t\t\t})\r\n\t\t\t})\r\n\r\n\t\t\t// #ifdef MP-WEIXIN\r\n\t\t\t//更新检测\r\n\t\t\tif (wx.canIUse('getUpdateManager')) {\r\n\t\t\t\tconst updateManager = wx.getUpdateManager();\r\n\t\t\t\tupdateManager && updateManager.onCheckForUpdate((res) => {\r\n\t\t\t\t\tif (res.hasUpdate) {\r\n\t\t\t\t\t\tupdateManager.onUpdateReady(() => {\r\n\t\t\t\t\t\t\tuni.showModal({\r\n\t\t\t\t\t\t\t\ttitle: '更新提示',\r\n\t\t\t\t\t\t\t\tcontent: '新版本已经准备就绪,是否需要重新启动应用?',\r\n\t\t\t\t\t\t\t\tsuccess: (res) => {\r\n\t\t\t\t\t\t\t\t\tif (res.confirm) {\r\n\t\t\t\t\t\t\t\t\t\tuni.clearStorageSync() // 更新完成后刷新storage的数据\r\n\t\t\t\t\t\t\t\t\t\tupdateManager.applyUpdate()\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})\r\n\t\t\t\t\t\t})\r\n\r\n\t\t\t\t\t\tupdateManager.onUpdateFailed(() => {\r\n\t\t\t\t\t\t\tuni.showModal({\r\n\t\t\t\t\t\t\t\ttitle: '已有新版本上线',\r\n\t\t\t\t\t\t\t\tcontent: '小程序自动更新失败,请删除该小程序后重新搜索打开哟~~~',\r\n\t\t\t\t\t\t\t\tshowCancel: false\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t//没有更新\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t} else {\r\n\t\t\t\tuni.showModal({\r\n\t\t\t\t\ttitle: '提示',\r\n\t\t\t\t\tcontent: '当前微信版本过低,无法使用该功能,请更新到最新的微信后再重试。',\r\n\t\t\t\t\tshowCancel: false\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t\t// #endif\r\n\t\t},\r\n\t\tonShow: function() {\r\n\t\t\t// console.log('App Show')\r\n\t\t},\r\n\t\tonHide: function() {\r\n\t\t\t// console.log('App Hide')\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tgetUserLogin(returnA) {\r\n\t\t\t\tuni.getProvider({\r\n\t\t\t\t\tservice: 'oauth',\r\n\t\t\t\t\tsuccess: function(res) {\r\n\t\t\t\t\t\tconsole.log(res)\r\n\t\t\t\t\t\tif (~res.provider.indexOf('weixin')) {\r\n\t\t\t\t\t\t\tuni.login({\r\n\t\t\t\t\t\t\t\tprovider: \"weixin\",\r\n\t\t\t\t\t\t\t\tsuccess: function(loginRes) {\r\n\t\t\t\t\t\t\t\t\tUserLogin({\r\n\t\t\t\t\t\t\t\t\t\t\tcode: loginRes.code\r\n\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t.then(response => {\r\n\t\t\t\t\t\t\t\t\t\t\tconsole.log('Login', response);\r\n\t\t\t\t\t\t\t\t\t\t\tif (response.code == 1) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tuni.setStorageSync('openid', response.data\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.openid);\r\n\t\t\t\t\t\t\t\t\t\t\t\tuni.setStorageSync('uid', response.data\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.id);\r\n\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ticon: 'none',\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttitle: response.msg,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tduration: 2000\r\n\t\t\t\t\t\t\t\t\t\t\t\t});\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\t//returnA(response);\r\n\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t.catch(error => {\r\n\t\t\t\t\t\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\t\t\t\t\t\ticon: 'none',\r\n\t\t\t\t\t\t\t\t\t\t\t\ttitle: error,\r\n\t\t\t\t\t\t\t\t\t\t\t\tduration: 2000\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});\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tconsole.log(123);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\taddWidthToImages(html) {\r\n\t\t\t\t// 匹配并更新已有 style 属性的 img 标签\r\n\t\t\t\thtml = html.replace(/(<img\\b[^>]*\\bstyle\\s*=\\s*['\"])([^'\"]*)(['\"][^>]*>)/g,\r\n\t\t\t\t\tfunction(match, p1, p2, p3) {\r\n\t\t\t\t\t\treturn p1 + ';width: 100%;margin:0 auto;' + p3;\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t// 匹配并添加 style 属性到没有 style 属性的 img 标签\r\n\t\t\t\thtml = html.replace(/(<img\\b(?![^>]*\\bstyle\\s*=)[^>]*>)/g,\r\n\t\t\t\t\tfunction(match, p1) {\r\n\t\t\t\t\t\treturn p1.replace(/\\/?>$/, ' style=\"width: 100%;margin:0 auto;\" />');\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\treturn html;\r\n\t\t\t},\r\n\t\t},\r\n\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n\t/* 注意要写在第一行,同时给style标签加入lang=\"scss\"属性 */\r\n\t@import './tuniao-ui/index.scss';\r\n\t@import './tuniao-ui/iconfont.css';\r\n\t@import './static/css/my.scss';\r\n</style>","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 // 1717480336290\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":""} |