123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <template>
- <view class="sign-content" style="padding: 10rpx;">
- <view style="border: 1rpx dashed #555555;background: #fff;">
- <Signature ref="sig" v-model="v"></Signature>
- </view>
- <view class="hui-button-box">
- <view class="hui-button" @click="uploadImage">
- <uni-icons class="hui-button-icon" type="compose" color="#fff" size="22"></uni-icons>使用该签名
- </view>
- </view>
- </view>
- </template>
- <script>
- import Signature from '@/components/sin-signature/sin-signature.vue'
- import {
- uploadImageBase64
- } from '@/request/api/contract.js'
- export default {
- data() {
- return {
- v: ''
- }
- },
- components: {
- Signature,
- },
- onLoad() {
- },
- methods: {
- uploadImage() {
- uploadImageBase64(this.v).then(res => {
- console.log(res);
- })
- }
- }
- }
- </script>
- <style>
- </style>
|