manager.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <template>
  2. <view class="manager">
  3. <view class="flex-row justify-center">
  4. <view class="grid">
  5. <view class="flex-col gridItem" @click="navigateToPage('/pages/specialistsList/specialistsList')">
  6. <view class="title flex-row justify-center">
  7. <text>累计专员数量</text>
  8. </view>
  9. <view class="number flex-row justify-center">
  10. <text>2008</text>
  11. </view>
  12. </view>
  13. <view class="flex-col gridItem leftBorder" @click="navigateToPage('/pages/todaySpecialistsList/todaySpecialistsList')">
  14. <view class="title flex-row justify-center">
  15. <text>今日新增专员</text>
  16. </view>
  17. <view class="number flex-row justify-center">
  18. <text>2008</text>
  19. </view>
  20. </view>
  21. <view class="flex-col gridItem leftBorder">
  22. <view class="title flex-row justify-center">
  23. <text>本月任务</text>
  24. </view>
  25. <view class="number flex-row justify-center">
  26. <text>20/800</text>
  27. </view>
  28. </view>
  29. <view class="flex-col gridItem">
  30. <view class="title flex-row justify-center">
  31. <text>累计异业伙伴</text>
  32. </view>
  33. <view class="number flex-row justify-center">
  34. <text>2008</text>
  35. </view>
  36. </view>
  37. <view class="flex-col gridItem leftBorder">
  38. <view class="title flex-row justify-center">
  39. <text>累计卖券金额</text>
  40. </view>
  41. <view class="number flex-row justify-center">
  42. <text>2008</text>
  43. </view>
  44. </view>
  45. </view>
  46. </view>
  47. <view class="flex-row justify-center">
  48. <view class="qrView" @click="qrCodePopup">
  49. <uv-qrcode ref="qrcode" size="600rpx" :value="qrcodeUrl" :options="options"></uv-qrcode>
  50. </view>
  51. </view>
  52. <uni-popup ref="createQrCodePopup" type="center">
  53. <view class="createQrCodePopup flex-col justify-center">
  54. <view class="flex-row justify-center">
  55. <uv-qrcode ref="qrcode" size="600rpx" :value="qrcodeUrl" :options="options"></uv-qrcode>
  56. </view>
  57. <view class="xoIcon" @click="closePopup">
  58. <u-icon name="close-circle" color="#666" size="35"></u-icon>
  59. </view>
  60. </view>
  61. </uni-popup>
  62. </view>
  63. </template>
  64. <script>
  65. import commonUtils from "../../../common/js/utils/commonUtils";
  66. export default {
  67. props: {
  68. height: {
  69. type: String,
  70. default () {
  71. return ''
  72. }
  73. },
  74. },
  75. data() {
  76. return {
  77. qrcodeUrl:this.$xcxUrl+'?expandUserId={expandUserId}&ruleId={ruleId}&timestamp={timestamp}&type=2&expand1=2',
  78. options: {
  79. // 指定二维码前景,一般可在中间放logo
  80. foregroundImagePadding:2,
  81. foregroundImageBorderRadius:5,
  82. foregroundImageSrc: '/static/logo.png'
  83. },
  84. }
  85. },
  86. created() {
  87. console.log('接收到的高度', this.height)
  88. this.userInfo = uni.getStorageSync('spreadUserInfo')
  89. },
  90. methods: {
  91. formatDate() {
  92. this.qrCreateTime = commonUtils.formatDate(new Date())
  93. },
  94. qrCodePopup(){
  95. this.$refs.createQrCodePopup.open()
  96. },
  97. closePopup(){
  98. this.$refs.createQrCodePopup.close()
  99. },
  100. navigateToPage(url){
  101. uni.navigateTo({
  102. url:url
  103. })
  104. },
  105. }
  106. }
  107. </script>
  108. <style scoped lang="scss">
  109. @import './index.rpx.css';
  110. </style>