帧视界壹通告,付费看视频的微信小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

244 lines
4.4 KiB

11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
  1. <template>
  2. <view class="publishPost">
  3. <navbar
  4. leftClick
  5. @leftClick="$utils.navigateBack"
  6. title="发布帖子"/>
  7. <view class="images box">
  8. <uv-upload
  9. :fileList="fileList"
  10. :maxCount="5"
  11. multiple
  12. width="150rpx"
  13. height="150rpx"
  14. @delete="deleteImage"
  15. @afterRead="afterRead"
  16. :previewFullImage="true"></uv-upload>
  17. </view>
  18. <view class="title-input box">
  19. <input type="text" placeholder="添加标题"/>
  20. </view>
  21. <view class="content-input">
  22. <uv-textarea
  23. v-model="form.content"
  24. :maxlength="200"
  25. autoHeight
  26. count
  27. placeholder="添加正文"></uv-textarea>
  28. </view>
  29. <view class="upTop">
  30. <view class="title">
  31. <uv-icon name="pushpin-fill"></uv-icon>
  32. 是否置顶
  33. </view>
  34. <uv-radio-group v-model="form.upTop">
  35. <view class="list">
  36. <view class="item"
  37. v-for="(item, index) in upTopList"
  38. :key="index">
  39. <view class="left">
  40. {{ item.info }}
  41. </view>
  42. <view class="right">
  43. <uv-radio
  44. size="35rpx"
  45. icon-size="35rpx"
  46. :name="item.id">
  47. </uv-radio>
  48. </view>
  49. </view>
  50. </view>
  51. </uv-radio-group>
  52. </view>
  53. <view class="configBtn"
  54. @click="$refs.configPopup.open()">
  55. 发布须知
  56. </view>
  57. <submit
  58. @submit="submit"
  59. @preview="preview"
  60. @draft="draft"
  61. submitTitle="发布帖子"
  62. />
  63. <confirmationPopup
  64. ref="confirmationPopup"
  65. title="提示"
  66. confirmText="确认支付">
  67. <view class="confirmationPopup">
  68. <image src="/static/image/publish/pay.png"
  69. style="width: 150rpx;height: 150rpx;"
  70. mode=""></image>
  71. <view class="info">
  72. 确认支付3元可置顶1天
  73. </view>
  74. </view>
  75. </confirmationPopup>
  76. <confirmationPopup
  77. ref="confirmationPopupUpload"
  78. title="提示"
  79. confirmText="确认">
  80. <view class="confirmationPopup">
  81. <image src="/static/image/publish/upload.png"
  82. style="width: 150rpx;height: 150rpx;"
  83. mode=""></image>
  84. <view class="info">
  85. 已由平台进行审核时间周期为24小时
  86. </view>
  87. </view>
  88. </confirmationPopup>
  89. <configPopup
  90. ref="configPopup"
  91. />
  92. </view>
  93. </template>
  94. <script>
  95. import submit from '@/components/content/submit.vue'
  96. import confirmationPopup from '@/components/toast/confirmationPopup.vue'
  97. export default {
  98. components : {
  99. submit,
  100. confirmationPopup
  101. },
  102. data() {
  103. return {
  104. upTopList : [
  105. {
  106. info : '置顶1天3元',
  107. id : 1,
  108. },
  109. {
  110. info : '置顶2天3元',
  111. id : 4,
  112. },
  113. {
  114. info : '置顶3天3元',
  115. id : 3,
  116. },
  117. {
  118. info : '置顶4天3元',
  119. id : 2,
  120. },
  121. ],
  122. form : {
  123. image : [],
  124. content : '',
  125. upTop : '',
  126. },
  127. fileList: [
  128. {
  129. url: 'https://cdn.uviewui.com/uview/swiper/2.jpg'
  130. },
  131. ],
  132. };
  133. },
  134. methods : {
  135. deleteImage(e){
  136. this.fileList.splice(e.index, 1)
  137. },
  138. afterRead(e){
  139. let self = this
  140. e.file.forEach(file => {
  141. self.$Oss.ossUpload(file.url).then(url => {
  142. self.fileList.push({
  143. url
  144. })
  145. })
  146. })
  147. },
  148. submit(){
  149. console.log(1);
  150. this.$refs.confirmationPopup.open()
  151. },
  152. preview(){},
  153. draft(){},
  154. }
  155. }
  156. </script>
  157. <style lang="scss" scoped>
  158. .publishPost{
  159. background-color: #fff;
  160. min-height: 100vh;
  161. font-size: 28rpx;
  162. padding-bottom: 150rpx;
  163. /deep/ .uv-textarea{
  164. background-color: transparent;
  165. border: none;
  166. }
  167. /deep/ .uv-textarea__count{
  168. background-color: transparent !important;
  169. }
  170. .box{
  171. padding: 0 20rpx;
  172. }
  173. .images{
  174. display: flex;
  175. flex-wrap: wrap;
  176. padding: 20rpx;
  177. }
  178. .title-input{
  179. border-bottom: 1px solid #00000015;
  180. padding-bottom: 25rpx;
  181. margin-bottom: 15rpx;
  182. }
  183. .content-input{
  184. min-height: 400rpx;
  185. }
  186. .upTop{
  187. .title{
  188. padding-top: 20rpx;
  189. padding-left: 30rpx;
  190. border-top: 1px solid #00000015;
  191. display: flex;
  192. align-items: center;
  193. }
  194. .list{
  195. padding-top: 30rpx;
  196. width: 100%;
  197. .item{
  198. display: flex;
  199. padding: 20rpx;
  200. padding-left: 80rpx;
  201. justify-content: space-between;
  202. width: 600rpx;
  203. border-bottom: 1px solid #00000015;
  204. align-items: center;
  205. }
  206. }
  207. }
  208. .configBtn{
  209. padding: 20rpx;
  210. color: #777;
  211. padding-top: 40rpx;
  212. font-size: 28rpx;
  213. }
  214. .confirmationPopup{
  215. display: flex;
  216. flex-direction: column;
  217. align-items: center;
  218. justify-content: center;
  219. width: 100%;
  220. height: 300rpx;
  221. image{
  222. margin-top: 40rpx;
  223. }
  224. .info{
  225. margin-top: 40rpx;
  226. font-size: 26rpx;
  227. }
  228. }
  229. }
  230. </style>