Commit 3055ff3e authored by 潘永坪's avatar 潘永坪

bug处理

parent da8fc854
......@@ -7,7 +7,7 @@
export default {
onLaunch: function(options) {//初始化完成时触发(全局只触发一次
let path=options.path
uni.setStorageSync("enterUrl",path)
uni.setStorageSync("enterOptions",options)
let token=uni.getStorageSync("token")
if(!token&&path.indexOf("pages/ourPayment/ourPayment")==-1){//扫码支付页面不需要在此登录
setTimeout(()=>{//解决关联普通二维码扫码首次进入时一直显示登录中
......
......@@ -114,6 +114,33 @@
}
}
,{
"path" : "pages/combination/combiChoose/combiChoose",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}
,{
"path" : "pages/my/order/electronicTicket/electronicTicket",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}
,{
"path" : "pages/combination/distributionCombiChoose/distributionCombiChoose",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}
,{
"path" : "pages/vlog/vlogIndex/vlogIndex",
"style" : {
......
......@@ -35,7 +35,6 @@
}
_this.$request('wechat/wx/getUserInfoByCode',data).then(res => {
if(res.code=='00'){
console.log(res);
let openid=res.data.openid
uni.setStorageSync('openid',openid)
let userId=res.data.userId||""
......@@ -48,10 +47,10 @@
uni.setStorageSync('createUserId',createUserId)
let userId=res.data.userId||""
uni.setStorageSync('userId',userId)
let enterUrl=uni.getStorageSync("enterUrl")
let enterOptions=uni.getStorageSync("enterOptions")
if(token){
uni.redirectTo({
url:"/"+enterUrl
url:"/"+enterOptions.path+"?"+encodeURIComponent(JSON.parse(enterOptions.query))
})
// uni.navigateBack({
// delta:1
......
......@@ -5,3 +5,4 @@
3.uni.getStorageSync("createUserId") //当前用户的id
4.uni.getStorageSync("userId") //平台id
5.uni.getStorageSync("alipayQrCode") //支付宝参数码
6.uni.getStorageSync("enterOptions") //进入项目参数
......@@ -13,18 +13,23 @@
"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",
"pages/vlog/vlogList/vlogList"
"pages/vlog/vlogList/vlogList",
"pages/vlog/photoAlbum/photoAlbum",
"pages/vlog/share/share",
"pages/vlog/myVlog/myVlog",
"pages/vlog/product/product",
"pages/vlog/productDetails/productDetails",
"pages/vlog/uploadPictures/uploadPictures",
"pages/vlog/u-avatar-cropper/u-avatar-cropper",
"pages/vlog/pictureFormat/pictureFormat"
],
"subPackages": [],
"window": {
"navigationBarTextStyle": "white",
"navigationBarTitleText": "胖丁旅行",
"navigationBarTitleText": "",
"navigationBarBackgroundColor": "#192033",
"backgroundColor": "#F8F8F8"
},
......
This source diff could not be displayed because it is too large. You can view the blob instead.
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/combination/combiChoose/combiChoose"],{7426:function(e,n,t){"use strict";(function(e){t("6909"),t("921b");o(t("66fd"));var n=o(t("8e4c"));function o(e){return e&&e.__esModule?e:{default:e}}e(n.default)}).call(this,t("543d")["createPage"])},"7ff8":function(e,n,t){"use strict";var o;t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return d})),t.d(n,"a",(function(){return o}));var r=function(){var e=this,n=e.$createElement;e._self._c},d=[]},"8e4c":function(e,n,t){"use strict";t.r(n);var o=t("7ff8"),r=t("f9bd");for(var d in r)"default"!==d&&function(e){t.d(n,e,(function(){return r[e]}))}(d);var i,a=t("f0c5"),c=Object(a["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],i);n["default"]=c.exports},f4ec:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t={data:function(){return{enterUrl:"",outUrl:""}},onLoad:function(n){if(this.enterUrl=n.q,this.enterUrl){var t=this.getUrlKey("channelId"),o=this.getUrlKey("companyId"),r=this.getUrlKey("merchantId"),d=this.getUrlKey("groupId"),i=this.getUrlKey("groupChannelId"),a=this.getUrlKey("pageType"),c=e.getStorageSync("openid");1==a?this.outUrl="https://wx.pangdly.com/#/combiChoose?channelId="+t+"&merchantId="+r+"&groupId="+d+"&groupChannelId="+i+"&companyId="+o+"&pdOpenid="+c:e.navigateTo({url:"../distributionCombiChoose/distributionCombiChoose?channelId="+t+"&merchantId="+r+"&groupId="+d+"&groupChannelId="+i+"&companyId="+o+"&pdOpenid="+c})}else{var u=n.channelId,l=n.companyId,s=n.merchantId,f=n.groupId,p=n.groupChannelId,h=n.thirdOpenid,g=n.touristType,m=e.getStorageSync("openid"),I="https://wx.pangdly.com/#/combiChoose?thirdOpenid="+h+"&touristType="+g;this.outUrl=I+"&channelId="+u+"&merchantId="+s+"&groupId="+f+"&groupChannelId="+p+"&companyId="+l+"&pdOpenid="+m}},methods:{getUrlKey:function(e){return(new RegExp("[?|&]"+e+"=([^&;]+?)(&|#|;|$)").exec(decodeURIComponent(this.enterUrl))||[,""])[1].replace(/\+/g,"%20")||""}}};n.default=t}).call(this,t("543d")["default"])},f9bd:function(e,n,t){"use strict";t.r(n);var o=t("f4ec"),r=t.n(o);for(var d in o)"default"!==d&&function(e){t.d(n,e,(function(){return o[e]}))}(d);n["default"]=r.a}},[["7426","common/runtime","common/vendor"]]]);
\ No newline at end of file
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/combination/distributionCombiChoose/distributionCombiChoose"],{"4df4":function(e,n,t){"use strict";var o;t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return i})),t.d(n,"a",(function(){return o}));var r=function(){var e=this,n=e.$createElement;e._self._c},i=[]},"552d":function(e,n,t){"use strict";t.r(n);var o=t("7744"),r=t.n(o);for(var i in o)"default"!==i&&function(e){t.d(n,e,(function(){return o[e]}))}(i);n["default"]=r.a},"564a":function(e,n,t){"use strict";t.r(n);var o=t("4df4"),r=t("552d");for(var i in r)"default"!==i&&function(e){t.d(n,e,(function(){return r[e]}))}(i);var d,a=t("f0c5"),u=Object(a["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],d);n["default"]=u.exports},"5eb9":function(e,n,t){"use strict";(function(e){t("6909"),t("921b");o(t("66fd"));var n=o(t("564a"));function o(e){return e&&e.__esModule?e:{default:e}}e(n.default)}).call(this,t("543d")["createPage"])},7744:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t={data:function(){return{enterUrl:"",outUrl:""}},onLoad:function(n){if(this.enterUrl=n.q,this.enterUrl){var t=this.getUrlKey("channelId"),o=this.getUrlKey("companyId"),r=this.getUrlKey("merchantId"),i=this.getUrlKey("groupId"),d=this.getUrlKey("groupChannelId"),a=this.getUrlKey("pageType"),u=e.getStorageSync("openid");1==a?e.navigateTo({url:"../combiChoose/combiChoose?channelId="+t+"&merchantId="+r+"&groupId="+i+"&groupChannelId="+d+"&companyId="+o+"&pdOpenid="+u}):this.outUrl="https://wx.pangdly.com/#/distributionCombiChoose?channelId="+t+"&merchantId="+r+"&groupId="+i+"&groupChannelId="+d+"&companyId="+o+"&pdOpenid="+u}else{var c=n.channelId,l=n.companyId,s=n.merchantId,p=n.groupId,h=n.groupChannelId,f=n.thirdOpenid,g=n.touristType,m=e.getStorageSync("openid"),I="https://wx.pangdly.com/#/distributionCombiChoose?thirdOpenid="+f+"&touristType="+g;this.outUrl=I+"&channelId="+c+"&merchantId="+s+"&groupId="+p+"&groupChannelId="+h+"&companyId="+l+"&pdOpenid="+m}},methods:{getUrlKey:function(e){return(new RegExp("[?|&]"+e+"=([^&;]+?)(&|#|;|$)").exec(decodeURIComponent(this.enterUrl))||[,""])[1].replace(/\+/g,"%20")||""}}};n.default=t}).call(this,t("543d")["default"])}},[["5eb9","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},"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("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 c,a=e("f0c5"),d=Object(a["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],c);t["default"]=d.exports},d9b5:function(n,t,e){"use strict";var o=e("e90d"),r=e.n(o);r.a},d9c7: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=[]},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},"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/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("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"],{"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/my/order/electronicTicket/electronicTicket"],{"30cc":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");this.outUrl="https://wx.pangdly.com/#/unusedDetail?id="+e.orderId+"&pdOpenid="+n},methods:{}};e.default=n}).call(this,n("543d")["default"])},"5d30":function(t,e,n){"use strict";n.r(e);var u=n("30cc"),c=n.n(u);for(var r in u)"default"!==r&&function(t){n.d(e,t,(function(){return u[t]}))}(r);e["default"]=c.a},b50c:function(t,e,n){"use strict";var u;n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return u}));var c=function(){var t=this,e=t.$createElement;t._self._c},r=[]},eeb6:function(t,e,n){"use strict";(function(t){n("6909"),n("921b");u(n("66fd"));var e=u(n("f85e"));function u(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},f85e:function(t,e,n){"use strict";n.r(e);var u=n("b50c"),c=n("5d30");for(var r in c)"default"!==r&&function(t){n.d(e,t,(function(){return c[t]}))}(r);var o,a=n("f0c5"),i=Object(a["a"])(c["default"],u["b"],u["c"],!1,null,null,null,!1,u["a"],o);e["default"]=i.exports}},[["eeb6","common/runtime","common/vendor"]]]);
\ No newline at end of file
(global["webpackJsonp"]=global["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("543d")["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("543d")["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
(global["webpackJsonp"]=global["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("543d")["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("543d")["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
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/paySuccess/paySuccess"],{1382:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e={data:function(){return{outUrl:""}},onLoad:function(n){var e=t.getStorageSync("openid");this.outUrl="https://wx.pangdly.com/#/paySuccess?orderId="+n.orderId+"&pdOpenid="+e},methods:{}};n.default=e}).call(this,e("543d")["default"])},ca03:function(t,n,e){"use strict";e.r(n);var u=e("1382"),a=e.n(u);for(var r in u)"default"!==r&&function(t){e.d(n,t,(function(){return u[t]}))}(r);n["default"]=a.a},f016:function(t,n,e){"use strict";e.r(n);var u=e("ff5d"),a=e("ca03");for(var r in a)"default"!==r&&function(t){e.d(n,t,(function(){return a[t]}))}(r);var c,o=e("f0c5"),f=Object(o["a"])(a["default"],u["b"],u["c"],!1,null,null,null,!1,u["a"],c);n["default"]=f.exports},f4ba:function(t,n,e){"use strict";(function(t){e("6909"),e("921b");u(e("66fd"));var n=u(e("f016"));function u(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("543d")["createPage"])},ff5d:function(t,n,e){"use strict";var u;e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return r})),e.d(n,"a",(function(){return u}));var a=function(){var t=this,n=t.$createElement;t._self._c},r=[]}},[["f4ba","common/runtime","common/vendor"]]]);
\ No newline at end of file
(global["webpackJsonp"]=global["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"),u=e.getStorageSync("createUserId"),a=e.getStorageSync("userId");this.outUrl="https://wx.pangdly.com/#/paySuccess?orderId="+t.orderId+"&pdOpenid="+n+"&pdToken="+r+"&pdCreateUserId="+u+"&pdUserId="+a},methods:{}};t.default=n}).call(this,n("543d")["default"])},c3e6:function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var u=function(){var e=this,t=e.$createElement;e._self._c},a=[]},ca03:function(e,t,n){"use strict";n.r(t);var r=n("1382"),u=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=u.a},f016:function(e,t,n){"use strict";n.r(t);var r=n("c3e6"),u=n("ca03");for(var a in u)"default"!==a&&function(e){n.d(t,e,(function(){return u[e]}))}(a);var c,o=n("f0c5"),d=Object(o["a"])(u["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],c);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("543d")["createPage"])}},[["f4ba","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