mine.wxml 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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;" catchtap="changeCp">
  11. <view class="company-change-class">
  12. {{companyName?companyName:''}}
  13. </view>
  14. <image src="/static/image/triangle.png" style="width: 28rpx;height:28rpx;"></image>
  15. </view>
  16. <view style="margin-top: 40rpx;display: flex;">
  17. <!-- 头像 -->
  18. <open-data type="userAvatarUrl" class='wx-avatar'></open-data>
  19. <view style="margin-left: 30rpx;width: calc(100% - 200rpx);">
  20. <!-- 昵称 -->
  21. <view class="nick-name" style="display: flex;width: 100%;">
  22. <view style="width: 99%;">
  23. 你好 {{staffName?staffName:''}}
  24. </view>
  25. <view style="text-align: right;margin-right: 10rpx;" bindtap="toNotice">
  26. <view class="notice-view">
  27. <view class="todo-view-app-item-icon-tip" wx:if="{{noticeCount}}">{{noticeCount}}</view>
  28. <image catchtap="handleWxService" src="/static/image/wx.png" style="width: 100%;height:100%;" />
  29. </view>
  30. </view>
  31. </view>
  32. <!-- 部门 -->
  33. <view class="store">
  34. <view> {{orgName?orgName:''}}</view>
  35. <!-- <view wx:if="{{version}}" style="width:77vw;text-align-last: right;font-size: 11px;display: flex; justify-content: flex-end;"> 当前版本号: {{version}}
  36. <van-icon name="upgrade" size="20px" bind:click="checkHasManualUpdate" />
  37. </view> -->
  38. </view>
  39. <!--到期日期 续费-->
  40. <view class="endDate" wx:if="{{cpEndDate}}">
  41. <view style="display: flex;">
  42. <view wx:if="{{!contains2099}}">{{$t['cpEndDate'] + ':' + cpEndDate}}
  43. <view wx:if="{{dueFlag}}" style="color:#e00808;margin-left: 20rpx;">{{dueFlag?$t['dueText']:''}}</view>
  44. </view>
  45. </view>
  46. <!--到期日期前15天显示续费-->
  47. <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>
  48. <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>
  49. </view>
  50. </view>
  51. </view>
  52. </view>
  53. </view>
  54. <!--待办工作-->
  55. <view class="content" style="padding-top: {{ (statusHeight + 210) + 'rpx'}};">
  56. <!--待办工作-->
  57. <view class="todo-view" wx:if="{{waitMenuFlag}}">
  58. <view class="todo-view-title">待办工作</view>
  59. <view class="todo-view-app">
  60. <view class="todo-view-app-item" wx:for="{{waitMenu}}" wx:for-item="item" data-item="{{item}}" catchtap="toApp" wx:if="{{item.show}}">
  61. <view class="todo-view-app-item-icon">
  62. <!-- 待办角标提醒 -->
  63. <view class="todo-view-app-item-icon-tip" wx:if="{{item.count}}">{{item.count?item.count:0}}</view>
  64. <image src="{{imageUrl + item.icon}}" style="width:100%;height:100%;" />
  65. </view>
  66. <view class="todo-view-app-item-name">{{item.title}}</view>
  67. </view>
  68. </view>
  69. </view>
  70. <!--门店助手-->
  71. <van-tabs animated active="{{ active }}" swipeable nav-class="mine-tabs-custom-class" bind:change="onChange">
  72. <van-tab name="store">
  73. <!-- 助手 -->
  74. <view class="helper-out-view">
  75. <view class="helper-view">
  76. <!-- 门店助手 -->
  77. <view class="helper-view-header">
  78. <view class="helper-view-header-name">门店助手</view>
  79. <view class="helper-view-header-tags">
  80. <dk-tabs-custom model:value="{{storeHelperValue}}" data-filterindex="1" data-querytype="storeHelper" bind:change="changeTabs" list="{{tagList}}" />
  81. </view>
  82. </view>
  83. <!-- 主体部分 -->
  84. <view class="helper-view-content" style="position: relative;">
  85. <view class="help-view-content-item" catchtap="toOtherPage" wx:for="{{valueAmounts}}" wx:for-item="item" wx:key="index" data-datevalue="{{storeHelperValue}}" style="--filterBlur--:{{filterBlur1}}">
  86. <view class="help-view-content-item-important">
  87. <dk-cell contentRight="{{false}}" amount="{{item.flgAmount}}" left="0" contentFontSize="15" contentColor="#FF7B1A" contentFontWeight="bold" content="{{item.value}}"></dk-cell>
  88. </view>
  89. <view class="help-view-content-item-text">{{item.title}}</view>
  90. </view>
  91. </view>
  92. </view>
  93. </view>
  94. </van-tab>
  95. </van-tabs>
  96. <view style="margin-top: 30rpx;">
  97. <view class="todo-view" style="margin-bottom: 4rpx;background: linear-gradient(90deg, #D5DEFF 0%, #F3FAFF 100%);">
  98. <view class="todo-view-title" style="display: flex;align-items: center;" catch:tap="toBeginnerGuide">
  99. <view style="color:#1B365D;font-weight: bold;width: 30%;">新手指导</view>
  100. <view style="color:#1B365D;width: 40%;">三步快速掌握</view>
  101. <view style="color:#1B365D;width: 30%;display: flex;align-items: center;justify-content: right;">
  102. <van-icon name="arrow" color="#1B365D" />
  103. <van-icon name="arrow" />
  104. <van-icon name="arrow" />
  105. </view>
  106. </view>
  107. </view>
  108. <!--商户设置-->
  109. <view class="todo-view" style="margin-bottom: 4rpx;">
  110. <view class="todo-view-title" catch:tap="toSetting">{{$t['settingCommany']}}</view>
  111. </view>
  112. <!--操作手册-->
  113. <view class="todo-view" style="margin-bottom: 4rpx;">
  114. <view style="display: flex;justify-content: space-between;">
  115. <view class="todo-view-title" catch:tap="toOperateGuide" data-type="pdf">{{$t['operateGuide']}}</view>
  116. <van-icon wx:if="{{!playFlag}}" name="play" size="20rpx" color="#1B365D" data-type="open" catch:tap="toOperateGuideVideo" />
  117. <van-icon wx:if="{{playFlag}}" name="cross" size="20rpx" color="#1B365D" data-type="close" catch:tap="toOperateGuideVideo" />
  118. </view>
  119. <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>
  120. </view>
  121. <!-- <view class="todo-view" style="margin-bottom: 4rpx;">
  122. <view class="todo-view-title" catch:tap="toPay">微信支付</view>
  123. </view> -->
  124. <!-- <view class="todo-view" style="margin-bottom: 4rpx;">
  125. <view class="todo-view-title" catch:tap="toTestExample">toTestExample</view>
  126. </view> -->
  127. <view class="todo-view" style="display: flex;justify-content:space-between;align-items: center;margin-bottom: 4rpx;" wx:if="{{gradeCode == 'STD'}}" catchtap="handleUpgrade">
  128. <view class="todo-view-title">标准版</view>
  129. <view class="todo-view-title" style="display: flex;justify-content:space-between;align-items: center;">
  130. <image src="{{imageUrl + 'diamond.png'}}" style="width:40rpx;height:40rpx; margin-right: 10rpx;" />
  131. 升级专业版
  132. </view>
  133. </view>
  134. <!--版本号-->
  135. <view wx:if="{{version}}" class="todo-view" style="margin-bottom: 4rpx;display: flex;justify-content: space-between;">
  136. <view class="todo-view-title" catch:tap="toSetting">当前版本号: {{version}}</view>
  137. <van-icon name="upgrade" size="20px" bind:click="checkHasManualUpdate" />
  138. </view>
  139. </view>
  140. </view>
  141. <!-- 退出 -->
  142. <view style="margin: 100rpx 30rpx;">
  143. <van-button custom-style="height:88rpx;border-radius:15rpx ;" color="#3E69F6" size="large" bind:tap="logout">退出 </van-button>
  144. </view>
  145. <van-dialog id="van-dialog" />