123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278 |
- <template>
- <view class="container">
- <view class="user-info-box">
- <view class="detail flex">
- <view class="portrait-box"><image class="portrait" src=" ../../static/error/missing-face.png"></image></view>
- <view class="info-box">
- <view class="username">游客</view>
- <view class="font-size-sm">13800000000</view>
- </view>
- </view>
- <view class="config iconfont"><text class="setting iconsetting" @click="navTo('/pages/set/userinfo')"></text></view>
- </view>
- <view class="vip-box"><image src="../../static/img/vip.png" mode=""></image></view>
- <view class="tt">
- <view class="tt-box" @click="navTo('/pages/user/promotion')">
- <image src="../../static/img/tuiguang.png" class="tt-icon1" mode=""></image>
- <view class="tt-txt">我的推广</view>
- <image src="../../static/img/jiantou.png" class="next-icon" mode=""></image>
- </view>
- <view class="tt-box" @click="navTo('/pages/user/team')">
- <image src="../../static/img/team.png" class="tt-icon1" mode=""></image>
- <view class="tt-txt">我的团队</view>
- <image src="../../static/img/jiantou.png" class="next-icon" mode=""></image>
- </view>
- <view class="tt-box" @click="navTo('/pages/user/shareQrCode')">
- <image src="../../static/img/share.png" class="tt-icon1" mode=""></image>
- <view class="tt-txt">分享好友</view>
- <image src="../../static/img/jiantou.png" class="next-icon" mode=""></image>
- </view>
- <view class="tt-box" @click="open()">
- <image src="../../static/img/kefu.png" class="tt-icon1" mode=""></image>
- <view class="tt-txt">联系客服</view>
- <image src="../../static/img/jiantou.png" class="next-icon" mode=""></image>
- </view>
- </view>
- <uni-popup ref="popup" type="center">
- <view class="popup-box">
- <view class="img"><image src="../../static/img/img009.png" mode=""></image></view>
- <view class="mian">
- <view class="delivery">
- <view class="title">已经为您定制专属客服</view>
- <image src="../../static/img/img010.png" mode=""></image>
- </view>
- <view class="nocancel">客服电话: {{ text }}</view>
- <view class="comfirm-box">
- <view class="cancel" @click="cancel">取消</view>
- <view class="comfirm" @click="comfirm(text)">拨打电话</view>
- </view>
- </view>
- </view>
- </uni-popup>
- </view>
- </template>
- <script>
- import uniPopup from '@/components/uni-popup/uni-popup.vue';
- import uniCopy from '@/utils/uni-copy.js';
- export default {
- data() {
- return {
- text:'123456789'
- };
- },
- methods: {
- navTo(url) {
- // if (!this.hasLogin) {
- // // 保存地址
- // saveUrl();
- // // 登录拦截
- // interceptor();
- // } else {
- uni.navigateTo({
- url
- });
- // }
- },
- open() {
- console.log('点击出现弹窗');
- this.$refs.popup.open();
- },
- // 客服弹窗 - 取消
- cancel() {
- this.$refs.popup.close();
- }
- }
- };
- </script>
- <style lang="scss">
- page,
- .container {
- background: #000;
- height: 100%;
- }
- .user-info-box {
- padding: 40rpx 46rpx 0;
- height: 180rpx;
- color: white;
- display: flex;
- align-items: center;
- justify-content: space-between;
- position: relative;
- z-index: 1;
- .detail {
- height: 130rpx;
- .portrait-box {
- height: 100%;
- .portrait {
- width: 130rpx;
- height: 100%;
- border: 5rpx solid #fff;
- border-radius: 50%;
- }
- }
- .info-box {
- margin-left: 20rpx;
- line-height: 1.5;
- .username {
- font-size: $font-lg + 6rpx;
- height: 100%;
- }
- }
- }
- .config {
- font-size: 48rpx;
- }
- }
- .vip-box {
- width: 690rpx;
- height: 200rpx;
- margin: 60rpx auto 0;
- image {
- width: 100%;
- height: 100%;
- }
- }
- .tt {
- margin: 0 auto;
- width: 750rpx;
- padding: 40rpx 70rpx;
- background-color: #000;
- .tt-box {
- padding: 20rpx;
- height: 100rpx;
- display: flex;
- align-items: center;
- border-bottom: 1px solid #838383;
- .tt-icon1 {
- width: 42rpx;
- height: 37rpx;
- }
- .tt-icon2 {
- width: 49rpx;
- height: 38rpx;
- }
- .tt-icon3 {
- width: 46rpx;
- height: 40rpx;
- }
- .tt-icon4 {
- width: 40rpx;
- height: 42rpx;
- }
- .tt-icon5 {
- width: 44rpx;
- height: 40rpx;
- }
- .tt-txt {
- font-size: 28rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #ffffff;
- margin-left: 36rpx;
- color: #ffffff;
- flex: 1;
- }
- .next-icon {
- width: 16rpx;
- height: 25rpx;
- }
- }
- .border-b {
- border-bottom: 1px solid #f0f0f0;
- }
- }
- .popup-box {
- width: 522rpx;
- height: 605rpx;
- background-color: #ffffff;
- border-radius: 20rpx;
- position: relative;
- .img {
- position: relative;
- top: -56rpx;
- left: 0;
- width: 522rpx;
- height: 132rpx;
- display: flex;
- justify-content: center;
- image {
- border-radius: 20rpx 20rpx 0 0;
- width: 450rpx;
- height: 132rpx;
- }
- }
- .mian {
- margin-top: -44rpx;
- display: flex;
- flex-direction: column;
- align-items: center;
- // padding: 32rpx 32rpx;
- background-color: #ffffff;
- border-radius: 0 0 20rpx 20rpx;
- text-align: center;
- .delivery {
- font-size: 40rpx;
- color: #333333;
- display: flex;
- align-items: center;
- flex-direction: column;
- .title {
- }
- image {
- margin-top: 48rpx;
- width: 172rpx;
- height: 160rpx;
- }
- }
- .nocancel {
- font-size: 32rpx;
- color: #333333;
- margin-top: 14rpx;
- }
- .comfirm-box {
- margin-top: 52rpx;
- display: flex;
- // margin-bottom: 32rpx;
- // justify-content: space-around;
- .cancel {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 197rpx;
- height: 74rpx;
- border: 1px solid #dcc786;
- border-radius: 38rpx;
- font-size: 32rpx;
- color: #605128;
- }
- .comfirm {
- margin-left: 32rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- width: 197rpx;
- height: 74rpx;
- background: linear-gradient(-90deg, #d1ba77 0%, #f7e8ad 100%);
- border-radius: 38px;
- font-size: 32rpx;
- color: #605128;
- }
- }
- }
- }
- </style>
|