|
@@ -1,5 +1,5 @@
|
|
|
import request from '@/helpers/request'
|
|
|
-import { browser, getUrlCode } from '@/helpers/utils'
|
|
|
+import { browser, getUrlCode, moneyFormat } from '@/helpers/utils'
|
|
|
import {
|
|
|
Cell,
|
|
|
CellGroup,
|
|
@@ -169,7 +169,7 @@ export default defineComponent({
|
|
|
// 用户授权
|
|
|
const urlNow = encodeURIComponent(window.location.href)
|
|
|
const scope = 'snsapi_base' //snsapi_userinfo //静默授权 用户无感知
|
|
|
- const appid = state.payMap.wxAppId || 'wx751141096e75a4ee'
|
|
|
+ const appid = state.wxAppId || 'wx8654c671631cfade'
|
|
|
const url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appid}&redirect_uri=${urlNow}&response_type=code&scope=${scope}&state=STATE&connect_redirect=1#wechat_redirect`
|
|
|
window.location.replace(url)
|
|
|
}
|
|
@@ -184,13 +184,13 @@ export default defineComponent({
|
|
|
<>
|
|
|
<div class={styles.container}>
|
|
|
<CellGroup border={false}>
|
|
|
- <Cell title={'订单金额'} value={'¥' + 0}></Cell>
|
|
|
- <Cell title={'订单信息'} value={'121212'}></Cell>
|
|
|
+ <Cell title={'订单金额'} value={'¥' + moneyFormat(state.price)}></Cell>
|
|
|
+ <Cell title={'订单信息'} value={state.body}></Cell>
|
|
|
</CellGroup>
|
|
|
</div>
|
|
|
|
|
|
<div class={styles['order-loading']}>
|
|
|
- <p>{state.payType == 'wx_pub' ? '微信支付' : '支付宝支付'}</p>
|
|
|
+ <p>{state.pay_channel == 'wx_pub' ? '微信支付' : '支付宝支付'}</p>
|
|
|
<Loading type="spinner" color="#01C1B5" />
|
|
|
</div>
|
|
|
</>
|