|
@@ -8,12 +8,12 @@
|
|
<mt-tab-item id="3">已驳回</mt-tab-item>
|
|
<mt-tab-item id="3">已驳回</mt-tab-item>
|
|
|
|
|
|
</mt-navbar>
|
|
</mt-navbar>
|
|
- <button class="add-sign">
|
|
|
|
|
|
+ <button class="add-sign" @click="popupVisible=true">
|
|
<i class="icon-add">+</i>创建签名
|
|
<i class="icon-add">+</i>创建签名
|
|
</button>
|
|
</button>
|
|
<mt-tab-container v-model="selected">
|
|
<mt-tab-container v-model="selected">
|
|
<mt-tab-container-item id="1">
|
|
<mt-tab-container-item id="1">
|
|
- <sign-block></sign-block>
|
|
|
|
|
|
+ <sign-block @setDefault="setDefault" v-for="item,index in signData" :key="index" v-model="defaultSign" :sign-data="item"></sign-block>
|
|
</mt-tab-container-item>
|
|
</mt-tab-container-item>
|
|
<mt-tab-container-item id="2">
|
|
<mt-tab-container-item id="2">
|
|
<!--<mt-cell v-for="n in 4" :title="'测试 ' + n" />-->
|
|
<!--<mt-cell v-for="n in 4" :title="'测试 ' + n" />-->
|
|
@@ -21,8 +21,18 @@
|
|
|
|
|
|
</mt-tab-container>
|
|
</mt-tab-container>
|
|
</div>
|
|
</div>
|
|
|
|
+ <mt-popup
|
|
|
|
+ v-model="popupVisible">
|
|
|
|
+ <div class="sign-button-container">
|
|
|
|
+ <button class="sign-button">拍照签名</button>
|
|
|
|
+ <button class="sign-button" @click="$router.push('/draw-sign')">手绘签名</button>
|
|
|
|
+ <button class="sign-button">模板签名</button>
|
|
|
|
+ <button class="cancel-button" @click="popupVisible=false">取消</button>
|
|
|
|
+ </div>
|
|
|
|
|
|
|
|
+ </mt-popup>
|
|
</multi-color-background>
|
|
</multi-color-background>
|
|
|
|
+
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
@@ -33,9 +43,26 @@
|
|
components: {SignBlock, MultiColorBackground},
|
|
components: {SignBlock, MultiColorBackground},
|
|
data(){
|
|
data(){
|
|
return{
|
|
return{
|
|
- selected:'1'
|
|
|
|
|
|
+ selected:'1',
|
|
|
|
+ defaultSign:'1',
|
|
|
|
+ popupVisible:false,
|
|
|
|
+ signData:[
|
|
|
|
+ {
|
|
|
|
+ id:'1',
|
|
|
|
+ src:''
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ id:'2',
|
|
|
|
+ src:''
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ methods:{
|
|
|
|
+ setDefault(){
|
|
|
|
+ console.log('hellp')
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
@@ -57,5 +84,27 @@
|
|
font-size: 0.4rem;
|
|
font-size: 0.4rem;
|
|
color: #60c0ff;
|
|
color: #60c0ff;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ .sign-button-container{
|
|
|
|
+ width: 7.2rem;
|
|
|
|
+ margin: 0.7rem 0.4rem;
|
|
|
|
+ }
|
|
|
|
+ .sign-button{
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 1.1rem;
|
|
|
|
+ margin-bottom: 0.4rem;
|
|
|
|
+ background-color: #60c0ff;
|
|
|
|
+ border-radius: 0.6rem;
|
|
|
|
+ border: none;
|
|
|
|
+ color: white;
|
|
|
|
+ font-size: 0.4rem;
|
|
|
|
+ }
|
|
|
|
+ .cancel-button{
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 1.1rem;
|
|
|
|
+ border-radius: 0.6rem;
|
|
|
|
+ border: solid 1px #60c0ff;
|
|
|
|
+ background-color: white;
|
|
|
|
+ color: #60c0ff;
|
|
|
|
+ font-size: 0.4rem;
|
|
|
|
+ }
|
|
</style>
|
|
</style>
|