style.wxml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <wxs src="../../utils/tool.wxs" module="tool"></wxs>
  2. <view class="item">
  3. <label>头像</label>
  4. <view class="tags">
  5. <image class="account_img" wx:if='{{form.avatar}}' bindtap="preview" src="{{form.avatar}}"></image>
  6. <icon wx:if='{{form.avatar}}' bindtap="del" class="icon-small" type="cancel" size="25"></icon>
  7. <view wx:else class="upload" bindtap="uploadImg">
  8. <image mode="widthFix" src="../../images/img.png"></image>
  9. 上传头像
  10. </view>
  11. </view>
  12. </view>
  13. <view class="item">
  14. <label>参赛名</label>
  15. <view class="tags">
  16. <input value="{{form.username}}" bindinput="bindinput" placeholder-style="color:#999;" placeholder="请填写"></input>
  17. </view>
  18. </view>
  19. <view class="item">
  20. <label>入市时间</label>
  21. <view class="tags">
  22. <picker mode="date" fields='year' value="{{form.join_time}}" bindchange="bindDateChange">
  23. <view class="date-picker">
  24. <text wx:if='{{!form.join_time}}'>请选择</text>
  25. {{form.join_time==null?'':form.join_time}}
  26. <image mode="widthFix" src="../../images/icon_down@2x.png"></image>
  27. </view>
  28. </picker>
  29. </view>
  30. </view>
  31. <view class="title">操作风格</view>
  32. <view wx:if='{{arr1.length>0}}'>
  33. <view class="item">
  34. <label>周期</label>
  35. <view class="tags">
  36. <text wx:for='{{arr1}}' class="{{tool.indexOf(form.zq, item)>=0?'act':''}}" bindtap="change" data-id='{{item}}' data-item='zq'>{{item}}</text>
  37. </view>
  38. </view>
  39. <view class="item">
  40. <label>仓位</label>
  41. <view class="tags">
  42. <text wx:for='{{arr2}}' class="{{tool.indexOf(form.cw, item)>=0?'act':''}}" bindtap="change" data-id='{{item}}' data-item='cw'>{{item}}</text>
  43. </view>
  44. </view>
  45. <view class="item">
  46. <label>打法</label>
  47. <view class="tags">
  48. <text wx:for='{{arr3}}' class="{{tool.indexOf(form.df, item)>=0?'act':''}}" bindtap="change" data-id='{{item}}' data-item='df'>{{item}}</text>
  49. </view>
  50. </view>
  51. <view class="item">
  52. <label>品种</label>
  53. <view class="tags">
  54. <text wx:for='{{arr4}}' class="{{tool.indexOf(form.pz, item)>=0?'act':''}}" bindtap="change" data-id='{{item}}' data-item='pz'>{{item}}</text>
  55. </view>
  56. </view>
  57. <!-- <view class="item" wx:if="{{form.is_player==1}}"> -->
  58. <!-- <label>参赛金额</label> -->
  59. <!-- <view class="tags"> -->
  60. <!-- <input wx:if="{{!form.init_fund}}" type="digit" value="{{form.init_fund}}" bindinput="bindinput" placeholder-style="color:#999;" placeholder="请填写"></input> -->
  61. <!-- <input disabled="{{true}}" style="background:#eee;" value="{{form.init_fund}}"></input>
  62. <view style="color:red;font-size:23rpx;">比赛期间有资金进出请联系QQ客服除权,再提交作业</view> -->
  63. <!-- </view> -->
  64. <!-- </view> -->
  65. <button bindtap="post" class="post_btn">确定</button>
  66. </view>