Browse Source

Update index.tsx

lex 2 years ago
parent
commit
f4444c6494
1 changed files with 11 additions and 11 deletions
  1. 11 11
      src/views/adapay/payment/index.tsx

+ 11 - 11
src/views/adapay/payment/index.tsx

@@ -14,7 +14,7 @@ export default defineComponent({
   emits: ['backOut', 'close', 'confirm'],
   setup(props, { slots, attrs, emit }) {
     const state = reactive({
-      payType: 'zfb',
+      payType: 'wx',
       pay_channel: ''
     })
     const onClose = () => {
@@ -89,29 +89,29 @@ export default defineComponent({
         <RadioGroup v-model={state.payType}>
           <CellGroup border={false}>
             <Cell
-              title="支付宝支付"
+              title="微信支付"
               border={false}
               center
               onClick={() => {
-                // alipay
-                state.payType = 'zfb'
+                // wx_lite
+                state.payType = 'wx'
               }}
               v-slots={{
-                icon: () => <Icon name="alipay" color="#009fe9" size={22} />,
-                'right-icon': () => <Radio name="zfb" />
+                icon: () => <Icon name="wechat-pay" color="#15c434" size={22} />,
+                'right-icon': () => <Radio name="wx" />
               }}
             ></Cell>
             <Cell
-              title="微信支付"
+              title="支付宝支付"
               border={false}
               center
               onClick={() => {
-                // wx_lite
-                state.payType = 'wx'
+                // alipay
+                state.payType = 'zfb'
               }}
               v-slots={{
-                icon: () => <Icon name="wechat-pay" color="#15c434" size={22} />,
-                'right-icon': () => <Radio name="wx" />
+                icon: () => <Icon name="alipay" color="#009fe9" size={22} />,
+                'right-icon': () => <Radio name="zfb" />
               }}
             ></Cell>
           </CellGroup>