activity.wxml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <wxs src='/utils/wxmlUtil.wxs' module="wxmlUtil"></wxs>
  2. <van-dialog id="van-dialog" />
  3. <loading wx:if="{{loading}}"></loading>
  4. <!--公司信息-->
  5. <view class="detail-top" data-item="{{item}}" bind:tap="toDetail">
  6. <image class="scan-image" fit="fill" src="{{imageUrl+'/detail_sale_order.png'}}"></image>
  7. <view style="display: flex;margin:20rpx 20rpx">
  8. <!-- 头像 -->
  9. <open-data type="userAvatarUrl" class='wx-avatar'></open-data>
  10. <view style="margin-left: 30rpx;">
  11. <view class="cp-class">{{companyName}} <dk-tag style="margin-left: 20rpx;" type="primary" padding="0 10rpx" height="30rpx" color="linear-gradient(77.62deg, #CAA977 12.58%, #FFDA7A 85.49%),conic-gradient(from 154.5deg at 29.17% -8.33%, #FFE8BA -0.56deg, rgba(255, 230, 165, 0) 0.26deg, rgba(227, 184, 73, 0.34) 17.37deg, rgba(240, 187, 253, 0.23) 347.83deg, rgba(186, 234, 255, 0.38) 353.78deg, #FFE8BA 359.44deg, rgba(255, 230, 165, 0) 360.26deg);" textColor="#1B365D" radius="10rpx" fontSize="9px" value="{{gradeCode == 'STD'?$t['std']:$t['pro']}}" catchtap="expandCard" data-item="{{card}}" data-index="{{cardIndex}}"></dk-tag></view>
  12. <view class="staff-class">{{staffName + (staffPhone?(' | ' + staffPhone):'')}}</view>
  13. <view class="end-date-class">{{$t['cpEndDate'] + ':' + cpEndDate}}</view>
  14. <view class="staff-count-class">{{'手机端授权:' + wxMaxNum + '个,电脑端授权' + webMaxNum + '个' }}</view>
  15. </view>
  16. </view>
  17. </view>
  18. <view class="func">
  19. <view style="display:flex;flex-wrap: wrap;">
  20. <view class="{{(curentAdItem && curentAdItem.itemId == item.itemId)?'func-card-selected':'func-card'}}" wx:for="{{activityTable}}" wx:for-item="item" wx:key="index" data-item="{{item}}" catchtap="chooseAdItem">
  21. <!-- 标题 -->
  22. <view class="card-title">{{item.activityItemName}}
  23. </view>
  24. <!-- 价格-->
  25. <dk-cell fontSize="16" center="center" contentFontWeight="700" contentColor="#FF7B1A" content="{{item.stdPrice}}"></dk-cell>
  26. <!-- 描述-->
  27. <view class="card-desc">{{item.activityItemDescribe}}
  28. </view>
  29. </view>
  30. </view>
  31. </view>
  32. <!--用户数-->
  33. <view class="card-class">
  34. <!--用户数量-->
  35. <van-cell border="{{ false }}" title-class="cell_title">
  36. <view slot="title" style="display: flex;">
  37. <view>用户数量</view>
  38. <view style="font-size: 10px;">(包含手机和电脑授权)</view>
  39. </view>
  40. <van-stepper value="{{staffCount.maxNum}}" integer="{{true}}" min="0" max="{{1000}}" data-type="all" bind:change="changeStaffCount" />
  41. </van-cell>
  42. <van-cell border="{{ false }}" title="额外购买授权">
  43. </van-cell>
  44. <!--手机用户数-->
  45. <van-cell border="{{ false }}" title-class="cell_title">
  46. <view slot="title" style="display: flex;">
  47. <view>手机端授权</view>
  48. <view wx:if="{{curentAdItem && curentAdItem.wxPrice}}" style="display: flex;font-size: 10px;">
  49. (<dk-cell fontSize="10" left="5rpx" height="50rpx" contentColor="#e00808" content="{{curentAdItem.wxPrice}}"></dk-cell>/个)
  50. </view>
  51. </view>
  52. <van-stepper value="{{staffCount.wxMaxNum}}" integer="{{true}}" min="0" max="{{1000}}" data-type="wx" bind:change="changeStaffCount" />
  53. </van-cell>
  54. <!--电脑用户数-->
  55. <van-cell border="{{ false }}" title-class="cell_title">
  56. <view slot="title" style="display: flex;">
  57. <view>电脑端授权</view>
  58. <view wx:if="{{curentAdItem && curentAdItem.webPrice}}" style="display: flex;font-size: 10px;">
  59. (<dk-cell fontSize="10" left="5rpx" height="50rpx" contentColor="#e00808" content="{{ curentAdItem.webPrice }}"></dk-cell>/个)
  60. </view>
  61. </view>
  62. <van-stepper value="{{staffCount.webMaxNum}}" integer="{{true}}" min="0" max="{{1000}}" data-type="web" bind:change="changeStaffCount" />
  63. </van-cell>
  64. </view>
  65. <!--合计-->
  66. <view class="summary-class">
  67. <view class="summary-item-class">订单详情:</view>
  68. <view class="summary-item-class">{{summaryInfo.amountInfo}}</view>
  69. <view class="summary-item-class">截止日期:{{summaryInfo.endDate}}</view>
  70. <view class="summary-item-class" wx:if="{{staffCount.maxNum || staffCount.webMaxNum || staffCount.wxMaxNum}}">{{summaryInfo.staffInfo}}</view>
  71. <view class="summary-item-class" style="display: flex;justify-content: flex-end;" wx:if="{{staffCount.maxNum || staffCount.webMaxNum || staffCount.wxMaxNum}}">
  72. 折合<dk-cell fontSize="14" left="5rpx" fontWeight="bold" height="45rpx" contentColor="#FF7B1A" content="{{summaryInfo.priceInfo}}"></dk-cell>/天/授权</view>
  73. </view>
  74. <!--注册须知-->
  75. <view class="notice-class">
  76. <view class="notice-item-class" style="font-size: 16px;font-weight: bold;">{{noticeInfo.title}}</view>
  77. <view class="notice-item-class">{{noticeInfo.cpName}}</view>
  78. <view class="notice-item-class">{{noticeInfo.contact}}</view>
  79. <view class="notice-item-class">{{noticeInfo.cpSize}}</view>
  80. <view class="notice-item-class" style="display: flex;">
  81. <van-checkbox shape="square" value="{{readFlag}}" label-class="checkbox-class" bind:change="handleChangeCheckbox">我已阅读并同意</van-checkbox>
  82. <view style="color: #CE9965;">《注册须知》</view>
  83. <view style="color: #CE9965;">《免责条款》</view>
  84. </view>
  85. </view>
  86. <view style="height: 200rpx;"></view>
  87. <!-- 保存 -->
  88. <dk-save-button btnAutoWidthFlag="{{true}}" buttonList="{{buttonSaveList}}" bind:open="handleSave"></dk-save-button>