newsadd.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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>
  22. <editor-box></editor-box>
  23. </view>
  24. <!-- <uni-forms-item label="文章类型" name="phonenumber">
  25. <view class="flexc">
  26. <picker range-key='text' :value="syqxidx" :range="sexs" @change='bindDateChange'>
  27. <view class="rimg"><image :src="rimg"></image></view>
  28. </picker>
  29. </view>
  30. </uni-forms-item> -->
  31. </view>
  32. </view>
  33. </uni-forms>
  34. <view class="rfbtn">发布</view>
  35. <loading></loading>
  36. </view>
  37. </template>
  38. <script>
  39. import config from '@/config'
  40. import editorBox from "@/manage/components/editor/editor.vue"
  41. import {checkPermi,checkRole} from "@/utils/permission"; // 权限判断函数
  42. export default {
  43. components: {editorBox},
  44. data() {
  45. return {
  46. rimg: require('@/work/static/people/rimg.png'),
  47. baseUrl: config.baseUrl,
  48. checkflag:true,
  49. datainfo: {
  50. sex:0,
  51. realName: '',
  52. idCard: '',
  53. address: '',
  54. expirationDate: '',
  55. phonenumber: '',
  56. front: '',
  57. back: '',
  58. },
  59. syqxidx:'',
  60. sexs: [{
  61. text: '男',
  62. value: 0
  63. }, {
  64. text: '女',
  65. value: 1
  66. }],
  67. }
  68. },
  69. onLoad: function() {
  70. },
  71. methods: {
  72. checkPermi,
  73. checkRole,
  74. bindDateChange(e){
  75. var val=e.detail.value;
  76. // this.datainfo.applicationBank=this.sdyhlist[val].value;
  77. // this.applicationBank=this.sdyhlist[val].label;
  78. },
  79. }
  80. }
  81. </script>
  82. <style>
  83. page{background: #F3F3F0;}
  84. </style>
  85. <style lang="scss" scoped>
  86. .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;}
  87. .check .cbox /deep/ .uni-forms-item:last-child{border: none;}
  88. .check /deep/ .uni-forms-item__label{font-weight: bold;font-size: 26rpx;color: #222327;flex: 0 0 auto;width: auto !important;}
  89. .check /deep/ .uni-easyinput{flex: 1;text-align: left;font-size: 26rpx;color: #222327;}
  90. .check /deep/ .uni-easyinput__content-textarea{min-height: 40rpx;font-size: 26rpx;}
  91. .check /deep/ .uni-easyinput__placeholder-class{font-size: 26rpx;color: #AAAAAA;}
  92. .check /deep/ .uni-easyinput__content-input{padding-left: 0 !important;}
  93. .check /deep/ .uni-input-input{font-size: 26rpx;}
  94. .check /deep/ .uni-textarea-textarea{font-size: 26rpx;}
  95. .check /deep/ .is-disabled{color: #222327;background-color: #ffffff !important;}
  96. .check /deep/ .uni-data-checklist .checklist-group .checklist-box{margin:10rpx 8rpx 10rpx 16rpx;}
  97. .check /deep/ .uni-data-checklist{flex: 0 0 auto;}
  98. .check{min-height: 100vh;padding: 20rpx 18rpx 110rpx;box-sizing: border-box;}
  99. .cbox{background: #FFFFFF;border-radius: 20rpx;flex: 1;margin-bottom: 24rpx;
  100. .chmain{
  101. padding: 0 32rpx;
  102. .rimg{width: 16rpx;height: 28rpx;flex: 0 0 auto;margin-left: 20rpx;
  103. image{width: 100%;height: 100%;}
  104. }
  105. .checkimg{width: 80rpx;height: 40rpx;margin-right: 8rpx;}
  106. }
  107. }
  108. </style>