user.vue 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. <template>
  2. <view class="container">
  3. <view class="user-info-box">
  4. <view class="detail flex">
  5. <view class="portrait-box"><image class="portrait" src=" ../../static/error/missing-face.png"></image></view>
  6. <view class="info-box">
  7. <view class="username">游客</view>
  8. <view class="font-size-sm">13800000000</view>
  9. </view>
  10. </view>
  11. <view class="config iconfont"><text class="setting iconsetting" @click="navTo('/pages/set/userinfo')"></text></view>
  12. </view>
  13. <view class="vip-box"><image src="../../static/img/vip.png" mode=""></image></view>
  14. <view class="tt">
  15. <view class="tt-box" @click="navTo('/pages/user/promotion')">
  16. <image src="../../static/img/tuiguang.png" class="tt-icon1" mode=""></image>
  17. <view class="tt-txt">我的推广</view>
  18. <image src="../../static/img/jiantou.png" class="next-icon" mode=""></image>
  19. </view>
  20. <view class="tt-box" @click="navTo('/pages/user/team')">
  21. <image src="../../static/img/team.png" class="tt-icon1" mode=""></image>
  22. <view class="tt-txt">我的团队</view>
  23. <image src="../../static/img/jiantou.png" class="next-icon" mode=""></image>
  24. </view>
  25. <view class="tt-box" @click="navTo('/pages/user/shareQrCode')">
  26. <image src="../../static/img/share.png" class="tt-icon1" mode=""></image>
  27. <view class="tt-txt">分享好友</view>
  28. <image src="../../static/img/jiantou.png" class="next-icon" mode=""></image>
  29. </view>
  30. <view class="tt-box" @click="open()">
  31. <image src="../../static/img/kefu.png" class="tt-icon1" mode=""></image>
  32. <view class="tt-txt">联系客服</view>
  33. <image src="../../static/img/jiantou.png" class="next-icon" mode=""></image>
  34. </view>
  35. </view>
  36. <uni-popup ref="popup" type="center">
  37. <view class="popup-box">
  38. <view class="img"><image src="../../static/img/img009.png" mode=""></image></view>
  39. <view class="mian">
  40. <view class="delivery">
  41. <view class="title">已经为您定制专属客服</view>
  42. <image src="../../static/img/img010.png" mode=""></image>
  43. </view>
  44. <view class="nocancel">客服电话: {{ text }}</view>
  45. <view class="comfirm-box">
  46. <view class="cancel" @click="cancel">取消</view>
  47. <view class="comfirm" @click="comfirm(text)">拨打电话</view>
  48. </view>
  49. </view>
  50. </view>
  51. </uni-popup>
  52. </view>
  53. </template>
  54. <script>
  55. import uniPopup from '@/components/uni-popup/uni-popup.vue';
  56. import uniCopy from '@/utils/uni-copy.js';
  57. export default {
  58. data() {
  59. return {
  60. text:'123456789'
  61. };
  62. },
  63. methods: {
  64. navTo(url) {
  65. // if (!this.hasLogin) {
  66. // // 保存地址
  67. // saveUrl();
  68. // // 登录拦截
  69. // interceptor();
  70. // } else {
  71. uni.navigateTo({
  72. url
  73. });
  74. // }
  75. },
  76. open() {
  77. console.log('点击出现弹窗');
  78. this.$refs.popup.open();
  79. },
  80. // 客服弹窗 - 取消
  81. cancel() {
  82. this.$refs.popup.close();
  83. }
  84. }
  85. };
  86. </script>
  87. <style lang="scss">
  88. page,
  89. .container {
  90. background: #000;
  91. height: 100%;
  92. }
  93. .user-info-box {
  94. padding: 40rpx 46rpx 0;
  95. height: 180rpx;
  96. color: white;
  97. display: flex;
  98. align-items: center;
  99. justify-content: space-between;
  100. position: relative;
  101. z-index: 1;
  102. .detail {
  103. height: 130rpx;
  104. .portrait-box {
  105. height: 100%;
  106. .portrait {
  107. width: 130rpx;
  108. height: 100%;
  109. border: 5rpx solid #fff;
  110. border-radius: 50%;
  111. }
  112. }
  113. .info-box {
  114. margin-left: 20rpx;
  115. line-height: 1.5;
  116. .username {
  117. font-size: $font-lg + 6rpx;
  118. height: 100%;
  119. }
  120. }
  121. }
  122. .config {
  123. font-size: 48rpx;
  124. }
  125. }
  126. .vip-box {
  127. width: 690rpx;
  128. height: 200rpx;
  129. margin: 60rpx auto 0;
  130. image {
  131. width: 100%;
  132. height: 100%;
  133. }
  134. }
  135. .tt {
  136. margin: 0 auto;
  137. width: 750rpx;
  138. padding: 40rpx 70rpx;
  139. background-color: #000;
  140. .tt-box {
  141. padding: 20rpx;
  142. height: 100rpx;
  143. display: flex;
  144. align-items: center;
  145. border-bottom: 1px solid #838383;
  146. .tt-icon1 {
  147. width: 42rpx;
  148. height: 37rpx;
  149. }
  150. .tt-icon2 {
  151. width: 49rpx;
  152. height: 38rpx;
  153. }
  154. .tt-icon3 {
  155. width: 46rpx;
  156. height: 40rpx;
  157. }
  158. .tt-icon4 {
  159. width: 40rpx;
  160. height: 42rpx;
  161. }
  162. .tt-icon5 {
  163. width: 44rpx;
  164. height: 40rpx;
  165. }
  166. .tt-txt {
  167. font-size: 28rpx;
  168. font-family: PingFang SC;
  169. font-weight: 500;
  170. color: #ffffff;
  171. margin-left: 36rpx;
  172. color: #ffffff;
  173. flex: 1;
  174. }
  175. .next-icon {
  176. width: 16rpx;
  177. height: 25rpx;
  178. }
  179. }
  180. .border-b {
  181. border-bottom: 1px solid #f0f0f0;
  182. }
  183. }
  184. .popup-box {
  185. width: 522rpx;
  186. height: 605rpx;
  187. background-color: #ffffff;
  188. border-radius: 20rpx;
  189. position: relative;
  190. .img {
  191. position: relative;
  192. top: -56rpx;
  193. left: 0;
  194. width: 522rpx;
  195. height: 132rpx;
  196. display: flex;
  197. justify-content: center;
  198. image {
  199. border-radius: 20rpx 20rpx 0 0;
  200. width: 450rpx;
  201. height: 132rpx;
  202. }
  203. }
  204. .mian {
  205. margin-top: -44rpx;
  206. display: flex;
  207. flex-direction: column;
  208. align-items: center;
  209. // padding: 32rpx 32rpx;
  210. background-color: #ffffff;
  211. border-radius: 0 0 20rpx 20rpx;
  212. text-align: center;
  213. .delivery {
  214. font-size: 40rpx;
  215. color: #333333;
  216. display: flex;
  217. align-items: center;
  218. flex-direction: column;
  219. .title {
  220. }
  221. image {
  222. margin-top: 48rpx;
  223. width: 172rpx;
  224. height: 160rpx;
  225. }
  226. }
  227. .nocancel {
  228. font-size: 32rpx;
  229. color: #333333;
  230. margin-top: 14rpx;
  231. }
  232. .comfirm-box {
  233. margin-top: 52rpx;
  234. display: flex;
  235. // margin-bottom: 32rpx;
  236. // justify-content: space-around;
  237. .cancel {
  238. display: flex;
  239. align-items: center;
  240. justify-content: center;
  241. width: 197rpx;
  242. height: 74rpx;
  243. border: 1px solid #dcc786;
  244. border-radius: 38rpx;
  245. font-size: 32rpx;
  246. color: #605128;
  247. }
  248. .comfirm {
  249. margin-left: 32rpx;
  250. display: flex;
  251. align-items: center;
  252. justify-content: center;
  253. width: 197rpx;
  254. height: 74rpx;
  255. background: linear-gradient(-90deg, #d1ba77 0%, #f7e8ad 100%);
  256. border-radius: 38px;
  257. font-size: 32rpx;
  258. color: #605128;
  259. }
  260. }
  261. }
  262. }
  263. </style>