Commit 716c5687 authored by 潘永坪's avatar 潘永坪

支付开发

parent 93e24261
<template>
<view>
<web-view :src="'https://wx.pangdly.com/#/paySuccess?order='+order"></web-view>
<web-view src="https://wx.pangdly.com/#/paySuccess"></web-view>
</view>
</template>
......@@ -8,11 +8,11 @@
export default {
data() {
return {
order:""
}
},
onLoad(option) {
this.order=option.order
},
methods: {
......
......@@ -99,7 +99,6 @@
export default {
data() {
return {
orderId: "", //订单id
merchantName: "", //商户名称
productName: "", //产品名称
orderList: "", //订单列表
......@@ -120,7 +119,7 @@
},
onLoad(option){
let data = {
orderId:option.order, //订单Id
orderId:option.orderId, //订单Id
userId:uni.getStorageSync("openid"), //用户Id
payType:42, //支付类型
}
......@@ -169,7 +168,7 @@
paySign:this.paySign,
success: function (res) {
uni.redirectTo({
url: 'paySuccess?orderId=123456'
url:"../paySuccess/paySuccess"
})
},
fail: function (err) {
......
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/payment/payment"],{"22be":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{orderId:"",merchantName:"",productName:"",orderList:"",unitPrice:"",depositReceived:0,pdDiscountMoney:"",orderNum:"",pdOrderMoney:"",totalMoney:"",errorMessage:"",bodyShow:!1,timeStamp:"",nonceStr:"",package:"",signType:"",paySign:""}},onLoad:function(t){var n=this,a={orderId:t.order,userId:e.getStorageSync("openid"),payType:42};this.$request("orderc/order/findOrderInfo",a).then((function(t){"00"==t.code?(n.bodyShow=!0,n.timeStamp=t.data.timestamp,n.nonceStr=t.data.noncestr,n.package=t.data.package,n.signType=t.data.signType,n.paySign=t.data.sign,n.pdOrderMoney=t.data.pdOrderMoney,n.errorMessage=t.data.errorMessage,n.totalMoney=t.data.totalMoney,n.orderList=t.data.orderList,"undefined"==typeof n.orderList&&(n.orderList="",n.merchantName=t.data.merchantName,n.productName=t.data.productName,n.unitPrice=t.data.unitPrice,n.orderNum=t.data.orderNum,n.depositReceived=t.data.depositReceived,n.pdDiscountMoney=t.data.pdDiscountMoney)):e.showToast({title:t.message,icon:"none"})}))},methods:{goPay:function(){e.redirectTo({url:"../paySuccess/paySuccess?order=123456"})}}};t.default=n}).call(this,n("543d")["default"])},4423:function(e,t,n){"use strict";n.r(t);var a=n("22be"),r=n.n(a);for(var o in a)"default"!==o&&function(e){n.d(t,e,(function(){return a[e]}))}(o);t["default"]=r.a},"619f":function(e,t,n){"use strict";(function(e){n("6909");a(n("66fd"));var t=a(n("6d4e"));function a(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])},"6d4e":function(e,t,n){"use strict";n.r(t);var a=n("ec42"),r=n("4423");for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);n("b37c");var d,c=n("f0c5"),i=Object(c["a"])(r["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],d);t["default"]=i.exports},8724:function(e,t,n){},b37c:function(e,t,n){"use strict";var a=n("8724"),r=n.n(a);r.a},ec42:function(e,t,n){"use strict";var a;n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a}));var r=function(){var e=this,t=e.$createElement;e._self._c},o=[]}},[["619f","common/runtime","common/vendor"]]]);
\ No newline at end of file
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/payment/payment"],{"22be":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{orderId:"",merchantName:"",productName:"",orderList:"",unitPrice:"",depositReceived:0,pdDiscountMoney:"",orderNum:"",pdOrderMoney:"",totalMoney:"",errorMessage:"",bodyShow:!1,timeStamp:"",nonceStr:"",package:"",signType:"",paySign:""}},onLoad:function(t){var n=this,a={orderId:t.order,userId:e.getStorageSync("openid"),payType:42};this.$request("orderc/order/findOrderInfo",a).then((function(t){"00"==t.code?(n.bodyShow=!0,n.timeStamp=t.data.timestamp,n.nonceStr=t.data.noncestr,n.package=t.data.package,n.signType=t.data.signType,n.paySign=t.data.sign,n.pdOrderMoney=t.data.pdOrderMoney,n.errorMessage=t.data.errorMessage,n.totalMoney=t.data.totalMoney,n.orderList=t.data.orderList,"undefined"==typeof n.orderList&&(n.orderList="",n.merchantName=t.data.merchantName,n.productName=t.data.productName,n.unitPrice=t.data.unitPrice,n.orderNum=t.data.orderNum,n.depositReceived=t.data.depositReceived,n.pdDiscountMoney=t.data.pdDiscountMoney)):e.showToast({title:t.message,icon:"none"})}))},methods:{goPay:function(){e.requestPayment({provider:"wxpay",timeStamp:this.timeStamp,nonceStr:this.nonceStr,package:this.package,signType:this.signType,paySign:this.paySign,success:function(t){e.redirectTo({url:"paySuccess?orderId=123456"})},fail:function(t){e.showToast({title:t.errMsg,duration:2e3,icon:"none"})}})}}};t.default=n}).call(this,n("543d")["default"])},4423:function(e,t,n){"use strict";n.r(t);var a=n("22be"),r=n.n(a);for(var o in a)"default"!==o&&function(e){n.d(t,e,(function(){return a[e]}))}(o);t["default"]=r.a},"619f":function(e,t,n){"use strict";(function(e){n("6909");a(n("66fd"));var t=a(n("6d4e"));function a(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])},"6d4e":function(e,t,n){"use strict";n.r(t);var a=n("9328"),r=n("4423");for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);n("b37c");var i,d=n("f0c5"),c=Object(d["a"])(r["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],i);t["default"]=c.exports},8724:function(e,t,n){},9328:function(e,t,n){"use strict";var a;n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a}));var r=function(){var e=this,t=e.$createElement;e._self._c},o=[]},b37c:function(e,t,n){"use strict";var a=n("8724"),r=n.n(a);r.a}},[["619f","common/runtime","common/vendor"]]]);
\ No newline at end of file
<view><view hidden="{{!(bodyShow)}}" class="middle"><view class="main"><block wx:for="{{orderList}}" wx:for-item="item" wx:for-index="__i0__" wx:key="id"><block wx:if="{{orderList!=''}}"><view class="product"><view><text>{{''+item.merchantName+"("+item.productName+')'}}</text><text><text style="font-size:24rpx;">¥</text>{{item.unitPrice+''}}<text>x</text>{{''+item.orderNum}}<view class="_br"></view><block wx:if="{{item.depositReceived}}"><text style="margin-top:15rpx;font-size:22rpx;display:inline-block;color:#f45803;">{{"押金:"+item.depositReceived}}</text></block></text></view><block wx:if="{{item.pdDiscountMoney}}"><view class="coupon"><text>券</text><text><text style="font-size:24rpx;">-¥</text>{{item.pdDiscountMoney+''}}</text></view></block></view></block></block><block wx:if="{{orderList==''}}"><view class="product"><view><text>{{''+merchantName+"("+productName+')'}}</text><text style="text-align:right;"><view style="font-size:24rpx;" class="_small">¥</view>{{unitPrice+''}}<text>x</text>{{''+orderNum}}<view class="_br"></view><block wx:if="{{depositReceived}}"><text style="margin-top:15rpx;font-size:22rpx;display:inline-block;color:#f45803;">{{"押金:"+depositReceived}}</text></block></text></view><block wx:if="{{pdDiscountMoney}}"><view class="coupon"><text>券</text><text><text style="font-size:24rpx;">-¥</text>{{pdDiscountMoney+''}}</text></view></block></view></block><view class="mainP3"><text>实际支付</text><text><text><text style="font-size:28rpx;">¥</text>{{pdOrderMoney+''}}</text></text></view><view class="mainDiv"><text><image style="width:0.7rpx;" src="../../static/img/payment/weixin.png"></image></text><view><view>微信支付</view></view><text><image style="width:0.32rpx;" src="../../static/img/payment/input.png"></image></text></view></view></view><view hidden="{{!(bodyShow)}}" class="bottom"><view class="bottomFirst"><text>实付款</text><text><text>¥</text>{{pdOrderMoney+''}}</text></view><view class="bottomLast"><text href="tel:400-072-0368"></text><text data-event-opts="{{[['tap',[['goPay']]]]}}" bindtap="__e">去支付</text></view></view></view>
\ No newline at end of file
<view><view hidden="{{!(bodyShow)}}" class="middle"><view class="main"><block wx:for="{{orderList}}" wx:for-item="item" wx:for-index="__i0__" wx:key="id"><block wx:if="{{orderList!=''}}"><view class="product"><view><text>{{''+item.merchantName+"("+item.productName+')'}}</text><text><text style="font-size:24rpx;">¥</text>{{item.unitPrice+''}}<text>x</text>{{''+item.orderNum}}<view class="_br"></view><block wx:if="{{item.depositReceived}}"><text style="margin-top:15rpx;font-size:22rpx;display:inline-block;color:#f45803;">{{"押金:"+item.depositReceived}}</text></block></text></view><block wx:if="{{item.pdDiscountMoney}}"><view class="coupon"><text>券</text><text><text style="font-size:24rpx;">-¥</text>{{item.pdDiscountMoney+''}}</text></view></block></view></block></block><block wx:if="{{orderList==''}}"><view class="product"><view><text>{{''+merchantName+"("+productName+')'}}</text><text style="text-align:right;"><view style="font-size:24rpx;" class="_small">¥</view>{{unitPrice+''}}<text>x</text>{{''+orderNum}}<view class="_br"></view><block wx:if="{{depositReceived}}"><text style="margin-top:15rpx;font-size:22rpx;display:inline-block;color:#f45803;">{{"押金:"+depositReceived}}</text></block></text></view><block wx:if="{{pdDiscountMoney}}"><view class="coupon"><text>券</text><text><text style="font-size:24rpx;">-¥</text>{{pdDiscountMoney+''}}</text></view></block></view></block><view class="mainP3"><text>实际支付</text><text><text><text style="font-size:28rpx;">¥</text>{{pdOrderMoney+''}}</text></text></view><view class="mainview"><image style="width:70rpx;height:62rpx;" src="../../static/img/payment/weixin.png"></image><view>微信支付</view><image style="width:32rpx;height:32rpx;" src="../../static/img/payment/input.png"></image></view></view></view><view hidden="{{!(bodyShow)}}" class="bottom"><view class="bottomFirst"><text>实付款</text><text><text>¥</text>{{pdOrderMoney+''}}</text></view><view class="bottomLast"><text href="tel:400-072-0368"></text><text data-event-opts="{{[['tap',[['goPay']]]]}}" bindtap="__e">去支付</text></view></view></view>
\ No newline at end of file
.bigBox{height:100%;background:#fafafc}.middle{padding:30rpx 24rpx 0 24rpx}.main{padding:10rpx 24rpx 20rpx 24rpx;background:#fff;border-radius:20rpx;box-shadow:0 0 15rpx #e6e6e8}.product{border-bottom:1px solid #e5e5e5;padding:25rpx 0}.product view{color:#000;padding-left:10rpx;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;box-sizing:border-box}.product view text:first-child{-webkit-box-flex:1;-webkit-flex:1;flex:1}.product view text:nth-child(2){color:#666;font-size:28rpx;text-align:right}.product view.coupon{color:#f9690e;margin-top:10rpx}.product view.coupon text{font-size:30rpx}.mainP3{height:120rpx;color:#000;border-bottom:1px solid #e5e5e5;padding:25rpx 0 25rpx 10rpx;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;box-sizing:border-box;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.mainP3 text:nth-child(2){font-size:24rpx;color:#666}.mainP3 text:nth-child(2) text:nth-child(1){font-size:36rpx;color:#f9690e;margin-left:20rpx;font-weight:700}.mainview{margin-top:50rpx;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.mainview>text:first-child{margin:0 20rpx 0 10rpx}.mainview>view{-webkit-box-flex:1;-webkit-flex:1;flex:1}.mainview>view view:nth-child(2){font-size:24rpx;color:#666;margin-top:20rpx}.bottom{position:fixed;bottom:0;height:100rpx;background:#fff;border-top:1px solid #e5e5e5;width:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.bottomFirst{border-right:1px solid #ccc;padding-left:40rpx;width:40%;box-sizing:border-box}.bottomFirst text:nth-child(2){font-size:40rpx;color:#f9690e;margin-left:10rpx;font-weight:700}.bottomFirst text:nth-child(2) text{font-size:28rpx}.bottomLast{padding-left:20rpx;display:-webkit-box;display:-webkit-flex;display:flex;width:60%;padding-right:20rpx;box-sizing:border-box;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.bottomLast text:first-child{display:block;text-align:center;width:60rpx}.bottomLast text:first-child text{margin-top:10rpx;display:inline-block;font-size:24rpx;color:#666}.bottomLast text:nth-child(2){-webkit-box-flex:1;-webkit-flex:1;flex:1;height:70rpx;display:inline-block;text-align:center;line-height:70rpx;background:#f9690e;color:#fff;margin-left:30rpx;border-radius:20rpx;font-size:32rpx}
\ No newline at end of file
.bigBox{height:100%;background:#fafafc}.middle{padding:30rpx 24rpx 0 24rpx}.main{padding:10rpx 24rpx 20rpx 24rpx;background:#fff;border-radius:20rpx;box-shadow:0 0 15rpx #e6e6e8}.product{border-bottom:1px solid #e5e5e5;padding:25rpx 0}.product view{color:#000;padding-left:10rpx;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;box-sizing:border-box}.product view text:first-child{-webkit-box-flex:1;-webkit-flex:1;flex:1}.product view text:nth-child(2){color:#666;font-size:28rpx;text-align:right}.product view.coupon{color:#f9690e;margin-top:10rpx}.product view.coupon text{font-size:30rpx}.mainP3{height:120rpx;color:#000;border-bottom:1px solid #e5e5e5;padding:25rpx 0 25rpx 10rpx;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;box-sizing:border-box;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.mainP3 text:nth-child(2){font-size:24rpx;color:#666}.mainP3 text:nth-child(2) text:nth-child(1){font-size:36rpx;color:#f9690e;margin-left:20rpx;font-weight:700}.mainview{margin-top:50rpx;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.mainview>image:first-child{margin:0 20rpx 0 10rpx}.mainview>view{-webkit-box-flex:1;-webkit-flex:1;flex:1}.bottom{position:fixed;bottom:0;height:100rpx;background:#fff;border-top:1px solid #e5e5e5;width:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.bottomFirst{border-right:1px solid #ccc;padding-left:40rpx;width:40%;box-sizing:border-box}.bottomFirst text:nth-child(2){font-size:40rpx;color:#f9690e;margin-left:10rpx;font-weight:700}.bottomFirst text:nth-child(2) text{font-size:28rpx}.bottomLast{padding-left:20rpx;display:-webkit-box;display:-webkit-flex;display:flex;width:60%;padding-right:20rpx;box-sizing:border-box;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.bottomLast text:first-child{display:block;text-align:center;width:60rpx}.bottomLast text:first-child text{margin-top:10rpx;display:inline-block;font-size:24rpx;color:#666}.bottomLast text:nth-child(2){-webkit-box-flex:1;-webkit-flex:1;flex:1;height:70rpx;display:inline-block;text-align:center;line-height:70rpx;background:#f9690e;color:#fff;margin-left:30rpx;border-radius:20rpx;font-size:32rpx}
\ No newline at end of file
......@@ -4,39 +4,10 @@
"ignore": []
},
"setting": {
"urlCheck": false,
"urlCheck": true,
"es6": true,
"enhance": false,
"postcss": 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
"minified": true
},
"compileType": "miniprogram",
"libVersion": "",
......@@ -44,15 +15,19 @@
"projectname": "uni-pdtravel",
"condition": {
"search": {
"current": -1,
"list": []
},
"conversation": {
"current": -1,
"list": []
},
"game": {
"current": -1,
"list": []
},
"miniprogram": {
"current": -1,
"list": []
}
}
......
{
"condition": {
"plugin": {
"list": []
},
"game": {
"list": []
},
"gamePlugin": {
"list": []
},
"miniprogram": {
"list": [
{
"name": "pages/payment/payment",
"pathName": "pages/payment/payment",
"query": "",
"scene": null
}
]
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment