Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
U
uni-pdtravel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
panyongping
uni-pdtravel
Commits
5a75068b
Commit
5a75068b
authored
May 26, 2021
by
潘永坪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付联调
parent
cf0a1f06
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
493 additions
and
70 deletions
+493
-70
index.vue
pages/index/index.vue
+8
-3
payment.vue
pages/payment/payment.vue
+133
-16
main.js.map
unpackage/dist/dev/.sourcemap/mp-weixin/common/main.js.map
+1
-1
index.js.map
...ge/dist/dev/.sourcemap/mp-weixin/pages/index/index.js.map
+1
-1
payment.js.map
...ist/dev/.sourcemap/mp-weixin/pages/payment/payment.js.map
+1
-1
index.axml
unpackage/dist/dev/mp-alipay/pages/index/index.axml
+1
-1
index.js
unpackage/dist/dev/mp-alipay/pages/index/index.js
+5
-0
payment.axml
unpackage/dist/dev/mp-alipay/pages/payment/payment.axml
+1
-1
payment.js
unpackage/dist/dev/mp-alipay/pages/payment/payment.js
+148
-15
app.json
unpackage/dist/dev/mp-weixin/app.json
+2
-1
index.js
unpackage/dist/dev/mp-weixin/pages/index/index.js
+5
-0
index.wxml
unpackage/dist/dev/mp-weixin/pages/index/index.wxml
+1
-1
payment.js
unpackage/dist/dev/mp-weixin/pages/payment/payment.js
+160
-27
payment.wxml
unpackage/dist/dev/mp-weixin/pages/payment/payment.wxml
+1
-1
project.config.json
unpackage/dist/dev/mp-weixin/project.config.json
+1
-1
project.private.config.json
unpackage/dist/dev/mp-weixin/project.private.config.json
+24
-0
No files found.
pages/index/index.vue
View file @
5a75068b
...
...
@@ -53,12 +53,12 @@
<!--
<button
@
click=
"getUserInfo()"
>
授权获取头像昵称
</button>
-->
<view
class=
"bottom"
>
<!--#ifdef MP-WEIXIN -->
<
web-view
src=
"https://wx.pangdly.com"
></web-view
>
<
!--
<web-view
src=
"https://wx.pangdly.com"
></web-view>
--
>
<!--#endif-->
<!--#ifdef MP-ALIPAY -->
<
web-view
src=
"https://wx.pangdly.com?appId=2021001194629244&ticket=123456"
></web-view
>
<
!--
<web-view
src=
"https://wx.pangdly.com?appId=2021001194629244&ticket=123456"
></web-view>
--
>
<!--#endif-->
<button
@
click=
"aaa()"
>
456
</button>
</view>
</view>
</
template
>
...
...
@@ -116,6 +116,11 @@
}
})
},
aaa
(){
uni
.
navigateTo
({
url
:
'../payment/payment'
});
}
}
}
...
...
pages/payment/payment.vue
View file @
5a75068b
<
template
>
<view>
<div
class=
"middle"
v-show=
"bodyShow"
>
<div
class=
"main"
>
<!-- --------------------------------------复票----------------------------------------------- -->
<div
v-if=
"orderList!=''"
v-for=
"item of orderList"
:key=
"item.id"
class=
"product"
>
<p>
<span>
{{
item
.
merchantName
}}
(
{{
item
.
productName
}}
)
</span>
<span>
<small
style=
"font-size: 0.24rem;"
>
¥
</small>
{{
item
.
unitPrice
}}
<i>
x
</i>
{{
item
.
orderNum
}}
<br
/>
<small
style=
"margin-top: 0.15rem;font-size: 0.22rem;display: inline-block;color:#f45803;"
v-if=
"item.depositReceived"
>
押金:
{{
item
.
depositReceived
}}
</small>
</span>
</p>
<p
class=
"coupon"
v-if=
"item.pdDiscountMoney"
>
<span>
券
</span>
<i>
<small
style=
"font-size: 0.24rem;"
>
-¥
</small>
{{
item
.
pdDiscountMoney
}}
</i>
</p>
</div>
<!-- --------------------------------------单票----------------------------------------------- -->
<div
v-if=
"orderList==''"
class=
"product"
>
<p>
<span>
{{
merchantName
}}
(
{{
productName
}}
)
</span>
<span
style=
"text-align: right;"
>
<small
style=
"font-size: 0.24rem;"
>
¥
</small>
{{
unitPrice
}}
<i>
x
</i>
{{
orderNum
}}
<br
/>
<small
style=
"margin-top: 0.15rem;font-size: 0.22rem;display: inline-block;color:#f45803;"
v-if=
"depositReceived"
>
押金:
{{
depositReceived
}}
</small>
</span>
</p>
<p
class=
"coupon"
v-if=
"pdDiscountMoney"
>
<span>
券
</span>
<i>
<small
style=
"font-size: 0.24rem;"
>
-¥
</small>
{{
pdDiscountMoney
}}
</i>
</p>
</div>
<p
class=
"mainP3"
>
<span>
实际支付
</span>
<span>
<!--
<i>
¥
{{
totalMoney
}}
</i>
-->
<i>
<small
style=
"font-size: 0.28rem;"
>
¥
</small>
{{
pdOrderMoney
}}
</i>
</span>
</p>
<div
class=
"mainDiv"
>
<span>
<img
src=
"@/assets/img/common/weixin.png"
style=
"width: 0.7rem;"
/>
</span>
<div>
<p>
微信支付
</p>
</div>
<span>
<img
src=
"@/assets/img/common/input.png"
style=
"width: 0.32rem;"
/>
</span>
</div>
</div>
</div>
<div
class=
"bottom"
v-show=
"bodyShow"
>
<p>
<span>
实付款
</span>
<span>
<i>
¥
</i>
{{
pdOrderMoney
}}
</span>
</p>
<p>
<a
href=
"tel:400-072-0368"
>
<img
src=
"@/assets/img/combination/kefu11.png"
style=
"width: 0.31rem;"
/>
</a>
<a
@
click=
"weChatPay()"
>
去支付
</a>
</p>
</div>
</view>
</
template
>
...
...
@@ -12,22 +111,40 @@
}
},
onLoad
(
option
){
uni
.
requestPayment
({
provider
:
'wxpay'
,
timeStamp
:
option
.
timeStamp
,
nonceStr
:
option
.
nonceStr
,
package
:
option
.
package
,
signType
:
option
.
signType
,
paySign
:
option
.
paySign
,
success
:
function
(
res
)
{
uni
.
redirectTo
({
url
:
'paySuccess?orderId=123456'
})
},
fail
:
function
(
err
)
{
uni
.
showToast
(
err
)
}
})
let
data
=
{
orderId
:
"z001622021317935817023873227d6b1"
,
//订单Id
userId
:
"oh2UV1lyYABHMZ1rMlgjhVHyyYDQ"
,
//用户Id
payType
:
42
,
//支付类型
}
this
.
$request
(
"orderc/order/findOrderInfo?debug=true"
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
"00"
)
{
uni
.
requestPayment
({
provider
:
'wxpay'
,
timeStamp
:
res
.
data
.
timestamp
,
nonceStr
:
res
.
data
.
noncestr
,
package
:
res
.
data
.
package
,
signType
:
res
.
data
.
signType
,
paySign
:
res
.
data
.
sign
,
success
:
function
(
res
)
{
uni
.
redirectTo
({
url
:
'paySuccess?orderId=123456'
})
},
fail
:
function
(
err
)
{
uni
.
showToast
({
title
:
err
.
errMsg
,
duration
:
2000
})
}
})
}
else
{
uni
.
showToast
({
title
:
res
.
message
})
}
})
},
...
...
unpackage/dist/dev/.sourcemap/mp-weixin/common/main.js.map
View file @
5a75068b
{"version":3,"sources":["uni-app:///main.js",null,"webpack:///E:/pangding/uni-pdtravel/App.vue?5fc3","uni-app:///App.vue","webpack:///E:/pangding/uni-pdtravel/App.vue?39f2","webpack:///E:/pangding/uni-pdtravel/App.vue?0c26"],"names":["Vue","prototype","$request","request","config","productionTip","App","mpType","app","$mount"],"mappings":";;;;;;;;;iDAAA,wCAAmB;AACnB;;AAEA,wF;;AAEAA,aAAIC,SAAJ,CAAcC,QAAd,GAAyBC,gBAAzB;;AAEAH,aAAII,MAAJ,CAAWC,aAAX,GAA2B,KAA3B;;AAEAC,aAAIC,MAAJ,GAAa,KAAb;;AAEA,IAAMC,GAAG,GAAG,IAAIR,YAAJ;AACLM,YADK,EAAZ;;AAGA,UAAAE,GAAG,EAACC,MAAJ,G;;;;;;;;;;;;;;;;ACdA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACuD;AACL;AACa;;;AAG/D;AAC2K;AAC3K,gBAAgB,+KAAU;AAC1B,EAAE,yEAAM;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACe,gF;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAA2nB,CAAgB,unBAAG,EAAC,C;;;;;;;;;;;;ACC/oB;AACA;AACA;AACA;AACA;eACA;AACA;AACA;AACA,GAHA;AAIA;AACA;AACA,GANA;AAOA;AACA;AACA,GATA,E;;;;;;;;;;;ACNA;AAAA;AAAA;AAAA;AAAy5B,CAAgB,g3BAAG,EAAC,C;;;;;;;;;;ACA76B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"common/main.js","sourcesContent":["import 'uni-pages';import Vue from 'vue'\r\nimport App from './App'\r\n\r\nimport request from 'common/request.js'\r\n\r\nVue.prototype.$request = request\r\n\r\nVue.config.productionTip = false\r\n\r\nApp.mpType = 'app'\r\n\r\nconst app = new Vue({\r\n ...App\r\n})\r\napp.$mount()","var render, staticRenderFns, recyclableRender, components\nvar renderjs\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\nimport style0 from \"./App.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\runtime\\\\componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"App.vue\"\nexport default component.exports","import mod from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./App.vue?vue&type=script&lang=js&\"","<script>\r\n\t// 1、uni-app的页面生命周期仅在page页面有效,而单独封装的组件中【页面周期无效】,\r\n\t//但是Vue的生命周期依然有效 【Vue的生命周期在任何地方都是有效的,即你仍然可以在uni-app项目中使用Vue生命周期,但是不建议这么做】\r\n\t// 2、推荐使用uni-app里面的onLoad 代替 vue 里面的 created\r\n\t// 3、推荐使用uni-app里面的onReady 代替 vue 里面的 mounted\r\n\t//4.setStorageSync与setStorage的区别:如果后续的操作需要使用更新storage后保存的data,则使用setStorageSync使用异步性能更好,使用同步数据更安全\r\n\texport default {\r\n\t\tonLaunch: function() {//初始化完成时触发(全局只触发一次\r\n\t\t\tconsole.log('App Launch')\r\n\t\t},\r\n\t\tonShow: function() {\r\n\t\t\tconsole.log('App Show')\r\n\t\t},\r\n\t\tonHide: function() {\r\n\t\t\tconsole.log('App Hide')\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style>\r\n/*\r\n1.页面背景颜色#f7f7f7\r\n2.分隔线颜色#DBDBDB\r\n3.正常字体颜色#333333\r\n4.灰色字体颜色#666666或者#999999\r\n5.主色调#3688FF\r\n6.正常字体大小28rpx,偏小一点的24rpx\r\n7.命名规范为'-',例如top-img\r\n8.页面最外层与里面的第一层为padding:0 12px;\r\n9.css单位为rpx\r\n*/\r\npage{font-size:28rpx;color: #333333;background: #F7F7F7;}\r\n.btn{background:linear-gradient(132deg, #ED400C 0%, #FB862C 100%);display: inline-block;color: #FFFFFF;font-size:28rpx;border-radius:8rpx;text-align: center;}\r\n</style>\n","import mod from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./App.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./App.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1621608657968\n var cssReload = require(\"D:/程序应用/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["uni-app:///main.js",null,"webpack:///E:/pangding/uni-pdtravel/App.vue?5fc3","uni-app:///App.vue","webpack:///E:/pangding/uni-pdtravel/App.vue?39f2","webpack:///E:/pangding/uni-pdtravel/App.vue?0c26"],"names":["Vue","prototype","$request","request","config","productionTip","App","mpType","app","$mount"],"mappings":";;;;;;;;;iDAAA,wCAAmB;AACnB;;AAEA,wF;;AAEAA,aAAIC,SAAJ,CAAcC,QAAd,GAAyBC,gBAAzB;;AAEAH,aAAII,MAAJ,CAAWC,aAAX,GAA2B,KAA3B;;AAEAC,aAAIC,MAAJ,GAAa,KAAb;;AAEA,IAAMC,GAAG,GAAG,IAAIR,YAAJ;AACLM,YADK,EAAZ;;AAGA,UAAAE,GAAG,EAACC,MAAJ,G;;;;;;;;;;;;;;;;ACdA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACuD;AACL;AACa;;;AAG/D;AAC2K;AAC3K,gBAAgB,+KAAU;AAC1B,EAAE,yEAAM;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACe,gF;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAA2nB,CAAgB,unBAAG,EAAC,C;;;;;;;;;;;;ACC/oB;AACA;AACA;AACA;AACA;eACA;AACA;AACA;AACA,GAHA;AAIA;AACA;AACA,GANA;AAOA;AACA;AACA,GATA,E;;;;;;;;;;;ACNA;AAAA;AAAA;AAAA;AAAy5B,CAAgB,g3BAAG,EAAC,C;;;;;;;;;;ACA76B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"common/main.js","sourcesContent":["import 'uni-pages';import Vue from 'vue'\r\nimport App from './App'\r\n\r\nimport request from 'common/request.js'\r\n\r\nVue.prototype.$request = request\r\n\r\nVue.config.productionTip = false\r\n\r\nApp.mpType = 'app'\r\n\r\nconst app = new Vue({\r\n ...App\r\n})\r\napp.$mount()","var render, staticRenderFns, recyclableRender, components\nvar renderjs\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\nimport style0 from \"./App.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\runtime\\\\componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"App.vue\"\nexport default component.exports","import mod from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./App.vue?vue&type=script&lang=js&\"","<script>\r\n\t// 1、uni-app的页面生命周期仅在page页面有效,而单独封装的组件中【页面周期无效】,\r\n\t//但是Vue的生命周期依然有效 【Vue的生命周期在任何地方都是有效的,即你仍然可以在uni-app项目中使用Vue生命周期,但是不建议这么做】\r\n\t// 2、推荐使用uni-app里面的onLoad 代替 vue 里面的 created\r\n\t// 3、推荐使用uni-app里面的onReady 代替 vue 里面的 mounted\r\n\t//4.setStorageSync与setStorage的区别:如果后续的操作需要使用更新storage后保存的data,则使用setStorageSync使用异步性能更好,使用同步数据更安全\r\n\texport default {\r\n\t\tonLaunch: function() {//初始化完成时触发(全局只触发一次\r\n\t\t\tconsole.log('App Launch')\r\n\t\t},\r\n\t\tonShow: function() {\r\n\t\t\tconsole.log('App Show')\r\n\t\t},\r\n\t\tonHide: function() {\r\n\t\t\tconsole.log('App Hide')\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style>\r\n/*\r\n1.页面背景颜色#f7f7f7\r\n2.分隔线颜色#DBDBDB\r\n3.正常字体颜色#333333\r\n4.灰色字体颜色#666666或者#999999\r\n5.主色调#3688FF\r\n6.正常字体大小28rpx,偏小一点的24rpx\r\n7.命名规范为'-',例如top-img\r\n8.页面最外层与里面的第一层为padding:0 12px;\r\n9.css单位为rpx\r\n*/\r\npage{font-size:28rpx;color: #333333;background: #F7F7F7;}\r\n.btn{background:linear-gradient(132deg, #ED400C 0%, #FB862C 100%);display: inline-block;color: #FFFFFF;font-size:28rpx;border-radius:8rpx;text-align: center;}\r\n</style>\n","import mod from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./App.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./App.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1622016252170\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
unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/index.js.map
View file @
5a75068b
{"version":3,"sources":["uni-app:///main.js",null,"webpack:///E:/pangding/uni-pdtravel/pages/index/index.vue?499b","webpack:///E:/pangding/uni-pdtravel/pages/index/index.vue?5699","webpack:///E:/pangding/uni-pdtravel/pages/index/index.vue?8171","uni-app:///pages/index/index.vue","webpack:///E:/pangding/uni-pdtravel/pages/index/index.vue?024f","webpack:///E:/pangding/uni-pdtravel/pages/index/index.vue?c410"],"names":["createPage","Page"],"mappings":";;;;;;;;;;;;;;;;;;;;;kDAAA;AACA;AACA,4F;AACAA,UAAU,CAACC,cAAD,CAAV,C;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkH;AAClH;AACyD;AACL;AACa;;;AAGjE;AAC2K;AAC3K,gBAAgB,+KAAU;AAC1B,EAAE,2EAAM;AACR,EAAE,gFAAM;AACR,EAAE,yFAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,oFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAA6nB,CAAgB,ynBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACkEjpB;AACA,MADA,kBACA;AACA;AACA,mBADA;;AAGA,GALA;AAMA,QANA,oBAMA;;AAEA,GARA;AASA,SATA,qBASA;;AAEA;AACA;AACA,wBADA;AAEA;AACA;AACA;AACA,0BADA;AAEA,qBAFA;;AAIA;AACA;AACA;AACA;AACA,aAHA,MAGA;AACA;AACA;AACA,kCADA;AAEA,4BAFA;;AAIA;AACA,WAXA,EAWA,KAXA,CAWA;AACA;AACA,WAbA;AAcA;AACA,OAvBA;;;AA0BA,GAtCA;AAuCA;AACA,eADA,yBACA;AACA;AACA,qBADA;AAEA,kBAFA;AAGA;AACA;AACA,SALA;AAMA;AACA;AACA,SARA;;AAUA,KAZA,EAvCA,E;;;;;;;;;;;;AClEA;AAAA;AAAA;AAAA;AAA25B,CAAgB,k3BAAG,EAAC,C;;;;;;;;;;ACA/6B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/index/index.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pages/index/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=57280228&\"\nvar renderjs\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\runtime\\\\componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/index/index.vue\"\nexport default component.exports","export * from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=template&id=57280228&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&lang=js&\"","<template>\r\n\t<!-- <view >\r\n\t\t<view class=\"top\">\r\n\t\t\t<view class=\"top-search\">\r\n\t\t\t\t\r\n\t\t\t</view>\r\n\t\t\t<view class=\"top-content\">\r\n\t\t\t\t<view>\r\n\t\t\t\t\t<image src=\"../../static/img/index/classify1.png\"></image>\r\n\t\t\t\t\t<view>景区门票</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t\r\n\t\t\t\t<view>\r\n\t\t\t\t\t<image src=\"../../static/img/index/classify2.png\"></image>\r\n\t\t\t\t\t<view>酒店民宿</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t\r\n\t\t\t\t<view>\r\n\t\t\t\t\t<image src=\"../../static/img/index/classify3.png\"></image>\r\n\t\t\t\t\t<view>特色美食</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t\r\n\t\t\t\t<view>\r\n\t\t\t\t\t<image src=\"../../static/img/index/classify4.png\"></image>\r\n\t\t\t\t\t<view>周边游</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t\r\n\t\t\t\t<view>\r\n\t\t\t\t\t<image src=\"../../static/img/index/classify5.png\"></image>\r\n\t\t\t\t\t<view>跟团游</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t\r\n\t\t\t\t<view>\r\n\t\t\t\t\t<image src=\"../../static/img/index/classify6.png\"></image>\r\n\t\t\t\t\t<view>亲子游</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t\r\n\t\t\t\t<view>\r\n\t\t\t\t\t<image src=\"../../static/img/index/classify7.png\"></image>\r\n\t\t\t\t\t<view>行程订制</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t\r\n\t\t\t\t<view>\r\n\t\t\t\t\t<image src=\"../../static/img/index/classify8.png\"></image>\r\n\t\t\t\t\t<view>特产好礼</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"top-img\">\r\n\t\t\t\t\r\n\t\t\t</view>\r\n\t\t\t\r\n\t\t</view> -->\r\n\t\t<!-- <button @click=\"getUserInfo()\"> 授权获取头像昵称 </button> -->\r\n\t\t<view class=\"bottom\">\r\n\t\t\t<!--#ifdef MP-WEIXIN -->\r\n\t\t\t<web-view src=\"https://wx.pangdly.com\"></web-view>\r\n\t\t\t<!--#endif-->\r\n\t\t\t<!--#ifdef MP-ALIPAY -->\r\n\t\t\t<web-view src=\"https://wx.pangdly.com?appId=2021001194629244&ticket=123456\"></web-view>\r\n\t\t\t<!--#endif-->\r\n\t\t\t\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\ttitle: '胖丁首页'\r\n\t\t\t}\r\n\t\t},\r\n\t\tonLoad(){\r\n\t\t\t\r\n\t\t},\r\n\t\tonReady(){\r\n\t\t\t//#ifdef MP-WEIXIN\r\n\t\t\tlet _this=this\r\n\t\t\tuni.login({\r\n\t\t\t provider: 'weixin',\r\n\t\t\t success: function (res) {\r\n\t\t\t\t\tif(res.code){\r\n\t\t\t\t\t\t let data={\r\n\t\t\t\t\t\t\t code:res.code,\r\n\t\t\t\t\t\t\t source:3\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t _this.$request('wechat/wx/getUserInfoByCode',data).then(res => {\r\n\t\t\t\t\t\t\tif(res.code=='00'){\r\n\t\t\t\t\t\t\t\tlet openid=res.data.openid\r\n\t\t\t\t\t\t\t\tuni.setStorageSync('openid',openid)\r\n\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\tuni.removeStorageSync('openid')\r\n\t\t\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\t\t\ttitle:res.message,\r\n\t\t\t\t\t\t\t\t\ticon:\"none\"\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t }).catch((err)=>{\r\n\t\t\t\t\t\t\t uni.removeStorageSync('openid')\r\n\t\t\t\t\t\t })\r\n\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t})\r\n\t\t\t//#endif\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tgetUserInfo() {\t// 获取用户信息\r\n\t\t\t\tuni.getUserProfile({\r\n\t\t\t\t\tlang:'zh_CN',\r\n\t\t\t\t\tdesc:'登录',\r\n\t\t\t\t\tsuccess:(res)=>{\r\n\t\t\t\t\t\tconsole.log(res);\r\n\t\t\t\t\t},\r\n\t\t\t\t\tfail:(res)=>{\r\n\t\t\t\t\t\tconsole.log(res)\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style>\r\n\t.top{padding: 0 24rpx;}\r\n\t.top-content{display: flex;flex-wrap: wrap;background: #FFFFFF;border-radius:24rpx;padding-bottom:32rpx;}\r\n\t.top-content>view{width: 25%;text-align: center;margin-top:40rpx;}\r\n\t.top-content view image{width:64rpx;height:64rpx;}\r\n</style>\n","import mod from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1621843776446\n var cssReload = require(\"D:/程序应用/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["uni-app:///main.js",null,"webpack:///E:/pangding/uni-pdtravel/pages/index/index.vue?499b","webpack:///E:/pangding/uni-pdtravel/pages/index/index.vue?5699","webpack:///E:/pangding/uni-pdtravel/pages/index/index.vue?8171","uni-app:///pages/index/index.vue","webpack:///E:/pangding/uni-pdtravel/pages/index/index.vue?024f","webpack:///E:/pangding/uni-pdtravel/pages/index/index.vue?c410"],"names":["createPage","Page"],"mappings":";;;;;;;;;;;;;;;;;;;;;kDAAA;AACA;AACA,4F;AACAA,UAAU,CAACC,cAAD,CAAV,C;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkH;AAClH;AACyD;AACL;AACa;;;AAGjE;AAC2K;AAC3K,gBAAgB,+KAAU;AAC1B,EAAE,2EAAM;AACR,EAAE,gFAAM;AACR,EAAE,yFAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,oFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAA6nB,CAAgB,ynBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACkEjpB;AACA,MADA,kBACA;AACA;AACA,mBADA;;AAGA,GALA;AAMA,QANA,oBAMA;;AAEA,GARA;AASA,SATA,qBASA;;AAEA;AACA;AACA,wBADA;AAEA;AACA;AACA;AACA,0BADA;AAEA,qBAFA;;AAIA;AACA;AACA;AACA;AACA,aAHA,MAGA;AACA;AACA;AACA,kCADA;AAEA,4BAFA;;AAIA;AACA,WAXA,EAWA,KAXA,CAWA;AACA;AACA,WAbA;AAcA;AACA,OAvBA;;;AA0BA,GAtCA;AAuCA;AACA,eADA,yBACA;AACA;AACA,qBADA;AAEA,kBAFA;AAGA;AACA;AACA,SALA;AAMA;AACA;AACA,SARA;;AAUA,KAZA;AAaA,OAbA,iBAaA;AACA;AACA,iCADA;;AAGA,KAjBA,EAvCA,E;;;;;;;;;;;;AClEA;AAAA;AAAA;AAAA;AAA25B,CAAgB,k3BAAG,EAAC,C;;;;;;;;;;ACA/6B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/index/index.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pages/index/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=57280228&\"\nvar renderjs\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\runtime\\\\componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/index/index.vue\"\nexport default component.exports","export * from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=template&id=57280228&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&lang=js&\"","<template>\r\n\t<!-- <view >\r\n\t\t<view class=\"top\">\r\n\t\t\t<view class=\"top-search\">\r\n\t\t\t\t\r\n\t\t\t</view>\r\n\t\t\t<view class=\"top-content\">\r\n\t\t\t\t<view>\r\n\t\t\t\t\t<image src=\"../../static/img/index/classify1.png\"></image>\r\n\t\t\t\t\t<view>景区门票</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t\r\n\t\t\t\t<view>\r\n\t\t\t\t\t<image src=\"../../static/img/index/classify2.png\"></image>\r\n\t\t\t\t\t<view>酒店民宿</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t\r\n\t\t\t\t<view>\r\n\t\t\t\t\t<image src=\"../../static/img/index/classify3.png\"></image>\r\n\t\t\t\t\t<view>特色美食</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t\r\n\t\t\t\t<view>\r\n\t\t\t\t\t<image src=\"../../static/img/index/classify4.png\"></image>\r\n\t\t\t\t\t<view>周边游</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t\r\n\t\t\t\t<view>\r\n\t\t\t\t\t<image src=\"../../static/img/index/classify5.png\"></image>\r\n\t\t\t\t\t<view>跟团游</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t\r\n\t\t\t\t<view>\r\n\t\t\t\t\t<image src=\"../../static/img/index/classify6.png\"></image>\r\n\t\t\t\t\t<view>亲子游</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t\r\n\t\t\t\t<view>\r\n\t\t\t\t\t<image src=\"../../static/img/index/classify7.png\"></image>\r\n\t\t\t\t\t<view>行程订制</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t\r\n\t\t\t\t<view>\r\n\t\t\t\t\t<image src=\"../../static/img/index/classify8.png\"></image>\r\n\t\t\t\t\t<view>特产好礼</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"top-img\">\r\n\t\t\t\t\r\n\t\t\t</view>\r\n\t\t\t\r\n\t\t</view> -->\r\n\t\t<!-- <button @click=\"getUserInfo()\"> 授权获取头像昵称 </button> -->\r\n\t\t<view class=\"bottom\">\r\n\t\t\t<!--#ifdef MP-WEIXIN -->\r\n\t\t\t<!-- <web-view src=\"https://wx.pangdly.com\"></web-view> -->\r\n\t\t\t<!--#endif-->\r\n\t\t\t<!--#ifdef MP-ALIPAY -->\r\n\t\t\t<!-- <web-view src=\"https://wx.pangdly.com?appId=2021001194629244&ticket=123456\"></web-view> -->\r\n\t\t\t<!--#endif-->\r\n\t\t\t<button @click=\"aaa()\">456</button>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\ttitle: '胖丁首页'\r\n\t\t\t}\r\n\t\t},\r\n\t\tonLoad(){\r\n\t\t\t\r\n\t\t},\r\n\t\tonReady(){\r\n\t\t\t//#ifdef MP-WEIXIN\r\n\t\t\tlet _this=this\r\n\t\t\tuni.login({\r\n\t\t\t provider: 'weixin',\r\n\t\t\t success: function (res) {\r\n\t\t\t\t\tif(res.code){\r\n\t\t\t\t\t\t let data={\r\n\t\t\t\t\t\t\t code:res.code,\r\n\t\t\t\t\t\t\t source:3\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t _this.$request('wechat/wx/getUserInfoByCode',data).then(res => {\r\n\t\t\t\t\t\t\tif(res.code=='00'){\r\n\t\t\t\t\t\t\t\tlet openid=res.data.openid\r\n\t\t\t\t\t\t\t\tuni.setStorageSync('openid',openid)\r\n\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\tuni.removeStorageSync('openid')\r\n\t\t\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\t\t\ttitle:res.message,\r\n\t\t\t\t\t\t\t\t\ticon:\"none\"\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t }).catch((err)=>{\r\n\t\t\t\t\t\t\t uni.removeStorageSync('openid')\r\n\t\t\t\t\t\t })\r\n\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t})\r\n\t\t\t//#endif\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tgetUserInfo() {\t// 获取用户信息\r\n\t\t\t\tuni.getUserProfile({\r\n\t\t\t\t\tlang:'zh_CN',\r\n\t\t\t\t\tdesc:'登录',\r\n\t\t\t\t\tsuccess:(res)=>{\r\n\t\t\t\t\t\tconsole.log(res);\r\n\t\t\t\t\t},\r\n\t\t\t\t\tfail:(res)=>{\r\n\t\t\t\t\t\tconsole.log(res)\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\taaa(){\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t url:'../payment/payment'\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style>\r\n\t.top{padding: 0 24rpx;}\r\n\t.top-content{display: flex;flex-wrap: wrap;background: #FFFFFF;border-radius:24rpx;padding-bottom:32rpx;}\r\n\t.top-content>view{width: 25%;text-align: center;margin-top:40rpx;}\r\n\t.top-content view image{width:64rpx;height:64rpx;}\r\n</style>\n","import mod from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1622016698148\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
unpackage/dist/dev/.sourcemap/mp-weixin/pages/payment/payment.js.map
View file @
5a75068b
{"version":3,"sources":["uni-app:///main.js",null,"webpack:///E:/pangding/uni-pdtravel/pages/payment/payment.vue?2f6b","webpack:///E:/pangding/uni-pdtravel/pages/payment/payment.vue?e7f7","webpack:///E:/pangding/uni-pdtravel/pages/payment/payment.vue?bc93","uni-app:///pages/payment/payment.vue"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,kG;AACAA,UAAU,CAACC,gBAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAoH;AACpH;AAC2D;AACL;;;AAGtD;AAC2K;AAC3K,gBAAgB,+KAAU;AAC1B,EAAE,6EAAM;AACR,EAAE,kFAAM;AACR,EAAE,2FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,sFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACtBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAA+nB,CAAgB,2nBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;ACOnpB;AACA,MADA,kBACA;AACA;;;AAGA,GALA;AAMA,QANA,kBAMA,MANA,EAMA;AACA;AACA,uBADA;AAEA,iCAFA;AAGA,+BAHA;AAIA,6BAJA;AAKA,+BALA;AAMA,6BANA;AAOA;AACA;AACA,0CADA;;AAGA,OAXA;AAYA;AACA;AACA,OAdA;;AAgBA,GAvBA,E","file":"pages/payment/payment.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pages/payment/payment.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./payment.vue?vue&type=template&id=031d9d14&\"\nvar renderjs\nimport script from \"./payment.vue?vue&type=script&lang=js&\"\nexport * from \"./payment.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\runtime\\\\componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/payment/payment.vue\"\nexport default component.exports","export * from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./payment.vue?vue&type=template&id=031d9d14&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./payment.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./payment.vue?vue&type=script&lang=js&\"","<template>\n\t<view>\n\t\t\n\t</view>\n</template>\n\n<script>\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\t\n\t\t\t}\n\t\t},\r\n\t\tonLoad(option){\r\n\t\t\tuni.requestPayment({\r\n\t\t\t provider: 'wxpay',\r\n\t\t\t timeStamp:option.timeStamp,\r\n\t\t\t nonceStr:option.nonceStr,\r\n\t\t\t package:option.package,\r\n\t\t\t signType:option.signType,\r\n\t\t\t paySign:option.paySign,\r\n\t\t\t success: function (res) {\r\n\t\t\t uni.redirectTo({\r\n\t\t\t url: 'paySuccess?orderId=123456'\r\n\t\t\t })\r\n\t\t\t },\r\n\t\t\t fail: function (err) {\r\n\t\t\t uni.showToast(err)\r\n\t\t\t }\r\n\t\t\t})\r\n\t\t},\r\n\t\t\r\n\t\t\n\t}\n</script>\n\n<style>\n\n</style>\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["uni-app:///main.js",null,"webpack:///E:/pangding/uni-pdtravel/pages/payment/payment.vue?2f6b","webpack:///E:/pangding/uni-pdtravel/pages/payment/payment.vue?e7f7","webpack:///E:/pangding/uni-pdtravel/pages/payment/payment.vue?bc93","uni-app:///pages/payment/payment.vue"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,kG;AACAA,UAAU,CAACC,gBAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAoH;AACpH;AAC2D;AACL;;;AAGtD;AAC2K;AAC3K,gBAAgB,+KAAU;AAC1B,EAAE,6EAAM;AACR,EAAE,kFAAM;AACR,EAAE,2FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,sFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACtBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA,WAAW,mBAAO,CAAC,wJAAgC;;AAEnD,WAAW,mBAAO,CAAC,uJAA+B;;AAElD,WAAW,mBAAO,CAAC,6JAAqC;;AAExD;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACxBA;AAAA;AAAA;AAAA;AAA+nB,CAAgB,2nBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC0GnpB;AACA,MADA,kBACA;AACA;;;AAGA,GALA;AAMA,QANA,kBAMA,MANA,EAMA;AACA;AACA,iDADA,EACA;AACA,4CAFA,EAEA;AACA,iBAHA,CAGA;AAHA;AAKA;AACA;AACA;AACA,2BADA;AAEA,uCAFA;AAGA,qCAHA;AAIA,mCAJA;AAKA,qCALA;AAMA,gCANA;AAOA;AACA;AACA,8CADA;;AAGA,WAXA;AAYA;AACA;AACA,+BADA;AAEA,4BAFA;;AAIA,WAjBA;;AAmBA,OApBA,MAoBA;AACA;AACA,4BADA;;AAGA;;AAEA,KA3BA;;AA6BA,GAzCA,E","file":"pages/payment/payment.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pages/payment/payment.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./payment.vue?vue&type=template&id=031d9d14&\"\nvar renderjs\nimport script from \"./payment.vue?vue&type=script&lang=js&\"\nexport * from \"./payment.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\runtime\\\\componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/payment/payment.vue\"\nexport default component.exports","export * from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./payment.vue?vue&type=template&id=031d9d14&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var m0 = require(\"@/assets/img/common/weixin.png\")\n\n var m1 = require(\"@/assets/img/common/input.png\")\n\n var m2 = require(\"@/assets/img/combination/kefu11.png\")\n\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n m0: m0,\n m1: m1,\n m2: m2\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!./payment.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\程序应用\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./payment.vue?vue&type=script&lang=js&\"","<template>\n\t<view>\n\t\t<div class=\"middle\" v-show=\"bodyShow\">\r\n\t\t <div class=\"main\">\r\n\t\t <!-- --------------------------------------复票----------------------------------------------- -->\r\n\t\t <div v-if=\"orderList!=''\" v-for=\"item of orderList\" :key=\"item.id\" class=\"product\">\r\n\t\t <p>\r\n\t\t <span>\r\n\t\t {{item.merchantName}}({{item.productName}})\r\n\t\t </span>\r\n\t\t\r\n\t\t <span>\r\n\t\t <small style=\"font-size: 0.24rem;\">¥</small>{{item.unitPrice}}\r\n\t\t <i>x</i>\r\n\t\t {{item.orderNum}}<br />\r\n\t\t <small style=\"margin-top: 0.15rem;font-size: 0.22rem;display: inline-block;color:#f45803;\" v-if=\"item.depositReceived\">押金:{{item.depositReceived}}</small>\r\n\t\t </span>\r\n\t\t </p>\r\n\t\t <p class=\"coupon\" v-if=\"item.pdDiscountMoney\">\r\n\t\t <span>\r\n\t\t 券\r\n\t\t </span>\r\n\t\t <i>\r\n\t\t <small style=\"font-size: 0.24rem;\">-¥</small>{{item.pdDiscountMoney}}\r\n\t\t </i>\r\n\t\t </p>\r\n\t\t </div>\r\n\t\t <!-- --------------------------------------单票----------------------------------------------- -->\r\n\t\t <div v-if=\"orderList==''\" class=\"product\">\r\n\t\t <p>\r\n\t\t <span>\r\n\t\t {{merchantName}}({{productName}})\r\n\t\t </span>\r\n\t\t\r\n\t\t <span style=\"text-align: right;\">\r\n\t\t <small style=\"font-size: 0.24rem;\">¥</small>{{unitPrice}}\r\n\t\t <i>x</i>\r\n\t\t {{orderNum}}<br />\r\n\t\t <small style=\"margin-top: 0.15rem;font-size: 0.22rem;display: inline-block;color:#f45803;\" v-if=\"depositReceived\">押金:{{depositReceived}}</small>\r\n\t\t\r\n\t\t </span>\r\n\t\t </p>\r\n\t\t <p class=\"coupon\" v-if=\"pdDiscountMoney\">\r\n\t\t <span>\r\n\t\t 券\r\n\t\t </span>\r\n\t\t <i>\r\n\t\t <small style=\"font-size: 0.24rem;\">-¥</small>{{pdDiscountMoney}}\r\n\t\t </i>\r\n\t\t </p>\r\n\t\t </div>\r\n\t\t <p class=\"mainP3\">\r\n\t\t <span>\r\n\t\t 实际支付\r\n\t\t </span>\r\n\t\t\r\n\t\t <span>\r\n\t\t <!--<i>\r\n\t\t\t\t\t\t¥{{totalMoney}}\r\n\t\t\t\t\t</i>-->\r\n\t\t\r\n\t\t <i>\r\n\t\t <small style=\"font-size: 0.28rem;\">¥</small>{{pdOrderMoney}}\r\n\t\t </i>\r\n\t\t </span>\r\n\t\t </p>\r\n\t\t <div class=\"mainDiv\">\r\n\t\t <span>\r\n\t\t <img src=\"@/assets/img/common/weixin.png\" style=\"width: 0.7rem;\" />\r\n\t\t </span>\r\n\t\t\r\n\t\t <div>\r\n\t\t <p>微信支付</p>\r\n\t\t </div>\r\n\t\t\r\n\t\t <span>\r\n\t\t <img src=\"@/assets/img/common/input.png\" style=\"width: 0.32rem;\" />\r\n\t\t </span>\r\n\t\t\r\n\t\t </div>\r\n\t\t </div>\r\n\t\t</div>\r\n\t\t\r\n\t\t<div class=\"bottom\" v-show=\"bodyShow\">\r\n\t\t <p>\r\n\t\t <span>\r\n\t\t 实付款\r\n\t\t </span>\r\n\t\t\r\n\t\t <span>\r\n\t\t <i>¥</i>{{pdOrderMoney}}\r\n\t\t </span>\r\n\t\t </p>\r\n\t\t\r\n\t\t <p>\r\n\t\t <a href=\"tel:400-072-0368\">\r\n\t\t <img src=\"@/assets/img/combination/kefu11.png\" style=\"width: 0.31rem;\" />\r\n\t\t\r\n\t\t </a>\r\n\t\t <a @click=\"weChatPay()\">去支付</a>\r\n\t\t </p>\r\n\t\t</div>\n\t</view>\n</template>\n\n<script>\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\t\n\t\t\t}\n\t\t},\r\n\t\tonLoad(option){\r\n\t\t\t let data = {\r\n\t\t\t\torderId:\"z001622021317935817023873227d6b1\", //订单Id\r\n\t\t\t\tuserId:\"oh2UV1lyYABHMZ1rMlgjhVHyyYDQ\", //用户Id\r\n\t\t\t\tpayType:42, //支付类型\r\n\t\t\t }\r\n\t\t\t this.$request(\"orderc/order/findOrderInfo?debug=true\", data).then((res) => {\r\n\t\t\t\tif (res.code == \"00\") {\r\n\t\t\t\t\tuni.requestPayment({\r\n\t\t\t\t\t provider: 'wxpay',\r\n\t\t\t\t\t timeStamp:res.data.timestamp,\r\n\t\t\t\t\t nonceStr:res.data.noncestr,\r\n\t\t\t\t\t package:res.data.package,\r\n\t\t\t\t\t signType:res.data.signType,\r\n\t\t\t\t\t paySign:res.data.sign,\r\n\t\t\t\t\t success: function (res) {\r\n\t\t\t\t\t uni.redirectTo({\r\n\t\t\t\t\t url: 'paySuccess?orderId=123456'\r\n\t\t\t\t\t })\r\n\t\t\t\t\t },\r\n\t\t\t\t\t fail: function (err) {\r\n\t\t\t\t\t uni.showToast({\r\n\t\t\t\t\t\t\t\ttitle:err.errMsg,\r\n\t\t\t\t\t\t\t\tduration:2000\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t }\r\n\t\t\t\t\t})\r\n\t\t\t\t}else{\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle:res.message\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t })\r\n\t\t\t\r\n\t\t},\r\n\t\t\r\n\t\t\n\t}\n</script>\n\n<style>\n\n</style>\n"],"sourceRoot":""}
\ No newline at end of file
unpackage/dist/dev/mp-alipay/pages/index/index.axml
View file @
5a75068b
<view class="bottom"><web-view src="https://wx.pangdly.com?appId=2021001194629244&ticket=123456"></web-view></view>
\ No newline at end of file
<view class="bottom"><button data-event-opts="{{[['tap',[['aaa']]]]}}" onTap="__e">456</button></view>
\ No newline at end of file
unpackage/dist/dev/mp-alipay/pages/index/index.js
View file @
5a75068b
...
...
@@ -253,6 +253,11 @@ var _default =
console
.
log
(
res
);
}
});
},
aaa
:
function
aaa
()
{
uni
.
navigateTo
({
url
:
'../payment/payment'
});
}
}
};
exports
.
default
=
_default
;
/* WEBPACK VAR INJECTION */
}.
call
(
this
,
__webpack_require__
(
/*! ./node_modules/@dcloudio/uni-mp-alipay/dist/index.js */
1
)[
"default"
]))
...
...
unpackage/dist/dev/mp-alipay/pages/payment/payment.axml
View file @
5a75068b
<view></view>
\ No newline at end of file
<view><view hidden="{{!(bodyShow)}}" class="middle _div"><view class="main _div"><block a:for="{{orderList}}" a:for-item="item" a:for-index="__i0__" a:key="id"><block a:if="{{orderList!=''}}"><view class="product _div"><view class="_p"><label class="_span">{{''+item.merchantName+"("+item.productName+')'}}</label><label class="_span"><view style="font-size:0.24rem;" class="_small">¥</view>{{item.unitPrice+''}}<view class="_i">x</view>{{''+item.orderNum}}<view class="_br"></view><block a:if="{{item.depositReceived}}"><view style="margin-top:0.15rem;font-size:0.22rem;display:inline-block;color:#f45803;" class="_small">{{"押金:"+item.depositReceived}}</view></block></label></view><block a:if="{{item.pdDiscountMoney}}"><view class="coupon _p"><label class="_span">券</label><view class="_i"><view style="font-size:0.24rem;" class="_small">-¥</view>{{item.pdDiscountMoney+''}}</view></view></block></view></block></block><block a:if="{{orderList==''}}"><view class="product _div"><view class="_p"><label class="_span">{{''+merchantName+"("+productName+')'}}</label><label style="text-align:right;" class="_span"><view style="font-size:0.24rem;" class="_small">¥</view>{{unitPrice+''}}<view class="_i">x</view>{{''+orderNum}}<view class="_br"></view><block a:if="{{depositReceived}}"><view style="margin-top:0.15rem;font-size:0.22rem;display:inline-block;color:#f45803;" class="_small">{{"押金:"+depositReceived}}</view></block></label></view><block a:if="{{pdDiscountMoney}}"><view class="coupon _p"><label class="_span">券</label><view class="_i"><view style="font-size:0.24rem;" class="_small">-¥</view>{{pdDiscountMoney+''}}</view></view></block></view></block><view class="mainP3 _p"><label class="_span">实际支付</label><label class="_span"><view class="_i"><view style="font-size:0.28rem;" class="_small">¥</view>{{pdOrderMoney+''}}</view></label></view><view class="mainDiv _div"><label class="_span"><image style="width:0.7rem;" src="{{$root.m0}}" class="_img"></image></label><view class="_div"><view class="_p">微信支付</view></view><label class="_span"><image style="width:0.32rem;" src="{{$root.m1}}" class="_img"></image></label></view></view></view><view hidden="{{!(bodyShow)}}" class="bottom _div"><view class="_p"><label class="_span">实付款</label><label class="_span"><view class="_i">¥</view>{{pdOrderMoney+''}}</label></view><view class="_p"><navigator href="tel:400-072-0368" class="_a"><image style="width:0.31rem;" src="{{$root.m2}}" class="_img"></image></navigator><navigator data-event-opts="{{[['tap',[['weChatPay']]]]}}" onTap="__e" class="_a">去支付</navigator></view></view></view>
\ No newline at end of file
unpackage/dist/dev/mp-alipay/pages/payment/payment.js
View file @
5a75068b
...
...
@@ -95,6 +95,22 @@ var render = function() {
var
_vm
=
this
var
_h
=
_vm
.
$createElement
var
_c
=
_vm
.
_self
.
_c
||
_h
var
m0
=
__webpack_require__
(
!
(
function
webpackMissingModule
()
{
var
e
=
new
Error
(
"Cannot find module '@/assets/img/common/weixin.png'"
);
e
.
code
=
'MODULE_NOT_FOUND'
;
throw
e
;
}()))
var
m1
=
__webpack_require__
(
!
(
function
webpackMissingModule
()
{
var
e
=
new
Error
(
"Cannot find module '@/assets/img/common/input.png'"
);
e
.
code
=
'MODULE_NOT_FOUND'
;
throw
e
;
}()))
var
m2
=
__webpack_require__
(
!
(
function
webpackMissingModule
()
{
var
e
=
new
Error
(
"Cannot find module '@/assets/img/combination/kefu11.png'"
);
e
.
code
=
'MODULE_NOT_FOUND'
;
throw
e
;
}()))
_vm
.
$mp
.
data
=
Object
.
assign
(
{},
{
$root
:
{
m0
:
m0
,
m1
:
m1
,
m2
:
m2
}
}
)
}
var
recyclableRender
=
false
var
staticRenderFns
=
[]
...
...
@@ -134,6 +150,105 @@ __webpack_require__.r(__webpack_exports__);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var
_default
=
{
data
:
function
data
()
{
...
...
@@ -142,21 +257,39 @@ var _default =
},
onLoad
:
function
onLoad
(
option
)
{
uni
.
requestPayment
({
provider
:
'wxpay'
,
timeStamp
:
option
.
timeStamp
,
nonceStr
:
option
.
nonceStr
,
package
:
option
.
package
,
signType
:
option
.
signType
,
paySign
:
option
.
paySign
,
success
:
function
success
(
res
)
{
uni
.
redirectTo
({
url
:
'paySuccess?orderId=123456'
});
},
fail
:
function
fail
(
err
)
{
uni
.
showToast
(
err
);
}
});
var
data
=
{
orderId
:
"z001622021317935817023873227d6b1"
,
//订单Id
userId
:
"oh2UV1lyYABHMZ1rMlgjhVHyyYDQ"
,
//用户Id
payType
:
42
//支付类型
};
this
.
$request
(
"orderc/order/findOrderInfo?debug=true"
,
data
).
then
(
function
(
res
)
{
if
(
res
.
code
==
"00"
)
{
uni
.
requestPayment
({
provider
:
'wxpay'
,
timeStamp
:
res
.
data
.
timestamp
,
nonceStr
:
res
.
data
.
noncestr
,
package
:
res
.
data
.
package
,
signType
:
res
.
data
.
signType
,
paySign
:
res
.
data
.
sign
,
success
:
function
success
(
res
)
{
uni
.
redirectTo
({
url
:
'paySuccess?orderId=123456'
});
},
fail
:
function
fail
(
err
)
{
uni
.
showToast
({
title
:
err
.
errMsg
,
duration
:
2000
});
}
});
}
else
{
uni
.
showToast
({
title
:
res
.
message
});
}
});
}
};
exports
.
default
=
_default
;
/* WEBPACK VAR INJECTION */
}.
call
(
this
,
__webpack_require__
(
/*! ./node_modules/@dcloudio/uni-mp-alipay/dist/index.js */
1
)[
"default"
]))
...
...
unpackage/dist/dev/mp-weixin/app.json
View file @
5a75068b
...
...
@@ -15,5 +15,6 @@
"desc"
:
"请点击确定"
}
},
"usingComponents"
:
{}
"usingComponents"
:
{},
"sitemapLocation"
:
"sitemap.json"
}
\ No newline at end of file
unpackage/dist/dev/mp-weixin/pages/index/index.js
View file @
5a75068b
...
...
@@ -253,6 +253,11 @@ var _default =
console
.
log
(
res
);
}
});
},
aaa
:
function
aaa
()
{
uni
.
navigateTo
({
url
:
'../payment/payment'
});
}
}
};
exports
.
default
=
_default
;
/* WEBPACK VAR INJECTION */
}.
call
(
this
,
__webpack_require__
(
/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */
1
)[
"default"
]))
...
...
unpackage/dist/dev/mp-weixin/pages/index/index.wxml
View file @
5a75068b
<view class="bottom"><web-view src="https://wx.pangdly.com"></web-view></view>
\ No newline at end of file
<view class="bottom"><button data-event-opts="{{[['tap',[['aaa']]]]}}" bindtap="__e">456</button></view>
\ No newline at end of file
unpackage/dist/dev/mp-weixin/pages/payment/payment.js
View file @
5a75068b
(
global
[
"webpackJsonp"
]
=
global
[
"webpackJsonp"
]
||
[]).
push
([[
"pages/payment/payment"
],{
/***/
2
2
:
/***/
2
0
:
/*!*****************************************************************************!*\
!*** E:/pangding/uni-pdtravel/main.js?{"page":"pages%2Fpayment%2Fpayment"} ***!
\*****************************************************************************/
...
...
@@ -10,13 +10,13 @@
"use strict"
;
/* WEBPACK VAR INJECTION */
(
function
(
createPage
)
{
__webpack_require__
(
/*! uni-pages */
4
);
var
_vue
=
_interopRequireDefault
(
__webpack_require__
(
/*! vue */
2
));
var
_payment
=
_interopRequireDefault
(
__webpack_require__
(
/*! ./pages/payment/payment.vue */
2
3
));
function
_interopRequireDefault
(
obj
)
{
return
obj
&&
obj
.
__esModule
?
obj
:
{
default
:
obj
};}
var
_payment
=
_interopRequireDefault
(
__webpack_require__
(
/*! ./pages/payment/payment.vue */
2
1
));
function
_interopRequireDefault
(
obj
)
{
return
obj
&&
obj
.
__esModule
?
obj
:
{
default
:
obj
};}
createPage
(
_payment
.
default
);
/* WEBPACK VAR INJECTION */
}.
call
(
this
,
__webpack_require__
(
/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */
1
)[
"createPage"
]))
/***/
}),
/***/
2
3
:
/***/
2
1
:
/*!**********************************************************!*\
!*** E:/pangding/uni-pdtravel/pages/payment/payment.vue ***!
\**********************************************************/
...
...
@@ -25,8 +25,8 @@ createPage(_payment.default);
"use strict"
;
__webpack_require__
.
r
(
__webpack_exports__
);
/* harmony import */
var
_payment_vue_vue_type_template_id_031d9d14___WEBPACK_IMPORTED_MODULE_0__
=
__webpack_require__
(
/*! ./payment.vue?vue&type=template&id=031d9d14& */
2
4
);
/* harmony import */
var
_payment_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__
=
__webpack_require__
(
/*! ./payment.vue?vue&type=script&lang=js& */
2
6
);
/* harmony import */
var
_payment_vue_vue_type_template_id_031d9d14___WEBPACK_IMPORTED_MODULE_0__
=
__webpack_require__
(
/*! ./payment.vue?vue&type=template&id=031d9d14& */
2
2
);
/* harmony import */
var
_payment_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__
=
__webpack_require__
(
/*! ./payment.vue?vue&type=script&lang=js& */
2
4
);
/* harmony reexport (unknown) */
for
(
var
__WEBPACK_IMPORT_KEY__
in
_payment_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__
)
if
(
__WEBPACK_IMPORT_KEY__
!==
'default'
)
(
function
(
key
)
{
__webpack_require__
.
d
(
__webpack_exports__
,
key
,
function
()
{
return
_payment_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__
[
key
];
})
}(
__WEBPACK_IMPORT_KEY__
));
/* harmony import */
var
_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__
=
__webpack_require__
(
/*! ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */
10
);
...
...
@@ -55,7 +55,7 @@ component.options.__file = "pages/payment/payment.vue"
/***/
}),
/***/
2
4
:
/***/
2
2
:
/*!*****************************************************************************************!*\
!*** E:/pangding/uni-pdtravel/pages/payment/payment.vue?vue&type=template&id=031d9d14& ***!
\*****************************************************************************************/
...
...
@@ -64,7 +64,7 @@ component.options.__file = "pages/payment/payment.vue"
"use strict"
;
__webpack_require__
.
r
(
__webpack_exports__
);
/* harmony import */
var
_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_payment_vue_vue_type_template_id_031d9d14___WEBPACK_IMPORTED_MODULE_0__
=
__webpack_require__
(
/*! -!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./payment.vue?vue&type=template&id=031d9d14& */
2
5
);
/* harmony import */
var
_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_payment_vue_vue_type_template_id_031d9d14___WEBPACK_IMPORTED_MODULE_0__
=
__webpack_require__
(
/*! -!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./payment.vue?vue&type=template&id=031d9d14& */
2
3
);
/* harmony reexport (safe) */
__webpack_require__
.
d
(
__webpack_exports__
,
"render"
,
function
()
{
return
_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_payment_vue_vue_type_template_id_031d9d14___WEBPACK_IMPORTED_MODULE_0__
[
"render"
];
});
/* harmony reexport (safe) */
__webpack_require__
.
d
(
__webpack_exports__
,
"staticRenderFns"
,
function
()
{
return
_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_payment_vue_vue_type_template_id_031d9d14___WEBPACK_IMPORTED_MODULE_0__
[
"staticRenderFns"
];
});
...
...
@@ -77,7 +77,7 @@ __webpack_require__.r(__webpack_exports__);
/***/
}),
/***/
2
5
:
/***/
2
3
:
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!E:/pangding/uni-pdtravel/pages/payment/payment.vue?vue&type=template&id=031d9d14& ***!
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
...
...
@@ -95,6 +95,22 @@ var render = function() {
var
_vm
=
this
var
_h
=
_vm
.
$createElement
var
_c
=
_vm
.
_self
.
_c
||
_h
var
m0
=
__webpack_require__
(
!
(
function
webpackMissingModule
()
{
var
e
=
new
Error
(
"Cannot find module '@/assets/img/common/weixin.png'"
);
e
.
code
=
'MODULE_NOT_FOUND'
;
throw
e
;
}()))
var
m1
=
__webpack_require__
(
!
(
function
webpackMissingModule
()
{
var
e
=
new
Error
(
"Cannot find module '@/assets/img/common/input.png'"
);
e
.
code
=
'MODULE_NOT_FOUND'
;
throw
e
;
}()))
var
m2
=
__webpack_require__
(
!
(
function
webpackMissingModule
()
{
var
e
=
new
Error
(
"Cannot find module '@/assets/img/combination/kefu11.png'"
);
e
.
code
=
'MODULE_NOT_FOUND'
;
throw
e
;
}()))
_vm
.
$mp
.
data
=
Object
.
assign
(
{},
{
$root
:
{
m0
:
m0
,
m1
:
m1
,
m2
:
m2
}
}
)
}
var
recyclableRender
=
false
var
staticRenderFns
=
[]
...
...
@@ -104,7 +120,7 @@ render._withStripped = true
/***/
}),
/***/
2
6
:
/***/
2
4
:
/*!***********************************************************************************!*\
!*** E:/pangding/uni-pdtravel/pages/payment/payment.vue?vue&type=script&lang=js& ***!
\***********************************************************************************/
...
...
@@ -113,14 +129,14 @@ render._withStripped = true
"use strict"
;
__webpack_require__
.
r
(
__webpack_exports__
);
/* harmony import */
var
_D_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_payment_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__
=
__webpack_require__
(
/*! -!./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./payment.vue?vue&type=script&lang=js& */
2
7
);
/* harmony import */
var
_D_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_payment_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__
=
__webpack_require__
(
/*! -!./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./payment.vue?vue&type=script&lang=js& */
2
5
);
/* harmony import */
var
_D_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_payment_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default
=
/*#__PURE__*/
__webpack_require__
.
n
(
_D_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_payment_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__
);
/* harmony reexport (unknown) */
for
(
var
__WEBPACK_IMPORT_KEY__
in
_D_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_payment_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__
)
if
(
__WEBPACK_IMPORT_KEY__
!==
'default'
)
(
function
(
key
)
{
__webpack_require__
.
d
(
__webpack_exports__
,
key
,
function
()
{
return
_D_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_payment_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__
[
key
];
})
}(
__WEBPACK_IMPORT_KEY__
));
/* harmony default export */
__webpack_exports__
[
"default"
]
=
(
_D_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_payment_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default
.
a
);
/***/
}),
/***/
2
7
:
/***/
2
5
:
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!E:/pangding/uni-pdtravel/pages/payment/payment.vue?vue&type=script&lang=js& ***!
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
...
...
@@ -134,6 +150,105 @@ __webpack_require__.r(__webpack_exports__);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var
_default
=
{
data
:
function
data
()
{
...
...
@@ -142,26 +257,44 @@ var _default =
},
onLoad
:
function
onLoad
(
option
)
{
uni
.
requestPayment
({
provider
:
'wxpay'
,
timeStamp
:
option
.
timeStamp
,
nonceStr
:
option
.
nonceStr
,
package
:
option
.
package
,
signType
:
option
.
signType
,
paySign
:
option
.
paySign
,
success
:
function
success
(
res
)
{
uni
.
redirectTo
({
url
:
'paySuccess?orderId=123456'
});
},
fail
:
function
fail
(
err
)
{
uni
.
showToast
(
err
);
}
});
var
data
=
{
orderId
:
"z001622021317935817023873227d6b1"
,
//订单Id
userId
:
"oh2UV1lyYABHMZ1rMlgjhVHyyYDQ"
,
//用户Id
payType
:
42
//支付类型
};
this
.
$request
(
"orderc/order/findOrderInfo?debug=true"
,
data
).
then
(
function
(
res
)
{
if
(
res
.
code
==
"00"
)
{
uni
.
requestPayment
({
provider
:
'wxpay'
,
timeStamp
:
res
.
data
.
timestamp
,
nonceStr
:
res
.
data
.
noncestr
,
package
:
res
.
data
.
package
,
signType
:
res
.
data
.
signType
,
paySign
:
res
.
data
.
sign
,
success
:
function
success
(
res
)
{
uni
.
redirectTo
({
url
:
'paySuccess?orderId=123456'
});
},
fail
:
function
fail
(
err
)
{
uni
.
showToast
({
title
:
err
.
errMsg
,
duration
:
2000
});
}
});
}
else
{
uni
.
showToast
({
title
:
res
.
message
});
}
});
}
};
exports
.
default
=
_default
;
/* WEBPACK VAR INJECTION */
}.
call
(
this
,
__webpack_require__
(
/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */
1
)[
"default"
]))
/***/
})
},[[
2
2
,
"common/runtime"
,
"common/vendor"
]]]);
},[[
2
0
,
"common/runtime"
,
"common/vendor"
]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/payment/payment.js.map
\ No newline at end of file
unpackage/dist/dev/mp-weixin/pages/payment/payment.wxml
View file @
5a75068b
<view></view>
\ No newline at end of file
<view><view hidden="{{!(bodyShow)}}" class="middle _div"><view class="main _div"><block wx:for="{{orderList}}" wx:for-item="item" wx:for-index="__i0__" wx:key="id"><block wx:if="{{orderList!=''}}"><view class="product _div"><view class="_p"><label class="_span">{{''+item.merchantName+"("+item.productName+')'}}</label><label class="_span"><view style="font-size:0.24rem;" class="_small">¥</view>{{item.unitPrice+''}}<view class="_i">x</view>{{''+item.orderNum}}<view class="_br"></view><block wx:if="{{item.depositReceived}}"><view style="margin-top:0.15rem;font-size:0.22rem;display:inline-block;color:#f45803;" class="_small">{{"押金:"+item.depositReceived}}</view></block></label></view><block wx:if="{{item.pdDiscountMoney}}"><view class="coupon _p"><label class="_span">券</label><view class="_i"><view style="font-size:0.24rem;" class="_small">-¥</view>{{item.pdDiscountMoney+''}}</view></view></block></view></block></block><block wx:if="{{orderList==''}}"><view class="product _div"><view class="_p"><label class="_span">{{''+merchantName+"("+productName+')'}}</label><label style="text-align:right;" class="_span"><view style="font-size:0.24rem;" class="_small">¥</view>{{unitPrice+''}}<view class="_i">x</view>{{''+orderNum}}<view class="_br"></view><block wx:if="{{depositReceived}}"><view style="margin-top:0.15rem;font-size:0.22rem;display:inline-block;color:#f45803;" class="_small">{{"押金:"+depositReceived}}</view></block></label></view><block wx:if="{{pdDiscountMoney}}"><view class="coupon _p"><label class="_span">券</label><view class="_i"><view style="font-size:0.24rem;" class="_small">-¥</view>{{pdDiscountMoney+''}}</view></view></block></view></block><view class="mainP3 _p"><label class="_span">实际支付</label><label class="_span"><view class="_i"><view style="font-size:0.28rem;" class="_small">¥</view>{{pdOrderMoney+''}}</view></label></view><view class="mainDiv _div"><label class="_span"><image style="width:0.7rem;" src="{{$root.m0}}" class="_img"></image></label><view class="_div"><view class="_p">微信支付</view></view><label class="_span"><image style="width:0.32rem;" src="{{$root.m1}}" class="_img"></image></label></view></view></view><view hidden="{{!(bodyShow)}}" class="bottom _div"><view class="_p"><label class="_span">实付款</label><label class="_span"><view class="_i">¥</view>{{pdOrderMoney+''}}</label></view><view class="_p"><navigator href="tel:400-072-0368" class="_a"><image style="width:0.31rem;" src="{{$root.m2}}" class="_img"></image></navigator><navigator data-event-opts="{{[['tap',[['weChatPay']]]]}}" bindtap="__e" class="_a">去支付</navigator></view></view></view>
\ No newline at end of file
unpackage/dist/dev/mp-weixin/project.config.json
View file @
5a75068b
...
...
@@ -4,7 +4,7 @@
"ignore"
:
[]
},
"setting"
:
{
"urlCheck"
:
tru
e
,
"urlCheck"
:
fals
e
,
"es6"
:
true
,
"enhance"
:
false
,
"postcss"
:
true
,
...
...
unpackage/dist/dev/mp-weixin/project.private.config.json
0 → 100644
View file @
5a75068b
{
"setting"
:
{},
"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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment