Commit 680761ef authored by 潘永坪's avatar 潘永坪

登录功能完善

parent 9cdd0684
......@@ -6,10 +6,10 @@
//4.setStorageSync与setStorage的区别:如果后续的操作需要使用更新storage后保存的data,则使用setStorageSync使用异步性能更好,使用同步数据更安全
export default {
onLaunch: function() {//初始化完成时触发(全局只触发一次
console.log('App Launch')
},
onShow: function() {
console.log('App Show')
},
onHide: function() {
console.log('App Hide')
......
......@@ -51,7 +51,7 @@
</view> -->
<!-- <button @click="getUserInfo()"> 授权获取头像昵称 </button> -->
<view class="bottom">
<view class="bottom" v-show="showBottom">
<!--#ifdef MP-WEIXIN -->
<web-view src="https://wx.pangdly.com"></web-view>
<!--#endif-->
......@@ -67,66 +67,36 @@
export default {
data() {
return {
title: '胖丁首页'
title: '胖丁首页',
showBottom:false,//控制底部显示隐藏
}
},
onReady(){
//#ifdef MP-WEIXIN
onLoad() {
let _this=this
uni.login({
provider: 'weixin',
success: function (res) {
if(res.code){
let data={
code:res.code,
source:3
}
_this.$request('wechat/wx/getUserInfoByCode',data).then(res => {
if(res.code=='00'){
let openid=res.data.openid
uni.setStorageSync('openid',openid)
}else{
uni.removeStorageSync('openid')
uni.showToast({
title:res.message,
icon:"none"
})
}
}).catch((err)=>{
uni.removeStorageSync('openid')
//#ifdef MP-WEIXIN
uni.checkSession({
success() {
_this.showBottom=true
},
fail() {
uni.navigateTo({
url:"../login/login"
})
}
}
})
//#endif
//#ifdef MP-ALIPAY
let _this=this
uni.login({
provider: 'alipay',
success: function(res){
if(res.code){
let data={
code:res.code,
source:3
}
_this.$request('wechat/wx/getUserInfoByCode',data).then(res => {
if(res.code=='00'){
let openid=res.data.openid
uni.setStorageSync('openid',openid)
if(uni.getStorageSync("openid")){
_this.showBottom=true
}else{
uni.removeStorageSync('openid')
uni.showToast({
title:res.message,
icon:"none"
uni.navigateTo({
url:"../login/login"
})
}
}).catch((err)=>{
uni.removeStorageSync('openid')
})
}
}
})
//#endif
},
onReady(){
},
methods: {
getUserInfo() { // 获取用户信息
......
......@@ -14,11 +14,16 @@
methods: {
},
onReady(){
//#ifdef MP-WEIXIN
onLoad(){
uni.showLoading({
title: '加载中...'
})
let _this=this
uni.getProvider({
service: 'oauth',
success(proRes){
uni.login({
provider: 'weixin',
provider:proRes.provider[0],
success: function (res) {
if(res.code){
let data={
......@@ -29,20 +34,27 @@
if(res.code=='00'){
let openid=res.data.openid
uni.setStorageSync('openid',openid)
uni.navigateBack({
delta:1
})
}else{
uni.removeStorageSync('openid')
uni.showToast({
title:res.message,
icon:"none"
})
uni.hideLoading()
}
}).catch((err)=>{
uni.removeStorageSync('openid')
uni.hideLoading()
})
}
}
})
//#endif
}
})
},
}
</script>
......
{"version":3,"sources":["uni-app:///main.js",null,"webpack:///E:/pangding/uni-pdtravel/App.vue?5fc3","uni-app:///App.vue","webpack:///E:/pangding/uni-pdtravel/App.vue?39f2","webpack:///E:/pangding/uni-pdtravel/App.vue?0c26"],"names":["Vue","prototype","$request","request","config","productionTip","App","mpType","app","$mount"],"mappings":";;;;;;;;;iDAAA,wCAAmB;AACnB;;AAEA,wF;;AAEAA,aAAIC,SAAJ,CAAcC,QAAd,GAAyBC,gBAAzB;;AAEAH,aAAII,MAAJ,CAAWC,aAAX,GAA2B,KAA3B;;AAEAC,aAAIC,MAAJ,GAAa,KAAb;;AAEA,IAAMC,GAAG,GAAG,IAAIR,YAAJ;AACLM,YADK,EAAZ;;AAGA,UAAAE,GAAG,EAACC,MAAJ,G;;;;;;;;;;;;;;;;ACdA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACuD;AACL;AACa;;;AAG/D;AAC2K;AAC3K,gBAAgB,+KAAU;AAC1B,EAAE,yEAAM;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACe,gF;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAA2nB,CAAgB,unBAAG,EAAC,C;;;;;;;;;;;;ACC/oB;AACA;AACA;AACA;AACA;eACA;AACA;AACA;AACA,GAHA;AAIA;AACA;AACA,GANA;AAOA;AACA;AACA,GATA,E;;;;;;;;;;;ACNA;AAAA;AAAA;AAAA;AAAy5B,CAAgB,g3BAAG,EAAC,C;;;;;;;;;;ACA76B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"common/main.js","sourcesContent":["import 'uni-pages';import Vue from 'vue'\r\nimport App from './App'\r\n\r\nimport request from 'common/request.js'\r\n\r\nVue.prototype.$request = request\r\n\r\nVue.config.productionTip = false\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 \"!D:\\\\程序应用\\\\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 \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\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 \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./App.vue?vue&type=script&lang=js&\"","<script>\r\n\t// 1、uni-app的页面生命周期仅在page页面有效,而单独封装的组件中【页面周期无效】,\r\n\t//但是Vue的生命周期依然有效 【Vue的生命周期在任何地方都是有效的,即你仍然可以在uni-app项目中使用Vue生命周期,但是不建议这么做】\r\n\t// 2、推荐使用uni-app里面的onLoad 代替 vue 里面的 created\r\n\t// 3、推荐使用uni-app里面的onReady 代替 vue 里面的 mounted\r\n\t//4.setStorageSync与setStorage的区别:如果后续的操作需要使用更新storage后保存的data,则使用setStorageSync使用异步性能更好,使用同步数据更安全\r\n\texport default {\r\n\t\tonLaunch: function() {//初始化完成时触发(全局只触发一次\r\n\t\t\tconsole.log('App Launch')\r\n\t\t},\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/*\r\n1.页面背景颜色#f7f7f7\r\n2.分隔线颜色#DBDBDB\r\n3.正常字体颜色#333333\r\n4.灰色字体颜色#666666或者#999999\r\n5.主色调#3688FF\r\n6.正常字体大小28rpx,偏小一点的24rpx\r\n7.命名规范为'-',例如top-img\r\n8.页面最外层与里面的第一层为padding:0 12px;\r\n9.css单位为rpx\r\n*/\r\npage{font-size:28rpx;color: #333333;background: #F7F7F7;}\r\n.btn{background:linear-gradient(132deg, #ED400C 0%, #FB862C 100%);display: inline-block;color: #FFFFFF;font-size:28rpx;border-radius:8rpx;text-align: center;}\r\n</style>\n","import mod from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\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 \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./App.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1622605591637\n var cssReload = require(\"D:/程序应用/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":""}
\ No newline at end of file
{"version":3,"sources":["uni-app:///main.js",null,"webpack:///E:/pangding/uni-pdtravel/App.vue?5fc3","uni-app:///App.vue","webpack:///E:/pangding/uni-pdtravel/App.vue?39f2","webpack:///E:/pangding/uni-pdtravel/App.vue?0c26"],"names":["Vue","prototype","$request","request","config","productionTip","App","mpType","app","$mount"],"mappings":";;;;;;;;;iDAAA,wCAAmB;AACnB;;AAEA,wF;;AAEAA,aAAIC,SAAJ,CAAcC,QAAd,GAAyBC,gBAAzB;;AAEAH,aAAII,MAAJ,CAAWC,aAAX,GAA2B,KAA3B;;AAEAC,aAAIC,MAAJ,GAAa,KAAb;;AAEA,IAAMC,GAAG,GAAG,IAAIR,YAAJ;AACLM,YADK,EAAZ;;AAGA,UAAAE,GAAG,EAACC,MAAJ,G;;;;;;;;;;;;;;;;ACdA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACuD;AACL;AACa;;;AAG/D;AAC2K;AAC3K,gBAAgB,+KAAU;AAC1B,EAAE,yEAAM;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACe,gF;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAA2nB,CAAgB,unBAAG,EAAC,C;;;;;;;;;;;;ACC/oB;AACA;AACA;AACA;AACA;eACA;AACA;;AAEA,GAHA;AAIA;;AAEA,GANA;AAOA;AACA;AACA,GATA,E;;;;;;;;;;;ACNA;AAAA;AAAA;AAAA;AAAy5B,CAAgB,g3BAAG,EAAC,C;;;;;;;;;;ACA76B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"common/main.js","sourcesContent":["import 'uni-pages';import Vue from 'vue'\r\nimport App from './App'\r\n\r\nimport request from 'common/request.js'\r\n\r\nVue.prototype.$request = request\r\n\r\nVue.config.productionTip = false\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 \"!D:\\\\程序应用\\\\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 \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\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 \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./App.vue?vue&type=script&lang=js&\"","<script>\r\n\t// 1、uni-app的页面生命周期仅在page页面有效,而单独封装的组件中【页面周期无效】,\r\n\t//但是Vue的生命周期依然有效 【Vue的生命周期在任何地方都是有效的,即你仍然可以在uni-app项目中使用Vue生命周期,但是不建议这么做】\r\n\t// 2、推荐使用uni-app里面的onLoad 代替 vue 里面的 created\r\n\t// 3、推荐使用uni-app里面的onReady 代替 vue 里面的 mounted\r\n\t//4.setStorageSync与setStorage的区别:如果后续的操作需要使用更新storage后保存的data,则使用setStorageSync使用异步性能更好,使用同步数据更安全\r\n\texport default {\r\n\t\tonLaunch: function() {//初始化完成时触发(全局只触发一次\r\n\t\t\t\r\n\t\t},\r\n\t\tonShow: function() {\r\n\t\t\t\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/*\r\n1.页面背景颜色#f7f7f7\r\n2.分隔线颜色#DBDBDB\r\n3.正常字体颜色#333333\r\n4.灰色字体颜色#666666或者#999999\r\n5.主色调#3688FF\r\n6.正常字体大小28rpx,偏小一点的24rpx\r\n7.命名规范为'-',例如top-img\r\n8.页面最外层与里面的第一层为padding:0 12px;\r\n9.css单位为rpx\r\n*/\r\npage{font-size:28rpx;color: #333333;background: #F7F7F7;}\r\n.btn{background:linear-gradient(132deg, #ED400C 0%, #FB862C 100%);display: inline-block;color: #FFFFFF;font-size:28rpx;border-radius:8rpx;text-align: center;}\r\n</style>\n","import mod from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\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 \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./App.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1623313162143\n var cssReload = require(\"D:/程序应用/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":""}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
{"version":3,"sources":["uni-app:///main.js","webpack:///E:/pangding/uni-pdtravel/pages/index/index.vue?5e24","webpack:///E:/pangding/uni-pdtravel/pages/index/index.vue?499b","webpack:///E:/pangding/uni-pdtravel/pages/index/index.vue?5699","webpack:///E:/pangding/uni-pdtravel/pages/index/index.vue?8171","uni-app:///pages/index/index.vue","webpack:///E:/pangding/uni-pdtravel/pages/index/index.vue?024f","webpack:///E:/pangding/uni-pdtravel/pages/index/index.vue?c410"],"names":["createPage","Page"],"mappings":";;;;;;;;;;;;;;;;;;;;;kDAAA;AACA;AACA,4F;AACAA,UAAU,CAACC,cAAD,CAAV,C;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkH;AAClH;AACyD;AACL;AACa;;;AAGjE;AAC2K;AAC3K,gBAAgB,+KAAU;AAC1B,EAAE,2EAAM;AACR,EAAE,gFAAM;AACR,EAAE,yFAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,oFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAA6nB,CAAgB,ynBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACkEjpB;AACA,MADA,kBACA;AACA;AACA,mBADA;;AAGA,GALA;AAMA,SANA,qBAMA;;AAEA;AACA;AACA,wBADA;AAEA;AACA;AACA;AACA,0BADA;AAEA,qBAFA;;AAIA;AACA;AACA;AACA;AACA,aAHA,MAGA;AACA;AACA;AACA,kCADA;AAEA,4BAFA;;AAIA;AACA,WAXA,EAWA,KAXA,CAWA;AACA;AACA,WAbA;AAcA;AACA,OAvBA;;;AA0BA,GAnCA;AAoCA;AACA,eADA,yBACA;AACA;AACA,qBADA;AAEA,kBAFA;AAGA;AACA;AACA,SALA;AAMA;AACA;AACA,SARA;;AAUA,KAZA,EApCA,E;;;;;;;;;;;;AClEA;AAAA;AAAA;AAAA;AAA25B,CAAgB,k3BAAG,EAAC,C;;;;;;;;;;ACA/6B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/index/index.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pages/index/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=57280228&\"\nvar renderjs\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\程序应用\\\\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 = \"pages/index/index.vue\"\nexport default component.exports","export * from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=template&id=57280228&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&lang=js&\"","<template>\r\n\t<!-- <view >\r\n\t\t<view class=\"top\">\r\n\t\t\t<view class=\"top-search\">\r\n\t\t\t\t\r\n\t\t\t</view>\r\n\t\t\t<view class=\"top-content\">\r\n\t\t\t\t<view>\r\n\t\t\t\t\t<image src=\"../../static/img/index/classify1.png\"></image>\r\n\t\t\t\t\t<view>景区门票</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t\r\n\t\t\t\t<view>\r\n\t\t\t\t\t<image src=\"../../static/img/index/classify2.png\"></image>\r\n\t\t\t\t\t<view>酒店民宿</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t\r\n\t\t\t\t<view>\r\n\t\t\t\t\t<image src=\"../../static/img/index/classify3.png\"></image>\r\n\t\t\t\t\t<view>特色美食</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t\r\n\t\t\t\t<view>\r\n\t\t\t\t\t<image src=\"../../static/img/index/classify4.png\"></image>\r\n\t\t\t\t\t<view>周边游</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t\r\n\t\t\t\t<view>\r\n\t\t\t\t\t<image src=\"../../static/img/index/classify5.png\"></image>\r\n\t\t\t\t\t<view>跟团游</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t\r\n\t\t\t\t<view>\r\n\t\t\t\t\t<image src=\"../../static/img/index/classify6.png\"></image>\r\n\t\t\t\t\t<view>亲子游</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t\r\n\t\t\t\t<view>\r\n\t\t\t\t\t<image src=\"../../static/img/index/classify7.png\"></image>\r\n\t\t\t\t\t<view>行程订制</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t\r\n\t\t\t\t<view>\r\n\t\t\t\t\t<image src=\"../../static/img/index/classify8.png\"></image>\r\n\t\t\t\t\t<view>特产好礼</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"top-img\">\r\n\t\t\t\t\r\n\t\t\t</view>\r\n\t\t\t\r\n\t\t</view> -->\r\n\t\t<!-- <button @click=\"getUserInfo()\"> 授权获取头像昵称 </button> -->\r\n\t\t<view class=\"bottom\">\r\n\t\t\t<!--#ifdef MP-WEIXIN -->\r\n\t\t\t<web-view src=\"https://wx.pangdly.com\"></web-view>\r\n\t\t\t<!--#endif-->\r\n\t\t\t<!--#ifdef MP-ALIPAY -->\r\n\t\t\t<web-view src=\"https://wx.pangdly.com?appId=2021001194629244&ticket=123456\"></web-view>\r\n\t\t\t<!--#endif-->\r\n\t\t\t\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\ttitle: '胖丁首页'\r\n\t\t\t}\r\n\t\t},\r\n\t\tonReady(){\r\n\t\t\t//#ifdef MP-WEIXIN\r\n\t\t\tlet _this=this\r\n\t\t\tuni.login({\r\n\t\t\t provider: 'weixin',\r\n\t\t\t success: function (res) {\r\n\t\t\t\t\tif(res.code){\r\n\t\t\t\t\t\t let data={\r\n\t\t\t\t\t\t\t code:res.code,\r\n\t\t\t\t\t\t\t source:3\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t _this.$request('wechat/wx/getUserInfoByCode',data).then(res => {\r\n\t\t\t\t\t\t\tif(res.code=='00'){\r\n\t\t\t\t\t\t\t\tlet openid=res.data.openid\r\n\t\t\t\t\t\t\t\tuni.setStorageSync('openid',openid)\r\n\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\tuni.removeStorageSync('openid')\r\n\t\t\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\t\t\ttitle:res.message,\r\n\t\t\t\t\t\t\t\t\ticon:\"none\"\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 }).catch((err)=>{\r\n\t\t\t\t\t\t\t uni.removeStorageSync('openid')\r\n\t\t\t\t\t\t })\r\n\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t})\r\n\t\t\t//#endif\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tgetUserInfo() {\t// 获取用户信息\r\n\t\t\t\tuni.getUserProfile({\r\n\t\t\t\t\tlang:'zh_CN',\r\n\t\t\t\t\tdesc:'登录',\r\n\t\t\t\t\tsuccess:(res)=>{\r\n\t\t\t\t\t\tconsole.log(res);\r\n\t\t\t\t\t},\r\n\t\t\t\t\tfail:(res)=>{\r\n\t\t\t\t\t\tconsole.log(res)\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style>\r\n\t.top{padding: 0 24rpx;}\r\n\t.top-content{display: flex;flex-wrap: wrap;background: #FFFFFF;border-radius:24rpx;padding-bottom:32rpx;}\r\n\t.top-content>view{width: 25%;text-align: center;margin-top:40rpx;}\r\n\t.top-content view image{width:64rpx;height:64rpx;}\r\n</style>\n","import mod from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1622605591642\n var cssReload = require(\"D:/程序应用/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":""}
\ No newline at end of file
{"version":3,"sources":["uni-app:///main.js",null,"webpack:///E:/pangding/uni-pdtravel/pages/index/index.vue?499b","webpack:///E:/pangding/uni-pdtravel/pages/index/index.vue?5699","webpack:///E:/pangding/uni-pdtravel/pages/index/index.vue?8171","uni-app:///pages/index/index.vue","webpack:///E:/pangding/uni-pdtravel/pages/index/index.vue?024f","webpack:///E:/pangding/uni-pdtravel/pages/index/index.vue?c410"],"names":["createPage","Page"],"mappings":";;;;;;;;;;;;;;;;;;;;;kDAAA;AACA;AACA,4F;AACAA,UAAU,CAACC,cAAD,CAAV,C;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkH;AAClH;AACyD;AACL;AACa;;;AAGjE;AAC2K;AAC3K,gBAAgB,+KAAU;AAC1B,EAAE,2EAAM;AACR,EAAE,gFAAM;AACR,EAAE,yFAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,oFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAA6nB,CAAgB,ynBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACkEjpB;AACA,MADA,kBACA;AACA;AACA,mBADA;AAEA,uBAFA,CAEA;AAFA;AAIA,GANA;AAOA,QAPA,oBAOA;AACA;;AAEA;AACA,aADA,qBACA;AACA;AACA,OAHA;AAIA,UAJA,kBAIA;AACA;AACA,+BADA;;AAGA,OARA;;;;;;;;;;;;AAoBA,GA9BA;AA+BA,SA/BA,qBA+BA;;AAEA,GAjCA;AAkCA;AACA,eADA,yBACA;AACA;AACA,qBADA;AAEA,kBAFA;AAGA;AACA;AACA,SALA;AAMA;AACA;AACA,SARA;;AAUA,KAZA,EAlCA,E;;;;;;;;;;;;AClEA;AAAA;AAAA;AAAA;AAA25B,CAAgB,k3BAAG,EAAC,C;;;;;;;;;;ACA/6B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/index/index.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pages/index/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=57280228&\"\nvar renderjs\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\程序应用\\\\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 = \"pages/index/index.vue\"\nexport default component.exports","export * from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=template&id=57280228&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&lang=js&\"","<template>\r\n\t<!-- <view >\r\n\t\t<view class=\"top\">\r\n\t\t\t<view class=\"top-search\">\r\n\t\t\t\t\r\n\t\t\t</view>\r\n\t\t\t<view class=\"top-content\">\r\n\t\t\t\t<view>\r\n\t\t\t\t\t<image src=\"../../static/img/index/classify1.png\"></image>\r\n\t\t\t\t\t<view>景区门票</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t\r\n\t\t\t\t<view>\r\n\t\t\t\t\t<image src=\"../../static/img/index/classify2.png\"></image>\r\n\t\t\t\t\t<view>酒店民宿</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t\r\n\t\t\t\t<view>\r\n\t\t\t\t\t<image src=\"../../static/img/index/classify3.png\"></image>\r\n\t\t\t\t\t<view>特色美食</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t\r\n\t\t\t\t<view>\r\n\t\t\t\t\t<image src=\"../../static/img/index/classify4.png\"></image>\r\n\t\t\t\t\t<view>周边游</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t\r\n\t\t\t\t<view>\r\n\t\t\t\t\t<image src=\"../../static/img/index/classify5.png\"></image>\r\n\t\t\t\t\t<view>跟团游</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t\r\n\t\t\t\t<view>\r\n\t\t\t\t\t<image src=\"../../static/img/index/classify6.png\"></image>\r\n\t\t\t\t\t<view>亲子游</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t\r\n\t\t\t\t<view>\r\n\t\t\t\t\t<image src=\"../../static/img/index/classify7.png\"></image>\r\n\t\t\t\t\t<view>行程订制</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t\r\n\t\t\t\t<view>\r\n\t\t\t\t\t<image src=\"../../static/img/index/classify8.png\"></image>\r\n\t\t\t\t\t<view>特产好礼</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"top-img\">\r\n\t\t\t\t\r\n\t\t\t</view>\r\n\t\t\t\r\n\t\t</view> -->\r\n\t\t<!-- <button @click=\"getUserInfo()\"> 授权获取头像昵称 </button> -->\r\n\t\t<view class=\"bottom\" v-show=\"showBottom\">\r\n\t\t\t<!--#ifdef MP-WEIXIN -->\r\n\t\t\t<web-view src=\"https://wx.pangdly.com\"></web-view>\r\n\t\t\t<!--#endif-->\r\n\t\t\t<!--#ifdef MP-ALIPAY -->\r\n\t\t\t<web-view src=\"https://wx.pangdly.com\"></web-view>\r\n\t\t\t<!--#endif-->\r\n\t\t\t\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\ttitle: '胖丁首页',\r\n\t\t\t\tshowBottom:false,//控制底部显示隐藏\r\n\t\t\t}\r\n\t\t},\r\n\t\tonLoad() {\r\n\t\t\tlet _this=this\r\n\t\t\t//#ifdef MP-WEIXIN\r\n\t\t\tuni.checkSession({\r\n\t\t\t\tsuccess() {\r\n\t\t\t\t\t_this.showBottom=true\r\n\t\t\t\t},\r\n\t\t\t\tfail() {\r\n\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\turl:\"../login/login\"\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\t//#endif\r\n\t\t\t//#ifdef MP-ALIPAY\r\n\t\t\t\tif(uni.getStorageSync(\"openid\")){\r\n\t\t\t\t\t_this.showBottom=true\r\n\t\t\t\t}else{\r\n\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\turl:\"../login/login\"\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t//#endif\r\n\t\t},\r\n\t\tonReady(){\r\n\t\t\t\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tgetUserInfo() {\t// 获取用户信息\r\n\t\t\t\tuni.getUserProfile({\r\n\t\t\t\t\tlang:'zh_CN',\r\n\t\t\t\t\tdesc:'登录',\r\n\t\t\t\t\tsuccess:(res)=>{\r\n\t\t\t\t\t\tconsole.log(res);\r\n\t\t\t\t\t},\r\n\t\t\t\t\tfail:(res)=>{\r\n\t\t\t\t\t\tconsole.log(res)\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style>\r\n\t.top{padding: 0 24rpx;}\r\n\t.top-content{display: flex;flex-wrap: wrap;background: #FFFFFF;border-radius:24rpx;padding-bottom:32rpx;}\r\n\t.top-content>view{width: 25%;text-align: center;margin-top:40rpx;}\r\n\t.top-content view image{width:64rpx;height:64rpx;}\r\n</style>\n","import mod from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1623314268493\n var cssReload = require(\"D:/程序应用/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":""}
\ No newline at end of file
{"version":3,"sources":["uni-app:///main.js","webpack:///E:/pangding/uni-pdtravel/pages/login/login.vue?51b8","webpack:///E:/pangding/uni-pdtravel/pages/login/login.vue?6643","webpack:///E:/pangding/uni-pdtravel/pages/login/login.vue?ccfb","webpack:///E:/pangding/uni-pdtravel/pages/login/login.vue?1826","uni-app:///pages/login/login.vue"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,4F;AACAA,UAAU,CAACC,cAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAkH;AAClH;AACyD;AACL;;;AAGpD;AAC2K;AAC3K,gBAAgB,+KAAU;AAC1B,EAAE,2EAAM;AACR,EAAE,gFAAM;AACR,EAAE,yFAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,oFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACtBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAA6nB,CAAgB,ynBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;ACOjpB;AACA,MADA,kBACA;AACA;;;AAGA,GALA;AAMA,aANA;;;AASA,SATA,qBASA;;AAEA;AACA;AACA,wBADA;AAEA;AACA;AACA;AACA,0BADA;AAEA,qBAFA;;AAIA;AACA;AACA;AACA;AACA,aAHA,MAGA;AACA;AACA;AACA,kCADA;AAEA,4BAFA;;AAIA;AACA,WAXA,EAWA,KAXA,CAWA;AACA;AACA,WAbA;AAcA;AACA,OAvBA;;;AA0BA,GAtCA,E","file":"pages/login/login.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pages/login/login.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./login.vue?vue&type=template&id=b237504c&\"\nvar renderjs\nimport script from \"./login.vue?vue&type=script&lang=js&\"\nexport * from \"./login.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\程序应用\\\\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 = \"pages/login/login.vue\"\nexport default component.exports","export * from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./login.vue?vue&type=template&id=b237504c&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./login.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./login.vue?vue&type=script&lang=js&\"","<template>\n\t<view>\n\t\t\n\t</view>\n</template>\n\n<script>\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\t\n\t\t\t}\n\t\t},\n\t\tmethods: {\n\t\t\t\n\t\t},\r\n\t\tonReady(){\r\n\t\t\t//#ifdef MP-WEIXIN\r\n\t\t\tlet _this=this\r\n\t\t\tuni.login({\r\n\t\t\t provider: 'weixin',\r\n\t\t\t success: function (res) {\r\n\t\t\t\t\tif(res.code){\r\n\t\t\t\t\t\t let data={\r\n\t\t\t\t\t\t\t code:res.code,\r\n\t\t\t\t\t\t\t source:3\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t _this.$request('wechat/wx/getUserInfoByCode',data).then(res => {\r\n\t\t\t\t\t\t\tif(res.code=='00'){\r\n\t\t\t\t\t\t\t\tlet openid=res.data.openid\r\n\t\t\t\t\t\t\t\tuni.setStorageSync('openid',openid)\r\n\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\tuni.removeStorageSync('openid')\r\n\t\t\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\t\t\ttitle:res.message,\r\n\t\t\t\t\t\t\t\t\ticon:\"none\"\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 }).catch((err)=>{\r\n\t\t\t\t\t\t\t uni.removeStorageSync('openid')\r\n\t\t\t\t\t\t })\r\n\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t})\r\n\t\t\t//#endif\r\n\t\t},\n\t}\n</script>\n\n<style>\n\n</style>\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["uni-app:///main.js",null,"webpack:///E:/pangding/uni-pdtravel/pages/login/login.vue?6643","webpack:///E:/pangding/uni-pdtravel/pages/login/login.vue?ccfb","webpack:///E:/pangding/uni-pdtravel/pages/login/login.vue?1826","uni-app:///pages/login/login.vue"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,4F;AACAA,UAAU,CAACC,cAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAkH;AAClH;AACyD;AACL;;;AAGpD;AAC2K;AAC3K,gBAAgB,+KAAU;AAC1B,EAAE,2EAAM;AACR,EAAE,gFAAM;AACR,EAAE,yFAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,oFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACtBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAA6nB,CAAgB,ynBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;ACOjpB;AACA,MADA,kBACA;AACA;;;AAGA,GALA;AAMA,aANA;;;AASA,QATA,oBASA;AACA;AACA,qBADA;;AAGA;AACA;AACA,sBADA;AAEA,aAFA,mBAEA,MAFA,EAEA;AACA;AACA,sCADA;AAEA;AACA;AACA;AACA,8BADA;AAEA,yBAFA;;AAIA;AACA;AACA;AACA;AACA;AACA,4BADA;;AAGA,iBANA,MAMA;AACA;AACA;AACA,sCADA;AAEA,gCAFA;;AAIA;AACA;AACA,eAfA,EAeA,KAfA,CAeA;AACA;AACA;AACA,eAlBA;AAmBA;AACA,WA5BA;;AA8BA,OAjCA;;;AAoCA,GAlDA,E","file":"pages/login/login.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pages/login/login.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./login.vue?vue&type=template&id=b237504c&\"\nvar renderjs\nimport script from \"./login.vue?vue&type=script&lang=js&\"\nexport * from \"./login.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\程序应用\\\\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 = \"pages/login/login.vue\"\nexport default component.exports","export * from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./login.vue?vue&type=template&id=b237504c&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./login.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./login.vue?vue&type=script&lang=js&\"","<template>\n\t<view>\n\t\t\n\t</view>\n</template>\n\n<script>\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\t\n\t\t\t}\n\t\t},\n\t\tmethods: {\n\t\t\t\n\t\t},\r\n\t\tonLoad(){\r\n\t\t\tuni.showLoading({\r\n\t\t\t title: '加载中...'\r\n\t\t\t})\r\n\t\t\tlet _this=this\r\n\t\t\tuni.getProvider({\r\n\t\t\t\tservice: 'oauth',\r\n\t\t\t\tsuccess(proRes){\r\n\t\t\t\t\tuni.login({\r\n\t\t\t\t\t provider:proRes.provider[0],\r\n\t\t\t\t\t success: function (res) {\r\n\t\t\t\t\t\t\tif(res.code){\r\n\t\t\t\t\t\t\t\t let data={\r\n\t\t\t\t\t\t\t\t\t code:res.code,\r\n\t\t\t\t\t\t\t\t\t source:3\r\n\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t _this.$request('wechat/wx/getUserInfoByCode',data).then(res => {\r\n\t\t\t\t\t\t\t\t\tif(res.code=='00'){\r\n\t\t\t\t\t\t\t\t\t\tlet openid=res.data.openid\r\n\t\t\t\t\t\t\t\t\t\tuni.setStorageSync('openid',openid)\r\n\t\t\t\t\t\t\t\t\t\tuni.navigateBack({\r\n\t\t\t\t\t\t\t\t\t\t\tdelta:1\r\n\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\t\t\tuni.removeStorageSync('openid')\r\n\t\t\t\t\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\t\t\t\t\ttitle:res.message,\r\n\t\t\t\t\t\t\t\t\t\t\ticon:\"none\"\r\n\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\tuni.hideLoading()\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t }).catch((err)=>{\r\n\t\t\t\t\t\t\t\t\t uni.removeStorageSync('openid')\r\n\t\t\t\t\t\t\t\t\t uni.hideLoading()\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 }\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},\n\t}\n</script>\n\n<style>\n\n</style>\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["uni-app:///main.js","webpack:///E:/pangding/uni-pdtravel/pages/paySuccess/paySuccess.vue?da98","webpack:///E:/pangding/uni-pdtravel/pages/paySuccess/paySuccess.vue?7109","webpack:///E:/pangding/uni-pdtravel/pages/paySuccess/paySuccess.vue?73d5","webpack:///E:/pangding/uni-pdtravel/pages/paySuccess/paySuccess.vue?e8c5","uni-app:///pages/paySuccess/paySuccess.vue"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,2G;AACAA,UAAU,CAACC,mBAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAuH;AACvH;AAC8D;AACL;;;AAGzD;AAC2K;AAC3K,gBAAgB,+KAAU;AAC1B,EAAE,gFAAM;AACR,EAAE,qFAAM;AACR,EAAE,8FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,yFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACtBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAAkoB,CAAgB,8nBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;ACOtpB;AACA,MADA,kBACA;AACA;AACA,eADA;;AAGA,GALA;AAMA,QANA,kBAMA,MANA,EAMA;AACA;AACA,GARA;AASA,aATA,E","file":"pages/paySuccess/paySuccess.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pages/paySuccess/paySuccess.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./paySuccess.vue?vue&type=template&id=305f8734&\"\nvar renderjs\nimport script from \"./paySuccess.vue?vue&type=script&lang=js&\"\nexport * from \"./paySuccess.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\程序应用\\\\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 = \"pages/paySuccess/paySuccess.vue\"\nexport default component.exports","export * from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./paySuccess.vue?vue&type=template&id=305f8734&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./paySuccess.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./paySuccess.vue?vue&type=script&lang=js&\"","<template>\n\t<view>\n\t\t<web-view :src=\"'https://wx.pangdly.com/#/paySuccess?order='+order\"></web-view>\n\t</view>\n</template>\n\n<script>\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\torder:\"\"\n\t\t\t}\n\t\t},\r\n\t\tonLoad(option) {\r\n\t\t\tthis.order=option.order\r\n\t\t},\n\t\tmethods: {\n\t\t\t\n\t\t}\n\t}\n</script>\n\n<style>\n\n</style>\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["uni-app:///main.js","webpack:///E:/pangding/uni-pdtravel/pages/paySuccess/paySuccess.vue?da98","webpack:///E:/pangding/uni-pdtravel/pages/paySuccess/paySuccess.vue?7109","webpack:///E:/pangding/uni-pdtravel/pages/paySuccess/paySuccess.vue?73d5","webpack:///E:/pangding/uni-pdtravel/pages/paySuccess/paySuccess.vue?e8c5","uni-app:///pages/paySuccess/paySuccess.vue"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,2G;AACAA,UAAU,CAACC,mBAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAuH;AACvH;AAC8D;AACL;;;AAGzD;AAC2K;AAC3K,gBAAgB,+KAAU;AAC1B,EAAE,gFAAM;AACR,EAAE,qFAAM;AACR,EAAE,8FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,yFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACtBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAAkoB,CAAgB,8nBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;ACOtpB;AACA,MADA,kBACA;AACA;;;AAGA,GALA;AAMA,QANA,kBAMA,MANA,EAMA;;AAEA,GARA;AASA,aATA,E","file":"pages/paySuccess/paySuccess.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pages/paySuccess/paySuccess.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./paySuccess.vue?vue&type=template&id=305f8734&\"\nvar renderjs\nimport script from \"./paySuccess.vue?vue&type=script&lang=js&\"\nexport * from \"./paySuccess.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\程序应用\\\\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 = \"pages/paySuccess/paySuccess.vue\"\nexport default component.exports","export * from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./paySuccess.vue?vue&type=template&id=305f8734&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./paySuccess.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./paySuccess.vue?vue&type=script&lang=js&\"","<template>\n\t<view>\n\t\t<web-view src=\"https://wx.pangdly.com/#/paySuccess\"></web-view>\n\t</view>\n</template>\n\n<script>\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\t\n\t\t\t}\n\t\t},\r\n\t\tonLoad(option) {\r\n\t\t\t\r\n\t\t},\n\t\tmethods: {\n\t\t\t\n\t\t}\n\t}\n</script>\n\n<style>\n\n</style>\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["uni-app:///main.js",null,"webpack:///E:/pangding/uni-pdtravel/pages/payment/payment.vue?2f6b","webpack:///E:/pangding/uni-pdtravel/pages/payment/payment.vue?e7f7","webpack:///E:/pangding/uni-pdtravel/pages/payment/payment.vue?bc93","uni-app:///pages/payment/payment.vue","webpack:///E:/pangding/uni-pdtravel/pages/payment/payment.vue?588b","webpack:///E:/pangding/uni-pdtravel/pages/payment/payment.vue?a886"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,kG;AACAA,UAAU,CAACC,gBAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAoH;AACpH;AAC2D;AACL;AACa;;;AAGnE;AAC2K;AAC3K,gBAAgB,+KAAU;AAC1B,EAAE,6EAAM;AACR,EAAE,kFAAM;AACR,EAAE,2FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,sFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAA+nB,CAAgB,2nBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACkGnpB;AACA,MADA,kBACA;AACA;AACA,iBADA,EACA;AACA,sBAFA,EAEA;AACA,qBAHA,EAGA;AACA,mBAJA,EAIA;AACA,mBALA,EAKA;AACA,wBANA,EAMA;AACA,yBAPA,EAOA;AACA,kBARA,EAQA;AACA,sBATA,EASA;AACA,oBAVA,EAUA;AACA,sBAXA,EAWA;AACA,qBAZA,EAYA;AACA,mBAbA,EAaA;AACA,kBAdA;AAeA,iBAfA;AAgBA,kBAhBA;AAiBA,iBAjBA;;AAmBA,GArBA;AAsBA,QAtBA,kBAsBA,MAtBA,EAsBA;AACA;AACA,2BADA,EACA;AACA,0CAFA,EAEA;AACA,iBAHA,CAGA;AAHA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAvBA,MAuBA;AACA;AACA,4BADA;AAEA,sBAFA;;AAIA;;AAEA,KA/BA;;AAiCA,GA7DA;AA8DA;AACA,SADA,mBACA;AACA;AACA,yBADA;AAEA,iCAFA;AAGA,+BAHA;AAIA,6BAJA;AAKA,+BALA;AAMA,6BANA;AAOA;AACA;AACA,4CADA;;AAGA,SAXA;AAYA;AACA;AACA,6BADA;AAEA,0BAFA;AAGA,wBAHA;;AAKA,SAlBA;;AAoBA,KAtBA,EA9DA,E;;;;;;;;;;;;;AClGA;AAAA;AAAA;AAAA;AAA65B,CAAgB,o3BAAG,EAAC,C;;;;;;;;;;;ACAj7B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/payment/payment.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pages/payment/payment.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./payment.vue?vue&type=template&id=031d9d14&\"\nvar renderjs\nimport script from \"./payment.vue?vue&type=script&lang=js&\"\nexport * from \"./payment.vue?vue&type=script&lang=js&\"\nimport style0 from \"./payment.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\程序应用\\\\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 = \"pages/payment/payment.vue\"\nexport default component.exports","export * from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./payment.vue?vue&type=template&id=031d9d14&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./payment.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./payment.vue?vue&type=script&lang=js&\"","<template>\n\t<view>\n\t\t<view class=\"middle\" v-show=\"bodyShow\">\r\n\t\t <view class=\"main\">\r\n\t\t <!-- --------------------------------------复票----------------------------------------------- -->\r\n\t\t <view v-if=\"orderList!=''\" v-for=\"item of orderList\" :key=\"item.id\" class=\"product\">\r\n\t\t <view>\r\n\t\t <text>\r\n\t\t {{item.merchantName}}({{item.productName}})\r\n\t\t </text>\r\n\t\t\r\n\t\t <text>\r\n\t\t <text style=\"font-size:24rpx;\">¥</text>{{item.unitPrice}}\r\n\t\t <text>x</text>\r\n\t\t {{item.orderNum}}<br />\r\n\t\t <text style=\"margin-top:15rpx;font-size:22rpx;display: inline-block;color:#f45803;\" v-if=\"item.depositReceived\">押金:{{item.depositReceived}}</text>\r\n\t\t </text>\r\n\t\t </view>\r\n\t\t <view class=\"coupon\" v-if=\"item.pdDiscountMoney\">\r\n\t\t <text>\r\n\t\t 券\r\n\t\t </text>\r\n\t\t <text>\r\n\t\t <text style=\"font-size:24rpx;\">-¥</text>{{item.pdDiscountMoney}}\r\n\t\t </text>\r\n\t\t </view>\r\n\t\t </view>\r\n\t\t <!-- --------------------------------------单票----------------------------------------------- -->\r\n\t\t <view v-if=\"orderList==''\" class=\"product\">\r\n\t\t <view>\r\n\t\t <text>\r\n\t\t {{merchantName}}({{productName}})\r\n\t\t </text>\r\n\t\t\r\n\t\t <text style=\"text-align: right;\">\r\n\t\t <small style=\"font-size:24rpx;\">¥</small>{{unitPrice}}\r\n\t\t <text>x</text>\r\n\t\t {{orderNum}}<br />\r\n\t\t <text style=\"margin-top:15rpx;font-size:22rpx;display: inline-block;color:#f45803;\" v-if=\"depositReceived\">押金:{{depositReceived}}</text>\r\n\t\t\r\n\t\t </text>\r\n\t\t </view>\r\n\t\t <view class=\"coupon\" v-if=\"pdDiscountMoney\">\r\n\t\t <text>\r\n\t\t 券\r\n\t\t </text>\r\n\t\t <text>\r\n\t\t <text style=\"font-size:24rpx;\">-¥</text>{{pdDiscountMoney}}\r\n\t\t </text>\r\n\t\t </view>\r\n\t\t </view>\r\n\t\t <view class=\"mainP3\">\r\n\t\t <text>\r\n\t\t 实际支付\r\n\t\t </text>\r\n\t\t\r\n\t\t <text>\r\n\t\t <!--<i>\r\n\t\t\t\t\t\t¥{{totalMoney}}\r\n\t\t\t\t\t</i>-->\r\n\t\t\r\n\t\t <text>\r\n\t\t <text style=\"font-size:28rpx;\">¥</text>{{pdOrderMoney}}\r\n\t\t </text>\r\n\t\t </text>\r\n\t\t </view>\r\n\t\t <view class=\"mainview\">\r\n\t\t\t\t<image src=\"../../static/img/payment/weixin.png\" style=\"width:70rpx;height:62rpx;\" />\r\n\t\t <view>\r\n\t\t 微信支付\r\n\t\t </view>\r\n\t\t\t <image src=\"../../static/img/payment/input.png\" style=\"width:32rpx;height: 32rpx;\" />\r\n\t\t </view>\r\n\t\t </view>\r\n\t\t</view>\r\n\t\t\r\n\t\t<view class=\"bottom\" v-show=\"bodyShow\">\r\n\t\t <view class=\"bottomFirst\">\r\n\t\t <text>\r\n\t\t 实付款\r\n\t\t </text>\r\n\t\t\r\n\t\t <text>\r\n\t\t <text>¥</text>{{pdOrderMoney}}\r\n\t\t </text>\r\n\t\t </view>\r\n\t\t\r\n\t\t <view class=\"bottomLast\">\r\n\t\t <text href=\"tel:400-072-0368\">\r\n\t\t <!-- <img src=\"@/assets/img/combination/kefu11.png\" style=\"width: 0.31rpx;\" /> -->\r\n\t\t </text>\r\n\t\t <text @click=\"goPay()\">去支付</text>\r\n\t\t </view>\r\n\t\t</view>\n\t</view>\n</template>\n\n<script>\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\torderId: \"\", //订单id\r\n\t\t\t\tmerchantName: \"\", //商户名称\r\n\t\t\t\tproductName: \"\", //产品名称\r\n\t\t\t\torderList: \"\", //订单列表\r\n\t\t\t\tunitPrice: \"\", //单价\r\n\t\t\t\tdepositReceived: 0, //押金\r\n\t\t\t\tpdDiscountMoney: \"\", //优惠价格\r\n\t\t\t\torderNum: \"\", //数量\r\n\t\t\t\tpdOrderMoney: \"\", //实际总价\r\n\t\t\t\ttotalMoney: \"\", //原价总价\r\n\t\t\t\terrorMessage: \"\", //错误信息\r\n\t\t\t\tbodyShow: false, //控制初始化数据成功显示\r\n\t\t\t\ttimeStamp:\"\",//支付参数\r\n\t\t\t\tnonceStr:\"\",\r\n\t\t\t\tpackage:\"\",\r\n\t\t\t\tsignType:\"\",\r\n\t\t\t\tpaySign:\"\",\n\t\t\t}\n\t\t},\r\n\t\tonLoad(option){\r\n\t\t\t let data = {\r\n\t\t\t\torderId:option.order, //订单Id\r\n\t\t\t\tuserId:uni.getStorageSync(\"openid\"), //用户Id\r\n\t\t\t\tpayType:42, //支付类型\r\n\t\t\t }\r\n\t\t\t this.$request(\"orderc/order/findOrderInfo\", data).then((res) => {\r\n\t\t\t\tif (res.code == \"00\") {\r\n\t\t\t\t\tthis.bodyShow = true\r\n\t\t\t\t\t//支付参数开始\r\n\t\t\t\t\tthis.timeStamp=res.data.timestamp\r\n\t\t\t\t\tthis.nonceStr=res.data.noncestr\r\n\t\t\t\t\tthis.package=res.data.package\r\n\t\t\t\t\tthis.signType=res.data.signType\r\n\t\t\t\t\tthis.paySign=res.data.sign\r\n\t\t\t\t\t//支付参数结束\r\n\t\t\t\t\tthis.pdOrderMoney = res.data.pdOrderMoney\r\n\t\t\t\t\tthis.errorMessage = res.data.errorMessage\r\n\t\t\t\t\tthis.totalMoney = res.data.totalMoney\r\n\t\t\t\t\tthis.orderList = res.data.orderList\r\n\t\t\t\t\tif (typeof(this.orderList) == \"undefined\") { //单票\r\n\t\t\t\t\t this.orderList = \"\"\r\n\t\t\t\t\t this.merchantName = res.data.merchantName\r\n\t\t\t\t\t this.productName = res.data.productName\r\n\t\t\t\t\t this.unitPrice = res.data.unitPrice\r\n\t\t\t\t\t this.orderNum = res.data.orderNum\r\n\t\t\t\t\t this.depositReceived = res.data.depositReceived\r\n\t\t\t\t\t this.pdDiscountMoney = res.data.pdDiscountMoney\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}else{\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle:res.message,\r\n\t\t\t\t\t\ticon:\"none\"\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\r\n\t\t},\r\n\t\tmethods:{\r\n\t\t\tgoPay(){//-------------------------------------------------------去支付\r\n\t\t\t\tuni.requestPayment({\r\n\t\t\t\t provider: 'wxpay',\r\n\t\t\t\t timeStamp:this.timeStamp,\r\n\t\t\t\t nonceStr:this.nonceStr,\r\n\t\t\t\t package:this.package,\r\n\t\t\t\t signType:this.signType,\r\n\t\t\t\t paySign:this.paySign,\r\n\t\t\t\t success: function (res) {\r\n\t\t\t\t uni.redirectTo({\r\n\t\t\t\t url: 'paySuccess?orderId=123456'\r\n\t\t\t\t })\r\n\t\t\t\t },\r\n\t\t\t\t fail: function (err) {\r\n\t\t\t\t uni.showToast({\r\n\t\t\t\t\t\t\ttitle:err.errMsg,\r\n\t\t\t\t\t\t\tduration:2000,\r\n\t\t\t\t\t\t\ticon:\"none\"\r\n\t\t\t\t\t\t})\r\n\t\t\t\t }\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t}\n\t}\n</script>\n\n<style>\n.bigBox{height: 100%;background: #fafafc;}\r\n\t.middle{padding: 30rpx 24rpx 0 24rpx;}\r\n\t.main{padding: 10rpx 24rpx 20rpx 24rpx;background: #FFFFFF;border-radius: 20rpx;box-shadow: 0 0 15rpx #e6e6e8;}\r\n\t.product{border-bottom: 1px solid #e5e5e5;padding: 25rpx 0;}\r\n\t.product view{color: #000000;padding-left:10rpx;display: flex;align-items: center;box-sizing: border-box;}\r\n\t.product view text:first-child{flex: 1;}\r\n\t.product view text:nth-child(2){color:#666666;font-size:28rpx;text-align: right;}\r\n\t.product view.coupon{color: #F9690E;margin-top:10rpx;}\r\n\t.product view.coupon text{font-size:30rpx;}\r\n\t.mainP3{height:120rpx;color: #000000;border-bottom: 1px solid #e5e5e5;padding:25rpx 0 25rpx 10rpx;display: flex;align-items: center;box-sizing: border-box;justify-content: space-between;}\r\n\t.mainP3 text:nth-child(2){font-size: 24rpx;color: #666666;}\r\n\t.mainP3 text:nth-child(2) text:nth-child(1){font-size:36rpx;color:#F9690E;margin-left: 20rpx;font-weight: bold;}\r\n\t.mainview{margin-top:50rpx;display: flex;align-items: center;}\r\n\t.mainview>image:first-child{margin:0 20rpx 0 10rpx;}\r\n\t.mainview>view{flex: 1;}\r\n\t.bottom{position: fixed;bottom: 0;height: 100rpx;background: #FFFFFF;border-top:1px solid #e5e5e5;width: 100%;display: flex;align-items: center;}\r\n\t.bottomFirst{border-right: 1px solid #cccccc;padding-left:40rpx;width: 40%;box-sizing: border-box;}\r\n\t.bottomFirst text:nth-child(2){font-size:40rpx;color: #f9690e;margin-left:10rpx;font-weight: bold;}\r\n\t.bottomFirst text:nth-child(2) text{font-size:28rpx;}\r\n\t.bottomLast{padding-left:20rpx;display: flex;width: 60%;padding-right:20rpx;box-sizing: border-box;align-items: center;}\r\n\t.bottomLast text:first-child{display: block;text-align: center;width:60rpx;}\r\n\t.bottomLast text:first-child text{margin-top:10rpx;display: inline-block;font-size:24rpx;color: #666666;}\r\n\t.bottomLast text:nth-child(2){flex: 1;height:70rpx;display: inline-block;text-align: center;line-height:70rpx;background: #f9690e;color: #FFFFFF;margin-left:30rpx;border-radius: 20rpx;font-size:32rpx;}\n</style>\n","import mod from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./payment.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./payment.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1622616039821\n var cssReload = require(\"D:/程序应用/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":""}
\ No newline at end of file
{"version":3,"sources":["uni-app:///main.js","webpack:///E:/pangding/uni-pdtravel/pages/payment/payment.vue?374e","webpack:///E:/pangding/uni-pdtravel/pages/payment/payment.vue?2f6b","webpack:///E:/pangding/uni-pdtravel/pages/payment/payment.vue?e7f7","webpack:///E:/pangding/uni-pdtravel/pages/payment/payment.vue?bc93","uni-app:///pages/payment/payment.vue","webpack:///E:/pangding/uni-pdtravel/pages/payment/payment.vue?588b","webpack:///E:/pangding/uni-pdtravel/pages/payment/payment.vue?a886"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,kG;AACAA,UAAU,CAACC,gBAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAoH;AACpH;AAC2D;AACL;AACa;;;AAGnE;AAC2K;AAC3K,gBAAgB,+KAAU;AAC1B,EAAE,6EAAM;AACR,EAAE,kFAAM;AACR,EAAE,2FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,sFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAA+nB,CAAgB,2nBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACkGnpB;AACA,MADA,kBACA;AACA;AACA,sBADA,EACA;AACA,qBAFA,EAEA;AACA,mBAHA,EAGA;AACA,mBAJA,EAIA;AACA,wBALA,EAKA;AACA,yBANA,EAMA;AACA,kBAPA,EAOA;AACA,sBARA,EAQA;AACA,oBATA,EASA;AACA,sBAVA,EAUA;AACA,qBAXA,EAWA;AACA,mBAZA,EAYA;AACA,kBAbA;AAcA,iBAdA;AAeA,kBAfA;AAgBA,iBAhBA;;AAkBA,GApBA;AAqBA,QArBA,kBAqBA,MArBA,EAqBA;AACA;AACA,6BADA,EACA;AACA,0CAFA,EAEA;AACA,iBAHA,CAGA;AAHA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAvBA,MAuBA;AACA;AACA,4BADA;AAEA,sBAFA;;AAIA;;AAEA,KA/BA;;AAiCA,GA5DA;AA6DA;AACA,SADA,mBACA;AACA;AACA,yBADA;AAEA,iCAFA;AAGA,+BAHA;AAIA,6BAJA;AAKA,+BALA;AAMA,6BANA;AAOA;AACA;AACA,2CADA;;AAGA,SAXA;AAYA;AACA;AACA,6BADA;AAEA,0BAFA;AAGA,wBAHA;;AAKA,SAlBA;;AAoBA,KAtBA,EA7DA,E;;;;;;;;;;;;;AClGA;AAAA;AAAA;AAAA;AAA65B,CAAgB,o3BAAG,EAAC,C;;;;;;;;;;;ACAj7B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/payment/payment.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pages/payment/payment.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./payment.vue?vue&type=template&id=031d9d14&\"\nvar renderjs\nimport script from \"./payment.vue?vue&type=script&lang=js&\"\nexport * from \"./payment.vue?vue&type=script&lang=js&\"\nimport style0 from \"./payment.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\程序应用\\\\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 = \"pages/payment/payment.vue\"\nexport default component.exports","export * from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./payment.vue?vue&type=template&id=031d9d14&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./payment.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./payment.vue?vue&type=script&lang=js&\"","<template>\n\t<view>\n\t\t<view class=\"middle\" v-show=\"bodyShow\">\r\n\t\t <view class=\"main\">\r\n\t\t <!-- --------------------------------------复票----------------------------------------------- -->\r\n\t\t <view v-if=\"orderList!=''\" v-for=\"item of orderList\" :key=\"item.id\" class=\"product\">\r\n\t\t <view>\r\n\t\t <text>\r\n\t\t {{item.merchantName}}({{item.productName}})\r\n\t\t </text>\r\n\t\t\r\n\t\t <text>\r\n\t\t <text style=\"font-size:24rpx;\">¥</text>{{item.unitPrice}}\r\n\t\t <text>x</text>\r\n\t\t {{item.orderNum}}<br />\r\n\t\t <text style=\"margin-top:15rpx;font-size:22rpx;display: inline-block;color:#f45803;\" v-if=\"item.depositReceived\">押金:{{item.depositReceived}}</text>\r\n\t\t </text>\r\n\t\t </view>\r\n\t\t <view class=\"coupon\" v-if=\"item.pdDiscountMoney\">\r\n\t\t <text>\r\n\t\t 券\r\n\t\t </text>\r\n\t\t <text>\r\n\t\t <text style=\"font-size:24rpx;\">-¥</text>{{item.pdDiscountMoney}}\r\n\t\t </text>\r\n\t\t </view>\r\n\t\t </view>\r\n\t\t <!-- --------------------------------------单票----------------------------------------------- -->\r\n\t\t <view v-if=\"orderList==''\" class=\"product\">\r\n\t\t <view>\r\n\t\t <text>\r\n\t\t {{merchantName}}({{productName}})\r\n\t\t </text>\r\n\t\t\r\n\t\t <text style=\"text-align: right;\">\r\n\t\t <small style=\"font-size:24rpx;\">¥</small>{{unitPrice}}\r\n\t\t <text>x</text>\r\n\t\t {{orderNum}}<br />\r\n\t\t <text style=\"margin-top:15rpx;font-size:22rpx;display: inline-block;color:#f45803;\" v-if=\"depositReceived\">押金:{{depositReceived}}</text>\r\n\t\t\r\n\t\t </text>\r\n\t\t </view>\r\n\t\t <view class=\"coupon\" v-if=\"pdDiscountMoney\">\r\n\t\t <text>\r\n\t\t 券\r\n\t\t </text>\r\n\t\t <text>\r\n\t\t <text style=\"font-size:24rpx;\">-¥</text>{{pdDiscountMoney}}\r\n\t\t </text>\r\n\t\t </view>\r\n\t\t </view>\r\n\t\t <view class=\"mainP3\">\r\n\t\t <text>\r\n\t\t 实际支付\r\n\t\t </text>\r\n\t\t\r\n\t\t <text>\r\n\t\t <!--<i>\r\n\t\t\t\t\t\t¥{{totalMoney}}\r\n\t\t\t\t\t</i>-->\r\n\t\t\r\n\t\t <text>\r\n\t\t <text style=\"font-size:28rpx;\">¥</text>{{pdOrderMoney}}\r\n\t\t </text>\r\n\t\t </text>\r\n\t\t </view>\r\n\t\t <view class=\"mainview\">\r\n\t\t\t\t<image src=\"../../static/img/payment/weixin.png\" style=\"width:70rpx;height:62rpx;\" />\r\n\t\t <view>\r\n\t\t 微信支付\r\n\t\t </view>\r\n\t\t\t <image src=\"../../static/img/payment/input.png\" style=\"width:32rpx;height: 32rpx;\" />\r\n\t\t </view>\r\n\t\t </view>\r\n\t\t</view>\r\n\t\t\r\n\t\t<view class=\"bottom\" v-show=\"bodyShow\">\r\n\t\t <view class=\"bottomFirst\">\r\n\t\t <text>\r\n\t\t 实付款\r\n\t\t </text>\r\n\t\t\r\n\t\t <text>\r\n\t\t <text>¥</text>{{pdOrderMoney}}\r\n\t\t </text>\r\n\t\t </view>\r\n\t\t\r\n\t\t <view class=\"bottomLast\">\r\n\t\t <text href=\"tel:400-072-0368\">\r\n\t\t <!-- <img src=\"@/assets/img/combination/kefu11.png\" style=\"width: 0.31rpx;\" /> -->\r\n\t\t </text>\r\n\t\t <text @click=\"goPay()\">去支付</text>\r\n\t\t </view>\r\n\t\t</view>\n\t</view>\n</template>\n\n<script>\n\texport default {\n\t\tdata() {\n\t\t\treturn {\r\n\t\t\t\tmerchantName: \"\", //商户名称\r\n\t\t\t\tproductName: \"\", //产品名称\r\n\t\t\t\torderList: \"\", //订单列表\r\n\t\t\t\tunitPrice: \"\", //单价\r\n\t\t\t\tdepositReceived: 0, //押金\r\n\t\t\t\tpdDiscountMoney: \"\", //优惠价格\r\n\t\t\t\torderNum: \"\", //数量\r\n\t\t\t\tpdOrderMoney: \"\", //实际总价\r\n\t\t\t\ttotalMoney: \"\", //原价总价\r\n\t\t\t\terrorMessage: \"\", //错误信息\r\n\t\t\t\tbodyShow: false, //控制初始化数据成功显示\r\n\t\t\t\ttimeStamp:\"\",//支付参数\r\n\t\t\t\tnonceStr:\"\",\r\n\t\t\t\tpackage:\"\",\r\n\t\t\t\tsignType:\"\",\r\n\t\t\t\tpaySign:\"\",\n\t\t\t}\n\t\t},\r\n\t\tonLoad(option){\r\n\t\t\t let data = {\r\n\t\t\t\torderId:option.orderId, //订单Id\r\n\t\t\t\tuserId:uni.getStorageSync(\"openid\"), //用户Id\r\n\t\t\t\tpayType:42, //支付类型\r\n\t\t\t }\r\n\t\t\t this.$request(\"orderc/order/findOrderInfo\", data).then((res) => {\r\n\t\t\t\tif (res.code == \"00\") {\r\n\t\t\t\t\tthis.bodyShow = true\r\n\t\t\t\t\t//支付参数开始\r\n\t\t\t\t\tthis.timeStamp=res.data.timestamp\r\n\t\t\t\t\tthis.nonceStr=res.data.noncestr\r\n\t\t\t\t\tthis.package=res.data.package\r\n\t\t\t\t\tthis.signType=res.data.signType\r\n\t\t\t\t\tthis.paySign=res.data.sign\r\n\t\t\t\t\t//支付参数结束\r\n\t\t\t\t\tthis.pdOrderMoney = res.data.pdOrderMoney\r\n\t\t\t\t\tthis.errorMessage = res.data.errorMessage\r\n\t\t\t\t\tthis.totalMoney = res.data.totalMoney\r\n\t\t\t\t\tthis.orderList = res.data.orderList\r\n\t\t\t\t\tif (typeof(this.orderList) == \"undefined\") { //单票\r\n\t\t\t\t\t this.orderList = \"\"\r\n\t\t\t\t\t this.merchantName = res.data.merchantName\r\n\t\t\t\t\t this.productName = res.data.productName\r\n\t\t\t\t\t this.unitPrice = res.data.unitPrice\r\n\t\t\t\t\t this.orderNum = res.data.orderNum\r\n\t\t\t\t\t this.depositReceived = res.data.depositReceived\r\n\t\t\t\t\t this.pdDiscountMoney = res.data.pdDiscountMoney\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}else{\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle:res.message,\r\n\t\t\t\t\t\ticon:\"none\"\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\r\n\t\t},\r\n\t\tmethods:{\r\n\t\t\tgoPay(){//-------------------------------------------------------去支付\r\n\t\t\t\tuni.requestPayment({\r\n\t\t\t\t provider: 'wxpay',\r\n\t\t\t\t timeStamp:this.timeStamp,\r\n\t\t\t\t nonceStr:this.nonceStr,\r\n\t\t\t\t package:this.package,\r\n\t\t\t\t signType:this.signType,\r\n\t\t\t\t paySign:this.paySign,\r\n\t\t\t\t success: function (res) {\r\n\t\t\t\t uni.redirectTo({\r\n\t\t\t\t url:\"../paySuccess/paySuccess\"\r\n\t\t\t\t })\r\n\t\t\t\t },\r\n\t\t\t\t fail: function (err) {\r\n\t\t\t\t uni.showToast({\r\n\t\t\t\t\t\t\ttitle:err.errMsg,\r\n\t\t\t\t\t\t\tduration:2000,\r\n\t\t\t\t\t\t\ticon:\"none\"\r\n\t\t\t\t\t\t})\r\n\t\t\t\t }\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t}\n\t}\n</script>\n\n<style>\n.bigBox{height: 100%;background: #fafafc;}\r\n\t.middle{padding: 30rpx 24rpx 0 24rpx;}\r\n\t.main{padding: 10rpx 24rpx 20rpx 24rpx;background: #FFFFFF;border-radius: 20rpx;box-shadow: 0 0 15rpx #e6e6e8;}\r\n\t.product{border-bottom: 1px solid #e5e5e5;padding: 25rpx 0;}\r\n\t.product view{color: #000000;padding-left:10rpx;display: flex;align-items: center;box-sizing: border-box;}\r\n\t.product view text:first-child{flex: 1;}\r\n\t.product view text:nth-child(2){color:#666666;font-size:28rpx;text-align: right;}\r\n\t.product view.coupon{color: #F9690E;margin-top:10rpx;}\r\n\t.product view.coupon text{font-size:30rpx;}\r\n\t.mainP3{height:120rpx;color: #000000;border-bottom: 1px solid #e5e5e5;padding:25rpx 0 25rpx 10rpx;display: flex;align-items: center;box-sizing: border-box;justify-content: space-between;}\r\n\t.mainP3 text:nth-child(2){font-size: 24rpx;color: #666666;}\r\n\t.mainP3 text:nth-child(2) text:nth-child(1){font-size:36rpx;color:#F9690E;margin-left: 20rpx;font-weight: bold;}\r\n\t.mainview{margin-top:50rpx;display: flex;align-items: center;}\r\n\t.mainview>image:first-child{margin:0 20rpx 0 10rpx;}\r\n\t.mainview>view{flex: 1;}\r\n\t.bottom{position: fixed;bottom: 0;height: 100rpx;background: #FFFFFF;border-top:1px solid #e5e5e5;width: 100%;display: flex;align-items: center;}\r\n\t.bottomFirst{border-right: 1px solid #cccccc;padding-left:40rpx;width: 40%;box-sizing: border-box;}\r\n\t.bottomFirst text:nth-child(2){font-size:40rpx;color: #f9690e;margin-left:10rpx;font-weight: bold;}\r\n\t.bottomFirst text:nth-child(2) text{font-size:28rpx;}\r\n\t.bottomLast{padding-left:20rpx;display: flex;width: 60%;padding-right:20rpx;box-sizing: border-box;align-items: center;}\r\n\t.bottomLast text:first-child{display: block;text-align: center;width:60rpx;}\r\n\t.bottomLast text:first-child text{margin-top:10rpx;display: inline-block;font-size:24rpx;color: #666666;}\r\n\t.bottomLast text:nth-child(2){flex: 1;height:70rpx;display: inline-block;text-align: center;line-height:70rpx;background: #f9690e;color: #FFFFFF;margin-left:30rpx;border-radius: 20rpx;font-size:32rpx;}\n</style>\n","import mod from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./payment.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./payment.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1623291483823\n var cssReload = require(\"D:/程序应用/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":""}
\ No newline at end of file
{
"ignoreWebViewDomainCheck": true
}
\ No newline at end of file
const g = typeof global !== 'undefined' ? global : self;
g.appXAppJson = {
"app": {
"$homepage": "pages/index/index"
}
};
if(!self.Map || !self.Set || !self.Symbol) {
importScripts('https://gw.alipayobjects.com/as/g/appx_release/deps/1.0.3/es6-set-map-symbol.js');
}
importScripts(`https://appx/af-appx.worker.min.js`);
require('@alipay/appx-compiler/lib/sjsEnvInit');
require('./config$');
require('../../pages/index/index?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../pages/payment/payment?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../pages/login/login?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../pages/paySuccess/paySuccess?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
/**! __BUGME_START__ */ !function(){"use strict";var ERuntimeRemoteObjectType,ERuntimeRemoteObjectSubType;!function(e){e.Object="object",e.Function="function",e.Undefined="undefined",e.String="string",e.Number="number",e.Boolean="boolean",e.Symbol="Symbol",e.Bigint="bigint",e.Wasm="wasm"}(ERuntimeRemoteObjectType||(ERuntimeRemoteObjectType={})),function(e){e.Error="error",e.Array="array",e.Null="null"}(ERuntimeRemoteObjectSubType||(ERuntimeRemoteObjectSubType={}));var appxStackLine=/https:\/\/appx\/af-appx\.worker\.min\.js:\d+:\d+/,nativeScriptLine=/https:\/\/www\.alipay\.com\/?:\d+:\d+|\[native code\]/,pluginWorkerStackLine=/https:\/\/\d+\.hybrid\.\S+\.com\/__plugins__\/(\d+)\/index\.worker\.js:\d+:\d+/,appWorkerStackLine=/https:\/\/\d+\.hybrid\.\S+\.com\/index\.worker\.js:\d+:\d+/;function transformSourceUrl(e){try{return pluginWorkerStackLine.test(e)?e.replace(pluginWorkerStackLine,"Plugin-$1"):e.replace(appWorkerStackLine,"App")}catch(t){return e}}function formatStack(e){var t=e.split("\n"),n=t[0],s=t.slice(1).filter((function(e){return!appxStackLine.test(e)&&!nativeScriptLine.test(e)})).map(transformSourceUrl).map((function(e){return" "===e[0]?e:" "+e}));return s.unshift(n),s.join("\n")}function error2RemoteObject(e){var t=e.name,n=e.message,s=e.stack;"string"!=typeof s&&(s=e.toString()),-1===s.indexOf(t)&&(s=e.toString()+"\n"+s);try{s=formatStack(s)}catch(e){}return{className:t,description:s,preview:{description:s,overflow:!1,properties:[{name:"stack",type:ERuntimeRemoteObjectType.String,value:s},{name:"message",type:ERuntimeRemoteObjectType.String,value:n}],subtype:ERuntimeRemoteObjectSubType.Error,type:ERuntimeRemoteObjectType.Object},subtype:ERuntimeRemoteObjectSubType.Error,type:ERuntimeRemoteObjectType.Object}}function isError(e){try{return"[object Error]"===Object.prototype.toString.call(e)}catch(e){return!1}}function getStartupParams(){if("undefined"!=typeof __appxStartupParams&&__appxStartupParams&&__appxStartupParams.appId)return __appxStartupParams;if("undefined"!=typeof my)try{return my.callSync("getStartupParams")||{}}catch(e){}return{}}var serverConfig={default:{domain:"hpmweb.alipay.com"},1:{domain:"hpmweb.alipay.com"}},ResponseEvent,RequestMethod,BreakStepType,FingerType;function getServerConfig(){var e=getStartupParams().remoteCh;return e&&serverConfig[e]?serverConfig[e]:serverConfig.default}!function(e){e.ById="Tyro.byId",e.Sticky="Tyro.sticky",e.StickyNotSendPaused="Tyro.stickyNotSendPaused",e.StickyAsync="Tyro.stickyAsync",e.ScriptSource="Tyro.scriptSource",e.Resumed="Debugger.resumed",e.ConsoleAPICalled="Runtime.consoleAPICalled"}(ResponseEvent||(ResponseEvent={})),function(e){e.DiscardConsoleEntries="Tyro.discardConsoleEntries",e.Evaluate="Tyro.evaluate",e.EvaluateOnCallFrame="Tyro.evaluateOnCallFrame",e.CallFunctionOn="Tyro.callFunctionOn",e.CompileScript="Tyro.compileScript",e.SetBreakpointsActive="Tyro.setBreakpointsActive",e.SetSkipAllPauses="Tyro.setSkipAllPauses",e.Resume="Tyro.resume",e.StepInto="Tyro.stepInto",e.StepOver="Tyro.stepOver",e.StepOut="Tyro.stepOut",e.Pause="Tyro.pause",e.GetPossibleBreakpoints="Tyro.getPossibleBreakpoints",e.SetBreakpointByUrl="Tyro.setBreakpointByUrl",e.SetBreakpoint="Tyro.setBreakpoint",e.RemoveBreakpoint="Tyro.removeBreakpoint",e.REPL="Tyro.repl",e.GetVariableValue="Tyro.getVariableValue",e.SetPauseOnExceptions="Tyro.setPauseOnExceptions",e.SetAsyncCallStackDepth="Tyro.setAsyncCallStackDepth",e.GetProperties="Tyro.getProperties"}(RequestMethod||(RequestMethod={})),function(e){e[e.Non=0]="Non",e[e.NextSticky=1]="NextSticky",e[e.StepOver=2]="StepOver",e[e.StepOut=3]="StepOut"}(BreakStepType||(BreakStepType={})),function(e){e[e.Entry=0]="Entry",e[e.Exit=1]="Exit"}(FingerType||(FingerType={}));var TyroUtil=function(){function e(){}return e.throwsMessage=function(e){return"[Throws: "+(e?e.message:"?")+"]"},e.safeGetValueFromPropertyOnObject=function(t,n){if(Object.prototype.hasOwnProperty.call(t,n))try{return t[n]}catch(t){return e.throwsMessage(t)}return t[n]},e.ensureProperties=function(t){var n=[];return function t(s){if(null===s||"object"!=typeof s)return s;if(-1!==n.indexOf(s))return"[Circular]";if(n.push(s),"function"==typeof s.toJSON)try{var i=t(s.toJSON());return n.pop(),i}catch(t){return e.throwsMessage(t)}if(Array.isArray(s)){var r=s.map(t);return n.pop(),r}var o=Object.keys(s).reduce((function(n,i){return n[i]=t(e.safeGetValueFromPropertyOnObject(s,i)),n}),{});return n.pop(),o}(t)},e.safeJSONStringify=function(t,n,s){return JSON.stringify(e.ensureProperties(t),n,s)},e.isWebIDE=function(){return!("undefined"==typeof navigator||!navigator)&&(navigator.swuserAgent||navigator.userAgent||"").indexOf("AlipayIDE")>-1},e}(),StickyFinger=function(){function StickyFinger(e,t,n,s){var i=this;this.isWebIDE=!1,this.asyncRequestMethod="tyroRequest",this.host=t,this.contextMap={},this.contextUrlMap={},this.breakpointMap={},this.breakpointIdMap={},this.debuggerMap={},this.objectMap={},this.originConsoleAPI={},this.requestTaskId=0,this.stickyMsgQueue=[],this.wsMsgQueue=[],this.wsIsOpen=!1,this.instrumentId=n,this.stickyFlag=s.stickyFlag,this.fingerFlag=s.fingerFlag,this.hookConsole(),this.stickyFlag&&(setTimeout((function(){i.socketTask=my.connectSocket({url:"wss://"+getServerConfig().domain+"/tyro/agent/"+i.instrumentId,multiple:!0});var e=function(){if(!i.wsIsOpen){i.originConsoleAPI.log("[tyro-agent] WebSocket 连接成功"),i.wsIsOpen=!0;for(var e=0,t=i.wsMsgQueue;e<t.length;e++){var n=t[e];i.socketTask.send({data:n})}i.wsMsgQueue=[]}};i.socketTask.onOpen((function(){e()})),i.socketTask.onClose((function(){i.originConsoleAPI.log("[tyro-agent] WebSocket 连接已关闭")})),i.socketTask.onMessage((function(t){i.wsIsOpen||e(),i.handleStickyAsync(JSON.parse(t.data.data))}))}),2e3),this.breakpointsActive=!0,this.skipAllPauses=!1,this.breakStepType=BreakStepType.Non,this.stackDepth=0,this.pauseOnExceptions="none",this.asyncCallStackDepth=0,this.lastStickyAsyncError=0,this.generateObjectId=0,this.globalExecutionContext=e,this.evaluateOnCallFrameExpression="",this.stickyNotSendPaused=!1,this.sendStickyParams=!1),this.fingerFlag&&(this.fingerId=0,this.fingerCache=[],this.fingerSendInterval=1e3,this.jsapiCallId=0,setInterval((function(){0!==i.fingerCache.length&&(i.sendPerf("Perf.trace",i.fingerCache),i.fingerCache=[])}),this.fingerSendInterval)),this.isWebIDE=TyroUtil.isWebIDE(),this.isWebIDE&&(this.asyncRequestMethod="tyroRequestAsync")}return StickyFinger.rewritePath=function(e){var t=e;return"."===t[0]&&(t=t.replace(".","")),t="app://"+(t=t.replace("tmp/data/build/",""))},StickyFinger.processRawContext=function(e){var t={path:this.rewritePath(e.path),contextId:String(e.contextId),scope:{0:[]},function:{},debuggerLine:e.debuggerLine,stickyLine:e.stickyLine};return e.scope&&Object.keys(e.scope).map((function(n){var s=e.scope[n],i=s.shift(),r=t.scope[i];t.scope[n]=r?r.concat(s.filter((function(e){return r.indexOf(e)<0}))):s})),e.function&&Object.keys(e.function).map((function(n){var s=e.function[n];t.function[n]={name:s[0],line:s[1]}})),t},StickyFinger.prototype.register=function(e,t){var n=String(e.contextId),s=StickyFinger.rewritePath(e.path);this.originConsoleAPI.log("[tyro-agent] register contextId "+n+" path "+s),this.contextMap[n]||this.breakpointMap[n]?this.originConsoleAPI.warn("[tyro-agent] duplicate context register "+n+" "+s):(this.contextMap[n]=StickyFinger.processRawContext(e),this.contextUrlMap[s]=n,this.breakpointMap[n]={},this.debuggerMap[n]=this.contextMap[n].debuggerLine.reduce((function(e,t){return e[t-1]=!0,e}),{}),this.stickyFlag&&this.xhrSend(ResponseEvent.ScriptSource,{scriptSource:t,scriptId:String(n),executionContextId:0,url:s}))},StickyFinger.prototype.sticky=function(e,t,n){if(!this.skipAllPauses&&this.breakpointsActive&&((this.debuggerMap[e]||{})[t]||(this.breakpointMap[e]||{})[t]||this.breakStepType===BreakStepType.NextSticky||this.breakStepType===BreakStepType.StepOver&&(new Error).stack.split("\n").length<=this.stackDepth||this.breakStepType===BreakStepType.StepOut&&(new Error).stack.split("\n").length<this.stackDepth||!0===this.sendStickyParams)){this.originConsoleAPI.log("[tyro-agent] sticky "+e+" "+t),this.breakStepType=BreakStepType.Non;var s={};if(this.stickyNotSendPaused)this.originConsoleAPI.log("[tyro-agent] stickyNotSendPaused");else{if(!this.sendStickyParams){this.originConsoleAPI.log("[tyro-agent] sticky sendStickyParams step 1"),s={callFrames:null,reason:"other",hitBreakpoints:[]};var i=this.breakpointMap[e][t];i&&s.hitBreakpoints.push(i);var r=(new Error).stack.split("\n");return this.stackDepth=r.length,Agent.isPhone?s.callFrames=this.processCallFramesPhone(String(e),t,n,r):s.callFrames=this.processCallFrames(String(e),t,n,r),this.stickyParams=s,this.sendStickyParams=!0,"(function(){\n var localObject = {};\n Agent.getScopeVariables().forEach(function (key) {\n localObject[key] = (function(){try{return eval(key)}catch(e){return undefined}})();\n });\n Agent.inflateStickyParamsObject(localObject);\n return true;\n })()"}this.originConsoleAPI.log("[tyro-agent] sticky sendStickyParams step 2"),s=this.stickyParams,this.sendStickyParams=!1}this.originConsoleAPI.log("[tyro-agent] sticky params "+TyroUtil.safeJSONStringify(s));var o=JSON.parse(this.xhrSend(ResponseEvent.Sticky,s));return this.handleSticky(o)}},StickyFinger.prototype.fingerEntry=function(e,t){var n=this.contextMap[e].path,s=this.contextMap[e].function[t],i=this.generateFingerId(),r={time:Date.now(),file:n,line:s.line,name:s.name,id:i,type:FingerType.Entry};return this.fingerCache.push(r),i},StickyFinger.prototype.fingerExit=function(e,t,n){var s=this.contextMap[e].path,i=this.contextMap[e].function[t],r={time:Date.now(),file:s,line:i.line,name:i.name,id:n,type:FingerType.Exit};this.fingerCache.push(r)},StickyFinger.prototype.sendPerf=function(e,t){self.bugmeAPI?self.bugmeAPI.send({method:e,params:t}):self.document?self.document.addEventListener("bugmeInjected",(function(){self.bugmeAPI.send({method:e,params:t})})):self.addEventListener&&self.addEventListener("bugmeInjected",(function(){self.bugmeAPI.send({method:e,params:t})}))},StickyFinger.prototype.hookConsole=function(){var e=this;this.originConsoleAPI.log=console.log.bind(console),this.originConsoleAPI.debug=console.debug.bind(console),this.originConsoleAPI.info=console.info.bind(console),this.originConsoleAPI.error=console.error.bind(console),this.originConsoleAPI.warn=console.warn.bind(console),console.log=function(){for(var t,n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];if((t=e.originConsoleAPI).log.apply(t,n),!(n.length>0&&"string"==typeof n[0]&&(n[0].indexOf("[framework]")>=0||n[0].indexOf("dispatchEvent")>=0||n[0].indexOf("onMessage push")>=0))){var i={type:"log",args:n.map((function(t){return e.objectToRemoteObject(t,null,"object"==typeof t)})),executionContextId:0,timestamp:(new Date).getTime()};e.xhrSend(ResponseEvent.ConsoleAPICalled,i,null,!1)}},console.debug=function(){for(var t,n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];if((t=e.originConsoleAPI).debug.apply(t,n),!(n.length>0&&"string"==typeof n[0]&&(n[0].indexOf("[framework]")>=0||n[0].indexOf("dispatchEvent")>=0||n[0].indexOf("onMessage push")>=0))){var i={type:"debug",args:n.map((function(t){return e.objectToRemoteObject(t,null,"object"==typeof t)})),executionContextId:0,timestamp:(new Date).getTime()};e.xhrSend(ResponseEvent.ConsoleAPICalled,i,null,!1)}},console.info=function(){for(var t,n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];if((t=e.originConsoleAPI).info.apply(t,n),!(n.length>0&&"string"==typeof n[0]&&(n[0].indexOf("[framework]")>=0||n[0].indexOf("dispatchEvent")>=0||n[0].indexOf("onMessage push")>=0))){var i={type:"info",args:n.map((function(t){return e.objectToRemoteObject(t,null,"object"==typeof t)})),executionContextId:0,timestamp:(new Date).getTime()};e.xhrSend(ResponseEvent.ConsoleAPICalled,i,null,!1)}},console.error=function(){for(var t,n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];if((t=e.originConsoleAPI).error.apply(t,n),!(n.length>0&&"string"==typeof n[0]&&(n[0].indexOf("[framework]")>=0||n[0].indexOf("dispatchEvent")>=0||n[0].indexOf("onMessage push")>=0))){var i={type:"error",args:n.map((function(t){return e.objectToRemoteObject(t,null,"object"==typeof t)})),executionContextId:0,timestamp:(new Date).getTime()};e.xhrSend(ResponseEvent.ConsoleAPICalled,i,null,!1)}},console.warn=function(){for(var t,n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];if((t=e.originConsoleAPI).warn.apply(t,n),!(n.length>0&&"string"==typeof n[0]&&(n[0].indexOf("[framework]")>=0||n[0].indexOf("dispatchEvent")>=0||n[0].indexOf("onMessage push")>=0))){var i={type:"warning",args:n.map((function(t){return e.objectToRemoteObject(t,null,"object"==typeof t)})),executionContextId:0,timestamp:(new Date).getTime()};e.xhrSend(ResponseEvent.ConsoleAPICalled,i,null,!1)}}},StickyFinger.prototype.inflateStickyParamsObject=function(e){if(0!==this.stickyParams.callFrames.length){this.generateObjectId+=1;var t=String(this.generateObjectId);this.objectMap[t]=e,this.stickyParams.callFrames[0].scopeChain.push({type:"local",name:this.stickyParams.callFrames[0].functionName,object:{className:"Object",description:"Object",objectId:t,type:"object"}})}},StickyFinger.prototype.processCallFrames=function(e,t,n,s){var i=this,r=[],o=s.slice(3,s.length).map((function(e){return e.substr(0,e.lastIndexOf(":")).replace(" at ","").replace(" (",":")})),a=0,c=!0;return o.map((function(t){var s=t.split(":"),o=s[0],p=i.contextMap[e].path,u=Number(s[s.length-1]),l=i.contextUrlMap[p]||"none",y=a+":"+u+":"+p;c&&(i.scopeVariables=void 0!==i.contextMap[e]?i.contextMap[e].scope[n]:[],c=!1);var h={callFrameId:y,functionName:o,location:{scriptId:l,lineNumber:u,columnNumber:0},url:p,scopeChain:[],this:{}};r.push(h),a+=1})),r},StickyFinger.prototype.processCallFramesPhone=function(e,t,n,s){var i=this,r=[],o=s.slice(2,s.length).map((function(e){return e.substr(0,e.lastIndexOf(":")).replace(" at ","").replace(" (",":").replace("@",":")})),a=0,c=!0;return o.map((function(s){var o=s.split(":"),p=o[0],u=i.contextMap[e].path,l=Number(o[o.length-1]),y=i.contextUrlMap[u]||"none",h=a+":"+l+":"+u;c&&(i.scopeVariables=void 0!==i.contextMap[e]?i.contextMap[e].scope[n]:[],i.originConsoleAPI.log("scopeVariables "+TyroUtil.safeJSONStringify(i.scopeVariables)),i.originConsoleAPI.log("scopeVariables "+TyroUtil.safeJSONStringify(i.contextMap[e])+" "+i.contextMap[e].scope+" "+n),c=!1);var d={callFrameId:h,functionName:p,location:{scriptId:y,lineNumber:t,columnNumber:0},url:u,scopeChain:[],this:{}};r.push(d),a+=1})),r},StickyFinger.prototype.stickyAsyncLoop=function(){this.xhrSend(ResponseEvent.StickyAsync,{})},StickyFinger.prototype.xhrSendJSAPI=function(e,t,n,s){var i,r=this;if(e===ResponseEvent.Sticky){var o;this.stickyMsgQueue.length>0?(this.stickyMsgQueue.push({method:this.stickyNotSendPaused?ResponseEvent.StickyNotSendPaused:ResponseEvent.Sticky,params:t}),o=TyroUtil.safeJSONStringify(this.stickyMsgQueue),this.stickyMsgQueue=[]):o=TyroUtil.safeJSONStringify({method:this.stickyNotSendPaused?ResponseEvent.StickyNotSendPaused:ResponseEvent.Sticky,params:t}),my.call("showRemoteDebugMask",{text:" ",buttonTitle:"断点命中",hide:!1}),this.stickyNotSendPaused=!1;var a=Date.now(),c=my.callSync("tyroRequest",{url:this.host+"/tyro/agent",method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8","instrument-id":this.instrumentId},data:o,timeout:6e5,blockTimeout:6e5,dataType:"json",requestTaskId:this.requestTaskId++});return my.call("showRemoteDebugMask",{hide:!0}),c.error||null===c?(null===c?this.originConsoleAPI.error("[tyro-agent] xhrSend error result is "+c):this.originConsoleAPI.error("[tyro-agent] xhrSend error "+c.error+" "+c.errorMessage),Date.now()-a>=5e3?this.xhrSendJSAPI(e,t,n,s):TyroUtil.safeJSONStringify({method:"default"})):200!==c.status?(this.originConsoleAPI.error("[tyro-agent] xhrSend status fail "+e+" "+c.status),TyroUtil.safeJSONStringify({method:"default"})):c.data}if(e===ResponseEvent.StickyAsync){var p=TyroUtil.safeJSONStringify({method:ResponseEvent.StickyAsync,params:t});this.originConsoleAPI.info("[tyro-agent] xhrSend async send "+p),my.call(this.asyncRequestMethod,{url:this.host+"/tyro/agent",method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8","instrument-id":this.instrumentId},data:p,timeout:6e5,dataType:"json",requestTaskId:this.requestTaskId++,success:function(e){r.lastStickyAsyncError=0,r.stickyAsyncLoop(),200===e.status?(r.originConsoleAPI.info("[tyro-agent] xhrSend async success "+e.status+" "+e.data),r.handleStickyAsync(JSON.parse(e.data))):r.originConsoleAPI.error("[tyro-agent] xhrSend async fail "+e.status+" "+e.data)},fail:function(e){r.lastStickyAsyncError>=3?setTimeout((function(){r.stickyAsyncLoop()}),3e3):(r.lastStickyAsyncError+=1,r.stickyAsyncLoop()),r.originConsoleAPI.error("[tyro-agent] xhrSend async error "+TyroUtil.safeJSONStringify(e))}})}switch(e){case ResponseEvent.ById:i={id:n,result:t};break;case ResponseEvent.ScriptSource:i={method:ResponseEvent.ScriptSource,params:t};break;case ResponseEvent.Resumed:i={method:ResponseEvent.Resumed,params:t};break;case ResponseEvent.ConsoleAPICalled:i={method:ResponseEvent.ConsoleAPICalled,params:t};break;default:return}s?this.stickyMsgQueue.push(i):this.wsIsOpen?this.socketTask.send({data:TyroUtil.safeJSONStringify(i)}):this.wsMsgQueue.push(TyroUtil.safeJSONStringify(i))},StickyFinger.prototype.xhrSend=function(e,t,n,s){var i=this;if(Agent.isPhone)return this.xhrSendJSAPI(e,t,n,s);var r,o=new XMLHttpRequest;if(e===ResponseEvent.Sticky){var a;if(o.open("POST",this.host+"/tyro/agent",!1),o.setRequestHeader("Content-Type","application/json;charset=UTF-8"),o.setRequestHeader("instrument-id",this.instrumentId),this.stickyMsgQueue.length>0){this.stickyMsgQueue.push({method:this.stickyNotSendPaused?ResponseEvent.StickyNotSendPaused:ResponseEvent.Sticky,params:t});try{a=TyroUtil.safeJSONStringify(this.stickyMsgQueue)}catch(e){this.originConsoleAPI.error(e),a=TyroUtil.safeJSONStringify({method:this.stickyNotSendPaused?ResponseEvent.StickyNotSendPaused:ResponseEvent.Sticky,params:t})}finally{this.stickyMsgQueue=[]}}else a=TyroUtil.safeJSONStringify({method:this.stickyNotSendPaused?ResponseEvent.StickyNotSendPaused:ResponseEvent.Sticky,params:t});if(this.stickyNotSendPaused=!1,o.send(a),200===o.status)return o.responseText;throw new Error("[sticky-finger] xhrSend error "+e+" "+o.status)}if(e===ResponseEvent.StickyAsync)return o.open("POST",this.host+"/tyro/agent",!0),o.setRequestHeader("Content-Type","application/json;charset=UTF-8"),o.setRequestHeader("instrument-id",this.instrumentId),o.onload=function(){if(i.lastStickyAsyncError=0,i.stickyAsyncLoop(),4!==o.readyState||200!==o.status)throw new Error("[tyro-agent] xhrSend async fail "+e+" "+o.readyState+" "+o.status);i.handleStickyAsync(JSON.parse(o.responseText))},o.onerror=function(){throw i.lastStickyAsyncError>=3?setTimeout((function(){i.stickyAsyncLoop()}),3e3):(i.lastStickyAsyncError+=1,i.stickyAsyncLoop()),new Error("[tyro-agent] xhrSend async error "+e+" "+o.readyState+" "+o.status)},void o.send(TyroUtil.safeJSONStringify({method:ResponseEvent.StickyAsync,params:t}));switch(o.open("POST",this.host+"/tyro/agent",!0),o.setRequestHeader("Content-Type","application/json;charset=UTF-8"),o.setRequestHeader("instrument-id",this.instrumentId),o.onload=function(){if(4!==o.readyState||200!==o.status)throw new Error("[tyro-agent] xhrSend async fail "+e+" "+o.readyState+" "+o.status)},o.onerror=function(){throw new Error("[tyro-agent] xhrSend async error "+e+" "+o.readyState+" "+o.status)},e){case ResponseEvent.ById:r={id:n,result:t};break;case ResponseEvent.ScriptSource:r={method:ResponseEvent.ScriptSource,params:t};break;case ResponseEvent.Resumed:r={method:ResponseEvent.Resumed,params:t};break;case ResponseEvent.ConsoleAPICalled:r={method:ResponseEvent.ConsoleAPICalled,params:t};break;default:return}s?this.stickyMsgQueue.push(r):o.send(TyroUtil.safeJSONStringify(r))},StickyFinger.prototype.handleSticky=function(e){var t=e.id,n=e.method,s=e.params;switch(n){case RequestMethod.DiscardConsoleEntries:return this.stickyNotSendPaused=!0,this.originConsoleAPI.log("[tyro-agent] DiscardConsoleEntries success"),"true";case RequestMethod.CallFunctionOn:return this.stickyNotSendPaused=!0,this.originConsoleAPI.log("[tyro-agent] CallFunctionOn TODO sticky"),"true";case RequestMethod.CompileScript:return this.stickyNotSendPaused=!0,this.originConsoleAPI.log("[tyro-agent] CompileScript success, "+TyroUtil.safeJSONStringify(s)),"true";case RequestMethod.SetBreakpointsActive:return this.stickyNotSendPaused=!0,this.breakpointsActive=s.active,this.originConsoleAPI.log("[tyro-agent] SetBreakpointsActive success, breakpointsActive "+this.breakpointsActive),this.breakStepType=BreakStepType.NextSticky,"true";case RequestMethod.SetSkipAllPauses:return this.stickyNotSendPaused=!0,this.skipAllPauses=s.skip,this.originConsoleAPI.log("[tyro-agent] SetSkipAllPauses success, skipAllPauses "+this.skipAllPauses),this.breakStepType=BreakStepType.NextSticky,"true";case RequestMethod.Resume:return this.xhrSend(ResponseEvent.Resumed,{}),this.originConsoleAPI.log("[tyro-agent] Resume success"),"false";case RequestMethod.StepInto:return this.xhrSend(ResponseEvent.Resumed,{}),this.breakStepType=BreakStepType.NextSticky,this.originConsoleAPI.log("[tyro-agent] StepInto success"),"false";case RequestMethod.StepOver:return this.xhrSend(ResponseEvent.Resumed,{}),this.breakStepType=BreakStepType.StepOver,this.originConsoleAPI.log("[tyro-agent] StepOver success"),"false";case RequestMethod.StepOut:return this.xhrSend(ResponseEvent.Resumed,{}),this.breakStepType=BreakStepType.StepOut,this.originConsoleAPI.log("[tyro-agent] StepOut success"),"false";case RequestMethod.GetPossibleBreakpoints:return this.stickyNotSendPaused=!0,this.getPossibleBreakpoints(t,s,!0),this.breakStepType=BreakStepType.NextSticky,"true";case RequestMethod.SetBreakpointByUrl:return this.stickyNotSendPaused=!0,this.setBreakpointByUrl(t,s,!0),this.breakStepType=BreakStepType.NextSticky,"true";case RequestMethod.SetBreakpoint:return this.stickyNotSendPaused=!0,this.setBreakpoint(t,s,!0),this.breakStepType=BreakStepType.NextSticky,"true";case RequestMethod.RemoveBreakpoint:return this.stickyNotSendPaused=!0,this.removeBreakpoint(t,s),this.breakStepType=BreakStepType.NextSticky,"true";case RequestMethod.REPL:return this.stickyNotSendPaused=!0,this.breakStepType=BreakStepType.NextSticky,"(function(){(function(){"+s.statement+"})();return true})()";case RequestMethod.GetVariableValue:this.stickyNotSendPaused=!0;var i=e.params;return this.breakStepType=BreakStepType.NextSticky,"(function(){(function(){\n Agent.variableValue({"+i.map((function(e){return e+": (function(){try{return "+e+"}catch(e){return undefined}})()"})).join(",")+"})\n })();return true})()";case RequestMethod.SetPauseOnExceptions:return this.stickyNotSendPaused=!0,this.setPauseOnExceptions(t,s),this.breakStepType=BreakStepType.NextSticky,"true";case RequestMethod.SetAsyncCallStackDepth:return this.stickyNotSendPaused=!0,this.setAsyncCallStackDepth(t,s),this.breakStepType=BreakStepType.NextSticky,"true";case RequestMethod.EvaluateOnCallFrame:return this.stickyNotSendPaused=!0,this.evaluateOnCallFrameExpression=s.expression,this.breakStepType=BreakStepType.NextSticky,"(function(){\n var tyroRet,tyroErr;\n try{tyroRet=eval(Agent.getEvaluateOnCallFrameExpression())}\n catch(e){tyroErr=e}\n Agent.evaluateOnCallFrame("+t+",tyroRet,tyroErr,"+s.generatePreview+");\n return true;\n })()";case RequestMethod.GetProperties:return this.stickyNotSendPaused=!0,this.getProperties(t,s,!0),this.breakStepType=BreakStepType.NextSticky,"true";default:return this.breakStepType=BreakStepType.NextSticky,"true"}},StickyFinger.prototype.handleStickyAsync=function(e){var t=e.id,n=e.method,s=e.params;switch(this.originConsoleAPI.log("[tyro-agent] handleStickyAsync "+t+", "+n+", "+s),n){case RequestMethod.DiscardConsoleEntries:this.originConsoleAPI.log("[tyro-agent] DiscardConsoleEntries success");break;case RequestMethod.Evaluate:this.originConsoleAPI.log("[tyro-agent] Evaluate start, expression "+s.expression);var i=this.evaluate(this.globalExecutionContext,t,s);this.originConsoleAPI.log("[tyro-agent] Evaluate success, expression "+s.expression+", result "+TyroUtil.safeJSONStringify(i));break;case RequestMethod.CallFunctionOn:this.originConsoleAPI.log("[tyro-agent] CallFunctionOn TODO stickyAsync");break;case RequestMethod.CompileScript:this.originConsoleAPI.log("[tyro-agent] CompileScript success, params "+TyroUtil.safeJSONStringify(s));break;case RequestMethod.SetBreakpointsActive:this.breakpointsActive=s.active,this.originConsoleAPI.log("[tyro-agent] SetBreakpointsActive success, breakpointsActive "+this.breakpointsActive);break;case RequestMethod.SetSkipAllPauses:this.skipAllPauses=s.skip,this.originConsoleAPI.log("[tyro-agent] SetSkipAllPauses success, skipAllPauses "+this.skipAllPauses);break;case RequestMethod.Pause:this.breakStepType=BreakStepType.NextSticky,this.originConsoleAPI.log("[tyro-agent] Pause success");break;case RequestMethod.GetPossibleBreakpoints:this.getPossibleBreakpoints(t,s);break;case RequestMethod.SetBreakpointByUrl:this.setBreakpointByUrl(t,s);break;case RequestMethod.SetBreakpoint:this.setBreakpoint(t,s);break;case RequestMethod.RemoveBreakpoint:this.removeBreakpoint(t,s);break;case RequestMethod.SetPauseOnExceptions:this.setPauseOnExceptions(t,s);break;case RequestMethod.SetAsyncCallStackDepth:this.setAsyncCallStackDepth(t,s);break;case RequestMethod.GetProperties:this.getProperties(t,s)}},StickyFinger.prototype.objectToRemoteObject=function(e,t,n){var s={};if(isError(e)&&(t=e),t)return error2RemoteObject(t);switch(s.type=typeof e,s.type){case"undefined":break;case"object":if(null===e){s.subtype="null",s.value=null;break}if(void 0!==e.constructor&&(s.className=e.constructor.name),void 0!==e.toString)try{s.description=e.toString()}catch(e){s.description="[object Object]"}else s.description="[object Object]";if(this.generateObjectId+=1,s.objectId=String(this.generateObjectId),this.objectMap[String(this.generateObjectId)]=e,n)for(var i in s.preview={type:"object",description:"Object",overflow:!1,properties:[]},e){var r=typeof e[i];s.preview.properties.push({name:i,type:r,value:"object"===r?"Object":"function"===r?"":e[i]})}break;case"function":s.description=e.toString(),s.className="Function";break;default:s.value=e,s.description=e.toString()}return s},StickyFinger.prototype.evaluateOnCallFrame=function(e,t,n,s){var i=this.objectToRemoteObject(t,n,s);return this.xhrSend(ResponseEvent.ById,{result:i},e,!0),i},StickyFinger.prototype.evaluate=function(executionContext,id,params){var returnValue,error;try{returnValue=function(expression){return"function"==typeof eval?eval(expression):Agent.evalReference(expression)}.call(executionContext,params.expression)}catch(e){error=e}var result=this.objectToRemoteObject(returnValue,error,params.generatePreview);return this.xhrSend(ResponseEvent.ById,{result:result},id),result},StickyFinger.prototype.getPossibleBreakpoints=function(e,t,n){var s=t.scriptId,i=t.startLine,r=t.endLine===t.startLine?t.endLine+1:t.endLine,o={locations:[]};if(this.contextMap[s])for(var a=this.contextMap[s].stickyLine,c=i;c<r;c++)a.includes(c)&&o.locations.push({scriptId:s,lineNumber:c,columnNumber:0});else this.originConsoleAPI.warn("[tyro-agent] getPossibleBreakpoints no scriptId "+s+" in contextMap");this.originConsoleAPI.log("[tyro-agent] getPossibleBreakpoints success, result: "+TyroUtil.safeJSONStringify(o)),this.xhrSend(ResponseEvent.ById,o,e,n)},StickyFinger.prototype.setBreakpointByUrl=function(e,t,n){var s=t.scriptId,i=t.url,r=t.lineNumber;if(this.contextMap[s])if(this.contextMap[s].stickyLine.includes(r)){var o=s+":"+r+":0:"+i,a={breakpointId:o,locations:[{scriptId:s,lineNumber:r,columnNumber:0}]};this.breakpointMap[s][r]=o,this.breakpointIdMap[o]={contextId:s,line:r},this.originConsoleAPI.log("[tyro-agent] setBreakpointByUrl success, scriptId: "+s+", url: "+i+", lineNumber: "+r),this.xhrSend(ResponseEvent.ById,a,e,n)}else this.originConsoleAPI.warn("[tyro-agent] setBreakpointByUrl not sticky line, scriptId: "+s+", url: "+i+", lineNumber: "+r);else this.originConsoleAPI.warn("[tyro-agent] setBreakpointByUrl no contextMap, scriptId: "+s)},StickyFinger.prototype.setBreakpoint=function(e,t,n){var s=t.scriptId,i=t.lineNumber;if(this.contextMap[s])if(this.contextMap[s].stickyLine.includes(i)){var r=s+":"+i+":0",o={breakpointId:r,actualLocation:{scriptId:s,lineNumber:i,columnNumber:0}};this.breakpointMap[s][i]=r,this.breakpointIdMap[r]={contextId:s,line:i},this.originConsoleAPI.log("[tyro-agent] setBreakpoint success, scriptId: "+s+", lineNumber: "+i),this.xhrSend(ResponseEvent.ById,o,e,n)}else this.originConsoleAPI.warn("[tyro-agent] setBreakpoint not sticky line, scriptId: "+s+", lineNumber: "+i);else this.originConsoleAPI.warn("[tyro-agent] setBreakpoint no contextMap, scriptId: "+s)},StickyFinger.prototype.removeBreakpoint=function(e,t){var n=t.breakpointId,s=this.breakpointIdMap[n];s||this.originConsoleAPI.warn("[tyro-agent] removeBreakpoint no breakpointId "+n);var i=s.contextId,r=s.line;delete this.breakpointMap[i][r],this.originConsoleAPI.log("[tyro-agent] removeBreakpoint success, breakpointId: "+n+", scriptId: "+i+", line: "+r)},StickyFinger.prototype.setPauseOnExceptions=function(e,t){t&&["none","uncaught","all"].includes(t.state)?(this.pauseOnExceptions=t.state,this.originConsoleAPI.log("[tyro-agent] setPauseOnExceptions success, pauseOnExceptions state "+this.pauseOnExceptions)):this.originConsoleAPI.warn("[tyro-agent] setPauseOnExceptions state invalid: "+TyroUtil.safeJSONStringify(t))},StickyFinger.prototype.setAsyncCallStackDepth=function(e,t){!t||"number"!=typeof t.maxDepth||t.maxDepth<0?this.originConsoleAPI.warn("[tyro-agent] setAsyncCallStackDepth maxDepth invalid: "+TyroUtil.safeJSONStringify(t)):(this.asyncCallStackDepth=t.maxDepth,this.originConsoleAPI.log("[tyro-agent] setAsyncCallStackDepth success, maxDepth "+this.asyncCallStackDepth))},StickyFinger.prototype.getProperties=function(e,t,n){var s=t.objectId,i=this.objectMap[s],r=[];for(var o in i)r.push({name:o,value:this.objectToRemoteObject(i[o])});this.xhrSend(ResponseEvent.ById,{result:r},e,n)},StickyFinger.prototype.generateFingerId=function(){return this.fingerId+=1,this.fingerId},StickyFinger}(),Agent=function(){function e(t,n){if(e.singleton)return e.singleton;this.host="https://"+getServerConfig().domain,this.stickyFinger=new StickyFinger("undefined"!=typeof window?window:self,this.host,t,n)}return e.getShadowMethod=function(){this.globalReference=self,"function"==typeof eval?this.evalReference=eval:"function"==typeof __eval&&(this.evalReference=__eval)},e.setShadowMethod=function(){this.globalReference.eval=this.evalReference},e.setInstrumentId=function(e){this.instrumentId=e},e.register=function(t,n){if(!e.singleton){if(!this.instrumentId&&"undefined"!=typeof my)try{this.instrumentId=getStartupParams().tyroId}catch(e){}e.instance(this.instrumentId,t)}e.singleton.stickyFinger.register(t,n)},e.sticky=function(t,n,s){return e.singleton.stickyFinger.sticky(t,n,s)},e.getEvaluateOnCallFrameExpression=function(){return e.singleton.stickyFinger.evaluateOnCallFrameExpression},e.evaluateOnCallFrame=function(t,n,s,i){return e.singleton.stickyFinger.evaluateOnCallFrame(t,n,s,i)},e.getScopeVariables=function(){return e.singleton.stickyFinger.scopeVariables},e.inflateStickyParamsObject=function(t){return e.singleton.stickyFinger.inflateStickyParamsObject(t)},e.entry=function(t,n){return e.singleton.stickyFinger.fingerEntry(t,n)},e.exit=function(t,n,s){e.singleton.stickyFinger.fingerExit(t,n,s)},e.instance=function(t,n){e.singleton=new e(t,n)},e.isPhone=!0,e.instrumentId=null,e}();Agent.getShadowMethod();var globalReference="undefined"!=typeof window?window:self;globalReference.Agent||(globalReference.StickyFinger=StickyFinger,globalReference.Agent=Agent)}();
!function(){"use strict";var e,t,n,o,r,a,i,c,s,p;!function(e){e.PageResume="pageResume",e.PagePause="pagePause",e.DebugPanelClick="tinyRemoteDebugPanelButtonClick",e.DebugConsole="onTinyDebugConsole",e.DebugNetworkRequest="tinyAppRemoteDebug_network_request",e.DebugNetworkResponse="tinyAppRemoteDebug_network_response",e.DebugNetworkError="tinyAppRemoteDebug_network_error",e.DebugStorageChanged="tinyAppRemoteDebug_storage",e.MessageFromVConsole="onMessageFromVConsole"}(e||(e={})),function(e){e.GetPagesData="Tiny.Data.getPageData",e.SetPageData="Tiny.Data.setPageData"}(t||(t={})),function(e){e.DataChanged="Tiny.Data.dataChanged"}(n||(n={})),function(e){e.GetStorageInfo="Tiny.Storage.getStorageInfo",e.ClearStorage="Tiny.Storage.clearStorage",e.RemoveStorage="Tiny.Storage.removeStorage",e.SetStorage="Tiny.Storage.setStorage"}(o||(o={})),function(e){e.StorageChanged="Tiny.Storage.storageChanged"}(r||(r={})),function(e){e.Enable="MiniAppLog.enable"}(a||(a={})),function(e){e.ApiSyncCall="MiniAppLog.onApiSyncCall",e.ApiSyncCallback="MiniAppLog.onApiSyncCallback",e.ApiCall="MiniAppLog.onApiCall",e.ApiCallback="MiniAppLog.onApiCallback",e.SetData="MiniAppLog.onSetData",e.SetDataCallback="MiniAppLog.onSetDataCallback",e.ShareAppMessage="MiniAppLog.onShareAppMessage"}(i||(i={})),function(e){e.consoleAPICalled="Runtime.consoleAPICalled",e.executionContextDestroyed="Runtime.executionContextDestroyed",e.executionContextsCleared="Runtime.executionContextsCleared",e.executionContextCreated="Runtime.executionContextCreated"}(c||(c={})),function(e){e.RequestWillBeSent="Network.requestWillBeSent",e.ResponseReceived="Network.responseReceived",e.LoadingFinished="Network.loadingFinished",e.LoadingFailed="Networkw.loadingFailed",e.GetResponseBody="Network.getResponseBody"}(s||(s={})),function(e){e.Data="data",e.Storage="storage",e.AppLog="applog"}(p||(p={}));var u=Date.now()%1e9;function l(e){this.name="__st"+(1e9*Math.random()>>>0)+u+++"__",e&&e.forEach&&e.forEach(this.add,this)}var g=l.prototype;g.add=function(e){var t=this.name;return e[t]||Object.defineProperty(e,t,{value:!0,writable:!0}),this},g.delete=function(e){return!!e[this.name]&&(e[this.name]=void 0,!0)},g.has=function(e){return!!e[this.name]};var f=l,d=self;var h="[DEBUG]";function _(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];console.error.apply(console,[h].concat(e))}var y=function(){},m=d.importScripts,b=!1,k=[];function S(){return d.__appxStartupParams&&d.__appxStartupParams.appId?d.__appxStartupParams:d.AFAppX&&d.AFAppX.bridge&&d.AFAppX.bridge.callSync&&d.AFAppX.bridge.callSync("getStartupParams")||{}}var O=function(){var e="undefined"==typeof WeakSet?new f:new WeakSet;return function(t,n){if("object"==typeof n&&null!==n)try{if(e.has(n))return;e.add(n)}catch(e){console.error(e)}return n}};function A(e){return JSON.stringify(e,O())}var v,L=1;function P(){var e="undefined"!=typeof WeakSet;v=e?WeakSet:function(){function e(){this.elementKey="__weak_set_key__yek_tes_kaew__"+L++}return e.prototype.has=function(e){return 1===e[this.elementKey]},e.prototype.add=function(e){return e[this.elementKey]=1,this},e.prototype.delete=function(e){e[this.elementKey]=null},e}()}var C=function(e,t){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function w(e,t){function n(){this.constructor=e}C(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var D=function(){return(D=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},E=function(){function e(e,t){var n=this;this.interceptors=e,this.callback=t,this.nextRequestId=1e5,this.notifyDataChange=function(e,t,n,o,r){var a,i,c=null,s=0;r||(r={});var p=function(){s=!1===r.leading?0:Date.now(),c=null,i=e.apply(null,a),a=null};return function(){for(var u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];var g=Date.now();s||!1!==r.leading||(s=g);var f=t-(g-s);return a=u,f<=0||f>t?(o(c),c=null,s=g,i=e.apply(null,a),a=null):c||!1===r.trailing||(c=n(p,f)),i}}((function(){n.callback({ext:{origin:"data"},method:"Tiny.Data.dataChanged"})}),300,setTimeout,clearTimeout)}return e.prototype.getNextRequestId=function(){return++this.nextRequestId},e}(),x=function(){var e=(v||P(),new v);return function(t,n){if("object"==typeof n&&null!==n){if(e.has(n))return;e.add(n)}return n}};function I(e){return JSON.stringify(e,x())}var T=0;var R="object"==typeof performance&&performance&&"function"==typeof performance.now?function(){return 1e3*performance.now()+T}:function(){return 1e3*Date.now()};function N(e){e.interceptors.appLifecycleManagerInterceptor.before("performLifeHook",(function(t,n){var o={aTime:R()/1e3,args:n,context:I(M(t))};!function(e,t){try{var n={ext:{origin:"applog"},method:"MiniAppLog."+t.args[0],params:t};e.callback(n)}catch(e){}}(e,o)})),e.interceptors.pageLifecycleManagerInterceptor.before("performLifeHook",(function(t,n){var o={aTime:R()/1e3,args:n,context:I(j(t))};!function(e,t){try{var n=function(e){var t;switch(e){case 0:t="onPageLoad";break;case 2:t="onPageReady";break;case 1:t="onPageShow";break;case 3:t="onPageHide";break;case 4:t="onPageUnload"}return t}(t.args[0]);if(!n)return;var o={ext:{origin:"applog"},method:"MiniAppLog."+n,params:t};e.callback(o),"onPageShow"===n&&e.notifyDataChange()}catch(e){}}(e,o)}))}function M(e){var t=e.app;return{app:{appInstanceId:t.appInstanceId,initTime:t.initTime,launchOptions:t.getLaunchOptions(),launchTime:t.launchTime},state:e.state}}function j(e){var t=e.page;return{page:{initTime:t.initTime,loadTime:t.loadTime,pageId:t.pageId,pagePath:t.pagePath,plugin:t.plugin},state:e.state}}function B(e){e.interceptors.bridgeSyncCallContextMethodInterceptor.all("invoke",(function(t,n){var o=e.getNextRequestId(),r=R()/1e3;return function(e,t){try{var n={ext:{origin:"applog"},method:"MiniAppLog.onApiSyncCall",params:X(t)};e.callback(n)}catch(e){}}(e,{context:t,args:n,reqId:o,aTime:r}),[[o,r],n]}),(function(t,n,o,r){var a=n[0],i=a[0],c=a[1],s=n[1],p=R()/1e3;!function(e,t){try{var n={ext:{origin:"applog"},method:"MiniAppLog.onApiSyncCallback",params:X(t)};e.callback(n)}catch(e){}}(e,{context:t,args:s,reqId:i,result:o,bTime:p,aTime:c})})),e.interceptors.bridgeAsyncCallContextMethodInterceptor.before("invoke",(function(t,n){var o=e.getNextRequestId(),r=R()/1e3;return t.__reqId=o,function(e,t){try{var n={ext:{origin:"applog"},method:"MiniAppLog.onApiCall",params:X(t)};e.callback(n)}catch(e){}}(e,{context:t,args:n,reqId:o,aTime:r}),"rpc"===t.apiName&&(t.option.getResponse||(t.$$rpcGetResponseToTrue=!0,t.option=D(D({},t.option),{getResponse:!0}))),n})),e.interceptors.bridgeAsyncCallContextMethodInterceptor.before("dispatchResultCallback",(function(t,n){var o=t.__reqId,r=R()/1e3;return function(e,t){try{var n={ext:{origin:"applog"},method:"MiniAppLog.onApiCallback",params:X(t)};e.callback(n)}catch(e){}}(e,{context:t,args:n,reqId:o,bTime:r}),"rpc"===t.apiName&&t.$$rpcGetResponseToTrue?[n[0].resData]:n}))}function X(e){if(e.context){var t=e.context,n=t.apiName,o=t.extraInfo,r=t.isMiniExtension,a=t.option,i=t.startTime,c=t.taskId,s=t.__reqId;return D(D({},e),{context:{__reqId:s,apiName:n,extraInfo:o,isMiniExtension:r,option:a,startTime:i,taskId:c}})}return e}var q=console.error;function F(e){e.interceptors.appBaseInstanceInterceptor.after("reportError",(function(e,t){t[0];!function(e){var t=new Error(e.formatted.message);t.stack=e.formatted.stack,setTimeout(q.bind(console,t),0)}({code:t[1],formatted:t[2]})}))}function G(e,t){try{e.notifyDataChange();var n={ext:{origin:"applog"},method:"MiniAppLog.onSetData",params:K(t)};e.callback(n)}catch(e){}}function H(e,t){try{var n={ext:{origin:"applog"},method:"MiniAppLog.onSetDataCallback",params:t};e.callback(n)}catch(e){}}function K(e){return e.context?e:{componentIs:e.component?e.component.is:void 0,isPage:e.isPage,option:e.options,pagePath:e.isPage?e.page.route:e.component.$page.route}}function W(e){var t=e.page;return{page:{appInstanceId:t.appInstanceId,initTime:t.initTime,loadTime:t.loadTime},pageId:e.pageId,pagePath:e.pagePath}}function V(e){var t=e.page;return{componentPath:e.componentPath,page:{appInstanceId:t.appInstanceId,initTime:t.initTime,loadTime:t.loadTime},pageId:t.pageId,pagePath:t.pagePath}}function U(e,t,n){T=1e3*Date.now()-R();var o=new E(t,n);!function(e){e.interceptors.pageFlexibleLogicInstanceMethodInterceptor.all("setData",(function(t,n){var o=e.getNextRequestId(),r=R()/1e3,a={aTime:r,args:n,context:I(W(t)),reqId:o};return G(e,a),[[o,r],n]}),(function(t,n,o,r){var a=n[0],i=a[0],c=a[1],s=n[1],p=R()/1e3;H(e,{aTime:c,args:s,bTime:p,context:I(W(t)),reqId:i})})),e.interceptors.componentFlexibleLogicInstanceMethodInterceptor.all("setData",(function(t,n){var o=e.getNextRequestId(),r=R()/1e3;return G(e,{aTime:r,args:n,context:I(V(t)),reqId:o}),[[o,r],n]}),(function(t,n,o,r){var a=n[0],i=a[0],c=a[1],s=n[1],p=R()/1e3;H(e,{aTime:c,args:s,bTime:p,context:I(V(t)),reqId:i})}))}(o),N(o),B(o),F(o)}var $,z=function(){this.channelConfigKey="0",this.silentMode=!1,this.userAgent="undefined"!=typeof navigator?navigator.swuserAgent||navigator.userAgent:"",this.isIOS=/iPhone|iPad|iOS/i.test(this.userAgent),this.isLyra=/LyraVM/i.test(this.userAgent),this.startupParams=S(),this.channelId=this.startupParams.channelId,"string"==typeof __BUGME_EXTERNAL_CHANNEL__&&__BUGME_EXTERNAL_CHANNEL__&&(this.channelId=__BUGME_EXTERNAL_CHANNEL__,this.silentMode=!0),this.isLyra&&(this.silentMode=!0),this.startupParams.remoteCh&&(this.channelConfigKey=String(this.startupParams.remoteCh))},Q=function(){function e(){this.records=new Map}return e.prototype.setRequest=function(e,t){this.records.set(e,D(D({},this.records.get(e)||{}),t))},e.prototype.getRequest=function(e){return this.records.get(e)},e.prototype.removeRequest=function(e){this.records.has(e)&&this.records.delete(e)},e}(),J=function(){function e(e){void 0===e&&(e=[]),this._messageQueue=e,this._queueSize=0,this.isApplogEnabled=!1}return e.prototype.push=function(e){this._queueSize;var t=function(e){var t="string"==typeof e?e:JSON.stringify(e);return t.length>5e6?void y("abort send websocket message due to size:",t.length):t}(e);null!=t&&(this._messageQueue.push(t),this._queueSize+=t.length)},e.prototype.sendQueuedMessages=function(){if(0!==this._messageQueue.length){var e=Z().getWorkerSocket();e&&(this._messageQueue.forEach((function(t){return e.send(t)})),this._messageQueue=[],this._queueSize=0)}},e.prototype.setApplogEnabled=function(e){this.isApplogEnabled=e},e}(),Y=function(){function e(){}return e.prototype.getAgentContext=function(){return this.agentContext||(this.agentContext=new z),this.agentContext},e.prototype.setWorkerSocket=function(e){this.workerSocket=e},e.prototype.getWorkerSocket=function(){return this.workerSocket},e.prototype.getNetworkRecorder=function(){return this.networkRecorder||(this.networkRecorder=new Q),this.networkRecorder},e.prototype.getMessageQueue=function(){return null==this.messageQueue&&(this.messageQueue=new J),this.messageQueue},e.prototype.setRuntime=function(e){this.runtime=e},e.prototype.getRuntime=function(){return this.runtime},e}();function Z(){return $||($=new Y),$}function ee(e){try{var t=Z().getWorkerSocket(),n=Z().getMessageQueue();t&&n.isApplogEnabled?t.send(A(e)):n.push(A(e))}catch(e){}}var te={0:{openchannel:"openchannel.alipay.com",hpmweb:"hpmweb.alipay.com"},1:{openchannel:"miniprogram.alipay.com",hpmweb:"hpmweb.alipay.com"},2:{openchannel:"openchannel-pre.alipay.com",hpmweb:"hpmweb-pre.alipay.com"}};var ne,oe=function(){function e(e){this.url="",this.opened=!1,e&&(this.url=e),this.onSocketError=this.onSocketError.bind(this),this.onSocketClose=this.onSocketClose.bind(this),this.onSocketMessage=this.onSocketMessage.bind(this),this.onSocketOpen=this.onSocketOpen.bind(this)}return Object.defineProperty(e.prototype,"isSocketOpened",{get:function(){return this.opened},enumerable:!1,configurable:!0}),e.prototype.setUrl=function(e){this.url=e},e}();"undefined"!=typeof WebSocket&&WebSocket.OPEN&&(ne=WebSocket);var re=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.messageBeforeSocketOpen=[],t}return w(t,e),t.prototype.open=function(){var e=this;if(!this.url)throw new Error("WebSocket url required");this.socket=new ne(this.url),this.socket.onopen=this.onSocketOpen,this.socket.onmessage=function(t){"string"==typeof t.data?e.onSocketMessage(t.data):console.warn("[DEBUG] invalid message",t.data)},this.socket.onclose=this.onSocketClose,this.socket.onerror=this.onSocketError},t.prototype.close=function(){this.socket&&this.socket.close()},t.prototype.sendSocketMessage=function(e){var t="string"==typeof e?e:JSON.stringify(e);t.length>5e6||(this.opened?this.socket.send(t):this.messageBeforeSocketOpen.push(t))},t.prototype.onSocketMessage=function(e){},t.prototype.onSocketOpen=function(){var e=this;this.opened=!0,this.messageBeforeSocketOpen.length&&(this.messageBeforeSocketOpen.forEach((function(t){e.sendSocketMessage(t)})),this.messageBeforeSocketOpen=[])},t.prototype.onSocketClose=function(){this.opened=!1,console.log("[DEBUG] connection closed")},t.prototype.onSocketError=function(e){console.error("[DEBUG] connection onerror",e)},t}(oe),ae=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.messageBeforeSocketOpen=[],t}return w(t,e),t.prototype.open=function(){var e=this;this.socketTask=AFAppX.bridge.connectSocket({__fromRemoteDebug:!0,url:this.url,multiple:!0,fail:function(t){e.onSocketError(t)}}),this.socketTask.onOpen((function(){e.handleSocketOpen()})),this.socketTask.onError((function(t){e.onSocketError(t.data)})),this.socketTask.onClose((function(){e.opened=!1,e.onSocketClose()})),this.socketTask.onMessage((function(t){e.opened||e.handleSocketOpen(),e.onSocketMessage(t.data.data)}))},t.prototype.sendSocketMessage=function(e){var t="string"==typeof e?e:JSON.stringify(e);t.length>5e6||(this.opened?this.socketTask.send({__fromRemoteDebug:!0,data:t,isBuffer:!1}):this.messageBeforeSocketOpen.push(t))},t.prototype.close=function(){this.opened&&this.socketTask.close({__fromRemoteDebug:!0})},t.prototype.onSocketMessage=function(e){},t.prototype.onSocketOpen=function(){},t.prototype.onSocketError=function(e){},t.prototype.onSocketClose=function(){},t.prototype.handleSocketOpen=function(){var e=this;this.opened||(this.opened=!0,this.messageBeforeSocketOpen.length&&(this.messageBeforeSocketOpen.forEach((function(t){e.sendSocketMessage(t)})),this.messageBeforeSocketOpen=[]),this.onSocketOpen())},t}(oe),ie=function(e,t,n,o,r){var a,i,c=null,s=0;r||(r={});var p=function(){s=!1===r.leading?0:Date.now(),c=null,i=e.apply(null,a),a=null};return function(){for(var u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];var g=Date.now();s||!1!==r.leading||(s=g);var f=t-(g-s);return a=u,f<=0||f>t?(o(c),c=null,s=g,i=e.apply(null,a),a=null):c||!1===r.trailing||(c=n(p,f)),i}}((function(){var e=Z().getWorkerSocket();e&&e.send({method:n.DataChanged,ext:{origin:p.Data}})}),300,setTimeout,clearTimeout,{leading:!1});function ce(e){if(d.__APPX_DEVTOOLS_GLOBAL_HOOK__&&d.__APPX_DEVTOOLS_GLOBAL_HOOK__[e]&&"function"==typeof d.__APPX_DEVTOOLS_GLOBAL_HOOK__[e])return d.__APPX_DEVTOOLS_GLOBAL_HOOK__[e]}function se(){null==d.__APPX_DEVTOOLS_GLOBAL_HOOK__&&(d.__APPX_DEVTOOLS_GLOBAL_HOOK__={});var e={onSetData:ce("onSetData"),onSetDataCallback:ce("onSetDataCallback"),onApiSyncCall:ce("onApiSyncCall"),onApiSyncCallback:ce("onApiSyncCallback"),onApiCall:ce("onApiCall"),onApiCallback:ce("onApiCallback"),onError:ce("onError")};d.__APPX_DEVTOOLS_GLOBAL_HOOK__.onSetData=function(t){try{if(e.onSetData)try{e.onSetData.call(d.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){y(e)}ie(),pe({method:i.SetData,params:le(t),ext:{origin:p.AppLog}})}catch(e){}},d.__APPX_DEVTOOLS_GLOBAL_HOOK__.onSetDataCallback=function(t){try{if(e.onSetDataCallback)try{e.onSetDataCallback.call(d.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){y(e)}pe({method:i.SetDataCallback,params:t,ext:{origin:p.AppLog}})}catch(e){}},d.__APPX_DEVTOOLS_GLOBAL_HOOK__.onApiSyncCall=function(t){try{if(e.onApiSyncCall)try{e.onApiSyncCall.call(d.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){y(e)}pe({method:i.ApiSyncCall,params:ue(t),ext:{origin:p.AppLog}})}catch(e){}},d.__APPX_DEVTOOLS_GLOBAL_HOOK__.onApiSyncCallback=function(t){try{if(e.onApiSyncCallback)try{e.onApiSyncCallback.call(d.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){y(e)}pe({method:i.ApiSyncCallback,params:ue(t),ext:{origin:p.AppLog}})}catch(e){}},d.__APPX_DEVTOOLS_GLOBAL_HOOK__.onApiCall=function(t){try{if(e.onApiCall)try{e.onApiCall.call(d.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){y(e)}pe({method:i.ApiCall,params:ue(t),ext:{origin:p.AppLog}})}catch(e){}},d.__APPX_DEVTOOLS_GLOBAL_HOOK__.onApiCallback=function(t){try{if(e.onApiCallback)try{e.onApiCallback.call(d.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){y(e)}pe({method:i.ApiCallback,params:ue(t),ext:{origin:p.AppLog}})}catch(e){}},d.__APPX_DEVTOOLS_GLOBAL_HOOK__.onError=function(t){try{if(e.onError)try{e.onError.call(d.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){}!function(e){var t=new Error(e.formatted.message);t.stack=e.formatted.stack,setTimeout(console.error.bind(console,t))}(t)}catch(e){}},function(e,t){for(var n=["onPageLoad","onPageShow","onPageHide","onPageReady","onPageUnload","onPageUpdate"],o=0,r=n;o<r.length;o++){t[s=r[o]]=ce(s)}for(var a=function(n){e[n]=function(e){try{if(t[n])try{t[n].call(d.__APPX_DEVTOOLS_GLOBAL_HOOK__,e)}catch(e){y(e)}var o=e.context?e:D({route:e.page.route},e);pe({method:"MiniAppLog."+n,params:ge(o),ext:{origin:p.AppLog}}),"onPageShow"===n&&ie()}catch(e){}}},i=0,c=n;i<c.length;i++){var s;a(s=c[i])}}(d.__APPX_DEVTOOLS_GLOBAL_HOOK__,e),function(e,t){t.onPageLifecycle=ce("onPageLifecycle"),e.onPageLifecycle=function(e){try{if(t.onPageLifecycle)try{t.onPageLifecycle.call(d.__APPX_DEVTOOLS_GLOBAL_HOOK__,e)}catch(e){y(e)}var n=function(e){var t;switch(e){case 0:t="onPageLoad";break;case 2:t="onPageReady";break;case 1:t="onPageShow";break;case 3:t="onPageHide";break;case 4:t="onPageUnload"}return t}(e.args[0]);if(!n)return;pe({method:"MiniAppLog."+n,params:e,ext:{origin:p.AppLog}}),"onPageShow"===n&&ie()}catch(e){}}}(d.__APPX_DEVTOOLS_GLOBAL_HOOK__,e),function(e,t){for(var n=["onAppLaunch","onAppShow","onAppHide","onAppError","onAppUnhandledRejection"],o=0,r=n;o<r.length;o++){t[s=r[o]]=ce(s)}for(var a=function(n){e[n]=function(e){try{if(t[n])try{t[n].call(d.__APPX_DEVTOOLS_GLOBAL_HOOK__,e)}catch(e){y(e)}pe({method:"MiniAppLog."+n,params:e,ext:{origin:p.AppLog}})}catch(e){}}},i=0,c=n;i<c.length;i++){var s;a(s=c[i])}}(d.__APPX_DEVTOOLS_GLOBAL_HOOK__,e),function(e,t){t.onAppLifecycle=ce("onAppLifecycle"),e.onAppLifecycle=function(e){try{if(t.onAppLifecycle)try{t.onAppLifecycle.call(d.__APPX_DEVTOOLS_GLOBAL_HOOK__,e)}catch(e){y(e)}pe({method:"MiniAppLog."+e.args[0],params:e,ext:{origin:p.AppLog}})}catch(e){}}}(d.__APPX_DEVTOOLS_GLOBAL_HOOK__,e)}function pe(e){try{var t=Z().getWorkerSocket(),n=Z().getMessageQueue();t&&n.isApplogEnabled?t.send(A(e)):n.push(A(e))}catch(e){}}function ue(e){if(e.context){var t=e.context;return D(D({},e),{context:fe(t,["apiName","extraInfo","isMiniExtension","option","startTime","taskId","__reqId"])})}return e}function le(e){return e.context?e:{pagePath:e.isPage?e.page.route:e.component.$page.route,isPage:e.isPage,option:e.options,componentIs:e.component?e.component.is:void 0}}function ge(e){return D(D({},e),{page:fe(e.page,["$id","$page","$viewId","data"])})}function fe(e,t){var n={};return t.forEach((function(t){n[t]=e[t]})),n}function de(){null==d.__APPX_DEVTOOLS_GLOBAL_HOOK__&&(d.__APPX_DEVTOOLS_GLOBAL_HOOK__={}),se();var e=function(e){if(d.__APPX_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof d.__APPX_DEVTOOLS_GLOBAL_HOOK__[e])return d.__APPX_DEVTOOLS_GLOBAL_HOOK__[e]}("setup");d.__APPX_DEVTOOLS_GLOBAL_HOOK__.setup=function(t,n){if(e&&"function"==typeof e)try{e(t,n)}catch(e){}Z().setRuntime(t),U(0,n,(function(e){"string"==typeof e.method&&e.method.includes("MiniAppLog")?ee(e):Z().getWorkerSocket().send(e)}))}}function he(e){return Object.getOwnPropertyDescriptors?Object.getOwnPropertyDescriptors(e):Object.getOwnPropertyNames(e).reduce((function(t,n){return t[n]=Object.getOwnPropertyDescriptor(e,n),t}),Object.create(null))}var _e,ye=function(){function e(e){this.objectStore=e}return e.prototype.mapFrom=function(e){var t=this;return Array.from(e).map((function(e){return t.mapFromOne(e)}))},e.prototype.mapFromOne=function(e){switch(typeof e){case"string":return this.mapString(e);case"number":return this.mapNumber(e);case"object":return Array.isArray(e)?this.mapArray(e):null===e?this.mapNull():this.mapObject(e);case"function":return this.mapFunction(e);case"undefined":return this.mapUndef();case"boolean":return this.mapBoolean(e);default:return{type:typeof e,value:e}}},e.prototype.mapString=function(e){return{type:"string",value:e}},e.prototype.mapNumber=function(e){return{type:"number",value:e,description:String(e)}},e.prototype.mapBoolean=function(e){return{type:"boolean",value:e}},e.prototype.mapFunction=function(e){var t=this.objectStore.save(e);return{type:"function",className:"Function",description:e.toString(),objectId:t}},e.prototype.mapUndef=function(){return{type:"undefined"}},e.prototype.mapNull=function(){return{type:"object",subtype:"null",value:null}},e.prototype.mapObject=function(e){var t,n,o=this,r=he(e),a=Object.keys(r),i=this.objectStore.save(e),c=e.constructor?e.constructor.name:"Object",s={type:"object",className:c,description:c,objectId:i,preview:{type:"object",description:c,overflow:a.length>5,properties:a.slice(0,5).map((function(e){return o.mapObjectProperty(e,r[e])})).filter(Boolean)}};return e instanceof Error?(t="error",n=e.stack):e instanceof Date?(t="date",n=e.toString()):e instanceof RegExp?(t="regexp",n=e.toString()):e instanceof Promise&&(t="promise",n="Promise"),t&&(s.subtype=t,s.preview&&(s.preview.subtype=t)),n&&(s.description=n,s.preview&&(s.preview.description=n)),s},e.prototype.mapArray=function(e){var t="Array("+e.length+")";return{type:"object",subtype:"array",className:"Array",description:t,objectId:this.objectStore.save(e),preview:{type:"object",subtype:"array",description:t,overflow:!1,properties:this.mapArrayProperties(e)}}},e.prototype.mapArrayProperties=function(e){return e.map((function(e,t){if("function"==typeof e)return{name:String(t),type:"function",value:""};var n={name:String(t),type:typeof e,value:"object"==typeof e&&e?e.constructor&&e.constructor.name||"Object":String(e)};return null===e?n.subtype="null":Array.isArray(e)&&(n.subtype="array"),n}))},e.prototype.mapObjectProperty=function(e,t){if(t.get)return{name:e,type:"accessor"};if(!t.set){var n=t.value;switch(typeof n){case"object":return Array.isArray(n)?{name:e,type:"object",subtype:"array",value:"Array("+n.length+")"}:null===n?{name:e,type:"object",subtype:"null",value:"null"}:{name:e,type:"object",value:n.constructor?n.constructor.name:"Object"};case"function":return{type:"function",value:"",name:e};default:return{name:e,type:typeof n,value:String(n)}}}},e}(),me=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return w(t,e),t.prototype.mapFrom=function(e){var t=this;return e.split("\n").slice(2).map((function(e,n){return t.testType1(e)?t.extractType1(e):t.testType2(e)?t.extractType2(e):void 0})).filter((function(e){return null!=e}))},t}(function(){function e(){this.e1=/\s*at\s(\S+)\s(\S+)\:(\d+)\:(\d+)\)/,this.e2=/\s*at\s(\S+)\:(\d+)\:(\d+)/}return e.prototype.testType1=function(e){return this.e1.test(e)},e.prototype.testType2=function(e){return this.e2.test(e)},e.prototype.extractType1=function(e){var t=e.match(this.e1);return null==t?null:{functionName:t[1],url:t[2].slice(1),lineNumber:Number(t[3]),columnNumber:Number(t[4])}},e.prototype.extractType2=function(e){var t=e.match(this.e2);return null==t?null:{functionName:"",url:t[1].slice(1),lineNumber:Number(t[2]),columnNumber:Number(t[3])}},e}()),be=function(){function e(){this.id=0,this.id2Object=new Map,this.object2Id=new Map}return e.prototype.save=function(e){if(this.object2Id.has(e))return this.object2Id.get(e);var t=this.getNextObjectId();return this.id2Object.set(t,e),this.object2Id.set(e,t),t},e.prototype.query=function(e){return this.id2Object.get(e)},e.prototype.clear=function(e){var t=this.id2Object.get(e);t&&(this.id2Object.delete(e),this.object2Id.delete(t))},e.prototype.clearAll=function(){this.id2Object.clear(),this.object2Id.clear()},e.prototype.getNextObjectId=function(){return this.id++,'{"injectedScriptId":1,"id":'+this.id+"}"},e}(),ke=function(){function e(e,t){this.objectStore=e,this.objectMapper=t}return e.prototype.handle=function(e){var t=this.objectStore.query(e.objectId);return t?{result:this.mapObject(t,Boolean(e.ownProperties),Boolean(e.accessorPropertiesOnly))}:{result:[]}},e.prototype.mapObject=function(e,t,n){var o=this;if(t){var r=he(e),a=Object.keys(r).filter((function(e){return!(n&&!r[e].get&&!r[e].set)})).map((function(e){return o.mapResultOne(e,r[e],!0)}));return e.__proto__&&a.push(this.mapResultOne("__proto__",{configurable:!0,enumerable:!1,writable:!0,value:e.__proto__},!0)),a}for(var i=[],c={},s=e,p=!1,u=!0,l=function(){var e=he(s);if(Object.keys(e).forEach((function(t){if(!c[t]){c[t]=!0;var r=e[t];(!n||r.get||r.set)&&i.push(o.mapResultOne(t,r,u))}})),!p){var t=Object.getOwnPropertyDescriptor(s,"__proto__");t&&(p=!0,i.push(g.mapResultOne("__proto__",t,u)))}s=s.__proto__,u=!1},g=this;s;)l();return i},e.prototype.mapResultOne=function(e,t,n){var o={writable:t.writable,configurable:Boolean(t.configurable),enumerable:Boolean(t.enumerable),isOwn:n,name:String(e)};return"value"in t&&(o.value=this.objectMapper.mapFromOne(t.value)),t.get&&(o.get=this.objectMapper.mapFromOne(t.get)),t.set&&(o.set=this.objectMapper.mapFromOne(t.set)),o},e}(),Se=function(){function e(){this.objectStore=new be,this.objectMapper=new ye(this.objectStore),this.callFramesMapper=new me,this.getPropertiesHandler=new ke(this.objectStore,this.objectMapper)}return e.prototype.parseObject=function(e){return this.objectMapper.mapFromOne(e)},e.prototype.getProperties=function(e){return this.getPropertiesHandler.handle(e)},e.prototype.getObjectById=function(e){return this.objectStore.query(e)},e.prototype.consoleAPICalled=function(e,t,n){var o=e;return"warn"===e&&(o="warning"),{method:"Runtime.consoleAPICalled",params:{type:o,args:this.objectMapper.mapFrom(n),executionContextId:1,timestamp:Date.now(),stackTrace:{callFrames:this.callFramesMapper.mapFrom(t)}}}},e}();function Oe(){("string"==typeof __BUGME_EXTERNAL_CHANNEL__&&__BUGME_EXTERNAL_CHANNEL__||"boolean"==typeof __BUGME_CONSOLE_ENABLE__&&__BUGME_CONSOLE_ENABLE__)&&(_e=new Le).overrideConsole()}function Ae(){return _e}var ve,Le=function(){function e(){this.executionContextId=1,this.messageBeforeAgentInit=[],this.webSocketCheckingLoop=!1,this.parser=new Se,this.createExecutionContext()}return e.prototype.createExecutionContext=function(){this.sendMesasge({method:c.executionContextsCleared,params:{}}),this.sendMesasge({method:c.executionContextCreated,params:{context:{id:this.executionContextId,origin:"app://",name:"app"}}})},e.prototype.overrideConsole=function(){var e=this;Object.defineProperties(console,["debug","log","info","warn","error"].reduce((function(t,n){var o=console[n].bind(console);return t[n]={value:function(){var t=arguments;if(t.length){try{var r=/^(\[framework\]|dispatchEvent|onMessage push|unsupported protocol)/;if("string"==typeof t[0]&&r.test(t[0]))return o.apply(null,t);var a=new Error;a.stack&&e.sendMesasge(e.parser.consoleAPICalled(n,a.stack,t))}catch(e){}return o.apply(null,t)}}},t}),{}))},e.prototype.sendMesasge=function(e){var t=Z().getWorkerSocket();t?(this.flushPendingMessasges(),t.sendAfterReceivingMessage(e)):(this.messageBeforeAgentInit.push(e),this.checkWebSocketReady())},e.prototype.flushPendingMessasges=function(){if(this.messageBeforeAgentInit.length){var e=Z().getWorkerSocket();e&&(this.messageBeforeAgentInit.forEach((function(t){e.sendAfterReceivingMessage(t)})),this.messageBeforeAgentInit=[])}},e.prototype.checkWebSocketReady=function(){var e=this;if(!this.webSocketCheckingLoop){this.webSocketCheckingLoop=!0;var t=setInterval((function(){Z().getWorkerSocket()&&(clearInterval(t),e.flushPendingMessasges())}),1e3)}},e}();function Pe(e){if(Z().getAgentContext().silentMode)return!1;var t="";switch(e){case ve.Connecting:t="准备中";break;case ve.Connected:t="已连接";break;case ve.Reconnecting:t="重试中";break;case ve.Disconnected:t="已断开"}e===ve.Reconnecting&&(e=ve.Connecting),AFAppX.bridge.call("showRemoteDebugPanel",{status:e,text:"真机调试"+t,buttonTitle:"退出"})}!function(e){e.Connecting="connecting",e.Connected="connected",e.Disconnected="disconnected",e.Reconnecting="reconnecting"}(ve||(ve={}));var Ce=Object.freeze({__proto__:null,enable:function(e){Z().getWorkerSocket().send({id:e.id,result:{}})},getResponseBody:function(e){var t=e.params.requestId,n=Z(),o=n.getNetworkRecorder(),r=o.getRequest(t);r?n.getWorkerSocket().send({id:e.id,result:{base64Encoded:r.isBase64Body,body:r.responseBody}}):n.getWorkerSocket().send({id:e.id,result:{}}),o.removeRequest(t)}});var we="function"==typeof __eval?__eval:"function"==typeof eval?eval:function(){};var De=Object.freeze({__proto__:null,enable:function(e){Z().getWorkerSocket().send({id:e.id,result:{}});var t=Ae();t&&t.createExecutionContext()},getProperties:function(e){var t=Ae();t&&Z().getWorkerSocket().send({id:e.id,result:t.parser.getProperties(e.params)})},compileScript:function(e){Z().getWorkerSocket().send({id:e.id,result:{}})},evaluate:function(e){var t=Ae();if(t){var n=t.parser;try{var o=we(e.params.expression);Z().getWorkerSocket().send({id:e.id,result:{result:n.parseObject(o)}})}catch(t){t.stack=t.name+": "+t.message,Z().getWorkerSocket().send({id:e.id,result:{exceptionDetails:{columnNumber:20,exception:n.parseObject(t),exceptionId:1,lineNumber:0,text:"Uncaught"},result:n.parseObject(t)}})}}}});var Ee,xe=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){function n(e,t){var n=[],o=[];return null==t&&(t=function(e,t){return n[0]===t?"[Circular ~]":"[Circular ~."+o.slice(0,n.indexOf(t)).join(".")+"]"}),function(r,a){if(n.length>0){var i=n.indexOf(this);~i?n.splice(i+1):n.push(this),~i?o.splice(i,1/0,r):o.push(r),~n.indexOf(a)&&(a=t.call(this,r,a))}else n.push(a);return null==e?a:e.call(this,r,a)}}(e.exports=function(e,t,o,r){return JSON.stringify(e,n(t,r),o)}).getSerialize=n}));xe.getSerialize;function Ie(){return Ee?Ee():d.getCurrentPages?(Ee=d.getCurrentPages)():d.AFAppX&&AFAppX.getCurrentPages?(Ee=AFAppX.getCurrentPages)():[]}var Te=Object.freeze({__proto__:null,getPagesData:function(e){var t,n=Z().getRuntime();t=null==n?Ie().filter(Boolean).map((function(e){return{viewId:e.$viewId,data:xe(e.data),route:e.route}})):n.getNav().currentStack.map((function(e){var t=e.getPageLogicInstance().publicInstance;return{viewId:t.$viewId,data:xe(t.data),route:t.route}})),Z().getWorkerSocket().send({id:e.id,ext:e.ext,result:{data:t}})},setPageData:function(e){var t,n=e.params,o=void 0===n?{}:n,r=o.viewId,a=o.data,i=Z().getRuntime();(t=null==i?Ie().filter((function(e){return e&&""+e.$viewId===r}))[0]:i.getNav().currentStack.map((function(e){return e.getPageLogicInstance().publicInstance})).filter((function(e){return e&&""+e.$viewId===r}))[0])&&a&&t.setData(a)}});var Re=Object.freeze({__proto__:null,getStorageInfo:function(e){var t=AFAppX.bridge.getStorageInfoSync(),n=t.keys.map((function(e){var t=AFAppX.bridge.getStorageSync({key:e}).data;return{key:e,value:t,type:typeof t}}));Z().getWorkerSocket().send({id:e.id,ext:e.ext,result:{currentSize:t.currentSize,limitSize:t.limitSize,data:n}})},clearStorage:function(e){AFAppX.bridge.clearStorageSync()},removeStorage:function(e){var t=e.params,n=void 0===t?{}:t;n.key&&AFAppX.bridge.removeStorageSync({key:n.key})},setStorage:function(e){var t=e.params,n=void 0===t?{}:t;n.key&&AFAppX.bridge.setStorageSync({key:n.key,data:n.value})}});var Ne=Object.freeze({__proto__:null,enable:function(){var e=Z().getMessageQueue();e.setApplogEnabled(!0),e.sendQueuedMessages()}});var Me=Object.freeze({__proto__:null,Data:Te,Storage:Re,Applog:Ne,ping:function(e){Z().getWorkerSocket().send({id:e.id,result:{}})},getSystemInfo:function(e){var t=AFAppX.bridge.getSystemInfoSync(),n={userAgent:Z().getAgentContext().userAgent,sdkVersion:AFAppX.bridge.SDKVersion,alipayVersion:t.version,model:t.model,system:t.system};Z().getWorkerSocket().send({id:e.id,result:n})},getStartupParams:function(e){var t=S();Z().getWorkerSocket().send({id:e.id,result:t})}});var je=Object.freeze({__proto__:null,getResourceTree:function(e){Z().getWorkerSocket().send({id:e.id,result:{}})}}),Be=Object.freeze({__proto__:null,Network:Ce,Runtime:De,Tiny:Me,Page:je}),Xe=!1;if("undefined"!=typeof WebSocket&&WebSocket.OPEN){Xe=!0;try{delete d.WebSocket}catch(_){}}var qe=function(e){function t(t){var n=e.call(this,t)||this;return n.isMessageReceived=!1,n.isSocketOpenedOnce=!1,n.messageBeforeReceived=[],n.isDebugExited=!1,Pe(ve.Connecting),n}return w(t,e),t.prototype.send=function(e){return this.sendSocketMessage(e)},t.prototype.sendAfterReceivingMessage=function(e){this.isMessageReceived?this.send(e):this.messageBeforeReceived.push("string"==typeof e?e:JSON.stringify(e))},t.prototype.exitDebug=function(){this.isDebugExited=!0,Pe(ve.Disconnected),this.close(),!Xe&&Z().getAgentContext().isIOS&&[1,2].forEach((function(e){AFAppX.bridge.call("closeSocket",{socketTaskId:e})}))},t.prototype.onSocketOpen=function(){e.prototype.onSocketOpen.call(this),this.isSocketOpenedOnce=!0,clearInterval(this.reconnectInterval),this.send({method:a.Enable,params:{},ext:{origin:p.AppLog}}),ie()},t.prototype.onSocketClose=function(){e.prototype.onSocketClose.call(this),this.isDebugExited||this.reconnect()},t.prototype.onSocketError=function(e){this.isSocketOpenedOnce||Z().getAgentContext().silentMode||(Pe(ve.Disconnected),AFAppX.bridge.showToast({content:"本次真机调试已结束,请重新生成调试版本",duration:2e3,success:function(){}}))},t.prototype.onSocketMessage=function(e){var t,n=this;this.isMessageReceived||(this.isMessageReceived=!0,this.messageBeforeReceived.forEach((function(e){n.send(e)})),this.messageBeforeReceived=[]);try{t=JSON.parse(e)}catch(t){return void("CLIENT:JOIN"===e?Pe(ve.Connected):"CLIENT:LEAVE"===e&&this.exitDebug())}var o=function(e){if(!e)return;for(var t=e.split("."),n=Be,o=0,r=t;o<r.length;o++){var a=r[o];if(!(n=n[a]))break}return n}(t.method);o?o(t):this.send({id:t.id,error:{code:-32e3,message:"unsupported"}})},t.prototype.reconnect=function(){var e=this;Pe(ve.Reconnecting),clearInterval(this.reconnectInterval),this.reconnectInterval=setInterval((function(){e.isSocketOpened?clearInterval(e.reconnectInterval):e.open()}),2e3)},t}(Xe?re:ae);var Fe=/\/(tyro\/agent|bugme\/channel\/paused)$/,Ge=function(){function t(){this.isIOS=Z().getAgentContext().isIOS,this.isLyra=Z().getAgentContext().isLyra}return t.prototype.setup=function(){this.isLyra||this.isIOS?this.listenDebugEvent4IOS():this.listenDebugEvent()},t.prototype.onNetworkRequest=function(e){if(!Fe.test(e.url)){var t=(e.method||"GET").toUpperCase(),n=He(e.headers),o={method:s.RequestWillBeSent,params:{documentURL:"",loaderId:"",requestId:e.requestId,request:{method:t,url:e.url,headers:n,postData:e.postBody,mixedContentType:"none",initialPriority:"HIGH",isLinkPreload:!1},timestamp:Ke(),type:"XHR"}},r=Z();r.getWorkerSocket().send(o),r.getNetworkRecorder().setRequest(e.requestId,{method:t,requestHeaders:n,url:e.url})}},t.prototype.onNetworkResponse=function(e){if(!Fe.test(e.url)){var t=Z(),n=t.getNetworkRecorder().getRequest(e.requestId)||{},o={method:s.ResponseReceived,params:{requestId:e.requestId,loaderId:"",type:"XHR",timestamp:Ke(),response:{url:n.url||"",status:e.status,method:n.method||"",headers:He(e.headers),requestHeaders:n.requestHeaders,connectionReused:!1,encodedDataLength:0,securityState:"unknown",statusText:"",protocol:"",mimeType:e.headers["Content-Type"]||e.headers["content-type"]}}};t.getWorkerSocket().send(o);var r={method:s.LoadingFinished,params:{requestId:e.requestId,timestamp:Ke(),encodedDataLength:0}};t.getWorkerSocket().send(r),t.getNetworkRecorder().setRequest(e.requestId,{responseBody:e.body,isBase64Body:!1})}},t.prototype.onNetworkError=function(e){if(!Fe.test(e.url)){var t={method:s.LoadingFailed,params:{canceled:!1,errorText:e.errorMsg||"",requestId:e.requestId,timestamp:Ke(),type:"XHR"}};Z().getWorkerSocket().send(t)}},t.prototype.onStorageChanged=function(e){var t={};Object.keys(e.data).forEach((function(n){try{t[n]=JSON.parse(e.data[n]).APDataStorage}catch(e){}})),Z().getWorkerSocket().send({method:r.StorageChanged,params:{data:t},ext:{origin:p.Storage}})},t.prototype.listenDebugEvent4IOS=function(){var t=this,n=AFAppX.bridge;n.on(e.DebugNetworkRequest,(function(e){t.onNetworkRequest(e.data)})),n.on(e.DebugNetworkResponse,(function(e){t.onNetworkResponse(e.data)})),n.on(e.DebugNetworkError,(function(e){t.onNetworkError(e.data)})),n.on(e.DebugStorageChanged,(function(e){t.onStorageChanged(e.data)}))},t.prototype.listenDebugEvent=function(){var t=this;AFAppX.bridge.on(e.DebugConsole,(function(n){var o,r=n.data,a=r.type,i=r.content;try{o=JSON.parse(i)}catch(e){return}switch(a){case e.DebugNetworkRequest:t.onNetworkRequest(o);break;case e.DebugNetworkResponse:t.onNetworkResponse(o);break;case e.DebugNetworkError:t.onNetworkError(o);break;case e.DebugStorageChanged:t.onStorageChanged(o)}}))},t}();function He(e){if(!e||"object"!=typeof e)return{};var t={};return Object.keys(e).forEach((function(n){t[n]=""+e[n]})),t}function Ke(){return Date.now()/1e3}var We,Ve=function(){function t(){this.inited=!1}return t.prototype.setup=function(){if(this.inited)return!1;var t=AFAppX.bridge;if(/^1\./.test(t.SDKVersion)){var n=function(e,t,n,o){var r;return function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];o(r),r=n((function(){e.apply(null,a)}),t)}}(this.onPageResumeOrPause.bind(this),300,setTimeout,clearTimeout);t.on(e.PageResume,n),t.on(e.PagePause,n)}t.on(e.DebugPanelClick,this.onDebugPanelClick),this.debugEventListener=new Ge,this.debugEventListener.setup(),this.inited=!0},t.prototype.onPageResumeOrPause=function(){ie()},t.prototype.onDebugPanelClick=function(){var e=Z().getWorkerSocket();e&&e.exitDebug()},t}();var Ue,$e=function(){function e(){}return e.prototype.init=function(){(We||(We=new Ve),We).setup(),this.makeConnection(),this.printSDKVersion()},e.prototype.makeConnection=function(){var e=Z(),t=function(){if("string"==typeof __BUGME_EXTERNAL_WORKER_URL__&&__BUGME_EXTERNAL_WORKER_URL__)return __BUGME_EXTERNAL_WORKER_URL__;var e=Z().getAgentContext(),t=e.channelId,n=e.channelConfigKey;return"wss://"+(te[n]||te[0]).hpmweb+"/bugme/client_w/"+t}(),n=new qe(t);e.setWorkerSocket(n),e.getAgentContext().isIOS?n.open():setTimeout((function(){n.open()}),1200)},e.prototype.printSDKVersion=function(){var e=AFAppX.bridge.SDKVersion;/^2\./.test(e)&&setTimeout(console.log.bind(console,"SDKVersion: "+e))},e}();var ze="object"==typeof AFAppX&&AFAppX.Plugin;if(!d.__BUGME_ON__&&!ze){d.__BUGME_ON__=!0;try{!function(){try{de(),Oe(),(t=Object.getOwnPropertyDescriptor(d,"requirePlugin"))&&!t.configurable||(t&&(e=d.requirePlugin),Object.defineProperty(d,"requirePlugin",{get:function(){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var o=Date.now();ee({method:i.ApiSyncCall,params:{aTime:o,context:{apiName:"requirePlugin",option:{arguments:t}}},ext:{origin:p.AppLog}});try{var r=e.apply(void 0,t);return ee({method:i.ApiSyncCallback,params:{args:r?void 0:[{error:1,errorMessage:"未找到对应插件"}],bTime:Date.now()===o?o+.01:Date.now(),context:{apiName:"requirePlugin"}},ext:{origin:p.AppLog}}),r}catch(e){throw ee({method:i.ApiSyncCallback,params:{args:[{error:2,errorMessage:e.message}],bTime:Date.now()===o?o+.01:Date.now(),context:{apiName:"requirePlugin"}},ext:{origin:p.AppLog}}),e}}},set:function(t){e=t},enumerable:!0,configurable:!0}))}catch(e){_("sync task error",e)}var e,t,n;n=function(){!function(e){if("undefined"==typeof AFAppX&&(AFAppX=d.AFAppX),"undefined"==typeof $AppxFramework)e();else if(AFAppX.Plugin){var t=AFAppX.Plugin;AFAppX.Plugin=function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var r=n[0];if("object"==typeof r&&r.run){var a=r.run;r.run=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e(),a.apply(r,t)}}return t.apply(AFAppX,n)}}else if($AppxFramework.bootstrapInAppContextByProtocol){var n=$AppxFramework.bootstrapInAppContextByProtocol;$AppxFramework.bootstrapInAppContextByProtocol=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var r=t[0];if("object"==typeof r&&r.callback){var a=r.callback;r.callback=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e(),a.apply(r,t)}}return n.apply($AppxFramework,t)}}}((function(){try{(Ue||(Ue=new $e),Ue).init()}catch(e){_("init agent error",e)}}))},void 0!==d.AFAppX?n():(k.push(n),b||(b=!0,d.importScripts=function(e){m(e),/af-appx\.worker\.min\.js$/.test(e)&&(k.forEach((function(e){return e()})),k=[])}))}()}catch(e){_("init error",e)}}}();
/**! __BUGME_END__ */
if(!self.__appxInited) {
self.__appxInited = 1;
require('./config$');
require('./importScripts$');
var AFAppX = self.AFAppX;
self.getCurrentPages = AFAppX.getCurrentPages;
self.getApp = AFAppX.getApp;
self.Page = AFAppX.Page;
self.App = AFAppX.App;
self.my = AFAppX.bridge || AFAppX.abridge;
self.abridge = self.my;
self.Component = AFAppX.WorkerComponent || function(){};
self.$global = AFAppX.$global;
self.requirePlugin = AFAppX.requirePlugin;
if(AFAppX.registerApp) {
AFAppX.registerApp({
appJSON: appXAppJson,
});
}
function success() {
require('../../app');
require('../../pages/index/index?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../pages/payment/payment?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../pages/login/login?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../pages/paySuccess/paySuccess?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
}
self.bootstrapApp ? self.bootstrapApp({ success }) : success();
}
\ No newline at end of file
......@@ -99,10 +99,10 @@ Object.defineProperty(exports, "__esModule", { value: true });exports.default =
//4.setStorageSync与setStorage的区别:如果后续的操作需要使用更新storage后保存的data,则使用setStorageSync使用异步性能更好,使用同步数据更安全
var _default = {
onLaunch: function onLaunch() {//初始化完成时触发(全局只触发一次
console.log('App Launch');
},
onShow: function onShow() {
console.log('App Show');
},
onHide: function onHide() {
console.log('App Hide');
......
......@@ -10,6 +10,56 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });exports.createApp = createApp;exports.createComponent = createComponent;exports.createPage = createPage;exports.createPlugin = createPlugin;exports.createSubpackageApp = createSubpackageApp;exports.default = void 0;var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 2));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function _slicedToArray(arr, i) {return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(arr, i) {if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;var _arr = [];var _n = true;var _d = false;var _e = undefined;try {for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {_arr.push(_s.value);if (i && _arr.length === i) break;}} catch (err) {_d = true;_e = err;} finally {try {if (!_n && _i["return"] != null) _i["return"]();} finally {if (_d) throw _e;}}return _arr;}function _arrayWithHoles(arr) {if (Array.isArray(arr)) return arr;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function _classCallCheck(instance, Constructor) {if (!(instance instanceof Constructor)) {throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target, props) {for (var i = 0; i < props.length; i++) {var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if ("value" in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);}}function _createClass(Constructor, protoProps, staticProps) {if (protoProps) _defineProperties(Constructor.prototype, protoProps);if (staticProps) _defineProperties(Constructor, staticProps);return Constructor;}function _toConsumableArray(arr) {return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();}function _nonIterableSpread() {throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o, minLen) {if (!o) return;if (typeof o === "string") return _arrayLikeToArray(o, minLen);var n = Object.prototype.toString.call(o).slice(8, -1);if (n === "Object" && o.constructor) n = o.constructor.name;if (n === "Map" || n === "Set") return Array.from(o);if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);}function _iterableToArray(iter) {if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);}function _arrayWithoutHoles(arr) {if (Array.isArray(arr)) return _arrayLikeToArray(arr);}function _arrayLikeToArray(arr, len) {if (len == null || len > arr.length) len = arr.length;for (var i = 0, arr2 = new Array(len); i < len; i++) {arr2[i] = arr[i];}return arr2;}
function b64DecodeUnicode(str) {
return decodeURIComponent(atob(str).split('').map(function (c) {
return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
}).join(''));
}
function getCurrentUserInfo() {
var token = my.getStorageSync('uni_id_token') || '';
var tokenArr = token.split('.');
if (!token || tokenArr.length !== 3) {
return {
uid: null,
role: [],
permission: [],
tokenExpired: 0 };
}
var userInfo;
try {
userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
} catch (error) {
throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
}
userInfo.tokenExpired = userInfo.exp * 1000;
delete userInfo.exp;
delete userInfo.iat;
return userInfo;
}
function uniIdMixin(Vue) {
Vue.prototype.uniIDHasRole = function (roleId) {var _getCurrentUserInfo =
getCurrentUserInfo(),role = _getCurrentUserInfo.role;
return role.indexOf(roleId) > -1;
};
Vue.prototype.uniIDHasPermission = function (permissionId) {var _getCurrentUserInfo2 =
getCurrentUserInfo(),permission = _getCurrentUserInfo2.permission;
return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
};
Vue.prototype.uniIDTokenValid = function () {var _getCurrentUserInfo3 =
getCurrentUserInfo(),tokenExpired = _getCurrentUserInfo3.tokenExpired;
return tokenExpired > Date.now();
};
}
var _toString = Object.prototype.toString;
var hasOwnProperty = Object.prototype.hasOwnProperty;
......@@ -940,6 +990,23 @@ var protocols = { // 需要做转换的 API 列表
} },
getUserProfile: {
name: my.canIUse('getOpenUserInfo') ? 'getOpenUserInfo' : 'getAuthUserInfo',
returnValue: function returnValue(result) {
if (my.canIUse('getOpenUserInfo')) {
var response = {};
try {
response = JSON.parse(result.response).response;
} catch (e) {}
result.nickName = response.nickName;
result.avatar = response.avatar;
}
result.userInfo = {
nickName: result.nickName,
avatarUrl: result.avatar };
} },
requestPayment: {
name: 'tradePay',
args: {
......@@ -1992,6 +2059,7 @@ function parseBaseApp(vm, _ref6)
if (vm.$options.store) {
_vue.default.prototype.$store = vm.$options.store;
}
uniIdMixin(_vue.default);
_vue.default.prototype.mpHost = "mp-alipay";
......
<view class="bottom"><web-view src="https://wx.pangdly.com"></web-view></view>
\ No newline at end of file
<view hidden="{{!(showBottom)}}" class="bottom"><web-view src="https://wx.pangdly.com"></web-view></view>
\ No newline at end of file
......@@ -205,26 +205,12 @@ var _default =
{
data: function data() {
return {
title: '胖丁首页' };
title: '胖丁首页',
showBottom: false //控制底部显示隐藏
};
},
onReady: function onReady() {
onLoad: function onLoad() {
var _this = this;
......@@ -238,32 +224,16 @@ var _default =
var _this = this;
uni.login({
provider: 'alipay',
success: function success(res) {
if (res.code) {
var data = {
code: res.code,
source: 3 };
_this.$request('wechat/wx/getUserInfoByCode', data).then(function (res) {
if (res.code == '00') {
var openid = res.data.openid;
uni.setStorageSync('openid', openid);
if (uni.getStorageSync("openid")) {
_this.showBottom = true;
} else {
uni.removeStorageSync('openid');
uni.showToast({
title: res.message,
icon: "none" });
uni.navigateTo({
url: "../login/login" });
}
}).catch(function (err) {
uni.removeStorageSync('openid');
});
}
} });
},
onReady: function onReady() {
},
methods: {
......
......@@ -128,7 +128,7 @@ __webpack_require__.r(__webpack_exports__);
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; //
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; //
//
//
//
......@@ -144,36 +144,49 @@ var _default =
methods: {},
onReady: function onReady() {
onLoad: function onLoad() {
uni.showLoading({
title: '加载中...' });
var _this = this;
uni.getProvider({
service: 'oauth',
success: function success(proRes) {
uni.login({
provider: proRes.provider[0],
success: function success(res) {
if (res.code) {
var data = {
code: res.code,
source: 3 };
_this.$request('wechat/wx/getUserInfoByCode', data).then(function (res) {
if (res.code == '00') {
var openid = res.data.openid;
uni.setStorageSync('openid', openid);
uni.navigateBack({
delta: 1 });
} else {
uni.removeStorageSync('openid');
uni.showToast({
title: res.message,
icon: "none" });
uni.hideLoading();
}
}).catch(function (err) {
uni.removeStorageSync('openid');
uni.hideLoading();
});
}
} });
} });
} };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-alipay/dist/index.js */ 1)["default"]))
/***/ })
......
......@@ -99,10 +99,10 @@ Object.defineProperty(exports, "__esModule", { value: true });exports.default =
//4.setStorageSync与setStorage的区别:如果后续的操作需要使用更新storage后保存的data,则使用setStorageSync使用异步性能更好,使用同步数据更安全
var _default = {
onLaunch: function onLaunch() {//初始化完成时触发(全局只触发一次
console.log('App Launch');
},
onShow: function onShow() {
console.log('App Show');
},
onHide: function onHide() {
console.log('App Hide');
......
......@@ -10,6 +10,56 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });exports.createApp = createApp;exports.createComponent = createComponent;exports.createPage = createPage;exports.createPlugin = createPlugin;exports.createSubpackageApp = createSubpackageApp;exports.default = void 0;var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 2));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _slicedToArray(arr, i) {return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(arr, i) {if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;var _arr = [];var _n = true;var _d = false;var _e = undefined;try {for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {_arr.push(_s.value);if (i && _arr.length === i) break;}} catch (err) {_d = true;_e = err;} finally {try {if (!_n && _i["return"] != null) _i["return"]();} finally {if (_d) throw _e;}}return _arr;}function _arrayWithHoles(arr) {if (Array.isArray(arr)) return arr;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function _toConsumableArray(arr) {return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();}function _nonIterableSpread() {throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o, minLen) {if (!o) return;if (typeof o === "string") return _arrayLikeToArray(o, minLen);var n = Object.prototype.toString.call(o).slice(8, -1);if (n === "Object" && o.constructor) n = o.constructor.name;if (n === "Map" || n === "Set") return Array.from(o);if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);}function _iterableToArray(iter) {if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);}function _arrayWithoutHoles(arr) {if (Array.isArray(arr)) return _arrayLikeToArray(arr);}function _arrayLikeToArray(arr, len) {if (len == null || len > arr.length) len = arr.length;for (var i = 0, arr2 = new Array(len); i < len; i++) {arr2[i] = arr[i];}return arr2;}
function b64DecodeUnicode(str) {
return decodeURIComponent(atob(str).split('').map(function (c) {
return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
}).join(''));
}
function getCurrentUserInfo() {
var token = wx.getStorageSync('uni_id_token') || '';
var tokenArr = token.split('.');
if (!token || tokenArr.length !== 3) {
return {
uid: null,
role: [],
permission: [],
tokenExpired: 0 };
}
var userInfo;
try {
userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
} catch (error) {
throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
}
userInfo.tokenExpired = userInfo.exp * 1000;
delete userInfo.exp;
delete userInfo.iat;
return userInfo;
}
function uniIdMixin(Vue) {
Vue.prototype.uniIDHasRole = function (roleId) {var _getCurrentUserInfo =
getCurrentUserInfo(),role = _getCurrentUserInfo.role;
return role.indexOf(roleId) > -1;
};
Vue.prototype.uniIDHasPermission = function (permissionId) {var _getCurrentUserInfo2 =
getCurrentUserInfo(),permission = _getCurrentUserInfo2.permission;
return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
};
Vue.prototype.uniIDTokenValid = function () {var _getCurrentUserInfo3 =
getCurrentUserInfo(),tokenExpired = _getCurrentUserInfo3.tokenExpired;
return tokenExpired > Date.now();
};
}
var _toString = Object.prototype.toString;
var hasOwnProperty = Object.prototype.hasOwnProperty;
......@@ -822,7 +872,7 @@ function initData(vueOptions, context) {
try {
data = data.call(context); // 支持 Vue.prototype 上挂的数据
} catch (e) {
if (Object({"VUE_APP_NAME":"uni-pdtravel","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
if (Object({"NODE_ENV":"development","VUE_APP_NAME":"uni-pdtravel","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
}
}
......@@ -1355,6 +1405,7 @@ function parseBaseApp(vm, _ref3)
if (vm.$options.store) {
_vue.default.prototype.$store = vm.$options.store;
}
uniIdMixin(_vue.default);
_vue.default.prototype.mpHost = "mp-weixin";
......@@ -7395,7 +7446,7 @@ function type(obj) {
function flushCallbacks$1(vm) {
if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
if (Object({"VUE_APP_NAME":"uni-pdtravel","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
if (Object({"NODE_ENV":"development","VUE_APP_NAME":"uni-pdtravel","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
var mpInstance = vm.$scope;
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
......@@ -7416,14 +7467,14 @@ function nextTick$1(vm, cb) {
//1.nextTick 之前 已 setData 且 setData 还未回调完成
//2.nextTick 之前存在 render watcher
if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
if(Object({"VUE_APP_NAME":"uni-pdtravel","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
if(Object({"NODE_ENV":"development","VUE_APP_NAME":"uni-pdtravel","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
var mpInstance = vm.$scope;
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
']:nextVueTick');
}
return nextTick(cb, vm)
}else{
if(Object({"VUE_APP_NAME":"uni-pdtravel","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
if(Object({"NODE_ENV":"development","VUE_APP_NAME":"uni-pdtravel","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
var mpInstance$1 = vm.$scope;
console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
']:nextMPTick');
......@@ -7509,7 +7560,7 @@ var patch = function(oldVnode, vnode) {
});
var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
if (Object.keys(diffData).length) {
if (Object({"VUE_APP_NAME":"uni-pdtravel","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
if (Object({"NODE_ENV":"development","VUE_APP_NAME":"uni-pdtravel","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
']差量更新',
JSON.stringify(diffData));
......
......@@ -205,38 +205,36 @@ var _default =
{
data: function data() {
return {
title: '胖丁首页' };
title: '胖丁首页',
showBottom: false //控制底部显示隐藏
};
},
onLoad: function onLoad() {
var _this = this;
uni.checkSession({
success: function success() {
_this.showBottom = true;
},
onReady: function onReady() {
fail: function fail() {
uni.navigateTo({
url: "../login/login" });
var _this = this;
uni.login({
provider: 'weixin',
success: function success(res) {
if (res.code) {
var data = {
code: res.code,
source: 3 };
_this.$request('wechat/wx/getUserInfoByCode', data).then(function (res) {
if (res.code == '00') {
var openid = res.data.openid;
uni.setStorageSync('openid', openid);
} else {
uni.removeStorageSync('openid');
uni.showToast({
title: res.message,
icon: "none" });
}
}).catch(function (err) {
uni.removeStorageSync('openid');
});
}
} });
},
onReady: function onReady() {
},
methods: {
getUserInfo: function getUserInfo() {// 获取用户信息
......
<view class="bottom"><web-view src="https://wx.pangdly.com"></web-view></view>
\ No newline at end of file
<view hidden="{{!(showBottom)}}" class="bottom"><web-view src="https://wx.pangdly.com"></web-view></view>
\ No newline at end of file
......@@ -144,11 +144,16 @@ var _default =
methods: {},
onReady: function onReady() {
onLoad: function onLoad() {
uni.showLoading({
title: '加载中...' });
var _this = this;
uni.getProvider({
service: 'oauth',
success: function success(proRes) {
uni.login({
provider: 'weixin',
provider: proRes.provider[0],
success: function success(res) {
if (res.code) {
var data = {
......@@ -159,19 +164,26 @@ var _default =
if (res.code == '00') {
var openid = res.data.openid;
uni.setStorageSync('openid', openid);
uni.navigateBack({
delta: 1 });
} else {
uni.removeStorageSync('openid');
uni.showToast({
title: res.message,
icon: "none" });
uni.hideLoading();
}
}).catch(function (err) {
uni.removeStorageSync('openid');
uni.hideLoading();
});
}
} });
} });
} };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
......
......@@ -137,12 +137,12 @@ Object.defineProperty(exports, "__esModule", { value: true });exports.default =
var _default =
{
data: function data() {
return {
order: "" };
return {};
},
onLoad: function onLoad(option) {
this.order = option.order;
},
methods: {} };exports.default = _default;
......
<view><web-view src="{{'https://wx.pangdly.com/#/paySuccess?order='+order}}"></web-view></view>
\ No newline at end of file
<view><web-view src="https://wx.pangdly.com/#/paySuccess"></web-view></view>
\ No newline at end of file
......@@ -231,7 +231,6 @@ var _default =
{
data: function data() {
return {
orderId: "", //订单id
merchantName: "", //商户名称
productName: "", //产品名称
orderList: "", //订单列表
......@@ -252,7 +251,7 @@ var _default =
},
onLoad: function onLoad(option) {var _this = this;
var data = {
orderId: option.order, //订单Id
orderId: option.orderId, //订单Id
userId: uni.getStorageSync("openid"), //用户Id
payType: 42 //支付类型
};
......@@ -301,7 +300,7 @@ var _default =
paySign: this.paySign,
success: function success(res) {
uni.redirectTo({
url: 'paySuccess?orderId=123456' });
url: "../paySuccess/paySuccess" });
},
fail: function fail(err) {
......
......@@ -42,6 +42,8 @@
"libVersion": "",
"appid": "wxe678d5240e98a7b8",
"projectname": "uni-pdtravel",
"simulatorType": "wechat",
"simulatorPluginLibVersion": {},
"condition": {
"search": {
"list": []
......
......@@ -11,20 +11,7 @@
"list": []
},
"miniprogram": {
"list": [
{
"name": "pages/index/index",
"pathName": "pages/index/index",
"query": "",
"scene": null
},
{
"name": "pages/payment/payment",
"pathName": "pages/payment/payment",
"query": "",
"scene": null
}
]
"list": []
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment