赛事报名民生付
Showing
5 changed files
with
59 additions
and
0 deletions
| ... | @@ -19,3 +19,6 @@ VITE_APP_XXL_JOB_ADMIN = 'http://localhost:9100/xxl-job-admin' | ... | @@ -19,3 +19,6 @@ VITE_APP_XXL_JOB_ADMIN = 'http://localhost:9100/xxl-job-admin' |
| 19 | VITE_APP_SOCKET_URL='http://192.168.1.133:8088' | 19 | VITE_APP_SOCKET_URL='http://192.168.1.133:8088' |
| 20 | 20 | ||
| 21 | VITE_TICKET_BASE_API = 'ticket' | 21 | VITE_TICKET_BASE_API = 'ticket' |
| 22 | |||
| 23 | # 民生付 | ||
| 24 | VITE_APP_MSPAY_URL = 'https://wxpay.cmbc.com.cn/mobilePlatform/unitypay/unityPayReq.do' | ... | ... |
| ... | @@ -22,3 +22,6 @@ VITE_BUILD_COMPRESS = gzip | ... | @@ -22,3 +22,6 @@ VITE_BUILD_COMPRESS = gzip |
| 22 | VITE_APP_SOCKET_URL='http://192.168.1.133:8088' | 22 | VITE_APP_SOCKET_URL='http://192.168.1.133:8088' |
| 23 | 23 | ||
| 24 | VITE_TICKET_BASE_API = 'https://ticketh5.wdsfwuxicenter.com/ticket' | 24 | VITE_TICKET_BASE_API = 'https://ticketh5.wdsfwuxicenter.com/ticket' |
| 25 | |||
| 26 | # 民生付 | ||
| 27 | VITE_APP_MSPAY_URL = 'https://epay.cmbc.com.cn/appweb/unitypay/unityPayReq.do' | ... | ... |
| ... | @@ -22,3 +22,6 @@ VITE_BUILD_COMPRESS = gzip | ... | @@ -22,3 +22,6 @@ VITE_BUILD_COMPRESS = gzip |
| 22 | VITE_APP_SOCKET_URL='http://192.168.1.133:8088' | 22 | VITE_APP_SOCKET_URL='http://192.168.1.133:8088' |
| 23 | 23 | ||
| 24 | VITE_TICKET_BASE_API = 'https://jijin.wtwuxicenter.com/ticket/' | 24 | VITE_TICKET_BASE_API = 'https://jijin.wtwuxicenter.com/ticket/' |
| 25 | |||
| 26 | # 民生付 | ||
| 27 | VITE_APP_MSPAY_URL = 'https://epay.cmbc.com.cn/appweb/unitypay/unityPayReq.do' | ... | ... |
src/components/Pay/MingPay.vue
0 → 100644
| 1 | <template> | ||
| 2 | <div> | ||
| 3 | <form | ||
| 4 | v-show="show" | ||
| 5 | id="unityPayForm" | ||
| 6 | ref="myFormRef" | ||
| 7 | method="post" | ||
| 8 | :action="url" | ||
| 9 | > | ||
| 10 | <textarea name="context" style="width: 100%;height: 400px;"> | ||
| 11 | {{ formData }} | ||
| 12 | </textarea> | ||
| 13 | <button type="submit">提交</button> | ||
| 14 | </form> | ||
| 15 | </div> | ||
| 16 | </template> | ||
| 17 | |||
| 18 | <script setup > | ||
| 19 | import { nextTick, ref } from 'vue' | ||
| 20 | |||
| 21 | const props = defineProps({ | ||
| 22 | show: { | ||
| 23 | type: Boolean, | ||
| 24 | default: false | ||
| 25 | }, | ||
| 26 | action: { | ||
| 27 | type: String, | ||
| 28 | default: '' | ||
| 29 | } | ||
| 30 | }) | ||
| 31 | const url = ref(import.meta.env.VITE_APP_MSPAY_URL) | ||
| 32 | const formData = ref() | ||
| 33 | const myFormRef = ref(null) | ||
| 34 | |||
| 35 | function handleSubmit(row) { | ||
| 36 | formData.value = row | ||
| 37 | if (props.action) url.value = props.action | ||
| 38 | nextTick(() => { | ||
| 39 | if (myFormRef.value) myFormRef.value.submit() | ||
| 40 | }) | ||
| 41 | } | ||
| 42 | |||
| 43 | defineExpose({ | ||
| 44 | handleSubmit | ||
| 45 | }) | ||
| 46 | </script> | ||
| 47 | |||
| 48 | <style scoped lang="scss"> | ||
| 49 | |||
| 50 | </style> |
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment