addRemarkPopup.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <template>
  2. <view>
  3. <uni-popup ref="addRemarkPopup" type="center">
  4. <view class="addRemarkPopup flex-col">
  5. <view class="content">
  6. <view class="flex-row justify-between item">
  7. <text class="label">备注:</text>
  8. <textarea class="textarea" placeholder-style="color:#999999" placeholder="请输入备注"/>
  9. </view>
  10. <view class="flex-row justify-between item">
  11. <view class="flex-col justify-center">
  12. <text class="label">备注地址:</text>
  13. </view>
  14. <input class="input" placeholder="请输入备注地址" />
  15. </view>
  16. <view class="flex-row justify-between item">
  17. <text class="label">现场照片:</text>
  18. <view class="imageList">
  19. <view class="addImage leftFloat" v-for="i in ilist" >
  20. <image src="/static/my/fuwuNmber.png"></image>
  21. </view>
  22. <view class="addImage leftFloat flex-col justify-center" >
  23. <uni-icons type="plusempty" size="30"></uni-icons>
  24. <text>现场照片</text>
  25. </view>
  26. </view>
  27. </view>
  28. </view>
  29. <view class="flex-row">
  30. <button class="button" type="primary">确定</button>
  31. <button class="button">取消</button>
  32. </view>
  33. </view>
  34. </uni-popup>
  35. </view>
  36. </template>
  37. <script>
  38. import Button from "../../uni_modules/uv-ui-tools/libs/mixin/button";
  39. export default {
  40. name:"addRemarkPopup",
  41. components: {Button},
  42. data() {
  43. return {
  44. ilist:10
  45. };
  46. },
  47. methods:{
  48. openPopup(){
  49. console.log('爸爸调用了我')
  50. this.$refs.addRemarkPopup.open()
  51. }
  52. }
  53. }
  54. </script>
  55. <style scoped lang="less">
  56. .addRemarkPopup{
  57. width: 750rpx;
  58. height: 900rpx;
  59. background: #FFFFFF;
  60. }
  61. .content{
  62. padding: 0 32rpx;
  63. height: 730rpx;
  64. overflow: auto;
  65. }
  66. .textarea{
  67. width: 500rpx;
  68. height: 250rpx;
  69. border: 2rpx solid #f7f7f7;
  70. font-size: 26rpx;
  71. }
  72. .input{
  73. width: 500rpx;
  74. height: 70rpx;
  75. border: 2rpx solid #f7f7f7;
  76. font-size: 26rpx;
  77. }
  78. .item{
  79. margin-top: 20rpx;
  80. }
  81. .label{
  82. font-size: 28rpx;
  83. }
  84. .button{
  85. width: 200rpx;
  86. height: 70rpx;
  87. line-height: 70rpx;
  88. font-size: 30rpx;
  89. margin-top: 50rpx;
  90. }
  91. .imageList{
  92. width: 530rpx;
  93. min-height: 240rpx;
  94. }
  95. .addImage{
  96. width: 200rpx;
  97. height: 240rpx;
  98. border: 2rpx solid #f7f7f7;
  99. align-items: center;
  100. font-size: 28rpx;
  101. line-height: 80rpx;
  102. margin-left: 30rpx;
  103. margin-top: 10rpx;
  104. image{
  105. width: 200rpx;
  106. height: 240rpx;
  107. }
  108. }
  109. .leftFloat{
  110. float: left;
  111. }
  112. </style>