vipcard.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. <template>
  2. <view>
  3. <view v-if="userinfo.isLogin" class="box pd16_15">
  4. <navigator url="/pages/client/vipcard/index">
  5. <view class="home-vip-tag-box">
  6. <image class="bg" v-if="userinfo.group_id == 1" :src="statics.vipbg"></image>
  7. <image class="bg" v-else :src="statics.vipBgHas"></image>
  8. <view v-if="userinfo.group_id == 1" class="main plr15 flex alcenter space">
  9. <view class="tag-no-vip">普通用户</view>
  10. <view class="flex alcenter">
  11. <text class="ft12 cl-default mr15 ftw500">升级VIP,省更多钱</text>
  12. <image class="right-icon" :src="statics.rightIcon"></image>
  13. </view>
  14. </view>
  15. <view v-else class="main plr15 flex alcenter space">
  16. <view class="tag-has-vip flex alcenter center">
  17. <image class="vip-level-icon" :src="statics.vipLevelImg[0]"></image>
  18. <text class="vip-level-means">VIP会员</text>
  19. </view>
  20. <view class="flex alcenter">
  21. <view v-if="userinfo.dqts<0" class="ft12 cl-default mr15 ftw500">
  22. 您好!尊敬的VIP<br>您的会员已经到期{{-userinfo.dqts}}</view>
  23. <view v-if="userinfo.dqts>=0" class="ft12 cl-default mr15 ftw500">
  24. 您好!尊敬的VIP<br>您的会员{{userinfo.dqts}}天后到期</view>
  25. <image class="right-icon" :src="statics.rightIcon"></image>
  26. </view>
  27. </view>
  28. </view>
  29. </navigator>
  30. <view class="mt24 flex space">
  31. <view class="col3 text-center">
  32. <navigator url="/pages/client/vipcard/moneylog">
  33. <view class="cl-notice ft12">{{userinfo.config.hbmc}}</view>
  34. <view class="mt8 ft20 ftw600 cl-default">{{userinfo.money*1}}</view>
  35. </navigator>
  36. </view>
  37. <view class="col3 text-center" style="display: none;">
  38. <!-- <navigator url="/pages/client/coupon/mine/index"> -->
  39. <view class="cl-notice ft12">优惠券</view>
  40. <view class="mt8 ft20 ftw600 cl-default">0</view>
  41. <!-- </navigator> -->
  42. </view>
  43. <view class="col3 text-center">
  44. <navigator url="/pages/client/vipcard/integrallog">
  45. <view class="cl-notice ft12">积分</view>
  46. <view class="mt8 ft20 ftw600 cl-default">{{userinfo.score}}</view>
  47. </navigator>
  48. </view>
  49. </view>
  50. <view class="flex space alcenter mt24" style="padding-bottom: 16rpx;">
  51. <view class="flex alcenter">
  52. <navigator url="/pages/client/vipcard/recharge">
  53. <view class="btn-vip-money" :style="getBtnStyle">充值</view>
  54. </navigator>
  55. <navigator v-if="userinfo.zstx>0" url="/pages/client/member/tx">
  56. <view class="btn-vip-adviser ml15" :style="getBtnPlanStyle">提现</view>
  57. </navigator>
  58. </view>
  59. <!-- #ifdef MP-WEIXIN -->
  60. <view @click="showQrcodeAct" v-if="userinfo.config.iskq==1" class="vip-qrcode-tag" :style="getBtnStyle">
  61. <!-- <text class="iconfont iconbtn_card_ma-copy ft20 cl-w"></text> -->
  62. <image style="width: 50upx; height: 50upx;" src="/static/share-fill.png"></image>
  63. </view>
  64. <!-- #endif -->
  65. <!-- #ifndef MP-WEIXIN -->
  66. <view @click="wdfxm" v-if="userinfo.config.iskq==1" class="vip-qrcode-tag" :style="getBtnStyle">
  67. <text class="iconfont iconbtn_card_ma-copy ft20 cl-w"></text>
  68. </view>
  69. <!-- #endif -->
  70. </view>
  71. </view>
  72. <view v-else class="box pd24_15">
  73. <view class="text-center ft14 cl-info2">您还没登录,登录后即可体验VIP会员</view>
  74. <view class="flex center mt24">
  75. <button class="btn-mid" @click="loginAct" :style="getBtnStyle">立即登录</button>
  76. </view>
  77. </view>
  78. </view>
  79. </template>
  80. <script>
  81. export default {
  82. props: ['userinfo'],
  83. data() {
  84. return {
  85. isLogin: true,
  86. vipLevel: 0, //普通用户
  87. }
  88. },
  89. methods: {
  90. loginAct() {
  91. this.$emit('loginAct');
  92. },
  93. showQrcodeAct() {
  94. this.$emit('qrcode');
  95. },
  96. wdfxm() {
  97. uni.navigateTo({
  98. url: '/pages/client/member/qrshare'
  99. })
  100. }
  101. }
  102. }
  103. </script>
  104. <style lang="scss" scoped>
  105. .home-vip-tag-box {
  106. height: 100rpx;
  107. width: 100%;
  108. position: relative;
  109. overflow: hidden;
  110. border-radius: 8rpx;
  111. }
  112. .home-vip-tag-box .main {
  113. width: 100%;
  114. height: 100rpx;
  115. position: absolute;
  116. z-index: 2;
  117. left: 0;
  118. top: 0;
  119. }
  120. .home-vip-tag-box .bg {
  121. width: 100%;
  122. height: 100rpx;
  123. }
  124. .tag-no-vip {
  125. width: 128rpx;
  126. height: 40rpx;
  127. background: #FFFFFF;
  128. border-radius: 20rpx;
  129. font-size: 24rpx;
  130. font-weight: 600;
  131. color: #8A8D99;
  132. text-align: center;
  133. line-height: 40rpx;
  134. }
  135. .tag-has-vip {
  136. width: 200rpx;
  137. height: 40rpx;
  138. background: linear-gradient(180deg, #333333 0%, #000000 100%);
  139. border-radius: 20rpx;
  140. }
  141. .tag-has-vip .vip-level-icon {
  142. width: 36rpx;
  143. height: 36rpx;
  144. }
  145. .tag-has-vip .vip-level-means {
  146. font-size: 24rpx;
  147. margin-left: 8rpx;
  148. font-weight: 500;
  149. background: linear-gradient(180deg, #F2DCA9 0%, #C79556 100%);
  150. -webkit-background-clip: text;
  151. -webkit-text-fill-color: transparent;
  152. }
  153. .home-vip-tag-box .main .right-icon {
  154. width: 40rpx;
  155. height: 40rpx;
  156. }
  157. .vip-qrcode-tag {
  158. width: 80rpx;
  159. height: 80rpx;
  160. border-radius: 40rpx;
  161. display: flex;
  162. justify-content: center;
  163. align-items: center;
  164. }
  165. .btn-vip-money,
  166. .btn-vip-adviser {
  167. width: 208rpx;
  168. height: 80rpx;
  169. border-radius: 40rpx;
  170. display: flex;
  171. justify-content: center;
  172. align-items: center;
  173. font-size: 28rpx;
  174. font-weight: 600;
  175. color: #FFFFFF;
  176. }
  177. </style>