artUpload.wxml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. <!--pages/user/artUpload/artUpload.wxml-->
  2. <view class="page-art">
  3. <view wx:if="{{userInfo.type==2}}" class="planer-box">
  4. <view class="planer-header">
  5. <view class="name">艺术家信息</view>
  6. </view>
  7. <view class="planer-content">
  8. <view class="atr-user-header">
  9. <view wx:if="{{!avatarImgFile}}" bindtap="upArtImg" class="user-header"><image class="img-full img-header" src="https://resource.artouchstone.com/miniapp/artist/images/user/add@2x.png"></image></view>
  10. <view wx:else class="user-header">
  11. <image class="img-full" src="{{avatarImgFile.url}}"></image>
  12. <view bindtap="removeUpArtImg" class="icon-close"><image class="img-full" src="https://resource.artouchstone.com/miniapp/artist/images/user/icon-close.png"></image></view>
  13. </view>
  14. </view>
  15. <view class="form-box">
  16. <view class="form-list">
  17. <view class="form-label">姓名</view>
  18. <input class="input-text" id="formData.artistName" bindchange="changeInput" value="{{formData.artistName}}" placeholder="请输入您的姓名" type="text" value="" />
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. <view class="planer-box">
  24. <view class="planer-header">
  25. <view class="name">作品上传</view>
  26. </view>
  27. <view class="planer-content">
  28. <view wx:key="{{index}}" wx:for="{{opusPicFile}}" class="upload-box">
  29. <image bindtap="prevFile" class="planer-image" mode="aspectFit" src="{{item.url}}"></image>
  30. <view bindtap="removeUpArtFile" class="icon-close"><image class="img-full" src="https://resource.artouchstone.com/miniapp/artist/images/user/icon-close.png"></image></view>
  31. </view>
  32. <view wx:if="{{opusPicFile.length==0}}" class="upload-box">
  33. <view class="up-inner">
  34. <view bindtap="upArtFile" class="icon"><image class="img-full" src="https://resource.artouchstone.com/miniapp/artist/images/user/icon-add.png"></image></view>
  35. <view class="text">点击作品上传</view>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. <view class="planer-box">
  41. <view class="planer-header">
  42. <view class="name">作品信息</view>
  43. </view>
  44. <view class="planer-content">
  45. <view class="item-form-border" style="display:none;">
  46. <view class="item-label">作者</view>
  47. <input class="input-text" id="formData.author" bindchange="changeInput" value="{{formData.author}}" placeholder="请填写作者姓名" />
  48. </view>
  49. <view class="item-form-border">
  50. <view class="item-label">作品名称</view>
  51. <input class="input-text" id="formData.name" bindchange="changeInput" value="{{formData.name}}" placeholder="请填写作品名称" />
  52. </view>
  53. <picker mode="multiSelector" bindchange="bindMultiPickerChange" bindcolumnchange="bindMultiPickerColumnChange" value="{{categoryIdPickerValue}}" range-key="name" range="{{categoryIdPicker}}" class="item-form-border">
  54. <view class="item-label">作品类型</view>
  55. <input class="input-text" disabled value="{{categoryName}}" placeholder="请选择作品类型" />
  56. <view class="icons-select">
  57. <image class="img-full" src="https://resource.artouchstone.com/miniapp/artist/images/user/icon-arrow-down.png"></image>
  58. </view>
  59. </picker>
  60. <view class="item-form-border">
  61. <view class="item-label">作品材质</view>
  62. <input class="input-text" id="formData.material" bindchange="changeInput" value="{{formData.material}}" placeholder="请填写作品材质" />
  63. </view>
  64. </view>
  65. </view>
  66. <view wx:if="{{categoryIdPickerValue[0]==0}}" class="planer-box">
  67. <view class="planer-content">
  68. <view class="art-title">平面作品尺寸</view>
  69. <view class="item-form-border-info">
  70. 填写要求:国画、摄影、水彩、版画等有装裱作品请分别填画框和画芯尺寸;无装裱作品请填画芯尺寸。
  71. </view>
  72. <view class="item-form-border-title">
  73. 画框尺寸
  74. </view>
  75. <view class="item-form-border">
  76. <view class="item-label">长</view>
  77. <input class="input-text" id="formData.frameLength" data-number="pointNum" bindchange="changeInput" value="{{formData.frameLength}}" type="digit" placeholder="请填写长度" />
  78. <view class="label-until">CM</view>
  79. </view>
  80. <view class="item-form-border">
  81. <view class="item-label">宽</view>
  82. <input class="input-text" id="formData.frameWidth" data-number="pointNum" bindchange="changeInput" value="{{formData.frameWidth}}" type="digit" placeholder="请填写宽度" />
  83. <view class="label-until">CM</view>
  84. </view>
  85. <view class="item-form-border-title">
  86. 画芯尺寸
  87. </view>
  88. <view class="item-form-border">
  89. <view class="item-label">长</view>
  90. <input class="input-text" id="formData.heartLength" data-number="pointNum" bindchange="changeInput" value="{{formData.heartLength}}" type="digit" placeholder="请填写长度" />
  91. <view class="label-until">CM</view>
  92. </view>
  93. <view class="item-form-border">
  94. <view class="item-label">宽</view>
  95. <input class="input-text" id="formData.heartWidth" data-number="pointNum" bindchange="changeInput" value="{{formData.heartWidth}}" type="digit" placeholder="请填写宽度" />
  96. <view class="label-until">CM</view>
  97. </view>
  98. </view>
  99. </view>
  100. <view wx:if="{{categoryIdPickerValue[0]!=0}}" class="planer-box">
  101. <view class="planer-content">
  102. <view class="art-title">立体作品尺寸</view>
  103. <view class="item-form-border-info">
  104. 填写要求:立体作品请填写长宽高,如无固定尺寸请备注说明
  105. </view>
  106. <view class="item-form-border-title">
  107. 有固定尺寸
  108. </view>
  109. <view class="item-form-border">
  110. <view class="item-label">长</view>
  111. <input class="input-text" id="formData.fixedLength" data-number="pointNum" bindchange="changeInput" value="{{formData.fixedLength}}" placeholder="请填写长度" type="digit" />
  112. <view class="label-until">CM</view>
  113. </view>
  114. <view class="item-form-border">
  115. <view class="item-label">宽</view>
  116. <input class="input-text" id="formData.fixedWidth" data-number="pointNum" bindchange="changeInput" value="{{formData.fixedWidth}}" placeholder="请填写宽度" type="digit" />
  117. <view class="label-until">CM</view>
  118. </view>
  119. <view class="item-form-border">
  120. <view class="item-label">高</view>
  121. <input class="input-text" id="formData.fixedHeight" data-number="pointNum" bindchange="changeInput" value="{{formData.fixedHeight}}" placeholder="请填写高度" type="digit" />
  122. <view class="label-until">CM</view>
  123. </view>
  124. <view class="item-form-border-title">
  125. 无固定尺寸
  126. </view>
  127. <view class="item-form-border nolabel">
  128. <input class="input-text" id="formData.sizeMark" bindchange="changeInput" value="{{formData.sizeMark}}" placeholder="请填写备注" />
  129. </view>
  130. </view>
  131. </view>
  132. <view class="planer-box none">
  133. <view class="planer-content">
  134. <view class="item-form-border-title">
  135. </view>
  136. <view class="item-form-border lg">
  137. <view class="item-label">作品创作年份</view>
  138. <picker bindchange="changeTime" mode="date" end="{{maxTime}}">
  139. <input class="input-text" disabled id="formData.time" bindchange="changeInput" value="{{formData.time}}" placeholder="请选择" />
  140. </picker>
  141. <view class="icons-select">
  142. <image class="img-full" src="https://resource.artouchstone.com/miniapp/artist/images/user/icon-arrow-down.png"></image>
  143. </view>
  144. </view>
  145. <view class="item-form-border lg">
  146. <view class="item-label">作品版本</view>
  147. <input class="input-text" id="formData.version" bindchange="changeInput" value="{{formData.version}}" placeholder="例:123(版画及雕塑选填)" />
  148. <!--<view class="label-until">CM</view>-->
  149. </view>
  150. <view class="item-form-border lg">
  151. <view class="item-label">作品价格</view>
  152. <input class="input-text" id="formData.price" data-number="pointNum" bindchange="changeInput" value="{{formData.price}}" placeholder="请输入作品销售价格" type="digit" />
  153. <view class="label-until">CNY</view>
  154. </view>
  155. <!-- 是否数字艺术品 -->
  156. <view class="item-form-border lg">
  157. <view class="item-label">数字艺术品</view>
  158. <picker bindchange="digitalArtworkChange" value="{{ digitalArtworkOptions.index }}" range-key="{{ 'label' }}" range="{{ digitalArtworkOptions.options }}" mode = selector >
  159. <input class="input-text" value="{{ digitalArtworkOptions.options[digitalArtworkOptions.index].label }}" />
  160. </picker>
  161. <view class="icons-select">
  162. <image class="img-full" src="https://resource.artouchstone.com/miniapp/artist/images/user/icon-arrow-down.png"></image>
  163. </view>
  164. </view>
  165. <view class="item-form-border-title">
  166. 作品阐述
  167. </view>
  168. <view class="item-form-border">
  169. <textarea id="formData.desp" bindinput="changeInput" value="{{formData.desp}}" class="textarea-text" placeholder="请在300个字内简明阐述您的作品"></textarea>
  170. </view>
  171. <view class="btn-box">
  172. <view>
  173. <view bindtap="saveData" data-status="1" class="small-btn btn1">暂存</view>
  174. </view>
  175. <view>
  176. <view bindtap="saveData" data-status="0" class="small-btn btn2">提交</view>
  177. </view>
  178. </view>
  179. </view>
  180. </view>
  181. </view>