activity.wxml 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. <wxs src='/utils/wxmlUtil.wxs' module="wxmlUtil"></wxs>
  2. <van-dialog id="van-dialog" />
  3. <loading wx:if="{{loading}}"></loading>
  4. <view wx:if="{{loadFlag}}">
  5. <!--公司信息-->
  6. <view class="detail-top" data-item="{{item}}" bind:tap="toDetail">
  7. <image class="scan-image" fit="fill" src="{{imageUrl+'/detail_sale_order.png'}}"></image>
  8. <view style="display: flex;margin:20rpx 20rpx">
  9. <!-- 头像 -->
  10. <open-data type="userAvatarUrl" class='wx-avatar'></open-data>
  11. <view style="margin-left: 30rpx;">
  12. <view class="cp-class">{{companyName}}
  13. <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>
  14. </view>
  15. <view class="staff-class">{{cpManager + (cpPhone?(' | ' + cpPhone):'')}}</view>
  16. <view class="end-date-class" wx:if="{{gradeCode != 'STD' && !upgradeFlag}}">{{$t['cpEndDate'] + ':' + cpEndDate}}</view>
  17. <view class="staff-count-class" wx:if="{{gradeCode != 'STD'}}">{{'手机端授权:' + wxMaxNum + '个,电脑端授权' + (webMaxNum?webMaxNum:0) + '个' }}</view>
  18. <view class="staff-count-class" wx:if="{{gradeCode == 'STD'}}">{{'手机端授权:' + (wxMaxNum ) + '个(含1个免费授权)'}}</view>
  19. </view>
  20. </view>
  21. </view>
  22. <!--活动(专业版)-->
  23. <view class="func" wx:if="{{gradeCode != 'STD' && !funcMenuFlg}}">
  24. <view style="display:flex;flex-wrap: wrap;">
  25. <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">
  26. <!-- 标题 -->
  27. <view class="card-title">{{item.activityItemName}}
  28. </view>
  29. <!-- 价格-->
  30. <dk-cell fontSize="16" center="center" contentFontWeight="700" contentColor="#FF7B1A" content="{{item.stdPrice}}"></dk-cell>
  31. <!-- 描述-->
  32. <view class="card-desc">{{item.activityItemDescribe}}
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. <!--活动(标准版)-->
  38. <!--合计(标准版)-->
  39. <view class="summary-class-std" wx:if="{{gradeCode == 'STD'}}">
  40. <view class="summary-item-class" style="display: flex;padding-left: 20rpx;font-size: 18px;">额外购买授权
  41. </view>
  42. <view style="display:flex;flex-wrap: wrap;">
  43. <view class="func-card-std" wx:for="{{activityTable}}" wx:for-item="item" wx:key="index" data-item="{{item}}">
  44. <!-- 授权-->
  45. <view class="card-desc-std">
  46. <view style="font-size: 13px;margin-left: -15px;">
  47. <!-- 价格-->
  48. <dk-cell fontSize="19" center="center" contentFontWeight="700" contentColor="#FF7B1A" content="{{item.wxPrice}}"></dk-cell>
  49. </view>
  50. <view style="font-size: 11px;width: 85px;">/年/授权</view>
  51. <view style="text-align: right;">
  52. <van-stepper integer="{{true}}" value="{{ summaryInfo.wxMaxNum}}" min="1" bind:change="changeUserSTD" />
  53. </view>
  54. </view>
  55. <!-- 订单总价: -->
  56. <view style="display: flex;font-size: 12px;margin-left: 20rpx;color: #000000;padding-left: 10rpx;padding-right: 10rpx;"><view style="color:#000;font-size: 11px;">订单总价:{{summaryInfo.amountInfo}}</view>
  57. </view>
  58. </view>
  59. <!--VIP报表-->
  60. <view wx:if="{{showVip}}" class="{{item.chooseVipFlag?'func-card-vip-std-selected':'func-card-vip-std'}}" wx:for="{{vipTable}}" wx:for-item="item" wx:key="index" data-index="{{index}}" data-item="{{item}}" catchtap="chooseVipItem">
  61. <!-- 标题 -->
  62. <view class="card-title-std" style="text-align: center;">{{item.activityItemName?item.activityItemName:item.activityType}}
  63. </view>
  64. <!-- 价格-->
  65. <dk-cell fontSize="19" center="center" contentFontWeight="700" contentColor="#FF7B1A" content="{{item.wxPrice}}"></dk-cell>
  66. <!-- 描述-->
  67. <view class="card-desc">{{item.activityItemDescribe}}
  68. </view>
  69. </view>
  70. </view>
  71. <view class="summary-item-class" style="display: flex;padding-left: 20rpx;color: #000000;">截止日期:<view style="color:#E4002B">{{userEndDate}}</view>
  72. </view>
  73. <view class="summary-item-class" style="display: flex;padding-left: 20rpx;color: #000000;justify-content:space-between;align-items: center;">包含当前账号可配置{{summaryInfo.wxMaxNum+1}}个授权
  74. <dk-cell fontSize="19" center="center" contentFontWeight="700" contentColor="#FF7B1A" content="{{summaryInfo.amount }}"></dk-cell>
  75. </view>
  76. </view>
  77. <!--用户数-->
  78. <view class="card-class" wx:if="{{gradeCode != 'STD' && !funcMenuFlg}}">
  79. <!--用户数量-->
  80. <van-cell border="{{ false }}" title-class="cell_title">
  81. <view slot="title" style="display: flex;">
  82. <view>用户数量</view>
  83. <view style="font-size: 10px;">(含手机和电脑授权)</view>
  84. </view>
  85. <van-stepper value="{{staffCount.maxNum}}" integer="{{true}}" min="0" max="{{1000}}" data-type="all" bind:change="changeStaffCount" />
  86. </van-cell>
  87. <van-cell border="{{ false }}" title="额外购买授权">
  88. </van-cell>
  89. <!--手机用户数-->
  90. <van-cell border="{{ false }}" title-class="cell_title">
  91. <view slot="title" style="display: flex;">
  92. <view>手机端授权</view>
  93. <view wx:if="{{curentAdItem && curentAdItem.wxPrice}}" style="display: flex;font-size: 10px;">
  94. (<dk-cell fontSize="10" left="5rpx" height="50rpx" contentColor="#e00808" content="{{curentAdItem.wxPrice}}"></dk-cell>/个)
  95. </view>
  96. </view>
  97. <van-stepper value="{{staffCount.wxMaxNum}}" integer="{{true}}" min="0" max="{{1000}}" data-type="wx" bind:change="changeStaffCount" />
  98. </van-cell>
  99. <!--电脑用户数-->
  100. <van-cell border="{{ false }}" title-class="cell_title">
  101. <view slot="title" style="display: flex;">
  102. <view>电脑端授权</view>
  103. <view wx:if="{{curentAdItem && curentAdItem.webPrice}}" style="display: flex;font-size: 10px;">
  104. (<dk-cell fontSize="10" left="5rpx" height="50rpx" contentColor="#e00808" content="{{ curentAdItem.webPrice }}"></dk-cell>/个)
  105. </view>
  106. </view>
  107. <van-stepper value="{{staffCount.webMaxNum}}" integer="{{true}}" min="0" max="{{1000}}" data-type="web" bind:change="changeStaffCount" />
  108. </van-cell>
  109. </view>
  110. <!--合计(专业版)-->
  111. <view class="summary-class" wx:if="{{gradeCode != 'STD' && curentAdItem!=null && !funcMenuFlg}}">
  112. <view class="summary-item-class">订单详情:</view>
  113. <view class="summary-item-class">{{summaryInfo.amountInfo}}</view>
  114. <view class="summary-item-class">截止日期:{{summaryInfo.endDate}}</view>
  115. <view class="summary-item-class" wx:if="{{staffCount.maxNum || staffCount.webMaxNum || staffCount.wxMaxNum}}">{{summaryInfo.staffInfo}}</view>
  116. <view class="summary-item-class" style="display: flex;justify-content: flex-end;" wx:if="{{staffCount.maxNum || staffCount.webMaxNum || staffCount.wxMaxNum}}">
  117. 折合<dk-cell fontSize="14" left="5rpx" fontWeight="bold" height="45rpx" contentColor="#FF7B1A" content="{{summaryInfo.priceInfo}}"></dk-cell>/天/授权</view>
  118. </view>
  119. <!--注册须知 240704 去除 用功能模块代替-->
  120. <!-- <view class="notice-class" wx:if="{{gradeCode != 'STD'}}">
  121. <view class="notice-item-class" style="font-size: 16px;font-weight: bold;">{{noticeInfo.title}}</view>
  122. <view class="notice-item-class">{{noticeInfo.cpName}}</view>
  123. <view class="notice-item-class">{{noticeInfo.contact}}</view>
  124. <view class="notice-item-class">{{noticeInfo.cpSize}}</view>
  125. <view class="notice-item-class" style="display: flex;">
  126. <van-checkbox shape="square" value="{{readFlag}}" label-class="checkbox-class" bind:change="handleChangeCheckbox">我已阅读并同意</van-checkbox>
  127. <view style="color: #CE9965;">《注册须知》</view>
  128. <view style="color: #CE9965;">《免责条款》</view>
  129. </view>
  130. </view> -->
  131. <!-- 功能模块 -->
  132. <view class="notice-class" wx:if="{{upgradeFlag}}" catch:tap="funcClick">
  133. <view class="notice-item-class" style="color: #FF7B1ACC; font-size: 16px;font-weight: bold;text-align: center;">{{noticeInfo.proTitle}}</view>
  134. <view style="display: flex;flex-wrap: wrap;padding: 10rpx 0 20rpx 0;">
  135. <view class="app-item" style="width:25%;text-align: center;margin-top: 15rpx;margin-bottom: 15rpx;" wx:for="{{funcMenu}}" wx:for-item="item" wx:key="i">
  136. <image src="{{imageUrl + item.icon }}" style="height: 85rpx;width:85rpx;"></image>
  137. <view class="index-grid-item-text-class" style="font-size: 12px;">{{item.title}}</view>
  138. </view>
  139. </view>
  140. </view>
  141. <view style="height: 200rpx;"></view>
  142. </view>
  143. <!-- 保存 -->
  144. <dk-save-button btnAutoWidthFlag="{{true}}" buttonList="{{buttonSaveList}}" bind:open="handleSave"></dk-save-button>