赛事报名民生付
Showing
5 changed files
with
130 additions
and
60 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> |
| 1 | <template> | 1 | <template> |
| 2 | <div style="min-height: 100vh"> | 2 | <div v-loading="showLoading" style="min-height: 100vh"> |
| 3 | <div v-if="!errorBox" class="box"> | 3 | <div v-if="!errorBox" class="box"> |
| 4 | <el-card :body-style="{ padding: '0px' }" class="mt20"> | 4 | <el-card :body-style="{ padding: '0px' }" class="mt20"> |
| 5 | <div slot="header"> | 5 | <div slot="header"> |
| ... | @@ -182,27 +182,27 @@ | ... | @@ -182,27 +182,27 @@ |
| 182 | </div> | 182 | </div> |
| 183 | <div class="mt20"> | 183 | <div class="mt20"> |
| 184 | <el-radio-group v-model="payType" @change="changePaytype"> | 184 | <el-radio-group v-model="payType" @change="changePaytype"> |
| 185 | <!-- 0 线下 1 支付宝 2 微信 3 paypal--> | 185 | <!-- 0 线下 1 支付宝 2 微信 3 paypal 4 民生付--> |
| 186 | <!-- <el-radio label="1" border>--> | 186 | <!-- <el-radio label="1" border>--> |
| 187 | <!-- <svg t="1709003181386" class="icon" viewBox="0 0 3283 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="31015" width="100" height="40"><path d="M1163.122759 94.631724H593.92A133.826207 133.826207 0 0 0 459.034483 228.457931v567.084138a133.473103 133.473103 0 0 0 133.826207 133.826207h570.262069a133.826207 133.826207 0 0 0 134.17931-133.826207v-5.296552s-217.864828-90.394483-328.033103-143.36c-73.445517 90.747586-168.783448 145.478621-267.652414 145.478621-167.017931 0-223.514483-145.831724-144.419311-241.875862a169.136552 169.136552 0 0 1 92.16-51.906207c70.62069-17.302069 184.32 10.946207 290.604138 45.903448A587.211034 587.211034 0 0 0 988.689655 429.373793h-328.73931v-32.838621h168.783448V337.213793h-204.446896v-33.191724h204.446896V219.630345a14.124138 14.124138 0 0 1 14.477241-14.477242h82.273104v98.868966h202.328276v33.191724h-202.328276v59.321379h165.252414a677.605517 677.605517 0 0 1-70.62069 176.551725c50.14069 18.008276 94.984828 35.310345 128.529655 46.256551a930.427586 930.427586 0 0 0 147.950345 42.725518V228.457931a133.826207 133.826207 0 0 0-133.473103-133.826207z" fill="#089fe8" p-id="31016"></path><path d="M663.481379 548.016552a162.78069 162.78069 0 0 0-81.566896 30.366896c-64.617931 55.790345-26.129655 158.190345 104.165517 158.190345 75.917241 0 151.481379-48.375172 211.862069-125.704827-85.804138-40.96-156.424828-70.267586-234.46069-62.852414zM2488.673103 225.28h239.757242v47.668966h85.804138V216.805517a22.951724 22.951724 0 0 0-21.892414-23.304827h-139.122759V149.009655h-89.335172v44.137931h-160.662069v79.80138h85.451034zM1882.394483 360.518621h67.442758v247.172413h73.798621V280.011034h-26.835862l55.437241-126.764137H1970.317241l-87.922758 207.271724zM2824.827586 596.391724l-26.835862-90.747586a13.771034 13.771034 0 0 0-13.064827-10.24h-70.62069l20.48 70.62069H2648.275862v-135.944828h164.546207v-32.132414H2648.275862v-63.55862h164.546207v-32.132414h-409.6v32.132414h164.546207v63.55862h-164.546207v32.132414h164.546207V564.965517h-164.546207v32.132414H2824.827586zM2158.521379 323.442759a16.595862 16.595862 0 0 0-15.183448-9.886897h-63.558621l49.434483 156.424828h75.564138z" fill="#089fe8" p-id="31017"></path><path d="M2319.889655 156.777931h-76.623448v80.154483h-188.557241v32.132414h188.557241v287.426206a13.064828 13.064828 0 0 1-12.358621 12.005518h-38.841379v31.77931h99.222069a30.013793 30.013793 0 0 0 28.601379-29.66069V269.064828h31.073104v-32.132414h-31.073104zM1871.448276 577.677241a913.831724 913.831724 0 0 1-168.783448-80.507586 357.34069 357.34069 0 0 0 141.241379-194.56H1694.896552V249.997241h170.195862v-32.83862H1694.896552V150.422069h-75.211035a15.536552 15.536552 0 0 0-15.183448 15.536552v51.2h-169.136552v32.83862h169.136552v52.612414h-141.241379v32.838621h284.248276a278.951724 278.951724 0 0 1-93.572414 127.470345 360.871724 360.871724 0 0 1-93.572414-94.984828H1483.034483a423.724138 423.724138 0 0 0 122.173793 130.295173 662.775172 662.775172 0 0 1-172.667586 77.329655v39.194482A773.296552 773.296552 0 0 0 1653.230345 529.655172 781.771034 781.771034 0 0 0 1871.448276 614.753103zM1553.655172 674.78069l-70.620689 190.675862h35.310345l13.417931-38.488276h70.620689l12.711724 38.488276h35.310345l-70.620689-190.675862z m-12.711724 128.176551l27.188966-79.095172 26.482758 79.095172zM1796.237241 674.78069h-34.251034v190.675862h115.464827v-26.129655h-81.213793v-164.546207zM2003.155862 674.78069h34.251035v190.322758h-34.251035zM2250.328276 674.78069h-74.151724v190.675862h35.310345v-73.445518h39.900689a58.615172 58.615172 0 1 0 0-117.230344z m-2.118621 91.100689H2210.427586v-64.971034h37.782069a31.073103 31.073103 0 0 1 30.366897 32.485517 30.72 30.72 0 0 1-30.366897 32.485517zM2465.015172 674.78069l-70.620689 190.675862h35.310345l13.417931-38.488276h70.620689l12.711724 38.488276h35.310345l-70.620689-190.675862z m-12.711724 128.176551l27.542069-79.095172 27.188966 79.095172zM2716.071724 755.994483l-38.135172-81.213793H2641.213793l57.555862 112.286896v78.388966h33.897931v-78.388966l0.353104-0.353103 57.555862-111.933793h-37.075862l-37.428966 81.213793z" fill="#089fe8" p-id="31018"></path></svg>--> | 187 | <!-- <svg t="1709003181386" class="icon" viewBox="0 0 3283 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="31015" width="100" height="40"><path d="M1163.122759 94.631724H593.92A133.826207 133.826207 0 0 0 459.034483 228.457931v567.084138a133.473103 133.473103 0 0 0 133.826207 133.826207h570.262069a133.826207 133.826207 0 0 0 134.17931-133.826207v-5.296552s-217.864828-90.394483-328.033103-143.36c-73.445517 90.747586-168.783448 145.478621-267.652414 145.478621-167.017931 0-223.514483-145.831724-144.419311-241.875862a169.136552 169.136552 0 0 1 92.16-51.906207c70.62069-17.302069 184.32 10.946207 290.604138 45.903448A587.211034 587.211034 0 0 0 988.689655 429.373793h-328.73931v-32.838621h168.783448V337.213793h-204.446896v-33.191724h204.446896V219.630345a14.124138 14.124138 0 0 1 14.477241-14.477242h82.273104v98.868966h202.328276v33.191724h-202.328276v59.321379h165.252414a677.605517 677.605517 0 0 1-70.62069 176.551725c50.14069 18.008276 94.984828 35.310345 128.529655 46.256551a930.427586 930.427586 0 0 0 147.950345 42.725518V228.457931a133.826207 133.826207 0 0 0-133.473103-133.826207z" fill="#089fe8" p-id="31016"></path><path d="M663.481379 548.016552a162.78069 162.78069 0 0 0-81.566896 30.366896c-64.617931 55.790345-26.129655 158.190345 104.165517 158.190345 75.917241 0 151.481379-48.375172 211.862069-125.704827-85.804138-40.96-156.424828-70.267586-234.46069-62.852414zM2488.673103 225.28h239.757242v47.668966h85.804138V216.805517a22.951724 22.951724 0 0 0-21.892414-23.304827h-139.122759V149.009655h-89.335172v44.137931h-160.662069v79.80138h85.451034zM1882.394483 360.518621h67.442758v247.172413h73.798621V280.011034h-26.835862l55.437241-126.764137H1970.317241l-87.922758 207.271724zM2824.827586 596.391724l-26.835862-90.747586a13.771034 13.771034 0 0 0-13.064827-10.24h-70.62069l20.48 70.62069H2648.275862v-135.944828h164.546207v-32.132414H2648.275862v-63.55862h164.546207v-32.132414h-409.6v32.132414h164.546207v63.55862h-164.546207v32.132414h164.546207V564.965517h-164.546207v32.132414H2824.827586zM2158.521379 323.442759a16.595862 16.595862 0 0 0-15.183448-9.886897h-63.558621l49.434483 156.424828h75.564138z" fill="#089fe8" p-id="31017"></path><path d="M2319.889655 156.777931h-76.623448v80.154483h-188.557241v32.132414h188.557241v287.426206a13.064828 13.064828 0 0 1-12.358621 12.005518h-38.841379v31.77931h99.222069a30.013793 30.013793 0 0 0 28.601379-29.66069V269.064828h31.073104v-32.132414h-31.073104zM1871.448276 577.677241a913.831724 913.831724 0 0 1-168.783448-80.507586 357.34069 357.34069 0 0 0 141.241379-194.56H1694.896552V249.997241h170.195862v-32.83862H1694.896552V150.422069h-75.211035a15.536552 15.536552 0 0 0-15.183448 15.536552v51.2h-169.136552v32.83862h169.136552v52.612414h-141.241379v32.838621h284.248276a278.951724 278.951724 0 0 1-93.572414 127.470345 360.871724 360.871724 0 0 1-93.572414-94.984828H1483.034483a423.724138 423.724138 0 0 0 122.173793 130.295173 662.775172 662.775172 0 0 1-172.667586 77.329655v39.194482A773.296552 773.296552 0 0 0 1653.230345 529.655172 781.771034 781.771034 0 0 0 1871.448276 614.753103zM1553.655172 674.78069l-70.620689 190.675862h35.310345l13.417931-38.488276h70.620689l12.711724 38.488276h35.310345l-70.620689-190.675862z m-12.711724 128.176551l27.188966-79.095172 26.482758 79.095172zM1796.237241 674.78069h-34.251034v190.675862h115.464827v-26.129655h-81.213793v-164.546207zM2003.155862 674.78069h34.251035v190.322758h-34.251035zM2250.328276 674.78069h-74.151724v190.675862h35.310345v-73.445518h39.900689a58.615172 58.615172 0 1 0 0-117.230344z m-2.118621 91.100689H2210.427586v-64.971034h37.782069a31.073103 31.073103 0 0 1 30.366897 32.485517 30.72 30.72 0 0 1-30.366897 32.485517zM2465.015172 674.78069l-70.620689 190.675862h35.310345l13.417931-38.488276h70.620689l12.711724 38.488276h35.310345l-70.620689-190.675862z m-12.711724 128.176551l27.542069-79.095172 27.188966 79.095172zM2716.071724 755.994483l-38.135172-81.213793H2641.213793l57.555862 112.286896v78.388966h33.897931v-78.388966l0.353104-0.353103 57.555862-111.933793h-37.075862l-37.428966 81.213793z" fill="#089fe8" p-id="31018"></path></svg>--> |
| 188 | <!-- </el-radio>--> | 188 | <!-- </el-radio>--> |
| 189 | <el-radio v-if="form.payTypeArr.indexOf('2')>-1" border label="2"> | 189 | <!-- <el-radio v-if="form.payTypeArr.indexOf('2')>-1" border label="2">--> |
| 190 | <!-- 微信--> | 190 | <!-- <!– 微信–>--> |
| 191 | <svg | 191 | <!-- <svg--> |
| 192 | class="icon" height="40" p-id="24747" t="1709002960407" | 192 | <!-- class="icon" height="40" p-id="24747" t="1709002960407"--> |
| 193 | version="1.1" viewBox="0 0 3152 1024" width="94" xmlns="http://www.w3.org/2000/svg" | 193 | <!-- version="1.1" viewBox="0 0 3152 1024" width="94" xmlns="http://www.w3.org/2000/svg"--> |
| 194 | > | 194 | <!-- >--> |
| 195 | <path | 195 | <!-- <path--> |
| 196 | d="M381.998922 630.960647c-4.416173 2.208086-8.832345 3.312129-14.352561 3.312129-12.144474 0-22.080863-7.17628-28.1531-17.66469l-2.208086-4.968194-87.771428-204.247978c-1.104043-2.208086-1.104043-4.416173-1.104043-6.624259 0-9.384367 6.624259-16.560647 15.456603-16.560647 3.312129 0 6.624259 1.104043 9.936388 3.312129l103.780054 78.387062c7.728302 4.968194 16.560647 8.280323 26.497035 8.280324 5.520216 0 11.040431-1.104043 16.560647-3.312129l486.330998-230.192992C819.752022 131.381132 676.226415 60.17035 513.380054 60.17035 248.409704 59.618329 32.017251 250.61779 32.017251 486.883019c0 128.069003 64.586523 244.545553 166.15849 322.932614 7.728302 6.072237 13.248518 16.560647 13.248518 27.601079 0 3.312129-1.104043 7.17628-2.208086 10.488409-7.728302 32.017251-20.976819 84.459299-20.97682 86.667386-1.104043 3.312129-2.208086 8.280323-2.208086 13.248517 0 9.384367 6.624259 16.560647 15.456604 16.560647 3.312129 0 6.624259-1.104043 8.832345-3.312129l104.884097-65.138545c7.728302-4.968194 16.560647-8.280323 25.392992-8.280323 4.416173 0 9.936388 1.104043 14.35256 2.208086 49.129919 15.456604 102.676011 23.736927 157.326146 23.736927 265.522372 0 481.362803-191.551482 481.362803-427.816711 0-71.210782-19.872776-139.109434-54.650135-198.175741L385.863073 628.752561l-3.864151 2.208086z" | 196 | <!-- d="M381.998922 630.960647c-4.416173 2.208086-8.832345 3.312129-14.352561 3.312129-12.144474 0-22.080863-7.17628-28.1531-17.66469l-2.208086-4.968194-87.771428-204.247978c-1.104043-2.208086-1.104043-4.416173-1.104043-6.624259 0-9.384367 6.624259-16.560647 15.456603-16.560647 3.312129 0 6.624259 1.104043 9.936388 3.312129l103.780054 78.387062c7.728302 4.968194 16.560647 8.280323 26.497035 8.280324 5.520216 0 11.040431-1.104043 16.560647-3.312129l486.330998-230.192992C819.752022 131.381132 676.226415 60.17035 513.380054 60.17035 248.409704 59.618329 32.017251 250.61779 32.017251 486.883019c0 128.069003 64.586523 244.545553 166.15849 322.932614 7.728302 6.072237 13.248518 16.560647 13.248518 27.601079 0 3.312129-1.104043 7.17628-2.208086 10.488409-7.728302 32.017251-20.976819 84.459299-20.97682 86.667386-1.104043 3.312129-2.208086 8.280323-2.208086 13.248517 0 9.384367 6.624259 16.560647 15.456604 16.560647 3.312129 0 6.624259-1.104043 8.832345-3.312129l104.884097-65.138545c7.728302-4.968194 16.560647-8.280323 25.392992-8.280323 4.416173 0 9.936388 1.104043 14.35256 2.208086 49.129919 15.456604 102.676011 23.736927 157.326146 23.736927 265.522372 0 481.362803-191.551482 481.362803-427.816711 0-71.210782-19.872776-139.109434-54.650135-198.175741L385.863073 628.752561l-3.864151 2.208086z"--> |
| 197 | fill="#09BB07" p-id="24748" | 197 | <!-- fill="#09BB07" p-id="24748"--> |
| 198 | /> | 198 | <!-- />--> |
| 199 | <path | 199 | <!-- <path--> |
| 200 | d="M1398.822642 381.998922c-9.384367 19.320755-20.424798 38.641509-32.017251 57.962264v263.866307h-31.465229V485.226954c-13.248518 18.216712-27.049057 34.225337-40.297574 48.025876-3.864151-7.17628-14.352561-23.736927-20.424798-30.361186 34.777358-33.673315 71.210782-82.803235 93.843666-131.933153l30.361186 11.040431z m-8.280324-91.63558c-22.632884 36.985445-59.066307 78.939084-91.635579 105.98814-4.416173-7.17628-13.248518-19.320755-19.320755-25.945013 29.809164-23.736927 62.378437-61.274394 78.939083-92.187601l32.017251 12.144474z m181.615094 289.811321c1.656065 7.728302 6.072237 19.320755 8.832345 24.84097-55.754178 37.537466-66.242588 46.369811-72.866846 54.650135-1.656065-7.728302-8.280323-22.080863-12.696496-28.705121 4.968194-3.312129 12.696496-10.48841 12.696496-28.705121v-54.098114h-60.17035v27.049057c0 38.641509-7.728302 91.083558-42.505661 128.069003-4.416173-7.17628-16.560647-19.320755-22.632884-23.184906 29.809164-31.465229 34.225337-72.866846 34.225337-105.436119v-54.098113h118.684636v82.251213l36.433423-22.632884z m123.100809-176.094879c-9.384367 73.970889-23.184906 136.349326-48.025876 187.687332 16.560647 36.433423 39.193531 66.242588 67.346631 83.355256-7.17628 6.072237-17.112668 18.216712-22.632884 27.049057-25.945013-18.216712-46.369811-45.265768-62.930459-78.939084-20.424798 32.017251-45.81779 59.066307-78.939083 81.699191-3.864151-6.624259-13.248518-19.872776-19.872776-25.392992 36.985445-22.632884 64.034501-52.99407 83.907277-89.979514-12.696496-34.777358-22.080863-73.418868-28.705121-115.372507-4.968194 11.040431-10.48841 22.632884-16.560647 31.465229-3.864151-4.416173-10.48841-13.248518-17.112668-20.424798v5.520216h-154.014017v-29.809165h154.014017v9.384367c24.84097-49.129919 37.537466-118.684636 44.713746-191.551483l31.465229 4.968195c-3.864151 31.465229-8.280323 61.274394-13.800539 90.531536h96.051752v29.809164h-14.904582z m-142.973585 22.632884h-145.181671v-110.404312h24.84097v82.251213h35.32938V278.770889h26.497035v119.78868h33.673316V316.308356h25.392992v110.404312z m55.202156-22.632884c-1.656065 6.624259-3.312129 12.696496-4.416172 18.768734 6.072237 46.369811 14.904582 91.083558 28.1531 130.277088 16.560647-43.057682 26.497035-91.63558 32.569272-149.045822h-56.3062zM1882.393531 289.259299c-10.48841 31.465229-24.288949 62.378437-39.193531 91.63558v324.036657h-32.017251V437.201078c-13.800539 22.632884-29.257143 42.50566-44.161725 60.170351-3.312129-7.728302-13.248518-24.288949-19.320754-32.017251 41.953639-45.265768 80.043127-114.820485 103.780053-184.927224l30.913208 8.832345z m288.707278 65.690566v29.257143h-294.779515v-29.257143h294.779515z m-267.730459 199.831806h235.713208v147.941779h-30.913208v-16.560647h-174.438814v18.216712h-30.361186v-149.597844z m231.297035-104.332075H1909.994609v-28.1531h224.672776v28.1531zM1909.994609 486.883019h224.672776v28.1531H1909.994609v-28.1531z m23.736927 96.603773V656.90566h174.438814v-73.418868h-174.438814z m81.699192-231.297035c-6.072237-16.560647-20.424798-43.057682-32.017251-61.826415l29.257143-12.144474c13.248518 19.320755 27.601078 44.161725 34.225337 60.722372l-31.465229 13.248517zM2586.221024 468.114286c-26.497035 63.48248-69.002695 111.508356-122.548787 147.941779 50.785984 25.945013 110.956334 43.609704 180.511051 52.442048-7.728302 8.280323-16.560647 23.184906-21.528841 33.673316-75.074933-11.592453-139.661456-32.569272-192.655525-64.034502-57.962264 32.017251-125.308895 52.99407-195.415634 66.794609-3.312129-9.384367-12.696496-25.392992-19.320754-33.121293 66.242588-10.48841 129.173046-28.1531 183.271159-55.202157-44.161725-32.017251-78.939084-72.866846-103.780054-123.65283l10.48841-3.864151h-49.12992v-34.225337h155.670081V383.654987h-176.6469v-34.225337h176.6469V278.770889h35.32938v70.658761h177.750944v34.225337h-177.750944v71.210781H2555.859838l7.176281-1.656064 23.184905 14.904582z m-255.033962 20.976819c23.184906 43.609704 56.858221 80.043127 100.467925 108.748248 44.161725-28.1531 80.043127-63.48248 104.332075-108.748248h-204.8zM2834.630728 292.571429c-13.800539 34.777358-30.361186 69.554717-49.129919 101.571967v308.580054h-34.225337V447.689488c-14.904582 20.976819-31.465229 40.297574-46.921833 56.306199-4.416173-7.728302-14.904582-25.945013-21.528841-34.225337 47.473854-45.265768 91.63558-115.924528 118.132614-188.239353l33.673316 11.040432z m270.490566 123.65283h-58.514286v240.12938c0 25.945013-7.728302 36.985445-24.84097 41.953639-18.216712 5.520216-49.129919 6.072237-99.915903 5.520215-1.656065-8.832345-8.280323-24.84097-13.248518-34.225337 39.193531 1.656065 77.283019 1.656065 88.32345 1.104043 10.48841-1.104043 14.352561-3.864151 14.352561-14.35256V416.224259h-187.687332v-34.225337h187.687332V283.739084h34.777359v97.707816h58.514285v34.777359z m-184.375202 178.854986c-13.800539-28.705121-43.609704-78.939084-67.346631-115.924528l29.809164-13.800539c24.288949 35.881402 55.202156 84.459299 70.106739 112.612399l-32.569272 17.112668z" | 200 | <!-- d="M1398.822642 381.998922c-9.384367 19.320755-20.424798 38.641509-32.017251 57.962264v263.866307h-31.465229V485.226954c-13.248518 18.216712-27.049057 34.225337-40.297574 48.025876-3.864151-7.17628-14.352561-23.736927-20.424798-30.361186 34.777358-33.673315 71.210782-82.803235 93.843666-131.933153l30.361186 11.040431z m-8.280324-91.63558c-22.632884 36.985445-59.066307 78.939084-91.635579 105.98814-4.416173-7.17628-13.248518-19.320755-19.320755-25.945013 29.809164-23.736927 62.378437-61.274394 78.939083-92.187601l32.017251 12.144474z m181.615094 289.811321c1.656065 7.728302 6.072237 19.320755 8.832345 24.84097-55.754178 37.537466-66.242588 46.369811-72.866846 54.650135-1.656065-7.728302-8.280323-22.080863-12.696496-28.705121 4.968194-3.312129 12.696496-10.48841 12.696496-28.705121v-54.098114h-60.17035v27.049057c0 38.641509-7.728302 91.083558-42.505661 128.069003-4.416173-7.17628-16.560647-19.320755-22.632884-23.184906 29.809164-31.465229 34.225337-72.866846 34.225337-105.436119v-54.098113h118.684636v82.251213l36.433423-22.632884z m123.100809-176.094879c-9.384367 73.970889-23.184906 136.349326-48.025876 187.687332 16.560647 36.433423 39.193531 66.242588 67.346631 83.355256-7.17628 6.072237-17.112668 18.216712-22.632884 27.049057-25.945013-18.216712-46.369811-45.265768-62.930459-78.939084-20.424798 32.017251-45.81779 59.066307-78.939083 81.699191-3.864151-6.624259-13.248518-19.872776-19.872776-25.392992 36.985445-22.632884 64.034501-52.99407 83.907277-89.979514-12.696496-34.777358-22.080863-73.418868-28.705121-115.372507-4.968194 11.040431-10.48841 22.632884-16.560647 31.465229-3.864151-4.416173-10.48841-13.248518-17.112668-20.424798v5.520216h-154.014017v-29.809165h154.014017v9.384367c24.84097-49.129919 37.537466-118.684636 44.713746-191.551483l31.465229 4.968195c-3.864151 31.465229-8.280323 61.274394-13.800539 90.531536h96.051752v29.809164h-14.904582z m-142.973585 22.632884h-145.181671v-110.404312h24.84097v82.251213h35.32938V278.770889h26.497035v119.78868h33.673316V316.308356h25.392992v110.404312z m55.202156-22.632884c-1.656065 6.624259-3.312129 12.696496-4.416172 18.768734 6.072237 46.369811 14.904582 91.083558 28.1531 130.277088 16.560647-43.057682 26.497035-91.63558 32.569272-149.045822h-56.3062zM1882.393531 289.259299c-10.48841 31.465229-24.288949 62.378437-39.193531 91.63558v324.036657h-32.017251V437.201078c-13.800539 22.632884-29.257143 42.50566-44.161725 60.170351-3.312129-7.728302-13.248518-24.288949-19.320754-32.017251 41.953639-45.265768 80.043127-114.820485 103.780053-184.927224l30.913208 8.832345z m288.707278 65.690566v29.257143h-294.779515v-29.257143h294.779515z m-267.730459 199.831806h235.713208v147.941779h-30.913208v-16.560647h-174.438814v18.216712h-30.361186v-149.597844z m231.297035-104.332075H1909.994609v-28.1531h224.672776v28.1531zM1909.994609 486.883019h224.672776v28.1531H1909.994609v-28.1531z m23.736927 96.603773V656.90566h174.438814v-73.418868h-174.438814z m81.699192-231.297035c-6.072237-16.560647-20.424798-43.057682-32.017251-61.826415l29.257143-12.144474c13.248518 19.320755 27.601078 44.161725 34.225337 60.722372l-31.465229 13.248517zM2586.221024 468.114286c-26.497035 63.48248-69.002695 111.508356-122.548787 147.941779 50.785984 25.945013 110.956334 43.609704 180.511051 52.442048-7.728302 8.280323-16.560647 23.184906-21.528841 33.673316-75.074933-11.592453-139.661456-32.569272-192.655525-64.034502-57.962264 32.017251-125.308895 52.99407-195.415634 66.794609-3.312129-9.384367-12.696496-25.392992-19.320754-33.121293 66.242588-10.48841 129.173046-28.1531 183.271159-55.202157-44.161725-32.017251-78.939084-72.866846-103.780054-123.65283l10.48841-3.864151h-49.12992v-34.225337h155.670081V383.654987h-176.6469v-34.225337h176.6469V278.770889h35.32938v70.658761h177.750944v34.225337h-177.750944v71.210781H2555.859838l7.176281-1.656064 23.184905 14.904582z m-255.033962 20.976819c23.184906 43.609704 56.858221 80.043127 100.467925 108.748248 44.161725-28.1531 80.043127-63.48248 104.332075-108.748248h-204.8zM2834.630728 292.571429c-13.800539 34.777358-30.361186 69.554717-49.129919 101.571967v308.580054h-34.225337V447.689488c-14.904582 20.976819-31.465229 40.297574-46.921833 56.306199-4.416173-7.728302-14.904582-25.945013-21.528841-34.225337 47.473854-45.265768 91.63558-115.924528 118.132614-188.239353l33.673316 11.040432z m270.490566 123.65283h-58.514286v240.12938c0 25.945013-7.728302 36.985445-24.84097 41.953639-18.216712 5.520216-49.129919 6.072237-99.915903 5.520215-1.656065-8.832345-8.280323-24.84097-13.248518-34.225337 39.193531 1.656065 77.283019 1.656065 88.32345 1.104043 10.48841-1.104043 14.352561-3.864151 14.352561-14.35256V416.224259h-187.687332v-34.225337h187.687332V283.739084h34.777359v97.707816h58.514285v34.777359z m-184.375202 178.854986c-13.800539-28.705121-43.609704-78.939084-67.346631-115.924528l29.809164-13.800539c24.288949 35.881402 55.202156 84.459299 70.106739 112.612399l-32.569272 17.112668z"--> |
| 201 | fill="#595757" p-id="24749" | 201 | <!-- fill="#595757" p-id="24749"--> |
| 202 | /> | 202 | <!-- />--> |
| 203 | </svg> | 203 | <!-- </svg>--> |
| 204 | </el-radio> | 204 | <!-- </el-radio>--> |
| 205 | <el-radio v-if="form.payTypeArr.indexOf('0')>-1" border label="3"> | 205 | <el-radio v-if="form.payTypeArr.indexOf('0')>-1" border label="0"> |
| 206 | <!-- 线下--> | 206 | <!-- 线下--> |
| 207 | <svg | 207 | <svg |
| 208 | class="icon" height="40" p-id="32905" t="1709003441012" | 208 | class="icon" height="40" p-id="32905" t="1709003441012" |
| ... | @@ -242,7 +242,10 @@ | ... | @@ -242,7 +242,10 @@ |
| 242 | /> | 242 | /> |
| 243 | </svg> | 243 | </svg> |
| 244 | </el-radio> | 244 | </el-radio> |
| 245 | <el-radio v-if="form.payTypeArr.indexOf('3')>-1" border label="4"> | 245 | <el-radio border label="4"> |
| 246 | {{ language==0?'民生付':"Minsheng Pay" }} | ||
| 247 | </el-radio> | ||
| 248 | <el-radio v-if="form.payTypeArr.indexOf('3')>-1" border label="3"> | ||
| 246 | <!-- paypal--> | 249 | <!-- paypal--> |
| 247 | <svg | 250 | <svg |
| 248 | class="icon" height="40" p-id="22654" t="1709002828937" | 251 | class="icon" height="40" p-id="22654" t="1709002828937" |
| ... | @@ -282,6 +285,7 @@ | ... | @@ -282,6 +285,7 @@ |
| 282 | /> | 285 | /> |
| 283 | </svg> | 286 | </svg> |
| 284 | </el-radio> | 287 | </el-radio> |
| 288 | |||
| 285 | </el-radio-group> | 289 | </el-radio-group> |
| 286 | 290 | ||
| 287 | <div v-if="payType == '2'&&wePayCodeUrl"> | 291 | <div v-if="payType == '2'&&wePayCodeUrl"> |
| ... | @@ -306,7 +310,7 @@ | ... | @@ -306,7 +310,7 @@ |
| 306 | </div> | 310 | </div> |
| 307 | </div> | 311 | </div> |
| 308 | 312 | ||
| 309 | <div v-if="payType == '3'"> | 313 | <div v-if="payType == '0'"> |
| 310 | <table cellpadding="0" cellspacing="0" class="table-border table"> | 314 | <table cellpadding="0" cellspacing="0" class="table-border table"> |
| 311 | <tbody> | 315 | <tbody> |
| 312 | <tr> | 316 | <tr> |
| ... | @@ -388,7 +392,10 @@ | ... | @@ -388,7 +392,10 @@ |
| 388 | </div> | 392 | </div> |
| 389 | </div> | 393 | </div> |
| 390 | <div v-else class="text-center mt20"> | 394 | <div v-else class="text-center mt20"> |
| 391 | <el-button v-if="!hideconfirmbtn" class="btn-lineG w200px" round type="primary" @click="goPay"> | 395 | <el-button |
| 396 | v-if="!hideconfirmbtn" class="btn-lineG w200px submitFN" round type="primary" | ||
| 397 | @click="goPay" | ||
| 398 | > | ||
| 392 | {{ language == 0 ? '确定' : 'Submit' }} | 399 | {{ language == 0 ? '确定' : 'Submit' }} |
| 393 | </el-button> | 400 | </el-button> |
| 394 | </div> | 401 | </div> |
| ... | @@ -465,7 +472,9 @@ | ... | @@ -465,7 +472,9 @@ |
| 465 | </div> | 472 | </div> |
| 466 | </div> | 473 | </div> |
| 467 | </el-dialog> | 474 | </el-dialog> |
| 468 | 475 | ||
| 476 | <!-- 民生付--> | ||
| 477 | <MingPay ref="MingPayRef" /> | ||
| 469 | </div> | 478 | </div> |
| 470 | </template> | 479 | </template> |
| 471 | 480 | ||
| ... | @@ -476,11 +485,12 @@ import { onMounted } from '@vue/runtime-core' | ... | @@ -476,11 +485,12 @@ import { onMounted } from '@vue/runtime-core' |
| 476 | import { useRoute, useRouter } from 'vue-router' | 485 | import { useRoute, useRouter } from 'vue-router' |
| 477 | import * as match from '@/apiPc/match' | 486 | import * as match from '@/apiPc/match' |
| 478 | import MatchInfoRow from '@/viewsPc/match/components/matchInfo-row' | 487 | import MatchInfoRow from '@/viewsPc/match/components/matchInfo-row' |
| 488 | import MingPay from '@/components/Pay/MingPay.vue' | ||
| 479 | 489 | ||
| 480 | const { proxy } = getCurrentInstance() | 490 | const { proxy } = getCurrentInstance() |
| 481 | const route = useRoute() | 491 | const route = useRoute() |
| 482 | const router = useRouter() | 492 | const router = useRouter() |
| 483 | const payType = ref('2') | 493 | const payType = ref('4') |
| 484 | const orderId = ref(route.query.orderId) | 494 | const orderId = ref(route.query.orderId) |
| 485 | const matchId = ref() | 495 | const matchId = ref() |
| 486 | const groupId = ref() | 496 | const groupId = ref() |
| ... | @@ -494,6 +504,7 @@ import { useStorage } from '@vueuse/core/index' | ... | @@ -494,6 +504,7 @@ import { useStorage } from '@vueuse/core/index' |
| 494 | import { ElMessage, ElMessageBox } from 'element-plus' | 504 | import { ElMessage, ElMessageBox } from 'element-plus' |
| 495 | import { getBaseInfoByActiveId, getReceipt } from '@/apiPc/booking' | 505 | import { getBaseInfoByActiveId, getReceipt } from '@/apiPc/booking' |
| 496 | 506 | ||
| 507 | const formData = ref() | ||
| 497 | const buy = ref(route.query.buy || '0') | 508 | const buy = ref(route.query.buy || '0') |
| 498 | const isLogin = ref(false) | 509 | const isLogin = ref(false) |
| 499 | const language = useStorage('language', 0) | 510 | const language = useStorage('language', 0) |
| ... | @@ -522,6 +533,8 @@ const remark = ref('') | ... | @@ -522,6 +533,8 @@ const remark = ref('') |
| 522 | const showSJDialog = ref(false) | 533 | const showSJDialog = ref(false) |
| 523 | const loading = ref(false) | 534 | const loading = ref(false) |
| 524 | const lpName = ref('') | 535 | const lpName = ref('') |
| 536 | const showLoading = ref(false) | ||
| 537 | |||
| 525 | console.log(route.query.orderId) | 538 | console.log(route.query.orderId) |
| 526 | // 1763462073870237698 | 539 | // 1763462073870237698 |
| 527 | onMounted(() => { | 540 | onMounted(() => { |
| ... | @@ -550,6 +563,7 @@ if (useUserStore().user) { | ... | @@ -550,6 +563,7 @@ if (useUserStore().user) { |
| 550 | } | 563 | } |
| 551 | 564 | ||
| 552 | function getData() { | 565 | function getData() { |
| 566 | showLoading.value = true | ||
| 553 | return match.getMyOrderDetail({ | 567 | return match.getMyOrderDetail({ |
| 554 | orderId: orderId.value, | 568 | orderId: orderId.value, |
| 555 | buy: buy.value | 569 | buy: buy.value |
| ... | @@ -561,6 +575,7 @@ function getData() { | ... | @@ -561,6 +575,7 @@ function getData() { |
| 561 | groupId.value = form.value.groupId || 0 | 575 | groupId.value = form.value.groupId || 0 |
| 562 | zuQuery.value.groupId = groupId.value | 576 | zuQuery.value.groupId = groupId.value |
| 563 | zuQuery.value.cptId = matchId.value | 577 | zuQuery.value.cptId = matchId.value |
| 578 | showLoading.value = false | ||
| 564 | if (isLogin.value) { | 579 | if (isLogin.value) { |
| 565 | getSignList() | 580 | getSignList() |
| 566 | if (user.utype == '1') { | 581 | if (user.utype == '1') { |
| ... | @@ -603,28 +618,28 @@ function getSignList() { | ... | @@ -603,28 +618,28 @@ function getSignList() { |
| 603 | // for (var z of zuTableList.value) { | 618 | // for (var z of zuTableList.value) { |
| 604 | // serviceFeeTotal.value = serviceFeeTotal.value + Number(z.project.serviceFee) | 619 | // serviceFeeTotal.value = serviceFeeTotal.value + Number(z.project.serviceFee) |
| 605 | // } | 620 | // } |
| 606 | for (const z of zuTableList.value) { | 621 | for (const z of zuTableList.value) { |
| 607 | if (!z.project) { | 622 | if (!z.project) { |
| 608 | continue; | 623 | continue |
| 609 | } | 624 | } |
| 610 | 625 | ||
| 611 | const serviceFee = Number(z.project.serviceFee) || 0; | 626 | const serviceFee = Number(z.project.serviceFee) || 0 |
| 612 | 627 | ||
| 613 | const chargeType = String(z.project.chargeType).trim(); | 628 | const chargeType = String(z.project.chargeType).trim() |
| 614 | 629 | ||
| 615 | let currentItemFee = 0; | 630 | let currentItemFee = 0 |
| 616 | if (chargeType === '0') { | 631 | if (chargeType === '0') { |
| 617 | currentItemFee = serviceFee; | 632 | currentItemFee = serviceFee |
| 618 | } else if (chargeType === '1') { | 633 | } else if (chargeType === '1') { |
| 619 | const athletesLength = z.athletes?.length || 0; | 634 | const athletesLength = z.athletes?.length || 0 |
| 620 | currentItemFee = serviceFee * athletesLength; | 635 | currentItemFee = serviceFee * athletesLength |
| 621 | } else { | 636 | } else { |
| 622 | currentItemFee = 0; | 637 | currentItemFee = 0 |
| 623 | } | 638 | } |
| 624 | 639 | ||
| 625 | serviceFeeTotal.value += currentItemFee; | 640 | serviceFeeTotal.value += currentItemFee |
| 626 | } | 641 | } |
| 627 | serviceFeeTotal.value = serviceFeeTotal.value.toFixed(2); | 642 | serviceFeeTotal.value = serviceFeeTotal.value.toFixed(2) |
| 628 | }).catch(err => { | 643 | }).catch(err => { |
| 629 | console.log(err) | 644 | console.log(err) |
| 630 | if (isLogin.value) { | 645 | if (isLogin.value) { |
| ... | @@ -646,7 +661,13 @@ function changePaytype() { | ... | @@ -646,7 +661,13 @@ function changePaytype() { |
| 646 | } | 661 | } |
| 647 | } | 662 | } |
| 648 | 663 | ||
| 664 | |||
| 649 | function goPay() { | 665 | function goPay() { |
| 666 | if (payType.value == '2' && form.value.payTypeArr.indexOf('2') == -1) { | ||
| 667 | ElMessage.warning(language.value == 0 ? '请选择支付方式' : 'Please select payment method') | ||
| 668 | return | ||
| 669 | } | ||
| 670 | // 微信支付 | ||
| 650 | if (payType.value == '2' && form.value.payTypeArr.indexOf('2') > -1) { | 671 | if (payType.value == '2' && form.value.payTypeArr.indexOf('2') > -1) { |
| 651 | if (isphone.value) { | 672 | if (isphone.value) { |
| 652 | // 拉起移动支付 | 673 | // 拉起移动支付 |
| ... | @@ -661,17 +682,27 @@ function goPay() { | ... | @@ -661,17 +682,27 @@ function goPay() { |
| 661 | startforGetData() | 682 | startforGetData() |
| 662 | }) | 683 | }) |
| 663 | } | 684 | } |
| 664 | } else if (payType.value == '2' && form.value.payTypeArr.indexOf('2') == -1) { | ||
| 665 | ElMessage.warning(language.value == 0 ? '请选择支付方式' : 'Please select payment method') | ||
| 666 | return | ||
| 667 | } | 685 | } |
| 668 | if (payType.value == '4') { | 686 | // PalPay支付 |
| 687 | if (payType.value == '3') { | ||
| 669 | match.createPalPay({ orderId: orderId.value }).then(res => { | 688 | match.createPalPay({ orderId: orderId.value }).then(res => { |
| 670 | if (res.data) { | 689 | if (res.data) { |
| 671 | location.href = res.data | 690 | location.href = res.data |
| 672 | } | 691 | } |
| 673 | }) | 692 | }) |
| 674 | } | 693 | } |
| 694 | // 民生付 | ||
| 695 | if (payType.value == '4') { | ||
| 696 | showLoading.value = true | ||
| 697 | match.createWePay({ orderId: orderId.value }).then(res => { | ||
| 698 | formData.value = res.data.encryptedData | ||
| 699 | proxy.$refs['MingPayRef'].handleSubmit(formData.value) | ||
| 700 | }).catch(e => { | ||
| 701 | console.log(e) | ||
| 702 | showLoading.value = false | ||
| 703 | proxy.$modal.msgError(language.value == 0 ? '支付失败,请稍后重试' : 'Payment failed. Please try again later.') | ||
| 704 | }) | ||
| 705 | } | ||
| 675 | } | 706 | } |
| 676 | 707 | ||
| 677 | let handle | 708 | let handle |
| ... | @@ -782,27 +813,6 @@ function submitSJ() { | ... | @@ -782,27 +813,6 @@ function submitSJ() { |
| 782 | }) | 813 | }) |
| 783 | } | 814 | } |
| 784 | 815 | ||
| 785 | function downloadAndSend() { | ||
| 786 | getReceipt({ | ||
| 787 | orderId: orderId.value, | ||
| 788 | receiptInfo: lpName.value, | ||
| 789 | type: 1 | ||
| 790 | }).then(res => { | ||
| 791 | loading.value = false | ||
| 792 | ElMessageBox.confirm(language.value == 0 ? `已发送至您的邮箱 ${user.userName},请注意查收` : `A receipt has been sent to your email ${user.userName}, please check it`, { | ||
| 793 | confirmButtonText: language.value == 0 ? '确定' : 'Confirm', | ||
| 794 | cancelButtonText: language.value == 0 ? '取消' : 'Cancel', | ||
| 795 | type: 'warning' | ||
| 796 | }).then(() => { | ||
| 797 | showSJDialog.value = false | ||
| 798 | showSJ() | ||
| 799 | }) | ||
| 800 | }).catch(err => { | ||
| 801 | console.log(err) | ||
| 802 | loading.value = false | ||
| 803 | }) | ||
| 804 | } | ||
| 805 | |||
| 806 | const showSJ = () => { | 816 | const showSJ = () => { |
| 807 | // 查看电子收据预览信息 | 817 | // 查看电子收据预览信息 |
| 808 | var obj = { | 818 | var obj = { |
| ... | @@ -973,4 +983,5 @@ const showSJ = () => { | ... | @@ -973,4 +983,5 @@ const showSJ = () => { |
| 973 | font-size: 16px; | 983 | font-size: 16px; |
| 974 | margin-top: 10px | 984 | margin-top: 10px |
| 975 | } | 985 | } |
| 986 | |||
| 976 | </style> | 987 | </style> | ... | ... |
-
Please register or sign in to post a comment