帧视界壹通告,付费看视频的微信小程序
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.

313 lines
6.0 KiB

11 months ago
10 months ago
11 months ago
10 months ago
11 months ago
10 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
10 months ago
11 months ago
11 months ago
10 months ago
11 months ago
11 months ago
10 months ago
11 months ago
11 months ago
11 months ago
11 months ago
  1. <template>
  2. <view class="actorRelease">
  3. <navbar
  4. leftClick
  5. @leftClick="$utils.navigateBack"
  6. title="演员发布"/>
  7. <view class="images box">
  8. <uv-upload
  9. :fileList="fileListImage"
  10. :maxCount="1"
  11. multiple
  12. width="150rpx"
  13. height="150rpx"
  14. @delete="deleteImage2"
  15. @afterRead="afterRead2"
  16. :previewFullImage="true"></uv-upload>
  17. </view>
  18. <view class="form">
  19. <view class="form-item">
  20. <view class="label">
  21. 名称
  22. </view>
  23. <input type="text" placeholder="请输入名称"/>
  24. </view>
  25. <view class="form-item">
  26. <view class="label">
  27. 价格
  28. </view>
  29. <input type="number" placeholder="请输入价格"/>
  30. </view>
  31. <!-- <view class="form-item">
  32. <view class="label">
  33. 地点
  34. </view>
  35. <input type="text" placeholder="请输入地点"/>
  36. </view>
  37. <view class="form-item">
  38. <view class="label">
  39. 时间
  40. </view>
  41. <input type="text" placeholder="请选择时间"/>
  42. </view> -->
  43. <view class="form-item">
  44. <view class="label">
  45. 联系方式
  46. </view>
  47. <input type="text" placeholder="请输入联系方式"/>
  48. </view>
  49. <view class="form-item-content">
  50. <view class="label">
  51. 详情介绍
  52. </view>
  53. <view class="textarea">
  54. <uv-textarea
  55. v-model="form.content"
  56. :maxlength="200"
  57. count
  58. placeholder="输入详情介绍"></uv-textarea>
  59. </view>
  60. </view>
  61. <view class="form-item-content">
  62. <view class="label">
  63. 发布人
  64. </view>
  65. <view class="textarea">
  66. <uv-radio-group v-model="form.createType">
  67. <uv-radio
  68. size="35rpx"
  69. icon-size="35rpx"
  70. label="本人发布"
  71. labelSize="28rpx"
  72. name="1">
  73. </uv-radio>
  74. <uv-radio
  75. size="35rpx"
  76. icon-size="35rpx"
  77. label="经纪人发布"
  78. labelSize="28rpx"
  79. name="0">
  80. </uv-radio>
  81. </uv-radio-group>
  82. </view>
  83. </view>
  84. <view class="form-item-content">
  85. <view class="label">
  86. 联系方式是否付费查看建议付费避免无效联系
  87. </view>
  88. <view class="textarea">
  89. <uv-radio-group v-model="form.phonePrice">
  90. <uv-radio
  91. size="35rpx"
  92. icon-size="35rpx"
  93. label="是"
  94. labelSize="28rpx"
  95. name="1">
  96. </uv-radio>
  97. <uv-radio
  98. size="35rpx"
  99. icon-size="35rpx"
  100. label="否"
  101. labelSize="28rpx"
  102. name="0">
  103. </uv-radio>
  104. </uv-radio-group>
  105. </view>
  106. </view>
  107. <view class="form-item-content">
  108. <view class="label">
  109. 是否置顶
  110. </view>
  111. <view class="textarea">
  112. <uv-radio-group v-model="form.upTop">
  113. <uv-radio
  114. size="35rpx"
  115. icon-size="35rpx"
  116. label="是"
  117. labelSize="28rpx"
  118. name="1">
  119. </uv-radio>
  120. <uv-radio
  121. size="35rpx"
  122. icon-size="35rpx"
  123. label="否"
  124. labelSize="28rpx"
  125. name="0">
  126. </uv-radio>
  127. </uv-radio-group>
  128. </view>
  129. </view>
  130. <view class="form-item-content">
  131. <view class="label">
  132. 代表作
  133. </view>
  134. <view class="upload">
  135. <uv-upload
  136. :fileList="fileList"
  137. :maxCount="5"
  138. multiple
  139. accept="video"
  140. width="150rpx"
  141. height="150rpx"
  142. @delete="deleteImage"
  143. @afterRead="afterRead"
  144. :previewFullImage="true"></uv-upload>
  145. </view>
  146. </view>
  147. </view>
  148. <submit
  149. @submit="submit"
  150. @preview="preview"
  151. @draft="draft"
  152. />
  153. <confirmationPopup
  154. ref="confirmationPopupUpload"
  155. title="提示"
  156. confirmText="确认">
  157. <view class="confirmationPopup">
  158. <image src="/static/image/publish/upload.png"
  159. style="width: 150rpx;height: 150rpx;"
  160. mode=""></image>
  161. <view class="info">
  162. 已由平台进行审核时间周期为24小时
  163. </view>
  164. </view>
  165. </confirmationPopup>
  166. </view>
  167. </template>
  168. <script>
  169. import submit from '@/components/content/submit.vue'
  170. import confirmationPopup from '@/components/toast/confirmationPopup.vue'
  171. export default {
  172. components : {
  173. submit,
  174. confirmationPopup
  175. },
  176. data() {
  177. return {
  178. form : {
  179. phonePrice : '1',
  180. upTop : '1',
  181. createType : '1',
  182. },
  183. fileList: [
  184. // {
  185. // url: 'https://cdn.uviewui.com/uview/swiper/2.jpg'
  186. // },
  187. ],
  188. fileListImage : [],
  189. };
  190. },
  191. methods : {
  192. deleteImage(e){
  193. this.fileList.splice(e.index, 1)
  194. },
  195. afterRead(e){
  196. let self = this
  197. e.file.forEach(file => {
  198. self.$Oss.ossUpload(file.url).then(url => {
  199. self.fileList.push({
  200. url
  201. })
  202. })
  203. })
  204. },
  205. deleteImage2(e){
  206. this.fileListImage.splice(e.index, 1)
  207. },
  208. afterRead2(e){
  209. let self = this
  210. e.file.forEach(file => {
  211. self.$Oss.ossUpload(file.url).then(url => {
  212. self.fileListImage.push({
  213. url
  214. })
  215. })
  216. })
  217. },
  218. pay(){
  219. let arr = []
  220. this.fileList.forEach(n => {
  221. arr.push(n.url)
  222. })
  223. let data = {
  224. ...this.form,
  225. isCard : 1,
  226. image : arr.join(',')
  227. }
  228. this.$api('infoReleaseTrends', data,
  229. res => {
  230. if(res.code == 200){
  231. this.$refs.confirmationPopupUpload.open()
  232. }
  233. })
  234. },
  235. submit(){
  236. },
  237. }
  238. }
  239. </script>
  240. <style lang="scss" scoped>
  241. .actorRelease{
  242. background-color: #fff;
  243. min-height: 100vh;
  244. font-size: 28rpx;
  245. padding-bottom: 150rpx;
  246. /deep/ .uv-radio{
  247. margin-right: 25rpx;
  248. margin-top: 10rpx;
  249. }
  250. .box{
  251. padding: 0 20rpx;
  252. }
  253. .images{
  254. display: flex;
  255. flex-wrap: wrap;
  256. padding: 20rpx;
  257. }
  258. .form{
  259. .label{
  260. padding: 20rpx;
  261. }
  262. .form-item{
  263. display: flex;
  264. align-items: center;
  265. justify-content: space-between;
  266. padding: 20rpx 0;
  267. padding-right: 30rpx;
  268. input{
  269. text-align: right;
  270. flex: 1;
  271. }
  272. }
  273. .form-item-content{
  274. padding-right: 30rpx;
  275. padding-top: 30rpx;
  276. .textarea{
  277. padding-left: 20rpx;
  278. }
  279. .upload{
  280. padding-left: 20rpx;
  281. }
  282. }
  283. }
  284. .confirmationPopup{
  285. display: flex;
  286. flex-direction: column;
  287. align-items: center;
  288. justify-content: center;
  289. width: 100%;
  290. height: 300rpx;
  291. image{
  292. margin-top: 40rpx;
  293. }
  294. .info{
  295. margin-top: 40rpx;
  296. font-size: 26rpx;
  297. }
  298. }
  299. }
  300. </style>