Commit f5b6dbc2 authored by 潘永坪's avatar 潘永坪

券优化

parent daf3417b
......@@ -48,9 +48,14 @@
let userId=res.data.userId||""
uni.setStorageSync('userId',userId)
let enterOptions=uni.getStorageSync("enterOptions")
let queryTotal=""
for(let key in enterOptions.query){
queryTotal+="&"+key+"="+enterOptions.query[key]
}
queryTotal=queryTotal.substr(1)
if(token){
uni.redirectTo({
url:"/"+enterOptions.path+"?"
url:"/"+enterOptions.path+"?"+queryTotal
})
// uni.navigateBack({
// delta:1
......
......@@ -271,11 +271,8 @@
},
couponChoose(data) { //---------------------------------------------------------------子组件券选择之后触发的事件
this.chooseCouponObj = data
if(this.chooseCouponObj.slaveList&&this.chooseCouponObj.slaveList.length>0){
this.savedMoney=this.chooseCouponObj.slaveList[0].savedMoney
}else{
this.savedMoney=this.chooseCouponObj.savedMoney
}
this.savedMoney=this.chooseCouponObj.savedMoney||0
},
showCoupon() { //---------------------------------------------------------------------展示券列表
this.$refs.orderCoupon.showCoupon()
......@@ -339,17 +336,22 @@
savedMoneyList.push(item.savedMoney)
})
let maxMoney = Math.max.apply(null, savedMoneyList)
let index = masterSlaveCouponList.findIndex((item) => {
return maxMoney == item.savedMoney
let arr=masterSlaveCouponList.filter((item)=>{//找到最大值的数组
return item.savedMoney==maxMoney
})
if(index>-1){
this.chooseCouponObj = masterSlaveCouponList[index]
}
if(this.chooseCouponObj.slaveList.length>0){
this.savedMoney=this.chooseCouponObj.slaveList[0].savedMoney
if(arr.length==1){
this.chooseCouponObj=arr[0]
}else{
this.savedMoney=this.chooseCouponObj.savedMoney
let index=arr.findIndex((item)=>{//如果有多个,找到是否有平台券,平台劵优先
return item.createSource==1
})
if(index>-1){
this.chooseCouponObj=arr[index]
}else{
this.chooseCouponObj=arr[0]
}
}
this.savedMoney=this.chooseCouponObj.savedMoney
} else {
if (res.data.data.unusableCouponList.length > 0) {
res.data.data.unusableCouponList.forEach((item, i) => { //没有可用优惠券,有达到条件可以用的优惠券,先显示条件,达到条件时显示可用优惠券
......@@ -375,21 +377,21 @@
if(this.chooseCouponObj.slaveList.length>0){//有从卷取值从卷,没有从卷取值主劵
couponList=[//券列表
{
couponId:this.chooseCouponObj.slaveList[0].couponId,//券id
couponPrice:this.chooseCouponObj.slaveList[0].savedMoney,//券价格
isMerchant:this.chooseCouponObj.slaveList[0].createSource,//是否是商户的券
myCouponId:this.chooseCouponObj.slaveList[0].id,//领取人编号
couponType:this.chooseCouponObj.slaveList[0].couponType//券类型
couponId:this.chooseCouponObj.slaveCouponId,//券id
isMerchant:this.chooseCouponObj.slaveCreateSource,//是否是商户的券
myCouponId:this.chooseCouponObj.slaveId,//领取人编号
couponType:this.chooseCouponObj.couponType,//券类型
couponPrice:this.chooseCouponObj.savedMoney,//券价格
}
]
}else{
couponList=[
{
couponId:this.chooseCouponObj.couponId,//券id
couponPrice:this.chooseCouponObj.savedMoney,//券价格
isMerchant:this.chooseCouponObj.createSource,//是否是商户的券
myCouponId:this.chooseCouponObj.id,//领取人编号
couponType:this.chooseCouponObj.couponType//券类型
couponType:this.chooseCouponObj.couponType,//券类型
couponPrice:this.chooseCouponObj.savedMoney,//券价格
}
]
}
......
(my["webpackJsonp"]=my["webpackJsonp"]||[]).push([["common/main"],{"0f37":function(e,t,n){"use strict";n.r(t);var r=n("3713");for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);n("dbd1");var u,a,c,f,i=n("f0c5"),l=Object(i["a"])(r["default"],u,a,!1,null,null,null,!1,c,f);t["default"]=l.exports},"25fe":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={onLaunch:function(t){var n=t.path;e.setStorageSync("enterUrl",n);var r=e.getStorageSync("token");r||-1!=n.indexOf("pages/ourPayment/ourPayment")||setTimeout((function(){e.navigateTo({url:"/pages/login/login"})}),300),t.query&&t.query.qrCode?e.setStorageSync("alipayQrCode",t.query.qrCode):e.removeStorageSync("alipayQrCode")},onShow:function(){},onHide:function(){}};t.default=n}).call(this,n("c11b")["default"])},3713:function(e,t,n){"use strict";n.r(t);var r=n("25fe"),o=n.n(r);for(var u in r)"default"!==u&&function(e){n.d(t,e,(function(){return r[e]}))}(u);t["default"]=o.a},d81f:function(e,t,n){"use strict";(function(e){n("6909"),n("921b");var t=c(n("66fd")),r=c(n("0f37")),o=c(n("cd04")),u=c(n("1d0e"));n("48bb");var a=c(n("a87e"));function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default.prototype.$commonjs=a.default,t.default.prototype.$request=u.default,t.default.use(o.default),t.default.config.productionTip=!1,r.default.mpType="app";var d=new t.default(i({},r.default));e(d).$mount()}).call(this,n("c11b")["createApp"])},dbd1:function(e,t,n){"use strict";var r=n("def2"),o=n.n(r);o.a},def2:function(e,t,n){}},[["d81f","common/runtime","common/vendor"]]]);
\ No newline at end of file
(my["webpackJsonp"]=my["webpackJsonp"]||[]).push([["common/main"],{"0f37":function(e,t,n){"use strict";n.r(t);var r=n("3713");for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);n("dbd1");var u,a,c,f,i=n("f0c5"),l=Object(i["a"])(r["default"],u,a,!1,null,null,null,!1,c,f);t["default"]=l.exports},"25fe":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={onLaunch:function(t){var n=t.path;e.setStorageSync("enterOptions",t);var r=e.getStorageSync("token");r||-1!=n.indexOf("pages/ourPayment/ourPayment")||setTimeout((function(){e.navigateTo({url:"/pages/login/login"})}),300),t.query&&t.query.qrCode?e.setStorageSync("alipayQrCode",t.query.qrCode):e.removeStorageSync("alipayQrCode")},onShow:function(){},onHide:function(){}};t.default=n}).call(this,n("c11b")["default"])},3713:function(e,t,n){"use strict";n.r(t);var r=n("25fe"),o=n.n(r);for(var u in r)"default"!==u&&function(e){n.d(t,e,(function(){return r[e]}))}(u);t["default"]=o.a},d81f:function(e,t,n){"use strict";(function(e){n("6909"),n("921b");var t=c(n("66fd")),r=c(n("0f37")),o=c(n("cd04")),u=c(n("1d0e"));n("48bb");var a=c(n("a87e"));function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default.prototype.$commonjs=a.default,t.default.prototype.$request=u.default,t.default.use(o.default),t.default.config.productionTip=!1,r.default.mpType="app";var d=new t.default(i({},r.default));e(d).$mount()}).call(this,n("c11b")["createApp"])},dbd1:function(e,t,n){"use strict";var r=n("def2"),o=n.n(r);o.a},def2:function(e,t,n){}},[["d81f","common/runtime","common/vendor"]]]);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
(my["webpackJsonp"]=my["webpackJsonp"]||[]).push([["pages/combination/combiChoose/combiChoose"],{7426:function(e,t,n){"use strict";(function(e){n("6909"),n("921b");r(n("66fd"));var t=r(n("8e4c"));function r(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("c11b")["createPage"])},"8e4c":function(e,t,n){"use strict";n.r(t);var r=n("984f"),o=n("f9bd");for(var d in o)"default"!==d&&function(e){n.d(t,e,(function(){return o[e]}))}(d);var a,c=n("f0c5"),i=Object(c["a"])(o["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],a);t["default"]=i.exports},"984f":function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return d})),n.d(t,"a",(function(){return r}));var o=function(){var e=this,t=e.$createElement;e._self._c},d=[]},f4ec:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{enterUrl:"",outUrl:""}},onLoad:function(t){if(this.enterUrl=e.getStorageSync("alipayQrCode"),this.enterUrl){var n=this.getUrlKey("channelId"),r=this.getUrlKey("companyId"),o=this.getUrlKey("merchantId"),d=this.getUrlKey("groupId"),a=this.getUrlKey("groupChannelId"),c=this.getUrlKey("pageType"),i=e.getStorageSync("openid"),u=e.getStorageSync("token"),l=e.getStorageSync("createUserId"),s=e.getStorageSync("userId");1==c?this.outUrl="https://wx.pangdly.com/#/combiChoose?channelId="+n+"&merchantId="+o+"&groupId="+d+"&groupChannelId="+a+"&companyId="+r+"&pdOpenid="+i+"&pdToken="+u+"&pdCreateUserId="+l+"&pdUserId="+s:e.navigateTo({url:"../distributionCombiChoose/distributionCombiChoose?channelId="+n+"&merchantId="+o+"&groupId="+d+"&groupChannelId="+a+"&companyId="+r+"&pdOpenid="+i})}else{var p=t.channelId,g=t.companyId,f=t.merchantId,h=t.groupId,I=t.groupChannelId,y=t.thirdOpenid,m=t.touristType,U=e.getStorageSync("openid"),b=e.getStorageSync("token"),S=e.getStorageSync("createUserId"),C=e.getStorageSync("userId"),v="https://wx.pangdly.com/#/combiChoose?thirdOpenid="+y+"&touristType="+m;this.outUrl=v+"&channelId="+p+"&merchantId="+f+"&groupId="+h+"&groupChannelId="+I+"&companyId="+g+"&pdOpenid="+U+"&pdToken="+b+"&pdCreateUserId="+S+"&pdUserId="+C}},methods:{getUrlKey:function(e){return(new RegExp("[?|&]"+e+"=([^&;]+?)(&|#|;|$)").exec(decodeURIComponent(this.enterUrl))||[,""])[1].replace(/\+/g,"%20")||""}}};t.default=n}).call(this,n("c11b")["default"])},f9bd:function(e,t,n){"use strict";n.r(t);var r=n("f4ec"),o=n.n(r);for(var d in r)"default"!==d&&function(e){n.d(t,e,(function(){return r[e]}))}(d);t["default"]=o.a}},[["7426","common/runtime","common/vendor"]]]);
\ No newline at end of file
(my["webpackJsonp"]=my["webpackJsonp"]||[]).push([["pages/combination/combiChoose/combiChoose"],{"6fba":function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return d})),n.d(t,"a",(function(){return r}));var o=function(){var e=this,t=e.$createElement;e._self._c},d=[]},7426:function(e,t,n){"use strict";(function(e){n("6909"),n("921b");r(n("66fd"));var t=r(n("8e4c"));function r(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("c11b")["createPage"])},"8e4c":function(e,t,n){"use strict";n.r(t);var r=n("6fba"),o=n("f9bd");for(var d in o)"default"!==d&&function(e){n.d(t,e,(function(){return o[e]}))}(d);var a,c=n("f0c5"),i=Object(c["a"])(o["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],a);t["default"]=i.exports},f4ec:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{enterUrl:"",outUrl:""}},onLoad:function(t){if(this.enterUrl=e.getStorageSync("alipayQrCode"),this.enterUrl){var n=this.getUrlKey("channelId"),r=this.getUrlKey("companyId"),o=this.getUrlKey("merchantId"),d=this.getUrlKey("groupId"),a=this.getUrlKey("groupChannelId"),c=this.getUrlKey("pageType"),i=e.getStorageSync("openid"),u=e.getStorageSync("token"),l=e.getStorageSync("createUserId"),s=e.getStorageSync("userId");1==c?this.outUrl="https://wx.pangdly.com/#/combiChoose?channelId="+n+"&merchantId="+o+"&groupId="+d+"&groupChannelId="+a+"&companyId="+r+"&pdOpenid="+i+"&pdToken="+u+"&pdCreateUserId="+l+"&pdUserId="+s:e.navigateTo({url:"../distributionCombiChoose/distributionCombiChoose?channelId="+n+"&merchantId="+o+"&groupId="+d+"&groupChannelId="+a+"&companyId="+r+"&pdOpenid="+i})}else{var p=t.channelId,g=t.companyId,f=t.merchantId,h=t.groupId,I=t.groupChannelId,y=t.thirdOpenid,m=t.touristType,b=e.getStorageSync("openid"),U=e.getStorageSync("token"),S=e.getStorageSync("createUserId"),C=e.getStorageSync("userId"),v="https://wx.pangdly.com/#/combiChoose?thirdOpenid="+y+"&touristType="+m;this.outUrl=v+"&channelId="+p+"&merchantId="+f+"&groupId="+h+"&groupChannelId="+I+"&companyId="+g+"&pdOpenid="+b+"&pdToken="+U+"&pdCreateUserId="+S+"&pdUserId="+C}},methods:{getUrlKey:function(e){return(new RegExp("[?|&]"+e+"=([^&;]+?)(&|#|;|$)").exec(decodeURIComponent(this.enterUrl))||[,""])[1].replace(/\+/g,"%20")||""}}};t.default=n}).call(this,n("c11b")["default"])},f9bd:function(e,t,n){"use strict";n.r(t);var r=n("f4ec"),o=n.n(r);for(var d in r)"default"!==d&&function(e){n.d(t,e,(function(){return r[e]}))}(d);t["default"]=o.a}},[["7426","common/runtime","common/vendor"]]]);
\ No newline at end of file
(my["webpackJsonp"]=my["webpackJsonp"]||[]).push([["pages/combination/distributionCombiChoose/distributionCombiChoose"],{"552d":function(e,t,n){"use strict";n.r(t);var r=n("7744"),o=n.n(r);for(var d in r)"default"!==d&&function(e){n.d(t,e,(function(){return r[e]}))}(d);t["default"]=o.a},"564a":function(e,t,n){"use strict";n.r(t);var r=n("c49d"),o=n("552d");for(var d in o)"default"!==d&&function(e){n.d(t,e,(function(){return o[e]}))}(d);var a,i=n("f0c5"),c=Object(i["a"])(o["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],a);t["default"]=c.exports},"5eb9":function(e,t,n){"use strict";(function(e){n("6909"),n("921b");r(n("66fd"));var t=r(n("564a"));function r(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("c11b")["createPage"])},7744:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{enterUrl:"",outUrl:""}},onLoad:function(t){if(this.enterUrl=e.getStorageSync("alipayQrCode"),this.enterUrl){var n=this.getUrlKey("channelId"),r=this.getUrlKey("companyId"),o=this.getUrlKey("merchantId"),d=this.getUrlKey("groupId"),a=this.getUrlKey("groupChannelId"),i=this.getUrlKey("pageType"),c=e.getStorageSync("openid"),u=e.getStorageSync("token"),s=e.getStorageSync("createUserId"),l=e.getStorageSync("userId");1==i?e.navigateTo({url:"../combiChoose/combiChoose?channelId="+n+"&merchantId="+o+"&groupId="+d+"&groupChannelId="+a+"&companyId="+r+"&pdOpenid="+c}):this.outUrl="https://wx.pangdly.com/#/distributionCombiChoose?channelId="+n+"&merchantId="+o+"&groupId="+d+"&groupChannelId="+a+"&companyId="+r+"&pdOpenid="+c+"&pdToken="+u+"&pdCreateUserId="+s+"&pdUserId="+l}else{var p=t.channelId,g=t.companyId,h=t.merchantId,f=t.groupId,I=t.groupChannelId,y=t.thirdOpenid,m=t.touristType,b=e.getStorageSync("openid"),U=e.getStorageSync("token"),C=e.getStorageSync("createUserId"),S=e.getStorageSync("userId"),v="https://wx.pangdly.com/#/distributionCombiChoose?thirdOpenid="+y+"&touristType="+m;this.outUrl=v+"&channelId="+p+"&merchantId="+h+"&groupId="+f+"&groupChannelId="+I+"&companyId="+g+"&pdOpenid="+b+"&pdToken="+U+"&pdCreateUserId="+C+"&pdUserId="+S}},methods:{getUrlKey:function(e){return(new RegExp("[?|&]"+e+"=([^&;]+?)(&|#|;|$)").exec(decodeURIComponent(this.enterUrl))||[,""])[1].replace(/\+/g,"%20")||""}}};t.default=n}).call(this,n("c11b")["default"])},c49d:function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return d})),n.d(t,"a",(function(){return r}));var o=function(){var e=this,t=e.$createElement;e._self._c},d=[]}},[["5eb9","common/runtime","common/vendor"]]]);
\ No newline at end of file
(my["webpackJsonp"]=my["webpackJsonp"]||[]).push([["pages/combination/distributionCombiChoose/distributionCombiChoose"],{"171f":function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return d})),n.d(t,"a",(function(){return r}));var o=function(){var e=this,t=e.$createElement;e._self._c},d=[]},"552d":function(e,t,n){"use strict";n.r(t);var r=n("7744"),o=n.n(r);for(var d in r)"default"!==d&&function(e){n.d(t,e,(function(){return r[e]}))}(d);t["default"]=o.a},"564a":function(e,t,n){"use strict";n.r(t);var r=n("171f"),o=n("552d");for(var d in o)"default"!==d&&function(e){n.d(t,e,(function(){return o[e]}))}(d);var a,i=n("f0c5"),c=Object(i["a"])(o["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],a);t["default"]=c.exports},"5eb9":function(e,t,n){"use strict";(function(e){n("6909"),n("921b");r(n("66fd"));var t=r(n("564a"));function r(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("c11b")["createPage"])},7744:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{enterUrl:"",outUrl:""}},onLoad:function(t){if(this.enterUrl=e.getStorageSync("alipayQrCode"),this.enterUrl){var n=this.getUrlKey("channelId"),r=this.getUrlKey("companyId"),o=this.getUrlKey("merchantId"),d=this.getUrlKey("groupId"),a=this.getUrlKey("groupChannelId"),i=this.getUrlKey("pageType"),c=e.getStorageSync("openid"),u=e.getStorageSync("token"),s=e.getStorageSync("createUserId"),l=e.getStorageSync("userId");1==i?e.navigateTo({url:"../combiChoose/combiChoose?channelId="+n+"&merchantId="+o+"&groupId="+d+"&groupChannelId="+a+"&companyId="+r+"&pdOpenid="+c}):this.outUrl="https://wx.pangdly.com/#/distributionCombiChoose?channelId="+n+"&merchantId="+o+"&groupId="+d+"&groupChannelId="+a+"&companyId="+r+"&pdOpenid="+c+"&pdToken="+u+"&pdCreateUserId="+s+"&pdUserId="+l}else{var p=t.channelId,g=t.companyId,h=t.merchantId,f=t.groupId,I=t.groupChannelId,y=t.thirdOpenid,m=t.touristType,b=e.getStorageSync("openid"),U=e.getStorageSync("token"),C=e.getStorageSync("createUserId"),S=e.getStorageSync("userId"),v="https://wx.pangdly.com/#/distributionCombiChoose?thirdOpenid="+y+"&touristType="+m;this.outUrl=v+"&channelId="+p+"&merchantId="+h+"&groupId="+f+"&groupChannelId="+I+"&companyId="+g+"&pdOpenid="+b+"&pdToken="+U+"&pdCreateUserId="+C+"&pdUserId="+S}},methods:{getUrlKey:function(e){return(new RegExp("[?|&]"+e+"=([^&;]+?)(&|#|;|$)").exec(decodeURIComponent(this.enterUrl))||[,""])[1].replace(/\+/g,"%20")||""}}};t.default=n}).call(this,n("c11b")["default"])}},[["5eb9","common/runtime","common/vendor"]]]);
\ No newline at end of file
(my["webpackJsonp"]=my["webpackJsonp"]||[]).push([["pages/index/index"],{"065f":function(n,t,e){"use strict";e.r(t);var c=e("737f"),r=e.n(c);for(var u in c)"default"!==u&&function(n){e.d(t,n,(function(){return c[n]}))}(u);t["default"]=r.a},"2bba":function(n,t,e){"use strict";(function(n){e("6909"),e("921b");c(e("66fd"));var t=c(e("c545"));function c(n){return n&&n.__esModule?n:{default:n}}n(t.default)}).call(this,e("c11b")["createPage"])},"737f":function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e={data:function(){return{outUrl:""}},onLoad:function(){var t=n.getStorageSync("openid"),e=n.getStorageSync("token"),c=n.getStorageSync("createUserId"),r=n.getStorageSync("userId");this.outUrl="https://wx.pangdly.com/#/home?pdOpenid="+t+"&pdToken="+e+"&pdCreateUserId="+c+"&pdUserId="+r},methods:{getUserInfo:function(){n.getUserProfile({lang:"zh_CN",desc:"登录",success:function(n){console.log(n)},fail:function(n){}})}}};t.default=e}).call(this,e("c11b")["default"])},c545:function(n,t,e){"use strict";e.r(t);var c=e("d9c7"),r=e("065f");for(var u in r)"default"!==u&&function(n){e.d(t,n,(function(){return r[n]}))}(u);e("d9b5");var o,a=e("f0c5"),f=Object(a["a"])(r["default"],c["b"],c["c"],!1,null,null,null,!1,c["a"],o);t["default"]=f.exports},d9b5:function(n,t,e){"use strict";var c=e("e90d"),r=e.n(c);r.a},d9c7:function(n,t,e){"use strict";var c;e.d(t,"b",(function(){return r})),e.d(t,"c",(function(){return u})),e.d(t,"a",(function(){return c}));var r=function(){var n=this,t=n.$createElement;n._self._c},u=[]},e90d:function(n,t,e){}},[["2bba","common/runtime","common/vendor"]]]);
\ No newline at end of file
(my["webpackJsonp"]=my["webpackJsonp"]||[]).push([["pages/index/index"],{"065f":function(n,t,e){"use strict";e.r(t);var r=e("737f"),u=e.n(r);for(var c in r)"default"!==c&&function(n){e.d(t,n,(function(){return r[n]}))}(c);t["default"]=u.a},"2a03":function(n,t,e){"use strict";var r;e.d(t,"b",(function(){return u})),e.d(t,"c",(function(){return c})),e.d(t,"a",(function(){return r}));var u=function(){var n=this,t=n.$createElement;n._self._c},c=[]},"2bba":function(n,t,e){"use strict";(function(n){e("6909"),e("921b");r(e("66fd"));var t=r(e("c545"));function r(n){return n&&n.__esModule?n:{default:n}}n(t.default)}).call(this,e("c11b")["createPage"])},"737f":function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e={data:function(){return{outUrl:""}},onLoad:function(){var t=n.getStorageSync("openid"),e=n.getStorageSync("token"),r=n.getStorageSync("createUserId"),u=n.getStorageSync("userId");this.outUrl="https://wx.pangdly.com/#/home?pdOpenid="+t+"&pdToken="+e+"&pdCreateUserId="+r+"&pdUserId="+u},methods:{getUserInfo:function(){n.getUserProfile({lang:"zh_CN",desc:"登录",success:function(n){console.log(n)},fail:function(n){}})}}};t.default=e}).call(this,e("c11b")["default"])},c545:function(n,t,e){"use strict";e.r(t);var r=e("2a03"),u=e("065f");for(var c in u)"default"!==c&&function(n){e.d(t,n,(function(){return u[n]}))}(c);e("d9b5");var o,a=e("f0c5"),f=Object(a["a"])(u["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],o);t["default"]=f.exports},d9b5:function(n,t,e){"use strict";var r=e("e90d"),u=e.n(r);u.a},e90d:function(n,t,e){}},[["2bba","common/runtime","common/vendor"]]]);
\ No newline at end of file
(my["webpackJsonp"]=my["webpackJsonp"]||[]).push([["pages/login/login"],{"89bc":function(e,t,n){"use strict";var o;n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return o}));var r=function(){var e=this,t=e.$createElement;e._self._c},a=[]},"9fb8":function(e,t,n){"use strict";n.r(t);var o=n("89bc"),r=n("a824");for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);var c,i=n("f0c5"),u=Object(i["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],c);t["default"]=u.exports},a824:function(e,t,n){"use strict";n.r(t);var o=n("bae4"),r=n.n(o);for(var a in o)"default"!==a&&function(e){n.d(t,e,(function(){return o[e]}))}(a);t["default"]=r.a},bae4:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{}},methods:{},onLoad:function(){var t=this;e.getProvider({service:"oauth",success:function(n){e.login({provider:n.provider[0],success:function(o){if(o.code){var r="";"weixin"==n.provider[0]?r=3:"alipay"==n.provider[0]&&(r=4);var a={code:o.code,source:r};t.$request("wechat/wx/getUserInfoByCode",a).then((function(n){if("00"==n.code){var o=n.data.openid;e.setStorageSync("openid",o);var a=n.data.userId||"",c={openid:o,source:r,userId:a};t.$request("wechatUser/login/findWxUserAndLogin",c).then((function(t){if("00"==t.code){var n=t.data.token||"";e.setStorageSync("token",n);var o=t.data.personId||"";e.setStorageSync("createUserId",o);var r=t.data.userId||"";e.setStorageSync("userId",r);var a=e.getStorageSync("enterUrl");n&&e.redirectTo({url:"/"+a})}else e.showToast({title:t.message,icon:"none"})})).catch((function(t){e.showToast({title:"登录失败",icon:"none"})}))}else e.showToast({title:n.message,icon:"none"})})).catch((function(t){e.showToast({title:"登录失败",icon:"none"})}))}}})}})}};t.default=n}).call(this,n("c11b")["default"])},d263:function(e,t,n){"use strict";(function(e){n("6909"),n("921b");o(n("66fd"));var t=o(n("9fb8"));function o(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("c11b")["createPage"])}},[["d263","common/runtime","common/vendor"]]]);
\ No newline at end of file
(my["webpackJsonp"]=my["webpackJsonp"]||[]).push([["pages/login/login"],{"2fd5":function(e,t,n){"use strict";var o;n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return o}));var r=function(){var e=this,t=e.$createElement;e._self._c},a=[]},"9fb8":function(e,t,n){"use strict";n.r(t);var o=n("2fd5"),r=n("a824");for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);var c,i=n("f0c5"),u=Object(i["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],c);t["default"]=u.exports},a824:function(e,t,n){"use strict";n.r(t);var o=n("bae4"),r=n.n(o);for(var a in o)"default"!==a&&function(e){n.d(t,e,(function(){return o[e]}))}(a);t["default"]=r.a},bae4:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{}},methods:{},onLoad:function(){var t=this;e.getProvider({service:"oauth",success:function(n){e.login({provider:n.provider[0],success:function(o){if(o.code){var r="";"weixin"==n.provider[0]?r=3:"alipay"==n.provider[0]&&(r=4);var a={code:o.code,source:r};t.$request("wechat/wx/getUserInfoByCode",a).then((function(n){if("00"==n.code){var o=n.data.openid;e.setStorageSync("openid",o);var a=n.data.userId||"",c={openid:o,source:r,userId:a};t.$request("wechatUser/login/findWxUserAndLogin",c).then((function(t){if("00"==t.code){var n=t.data.token||"";e.setStorageSync("token",n);var o=t.data.personId||"";e.setStorageSync("createUserId",o);var r=t.data.userId||"";e.setStorageSync("userId",r);var a=e.getStorageSync("enterOptions"),c="";for(var i in a.query)c+="&"+i+"="+a.query[i];c=c.substr(1),n&&e.redirectTo({url:"/"+a.path+"?"+c})}else e.showToast({title:t.message,icon:"none"})})).catch((function(t){e.showToast({title:"登录失败",icon:"none"})}))}else e.showToast({title:n.message,icon:"none"})})).catch((function(t){e.showToast({title:"登录失败",icon:"none"})}))}}})}})}};t.default=n}).call(this,n("c11b")["default"])},d263:function(e,t,n){"use strict";(function(e){n("6909"),n("921b");o(n("66fd"));var t=o(n("9fb8"));function o(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("c11b")["createPage"])}},[["d263","common/runtime","common/vendor"]]]);
\ No newline at end of file
(my["webpackJsonp"]=my["webpackJsonp"]||[]).push([["pages/my/order/electronicTicket/electronicTicket"],{"30cc":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{outUrl:""}},onLoad:function(t){var n=e.getStorageSync("openid"),r=e.getStorageSync("token"),c=e.getStorageSync("createUserId"),u=e.getStorageSync("userId");this.outUrl="https://wx.pangdly.com/#/unusedDetail?id="+t.orderId+"&pdOpenid="+n+"&pdToken="+r+"&pdCreateUserId="+c+"&pdUserId="+u},methods:{}};t.default=n}).call(this,n("c11b")["default"])},"5d30":function(e,t,n){"use strict";n.r(t);var r=n("30cc"),c=n.n(r);for(var u in r)"default"!==u&&function(e){n.d(t,e,(function(){return r[e]}))}(u);t["default"]=c.a},"5e54":function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return r}));var c=function(){var e=this,t=e.$createElement;e._self._c},u=[]},eeb6:function(e,t,n){"use strict";(function(e){n("6909"),n("921b");r(n("66fd"));var t=r(n("f85e"));function r(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("c11b")["createPage"])},f85e:function(e,t,n){"use strict";n.r(t);var r=n("5e54"),c=n("5d30");for(var u in c)"default"!==u&&function(e){n.d(t,e,(function(){return c[e]}))}(u);var o,a=n("f0c5"),d=Object(a["a"])(c["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],o);t["default"]=d.exports}},[["eeb6","common/runtime","common/vendor"]]]);
\ No newline at end of file
(my["webpackJsonp"]=my["webpackJsonp"]||[]).push([["pages/my/order/electronicTicket/electronicTicket"],{"30cc":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{outUrl:""}},onLoad:function(t){var n=e.getStorageSync("openid"),r=e.getStorageSync("token"),c=e.getStorageSync("createUserId"),u=e.getStorageSync("userId");this.outUrl="https://wx.pangdly.com/#/unusedDetail?id="+t.orderId+"&pdOpenid="+n+"&pdToken="+r+"&pdCreateUserId="+c+"&pdUserId="+u},methods:{}};t.default=n}).call(this,n("c11b")["default"])},"5d30":function(e,t,n){"use strict";n.r(t);var r=n("30cc"),c=n.n(r);for(var u in r)"default"!==u&&function(e){n.d(t,e,(function(){return r[e]}))}(u);t["default"]=c.a},e895:function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return r}));var c=function(){var e=this,t=e.$createElement;e._self._c},u=[]},eeb6:function(e,t,n){"use strict";(function(e){n("6909"),n("921b");r(n("66fd"));var t=r(n("f85e"));function r(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("c11b")["createPage"])},f85e:function(e,t,n){"use strict";n.r(t);var r=n("e895"),c=n("5d30");for(var u in c)"default"!==u&&function(e){n.d(t,e,(function(){return c[e]}))}(u);var o,a=n("f0c5"),d=Object(a["a"])(c["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],o);t["default"]=d.exports}},[["eeb6","common/runtime","common/vendor"]]]);
\ No newline at end of file
(my["webpackJsonp"]=my["webpackJsonp"]||[]).push([["pages/orderPayment/orderPayment"],{"0d8a":function(e,t,r){"use strict";(function(e){r("6909"),r("921b");n(r("66fd"));var t=n(r("8611"));function n(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,r("c11b")["createPage"])},"223d":function(e,t,r){"use strict";r.r(t);var n=r("4917"),a=r.n(n);for(var o in n)"default"!==o&&function(e){r.d(t,e,(function(){return n[e]}))}(o);t["default"]=a.a},"27f6":function(e,t,r){"use strict";var n=r("74b1"),a=r.n(n);a.a},4917:function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={data:function(){return{merchantName:"",productName:"",orderList:"",unitPrice:"",depositReceived:0,pdDiscountMoney:"",orderNum:"",pdOrderMoney:"",totalMoney:"",errorMessage:"",bodyShow:!1,timeStamp:"",nonceStr:"",package:"",signType:"",paySign:"",background:"",orderId:""}},onLoad:function(t){var r=this;this.orderId=t.orderId;var n={orderId:this.orderId,userId:e.getStorageSync("openid"),payType:42};this.$request("orderc/order/findOrderInfo",n).then((function(t){"00"==t.code?(r.bodyShow=!0,r.timeStamp=t.data.timestamp,r.nonceStr=t.data.noncestr,r.package=t.data.package,r.signType=t.data.signType,r.paySign=t.data.sign,r.pdOrderMoney=t.data.pdOrderMoney,0==r.pdOrderMoney&&-1==t.data.subOrderType&&e.navigateTo({url:"../my/order/electronicTicket/electronicTicket?orderId="+r.orderId}),r.errorMessage=t.data.errorMessage,r.totalMoney=t.data.totalMoney,r.orderList=t.data.orderList,"undefined"==typeof r.orderList&&(r.orderList="",r.merchantName=t.data.merchantName,r.productName=t.data.productName,r.unitPrice=t.data.unitPrice,r.orderNum=t.data.orderNum,r.depositReceived=t.data.depositReceived,r.pdDiscountMoney=t.data.pdDiscountMoney)):e.showToast({title:t.message,icon:"none"})}))},methods:{goPay:function(){var t=this,r=this;this.errorMessage?e.showToast({title:this.errorMessage,icon:"none"}):(this.background="#E6E6E6",setTimeout((function(){t.background="f9690e"}),1e3),e.requestPayment({provider:"wxpay",timeStamp:this.timeStamp,nonceStr:this.nonceStr,package:this.package,signType:this.signType,paySign:this.paySign,success:function(t){e.navigateTo({url:"../my/order/electronicTicket/electronicTicket?orderId="+r.orderId})},fail:function(t){e.showToast({title:t.errMsg,icon:"none"})}}))}}};t.default=r}).call(this,r("c11b")["default"])},"51c3":function(e,t,r){"use strict";var n;r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return o})),r.d(t,"a",(function(){return n}));var a=function(){var e=this,t=e.$createElement;e._self._c},o=[]},"74b1":function(e,t,r){},8611:function(e,t,r){"use strict";r.r(t);var n=r("51c3"),a=r("223d");for(var o in a)"default"!==o&&function(e){r.d(t,e,(function(){return a[e]}))}(o);r("27f6");var d,i=r("f0c5"),c=Object(i["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],d);t["default"]=c.exports}},[["0d8a","common/runtime","common/vendor"]]]);
\ No newline at end of file
(my["webpackJsonp"]=my["webpackJsonp"]||[]).push([["pages/orderPayment/orderPayment"],{"0d8a":function(e,t,r){"use strict";(function(e){r("6909"),r("921b");n(r("66fd"));var t=n(r("8611"));function n(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,r("c11b")["createPage"])},"223d":function(e,t,r){"use strict";r.r(t);var n=r("4917"),a=r.n(n);for(var o in n)"default"!==o&&function(e){r.d(t,e,(function(){return n[e]}))}(o);t["default"]=a.a},"27f6":function(e,t,r){"use strict";var n=r("74b1"),a=r.n(n);a.a},"36b6":function(e,t,r){"use strict";var n;r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return o})),r.d(t,"a",(function(){return n}));var a=function(){var e=this,t=e.$createElement;e._self._c},o=[]},4917:function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={data:function(){return{merchantName:"",productName:"",orderList:"",unitPrice:"",depositReceived:0,pdDiscountMoney:"",orderNum:"",pdOrderMoney:"",totalMoney:"",errorMessage:"",bodyShow:!1,timeStamp:"",nonceStr:"",package:"",signType:"",paySign:"",background:"",orderId:""}},onLoad:function(t){var r=this;this.orderId=t.orderId;var n={orderId:this.orderId,userId:e.getStorageSync("openid"),payType:42};this.$request("orderc/order/findOrderInfo",n).then((function(t){"00"==t.code?(r.bodyShow=!0,r.timeStamp=t.data.timestamp,r.nonceStr=t.data.noncestr,r.package=t.data.package,r.signType=t.data.signType,r.paySign=t.data.sign,r.pdOrderMoney=t.data.pdOrderMoney,0==r.pdOrderMoney&&-1==t.data.subOrderType&&e.navigateTo({url:"../my/order/electronicTicket/electronicTicket?orderId="+r.orderId}),r.errorMessage=t.data.errorMessage,r.totalMoney=t.data.totalMoney,r.orderList=t.data.orderList,"undefined"==typeof r.orderList&&(r.orderList="",r.merchantName=t.data.merchantName,r.productName=t.data.productName,r.unitPrice=t.data.unitPrice,r.orderNum=t.data.orderNum,r.depositReceived=t.data.depositReceived,r.pdDiscountMoney=t.data.pdDiscountMoney)):e.showToast({title:t.message,icon:"none"})}))},methods:{goPay:function(){var t=this,r=this;this.errorMessage?e.showToast({title:this.errorMessage,icon:"none"}):(this.background="#E6E6E6",setTimeout((function(){t.background="f9690e"}),1e3),e.requestPayment({provider:"wxpay",timeStamp:this.timeStamp,nonceStr:this.nonceStr,package:this.package,signType:this.signType,paySign:this.paySign,success:function(t){e.navigateTo({url:"../my/order/electronicTicket/electronicTicket?orderId="+r.orderId})},fail:function(t){e.showToast({title:t.errMsg,icon:"none"})}}))}}};t.default=r}).call(this,r("c11b")["default"])},"74b1":function(e,t,r){},8611:function(e,t,r){"use strict";r.r(t);var n=r("36b6"),a=r("223d");for(var o in a)"default"!==o&&function(e){r.d(t,e,(function(){return a[e]}))}(o);r("27f6");var d,i=r("f0c5"),c=Object(i["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],d);t["default"]=c.exports}},[["0d8a","common/runtime","common/vendor"]]]);
\ No newline at end of file
(my["webpackJsonp"]=my["webpackJsonp"]||[]).push([["pages/paySuccess/paySuccess"],{1382:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{outUrl:""}},onLoad:function(e){var n=t.getStorageSync("openid"),r=t.getStorageSync("token"),u=t.getStorageSync("createUserId"),a=t.getStorageSync("userId");this.outUrl="https://wx.pangdly.com/#/paySuccess?orderId="+e.orderId+"&pdOpenid="+n+"&pdToken="+r+"&pdCreateUserId="+u+"&pdUserId="+a},methods:{}};e.default=n}).call(this,n("c11b")["default"])},"1a4b":function(t,e,n){"use strict";var r;n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r}));var u=function(){var t=this,e=t.$createElement;t._self._c},a=[]},ca03:function(t,e,n){"use strict";n.r(e);var r=n("1382"),u=n.n(r);for(var a in r)"default"!==a&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=u.a},f016:function(t,e,n){"use strict";n.r(e);var r=n("1a4b"),u=n("ca03");for(var a in u)"default"!==a&&function(t){n.d(e,t,(function(){return u[t]}))}(a);var c,o=n("f0c5"),d=Object(o["a"])(u["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],c);e["default"]=d.exports},f4ba:function(t,e,n){"use strict";(function(t){n("6909"),n("921b");r(n("66fd"));var e=r(n("f016"));function r(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("c11b")["createPage"])}},[["f4ba","common/runtime","common/vendor"]]]);
\ No newline at end of file
(my["webpackJsonp"]=my["webpackJsonp"]||[]).push([["pages/paySuccess/paySuccess"],{1382:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{outUrl:""}},onLoad:function(t){var n=e.getStorageSync("openid"),r=e.getStorageSync("token"),c=e.getStorageSync("createUserId"),u=e.getStorageSync("userId");this.outUrl="https://wx.pangdly.com/#/paySuccess?orderId="+t.orderId+"&pdOpenid="+n+"&pdToken="+r+"&pdCreateUserId="+c+"&pdUserId="+u},methods:{}};t.default=n}).call(this,n("c11b")["default"])},c3e6:function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return r}));var c=function(){var e=this,t=e.$createElement;e._self._c},u=[]},ca03:function(e,t,n){"use strict";n.r(t);var r=n("1382"),c=n.n(r);for(var u in r)"default"!==u&&function(e){n.d(t,e,(function(){return r[e]}))}(u);t["default"]=c.a},f016:function(e,t,n){"use strict";n.r(t);var r=n("c3e6"),c=n("ca03");for(var u in c)"default"!==u&&function(e){n.d(t,e,(function(){return c[e]}))}(u);var a,o=n("f0c5"),d=Object(o["a"])(c["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],a);t["default"]=d.exports},f4ba:function(e,t,n){"use strict";(function(e){n("6909"),n("921b");r(n("66fd"));var t=r(n("f016"));function r(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("c11b")["createPage"])}},[["f4ba","common/runtime","common/vendor"]]]);
\ No newline at end of file
......@@ -2,6 +2,7 @@
"pages": [
"pages/index/index",
"pages/orderPayment/orderPayment",
"pages/vlog/orderPay/orderPay",
"pages/login/login",
"pages/paySuccess/paySuccess",
"pages/ourPayment/ourPayment",
......@@ -13,6 +14,9 @@
"pages/travelTwo/travelTwo",
"pages/special/special",
"pages/dingzhi/dingzhi",
"pages/combination/combiChoose/combiChoose",
"pages/my/order/electronicTicket/electronicTicket",
"pages/combination/distributionCombiChoose/distributionCombiChoose",
"pages/vlog/vlogIndex/vlogIndex",
"pages/vlog/vlogface/vlogface",
"pages/vlog/scenicList/scenicList",
......
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/main"],{"0f37":function(e,t,n){"use strict";n.r(t);var r=n("3713");for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);n("dbd1");var u,a,f,c,i=n("f0c5"),l=Object(i["a"])(r["default"],u,a,!1,null,null,null,!1,f,c);t["default"]=l.exports},"25fe":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={onLaunch:function(t){var n=t.path;e.setStorageSync("enterUrl",n);var r=e.getStorageSync("token");r||-1!=n.indexOf("pages/ourPayment/ourPayment")||setTimeout((function(){e.navigateTo({url:"/pages/login/login"})}),300)},onShow:function(){},onHide:function(){}};t.default=n}).call(this,n("543d")["default"])},3713:function(e,t,n){"use strict";n.r(t);var r=n("25fe"),o=n.n(r);for(var u in r)"default"!==u&&function(e){n.d(t,e,(function(){return r[e]}))}(u);t["default"]=o.a},d81f:function(e,t,n){"use strict";(function(e){n("6909"),n("921b");var t=f(n("66fd")),r=f(n("0f37")),o=f(n("cd04")),u=f(n("1d0e"));n("48bb");var a=f(n("a87e"));function f(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default.prototype.$commonjs=a.default,t.default.prototype.$request=u.default,t.default.use(o.default),t.default.config.productionTip=!1,r.default.mpType="app";var d=new t.default(i({},r.default));e(d).$mount()}).call(this,n("543d")["createApp"])},dbd1:function(e,t,n){"use strict";var r=n("def2"),o=n.n(r);o.a},def2:function(e,t,n){}},[["d81f","common/runtime","common/vendor"]]]);
\ No newline at end of file
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/main"],{"0f37":function(e,t,n){"use strict";n.r(t);var r=n("3713");for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);n("dbd1");var u,a,f,c,i=n("f0c5"),l=Object(i["a"])(r["default"],u,a,!1,null,null,null,!1,f,c);t["default"]=l.exports},"25fe":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={onLaunch:function(t){var n=t.path;e.setStorageSync("enterOptions",t);var r=e.getStorageSync("token");r||-1!=n.indexOf("pages/ourPayment/ourPayment")||setTimeout((function(){e.navigateTo({url:"/pages/login/login"})}),300)},onShow:function(){},onHide:function(){}};t.default=n}).call(this,n("543d")["default"])},3713:function(e,t,n){"use strict";n.r(t);var r=n("25fe"),o=n.n(r);for(var u in r)"default"!==u&&function(e){n.d(t,e,(function(){return r[e]}))}(u);t["default"]=o.a},d81f:function(e,t,n){"use strict";(function(e){n("6909"),n("921b");var t=f(n("66fd")),r=f(n("0f37")),o=f(n("cd04")),u=f(n("1d0e"));n("48bb");var a=f(n("a87e"));function f(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default.prototype.$commonjs=a.default,t.default.prototype.$request=u.default,t.default.use(o.default),t.default.config.productionTip=!1,r.default.mpType="app";var d=new t.default(i({},r.default));e(d).$mount()}).call(this,n("543d")["createApp"])},dbd1:function(e,t,n){"use strict";var r=n("def2"),o=n.n(r);o.a},def2:function(e,t,n){}},[["d81f","common/runtime","common/vendor"]]]);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{"065f":function(n,t,e){"use strict";e.r(t);var o=e("737f"),r=e.n(o);for(var u in o)"default"!==u&&function(n){e.d(t,n,(function(){return o[n]}))}(u);t["default"]=r.a},"2bba":function(n,t,e){"use strict";(function(n){e("6909"),e("921b");o(e("66fd"));var t=o(e("c545"));function o(n){return n&&n.__esModule?n:{default:n}}n(t.default)}).call(this,e("543d")["createPage"])},"5cfb":function(n,t,e){"use strict";var o;e.d(t,"b",(function(){return r})),e.d(t,"c",(function(){return u})),e.d(t,"a",(function(){return o}));var r=function(){var n=this,t=n.$createElement;n._self._c},u=[]},"737f":function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e={data:function(){return{outUrl:""}},onLoad:function(){var t=n.getStorageSync("openid"),e=n.getStorageSync("token"),o=n.getStorageSync("createUserId"),r=n.getStorageSync("userId");this.outUrl="https://wx.pangdly.com/#/home?pdOpenid="+t+"&pdToken="+e+"&pdCreateUserId="+o+"&pdUserId="+r},methods:{getUserInfo:function(){n.getUserProfile({lang:"zh_CN",desc:"登录",success:function(n){console.log(n)},fail:function(n){}})}}};t.default=e}).call(this,e("543d")["default"])},c545:function(n,t,e){"use strict";e.r(t);var o=e("5cfb"),r=e("065f");for(var u in r)"default"!==u&&function(n){e.d(t,n,(function(){return r[n]}))}(u);e("d9b5");var c,a=e("f0c5"),f=Object(a["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],c);t["default"]=f.exports},d9b5:function(n,t,e){"use strict";var o=e("e90d"),r=e.n(o);r.a},e90d:function(n,t,e){}},[["2bba","common/runtime","common/vendor"]]]);
\ No newline at end of file
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{"065f":function(n,t,e){"use strict";e.r(t);var o=e("737f"),r=e.n(o);for(var u in o)"default"!==u&&function(n){e.d(t,n,(function(){return o[n]}))}(u);t["default"]=r.a},"2a03":function(n,t,e){"use strict";var o;e.d(t,"b",(function(){return r})),e.d(t,"c",(function(){return u})),e.d(t,"a",(function(){return o}));var r=function(){var n=this,t=n.$createElement;n._self._c},u=[]},"2bba":function(n,t,e){"use strict";(function(n){e("6909"),e("921b");o(e("66fd"));var t=o(e("c545"));function o(n){return n&&n.__esModule?n:{default:n}}n(t.default)}).call(this,e("543d")["createPage"])},"737f":function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e={data:function(){return{outUrl:""}},onLoad:function(){var t=n.getStorageSync("openid"),e=n.getStorageSync("token"),o=n.getStorageSync("createUserId"),r=n.getStorageSync("userId");this.outUrl="https://wx.pangdly.com/#/home?pdOpenid="+t+"&pdToken="+e+"&pdCreateUserId="+o+"&pdUserId="+r},methods:{getUserInfo:function(){n.getUserProfile({lang:"zh_CN",desc:"登录",success:function(n){console.log(n)},fail:function(n){}})}}};t.default=e}).call(this,e("543d")["default"])},c545:function(n,t,e){"use strict";e.r(t);var o=e("2a03"),r=e("065f");for(var u in r)"default"!==u&&function(n){e.d(t,n,(function(){return r[n]}))}(u);e("d9b5");var c,a=e("f0c5"),f=Object(a["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],c);t["default"]=f.exports},d9b5:function(n,t,e){"use strict";var o=e("e90d"),r=e.n(o);r.a},e90d:function(n,t,e){}},[["2bba","common/runtime","common/vendor"]]]);
\ No newline at end of file
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/login/login"],{"2f49":function(e,t,n){"use strict";var o;n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return o}));var r=function(){var e=this,t=e.$createElement;e._self._c},a=[]},"9fb8":function(e,t,n){"use strict";n.r(t);var o=n("2f49"),r=n("a824");for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);var c,i=n("f0c5"),u=Object(i["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],c);t["default"]=u.exports},a824:function(e,t,n){"use strict";n.r(t);var o=n("bae4"),r=n.n(o);for(var a in o)"default"!==a&&function(e){n.d(t,e,(function(){return o[e]}))}(a);t["default"]=r.a},bae4:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{}},methods:{},onLoad:function(){var t=this;e.getProvider({service:"oauth",success:function(n){e.login({provider:n.provider[0],success:function(o){if(o.code){var r="";"weixin"==n.provider[0]?r=3:"alipay"==n.provider[0]&&(r=4);var a={code:o.code,source:r};t.$request("wechat/wx/getUserInfoByCode",a).then((function(n){if("00"==n.code){console.log(n);var o=n.data.openid;e.setStorageSync("openid",o);var a=n.data.userId||"",c={openid:o,source:r,userId:a};t.$request("wechatUser/login/findWxUserAndLogin",c).then((function(t){if("00"==t.code){var n=t.data.token||"";e.setStorageSync("token",n);var o=t.data.personId||"";e.setStorageSync("createUserId",o);var r=t.data.userId||"";e.setStorageSync("userId",r);var a=e.getStorageSync("enterUrl");n&&e.redirectTo({url:"/"+a})}else e.showToast({title:t.message,icon:"none"})})).catch((function(t){e.showToast({title:"登录失败",icon:"none"})}))}else e.showToast({title:n.message,icon:"none"})})).catch((function(t){e.showToast({title:"登录失败",icon:"none"})}))}}})}})}};t.default=n}).call(this,n("543d")["default"])},d263:function(e,t,n){"use strict";(function(e){n("6909"),n("921b");o(n("66fd"));var t=o(n("9fb8"));function o(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])}},[["d263","common/runtime","common/vendor"]]]);
\ No newline at end of file
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/login/login"],{"2db3":function(e,t,n){"use strict";var o;n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return o}));var r=function(){var e=this,t=e.$createElement;e._self._c},a=[]},"9fb8":function(e,t,n){"use strict";n.r(t);var o=n("2db3"),r=n("a824");for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);var c,i=n("f0c5"),u=Object(i["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],c);t["default"]=u.exports},a824:function(e,t,n){"use strict";n.r(t);var o=n("bae4"),r=n.n(o);for(var a in o)"default"!==a&&function(e){n.d(t,e,(function(){return o[e]}))}(a);t["default"]=r.a},bae4:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{}},methods:{},onLoad:function(){var t=this;e.getProvider({service:"oauth",success:function(n){e.login({provider:n.provider[0],success:function(o){if(o.code){var r="";"weixin"==n.provider[0]?r=3:"alipay"==n.provider[0]&&(r=4);var a={code:o.code,source:r};t.$request("wechat/wx/getUserInfoByCode",a).then((function(n){if("00"==n.code){var o=n.data.openid;e.setStorageSync("openid",o);var a=n.data.userId||"",c={openid:o,source:r,userId:a};t.$request("wechatUser/login/findWxUserAndLogin",c).then((function(t){if("00"==t.code){var n=t.data.token||"";e.setStorageSync("token",n);var o=t.data.personId||"";e.setStorageSync("createUserId",o);var r=t.data.userId||"";e.setStorageSync("userId",r);var a=e.getStorageSync("enterOptions");n&&e.redirectTo({url:"/"+a.path})}else e.showToast({title:t.message,icon:"none"})})).catch((function(t){e.showToast({title:"登录失败",icon:"none"})}))}else e.showToast({title:n.message,icon:"none"})})).catch((function(t){e.showToast({title:"登录失败",icon:"none"})}))}}})}})}};t.default=n}).call(this,n("543d")["default"])},d263:function(e,t,n){"use strict";(function(e){n("6909"),n("921b");o(n("66fd"));var t=o(n("9fb8"));function o(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])}},[["d263","common/runtime","common/vendor"]]]);
\ 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