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

149 lines
3.1 KiB

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