sign.vue 862 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <template>
  2. <view class="sign-content" style="padding: 10rpx;">
  3. <view style="border: 1rpx dashed #555555;background: #fff;">
  4. <Signature ref="sig" v-model="v"></Signature>
  5. </view>
  6. <view class="hui-button-box">
  7. <view class="hui-button" @click="uploadImage">
  8. <uni-icons class="hui-button-icon" type="compose" color="#fff" size="22"></uni-icons>使用该签名
  9. </view>
  10. </view>
  11. </view>
  12. </template>
  13. <script>
  14. import Signature from '@/components/sin-signature/sin-signature.vue'
  15. import {
  16. uploadImageBase64
  17. } from '@/request/api/contract.js'
  18. export default {
  19. data() {
  20. return {
  21. v: ''
  22. }
  23. },
  24. components: {
  25. Signature,
  26. },
  27. onLoad() {
  28. },
  29. methods: {
  30. uploadImage() {
  31. uploadImageBase64(this.v).then(res => {
  32. console.log(res);
  33. })
  34. }
  35. }
  36. }
  37. </script>
  38. <style>
  39. </style>