newsaddvideo.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <template>
  2. <view class="check">
  3. <uni-forms ref="form" :model="datainfo">
  4. <!-- <view class="cbox">
  5. <view class="chmain">
  6. <uni-forms-item label="文章类型" name="phonenumber">
  7. <picker range-key='text' :value="syqxidx" :range="sexs" @change='bindDateChange'>
  8. <view class="flexc">
  9. <view class="flex1 txr f13" :class="datainfo.iszc?'co27':'coa'">{{datainfo.iszc?'是':'请选择文章类型'}}</view>
  10. <view class="rimg"><image :src="rimg"></image></view>
  11. </view>
  12. </picker>
  13. </uni-forms-item>
  14. </view>
  15. </view> -->
  16. <view class="cbox">
  17. <view class="chmain">
  18. <uni-forms-item label-width='0' name="phonenumber">
  19. <uni-easyinput type="textarea" autoHeight v-model="datainfo.phonenumber" :inputBorder='false' placeholder="输入标题" />
  20. </uni-forms-item>
  21. <view class="addbox flexdcc">
  22. <image :src="video"></image>
  23. <view>添加视频</view>
  24. </view>
  25. <view class="flexcw">
  26. <view class="imgs">
  27. <video class="img" id="myVideo" src="https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/2minute-demo.mp4"
  28. @error="videoErrorCallback" :danmu-list="danmuList" enable-danmu danmu-btn controls></video>
  29. <image :src="del" class="del"></image>
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. </uni-forms>
  35. <view class="rfbtn">发布</view>
  36. <loading></loading>
  37. </view>
  38. </template>
  39. <script>
  40. import config from '@/config'
  41. import {checkPermi,checkRole} from "@/utils/permission"; // 权限判断函数
  42. export default {
  43. components: {},
  44. data() {
  45. return {
  46. video: require('@/manage/static/community/video.png'),
  47. del: require('@/car/static/car/del.png'),
  48. baseUrl: config.baseUrl,
  49. checkflag:true,
  50. datainfo: {
  51. sex:0,
  52. realName: '',
  53. idCard: '',
  54. address: '',
  55. expirationDate: '',
  56. phonenumber: '',
  57. front: '',
  58. back: '',
  59. },
  60. }
  61. },
  62. onLoad: function() {
  63. },
  64. methods: {
  65. checkPermi,
  66. checkRole,
  67. }
  68. }
  69. </script>
  70. <style>
  71. page{background: #F3F3F0;}
  72. </style>
  73. <style lang="scss" scoped>
  74. .check /deep/ .uni-forms-item{min-height: 106rpx;box-sizing: border-box;display: flex;align-items: center;margin-bottom: 0;border-bottom: 2rpx solid #E6E6E6;padding:10rpx 0;}
  75. .check .cbox /deep/ .uni-forms-item:last-child{border: none;}
  76. .check /deep/ .uni-forms-item__label{font-weight: bold;font-size: 26rpx;color: #222327;flex: 0 0 auto;width: auto !important;}
  77. .check /deep/ .uni-easyinput{flex: 1;text-align: left;font-size: 26rpx;color: #222327;}
  78. .check /deep/ .uni-easyinput__content-textarea{min-height: 40rpx;font-size: 26rpx;}
  79. .check /deep/ .uni-easyinput__placeholder-class{font-size: 26rpx;color: #AAAAAA;}
  80. .check /deep/ .uni-easyinput__content-input{padding-left: 0 !important;}
  81. .check /deep/ .uni-input-input{font-size: 26rpx;}
  82. .check /deep/ .uni-textarea-textarea{font-size: 26rpx;}
  83. .check /deep/ .is-disabled{color: #222327;background-color: #ffffff !important;}
  84. .check /deep/ .uni-data-checklist .checklist-group .checklist-box{margin:10rpx 8rpx 10rpx 16rpx;}
  85. .check /deep/ .uni-data-checklist{flex: 0 0 auto;}
  86. .check{min-height: 100vh;padding: 20rpx 18rpx 110rpx;box-sizing: border-box;}
  87. .cbox{background: #FFFFFF;border-radius: 20rpx;flex: 1;margin-bottom: 24rpx;
  88. .chmain{
  89. padding: 0 32rpx 10rpx;min-height: calc(100vh - 146rpx);box-sizing: border-box;
  90. .rimg{width: 16rpx;height: 28rpx;flex: 0 0 auto;margin-left: 20rpx;
  91. image{width: 100%;height: 100%;}
  92. }
  93. .checkimg{width: 80rpx;height: 40rpx;margin-right: 8rpx;}
  94. }
  95. }
  96. .addbox{height: 190rpx;background: #FFFFFF;border-radius: 10rpx;border: 2rpx dashed #A7A7A7;margin: 48rpx 0 56rpx;
  97. image{width: 54rpx;height: 46rpx;margin-bottom: 16rpx;}
  98. view{font-weight: bold;font-size: 26rpx;color: #272727;}
  99. }
  100. .imgs{
  101. width: 310rpx;height: 186rpx;position: relative;margin: 0 10rpx 10rpx 0;
  102. .img{width: 100%;height: 100%;}
  103. .del{width: 24rpx;height: 24rpx;position: absolute;right: 0;top: 0;z-index: 2;}
  104. }
  105. </style>