projectInfoPointOrder.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <template>
  2. <view class="content">
  3. <fxyk-navbar :isSearch="false" title="节点批示" />
  4. <fxyk-textarea marginBottom="42" />
  5. <view class="d-flex a-center j-sb u-p-l-44 u-p-r-44" style="margin-bottom:202rpx">
  6. <view class="box d-flex a-center j-center">
  7. <fxyk-button style="font-size: 21rpx;
  8. line-height: 27rpx"
  9. width="106"
  10. height="44"
  11. bgColor="#4CB2FF"
  12. content="查看附件" />
  13. </view>
  14. <view class="box d-flex a-center j-center">
  15. <fxyk-button style="font-size: 21rpx;
  16. line-height: 27rpx;
  17. color: #848484;"
  18. width="104"
  19. height="104"
  20. bgColor="#E5E9ED"
  21. content="上传附件"
  22. @click.native="uploading" />
  23. </view>
  24. </view>
  25. <fxyk-button content="确认" width="238"></fxyk-button>
  26. </view>
  27. </template>
  28. <script>
  29. export default {
  30. methods: {
  31. // 上传附件
  32. uploading() {
  33. uni.chooseImage({
  34. count: 6, //默认9
  35. sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
  36. sourceType: ['album', 'camera '], //从相册选择
  37. success: function (res) {
  38. console.log(JSON.stringify(res.tempFilePaths));
  39. }
  40. })
  41. }
  42. }
  43. }
  44. </script>
  45. <style lang="scss" scoped>
  46. page {
  47. width: 100%;
  48. height: 100%;
  49. }
  50. .content {
  51. width: 100%;
  52. height: 100%;
  53. min-height: 100vh;
  54. background-color: $yk-bg-color;
  55. }
  56. .box {
  57. width: 321rpx;
  58. height: 154rpx;
  59. border: 2rpx dashed #707070;
  60. }
  61. </style>