特易招,招聘小程序
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.

142 lines
2.9 KiB

4 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
4 months ago
2 months ago
4 months ago
2 months ago
4 months ago
2 months ago
4 months ago
2 months ago
4 months ago
4 months ago
2 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;">2</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. methods: {
  61. checkin(){
  62. this.$api('addScoreBySign', res => {
  63. if(res.code == 200){
  64. uni.showToast({
  65. title: '签到成功'
  66. })
  67. this.$store.commit('getUserExtensionInfo')
  68. }
  69. })
  70. },
  71. }
  72. }
  73. </script>
  74. <style scoped lang="scss">
  75. .page {
  76. .box {
  77. width: 94%;
  78. margin-left: 3%;
  79. background-color: #fff;
  80. border-radius: 16rpx;
  81. margin-top: 40rpx;
  82. .card {
  83. width: 94%;
  84. margin-left: 3%;
  85. .top {
  86. display: flex;
  87. align-items: center;
  88. font-size: 32rpx;
  89. padding: 20rpx 0;
  90. view {
  91. margin-left: 20rpx;
  92. }
  93. image {
  94. height: 50rpx;
  95. width: 50rpx;
  96. }
  97. }
  98. .txt {
  99. font-size: 24rpx;
  100. color: #999999;
  101. margin-top: 20rpx;
  102. }
  103. .button {
  104. all: unset;
  105. text-align: center;
  106. background-color: #3796F8;
  107. color: #fff;
  108. padding: 25rpx 0;
  109. margin-top: 40rpx;
  110. border-radius: 16rpx;
  111. }
  112. }
  113. }
  114. .service {
  115. width: 94%;
  116. margin-left: 3%;
  117. font-size: 24rpx;
  118. text-align: center;
  119. margin-top: 20rpx;
  120. padding: 25rpx 0;
  121. background-color: #fff;
  122. border-radius: 12rpx;
  123. }
  124. }
  125. </style>