Commit 3db17eeb authored by Damon's avatar Damon

refactor: 证书样式

parent d00c5517
...@@ -18,11 +18,11 @@ ...@@ -18,11 +18,11 @@
<view class="name">{{ certName }}</view> <view class="name">{{ certName }}</view>
<view class="table"> <view class="table">
<u-table> <u-table>
<u-tr v-for="item in data.certificateTextContent" class="u-tr"> <u-tr v-for="(item, i) in data.certificateTextContent" :key="i" class="u-tr">
<u-td <u-td
v-for="(val, name, index) in item" v-for="(val, name, index) in item"
:key="index" :key="index"
class="u-td" class="u-td bg-td"
> >
{{ val }} {{ val }}
</u-td> </u-td>
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
<u-td class="u-td">{{name}}</u-td> <u-td class="u-td">{{name}}</u-td>
</u-tr> </u-tr>
<u-tr class="u-tr"> <u-tr class="u-tr">
<u-td class="u-td bg-td">身份证号</u-td></u-td> <u-td class="u-td bg-td">身份证号</u-td>
<u-td class="u-td">{{idCard}}</u-td> <u-td class="u-td">{{idCard}}</u-td>
</u-tr> </u-tr>
<u-tr class="u-tr"> <u-tr class="u-tr">
...@@ -237,12 +237,12 @@ export default { ...@@ -237,12 +237,12 @@ export default {
.table { .table {
/* background-color: #2953ff; */ /* background-color: #2953ff; */
min-height: 200rpx; min-height: 200rpx;
} ::v-deep .bg-td:nth-of-type(2n+1){
.bg-td{
background-color: #E8EBF3 !important; background-color: #E8EBF3 !important;
font-weight: bold !important; font-weight: bold !important;
} }
} }
}
.foot { .foot {
position: absolute; position: absolute;
bottom: 41px; bottom: 41px;
......
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