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

支付宝小程序开发

parent 651379ce
...@@ -113,6 +113,7 @@ ...@@ -113,6 +113,7 @@
timeStamp: "", //时间戳 timeStamp: "", //时间戳
nonceStr: "", //随机字符串 nonceStr: "", //随机字符串
package: "", //订单详情扩展字符串 package: "", //订单详情扩展字符串
orderInfo:"",//支付宝订单号
flag: "", //setTimeout函数 flag: "", //setTimeout函数
couponData: "", //所有劵数据 couponData: "", //所有劵数据
chooseCouponObj: "", //默认选中最优价格优惠券 chooseCouponObj: "", //默认选中最优价格优惠券
...@@ -154,8 +155,9 @@ ...@@ -154,8 +155,9 @@
} }
}, },
onLoad(option) { onLoad(option) {
this.companyId=(new RegExp('[?|&]companyId=' + '([^&;]+?)(&|#|;|$)').exec(decodeURIComponent(option.q)) || [, ""])[1].replace(/\+/g, '%20') || "" this.enterUrl=option.q
this.merchantId=(new RegExp('[?|&]merchantId=' + '([^&;]+?)(&|#|;|$)').exec(decodeURIComponent(option.q)) || [, ""])[1].replace(/\+/g, '%20') || "" let channelId=this.getUrlKey("channelId")
let companyId=this.getUrlKey("companyId")
if (this.merchantId) { //大商家的有merchantId if (this.merchantId) { //大商家的有merchantId
this.init() this.init()
} else { //小商家没有merchantId } else { //小商家没有merchantId
...@@ -164,6 +166,9 @@ ...@@ -164,6 +166,9 @@
this.initCoupon() this.initCoupon()
}, },
methods: { methods: {
getUrlKey(name){//---------------------------------------------------------------获取url
return(new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(decodeURIComponent(this.enterUrl)) || [, ""])[1].replace(/\+/g, '%20') || "";
},
clickNum(i,index,a) {//---------------------------------------------------------------------输入数字 clickNum(i,index,a) {//---------------------------------------------------------------------输入数字
this.buyMoney += i this.buyMoney += i
this.leftList[index].child[a].background="#dddddd" this.leftList[index].child[a].background="#dddddd"
...@@ -314,6 +319,8 @@ ...@@ -314,6 +319,8 @@
this.timeStamp = res.data.timestamp this.timeStamp = res.data.timestamp
this.nonceStr = res.data.noncestr this.nonceStr = res.data.noncestr
this.package = res.data.package this.package = res.data.package
//支付宝入参
this.orderInfo = res.data.payInfo || ""
this.goPay() this.goPay()
} else { } else {
uni.showToast({ uni.showToast({
...@@ -349,21 +356,21 @@ ...@@ -349,21 +356,21 @@
//#endif //#endif
// #ifdef MP-ALIPAY // #ifdef MP-ALIPAY
uni.requestPayment({ // uni.requestPayment({
provider: 'alipay', // 服务提供商 支付宝支付: alipay 微信支付: wxpay // provider: 'alipay', // 服务提供商 支付宝支付: alipay 微信支付: wxpay
orderInfo: this.payInfo.orderNo, // 支付宝订单号 // orderInfo: this.orderInfo, // 支付宝订单号
success: function (res) { // success: function (res) {
uni.redirectTo({ // uni.redirectTo({
url:"../paySuccess/paySuccess" // url:"../paySuccess/paySuccess"
}) // })
}, // },
fail: function (err) { // fail: function (err) {
uni.showToast({ // uni.showToast({
title:err.errMsg, // title:err.errMsg,
icon:"none" // icon:"none"
}) // })
} // }
}) // })
// #endif // #endif
} }
}, },
......
(my["webpackJsonp"]=my["webpackJsonp"]||[]).push([["pages/login/login"],{"2c9f":function(e,n,t){"use strict";var o;t.d(n,"b",(function(){return c})),t.d(n,"c",(function(){return r})),t.d(n,"a",(function(){return o}));var c=function(){var e=this,n=e.$createElement;e._self._c},r=[]},"9fb8":function(e,n,t){"use strict";t.r(n);var o=t("2c9f"),c=t("a824");for(var r in c)"default"!==r&&function(e){t.d(n,e,(function(){return c[e]}))}(r);var a,i=t("f0c5"),u=Object(i["a"])(c["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],a);n["default"]=u.exports},a824:function(e,n,t){"use strict";t.r(n);var o=t("bae4"),c=t.n(o);for(var r in o)"default"!==r&&function(e){t.d(n,e,(function(){return o[e]}))}(r);n["default"]=c.a},bae4:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t={data:function(){return{}},methods:{},onLoad:function(){var n=this;e.getProvider({service:"oauth",success:function(t){e.login({provider:t.provider[0],success:function(o){if(o.code){var c="";"weixin"==t.provider[0]?c=3:"alipay"==t.provider[0]&&(c=4);var r={code:o.code,source:c};e.showToast({title:o.code+"source"+c,icon:"none"}),n.$request("wechat/wx/getUserInfoByCode",r).then((function(n){if("00"==n.code){e.showToast({title:3,icon:"none"});var t=n.data.openid;e.setStorageSync("openid",t),e.navigateBack({delta:1})}else e.removeStorageSync("openid"),e.showToast({title:n.message,icon:"none"})})).catch((function(n){e.removeStorageSync("openid")}))}}})}})}};n.default=t}).call(this,t("c11b")["default"])},d263:function(e,n,t){"use strict";(function(e){t("6909"),t("921b");o(t("66fd"));var n=o(t("9fb8"));function o(e){return e&&e.__esModule?e:{default:e}}e(n.default)}).call(this,t("c11b")["createPage"])}},[["d263","common/runtime","common/vendor"]]]); (my["webpackJsonp"]=my["webpackJsonp"]||[]).push([["pages/login/login"],{"88f6":function(e,n,t){"use strict";var o;t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return c})),t.d(n,"a",(function(){return o}));var r=function(){var e=this,n=e.$createElement;e._self._c},c=[]},"9fb8":function(e,n,t){"use strict";t.r(n);var o=t("88f6"),r=t("a824");for(var c in r)"default"!==c&&function(e){t.d(n,e,(function(){return r[e]}))}(c);var a,i=t("f0c5"),u=Object(i["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],a);n["default"]=u.exports},a824:function(e,n,t){"use strict";t.r(n);var o=t("bae4"),r=t.n(o);for(var c in o)"default"!==c&&function(e){t.d(n,e,(function(){return o[e]}))}(c);n["default"]=r.a},bae4:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t={data:function(){return{}},methods:{},onLoad:function(){var n=this;e.getProvider({service:"oauth",success:function(t){e.login({provider:t.provider[0],success:function(o){if(o.code){var r="";"weixin"==t.provider[0]?r=3:"alipay"==t.provider[0]&&(r=4);var c={code:o.code,source:r};n.$request("wechat/wx/getUserInfoByCode",c).then((function(n){if("00"==n.code){var t=n.data.openid;e.setStorageSync("openid",t),e.navigateBack({delta:1})}else e.removeStorageSync("openid"),e.showToast({title:n.message,icon:"none"})})).catch((function(n){e.removeStorageSync("openid")}))}}})}})}};n.default=t}).call(this,t("c11b")["default"])},d263:function(e,n,t){"use strict";(function(e){t("6909"),t("921b");o(t("66fd"));var n=o(t("9fb8"));function o(e){return e&&e.__esModule?e:{default:e}}e(n.default)}).call(this,t("c11b")["createPage"])}},[["d263","common/runtime","common/vendor"]]]);
\ No newline at end of file \ No newline at end of file
(my["webpackJsonp"]=my["webpackJsonp"]||[]).push([["pages/ourPayment/ourPayment"],{2296:function(o,e,n){"use strict";n.r(e);var t=n("928d"),a=n("6a16");for(var c in a)"default"!==c&&function(o){n.d(e,o,(function(){return a[o]}))}(c);n("9dd6");var i,s=n("f0c5"),u=Object(s["a"])(a["default"],t["b"],t["c"],!1,null,null,null,!1,t["a"],i);e["default"]=u.exports},3778:function(o,e,n){"use strict";(function(o){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(){n.e("components/orderCoupon").then(function(){return resolve(n("5503"))}.bind(null,n)).catch(n.oe)},a={components:{orderCoupon:t},data:function(){return{buyMoney:"",companyId:"",merchantId:"",name:"",payType:42,paySign:"",signType:"",timeStamp:"",nonceStr:"",package:"",flag:"",couponData:"",chooseCouponObj:"",savedMoney:0,ableConpon:"",orderSource:8,background:"",spaceBackground:"",payBackground:"#1dce2e",leftList:[{child:[{text:1,background:""},{text:2,background:""},{text:3,background:""}]},{child:[{text:4,background:""},{text:5,background:""},{text:6,background:""}]},{child:[{text:7,background:""},{text:8,background:""},{text:9,background:""}]},{child:[{text:0,background:""},{text:".",background:""}]}]}},onLoad:function(o){this.companyId=(new RegExp("[?|&]companyId=([^&;]+?)(&|#|;|$)").exec(decodeURIComponent(o.q))||[,""])[1].replace(/\+/g,"%20")||"",this.merchantId=(new RegExp("[?|&]merchantId=([^&;]+?)(&|#|;|$)").exec(decodeURIComponent(o.q))||[,""])[1].replace(/\+/g,"%20")||"",this.merchantId?this.init():this.initTwo(),this.initCoupon()},methods:{clickNum:function(o,e,n){var t=this;this.buyMoney+=o,this.leftList[e].child[n].background="#dddddd",setTimeout((function(){t.leftList[e].child[n].background=""}),200),clearTimeout(this.flag),this.flag=setTimeout((function(){t.initCoupon()}),1500)},clickEnter:function(){var o=this;this.buyMoney=this.buyMoney.substr(0,this.buyMoney.length-1),this.spaceBackground="#dddddd",setTimeout((function(){o.spaceBackground=""}),200),clearTimeout(this.flag),this.flag=setTimeout((function(){o.initCoupon()}),1500)},couponChoose:function(o){this.chooseCouponObj=o},showCoupon:function(){this.$refs.orderCoupon.showCoupon()},init:function(){var e=this,n={merchantId:this.merchantId,companyId:this.companyId};this.$request("scenic/order/findCodePayInfo",n).then((function(n){"00"==n.code?e.name=n.data.name:o.showToast({title:n.message,icon:"none"})}))},initTwo:function(){var e=this,n={id:this.companyId};this.$request("user/company/detail",n).then((function(n){"00"==n.code?e.name=n.data.companyVo.companyName:o.showToast({title:n.message,icon:"none"})}))},initCoupon:function(){var e=this;this.chooseCouponObj="",this.ableConpon="";var n={money:parseFloat(this.buyMoney)||0,merchantId:this.merchantId,companyId:this.companyId,orderSource:this.orderSource,openid:o.getStorageSync("openid")};this.$request("wechatUser/myPage/usableCouponList",n).then((function(o){"00"==o.code&&(e.chooseCouponObj=o.data.masterSlaveCouponList[0],e.chooseCouponObj.slaveList.length>0?e.savedMoney=e.chooseCouponObj.slaveList[0].savedMoney:e.savedMoney=e.chooseCouponObj.savedMoney)}))},clickPay:function(){var e=this;if(parseFloat(this.buyMoney)){var n=[];""!=this.chooseCouponObj&&(n=[{couponId:this.chooseCouponObj.couponId,couponPrice:this.chooseCouponObj.savedMoney,isMerchant:this.chooseCouponObj.createSource,myCouponId:this.chooseCouponObj.id,couponType:this.chooseCouponObj.couponType}]);var t={companyId:this.companyId,merchantId:this.merchantId,userId:o.getStorageSync("openid"),orderMoney:parseFloat(this.buyMoney),payType:this.payType,orderSource:this.orderSource,couponList:n};this.payBackground="#cccccc",this.$request("orderc/order/codePay",t).then((function(n){if(setTimeout((function(){e.payBackground="#1dce2e"}),1e3),"00"==n.code){if(n.data.errorMessage)return void o.showToast({title:n.data.errorMessage,icon:"none"});e.signType=n.data.signType,e.paySign=n.data.sign,e.timeStamp=n.data.timestamp,e.nonceStr=n.data.noncestr,e.package=n.data.package,e.goPay()}else o.showToast({title:n.message,icon:"none"})})).catch((function(o){e.payBackground="#1dce2e"}))}else o.showToast({title:"请输入正确金额",icon:"none"})},goPay:function(){o.requestPayment({provider:"wxpay",timeStamp:this.timeStamp,nonceStr:this.nonceStr,package:this.package,signType:this.signType,paySign:this.paySign,success:function(e){o.redirectTo({url:"../paySuccess/paySuccess"})},fail:function(e){o.showToast({title:e.errMsg,icon:"none"})}})}},watch:{buyMoney:function(o,e){"."==o&&""==e&&(this.buyMoney="0."),"0"==o&&""==e&&(this.buyMoney="0."),2==o.length&&0==o.substr(0,1)&&"."!=o.substr(1,2)&&(this.buyMoney=o.substr(1,2)),isNaN(o)&&"."!=o&&(this.buyMoney=e);var n=String(this.buyMoney).indexOf(".")+1,t=String(this.buyMoney).length-n;t>2&&n>0&&(this.buyMoney=e),parseFloat(this.buyMoney)?this.payBackground="#1dce2e":this.payBackground="#cccccc"}}};e.default=a}).call(this,n("c11b")["default"])},"6a16":function(o,e,n){"use strict";n.r(e);var t=n("3778"),a=n.n(t);for(var c in t)"default"!==c&&function(o){n.d(e,o,(function(){return t[o]}))}(c);e["default"]=a.a},"7f8b":function(o,e,n){},"928d":function(o,e,n){"use strict";var t;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return t}));var a=function(){var o=this,e=o.$createElement,n=(o._self._c,o.chooseCouponObj?parseFloat(o.savedMoney.toFixed(2)):null);o.$mp.data=Object.assign({},{$root:{m0:n}})},c=[]},"9dd6":function(o,e,n){"use strict";var t=n("7f8b"),a=n.n(t);a.a},d410:function(o,e,n){"use strict";(function(o){n("6909"),n("921b");t(n("66fd"));var e=t(n("2296"));function t(o){return o&&o.__esModule?o:{default:o}}o(e.default)}).call(this,n("c11b")["createPage"])}},[["d410","common/runtime","common/vendor"]]]); (my["webpackJsonp"]=my["webpackJsonp"]||[]).push([["pages/ourPayment/ourPayment"],{"1b2f":function(o,e,n){"use strict";var t;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return t}));var a=function(){var o=this,e=o.$createElement,n=(o._self._c,o.chooseCouponObj?parseFloat(o.savedMoney.toFixed(2)):null);o.$mp.data=Object.assign({},{$root:{m0:n}})},c=[]},2296:function(o,e,n){"use strict";n.r(e);var t=n("1b2f"),a=n("6a16");for(var c in a)"default"!==c&&function(o){n.d(e,o,(function(){return a[o]}))}(c);n("9dd6");var i,s=n("f0c5"),u=Object(s["a"])(a["default"],t["b"],t["c"],!1,null,null,null,!1,t["a"],i);e["default"]=u.exports},3778:function(o,e,n){"use strict";(function(o){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(){n.e("components/orderCoupon").then(function(){return resolve(n("5503"))}.bind(null,n)).catch(n.oe)},a={components:{orderCoupon:t},data:function(){return{buyMoney:"",companyId:"",merchantId:"",name:"",payType:42,paySign:"",signType:"",timeStamp:"",nonceStr:"",package:"",orderInfo:"",flag:"",couponData:"",chooseCouponObj:"",savedMoney:0,ableConpon:"",orderSource:8,background:"",spaceBackground:"",payBackground:"#1dce2e",leftList:[{child:[{text:1,background:""},{text:2,background:""},{text:3,background:""}]},{child:[{text:4,background:""},{text:5,background:""},{text:6,background:""}]},{child:[{text:7,background:""},{text:8,background:""},{text:9,background:""}]},{child:[{text:0,background:""},{text:".",background:""}]}]}},onLoad:function(o){this.enterUrl=o.q;this.getUrlKey("channelId"),this.getUrlKey("companyId");this.merchantId?this.init():this.initTwo(),this.initCoupon()},methods:{getUrlKey:function(o){return(new RegExp("[?|&]"+o+"=([^&;]+?)(&|#|;|$)").exec(decodeURIComponent(this.enterUrl))||[,""])[1].replace(/\+/g,"%20")||""},clickNum:function(o,e,n){var t=this;this.buyMoney+=o,this.leftList[e].child[n].background="#dddddd",setTimeout((function(){t.leftList[e].child[n].background=""}),200),clearTimeout(this.flag),this.flag=setTimeout((function(){t.initCoupon()}),1500)},clickEnter:function(){var o=this;this.buyMoney=this.buyMoney.substr(0,this.buyMoney.length-1),this.spaceBackground="#dddddd",setTimeout((function(){o.spaceBackground=""}),200),clearTimeout(this.flag),this.flag=setTimeout((function(){o.initCoupon()}),1500)},couponChoose:function(o){this.chooseCouponObj=o},showCoupon:function(){this.$refs.orderCoupon.showCoupon()},init:function(){var e=this,n={merchantId:this.merchantId,companyId:this.companyId};this.$request("scenic/order/findCodePayInfo",n).then((function(n){"00"==n.code?e.name=n.data.name:o.showToast({title:n.message,icon:"none"})}))},initTwo:function(){var e=this,n={id:this.companyId};this.$request("user/company/detail",n).then((function(n){"00"==n.code?e.name=n.data.companyVo.companyName:o.showToast({title:n.message,icon:"none"})}))},initCoupon:function(){var e=this;this.chooseCouponObj="",this.ableConpon="";var n={money:parseFloat(this.buyMoney)||0,merchantId:this.merchantId,companyId:this.companyId,orderSource:this.orderSource,openid:o.getStorageSync("openid")};this.$request("wechatUser/myPage/usableCouponList",n).then((function(o){"00"==o.code&&(e.chooseCouponObj=o.data.masterSlaveCouponList[0],e.chooseCouponObj.slaveList.length>0?e.savedMoney=e.chooseCouponObj.slaveList[0].savedMoney:e.savedMoney=e.chooseCouponObj.savedMoney)}))},clickPay:function(){var e=this;if(parseFloat(this.buyMoney)){var n=[];""!=this.chooseCouponObj&&(n=[{couponId:this.chooseCouponObj.couponId,couponPrice:this.chooseCouponObj.savedMoney,isMerchant:this.chooseCouponObj.createSource,myCouponId:this.chooseCouponObj.id,couponType:this.chooseCouponObj.couponType}]);var t={companyId:this.companyId,merchantId:this.merchantId,userId:o.getStorageSync("openid"),orderMoney:parseFloat(this.buyMoney),payType:this.payType,orderSource:this.orderSource,couponList:n};this.payBackground="#cccccc",this.$request("orderc/order/codePay",t).then((function(n){if(setTimeout((function(){e.payBackground="#1dce2e"}),1e3),"00"==n.code){if(n.data.errorMessage)return void o.showToast({title:n.data.errorMessage,icon:"none"});e.signType=n.data.signType,e.paySign=n.data.sign,e.timeStamp=n.data.timestamp,e.nonceStr=n.data.noncestr,e.package=n.data.package,e.orderInfo=n.data.payInfo||"",e.goPay()}else o.showToast({title:n.message,icon:"none"})})).catch((function(o){e.payBackground="#1dce2e"}))}else o.showToast({title:"请输入正确金额",icon:"none"})},goPay:function(){}},watch:{buyMoney:function(o,e){"."==o&&""==e&&(this.buyMoney="0."),"0"==o&&""==e&&(this.buyMoney="0."),2==o.length&&0==o.substr(0,1)&&"."!=o.substr(1,2)&&(this.buyMoney=o.substr(1,2)),isNaN(o)&&"."!=o&&(this.buyMoney=e);var n=String(this.buyMoney).indexOf(".")+1,t=String(this.buyMoney).length-n;t>2&&n>0&&(this.buyMoney=e),parseFloat(this.buyMoney)?this.payBackground="#1dce2e":this.payBackground="#cccccc"}}};e.default=a}).call(this,n("c11b")["default"])},"6a16":function(o,e,n){"use strict";n.r(e);var t=n("3778"),a=n.n(t);for(var c in t)"default"!==c&&function(o){n.d(e,o,(function(){return t[o]}))}(c);e["default"]=a.a},"7f8b":function(o,e,n){},"9dd6":function(o,e,n){"use strict";var t=n("7f8b"),a=n.n(t);a.a},d410:function(o,e,n){"use strict";(function(o){n("6909"),n("921b");t(n("66fd"));var e=t(n("2296"));function t(o){return o&&o.__esModule?o:{default:o}}o(e.default)}).call(this,n("c11b")["createPage"])}},[["d410","common/runtime","common/vendor"]]]);
\ No newline at end of file \ No newline at end of file
...@@ -6,8 +6,37 @@ ...@@ -6,8 +6,37 @@
"setting": { "setting": {
"urlCheck": true, "urlCheck": true,
"es6": true, "es6": true,
"enhance": false,
"postcss": true, "postcss": true,
"minified": true "preloadBackgroundData": false,
"minified": true,
"newFeature": false,
"coverView": true,
"nodeModules": false,
"autoAudits": false,
"showShadowRootInWxmlPanel": true,
"scopeDataCheck": false,
"uglifyFileName": false,
"checkInvalidKey": true,
"checkSiteMap": true,
"uploadWithSourceMap": true,
"compileHotReLoad": false,
"useMultiFrameRuntime": true,
"useApiHook": true,
"useApiHostProcess": true,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
},
"enableEngineNative": false,
"useIsolateContext": true,
"useCompilerModule": true,
"userConfirmedUseCompilerModuleSwitch": false,
"userConfirmedBundleSwitch": false,
"packNpmManually": false,
"packNpmRelationList": [],
"minifyWXSS": true
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "", "libVersion": "",
...@@ -15,19 +44,15 @@ ...@@ -15,19 +44,15 @@
"projectname": "uni-pdtravel", "projectname": "uni-pdtravel",
"condition": { "condition": {
"search": { "search": {
"current": -1,
"list": [] "list": []
}, },
"conversation": { "conversation": {
"current": -1,
"list": [] "list": []
}, },
"game": { "game": {
"current": -1,
"list": [] "list": []
}, },
"miniprogram": { "miniprogram": {
"current": -1,
"list": [] "list": []
} }
} }
......
{"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,wCAAmB;AACnB;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACgFjpB;AACA,MADA,kBACA;AACA;AACA,uBADA,CACA;AADA;AAGA,GALA;AAMA,QANA,oBAMA;AACA;AACA;AACA;AACA,GAVA;AAWA,SAXA,qBAWA;;AAEA,GAbA;AAcA;AACA,eADA,yBACA;AACA;AACA,qBADA;AAEA,kBAFA;AAGA;AACA;AACA,SALA;AAMA;;AAEA,SARA;;AAUA,KAZA,EAdA,E;;;;;;;;;;;;;AChFA;AAAA;AAAA;AAAA;AAA25B,CAAgB,k3BAAG,EAAC,C;;;;;;;;;;;ACA/6B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/index/index.js","sourcesContent":["import 'uni-pages';import '@dcloudio/uni-stat';\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<!--#ifdef MP-ALIPAY -->\r\n\t\t<view class=\"top\">\r\n\t\t\t<view class=\"top-search\">\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<navigator url=\"../scenic/scenic\">\r\n\t\t\t\t\t\t<image src=\"../../static/img/index/classify1.png\"></image>\r\n\t\t\t\t\t\t<view>景区门票</view>\r\n\t\t\t\t\t</navigator>\r\n\t\t\t\t\t\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<navigator url=\"../hotel/hotel\">\r\n\t\t\t\t\t\t<image src=\"../../static/img/index/classify2.png\"></image>\r\n\t\t\t\t\t\t<view>酒店民宿</view>\r\n\t\t\t\t\t</navigator>\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<navigator url=\"../restaurant/restaurant\">\r\n\t\t\t\t\t\t<image src=\"../../static/img/index/classify3.png\"></image>\r\n\t\t\t\t\t\t<view>特色美食</view>\r\n\t\t\t\t\t</navigator>\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<navigator url=\"../nearby/nearby\">\r\n\t\t\t\t\t\t<image src=\"../../static/img/index/classify4.png\"></image>\r\n\t\t\t\t\t\t<view>周边游</view>\r\n\t\t\t\t\t</navigator>\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<navigator url=\"../travelOne/travelOne\">\r\n\t\t\t\t\t\t<image src=\"../../static/img/index/classify5.png\"></image>\r\n\t\t\t\t\t\t<view>跟团游</view>\r\n\t\t\t\t\t</navigator>\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<navigator url=\"../travelTwo/travelTwo\">\r\n\t\t\t\t\t\t<image src=\"../../static/img/index/classify6.png\"></image>\r\n\t\t\t\t\t\t<view>亲子游</view>\r\n\t\t\t\t\t</navigator>\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<navigator url=\"../dingzhi/dingzhi\">\r\n\t\t\t\t\t\t<image src=\"../../static/img/index/classify7.png\"></image>\r\n\t\t\t\t\t\t<view>行程订制</view>\r\n\t\t\t\t\t</navigator>\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<navigator url=\"../special/special\">\r\n\t\t\t\t\t\t<image src=\"../../static/img/index/classify8.png\"></image>\r\n\t\t\t\t\t\t<view>特产好礼</view>\r\n\t\t\t\t\t</navigator>\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<!--#endif-->\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</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\tshowBottom:false,//控制底部显示隐藏\r\n\t\t\t}\r\n\t\t},\r\n\t\tonLoad() {\r\n\t\t\tif(uni.getStorageSync(\"openid\")){\r\n\t\t\t\tthis.showBottom=true\r\n\t\t\t}\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\t\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>\r\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 // 1627458226175\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":""} {"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,wCAAmB;AACnB;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACgFjpB;AACA,MADA,kBACA;AACA;AACA,uBADA,CACA;AADA;AAGA,GALA;AAMA,QANA,oBAMA;AACA;AACA;AACA;AACA,GAVA;AAWA,SAXA,qBAWA;;AAEA,GAbA;AAcA;AACA,eADA,yBACA;AACA;AACA,qBADA;AAEA,kBAFA;AAGA;AACA;AACA,SALA;AAMA;;AAEA,SARA;;AAUA,KAZA,EAdA,E;;;;;;;;;;;;;AChFA;AAAA;AAAA;AAAA;AAA25B,CAAgB,k3BAAG,EAAC,C;;;;;;;;;;;ACA/6B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/index/index.js","sourcesContent":["import 'uni-pages';import '@dcloudio/uni-stat';\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<!--#ifdef MP-ALIPAY -->\r\n\t\t<view class=\"top\">\r\n\t\t\t<view class=\"top-search\">\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<navigator url=\"../scenic/scenic\">\r\n\t\t\t\t\t\t<image src=\"../../static/img/index/classify1.png\"></image>\r\n\t\t\t\t\t\t<view>景区门票</view>\r\n\t\t\t\t\t</navigator>\r\n\t\t\t\t\t\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<navigator url=\"../hotel/hotel\">\r\n\t\t\t\t\t\t<image src=\"../../static/img/index/classify2.png\"></image>\r\n\t\t\t\t\t\t<view>酒店民宿</view>\r\n\t\t\t\t\t</navigator>\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<navigator url=\"../restaurant/restaurant\">\r\n\t\t\t\t\t\t<image src=\"../../static/img/index/classify3.png\"></image>\r\n\t\t\t\t\t\t<view>特色美食</view>\r\n\t\t\t\t\t</navigator>\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<navigator url=\"../nearby/nearby\">\r\n\t\t\t\t\t\t<image src=\"../../static/img/index/classify4.png\"></image>\r\n\t\t\t\t\t\t<view>周边游</view>\r\n\t\t\t\t\t</navigator>\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<navigator url=\"../travelOne/travelOne\">\r\n\t\t\t\t\t\t<image src=\"../../static/img/index/classify5.png\"></image>\r\n\t\t\t\t\t\t<view>跟团游</view>\r\n\t\t\t\t\t</navigator>\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<navigator url=\"../travelTwo/travelTwo\">\r\n\t\t\t\t\t\t<image src=\"../../static/img/index/classify6.png\"></image>\r\n\t\t\t\t\t\t<view>亲子游</view>\r\n\t\t\t\t\t</navigator>\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<navigator url=\"../dingzhi/dingzhi\">\r\n\t\t\t\t\t\t<image src=\"../../static/img/index/classify7.png\"></image>\r\n\t\t\t\t\t\t<view>行程订制</view>\r\n\t\t\t\t\t</navigator>\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<navigator url=\"../special/special\">\r\n\t\t\t\t\t\t<image src=\"../../static/img/index/classify8.png\"></image>\r\n\t\t\t\t\t\t<view>特产好礼</view>\r\n\t\t\t\t\t</navigator>\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<!--#endif-->\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</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\tshowBottom:false,//控制底部显示隐藏\r\n\t\t\t}\r\n\t\t},\r\n\t\tonLoad() {\r\n\t\t\tif(uni.getStorageSync(\"openid\")){\r\n\t\t\t\tthis.showBottom=true\r\n\t\t\t}\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\t\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>\r\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 // 1627631415413\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 \ No newline at end of file
{"version":3,"sources":["uni-app:///main.js",null,"webpack:///E:/pangding/uni-pdtravel/pages/ourPayment/ourPayment.vue?7ae4","webpack:///E:/pangding/uni-pdtravel/pages/ourPayment/ourPayment.vue?5446","webpack:///E:/pangding/uni-pdtravel/pages/ourPayment/ourPayment.vue?e8cb","uni-app:///pages/ourPayment/ourPayment.vue","webpack:///E:/pangding/uni-pdtravel/pages/ourPayment/ourPayment.vue?3baf","webpack:///E:/pangding/uni-pdtravel/pages/ourPayment/ourPayment.vue?5147"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA,wCAAmB;AACnB;AACA,2G;AACAA,UAAU,CAACC,mBAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAuH;AACvH;AAC8D;AACL;AACc;;;AAGvE;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;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACjBA;AAAA;AAAA;AAAA;AAAkoB,CAAgB,8nBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACmGtpB;AACA;AACA,4BADA,EADA;;AAIA,MAJA,kBAIA;AACA;AACA,kBADA,EACA;AACA,mBAFA,EAEA;AACA,oBAHA,EAGA;AACA,cAJA,EAIA;AACA,iBALA,EAKA;AACA,iBANA,EAMA;AACA,kBAPA,EAOA;AACA,mBARA,EAQA;AACA,kBATA,EASA;AACA,iBAVA,EAUA;AACA,cAXA,EAWA;AACA,oBAZA,EAYA;AACA,yBAbA,EAaA;AACA,mBAdA,EAcA;AACA,oBAfA,EAeA;AACA,oBAhBA,EAgBA;AACA,oBAjBA,EAiBA;AACA,yBAlBA,EAkBA;AACA,8BAnBA,EAmBA;AACA;AACA;AACA;AACA,mCADA;AAEA,mCAFA;AAGA,mCAHA,CADA,EADA;;;AAQA;AACA;AACA,mCADA;AAEA,mCAFA;AAGA,mCAHA,CADA,EARA;;;AAeA;AACA;AACA,mCADA;AAEA,mCAFA;AAGA,mCAHA,CADA,EAfA;;;AAsBA;AACA;AACA,mCADA;AAEA,qCAFA,CADA,EAtBA,CApBA;;;;;AAkDA,GAvDA;AAwDA,QAxDA,kBAwDA,MAxDA,EAwDA;AACA;AACA;AACA;AACA;AACA,KAFA,MAEA;AACA;AACA;AACA;AACA,GAjEA;AAkEA;AACA,YADA,oBACA,CADA,EACA,KADA,EACA,CADA,EACA;AACA;AACA;AACA;AACA;AACA,OAFA,EAEA,GAFA;AAGA;AACA;AACA;AACA,OAFA,EAEA,IAFA;AAGA,KAXA;AAYA,cAZA,wBAYA;AACA;AACA;AACA;AACA;AACA,OAFA,EAEA,GAFA;AAGA;AACA;AACA;AACA,OAFA,EAEA,IAFA;AAGA,KAtBA;AAuBA,gBAvBA,wBAuBA,IAvBA,EAuBA;AACA;AACA,KAzBA;AA0BA,cA1BA,wBA0BA;AACA;AACA,KA5BA;AA6BA,QA7BA,kBA6BA;AACA;AACA,qCADA;AAEA,mCAFA;;AAIA;AACA;AACA;AACA,SAFA,MAEA;AACA;AACA,8BADA;AAEA,wBAFA;;AAIA;AACA,OATA;AAUA,KA5CA;AA6CA,WA7CA,qBA6CA;AACA;AACA,4BADA;;AAGA;AACA;AACA;AACA,SAFA,MAEA;AACA;AACA,8BADA;AAEA,wBAFA;;AAIA;AACA,OATA;AAUA,KA3DA;AA4DA,cA5DA,wBA4DA;AACA;AACA;AACA;AACA;AACA,6CADA,EACA;AACA,mCAFA,EAEA;AACA,iCAHA,EAGA;AACA,qCAJA,EAIA;AACA,4CALA;;AAOA;AACA;AACA;AACA;AACA;AACA,WAFA,MAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OA9BA;AA+BA,KAtGA;AAuGA,YAvGA,sBAuGA;AACA;AACA;AACA,0BADA;AAEA,sBAFA;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA,iDADA,EACA;AACA,sDAFA,EAEA;AACA,uDAHA,EAGA;AACA,6CAJA,EAIA;AACA,qDALA,CAKA;AALA,SADA;;AASA;AACA;AACA,iCADA;AAEA,mCAFA;AAGA,4CAHA;AAIA,6CAJA;AAKA,6BALA,EAKA;AACA,qCANA,EAMA;AACA,8BAPA,CAOA;AAPA;AASA;AACA;AACA;AACA;AACA,SAFA,EAEA,IAFA;AAGA;AACA;AACA;AACA,0CADA;AAEA,0BAFA;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAfA,MAeA;AACA;AACA,8BADA;AAEA,wBAFA;;AAIA;AACA,OAzBA,EAyBA,KAzBA,CAyBA;AACA;AACA,OA3BA;AA4BA,KAjKA;AAkKA,SAlKA,mBAkKA;;AAEA;AACA,yBADA;AAEA,iCAFA;AAGA,+BAHA;AAIA,6BAJA;AAKA,+BALA;AAMA,6BANA;AAOA;AACA;AACA,2CADA;;AAGA,SAXA;AAYA;AACA;AACA,6BADA;AAEA,wBAFA;;AAIA,SAjBA;;;;;;;;;;;;;;;;;;;;;AAsCA,KA1MA,EAlEA;;AA8QA;AACA,YADA,oBACA,GADA,EACA,MADA,EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAfA,CAeA;AACA,+CAhBA,CAgBA;AACA;AACA;AACA;AACA;AACA;AACA,OAFA,MAEA;AACA;AACA;AACA,KA1BA,EA9QA,E;;;;;;;;;;;;;ACnGA;AAAA;AAAA;AAAA;AAA4pC,CAAgB,glCAAG,EAAC,C;;;;;;;;;;;ACAhrC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/ourPayment/ourPayment.js","sourcesContent":["import 'uni-pages';import '@dcloudio/uni-stat';\nimport Vue from 'vue'\nimport Page from './pages/ourPayment/ourPayment.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./ourPayment.vue?vue&type=template&id=35fbbb06&\"\nvar renderjs\nimport script from \"./ourPayment.vue?vue&type=script&lang=js&\"\nexport * from \"./ourPayment.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ourPayment.vue?vue&type=style&index=0&lang=scss&\"\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/ourPayment/ourPayment.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!./ourPayment.vue?vue&type=template&id=35fbbb06&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var m0 = _vm.chooseCouponObj ? parseFloat(_vm.savedMoney.toFixed(2)) : null\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n m0: m0\n }\n }\n )\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!./ourPayment.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!./ourPayment.vue?vue&type=script&lang=js&\"","<template>\n\t<view class=\"bigBox\">\n\t\t<view class=\"top\">\r\n\t\t\t<view class=\"topName\">\r\n\t\t\t\t<text class=\"topIcon\">\r\n\t\t\t\t\t<text class=\"iconfont icon-tubiaolunkuo-\"></text>\r\n\t\t\t\t</text>\r\n\t\t\t\t<text>{{name}}</text>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"topMoney\">\r\n\t\t\t\t<text class=\"moneyText\">支付金额</text>\r\n\t\t\t\t<view class=\"moneyNumber\">\r\n\t\t\t\t\t<text class=\"iconfont icon-fl-renminbi\" style=\"font-size: 56rpx;\"></text>\r\n\t\t\t\t\t<text>{{buyMoney}}</text>\r\n\t\t\t\t\t<text></text>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<!-- -----------------------------有可用优惠券,并且未选中----------------------------------------------------- -->\r\n\t\t\t<!-- <view class=\"topCoupon\" v-if=\"couponData.usableCouponList&&couponData.usableCouponList.length>0&&chooseCouponObj==''\" @click=\"showCoupon()\">\r\n\t\t\t <view class=\"couponLeft\">\r\n\t\t\t\t\t<text>券</text>\r\n\t\t\t\t\t<text>{{couponData.usableCouponList[0].couponName}}</text>\r\n\t\t\t\t</view>\r\n\t\t\t\t\r\n\t\t\t\t<view class=\"couponRight\">\r\n\t\t\t\t\t<text>未选优惠券</text>\r\n\t\t\t\t\t<text class=\"iconfont icon-you\" style=\"font-size:32rpx;\"></text>\r\n\t\t\t\t</view>\r\n\t\t\t</view> -->\r\n\t\t\t<!-- -----------------------------有可用优惠券----------------------------------------------------- -->\r\n\t\t\t<!-- <view class=\"topCoupon\" v-if=\"chooseCouponObj!=''\" @click=\"showCoupon()\">\r\n\t\t\t\t<view class=\"couponLeft\">\r\n\t\t\t\t\t<text>券</text>\r\n\t\t\t\t\t<text>{{chooseCouponObj.couponName}}</text>\r\n\t\t\t\t</view>\r\n\t\t\t\t\r\n\t\t\t\t<view class=\"couponRight\">\r\n\t\t\t\t\t<text>-</text>\r\n\t\t\t\t\t<text>{{chooseCouponObj.savedMoney.toFixed(2)}}</text>\r\n\t\t\t\t\t<text class=\"iconfont icon-you\" style=\"font-size:32rpx;\"></text>\r\n\t\t\t\t</view>\r\n\t\t\t</view> -->\r\n\t\t\t<!-- -----------------------------------------------可用优惠券条件--------------------------------------- -->\r\n\t\t\t<!-- <view class=\"topCoupon\" v-if=\"ableConpon!=''\" @click=\"showCoupon()\">\r\n\t\t\t\t<view class=\"couponLeft\">\r\n\t\t\t\t\t<text>券</text>\r\n\t\t\t\t\t<text>{{ableConpon.couponName}}</text>\r\n\t\t\t\t</view>\r\n\t\t\t\t\r\n\t\t\t\t<view class=\"couponRight\">\r\n\t\t\t\t\t<text>{{ableConpon.couponRule}}</text>\r\n\t\t\t\t\t<text class=\"iconfont icon-you\" style=\"font-size:32rpx;\"></text>\r\n\t\t\t\t</view>\r\n\t\t\t</view> -->\r\n\t\t\t\r\n\t\t\t<view class=\"topCoupon\" v-if=\"chooseCouponObj\">\r\n\t\t\t\t<view class=\"couponLeft\">\r\n\t\t\t\t\t<text>券</text>\r\n\t\t\t\t\t<text>{{chooseCouponObj.couponName}}</text>\r\n\t\t\t\t</view>\r\n\t\t\t\t\r\n\t\t\t\t<view class=\"couponRight\">\r\n\t\t\t\t\t<text style=\"font-weight: bold;\">\r\n\t\t\t\t\t <text style=\"font-size:26rpx;font-weight:400;\">-¥</text>\r\n\t\t\t\t\t {{parseFloat(savedMoney.toFixed(2))}}\r\n\t\t\t\t\t</text>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t\r\n\t\t<view class=\"middle\">\r\n\t\t\t友情提示:请核对以上付款金额、付款商户等信息与交易一致。经您确认支付的金额,商家不会退回亦无赔偿义务。\r\n\t\t</view>\r\n\t\t\r\n\t\t<view class=\"bottom\">\r\n\t\t\t<view class=\"botLeft\">\r\n\t\t\t\t<view v-for=\"(item,index) of leftList\" :key=\"index\">\r\n\t\t\t\t\t<text @click=\"clickNum(items.text,index,a)\" v-for=\"(items,a) of item.child\" :key=\"a\" :style=\"{'background':items.background}\">{{items.text}}</text>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t\r\n\t\t\t<view class=\"botRight\">\r\n\t\t\t\t<view class=\"rightOne\" @click=\"clickEnter()\" :style=\"{'background':spaceBackground}\">\r\n\t\t\t\t\t<text class=\"iconfont icon-im_huige\" style=\"font-size:70rpx;\"></text>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"rightTwo\" ref=\"pay\" @click=\"clickPay()\" :style=\"{'background':payBackground}\">\r\n\t\t\t\t\t<view>立即</view>\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</view>\r\n\t\t<!-------------------------------------------券弹窗------------------------------>\r\n\t\t <!-- <orderCoupon :couponData=\"couponData\" ref=\"orderCoupon\" @couponChoose=\"couponChoose\" :chooseCouponObj=\"chooseCouponObj\"></orderCoupon> -->\n\t</view>\n\t\r\n</template>\n\n<script>\r\n\timport orderCoupon from \"@/components/orderCoupon.vue\"\n\texport default {\r\n\t\tcomponents:{\r\n\t\t\torderCoupon\r\n\t\t},\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tbuyMoney:\"\", //输入金额\r\n\t\t\t\tcompanyId: \"\", //公司Id\r\n\t\t\t\tmerchantId: \"\", //商户Id\r\n\t\t\t\tname: \"\", //商家名称\r\n\t\t\t\tpayType:42,//支付类型,微信小程序支付\r\n\t\t\t\tpaySign: \"\", //签名\r\n\t\t\t\tsignType: \"\", //签名方式\r\n\t\t\t\ttimeStamp: \"\", //时间戳\r\n\t\t\t\tnonceStr: \"\", //随机字符串\r\n\t\t\t\tpackage: \"\", //订单详情扩展字符串\r\n\t\t\t\tflag: \"\", //setTimeout函数\r\n\t\t\t\tcouponData: \"\", //所有劵数据\r\n\t\t\t\tchooseCouponObj: \"\", //默认选中最优价格优惠券\r\n\t\t\t\tsavedMoney:0,//优惠金额\r\n\t\t\t\tableConpon: \"\", //没有可用优惠券时,达到一定条件可用,显示达到的条件\r\n\t\t\t\torderSource:8,//1公众号平台、2公众号组合页面1、3公众号组合页面2、4胖丁伙伴app、5第三方自助机、6第三方票房窗口、7平台快捷买单、8扫码支付\r\n\t\t\t\tbackground:\"\",//普通按钮背景颜色\r\n\t\t\t\tspaceBackground:\"\",//回格按钮背景颜色\r\n\t\t\t\tpayBackground:\"#1dce2e\",//支付背景颜色\r\n\t\t\t\tleftList:[//左侧按钮数据\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tchild:[\r\n\t\t\t\t\t\t\t{text:1,background:\"\"},\r\n\t\t\t\t\t\t\t{text:2,background:\"\"},\r\n\t\t\t\t\t\t\t{text:3,background:\"\"}\r\n\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\t\tchild:[\r\n\t\t\t\t\t\t\t{text:4,background:\"\"},\r\n\t\t\t\t\t\t\t{text:5,background:\"\"},\r\n\t\t\t\t\t\t\t{text:6,background:\"\"},\r\n\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\t\tchild:[\r\n\t\t\t\t\t\t\t{text:7,background:\"\"},\r\n\t\t\t\t\t\t\t{text:8,background:\"\"},\r\n\t\t\t\t\t\t\t{text:9,background:\"\"},\r\n\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\t\tchild:[\r\n\t\t\t\t\t\t\t{text:0,background:\"\"},\r\n\t\t\t\t\t\t\t{text:'.',background:\"\"},\r\n\t\t\t\t\t\t]\r\n\t\t\t\t\t}\r\n\t\t\t\t]\n\t\t\t}\n\t\t},\r\n\t\tonLoad(option) {\r\n\t\t\tthis.companyId=(new RegExp('[?|&]companyId=' + '([^&;]+?)(&|#|;|$)').exec(decodeURIComponent(option.q)) || [, \"\"])[1].replace(/\\+/g, '%20') || \"\"\r\n\t\t\tthis.merchantId=(new RegExp('[?|&]merchantId=' + '([^&;]+?)(&|#|;|$)').exec(decodeURIComponent(option.q)) || [, \"\"])[1].replace(/\\+/g, '%20') || \"\"\r\n\t\t\tif (this.merchantId) { //大商家的有merchantId\r\n\t\t\t this.init()\r\n\t\t\t} else { //小商家没有merchantId\r\n\t\t\t this.initTwo()\r\n\t\t\t}\r\n\t\t\tthis.initCoupon()\r\n\t\t},\n\t\tmethods: {\n\t\t\tclickNum(i,index,a) {//---------------------------------------------------------------------输入数字\r\n\t\t\t this.buyMoney += i\r\n\t\t\t this.leftList[index].child[a].background=\"#dddddd\"\r\n\t\t\t setTimeout(()=>{\r\n\t\t\t\tthis.leftList[index].child[a].background=\"\"\r\n\t\t\t },200)\r\n\t\t\t clearTimeout(this.flag)\r\n\t\t\t this.flag = setTimeout(()=>{\r\n\t\t\t this.initCoupon()\r\n\t\t\t }, 1500)\r\n\t\t\t},\r\n\t\t\tclickEnter(){//---------------------------------------------------------------------退格\r\n\t\t\t\tthis.buyMoney = this.buyMoney.substr(0, this.buyMoney.length - 1)\r\n\t\t\t\tthis.spaceBackground=\"#dddddd\"\r\n\t\t\t\tsetTimeout(()=>{\r\n\t\t\t\t\tthis.spaceBackground=\"\"\r\n\t\t\t\t},200)\r\n\t\t\t\tclearTimeout(this.flag)\r\n\t\t\t\tthis.flag = setTimeout(()=>{\r\n\t\t\t\t this.initCoupon()\r\n\t\t\t\t}, 1500)\r\n\t\t\t},\r\n\t\t\tcouponChoose(data) { //---------------------------------------------------------------子组件券选择之后触发的事件\r\n\t\t\t this.chooseCouponObj = data\r\n\t\t\t},\r\n\t\t\tshowCoupon() { //---------------------------------------------------------------------展示券列表\r\n\t\t\t this.$refs.orderCoupon.showCoupon()\r\n\t\t\t},\r\n\t\t\tinit() { //---------------------------------------------------------------------------初始化获取商家名称,大商家\r\n\t\t\t let data = {\r\n\t\t\t \"merchantId\": this.merchantId,\r\n\t\t\t \"companyId\": this.companyId,\r\n\t\t\t }\r\n\t\t\t this.$request(\"scenic/order/findCodePayInfo\",data).then((res) => {\r\n\t\t\t if (res.code ==\"00\") {\r\n\t\t\t this.name = res.data.name\r\n\t\t\t } else {\r\n\t\t\t uni.showToast({\r\n\t\t\t\t\t title:res.message,\r\n\t\t\t\t\t icon:\"none\"\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\tinitTwo() { //--------------------------------------------------------------------------初始化获取商家名称,没有merchantId的小商家\r\n\t\t\t let data = {\r\n\t\t\t \"id\": this.companyId,\r\n\t\t\t }\r\n\t\t\t this.$request(\"user/company/detail\", data).then((res) => {\r\n\t\t\t if (res.code==\"00\"){\r\n\t\t\t this.name = res.data.companyVo.companyName\r\n\t\t\t } else {\r\n\t\t\t uni.showToast({\r\n\t\t\t\t\t title:res.message,\r\n\t\t\t\t\t icon:\"none\"\r\n\t\t\t\t\t})\r\n\t\t\t }\r\n\t\t\t })\r\n\t\t\t},\r\n\t\t\tinitCoupon() { //-------------------------------------------------------------------------加载优惠券\r\n\t\t\t let savedMoneyList = []\r\n\t\t\t this.chooseCouponObj = \"\"\r\n\t\t\t this.ableConpon = \"\"\r\n\t\t\t let data = {\r\n\t\t\t money:parseFloat(this.buyMoney)||0, //订单总价,不算券,和现金红包\r\n\t\t\t merchantId:this.merchantId, //商户Id\r\n\t\t\t companyId:this.companyId,//公司Id\r\n\t\t\t orderSource:this.orderSource,//订单来源 8扫码支付\r\n\t\t\t openid:uni.getStorageSync(\"openid\")\r\n\t\t\t }\r\n\t\t\t this.$request(\"wechatUser/myPage/usableCouponList\",data).then((res) => {\r\n\t\t\t if (res.code == \"00\") {\r\n\t\t\t\t\tthis.chooseCouponObj=res.data.masterSlaveCouponList[0]\r\n\t\t\t\t\tif(this.chooseCouponObj.slaveList.length>0){\r\n\t\t\t\t\t\tthis.savedMoney=this.chooseCouponObj.slaveList[0].savedMoney\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tthis.savedMoney=this.chooseCouponObj.savedMoney\r\n\t\t\t\t\t}\r\n\t\t\t\t\t // this.couponData = res.data\r\n\t\t\t\t\t // if (res.data.usableCouponList.length > 0) {\r\n\t\t\t\t\t\t// res.data.usableCouponList.forEach((item) => { //获取最优券\r\n\t\t\t\t\t\t// savedMoneyList.push(item.savedMoney)\r\n\t\t\t\t\t\t// })\r\n\t\t\t\t\t\t// let maxMoney = Math.max.apply(null, savedMoneyList)\r\n\t\t\t\t\t\t// let index = res.data.usableCouponList.findIndex((item) => {\r\n\t\t\t\t\t\t// return maxMoney == item.savedMoney\r\n\t\t\t\t\t\t// })\r\n\t\t\t\t\t\t// if(index>-1){\r\n\t\t\t\t\t\t// this.chooseCouponObj = res.data.usableCouponList[index]\r\n\t\t\t\t\t\t// }\r\n\t\t\t\t\t // } else {\r\n\t\t\t\t\t\t// if (res.data.unusableCouponList.length > 0) {\r\n\t\t\t\t\t\t// res.data.unusableCouponList.forEach((item, i) => { //没有可用优惠券,有达到条件可以用的优惠券,先显示条件,达到条件时显示可用优惠券\r\n\t\t\t\t\t\t// \tif (item.isProduct == 1) {\r\n\t\t\t\t\t\t// \t this.ableConpon = item\r\n\t\t\t\t\t\t// \t}\r\n\t\t\t\t\t\t// })\r\n\t\t\t\t\t\t// }\r\n\t\t\t\t\t // }\r\n\t\t\t }\r\n\t\t\t })\r\n\t\t\t},\r\n\t\t\tclickPay(){//---------------------------------------------------------------点击立即支付,获取支付需要的参数\r\n\t\t\t\tif (!parseFloat(this.buyMoney)) {\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle:\"请输入正确金额\",\r\n\t\t\t\t\t\ticon:\"none\"\r\n\t\t\t\t\t})\r\n\t\t\t\t\treturn\r\n\t\t\t\t}\r\n\t\t\t\tlet couponList = []\r\n\t\t\t\tif (this.chooseCouponObj != '') {\r\n\t\t\t\t couponList = [ //券列表\r\n\t\t\t\t {\r\n\t\t\t\t couponId: this.chooseCouponObj.couponId, //券id\r\n\t\t\t\t couponPrice: this.chooseCouponObj.savedMoney, //券价格\r\n\t\t\t\t isMerchant: this.chooseCouponObj.createSource, //是否是商户的券\r\n\t\t\t\t myCouponId: this.chooseCouponObj.id, //领取人编号\r\n\t\t\t\t couponType:this.chooseCouponObj.couponType//券类型\r\n\t\t\t\t }\r\n\t\t\t\t ]\r\n\t\t\t\t}\r\n\t\t\t\tlet data = {\r\n\t\t\t\t companyId: this.companyId,\r\n\t\t\t\t merchantId: this.merchantId,\r\n\t\t\t\t userId:uni.getStorageSync(\"openid\"),\r\n\t\t\t\t orderMoney: parseFloat(this.buyMoney),\r\n\t\t\t\t payType: this.payType, //支付类型,\r\n\t\t\t\t orderSource:this.orderSource,//订单来源 8扫码支付\r\n\t\t\t\t couponList,//券列表\r\n\t\t\t\t}\r\n\t\t\t\tthis.payBackground=\"#cccccc\"\r\n\t\t\t\tthis.$request(\"orderc/order/codePay\", data).then((res) => {\r\n\t\t\t\t setTimeout(() => {\r\n\t\t\t\t\tthis.payBackground=\"#1dce2e\"\r\n\t\t\t\t },1000)\r\n\t\t\t\t if(res.code==\"00\") {\r\n\t\t\t\t if (res.data.errorMessage) {\r\n\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\ttitle:res.data.errorMessage,\r\n\t\t\t\t\t\t\ticon:\"none\"\r\n\t\t\t\t\t })\r\n\t\t\t\t return\r\n\t\t\t\t }\r\n\t\t\t\t //微信入参\r\n\t\t\t\t this.signType = res.data.signType\r\n\t\t\t\t this.paySign = res.data.sign\r\n\t\t\t\t this.timeStamp = res.data.timestamp\r\n\t\t\t\t this.nonceStr = res.data.noncestr\r\n\t\t\t\t this.package = res.data.package\r\n\t\t\t\t\tthis.goPay()\r\n\t\t\t\t } else {\r\n\t\t\t\t uni.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\t}).catch((err) => {\r\n\t\t\t\t this.payBackground=\"#1dce2e\"\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tgoPay(){//------------------------------------------------------------------------------去支付\r\n\t\t\t\t// #ifdef MP-WEIXIN\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\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\t//#endif\r\n\t\t\t\t\r\n\t\t\t\t// #ifdef MP-ALIPAY\r\n\t\t\t\tuni.requestPayment({\r\n\t\t\t\t\tprovider: 'alipay', // 服务提供商 支付宝支付: alipay 微信支付: wxpay\r\n\t\t\t\t\torderInfo: this.payInfo.orderNo, // 支付宝订单号\r\n\t\t\t\t\tsuccess: function (res) {\r\n\t\t\t\t\t\tuni.redirectTo({\r\n\t\t\t\t\t\t url:\"../paySuccess/paySuccess\"\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t},\r\n\t\t\t\t\tfail: function (err) {\r\n\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\ttitle:err.errMsg,\r\n\t\t\t\t\t\t\ticon:\"none\"\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t\t// #endif\r\n\t\t\t}\n\t\t},\r\n\t\twatch: {\r\n\t\t buyMoney(val, oldVal) {\r\n\t\t if (val == \".\" && oldVal == \"\") { //首位数是小数点自动加上0\r\n\t\t this.buyMoney = 0 + \".\"\r\n\t\t }\r\n\t\t if (val == \"0\" && oldVal == \"\") { //首位数是0自动加上小数点\r\n\t\t this.buyMoney = 0 + \".\"\r\n\t\t }\r\n\t\t\tif (val.length == 2) { //防止回退之后出现01,02等状况\r\n\t\t\t if (val.substr(0, 1) == 0 && val.substr(1, 2) != \".\") {\r\n\t\t\t this.buyMoney = val.substr(1, 2)\r\n\t\t\t }\r\n\t\t\t}\r\n\t\t if (isNaN(val) && val != \".\") { //出现非数字,输入无效\r\n\t\t this.buyMoney = oldVal\r\n\t\t }\r\n\t\t var x = String(this.buyMoney).indexOf('.') + 1; //小数点的位置\r\n\t\t var y = String(this.buyMoney).length - x; //小数的位数\r\n\t\t if (y > 2 && x > 0) {\r\n\t\t this.buyMoney = oldVal\r\n\t\t }\r\n\t\t\tif (parseFloat(this.buyMoney)) {\r\n\t\t\t\tthis.payBackground=\"#1dce2e\"\r\n\t\t\t} else {\r\n\t\t\t\tthis.payBackground=\"#cccccc\"\r\n\t\t\t}\r\n\t\t }\r\n\t\t}\n\t}\n</script>\n\n<style lang=\"scss\">\n\t.bigBox{background:#f5f5f5;height: 100%;}\r\n\t/*上部分*/\r\n\t.top{background: #FFFFFF;}\r\n\t.topName{font-size:30rpx;font-weight: bold;padding-top: 50rpx;display: flex;align-items: center;justify-content: center;}\r\n\t.topIcon{display:inline-flex;margin-right:10rpx;width:50rpx;height:50rpx;border-radius:50%;background:#FF8B57;align-items:center;justify-content:center;}\r\n\t.icon-tubiaolunkuo-{font-size:36rpx;color: #FFFFFF;font-weight: 400;}\r\n\t.topMoney{padding:80rpx 24rpx 24rpx 24rpx;display: flex;justify-content:space-between;align-items: center;}\r\n\t.moneyText{color: #FF3C00;font-size:28rpx;font-weight: bold;}\r\n\t.moneyNumber text:nth-child(2){font-size:62rpx;font-weight: bold;position: relative;left: -6rpx;}\r\n\t.moneyNumber text:last-child{animation: dis 1.5s infinite;transition: 1s;width: 1px;height:56rpx;display: inline-block;background: #333333;position: relative;top:8rpx;}\r\n\t.topCoupon{display: flex;height: 90rpx;border-top:1px solid $dividing-ine;align-items:center;padding:0 24rpx;justify-content: space-between;}\r\n\t.couponLeft{font-size:24rpx;}\r\n\t.couponLeft text:first-child{margin-right:10rpx;display: inline-block;width:30rpx;height:30rpx;background: #f9690e;color: #FFFFFF;text-align: center;line-height:28rpx;border-radius:4rpx;}\r\n\t.couponRight{position:relative;left:8rpx;}\r\n\t.couponRight text:first-child{font-size:32rpx;color:#f9690e;}\r\n\t.couponRight text:nth-child(2){font-size: 32rpx;color: #F9690E;font-weight:bold;}\r\n\t/*中间部分*/\r\n\t.middle{padding:50rpx 24rpx 0 24rpx;font-size: 24rpx;color: #999999;line-height: 40rpx;}\t\r\n\t/*下部分*/\r\n\t.bottom{position:absolute;bottom:0;height:40%;background: #FFFFFF;width:100%;display: flex;border-top:1px solid #dddddd;font-size:50rpx;}\r\n\t.botLeft{width:75%;}\r\n\t.botLeft view{height:25%;display: flex;border-bottom:1px solid #dddddd;}\r\n\t.botLeft view:last-child{border:none;}\r\n\t.botLeft view:last-child text:first-child{width:66.7%;}\r\n\t.botLeft view:last-child text:last-child{width: 33.3%;}\r\n\t.botLeft view text{flex:1;height:100%;display:inline-flex;align-items: center;justify-content: center;border-right:1px solid #dddddd;}\r\n\t.botLeft view:last-child text{flex:initial;}\r\n\t.botRight{width:25%;}\r\n\t.rightOne{height: 25%;display: flex;align-items:center;justify-content: center;border-bottom:1px solid #dddddd;}\r\n\t.rightTwo{height: 75%;border:none;color: #FFFFFF;display: flex;flex-direction:column;align-items:center;justify-content: center;}\t\r\n\t@keyframes dis{\r\n\t from{\r\n\t opacity: 0;\r\n\t }\r\n\t to{\r\n\t opacity: 1;\r\n\t }\r\n\t}\n</style>\n","import mod from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-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--8-oneOf-1-2!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!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!./ourPayment.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-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--8-oneOf-1-2!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!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!./ourPayment.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1627554882611\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":""} {"version":3,"sources":["uni-app:///main.js",null,"webpack:///E:/pangding/uni-pdtravel/pages/ourPayment/ourPayment.vue?7ae4","webpack:///E:/pangding/uni-pdtravel/pages/ourPayment/ourPayment.vue?5446","webpack:///E:/pangding/uni-pdtravel/pages/ourPayment/ourPayment.vue?e8cb","uni-app:///pages/ourPayment/ourPayment.vue","webpack:///E:/pangding/uni-pdtravel/pages/ourPayment/ourPayment.vue?3baf","webpack:///E:/pangding/uni-pdtravel/pages/ourPayment/ourPayment.vue?5147"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA,wCAAmB;AACnB;AACA,2G;AACAA,UAAU,CAACC,mBAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAuH;AACvH;AAC8D;AACL;AACc;;;AAGvE;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;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACjBA;AAAA;AAAA;AAAA;AAAkoB,CAAgB,8nBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACmGtpB;AACA;AACA,4BADA,EADA;;AAIA,MAJA,kBAIA;AACA;AACA,kBADA,EACA;AACA,mBAFA,EAEA;AACA,oBAHA,EAGA;AACA,cAJA,EAIA;AACA,iBALA,EAKA;AACA,iBANA,EAMA;AACA,kBAPA,EAOA;AACA,mBARA,EAQA;AACA,kBATA,EASA;AACA,iBAVA,EAUA;AACA,mBAXA,EAWA;AACA,cAZA,EAYA;AACA,oBAbA,EAaA;AACA,yBAdA,EAcA;AACA,mBAfA,EAeA;AACA,oBAhBA,EAgBA;AACA,oBAjBA,EAiBA;AACA,oBAlBA,EAkBA;AACA,yBAnBA,EAmBA;AACA,8BApBA,EAoBA;AACA;AACA;AACA;AACA,mCADA;AAEA,mCAFA;AAGA,mCAHA,CADA,EADA;;;AAQA;AACA;AACA,mCADA;AAEA,mCAFA;AAGA,mCAHA,CADA,EARA;;;AAeA;AACA;AACA,mCADA;AAEA,mCAFA;AAGA,mCAHA,CADA,EAfA;;;AAsBA;AACA;AACA,mCADA;AAEA,qCAFA,CADA,EAtBA,CArBA;;;;;AAmDA,GAxDA;AAyDA,QAzDA,kBAyDA,MAzDA,EAyDA;AACA;AACA;AACA;AACA;AACA;AACA,KAFA,MAEA;AACA;AACA;AACA;AACA,GAnEA;AAoEA;AACA,aADA,qBACA,IADA,EACA;AACA;AACA,KAHA;AAIA,YAJA,oBAIA,CAJA,EAIA,KAJA,EAIA,CAJA,EAIA;AACA;AACA;AACA;AACA;AACA,OAFA,EAEA,GAFA;AAGA;AACA;AACA;AACA,OAFA,EAEA,IAFA;AAGA,KAdA;AAeA,cAfA,wBAeA;AACA;AACA;AACA;AACA;AACA,OAFA,EAEA,GAFA;AAGA;AACA;AACA;AACA,OAFA,EAEA,IAFA;AAGA,KAzBA;AA0BA,gBA1BA,wBA0BA,IA1BA,EA0BA;AACA;AACA,KA5BA;AA6BA,cA7BA,wBA6BA;AACA;AACA,KA/BA;AAgCA,QAhCA,kBAgCA;AACA;AACA,qCADA;AAEA,mCAFA;;AAIA;AACA;AACA;AACA,SAFA,MAEA;AACA;AACA,8BADA;AAEA,wBAFA;;AAIA;AACA,OATA;AAUA,KA/CA;AAgDA,WAhDA,qBAgDA;AACA;AACA,4BADA;;AAGA;AACA;AACA;AACA,SAFA,MAEA;AACA;AACA,8BADA;AAEA,wBAFA;;AAIA;AACA,OATA;AAUA,KA9DA;AA+DA,cA/DA,wBA+DA;AACA;AACA;AACA;AACA;AACA,6CADA,EACA;AACA,mCAFA,EAEA;AACA,iCAHA,EAGA;AACA,qCAJA,EAIA;AACA,4CALA;;AAOA;AACA;AACA;AACA;AACA;AACA,WAFA,MAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OA9BA;AA+BA,KAzGA;AA0GA,YA1GA,sBA0GA;AACA;AACA;AACA,0BADA;AAEA,sBAFA;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA,iDADA,EACA;AACA,sDAFA,EAEA;AACA,uDAHA,EAGA;AACA,6CAJA,EAIA;AACA,qDALA,CAKA;AALA,SADA;;AASA;AACA;AACA,iCADA;AAEA,mCAFA;AAGA,4CAHA;AAIA,6CAJA;AAKA,6BALA,EAKA;AACA,qCANA,EAMA;AACA,8BAPA,CAOA;AAPA;AASA;AACA;AACA;AACA;AACA,SAFA,EAEA,IAFA;AAGA;AACA;AACA;AACA,0CADA;AAEA,0BAFA;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAjBA,MAiBA;AACA;AACA,8BADA;AAEA,wBAFA;;AAIA;AACA,OA3BA,EA2BA,KA3BA,CA2BA;AACA;AACA,OA7BA;AA8BA,KAtKA;AAuKA,SAvKA,mBAuKA;;AAEA;AACA,yBADA;AAEA,iCAFA;AAGA,+BAHA;AAIA,6BAJA;AAKA,+BALA;AAMA,6BANA;AAOA;AACA;AACA,2CADA;;AAGA,SAXA;AAYA;AACA;AACA,6BADA;AAEA,wBAFA;;AAIA,SAjBA;;;;;;;;;;;;;;;;;;;;;AAsCA,KA/MA,EApEA;;AAqRA;AACA,YADA,oBACA,GADA,EACA,MADA,EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAfA,CAeA;AACA,+CAhBA,CAgBA;AACA;AACA;AACA;AACA;AACA;AACA,OAFA,MAEA;AACA;AACA;AACA,KA1BA,EArRA,E;;;;;;;;;;;;;ACnGA;AAAA;AAAA;AAAA;AAA4pC,CAAgB,glCAAG,EAAC,C;;;;;;;;;;;ACAhrC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/ourPayment/ourPayment.js","sourcesContent":["import 'uni-pages';import '@dcloudio/uni-stat';\nimport Vue from 'vue'\nimport Page from './pages/ourPayment/ourPayment.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./ourPayment.vue?vue&type=template&id=35fbbb06&\"\nvar renderjs\nimport script from \"./ourPayment.vue?vue&type=script&lang=js&\"\nexport * from \"./ourPayment.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ourPayment.vue?vue&type=style&index=0&lang=scss&\"\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/ourPayment/ourPayment.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!./ourPayment.vue?vue&type=template&id=35fbbb06&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var m0 = _vm.chooseCouponObj ? parseFloat(_vm.savedMoney.toFixed(2)) : null\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n m0: m0\n }\n }\n )\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!./ourPayment.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!./ourPayment.vue?vue&type=script&lang=js&\"","<template>\n\t<view class=\"bigBox\">\n\t\t<view class=\"top\">\r\n\t\t\t<view class=\"topName\">\r\n\t\t\t\t<text class=\"topIcon\">\r\n\t\t\t\t\t<text class=\"iconfont icon-tubiaolunkuo-\"></text>\r\n\t\t\t\t</text>\r\n\t\t\t\t<text>{{name}}</text>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"topMoney\">\r\n\t\t\t\t<text class=\"moneyText\">支付金额</text>\r\n\t\t\t\t<view class=\"moneyNumber\">\r\n\t\t\t\t\t<text class=\"iconfont icon-fl-renminbi\" style=\"font-size: 56rpx;\"></text>\r\n\t\t\t\t\t<text>{{buyMoney}}</text>\r\n\t\t\t\t\t<text></text>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<!-- -----------------------------有可用优惠券,并且未选中----------------------------------------------------- -->\r\n\t\t\t<!-- <view class=\"topCoupon\" v-if=\"couponData.usableCouponList&&couponData.usableCouponList.length>0&&chooseCouponObj==''\" @click=\"showCoupon()\">\r\n\t\t\t <view class=\"couponLeft\">\r\n\t\t\t\t\t<text>券</text>\r\n\t\t\t\t\t<text>{{couponData.usableCouponList[0].couponName}}</text>\r\n\t\t\t\t</view>\r\n\t\t\t\t\r\n\t\t\t\t<view class=\"couponRight\">\r\n\t\t\t\t\t<text>未选优惠券</text>\r\n\t\t\t\t\t<text class=\"iconfont icon-you\" style=\"font-size:32rpx;\"></text>\r\n\t\t\t\t</view>\r\n\t\t\t</view> -->\r\n\t\t\t<!-- -----------------------------有可用优惠券----------------------------------------------------- -->\r\n\t\t\t<!-- <view class=\"topCoupon\" v-if=\"chooseCouponObj!=''\" @click=\"showCoupon()\">\r\n\t\t\t\t<view class=\"couponLeft\">\r\n\t\t\t\t\t<text>券</text>\r\n\t\t\t\t\t<text>{{chooseCouponObj.couponName}}</text>\r\n\t\t\t\t</view>\r\n\t\t\t\t\r\n\t\t\t\t<view class=\"couponRight\">\r\n\t\t\t\t\t<text>-</text>\r\n\t\t\t\t\t<text>{{chooseCouponObj.savedMoney.toFixed(2)}}</text>\r\n\t\t\t\t\t<text class=\"iconfont icon-you\" style=\"font-size:32rpx;\"></text>\r\n\t\t\t\t</view>\r\n\t\t\t</view> -->\r\n\t\t\t<!-- -----------------------------------------------可用优惠券条件--------------------------------------- -->\r\n\t\t\t<!-- <view class=\"topCoupon\" v-if=\"ableConpon!=''\" @click=\"showCoupon()\">\r\n\t\t\t\t<view class=\"couponLeft\">\r\n\t\t\t\t\t<text>券</text>\r\n\t\t\t\t\t<text>{{ableConpon.couponName}}</text>\r\n\t\t\t\t</view>\r\n\t\t\t\t\r\n\t\t\t\t<view class=\"couponRight\">\r\n\t\t\t\t\t<text>{{ableConpon.couponRule}}</text>\r\n\t\t\t\t\t<text class=\"iconfont icon-you\" style=\"font-size:32rpx;\"></text>\r\n\t\t\t\t</view>\r\n\t\t\t</view> -->\r\n\t\t\t\r\n\t\t\t<view class=\"topCoupon\" v-if=\"chooseCouponObj\">\r\n\t\t\t\t<view class=\"couponLeft\">\r\n\t\t\t\t\t<text>券</text>\r\n\t\t\t\t\t<text>{{chooseCouponObj.couponName}}</text>\r\n\t\t\t\t</view>\r\n\t\t\t\t\r\n\t\t\t\t<view class=\"couponRight\">\r\n\t\t\t\t\t<text style=\"font-weight: bold;\">\r\n\t\t\t\t\t <text style=\"font-size:26rpx;font-weight:400;\">-¥</text>\r\n\t\t\t\t\t {{parseFloat(savedMoney.toFixed(2))}}\r\n\t\t\t\t\t</text>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t\r\n\t\t<view class=\"middle\">\r\n\t\t\t友情提示:请核对以上付款金额、付款商户等信息与交易一致。经您确认支付的金额,商家不会退回亦无赔偿义务。\r\n\t\t</view>\r\n\t\t\r\n\t\t<view class=\"bottom\">\r\n\t\t\t<view class=\"botLeft\">\r\n\t\t\t\t<view v-for=\"(item,index) of leftList\" :key=\"index\">\r\n\t\t\t\t\t<text @click=\"clickNum(items.text,index,a)\" v-for=\"(items,a) of item.child\" :key=\"a\" :style=\"{'background':items.background}\">{{items.text}}</text>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t\r\n\t\t\t<view class=\"botRight\">\r\n\t\t\t\t<view class=\"rightOne\" @click=\"clickEnter()\" :style=\"{'background':spaceBackground}\">\r\n\t\t\t\t\t<text class=\"iconfont icon-im_huige\" style=\"font-size:70rpx;\"></text>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"rightTwo\" ref=\"pay\" @click=\"clickPay()\" :style=\"{'background':payBackground}\">\r\n\t\t\t\t\t<view>立即</view>\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</view>\r\n\t\t<!-------------------------------------------券弹窗------------------------------>\r\n\t\t <!-- <orderCoupon :couponData=\"couponData\" ref=\"orderCoupon\" @couponChoose=\"couponChoose\" :chooseCouponObj=\"chooseCouponObj\"></orderCoupon> -->\n\t</view>\n\t\r\n</template>\n\n<script>\r\n\timport orderCoupon from \"@/components/orderCoupon.vue\"\n\texport default {\r\n\t\tcomponents:{\r\n\t\t\torderCoupon\r\n\t\t},\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tbuyMoney:\"\", //输入金额\r\n\t\t\t\tcompanyId: \"\", //公司Id\r\n\t\t\t\tmerchantId: \"\", //商户Id\r\n\t\t\t\tname: \"\", //商家名称\r\n\t\t\t\tpayType:42,//支付类型,微信小程序支付\r\n\t\t\t\tpaySign: \"\", //签名\r\n\t\t\t\tsignType: \"\", //签名方式\r\n\t\t\t\ttimeStamp: \"\", //时间戳\r\n\t\t\t\tnonceStr: \"\", //随机字符串\r\n\t\t\t\tpackage: \"\", //订单详情扩展字符串\r\n\t\t\t\torderInfo:\"\",//支付宝订单号\r\n\t\t\t\tflag: \"\", //setTimeout函数\r\n\t\t\t\tcouponData: \"\", //所有劵数据\r\n\t\t\t\tchooseCouponObj: \"\", //默认选中最优价格优惠券\r\n\t\t\t\tsavedMoney:0,//优惠金额\r\n\t\t\t\tableConpon: \"\", //没有可用优惠券时,达到一定条件可用,显示达到的条件\r\n\t\t\t\torderSource:8,//1公众号平台、2公众号组合页面1、3公众号组合页面2、4胖丁伙伴app、5第三方自助机、6第三方票房窗口、7平台快捷买单、8扫码支付\r\n\t\t\t\tbackground:\"\",//普通按钮背景颜色\r\n\t\t\t\tspaceBackground:\"\",//回格按钮背景颜色\r\n\t\t\t\tpayBackground:\"#1dce2e\",//支付背景颜色\r\n\t\t\t\tleftList:[//左侧按钮数据\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tchild:[\r\n\t\t\t\t\t\t\t{text:1,background:\"\"},\r\n\t\t\t\t\t\t\t{text:2,background:\"\"},\r\n\t\t\t\t\t\t\t{text:3,background:\"\"}\r\n\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\t\tchild:[\r\n\t\t\t\t\t\t\t{text:4,background:\"\"},\r\n\t\t\t\t\t\t\t{text:5,background:\"\"},\r\n\t\t\t\t\t\t\t{text:6,background:\"\"},\r\n\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\t\tchild:[\r\n\t\t\t\t\t\t\t{text:7,background:\"\"},\r\n\t\t\t\t\t\t\t{text:8,background:\"\"},\r\n\t\t\t\t\t\t\t{text:9,background:\"\"},\r\n\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\t\tchild:[\r\n\t\t\t\t\t\t\t{text:0,background:\"\"},\r\n\t\t\t\t\t\t\t{text:'.',background:\"\"},\r\n\t\t\t\t\t\t]\r\n\t\t\t\t\t}\r\n\t\t\t\t]\n\t\t\t}\n\t\t},\r\n\t\tonLoad(option) {\r\n\t\t\tthis.enterUrl=option.q\r\n\t\t\tlet channelId=this.getUrlKey(\"channelId\")\r\n\t\t\tlet companyId=this.getUrlKey(\"companyId\")\r\n\t\t\tif (this.merchantId) { //大商家的有merchantId\r\n\t\t\t this.init()\r\n\t\t\t} else { //小商家没有merchantId\r\n\t\t\t this.initTwo()\r\n\t\t\t}\r\n\t\t\tthis.initCoupon()\r\n\t\t},\n\t\tmethods: {\r\n\t\t\tgetUrlKey(name){//---------------------------------------------------------------获取url\r\n\t\t\t return(new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(decodeURIComponent(this.enterUrl)) || [, \"\"])[1].replace(/\\+/g, '%20') || \"\";\r\n\t\t\t},\n\t\t\tclickNum(i,index,a) {//---------------------------------------------------------------------输入数字\r\n\t\t\t this.buyMoney += i\r\n\t\t\t this.leftList[index].child[a].background=\"#dddddd\"\r\n\t\t\t setTimeout(()=>{\r\n\t\t\t\tthis.leftList[index].child[a].background=\"\"\r\n\t\t\t },200)\r\n\t\t\t clearTimeout(this.flag)\r\n\t\t\t this.flag = setTimeout(()=>{\r\n\t\t\t this.initCoupon()\r\n\t\t\t }, 1500)\r\n\t\t\t},\r\n\t\t\tclickEnter(){//---------------------------------------------------------------------退格\r\n\t\t\t\tthis.buyMoney = this.buyMoney.substr(0, this.buyMoney.length - 1)\r\n\t\t\t\tthis.spaceBackground=\"#dddddd\"\r\n\t\t\t\tsetTimeout(()=>{\r\n\t\t\t\t\tthis.spaceBackground=\"\"\r\n\t\t\t\t},200)\r\n\t\t\t\tclearTimeout(this.flag)\r\n\t\t\t\tthis.flag = setTimeout(()=>{\r\n\t\t\t\t this.initCoupon()\r\n\t\t\t\t}, 1500)\r\n\t\t\t},\r\n\t\t\tcouponChoose(data) { //---------------------------------------------------------------子组件券选择之后触发的事件\r\n\t\t\t this.chooseCouponObj = data\r\n\t\t\t},\r\n\t\t\tshowCoupon() { //---------------------------------------------------------------------展示券列表\r\n\t\t\t this.$refs.orderCoupon.showCoupon()\r\n\t\t\t},\r\n\t\t\tinit() { //---------------------------------------------------------------------------初始化获取商家名称,大商家\r\n\t\t\t let data = {\r\n\t\t\t \"merchantId\": this.merchantId,\r\n\t\t\t \"companyId\": this.companyId,\r\n\t\t\t }\r\n\t\t\t this.$request(\"scenic/order/findCodePayInfo\",data).then((res) => {\r\n\t\t\t if (res.code ==\"00\") {\r\n\t\t\t this.name = res.data.name\r\n\t\t\t } else {\r\n\t\t\t uni.showToast({\r\n\t\t\t\t\t title:res.message,\r\n\t\t\t\t\t icon:\"none\"\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\tinitTwo() { //--------------------------------------------------------------------------初始化获取商家名称,没有merchantId的小商家\r\n\t\t\t let data = {\r\n\t\t\t \"id\": this.companyId,\r\n\t\t\t }\r\n\t\t\t this.$request(\"user/company/detail\", data).then((res) => {\r\n\t\t\t if (res.code==\"00\"){\r\n\t\t\t this.name = res.data.companyVo.companyName\r\n\t\t\t } else {\r\n\t\t\t uni.showToast({\r\n\t\t\t\t\t title:res.message,\r\n\t\t\t\t\t icon:\"none\"\r\n\t\t\t\t\t})\r\n\t\t\t }\r\n\t\t\t })\r\n\t\t\t},\r\n\t\t\tinitCoupon() { //-------------------------------------------------------------------------加载优惠券\r\n\t\t\t let savedMoneyList = []\r\n\t\t\t this.chooseCouponObj = \"\"\r\n\t\t\t this.ableConpon = \"\"\r\n\t\t\t let data = {\r\n\t\t\t money:parseFloat(this.buyMoney)||0, //订单总价,不算券,和现金红包\r\n\t\t\t merchantId:this.merchantId, //商户Id\r\n\t\t\t companyId:this.companyId,//公司Id\r\n\t\t\t orderSource:this.orderSource,//订单来源 8扫码支付\r\n\t\t\t openid:uni.getStorageSync(\"openid\")\r\n\t\t\t }\r\n\t\t\t this.$request(\"wechatUser/myPage/usableCouponList\",data).then((res) => {\r\n\t\t\t if (res.code == \"00\") {\r\n\t\t\t\t\tthis.chooseCouponObj=res.data.masterSlaveCouponList[0]\r\n\t\t\t\t\tif(this.chooseCouponObj.slaveList.length>0){\r\n\t\t\t\t\t\tthis.savedMoney=this.chooseCouponObj.slaveList[0].savedMoney\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tthis.savedMoney=this.chooseCouponObj.savedMoney\r\n\t\t\t\t\t}\r\n\t\t\t\t\t // this.couponData = res.data\r\n\t\t\t\t\t // if (res.data.usableCouponList.length > 0) {\r\n\t\t\t\t\t\t// res.data.usableCouponList.forEach((item) => { //获取最优券\r\n\t\t\t\t\t\t// savedMoneyList.push(item.savedMoney)\r\n\t\t\t\t\t\t// })\r\n\t\t\t\t\t\t// let maxMoney = Math.max.apply(null, savedMoneyList)\r\n\t\t\t\t\t\t// let index = res.data.usableCouponList.findIndex((item) => {\r\n\t\t\t\t\t\t// return maxMoney == item.savedMoney\r\n\t\t\t\t\t\t// })\r\n\t\t\t\t\t\t// if(index>-1){\r\n\t\t\t\t\t\t// this.chooseCouponObj = res.data.usableCouponList[index]\r\n\t\t\t\t\t\t// }\r\n\t\t\t\t\t // } else {\r\n\t\t\t\t\t\t// if (res.data.unusableCouponList.length > 0) {\r\n\t\t\t\t\t\t// res.data.unusableCouponList.forEach((item, i) => { //没有可用优惠券,有达到条件可以用的优惠券,先显示条件,达到条件时显示可用优惠券\r\n\t\t\t\t\t\t// \tif (item.isProduct == 1) {\r\n\t\t\t\t\t\t// \t this.ableConpon = item\r\n\t\t\t\t\t\t// \t}\r\n\t\t\t\t\t\t// })\r\n\t\t\t\t\t\t// }\r\n\t\t\t\t\t // }\r\n\t\t\t }\r\n\t\t\t })\r\n\t\t\t},\r\n\t\t\tclickPay(){//---------------------------------------------------------------点击立即支付,获取支付需要的参数\r\n\t\t\t\tif (!parseFloat(this.buyMoney)) {\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle:\"请输入正确金额\",\r\n\t\t\t\t\t\ticon:\"none\"\r\n\t\t\t\t\t})\r\n\t\t\t\t\treturn\r\n\t\t\t\t}\r\n\t\t\t\tlet couponList = []\r\n\t\t\t\tif (this.chooseCouponObj != '') {\r\n\t\t\t\t couponList = [ //券列表\r\n\t\t\t\t {\r\n\t\t\t\t couponId: this.chooseCouponObj.couponId, //券id\r\n\t\t\t\t couponPrice: this.chooseCouponObj.savedMoney, //券价格\r\n\t\t\t\t isMerchant: this.chooseCouponObj.createSource, //是否是商户的券\r\n\t\t\t\t myCouponId: this.chooseCouponObj.id, //领取人编号\r\n\t\t\t\t couponType:this.chooseCouponObj.couponType//券类型\r\n\t\t\t\t }\r\n\t\t\t\t ]\r\n\t\t\t\t}\r\n\t\t\t\tlet data = {\r\n\t\t\t\t companyId: this.companyId,\r\n\t\t\t\t merchantId: this.merchantId,\r\n\t\t\t\t userId:uni.getStorageSync(\"openid\"),\r\n\t\t\t\t orderMoney: parseFloat(this.buyMoney),\r\n\t\t\t\t payType: this.payType, //支付类型,\r\n\t\t\t\t orderSource:this.orderSource,//订单来源 8扫码支付\r\n\t\t\t\t couponList,//券列表\r\n\t\t\t\t}\r\n\t\t\t\tthis.payBackground=\"#cccccc\"\r\n\t\t\t\tthis.$request(\"orderc/order/codePay\", data).then((res) => {\r\n\t\t\t\t setTimeout(() => {\r\n\t\t\t\t\tthis.payBackground=\"#1dce2e\"\r\n\t\t\t\t },1000)\r\n\t\t\t\t if(res.code==\"00\") {\r\n\t\t\t\t if (res.data.errorMessage) {\r\n\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\ttitle:res.data.errorMessage,\r\n\t\t\t\t\t\t\ticon:\"none\"\r\n\t\t\t\t\t })\r\n\t\t\t\t return\r\n\t\t\t\t }\r\n\t\t\t\t //微信入参\r\n\t\t\t\t this.signType = res.data.signType\r\n\t\t\t\t this.paySign = res.data.sign\r\n\t\t\t\t this.timeStamp = res.data.timestamp\r\n\t\t\t\t this.nonceStr = res.data.noncestr\r\n\t\t\t\t this.package = res.data.package\r\n\t\t\t\t\t//支付宝入参\r\n\t\t\t\t\tthis.orderInfo = res.data.payInfo || \"\"\r\n\t\t\t\t\tthis.goPay()\r\n\t\t\t\t } else {\r\n\t\t\t\t uni.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\t}).catch((err) => {\r\n\t\t\t\t this.payBackground=\"#1dce2e\"\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tgoPay(){//------------------------------------------------------------------------------去支付\r\n\t\t\t\t// #ifdef MP-WEIXIN\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\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\t//#endif\r\n\t\t\t\t\r\n\t\t\t\t// #ifdef MP-ALIPAY\r\n\t\t\t\t// uni.requestPayment({\r\n\t\t\t\t// \tprovider: 'alipay', // 服务提供商 支付宝支付: alipay 微信支付: wxpay\r\n\t\t\t\t// \torderInfo: this.orderInfo, // 支付宝订单号\r\n\t\t\t\t// \tsuccess: function (res) {\r\n\t\t\t\t// \t\tuni.redirectTo({\r\n\t\t\t\t// \t\t url:\"../paySuccess/paySuccess\"\r\n\t\t\t\t// \t\t})\r\n\t\t\t\t// \t},\r\n\t\t\t\t// \tfail: function (err) {\r\n\t\t\t\t// \t\tuni.showToast({\r\n\t\t\t\t// \t\t\ttitle:err.errMsg,\r\n\t\t\t\t// \t\t\ticon:\"none\"\r\n\t\t\t\t// \t\t})\r\n\t\t\t\t// \t}\r\n\t\t\t\t// })\r\n\t\t\t\t// #endif\r\n\t\t\t}\n\t\t},\r\n\t\twatch: {\r\n\t\t buyMoney(val, oldVal) {\r\n\t\t if (val == \".\" && oldVal == \"\") { //首位数是小数点自动加上0\r\n\t\t this.buyMoney = 0 + \".\"\r\n\t\t }\r\n\t\t if (val == \"0\" && oldVal == \"\") { //首位数是0自动加上小数点\r\n\t\t this.buyMoney = 0 + \".\"\r\n\t\t }\r\n\t\t\tif (val.length == 2) { //防止回退之后出现01,02等状况\r\n\t\t\t if (val.substr(0, 1) == 0 && val.substr(1, 2) != \".\") {\r\n\t\t\t this.buyMoney = val.substr(1, 2)\r\n\t\t\t }\r\n\t\t\t}\r\n\t\t if (isNaN(val) && val != \".\") { //出现非数字,输入无效\r\n\t\t this.buyMoney = oldVal\r\n\t\t }\r\n\t\t var x = String(this.buyMoney).indexOf('.') + 1; //小数点的位置\r\n\t\t var y = String(this.buyMoney).length - x; //小数的位数\r\n\t\t if (y > 2 && x > 0) {\r\n\t\t this.buyMoney = oldVal\r\n\t\t }\r\n\t\t\tif (parseFloat(this.buyMoney)) {\r\n\t\t\t\tthis.payBackground=\"#1dce2e\"\r\n\t\t\t} else {\r\n\t\t\t\tthis.payBackground=\"#cccccc\"\r\n\t\t\t}\r\n\t\t }\r\n\t\t}\n\t}\n</script>\n\n<style lang=\"scss\">\n\t.bigBox{background:#f5f5f5;height: 100%;}\r\n\t/*上部分*/\r\n\t.top{background: #FFFFFF;}\r\n\t.topName{font-size:30rpx;font-weight: bold;padding-top: 50rpx;display: flex;align-items: center;justify-content: center;}\r\n\t.topIcon{display:inline-flex;margin-right:10rpx;width:50rpx;height:50rpx;border-radius:50%;background:#FF8B57;align-items:center;justify-content:center;}\r\n\t.icon-tubiaolunkuo-{font-size:36rpx;color: #FFFFFF;font-weight: 400;}\r\n\t.topMoney{padding:80rpx 24rpx 24rpx 24rpx;display: flex;justify-content:space-between;align-items: center;}\r\n\t.moneyText{color: #FF3C00;font-size:28rpx;font-weight: bold;}\r\n\t.moneyNumber text:nth-child(2){font-size:62rpx;font-weight: bold;position: relative;left: -6rpx;}\r\n\t.moneyNumber text:last-child{animation: dis 1.5s infinite;transition: 1s;width: 1px;height:56rpx;display: inline-block;background: #333333;position: relative;top:8rpx;}\r\n\t.topCoupon{display: flex;height: 90rpx;border-top:1px solid $dividing-ine;align-items:center;padding:0 24rpx;justify-content: space-between;}\r\n\t.couponLeft{font-size:24rpx;}\r\n\t.couponLeft text:first-child{margin-right:10rpx;display: inline-block;width:30rpx;height:30rpx;background: #f9690e;color: #FFFFFF;text-align: center;line-height:28rpx;border-radius:4rpx;}\r\n\t.couponRight{position:relative;left:8rpx;}\r\n\t.couponRight text:first-child{font-size:32rpx;color:#f9690e;}\r\n\t.couponRight text:nth-child(2){font-size: 32rpx;color: #F9690E;font-weight:bold;}\r\n\t/*中间部分*/\r\n\t.middle{padding:50rpx 24rpx 0 24rpx;font-size: 24rpx;color: #999999;line-height: 40rpx;}\t\r\n\t/*下部分*/\r\n\t.bottom{position:absolute;bottom:0;height:40%;background: #FFFFFF;width:100%;display: flex;border-top:1px solid #dddddd;font-size:50rpx;}\r\n\t.botLeft{width:75%;}\r\n\t.botLeft view{height:25%;display: flex;border-bottom:1px solid #dddddd;}\r\n\t.botLeft view:last-child{border:none;}\r\n\t.botLeft view:last-child text:first-child{width:66.7%;}\r\n\t.botLeft view:last-child text:last-child{width: 33.3%;}\r\n\t.botLeft view text{flex:1;height:100%;display:inline-flex;align-items: center;justify-content: center;border-right:1px solid #dddddd;}\r\n\t.botLeft view:last-child text{flex:initial;}\r\n\t.botRight{width:25%;}\r\n\t.rightOne{height: 25%;display: flex;align-items:center;justify-content: center;border-bottom:1px solid #dddddd;}\r\n\t.rightTwo{height: 75%;border:none;color: #FFFFFF;display: flex;flex-direction:column;align-items:center;justify-content: center;}\t\r\n\t@keyframes dis{\r\n\t from{\r\n\t opacity: 0;\r\n\t }\r\n\t to{\r\n\t opacity: 1;\r\n\t }\r\n\t}\n</style>\n","import mod from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-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--8-oneOf-1-2!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!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!./ourPayment.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-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--8-oneOf-1-2!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!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!./ourPayment.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1627626915470\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 \ No newline at end of file
...@@ -254,6 +254,7 @@ __webpack_require__.r(__webpack_exports__); ...@@ -254,6 +254,7 @@ __webpack_require__.r(__webpack_exports__);
timeStamp: "", //时间戳 timeStamp: "", //时间戳
nonceStr: "", //随机字符串 nonceStr: "", //随机字符串
package: "", //订单详情扩展字符串 package: "", //订单详情扩展字符串
orderInfo: "", //支付宝订单号
flag: "", //setTimeout函数 flag: "", //setTimeout函数
couponData: "", //所有劵数据 couponData: "", //所有劵数据
chooseCouponObj: "", //默认选中最优价格优惠券 chooseCouponObj: "", //默认选中最优价格优惠券
...@@ -295,8 +296,9 @@ __webpack_require__.r(__webpack_exports__); ...@@ -295,8 +296,9 @@ __webpack_require__.r(__webpack_exports__);
}, },
onLoad: function onLoad(option) { onLoad: function onLoad(option) {
this.companyId = (new RegExp('[?|&]companyId=' + '([^&;]+?)(&|#|;|$)').exec(decodeURIComponent(option.q)) || [, ""])[1].replace(/\+/g, '%20') || ""; this.enterUrl = option.q;
this.merchantId = (new RegExp('[?|&]merchantId=' + '([^&;]+?)(&|#|;|$)').exec(decodeURIComponent(option.q)) || [, ""])[1].replace(/\+/g, '%20') || ""; var channelId = this.getUrlKey("channelId");
var companyId = this.getUrlKey("companyId");
if (this.merchantId) {//大商家的有merchantId if (this.merchantId) {//大商家的有merchantId
this.init(); this.init();
} else {//小商家没有merchantId } else {//小商家没有merchantId
...@@ -305,6 +307,9 @@ __webpack_require__.r(__webpack_exports__); ...@@ -305,6 +307,9 @@ __webpack_require__.r(__webpack_exports__);
this.initCoupon(); this.initCoupon();
}, },
methods: { methods: {
getUrlKey: function getUrlKey(name) {//---------------------------------------------------------------获取url
return (new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(decodeURIComponent(this.enterUrl)) || [, ""])[1].replace(/\+/g, '%20') || "";
},
clickNum: function clickNum(i, index, a) {var _this = this; //---------------------------------------------------------------------输入数字 clickNum: function clickNum(i, index, a) {var _this = this; //---------------------------------------------------------------------输入数字
this.buyMoney += i; this.buyMoney += i;
this.leftList[index].child[a].background = "#dddddd"; this.leftList[index].child[a].background = "#dddddd";
...@@ -455,6 +460,8 @@ __webpack_require__.r(__webpack_exports__); ...@@ -455,6 +460,8 @@ __webpack_require__.r(__webpack_exports__);
_this6.timeStamp = res.data.timestamp; _this6.timeStamp = res.data.timestamp;
_this6.nonceStr = res.data.noncestr; _this6.nonceStr = res.data.noncestr;
_this6.package = res.data.package; _this6.package = res.data.package;
//支付宝入参
_this6.orderInfo = res.data.payInfo || "";
_this6.goPay(); _this6.goPay();
} else { } else {
uni.showToast({ uni.showToast({
...@@ -490,21 +497,21 @@ __webpack_require__.r(__webpack_exports__); ...@@ -490,21 +497,21 @@ __webpack_require__.r(__webpack_exports__);
uni.requestPayment({ // uni.requestPayment({
provider: 'alipay', // 服务提供商 支付宝支付: alipay 微信支付: wxpay // provider: 'alipay', // 服务提供商 支付宝支付: alipay 微信支付: wxpay
orderInfo: this.payInfo.orderNo, // 支付宝订单号 // orderInfo: this.orderInfo, // 支付宝订单号
success: function success(res) { // success: function (res) {
uni.redirectTo({ // uni.redirectTo({
url: "../paySuccess/paySuccess" }); // url:"../paySuccess/paySuccess"
// })
}, // },
fail: function fail(err) { // fail: function (err) {
uni.showToast({ // uni.showToast({
title: err.errMsg, // title:err.errMsg,
icon: "none" }); // icon:"none"
// })
} }); // }
// })
} }, } },
......
...@@ -254,6 +254,7 @@ __webpack_require__.r(__webpack_exports__); ...@@ -254,6 +254,7 @@ __webpack_require__.r(__webpack_exports__);
timeStamp: "", //时间戳 timeStamp: "", //时间戳
nonceStr: "", //随机字符串 nonceStr: "", //随机字符串
package: "", //订单详情扩展字符串 package: "", //订单详情扩展字符串
orderInfo: "", //支付宝订单号
flag: "", //setTimeout函数 flag: "", //setTimeout函数
couponData: "", //所有劵数据 couponData: "", //所有劵数据
chooseCouponObj: "", //默认选中最优价格优惠券 chooseCouponObj: "", //默认选中最优价格优惠券
...@@ -295,8 +296,9 @@ __webpack_require__.r(__webpack_exports__); ...@@ -295,8 +296,9 @@ __webpack_require__.r(__webpack_exports__);
}, },
onLoad: function onLoad(option) { onLoad: function onLoad(option) {
this.companyId = (new RegExp('[?|&]companyId=' + '([^&;]+?)(&|#|;|$)').exec(decodeURIComponent(option.q)) || [, ""])[1].replace(/\+/g, '%20') || ""; this.enterUrl = option.q;
this.merchantId = (new RegExp('[?|&]merchantId=' + '([^&;]+?)(&|#|;|$)').exec(decodeURIComponent(option.q)) || [, ""])[1].replace(/\+/g, '%20') || ""; var channelId = this.getUrlKey("channelId");
var companyId = this.getUrlKey("companyId");
if (this.merchantId) {//大商家的有merchantId if (this.merchantId) {//大商家的有merchantId
this.init(); this.init();
} else {//小商家没有merchantId } else {//小商家没有merchantId
...@@ -305,6 +307,9 @@ __webpack_require__.r(__webpack_exports__); ...@@ -305,6 +307,9 @@ __webpack_require__.r(__webpack_exports__);
this.initCoupon(); this.initCoupon();
}, },
methods: { methods: {
getUrlKey: function getUrlKey(name) {//---------------------------------------------------------------获取url
return (new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(decodeURIComponent(this.enterUrl)) || [, ""])[1].replace(/\+/g, '%20') || "";
},
clickNum: function clickNum(i, index, a) {var _this = this; //---------------------------------------------------------------------输入数字 clickNum: function clickNum(i, index, a) {var _this = this; //---------------------------------------------------------------------输入数字
this.buyMoney += i; this.buyMoney += i;
this.leftList[index].child[a].background = "#dddddd"; this.leftList[index].child[a].background = "#dddddd";
...@@ -455,6 +460,8 @@ __webpack_require__.r(__webpack_exports__); ...@@ -455,6 +460,8 @@ __webpack_require__.r(__webpack_exports__);
_this6.timeStamp = res.data.timestamp; _this6.timeStamp = res.data.timestamp;
_this6.nonceStr = res.data.noncestr; _this6.nonceStr = res.data.noncestr;
_this6.package = res.data.package; _this6.package = res.data.package;
//支付宝入参
_this6.orderInfo = res.data.payInfo || "";
_this6.goPay(); _this6.goPay();
} else { } else {
uni.showToast({ uni.showToast({
......
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