特易招,招聘小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

145 lines
3.0 KiB

11 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
11 months ago
8 months ago
11 months ago
8 months ago
11 months ago
8 months ago
11 months ago
8 months ago
11 months ago
11 months ago
8 months ago
  1. <template>
  2. <!-- 获取积分 -->
  3. <view class="page">
  4. <navbar title="获取积分" bgColor="#3796F8" leftClick color="#fff" @leftClick="$utils.navigateBack" />
  5. <view class="box">
  6. <view class="card">
  7. <view class="top">
  8. <image src="../static/mine/characteristic.png" mode="aspectFill" />
  9. <view>签到得积分</view>
  10. </view>
  11. <view class="txt">签到得积分可立即领取</view>
  12. <view class="uni-uncolor-btn"
  13. v-if="UserExtensionInfo.signFlag">已领取</view>
  14. <view class="button"
  15. @click="checkin"
  16. v-else>领取</view>
  17. <view style="height: 40rpx;" />
  18. </view>
  19. <view class="card">
  20. <view class="top">
  21. <image src="../static/mine/crowd.png" mode="aspectFill" />
  22. <view>邀请工友获取积分</view>
  23. </view>
  24. <view class="txt">成功邀请一名新好友注册最高可获得
  25. <text style="color: red;font-size: 32rpx;">{{ configList.config_share_score }}</text>
  26. 个正式积分
  27. <view style="color: red;">多邀多得可叠加</view>
  28. </view>
  29. <button
  30. open-type="share"
  31. class="share button">
  32. 邀请
  33. </button>
  34. <!-- <view class="button"
  35. @click="$utils.navigateTo('/pages_order/mine/InvitationCredit')"
  36. >邀请</view> -->
  37. <view style="height: 40rpx;" />
  38. </view>
  39. </view>
  40. <view class="service">如有疑问请联系客服<text
  41. style="color: #4280FD;"
  42. @click="$refs.customerServicePopup.open()"
  43. >{{ configList.config_service_phone }}</text></view>
  44. <customerServicePopup ref="customerServicePopup"/>
  45. </view>
  46. </template>
  47. <script>
  48. import { mapState } from 'vuex'
  49. export default {
  50. data() {
  51. return {
  52. }
  53. },
  54. computed : {
  55. ...mapState(['UserExtensionInfo']),
  56. },
  57. onLoad() {
  58. this.$store.commit('getUserExtensionInfo')
  59. },
  60. onShow(){
  61. this.$store.commit('initConfig')
  62. },
  63. methods: {
  64. checkin(){
  65. this.$api('addScoreBySign', res => {
  66. if(res.code == 200){
  67. uni.showToast({
  68. title: '签到成功'
  69. })
  70. this.$store.commit('getUserExtensionInfo')
  71. }
  72. })
  73. },
  74. }
  75. }
  76. </script>
  77. <style scoped lang="scss">
  78. .page {
  79. .box {
  80. width: 94%;
  81. margin-left: 3%;
  82. background-color: #fff;
  83. border-radius: 16rpx;
  84. margin-top: 40rpx;
  85. .card {
  86. width: 94%;
  87. margin-left: 3%;
  88. .top {
  89. display: flex;
  90. align-items: center;
  91. font-size: 32rpx;
  92. padding: 20rpx 0;
  93. view {
  94. margin-left: 20rpx;
  95. }
  96. image {
  97. height: 50rpx;
  98. width: 50rpx;
  99. }
  100. }
  101. .txt {
  102. font-size: 24rpx;
  103. color: #999999;
  104. margin-top: 20rpx;
  105. }
  106. .button {
  107. all: unset;
  108. text-align: center;
  109. background-color: #3796F8;
  110. color: #fff;
  111. padding: 25rpx 0;
  112. margin-top: 40rpx;
  113. border-radius: 16rpx;
  114. }
  115. }
  116. }
  117. .service {
  118. width: 94%;
  119. margin-left: 3%;
  120. font-size: 24rpx;
  121. text-align: center;
  122. margin-top: 20rpx;
  123. padding: 25rpx 0;
  124. background-color: #fff;
  125. border-radius: 12rpx;
  126. }
  127. }
  128. </style>