Commit b2fe5f61 by 潘琦

增加签约驳回详情页;

parent b2610c7a
import request from '@/router/requestSjkg'
// 根据签约ID获取该签约驳回理由数据
export function getSignFailedMsg (params) {
return request({
url: '/v1/voucher/signFailedMsg',
method: 'GET',
params: params
})
}
...@@ -5,14 +5,14 @@ ...@@ -5,14 +5,14 @@
<span class="label">审核不通过原因:</span> <span class="label">审核不通过原因:</span>
</div> </div>
<div class="block"> <div class="block">
<ol> <ol v-if="data.length > 0">
<li>身份证不符</li> <li v-for="(item, index) in data" :key="index">{{item}}</li>
<li>身份证不符</li>
</ol> </ol>
<h4 v-else class="text-center">暂无数据!</h4>
</div> </div>
<div class="block"> <!-- <div class="block">
<textarea disabled="true" rows="4">aaaa</textarea> <textarea disabled="true" rows="5">{{}}</textarea>
</div> </div> -->
<div class="footer"> <div class="footer">
<button class="confirm-btn" @click="handelConfirm">我知道了</button> <button class="confirm-btn" @click="handelConfirm">我知道了</button>
</div> </div>
...@@ -22,16 +22,19 @@ ...@@ -22,16 +22,19 @@
<script> <script>
// import { getStore } from '@/util/store' // import { getStore } from '@/util/store'
// import { getUserCard } from '@/api/apply/apply' import { getSignFailedMsg } from '@/api/wxTemplate/wxTemplate'
const wx = require('weixin-js-sdk') const wx = require('weixin-js-sdk')
export default { export default {
name: 'adoptTemplate', name: 'adoptTemplate',
data () { data () {
return { return {
signId: this.$route.query.signId,
data: []
} }
}, },
created () { created () {
this.getSignFailedMsgFn()
}, },
mounted: function () { mounted: function () {
}, },
...@@ -40,6 +43,14 @@ export default { ...@@ -40,6 +43,14 @@ export default {
components: { components: {
}, },
methods: { methods: {
getSignFailedMsgFn () {
let params = {
signId: this.signId
}
getSignFailedMsg(params).then(res => {
this.data = res.data.codeMsg
})
},
handelConfirm () { handelConfirm () {
wx.closeWindow() wx.closeWindow()
} }
...@@ -92,4 +103,7 @@ export default { ...@@ -92,4 +103,7 @@ export default {
padding: 0.7em 0; padding: 0.7em 0;
font-size: 1.2em; font-size: 1.2em;
} }
.text-center {
text-align: center;
}
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment