main.js.map 14 KB

1
  1. {"version":3,"sources":["uni-app:///main.js","webpack:///D:/web项目/uniAPP/HBuilderProjects/Cm/Dudao/App.vue?06f7","webpack:///D:/web项目/uniAPP/HBuilderProjects/Cm/Dudao/App.vue?3b66","uni-app:///App.vue","webpack:///D:/web项目/uniAPP/HBuilderProjects/Cm/Dudao/App.vue?4999"],"names":["Vue","config","productionTip","prototype","host","App","mpType","app","$mount","render","staticRenderFns","components","renderjs","component","options","__file"],"mappings":";;;;wEAAA,qBAAmB,wBACnB,sB,0uBAEAA,UAAIC,OAAOC,eAAgB,EAc3BF,UAAIG,UAAUC,KAAO,6CAcrBC,UAAIC,OAAS,MAEb,IAAMC,EAAM,IAAIP,UAAJ,KACLK,YAEP,EAAAE,GAAIC,W;;;;4DCpCJ,sMAAIC,EAAQC,EAAmCC,EAC3CC,EADJ,8KASIC,EAAY,qBACd,aACAJ,EACAC,GACA,EACA,KACA,KACA,MACA,EACAC,EACAC,GAGFC,EAAUC,QAAQC,OAAS,UACZ,aAAAF,E;;;;2DCvBf,mxBAA8tB,eAAG;;;;gJCCjuB,CACA,KADA,WAEA,OACA,aAIA,oBACA,WACA,kCACA,6BACA,yBACA,yBAuBA,0BAGA,mDAEA,uCACA,cAGA,+CACA,aACA,aACA,4BACA,cACA,oBACA,uBACA,WAEA,yCAQA,gDACA,aACA,WACA,gCACA,wBASA,WAkIA,kBACA,yBAEA,kBACA,0B;;;;2DCjNA,klCAA6hC,eAAG","file":"common/main.js","sourcesContent":["import 'uni-pages';import Vue from 'vue'\r\nimport App from './App'\r\n\r\nVue.config.productionTip = false\r\n\r\n// l=api.share\r\n\r\n\r\n// l=api.share\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nVue.prototype.host = 'https://trade.5dev.cn/dudaowenlv/content/?'\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nApp.mpType = 'app'\r\n\r\nconst app = new Vue({\r\n ...App\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=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../软件/web软件/HBuilderX/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 \"-!../../../../../软件/web软件/HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../软件/web软件/HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../软件/web软件/HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../软件/web软件/HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../软件/web软件/HBuilderX/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 \"-!../../../../../软件/web软件/HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../软件/web软件/HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../软件/web软件/HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../软件/web软件/HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../软件/web软件/HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=script&lang=js&\"","<script>\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tappid: '10'\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\tonLaunch: function() {\r\n\t\t\tvar obj = this;\r\n\t\t\tuni.setStorageSync('appid', obj.appid); //将userIdEnc存入本地缓存\r\n\t\t\tvar session = wx.getStorageSync('session')\r\n\t\t\tvar uid = wx.getStorageSync('uid')\r\n\t\t\tvar vid = wx.getStorageSync('vid')\r\n\t\t\t//判断用户登录\r\n\t\t\t// wx.checkSession({\r\n\t\t\t// \tsuccess: function() {\r\n\t\t\t// \t\t//session 未过期,并且在本生命周期一直有效\r\n\t\t\t// \t\tvar session = wx.getStorageSync('session')\r\n\t\t\t// \t\tvar uid = wx.getStorageSync('uid')\r\n\t\t\t// \t\tvar vid = wx.getStorageSync('vid')\r\n\r\n\t\t\t// \t\tif (session == '' || uid == '') {\r\n\r\n\t\t\t// \t\t}\r\n\r\n\t\t\t// \t},\r\n\t\t\t// })\r\n\r\n\t\t\t// obj.login_wx();\r\n\t\t\t// if (!vid) {\r\n\t\t\t//obj.getuser();\r\n\t\t\t//obj.login_wx();\r\n\t\t\t// }\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tconsole.log('App Launch')\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\tuni.getUpdateManager().onCheckForUpdate(function(res) {\r\n\t\t\t\t// 请求完新版本信息的回调\r\n\t\t\t\tconsole.log(\"1111是否有新版本:\" + res.hasUpdate);\r\n\t\t\t\tif (res.hasUpdate) { //如果有新版本\r\n\t\t\t\r\n\t\t\t\t\t// 小程序有新版本,会主动触发下载操作(无需开发者触发)\r\n\t\t\t\t\tuni.getUpdateManager().onUpdateReady(function() { //当新版本下载完成,会进行回调\r\n\t\t\t\t\t\tuni.showModal({\r\n\t\t\t\t\t\t\ttitle: '更新提示',\r\n\t\t\t\t\t\t\tcontent: '新版本已经准备好,单击确定重启应用',\r\n\t\t\t\t\t\t\tshowCancel: false,\r\n\t\t\t\t\t\t\tsuccess: function(res) {\r\n\t\t\t\t\t\t\t\tconsole.log(1111234, res)\r\n\t\t\t\t\t\t\t\tif (res.confirm) {\r\n\t\t\t\t\t\t\t\t\t// 新的版本已经下载好,调用 applyUpdate 应用新版本并重启\r\n\t\t\t\t\t\t\t\t\tuni.getUpdateManager().applyUpdate();\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\t\t\t\r\n\t\t\t\t\t})\r\n\t\t\t\r\n\t\t\t\t\t// 小程序有新版本,会主动触发下载操作(无需开发者触发)\r\n\t\t\t\t\tuni.getUpdateManager().onUpdateFailed(function() { //当新版本下载失败,会进行回调\r\n\t\t\t\t\t\tuni.showModal({\r\n\t\t\t\t\t\t\ttitle: '提示',\r\n\t\t\t\t\t\t\tcontent: '检查到有新版本,但下载失败,请检查网络设置',\r\n\t\t\t\t\t\t\tshowCancel: false,\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\r\n\t\t\t// console.log('App Launch')\r\n\t\t},\r\n\r\n\t\tmethods: {\r\n\t\t\t//登录\r\n\t\t\t// login_wx() {\r\n\t\t\t// \tvar obj = this;\r\n\t\t\t// \twx.login({\r\n\t\t\t// \t\tsuccess: res => {\r\n\t\t\t// \t\t\tconsole.log(9999, obj.appid)\r\n\t\t\t// \t\t\tuni.request({\r\n\t\t\t// \t\t\t\turl: 'https://cm.5dev.cn/applet_on/content/v1/login.bind', //仅为示例,并非真实接口地址。\r\n\t\t\t// \t\t\t\tdata: {\r\n\t\t\t// \t\t\t\t\t// text: 'uni.request',\r\n\t\t\t// \t\t\t\t\tappid: obj.appid,\r\n\t\t\t// \t\t\t\t\tjson: 1,\r\n\t\t\t// \t\t\t\t\tcode: res.code,\r\n\t\t\t// \t\t\t\t\ttest: 2\r\n\t\t\t// \t\t\t\t},\r\n\t\t\t// \t\t\t\theader: {\r\n\t\t\t// \t\t\t\t\t'custom-header': 'hello' //自定义请求头信息\r\n\t\t\t// \t\t\t\t},\r\n\t\t\t// \t\t\t\tsuccess: (res) => {\r\n\t\t\t// \t\t\t\t\tconsole.log(8989,res.data.data);\r\n\t\t\t// \t\t\t\t\tif (res.data.data.session != '') {\r\n\t\t\t// \t\t\t\t\t\t//获取到的session保存在本地\r\n\t\t\t// \t\t\t\t\t\twx.setStorageSync('session', res.data.data.session)\r\n\t\t\t// \t\t\t\t\t\twx.setStorageSync('uid', res.data.data.uid)\r\n\t\t\t// \t\t\t\t\t\twx.setStorageSync('vid', res.data.data.vid)\r\n\t\t\t// \t\t\t\t\t\twx.setStorageSync('status', 1)\r\n\t\t\t// \t\t\t\t\t\twx.setStorageSync('mobile', res.data.data.mobile)\r\n\t\t\t// \t\t\t\t\t\t//获取用户信息\r\n\t\t\t// \t\t\t\t\t\tobj.checkaotu();\r\n\t\t\t// \t\t\t\t\t}\r\n\t\t\t// \t\t\t\t\t// this.text = 'request success';\r\n\t\t\t// \t\t\t\t}\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\t// // 判断是否同意授权过\r\n\t\t\t// checkaotu() {\r\n\t\t\t// \t// util.check()\r\n\t\t\t// \tvar obj = this;\r\n\t\t\t// \t//获取用户授权设置\r\n\t\t\t// \twx.getSetting({\r\n\t\t\t// \t\tsuccess: res => {\r\n\t\t\t// \t\t\tif (res.authSetting['scope.userInfo']) {\r\n\t\t\t// \t\t\t\t// 已经授权,可以直接调用 getUserInfo 获取头像昵称,不会弹框\r\n\t\t\t// \t\t\t\tobj.getuser();\r\n\t\t\t// \t\t\t\t// this.getPhoneNumber()\r\n\t\t\t// \t\t\t} else {\r\n\t\t\t// \t\t\t\t//没有配置授权,调起授权\r\n\t\t\t// \t\t\t\twx.authorize({\r\n\t\t\t// \t\t\t\t\tscope: 'scope.userInfo',\r\n\t\t\t// \t\t\t\t\tsuccess: res => {\r\n\t\t\t// \t\t\t\t\t\tobj.getuser();\r\n\t\t\t// \t\t\t\t\t\t// obj.getPhoneNumber()\r\n\t\t\t// \t\t\t\t\t},\r\n\t\t\t// \t\t\t\t\tfail: res => {\r\n\t\t\t// \t\t\t\t\t\tconsole.log(res)\r\n\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\t\t\t// \t\t}\r\n\t\t\t// \t})\r\n\t\t\t// },\r\n\t\t\t// //获取用户信息\r\n\t\t\t// getuser(func) {\r\n\t\t\t// \t//mobile,mobile_iv = this.getPhoneNumber()\r\n\t\t\t// \t// util.getuser()\r\n\t\t\t// \tvar obj = this;\r\n\t\t\t// \twx.getUserInfo({\r\n\t\t\t// \t\tsuccess: res => {\r\n\t\t\t// \t\t\tconsole.log(9999889999,res)\r\n\t\t\t// \t\t\t// 获取 session uid\r\n\t\t\t// \t\t\tvar session = wx.getStorageSync('session')\r\n\t\t\t// \t\t\tvar uid = wx.getStorageSync('uid')\r\n\t\t\t// \t\t\tvar vid = wx.getStorageSync('vid')\r\n\t\t\t// \t\t\t// 可以将 res 发送给后台解码出 unionId\r\n\t\t\t// \t\t\t// https://cm.5dev.cn/applet_on/content/v1/login.update\r\n\t\t\t// \t\t\t\r\n\t\t\t// \t\t\tuni.request({\r\n\t\t\t// \t\t\t\turl: 'https://cm.5dev.cn/applet_on/content/v1/login.update', //仅为示例,并非真实接口地址。\r\n\t\t\t// \t\t\t\tdata: {\r\n\t\t\t// \t\t\t\t\tappid: obj.appid,\r\n\t\t\t// \t\t\t\t\tuid: uid,\r\n\t\t\t// \t\t\t\t\tsession: session,\r\n\t\t\t// \t\t\t\t\tvid: vid,\r\n\t\t\t// \t\t\t\t\tnickname: res.userInfo.nickName,\r\n\t\t\t// \t\t\t\t\tavatarurl: res.userInfo.avatarUrl,\r\n\t\t\t// \t\t\t\t\tgender: res.userInfo.gender,\r\n\t\t\t// \t\t\t\t\tcity: res.userInfo.city,\r\n\t\t\t// \t\t\t\t\tprovince: res.userInfo.province,\r\n\t\t\t// \t\t\t\t\tcountry: res.userInfo.country,\r\n\t\t\t// \t\t\t\t\tencryptedData: res.encryptedData,\r\n\t\t\t// \t\t\t\t\t//mobile:mobile,\r\n\t\t\t// \t\t\t\t\t//mobile_iv:mobile_iv,\r\n\t\t\t// \t\t\t\t\tiv: res.iv\r\n\t\t\t// \t\t\t\t},\r\n\t\t\t// \t\t\t\theader: {\r\n\t\t\t// \t\t\t\t\t'custom-header': 'hello' //自定义请求头信息\r\n\t\t\t// \t\t\t\t},\r\n\t\t\t// \t\t\t\tsuccess: (resd) => {\r\n\t\t\t// \t\t\t\t\twx.setStorageSync('session', resd.data.data.session)\r\n\t\t\t// \t\t\t\t\twx.setStorageSync('uid', resd.data.data.uid)\r\n\t\t\t// \t\t\t\t\tif (func) {\r\n\t\t\t// \t\t\t\t\t\tfunc.call();\r\n\t\t\t// \t\t\t\t\t}\r\n\t\t\t// \t\t\t\t\t// this.text = 'request success';\r\n\t\t\t// \t\t\t\t}\r\n\t\t\t// \t\t\t});\r\n\t\t\t// \t\t\tconsole.log(888888,res.userInfo)\r\n\t\t\t// \t\t\t// 由于 getUserInfo 是网络请求,可能会在 Page.onLoad 之后才返回\r\n\t\t\t// \t\t\t// 所以此处加入 callback 以防止这种情况\r\n\t\t\t// \t\t\tif (this.userInfoReadyCallback) {\r\n\t\t\t// \t\t\t\tthis.userInfoReadyCallback(res)\r\n\t\t\t// \t\t\t}\r\n\t\t\t// \t\t},\r\n\t\t\t// \t\tfail() {\r\n\t\t\t// \t\t\t// 用户拒绝则不然操作\r\n\t\t\t// \t\t\twx.openSetting({\r\n\t\t\t// \t\t\t\tsuccess: (res) => {\r\n\t\t\t// \t\t\t\t\t// obj.getuser();\r\n\t\t\t// \t\t\t\t}\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\r\n\t\t},\r\n\r\n\t\tonShow: function() {\r\n\t\t\tconsole.log('App Show')\r\n\t\t},\r\n\t\tonHide: function() {\r\n\t\t\tconsole.log('App Hide')\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style>\r\n\t/*每个页面公共css */\r\n\t/* \t@font-face {\r\n\t\tfont-family: MFJinHei;\r\n\t\tsrc: url('https://trade.5dev.cn/cmmc/main/assets/mobile/css/MFJinHei_Noncommercial-Regular1.ttf');\r\n\r\n\t} */\r\n\t/* http://trade.5dev.cn/cmmc/main/assets/mobile/css/mfjin.TTF */\r\n</style>\n","import mod from \"-!../../../../../软件/web软件/HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../软件/web软件/HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../软件/web软件/HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../软件/web软件/HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../软件/web软件/HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../软件/web软件/HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../软件/web软件/HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!../../../../../软件/web软件/HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../软件/web软件/HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../软件/web软件/HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../软件/web软件/HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../软件/web软件/HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../软件/web软件/HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../软件/web软件/HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=style&index=0&lang=css&\""],"sourceRoot":""}