|
@@ -20,6 +20,11 @@ import styles from './index.module.less'
|
|
|
import { state } from '@/state'
|
|
|
import { orderStatus } from '../orderStatus'
|
|
|
import { useEventTracking } from '@/helpers/hooks'
|
|
|
+import activeButtonIcon from '@common/images/icon_checkbox.png'
|
|
|
+import inactiveButtonIcon from '@common/images/icon_checkbox_default.png'
|
|
|
+import activeButtonIconTenant from '@common/images/icon_checkbox-tenant.png'
|
|
|
+import iconWechat from '@common/images/icon-wechat.png'
|
|
|
+import iconAlipay from '@common/images/icon-alipay.png'
|
|
|
|
|
|
interface IOrderInfo {
|
|
|
orderNo: string | number
|
|
@@ -193,63 +198,12 @@ export default defineComponent({
|
|
|
return (
|
|
|
<div class={styles.payment}>
|
|
|
<Icon onClick={this.onClose} name="cross" size={20} />
|
|
|
- {/* <div class={[styles.title, 'van-hairline--bottom']}>选择支付方式</div>
|
|
|
-
|
|
|
- <div class={styles.payAmount}>
|
|
|
- <p>应付金额</p>
|
|
|
- <div class={styles.amount}>
|
|
|
- {(this as any).$filters.moneyFormat(this.orderInfo.actualPrice)}
|
|
|
- <span>元</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <RadioGroup v-model={this.payType}>
|
|
|
- <CellGroup border={false}>
|
|
|
- <Cell
|
|
|
- title="支付宝支付"
|
|
|
- border={false}
|
|
|
- center
|
|
|
- onClick={() => {
|
|
|
- this.payType = 'ali_app'
|
|
|
- }}
|
|
|
- v-slots={{
|
|
|
- icon: () => <Icon name="alipay" color="#009fe9" size={22} />,
|
|
|
- 'right-icon': () => <Radio name="ali_app" />
|
|
|
- }}
|
|
|
- ></Cell>
|
|
|
- <Cell
|
|
|
- title="微信支付"
|
|
|
- border={false}
|
|
|
- center
|
|
|
- onClick={() => {
|
|
|
- // wx_lite
|
|
|
- this.payType = 'wx_app'
|
|
|
- }}
|
|
|
- v-slots={{
|
|
|
- icon: () => (
|
|
|
- <Icon name="wechat-pay" color="#15c434" size={22} />
|
|
|
- ),
|
|
|
- 'right-icon': () => <Radio name="wx_app" />
|
|
|
- }}
|
|
|
- ></Cell>
|
|
|
- </CellGroup>
|
|
|
- </RadioGroup>
|
|
|
-
|
|
|
- <div class={styles.blank}></div>
|
|
|
- <Button
|
|
|
- type="primary"
|
|
|
- class={styles.payBtn}
|
|
|
- block
|
|
|
- round
|
|
|
- onClick={this.onSubmit}
|
|
|
- >
|
|
|
- 确认支付
|
|
|
- </Button> */}
|
|
|
<div class={[styles.title]}>选择支付方式</div>
|
|
|
|
|
|
<div class={styles.payAmount}>
|
|
|
<p>应付金额</p>
|
|
|
<div class={styles.amount}>
|
|
|
- <span>¥ </span>
|
|
|
+ <span>¥</span>
|
|
|
{(this as any).$filters.moneyFormat(this.orderInfo.actualPrice)}
|
|
|
</div>
|
|
|
</div>
|
|
@@ -263,10 +217,26 @@ export default defineComponent({
|
|
|
this.payType = 'wx_app'
|
|
|
}}
|
|
|
v-slots={{
|
|
|
- icon: () => (
|
|
|
- <Icon name="wechat-pay" color="#15c434" size={22} />
|
|
|
+ icon: () => <Icon name={iconWechat} size={18} />,
|
|
|
+ 'right-icon': () => (
|
|
|
+ <Radio
|
|
|
+ name="wx_app"
|
|
|
+ v-slots={{
|
|
|
+ icon: (props: any) => (
|
|
|
+ <Icon
|
|
|
+ class={styles.boxStyle}
|
|
|
+ name={
|
|
|
+ props.checked
|
|
|
+ ? state.projectType === 'tenant'
|
|
|
+ ? activeButtonIconTenant
|
|
|
+ : activeButtonIcon
|
|
|
+ : inactiveButtonIcon
|
|
|
+ }
|
|
|
+ />
|
|
|
+ )
|
|
|
+ }}
|
|
|
+ />
|
|
|
),
|
|
|
- 'right-icon': () => <Radio name="wx_app" />,
|
|
|
title: () => (
|
|
|
<div class={styles.payTypeRe}>
|
|
|
微信支付 <span class={styles.recommend}>推荐</span>
|
|
@@ -282,8 +252,27 @@ export default defineComponent({
|
|
|
this.payType = 'ali_app'
|
|
|
}}
|
|
|
v-slots={{
|
|
|
- icon: () => <Icon name="alipay" color="#009fe9" size={22} />,
|
|
|
- 'right-icon': () => <Radio name="ali_app" />
|
|
|
+ icon: () => <Icon name={iconAlipay} size={18} />,
|
|
|
+ 'right-icon': () => (
|
|
|
+ <Radio
|
|
|
+ name="ali_app"
|
|
|
+ v-slots={{
|
|
|
+ icon: (props: any) => (
|
|
|
+ <Icon
|
|
|
+ class={styles.boxStyle}
|
|
|
+ name={
|
|
|
+ props.checked
|
|
|
+ ? state.projectType === 'tenant'
|
|
|
+ ? activeButtonIconTenant
|
|
|
+ : activeButtonIcon
|
|
|
+ : inactiveButtonIcon
|
|
|
+ }
|
|
|
+ />
|
|
|
+ )
|
|
|
+ }}
|
|
|
+ />
|
|
|
+ ),
|
|
|
+ title: () => <div class={styles.payTypeRe}>支付宝支付</div>
|
|
|
}}
|
|
|
></Cell>
|
|
|
</CellGroup>
|
|
@@ -292,7 +281,10 @@ export default defineComponent({
|
|
|
<div class={styles.blank}></div>
|
|
|
<Button
|
|
|
type="primary"
|
|
|
- class={styles.payBtn}
|
|
|
+ class={[
|
|
|
+ styles.payBtn,
|
|
|
+ state.projectType === 'tenant' && styles.tenantPayBtn
|
|
|
+ ]}
|
|
|
block
|
|
|
round
|
|
|
onClick={this.onSubmit}
|