mine.wxml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. <!-- 前台导入numberFormat.wxs -->
  2. <wxs src='/utils/numberFormat.wxs' module="numberFormat"></wxs>
  3. <!-- 加载图层 -->
  4. <loading wx:if="{{loading}}"></loading>
  5. <!-- 顶部 -->
  6. <view style="position: absolute;">
  7. <image src="{{imageUrl + 'home-back.png'}}" class="head-image"></image>
  8. <!-- 公司 -->
  9. <view class="company" style="top:{{statusHeight + 'rpx'}}">
  10. <view style="display: flex;align-items: center;align-content: center;">
  11. <view style="display: flex;align-items: center;line-height: 22px;" catchtap="changeCp">
  12. <view class="company-change-class">
  13. {{companyName?companyName:''}}
  14. </view>
  15. <image src="/static/image/triangle.png" style="width: 28rpx;height:28rpx;"></image>
  16. </view>
  17. <view class="cp-setting" catch:tap="toSetting">
  18. <van-icon name="setting-o" />
  19. </view>
  20. </view>
  21. <view style="margin-top: 40rpx;display: flex;">
  22. <!-- 头像 -->
  23. <!-- <open-data type="userAvatarUrl" class='wx-avatar'></open-data> -->
  24. <button class='wx-avatar' style="margin: 0;padding: 0;" open-type="chooseAvatar" bind:chooseavatar="onChooseAvatar">
  25. <image class='wx-avatar' style="border:0" src="{{avatarUrl}}"></image>
  26. </button>
  27. <view style="margin-left: 30rpx;width: calc(100% - 200rpx);">
  28. <!-- 昵称 -->
  29. <view class="nick-name" style="display: flex;width: 100%;">
  30. <view style="width: 85%;">
  31. 你好 {{staffName?staffName:''}}
  32. </view>
  33. <view style="width: 15%;margin-top: -10rpx;" catchtap="handleWxService">
  34. <view style="display: flex;justify-content: center;">
  35. <image src="{{imageUrl + '/wx.png'}}" style="width: 45rpx;height:45rpx;" />
  36. </view>
  37. <view style="font-weight: 200;font-size: 9px;display: flex;justify-content: center;">官方客服</view>
  38. </view>
  39. <!-- <view style="text-align: right;margin-right: 10rpx;" bindtap="toNotice">
  40. <view class="notice-view">
  41. <view class="todo-view-app-item-icon-tip" wx:if="{{noticeCount}}">{{noticeCount}}</view>
  42. <view>
  43. <image catchtap="handleWxService" src="{{imageUrl + '/wx.png'}}" style="width: 100%;height:100%;" />
  44. <view>官方客服</view>
  45. </view>
  46. </view>
  47. </view> -->
  48. </view>
  49. <!-- 部门 -->
  50. <view class="store">
  51. <view> {{orgName?orgName:''}}</view>
  52. <!-- <view wx:if="{{version}}" style="width:77vw;text-align-last: right;font-size: 11px;display: flex; justify-content: flex-end;"> 当前版本号: {{version}}
  53. <van-icon name="upgrade" size="20px" bind:click="checkHasManualUpdate" />
  54. </view> -->
  55. </view>
  56. <!--到期日期 续费-->
  57. <view class="endDate" wx:if="{{cpEndDate}}">
  58. <view style="display: flex;flex-direction: row;">
  59. <!--授权数量-->
  60. <view wx:if="{{empowerInfo}}" style="font-weight: 300;">{{empowerInfo}}</view>
  61. </view>
  62. <!--到期日期前15天显示续费-->
  63. <dk-tag wx:if="{{dueButtonFlag}}" padding="0 20rpx" height="30rpx" color="#FF7B1A" textColor="#FFFFFF" radius="5rpx" roundFlag="{{true}}" marginRight="12rpx" value="续费" catchtap="handleRecharge"></dk-tag>
  64. <!--放到下方-->
  65. <!-- <dk-tag wx:else="{{!dueButtonFlag}}" padding="0 20rpx" height="30rpx" color="#3E69F6" textColor="#FFFFFF" radius="5rpx" roundFlag="{{true}}" marginRight="12rpx" value="增加授权" catchtap="toAddRole"></dk-tag> -->
  66. </view>
  67. <view style="display: flex ;font-weight: 400; font-size: 9px;">
  68. <view wx:if="{{!contains2099}}">{{$t['cpEndDate'] + ':' + cpEndDate}}
  69. </view>
  70. <view wx:if="{{dueFlag}}" style="color:#e00808;margin-left: 20rpx;">{{dueFlag?$t['dueText']:''}}</view>
  71. </view>
  72. </view>
  73. </view>
  74. </view>
  75. </view>
  76. <!--待办工作-->
  77. <view class="content" style="padding-top: {{ (statusHeight + ((contains2099 && !dueFlag)?190: 240)) + 'rpx'}};">
  78. <!--待办工作-->
  79. <view class="todo-view" wx:if="{{waitMenuFlag}}">
  80. <view class="todo-view-title">待办工作</view>
  81. <view class="todo-view-app">
  82. <view class="todo-view-app-item" wx:for="{{waitMenu}}" wx:for-item="item" data-item="{{item}}" catchtap="toApp" wx:if="{{item.show}}">
  83. <view class="todo-view-app-item-icon">
  84. <!-- 待办角标提醒 -->
  85. <view class="todo-view-app-item-icon-tip" wx:if="{{item.count}}">{{item.count?item.count:0}}</view>
  86. <image src="{{imageUrl + item.icon}}" style="width:100%;height:100%;" />
  87. </view>
  88. <view class="todo-view-app-item-name">{{item.title}}</view>
  89. </view>
  90. </view>
  91. </view>
  92. <!--门店助手-->
  93. <van-tabs animated active="{{ active }}" swipeable nav-class="mine-tabs-custom-class" bind:change="onChange">
  94. <van-tab name="store">
  95. <!-- 助手 -->
  96. <view class="helper-out-view">
  97. <view class="helper-view">
  98. <!-- 门店助手 -->
  99. <view class="helper-view-header">
  100. <view class="helper-view-header-name">门店助手</view>
  101. <view class="helper-view-header-tags">
  102. <dk-tabs-custom model:value="{{storeHelperValue}}" data-filterindex="1" data-querytype="storeHelper" bind:change="changeTabs" list="{{tagList}}" />
  103. </view>
  104. </view>
  105. <!-- 主体部分 -->
  106. <view class="helper-view-content" style="position: relative;">
  107. <view class="help-view-content-item" catchtap="toOtherPage" wx:for="{{valueAmounts}}" wx:for-item="item" wx:key="index" data-datevalue="{{storeHelperValue}}" style="--filterBlur--:{{filterBlur1}}">
  108. <view class="help-view-content-item-important">
  109. <dk-cell contentRight="{{false}}" amount="{{item.flgAmount}}" left="0" contentFontSize="15" contentColor="#FF7B1A" contentFontWeight="bold" content="{{item.value}}"></dk-cell>
  110. </view>
  111. <view class="help-view-content-item-text">{{item.title}}</view>
  112. </view>
  113. </view>
  114. </view>
  115. </view>
  116. </van-tab>
  117. </van-tabs>
  118. <view style="margin-top: 30rpx;">
  119. <view class="todo-view" style="margin-bottom: 4rpx;background: linear-gradient(90deg, #D5DEFF 0%, #F3FAFF 100%);">
  120. <view class="todo-view-title" style="display: flex;align-items: center;" catch:tap="toBeginnerGuide">
  121. <view style="color:#1B365D;font-weight: bold;width: 30%;">新手指导</view>
  122. <view style="color:#1B365D;width: 40%;">三步快速掌握</view>
  123. <view style="color:#1B365D;width: 30%;display: flex;align-items: center;justify-content: right;">
  124. <van-icon name="arrow" color="#1B365D" />
  125. <van-icon name="arrow" />
  126. <van-icon name="arrow" />
  127. </view>
  128. </view>
  129. </view>
  130. <!--商户设置-->
  131. <!-- <view class="todo-view" style="margin-bottom: 4rpx;">
  132. <view class="todo-view-title" catch:tap="toSetting">{{$t['settingCommany']}}</view>
  133. </view> -->
  134. <!--操作手册-->
  135. <!-- <view class="todo-view" style="margin-bottom: 4rpx;">
  136. <view style="display: flex;justify-content: space-between;">
  137. <view class="todo-view-title" catch:tap="toOperateGuide" data-type="pdf">{{$t['operateGuide']}}</view>
  138. <van-icon wx:if="{{!playFlag}}" name="play" size="20rpx" color="#1B365D" data-type="open" catch:tap="toOperateGuideVideo" />
  139. <van-icon wx:if="{{playFlag}}" name="cross" size="20rpx" color="#1B365D" data-type="close" catch:tap="toOperateGuideVideo" />
  140. </view>
  141. <video wx:if="{{playFlag}}" id="myVideo" src="{{videoSrc}}" class="van-uploader__preview-image" muted show-mute-btn show-fullscreen-btn enable-progress-gesture="{{false}}" autoplay="{{false}}" loop show-progress show-bottom-progress show-play-btn></video>
  142. </view> -->
  143. <!-- <view class="todo-view" style="margin-bottom: 4rpx;">
  144. <view class="todo-view-title" catch:tap="toPay">微信支付</view>
  145. </view> -->
  146. <!-- <view class="todo-view" style="margin-bottom: 4rpx;">
  147. <view class="todo-view-title" catch:tap="toTestExample">toTestExample</view>
  148. </view> -->
  149. <!--购买授权-->
  150. <view class="todo-view" style="margin-bottom: 4rpx;">
  151. <view class="todo-view-title" catch:tap="toAddRole">购买授权</view>
  152. </view>
  153. <!--福利中心-->
  154. <view class="todo-view" style="display: flex;justify-content:space-between;align-items: center;margin-bottom: 4rpx;" catch:tap="toShare">
  155. <view class="todo-view-title">福利中心</view>
  156. <view style="display: flex;justify-content:center;align-items: center;">
  157. <view style="font-size: 11px;">公司云币:</view>
  158. <view style="color: coral;">{{integral}}</view>
  159. </view>
  160. </view>
  161. <!--历史购买记录-->
  162. <view class="todo-view" style="display: flex;justify-content:space-between;align-items: center;margin-bottom: 4rpx;" catch:tap="toInvoicing">
  163. <view class="todo-view-title">购买记录</view>
  164. <view style="display: flex;justify-content:center;align-items: center;">
  165. <view style="font-size: 11px;">开具发票</view>
  166. </view>
  167. </view>
  168. <view class="todo-view" style="display: flex;justify-content:space-between;align-items: center;margin-bottom: 4rpx;" wx:if="{{gradeCode == 'STD'}}" catchtap="handleUpgrade">
  169. <view class="todo-view-title">标准版</view>
  170. <view class="todo-view-title" style="display: flex;justify-content:space-between;align-items: center;">
  171. <image src="{{imageUrl + 'diamond.png'}}" style="width:40rpx;height:40rpx; margin-right: 10rpx;" />
  172. 升级专业版
  173. </view>
  174. </view>
  175. <!--版本号-->
  176. <view wx:if="{{version}}" class="todo-view" style="margin-bottom: 4rpx;display: flex;justify-content: space-between;">
  177. <view class="todo-view-title" catch:tap="toSetting">当前版本号: {{version}}</view>
  178. <van-icon name="upgrade" size="20px" bind:click="checkHasManualUpdate" />
  179. </view>
  180. </view>
  181. </view>
  182. <!-- 退出 -->
  183. <view style="display: flex; justify-content: space-between; margin: 50rpx 40rpx;">
  184. <view style="flex: 1; margin: 1vw;">
  185. <van-button custom-style="height:88rpx;border-radius:15rpx;" style="width: 100%;" color="#3E69F6" size="large" bind:tap="LogInAgain">重新登录</van-button>
  186. </view>
  187. <view style="flex: 1; margin: 1vw;">
  188. <van-button custom-style="height:88rpx;border-radius:15rpx;" style="width: 100%;" color="#3E69F6" size="large" bind:tap="logout">退出</van-button>
  189. </view>
  190. </view>
  191. <van-dialog id="van-dialog" />