提交 960de049 authored 作者: lihuihui's avatar lihuihui

优化功能

上级 aaaf17a9
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
@click="seleIsShow = true" @click="seleIsShow = true"
disabled disabled
class="bor" class="bor"
:value="form.gender == 1 ? '男' : '女'" :value="form.gender == 1 ? '男 man' : '女 woman'"
name="pattern" name="pattern"
placeholder="" placeholder=""
/> />
...@@ -180,7 +180,7 @@ export default { ...@@ -180,7 +180,7 @@ export default {
data() { data() {
return { return {
seleIsShow: false, seleIsShow: false,
columns: ['男', '女'], columns: ['男 man', '女 woman'],
form: { form: {
name: '', name: '',
gender: '1', gender: '1',
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<div class="btn" v-if="item.pay == 0" @click="orderPays">支付</div> <div class="btn" v-if="item.pay == 0" @click="orderPays">支付</div>
</template> </template>
</div> </div>
<!-- <div class="icon-yes"></div> --> <div class="icon-yes" v-if="item.approve_status"></div>
</div> </div>
</template> </template>
<div class="btn" @click="orderPays" style="font-size:30px;position: relative;z-index: 999;">支付</div> <div class="btn" @click="orderPays" style="font-size:30px;position: relative;z-index: 999;">支付</div>
...@@ -50,9 +50,8 @@ export default { ...@@ -50,9 +50,8 @@ export default {
h5Pay h5Pay
}, },
data() { data() {
const productId = '6734697826573352960'
return { return {
productId, productId: '6734697826573352960',
data: [] data: []
} }
}, },
...@@ -225,7 +224,7 @@ export default { ...@@ -225,7 +224,7 @@ export default {
.icon-yes{ .icon-yes{
position: absolute; position: absolute;
top: 50%; top: 50%;
right: 95px; right: 85px;
-webkit-transform: translateY(-50%); -webkit-transform: translateY(-50%);
width: 75px; width: 75px;
height: 57px; height: 57px;
......
...@@ -52,22 +52,29 @@ ...@@ -52,22 +52,29 @@
<div class="status"> <div class="status">
审核状态:{{ currentStu }} 审核状态:{{ currentStu }}
</div> </div>
<div class="status" v-if="auditStatus == 0">
审核备注:{{ approveRemark }}
</div>
<div class="status" v-if="auditStatus == 1 && ispay == 0">
三级认证费用:¥2300元
</div>
<div class="btn-box"> <div class="btn-box">
<input type="button" value="支付" class="submit-button" v-if="auditStatus == 1 && ispay == 0"> <input @click="orderPays" type="button" value="支付" class="submit-button" v-if="auditStatus == 1 && ispay == 0">
<template v-if="auditStatus == -1"> <template v-if="auditStatus == -1">
<input @click="goForm" type="button" value="修改" class="submit-button"> <input @click="goForm" type="button" value="修改" class="submit-button">
<input @click="revoke" type="button" value="撤销" class="submit-button"> <input @click="revoke" type="button" value="撤销" class="submit-button">
</template> </template>
<template v-if="auditStatus == 0"> <template v-if="auditStatus == 0">
<input @click="goForm" type="button" value="修改" class="submit-button"> <input @click="goForm" type="button" value="修改" class="submit-button">
<!-- <input @click="revoke" type="button" value="撤销" class="submit-button"> -->
</template> </template>
</div> </div>
</template> </template>
<h5-pay :productId="productId" ref="h5pay"></h5-pay>
</div> </div>
</template> </template>
<script> <script>
import h5Pay from './buy/components/h5Pay.vue'
import Card from '@/components/Card' import Card from '@/components/Card'
import VForm from '@/components/attestationFormUpload' import VForm from '@/components/attestationFormUpload'
import { Toast, Dialog } from 'vant' import { Toast, Dialog } from 'vant'
...@@ -79,10 +86,13 @@ export default { ...@@ -79,10 +86,13 @@ export default {
Card, Card,
VForm, VForm,
[Toast.name]: Toast, [Toast.name]: Toast,
[Dialog.name]: Dialog [Dialog.name]: Dialog,
h5Pay
}, },
data() { data() {
return { return {
productId: '6734697826573352960',
approveRemark: '',
auditStatus: 2, auditStatus: 2,
ispay: false, ispay: false,
isLook: false, isLook: false,
...@@ -148,14 +158,11 @@ export default { ...@@ -148,14 +158,11 @@ export default {
} }
}, },
methods: { methods: {
orderPays() {
this.$refs.h5pay.pay()
},
goForm() { goForm() {
this.$router.replace({ this.isLook = false
path: '/attestation/form',
query: {
id: this.$route.query.id,
edit: 1
}
})
}, },
getCertificationDetail() { getCertificationDetail() {
api.getAttestationDetail(this.$route.query.id).then(response => { api.getAttestationDetail(this.$route.query.id).then(response => {
...@@ -165,6 +172,7 @@ export default { ...@@ -165,6 +172,7 @@ export default {
this.formModel.degree = response.degree this.formModel.degree = response.degree
this.auditStatus = response.approve_status this.auditStatus = response.approve_status
this.ispay = response.pay this.ispay = response.pay
this.approveRemark = response.approve_remark
}) })
}, },
revoke() { revoke() {
...@@ -232,7 +240,7 @@ export default { ...@@ -232,7 +240,7 @@ export default {
<style lang="scss" scope> <style lang="scss" scope>
.status{ .status{
margin: 0 20px; margin: 10px 20px;
} }
.upload-box{ .upload-box{
padding-top: 20px; padding-top: 20px;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论