123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910 |
- <template name="mypage">
- <view class="mypage">
- <u-sticky>
- <view class="topArea">
- <image class="topArea-Bg" :src="$getImageUrl('static/images/applet/my/myTopBg.png')"></image>
- <view class="topArea-top" :style="{height:navBarTop + 'px'}"></view>
- <view class="topArea-nav" :style="{height:navBarHeight + 'px',lineHeight:navBarHeight + 'px'}">
- <view class="nav-title">个人中心</view>
- </view>
- <view class="topArea-main">
- <view class="noLogin" @click="goLPage('/pages/my/myinfo')" v-if="userinfo==false">
- <image class="noLogin-icon" :src="$getImageUrl('static/images/applet/dfhead.jpg')"></image>
- <view class="noLogin-title">未登录</view>
- </view>
- <view class="haveLogin" v-else>
- <image class="login-avatar" :src="userinfo.avatar"></image>
- <view class="login-infor">
- <view class="infor-top">
- <text class="infor-top-name">{{userinfo.nickname}}</text>
- <view class="infor-top-verify" v-if="brokerall != null">
- <view class="verify-icon">
- <image class="verify-icon-image"
- :src="$getImageUrl('static/images/applet/my/verify.png')">
- </image>
- </view>
- <view class="verify-text">经纪人</view>
- </view>
- <text class="infor-top-noVerify" v-if="userinfo.authstatus == 1">(未实名)</text>
- </view>
- <view class="infor-bottom">{{userinfo.mobile}}</view>
- </view>
- </view>
- </view>
- </view>
- </u-sticky>
- <view class="topMenu">
- <view class="topMenu-item" @click="goLPage('/pages/my/myinfo')">
- <image class="item-image" :src="$getImageUrl('static/images/applet/my/infor.png')" mode="widthFix">
- </image>
- <view class="item-title">基本信息</view>
- </view>
- <view class="topMenu-item" @click="goLPage('/pages/my/mycode')">
- <image class="item-image" :src="$getImageUrl('static/images/applet/my/code.png')" mode="widthFix">
- </image>
- <view class="item-title">我的推广码</view>
- </view>
- <view class="topMenu-item" @click="goLPage('/pages/my/myteam')">
- <image class="item-image" :src="$getImageUrl('static/images/applet/my/invite.png')" mode="widthFix">
- </image>
- <view class="item-title">我的邀请</view>
- </view>
- </view>
- <view class="topApply">
- <view class="topApply-left">
- <image class="left-icon" :src="$getImageUrl('static/images/applet/index/topApplyIcon.png')"></image>
- </view>
- <view class="topApply-center" v-if="brokerall == null">经纪人福利多多</view>
- <view class="topApply-center" v-if="brokerall != null">经纪人中心</view>
- <view class="topApply-right" v-if="brokerall == null" @tap="goLPage('/pages/broker/brokerform')">立即开通</view>
- <view class="topApply-right" v-if="brokerall != null" @tap="goLPage('/pages/broker/center')">进入工作台</view>
- </view>
-
- <view class="teacher" @click="goLPage('/pages/resident/resident')" v-if="resident != null">
- <view class="teacher-left">
- <image class="left-icon" :src="$getImageUrl('static/images/applet/index/topApplyIcon.png')"></image>
- </view>
- <view class="teacher-center">驻场老师</view>
- </view>
- <view class="topMenu">
- <view class="topMenu-item" @click="goLPage('/pages/my/mybag')">
- <image class="item-icon" :src="$getImageUrl('static/images/applet/my/wallet.png')"></image>
- <view class="item-titleSmall">我的钱包</view>
- </view>
- <view class="topMenu-item" @click="goLPage('/pages/my/myauth')">
- <image class="item-icon" :src="$getImageUrl('static/images/applet/my/verifyName.png')"></image>
- <view class="item-titleSmall">实名认证</view>
- </view>
- <view class="topMenu-item" @click="goLPage('/pages/comjobs/star')">
- <image class="item-icon" :src="$getImageUrl('static/images/applet/my/collect.png')"></image>
- <view class="item-titleSmall">我的收藏</view>
- </view>
- <view class="topMenu-item" @click="goLPage('/pages/my/task')">
- <image class="item-icon" :src="$getImageUrl('static/images/applet/my/task.png')"></image>
- <view class="item-titleSmall">任务中心</view>
- </view>
- </view>
- <view class="topMenu">
- <view class="topMenu-item" @click="goPage('/pages/comjobs/log')">
- <image class="item-icon" :src="$getImageUrl('static/images/applet/my/apply.png')"></image>
- <view class="item-titleSmall">我的报名</view>
- </view>
- <view class="topMenu-item" @click="goLPage('/pages/resume/log')">
- <image class="item-icon" :src="$getImageUrl('static/images/applet/my/invitation.png')"></image>
- <view class="item-titleSmall">收到的邀请</view>
- </view>
- <view class="topMenu-item" @click="goHome">
- <image class="item-icon" :src="$getImageUrl('static/images/applet/my/recruit.png')"></image>
- <view class="item-titleSmall">我要招聘</view>
- </view>
- <view class="topMenu-item" @click="goLPage('/pages/train/joinlist')">
- <image class="item-icon" :src="$getImageUrl('static/images/applet/my/cultivate.png')"></image>
- <view class="item-titleSmall">培训意愿</view>
- </view>
- </view>
- <view class="topMenu">
- <view class="topMenu-item" @click="goLPage('/pages/notice/notice')">
- <image class="item-icon" :src="$getImageUrl('static/images/applet/my/notice.png')"></image>
- <view class="item-titleSmall">通知公告</view>
- </view>
- <view class="topMenu-item" @click="goLPage('/pages/my/feedback')">
- <image class="item-icon" :src="$getImageUrl('static/images/applet/my/feedback.png')"></image>
- <view class="item-titleSmall">意见反馈</view>
- </view>
- <view class="topMenu-item" @click="goPage('/pages/my/about')">
- <image class="item-icon" :src="$getImageUrl('static/images/applet/my/about.png')"></image>
- <view class="item-titleSmall">关于我们</view>
- </view>
- <view class="topMenu-item" @tap="goHome">
- <image class="item-icon" :src="$getImageUrl('static/images/applet/my/exchange.png')"></image>
- <view class="item-titleSmall">切换身份</view>
- </view>
- </view>
- <view style="margin-top: 60rpx; display: flex;justify-content: center;">
- <image style=" width: 127rpx;" src="../../static/images/my/empty.png" mode="widthFix">
- </image>
- </view>
- <view style="margin-top: 34rpx; text-align: center; font-size: 24rpx; color: #B4B5B5;">没有更多数据了</view>
- <view class="margin-bottom" style="position: relative;" v-if="false">
- <view class="padding-lr padding-top" style="z-index: 999; position: absolute; top: 0rpx; width: 100%;">
- <view class="bg-white radius flex justify-start padding-lr padding-tb-xl shadow shadow-lg"
- :style="{'background-image':'url('+$getImageUrl('static/images/applet/mytop.png')+')'}"
- @click="goLPage('/pages/my/myinfo')" v-if="userinfo==false">
- <view class="cu-avatar lg round"
- :style="{'background-image':'url('+$getImageUrl('static/images/applet/dfhead.jpg')+')'}"></view>
- <view class="padding-lr padding-top text-lg">未登录</view>
- </view>
- <view
- class="bg-white radius flex justify-between align-center padding-lr padding-tb-xl shadow shadow-lg"
- :style="{'background-image':'url('+$getImageUrl('static/images/applet/mytop.png')+')'}" v-else>
- <view class="flex justify-start">
- <view class="cu-avatar lg round margin-left"
- :style="'background-image:url('+userinfo.avatar+');'"></view>
- <view class="padding-lr padding-top-xs text-lg">
- <view class="padding-bottom-xs">
- {{userinfo.nickname}}
- <text class="text-sm text-red" v-if="userinfo.authstatus == 1">(未实名)</text>
- <text class="text-sm text-red" v-if="brokerall != null">(经纪人)</text>
- </view>
- <view class="text-sm text-gray">{{userinfo.mobile}}</view>
- </view>
- </view>
- <!-- <view @click="goBrokerMyentry('/pages/my/myentry')" style="font-weight:bold;color: red;">【经纪人中心】</view> -->
- </view>
- </view>
- <view style="height: 140rpx; width: 100%;" v-if="false"></view>
- <view class="cu-list grid col-3 no-border" style="padding-top: 120rpx;" v-if="appplatform=='ios'">
- <view class="cu-item text-center" @click="goLPage('/pages/my/myinfo')">
- <image class="myicon" :src="$getImageUrl('static/images/applet/myicon01.png')"></image>
- <text>基本信息</text>
- </view>
- <view class="cu-item text-center" @click="goLPage('/pages/my/myteam')">
- <image class="myicon" :src="$getImageUrl('static/images/applet/myicon03.png')"></image>
- <text>我的邀请</text>
- </view>
- <view class="cu-item text-center" @click="goLPage('/pages/mall/mall')">
- <image class="myicon" :src="$getImageUrl('static/images/applet/myicon04.png')"></image>
- <text>积分商城</text>
- </view>
- </view>
- <view class="cu-list grid col-3 no-border" style="padding-top: 120rpx;" v-else>
- <view class="cu-item text-center" @click="goLPage('/pages/my/myinfo')">
- <image class="myicon" :src="$getImageUrl('static/images/applet/myicon01.png')"></image>
- <text>基本信息</text>
- </view>
- <view class="cu-item text-center" @click="goLPage('/pages/my/mycode')">
- <image class="myicon" :src="$getImageUrl('static/images/applet/myicon02.png')"></image>
- <text>我的推广码</text>
- </view>
- <view class="cu-item text-center" @click="goLPage('/pages/my/myteam')">
- <image class="myicon" :src="$getImageUrl('static/images/applet/myicon03.png')"></image>
- <text>我的邀请</text>
- </view>
- <!-- <view class="cu-item text-center" @click="goLPage('/pages/mall/mall')">
- <image class="myicon" :src="$getImageUrl('static/images/applet/myicon04.png')"></image>
- <text>积分商城</text>
- </view> -->
- </view>
- </view>
- <view class="cu-list menu sm-border" v-if="false">
- <view class="cu-item arrow" @click="goLPage('/pages/broker/center')" v-if="brokerall != null">
- <view class="content">
- <text class="cuIcon-friend text-grey"></text>
- <text>经纪人中心</text>
- </view>
- </view>
- <view class="cu-item arrow" @click="goLPage('/pages/resident/resident')" v-if="resident != null">
- <view class="content">
- <text class="cuIcon-friend text-grey"></text>
- <text>驻场老师</text>
- </view>
- </view>
- <view class="cu-item arrow" @click="goPage('/pages/comjobs/log')">
- <view class="content">
- <text class="cuIcon-edit text-grey"></text>
- <text>我的报名</text>
- </view>
- <view class="action" v-if="tip_num.comjobs_num > 0">
- <view class="cu-tag round bg-red sm">{{tip_num.comjobs_num}}</view>
- </view>
- </view>
- <view class="cu-item arrow" @click="goLPage('/pages/comjobs/star')">
- <view class="content">
- <text class="cuIcon-like text-grey"></text>
- <text>我的收藏</text>
- </view>
- </view>
- <view class="cu-item arrow" @click="goLPage('/pages/resume/log')">
- <view class="content">
- <text class="cuIcon-profile text-grey"></text>
- <text>收到的邀请</text>
- </view>
- <view class="action" v-if="tip_num.invite_num > 0">
- <view class="cu-tag round bg-red sm">{{tip_num.invite_num}}</view>
- </view>
- </view>
- <view class="cu-item arrow" @click="goLPage('/pages/my/mybag')">
- <view class="content">
- <text class="cuIcon-moneybag text-grey"></text>
- <text>我的钱包</text>
- </view>
- </view>
- <view class="cu-item arrow" @click="goLPage('/pages/notice/notice')">
- <view class="content">
- <text class="cuIcon-punch text-grey"></text>
- <text>通知公告</text>
- </view>
- </view>
- <view class="cu-item arrow" @click="goLPage('/pages/train/joinlist')">
- <view class="content">
- <text class="cuIcon-calendar text-grey"></text>
- <text>培训意愿</text>
- </view>
- </view>
- <!-- <view class="cu-item arrow" @click="goLPage('/pages/my/myintegral')">
- <view class="content">
- <text class="cuIcon-sponsor text-grey"></text>
- <text>我的积分</text>
- </view>
- </view> -->
- <!-- <view class="cu-item arrow" @click="goPage('/pages/article/article')">
- <view class="content">
- <text class="cuIcon-news text-grey"></text>
- <text>政策资讯</text>
- </view>
- </view> -->
- <view class="cu-item arrow" @click="goLPage('/pages/my/myauth')">
- <view class="content">
- <text class="cuIcon-news text-grey"></text>
- <text>实名认证</text>
- </view>
- <view class="action">
- <text class="text-grey" v-if="userinfo.authstatus==1">待认证</text>
- <text class="text-grey" v-if="userinfo.authstatus==2">审核中</text>
- <text class="text-grey" v-if="userinfo.authstatus==3">已认证</text>
- </view>
- </view>
- <view class="cu-item arrow" @click="goLPage('/pages/my/task')">
- <view class="content">
- <text class="cuIcon-album text-grey"></text>
- <text>任务中心</text>
- </view>
- </view>
- <view class="cu-item arrow" @click="goHome">
- <view class="content">
- <text class="cuIcon-friend text-grey"></text>
- <text>我要招聘</text>
- </view>
- </view>
- </view>
- <view class="cu-list menu sm-border" v-if="false">
- <view class="cu-item arrow" @click="goLPage('/pages/my/feedback')">
- <view class="content">
- <text class="cuIcon-warn text-grey"></text>
- <text>意见反馈</text>
- </view>
- </view>
- <view class="cu-item arrow" @click="goPage('/pages/my/about')">
- <view class="content">
- <text class="cuIcon-info text-grey"></text>
- <text>关于我们</text>
- </view>
- </view>
- </view>
- <view class="cu-modal" :class="modalName=='workerModal'?'show':''">
- <view class="cu-dialog">
- <view class="cu-bar bg-white justify-end">
- <view class="content">身份切换</view>
- <view class="action" @tap="hideModal">
- <text class="cuIcon-close text-red"></text>
- </view>
- </view>
- <view class="padding-tb-sm">
- <view class="cu-list menu">
- <block v-if="workerall!=null">
- <view class="cu-item arrow" v-for="(item,index) in workerall" :key="index" @tap="goWorker"
- :data-index="index">
- <view class="content text-left">
- <text class="cuIcon-settings text-grey"></text>
- <text>{{item.title}}</text>
- </view>
- <view class="action">
- <text class="text-grey">
- <text class="margin-left text-red" v-if="item.status==1">待审核</text>
- <text class="margin-left text-red" v-if="item.status==4">升级审核</text>
- </text>
- </view>
- </view>
- </block>
- <view class="cu-item arrow" @click="goLogin(1)">
- <view class="content text-left">
- <text class="cuIcon-settings text-grey"></text>
- <text>个人雇主注册</text>
- </view>
- </view>
- <view class="cu-item arrow" @click="goLogin(2)">
- <view class="content text-left">
- <text class="cuIcon-settings text-grey"></text>
- <text>企业雇主注册</text>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- <view class="padding-sm"></view>
- <view class="padding-xl"></view>
- <view class="cu-bar tabbar bg-white foot">
- <view class="action text-gray" @tap="goNavPage('/pages/index/index')">
- <view class="cuIcon-cu-image">
- <image src="../../static/tabbar/index.png"></image>
- </view>
- 首页
- </view>
- <view class="action text-gray" @tap="goNavPage('/pages/comjobs/comjobs')">
- <view class="cuIcon-cu-image">
- <image src="../../static/tabbar/jobs.png"></image>
- </view>
- 招聘
- </view>
- <!-- #ifndef MP-WEIXIN -->
- <view class="action text-gray videoimg" @tap="goNavPage('/pages/video/videolist')">
- <view class="cuIcon-cu-image">
- <image src="../../static/tabbar/video.png"></image>
- </view>
- 微工作
- </view>
- <!-- #endif -->
- <view class="action text-gray" @tap="goNavPage('/pages/broker/brokerlist')">
- <view class="cuIcon-cu-image">
- <image src="../../static/tabbar/broker.png"></image>
- </view>
- 经纪人
- </view>
- <view class="action text-red" @tap="goNavPage('/pages/my/my')">
- <view class="cuIcon-cu-image">
- <image src="../../static/tabbar/mySelected.png"></image>
- </view>
- 我的
- </view>
- </view>
- <!-- <button class="cu-btn bg-blue lg shadow echo-gohome" @tap="goHome"> 切换身份 </button> -->
- <wxContact></wxContact>
- </view>
- </template>
- <script>
- var _this;
- export default {
- data() {
- return {
- appplatform: "",
- param: {},
- userinfo: false,
- workerall: null,
- agentall: null,
- brokerall: null,
- modalName: null,
- resident: null,
- tip_num: {
- comjobs_num: 0,
- invite_num: 0,
- },
- navBarTop: 0,
- navBarHeight: 0,
- }
- },
- onLoad: function() {
- _this = this;
- //#ifdef APP-PLUS
- _this.appplatform = uni.getSystemInfoSync().platform;
- //#endif
- let menuButtonInfo = uni.getMenuButtonBoundingClientRect();
- _this.navBarTop = menuButtonInfo.top;
- _this.navBarHeight = menuButtonInfo.height;
- },
- onShareAppMessage: function(res) {
- return {
- title: "个人中心",
- path: "/pages/my/my"
- }
- },
- onShow: function() {
- _this = this;
- _this.userinfo = uni.getStorageSync('userinfo') || false;
- _this.workerall = null;
- _this.agentall = null;
- _this.brokerall = null;
- if (_this.userinfo !== false) {
- _this.$req.ajax({
- path: "my/getuser",
- data: {
- userid: _this.userinfo.id
- }
- }).then((data) => {
- _this.param = data.param;
- _this.userinfo = data.user;
- uni.setStorageSync('userinfo', data.user);
- _this.workerall = data.workerall;
- _this.agentall = data.agentall;
- _this.brokerall = data.brokerall;
- _this.resident = data.resident;
- uni.setStorageSync('residentinfo', data.resident);
- uni.setStorageSync('brokerinfo', data.brokerall ? data.brokerall[0] : null);
- }).catch((err) => {
- uni.showModal({
- title: '信息提示',
- content: err,
- showCancel: false
- });
- _this.userinfo = false;
- uni.removeStorageSync('userinfo');
- });
- //获取提示数字
- _this.$req.ajax({
- path: "my/gettipnum",
- data: {
- userid: _this.userinfo.id
- }
- }).then((data) => {
- _this.tip_num = data;
- })
- }
- },
- methods: {
- goUrl: function(type, tilurl) {
- if (type == 1) {
- uni.navigateTo({
- url: tilurl,
- fail: function() {
- uni.switchTab({
- url: tilurl
- });
- }
- });
- } else {
- uni.navigateTo({
- url: '/pages/tool/webview?pagesrc=' + encodeURIComponent(tilurl)
- });
- }
- },
- goManage: function(e) {
- _this.userinfo = _this.checkLogin("/pages/my/my");
- if (_this.userinfo === false) {
- return false;
- }
- var mtype = e.currentTarget.dataset.mtype;
- var index = e.currentTarget.dataset.index;
- var pageurl = "/pages/index/index";
- if (mtype == 'worker') {
- // if (_this.workerall[index].status==1){
- // uni.showModal({
- // title: '信息提示',
- // content: "信息审核中,请耐心等待。",
- // showCancel: false
- // });
- // return;
- // }
- pageurl = "/pages/worker/worker";
- uni.setStorageSync('workerinfo', _this.workerall[index]);
- } else if (mtype == 'agent') {
- pageurl = "/pages/agent/agent";
- uni.setStorageSync('agentinfo', _this.agentall[index]);
- } else if (mtype == 'broker') {
- pageurl = "/pages/broker/broker";
- uni.setStorageSync('brokerinfo', _this.brokerall[index]);
- }
- uni.navigateTo({
- url: pageurl,
- fail: function() {
- uni.switchTab({
- url: pageurl
- });
- }
- });
- },
- hideModal: function(e) {
- _this.modalName = null;
- },
- goLogin: function(wtype) {
- uni.setStorageSync('identityinfo', true);
- uni.navigateTo({
- url: "/pages/login/worker?wtype=" + wtype
- });
- },
- goLPage: function(pageurl) {
- _this.userinfo = _this.checkLogin("/pages/my/my");
- if (_this.userinfo === false) {
- return false;
- }
- uni.navigateTo({
- url: pageurl,
- fail: function() {
- uni.switchTab({
- url: pageurl
- });
- }
- });
- },
- goPage: function(pageurl) {
- uni.navigateTo({
- url: pageurl,
- fail: function() {
- uni.switchTab({
- url: pageurl
- });
- }
- });
- },
- goBrokerMyentry: function(pageurl) {
- _this.userinfo = uni.getStorageSync('userinfo') || false;
- if (!_this.userinfo.brokerid) {
- uni.showModal({
- title: '暂无权限',
- content: '您现在还不是经纪人,请先申请',
- success: function(res) {
- if (res.confirm) {
- uni.navigateTo({
- url: "/pages/broker/brokerform"
- });
- } else if (res.cancel) {
- console.log('用户点击取消');
- }
- }
- });
- } else {
- uni.navigateTo({
- url: pageurl,
- fail: function() {
- uni.switchTab({
- url: pageurl
- });
- }
- });
- }
- },
- goNavPage: function(pageurl) {
- uni.redirectTo({
- url: pageurl
- });
- },
- // 咨询电话
- makeTelephone: function(e) {
- var telephone = e.currentTarget.dataset.telephone;
- uni.makePhoneCall({
- phoneNumber: telephone
- });
- },
- loginOut: function() {
- uni.clearStorageSync();
- uni.showModal({
- title: '温馨提示',
- content: '退出成功。',
- showCancel: false,
- success: function(res) {
- if (res.confirm) {
- uni.reLaunch({
- url: "/pages/index/home"
- });
- }
- }
- });
- },
- goWorker: function(e) {
- var index = e.currentTarget.dataset.index;
- if (_this.workerall[index].status == 1 || _this.workerall[index].status == 4) {
- uni.showModal({
- title: '信息提示',
- content: "信息审核中,请耐心等待。",
- showCancel: false
- });
- return;
- }
- if (_this.workerall[index].status == 2 || _this.workerall[index].status == 3) {
- uni.showModal({
- title: '信息提示',
- content: "账号存在风险,请联系平台。",
- showCancel: false
- });
- return;
- }
- uni.setStorageSync('identityinfo', true);
- uni.setStorageSync('workerinfo', _this.workerall[index]);
- uni.reLaunch({
- url: "/pages/worker/worker"
- });
- },
- goHome: function() {
- _this.modalName = "workerModal";
- // uni.setStorageSync('identityinfo', false);
- // uni.setStorageSync('workerinfo', null);
- // uni.reLaunch({
- // url: "/pages/index/home"
- // });
- },
- }
- }
- </script>
- <style lang="scss">
- /* .mytop{ padding: 30rpx 30rpx 50rpx 30rpx; background-repeat: no-repeat; background-size: 100% 100%; background-position: center; position: relative; } */
- .topArea {
- width: 750rpx;
- height: 300rpx;
- position: relative;
- .topArea-Bg {
- position: absolute;
- width: 100%;
- height: 300rpx;
- z-index: -100;
- }
- .topArea-nav {
- padding: 0 20rpx;
- display: flex;
- justify-content: space-between;
- .nav-title {
- width: 100%;
- font-size: 32rpx;
- font-family: PingFang SC, PingFang SC;
- font-weight: 500;
- color: #FFFFFF;
- text-align: center;
- }
- }
- .topArea-main {
- width: 100%;
- margin-top: 30rpx;
- padding: 0 24rpx;
- .noLogin {
- display: flex;
- align-items: center;
- .noLogin-icon {
- width: 120rpx;
- height: 120rpx;
- border-radius: 16rpx;
- }
- .noLogin-title {
- margin-left: 20rpx;
- font-size: 32rpx;
- color: #FFFFFF;
- }
- }
- .haveLogin {
- display: flex;
- align-items: center;
- .login-avatar {
- width: 120rpx;
- height: 120rpx;
- border-radius: 16rpx;
- }
- .login-infor {
- margin-left: 20rpx;
- .infor-top {
- margin-bottom: 20rpx;
- display: flex;
- align-items: center;
- .infor-top-name {
- font-size: 26rpx;
- color: #FFFFFF;
- }
- .infor-top-verify {
- margin-left: 30rpx;
- font-size: 24rpx;
- color: #FFFFFF;
- display: flex;
- align-items: center;
- .verify-icon {
- margin-right: 10rpx;
- width: 25rpx;
- height: 25rpx;
- border-radius: 50%;
- background-color: #F5DB03;
- .verify-icon-image {
- width: 25rpx;
- height: 25rpx;
- }
- }
- }
- .infor-top-noVerify {
- margin-left: 30rpx;
- font-size: 24rpx;
- color: #FFFFFF;
- }
- }
- .infor-bottom {
- font-size: 24rpx;
- color: #FFFFFF;
- }
- }
- }
- }
- }
- .topMenu {
- margin: 20rpx 20rpx;
- padding: 30rpx 0;
- background: #FFFFFF;
- box-shadow: 0rpx 4rpx 8rpx 2rpx rgba(0, 0, 0, 0.1);
- border-radius: 14rpx;
- opacity: 1;
- display: flex;
- align-items: flex-end;
- justify-content: space-between;
- .topMenu-item {
- flex: 1;
- width: 100%;
- display: flex;
- flex-direction: column;
- align-items: center;
- .item-image {
- width: 60rpx;
- height: 60rpx;
- margin-bottom: 10rpx;
- }
- .item-icon {
- width: 60rpx;
- height: 60rpx;
- margin-bottom: 10rpx;
- }
- .item-title {
- color: #747474;
- font-size: 30rpx;
- }
- .item-titleSmall {
- margin-top: 5rpx;
- color: #747474;
- font-size: 24rpx;
- }
- }
- }
- .topApply {
- margin: 30rpx 20rpx;
- padding: 10rpx 30rpx;
- // height: 141rpx;
- background: linear-gradient(270deg, #484353 0%, #6F6F6F 100%);
- border-radius: 15rpx;
- display: flex;
- align-items: center;
- // justify-content: space-between;
- .topApply-left {
- width: 62rpx;
- height: 62rpx;
- border-radius: 50%;
- box-shadow: 0rpx 4rpx 8rpx 2rpx rgba(0, 0, 0, 0.3);
- opacity: 1;
- .left-icon {
- width: 62rpx;
- height: 62rpx;
- border-radius: 50%;
- }
- }
- .topApply-center {
- flex: 1;
- margin-left: 20rpx;
- height: 50rpx;
- padding: 0 20rpx;
- border-left: 2rpx solid rgba(255, 232, 171, 0.16);
- font-size: 26rpx;
- line-height: 50rpx;
- color: #E0E0E0;
- }
- .topApply-right {
- width: 164rpx;
- height: 54rpx;
- line-height: 54rpx;
- text-align: center;
- background: linear-gradient(180deg, #FAE7B5 0%, #F3CA7E 100%);
- border-radius: 27rpx;
- opacity: 1;
- font-size: 22rpx;
- color: #3F3852;
- }
- }
-
- .teacher {
- margin: 30rpx 20rpx;
- padding: 10rpx 30rpx;
- // height: 141rpx;
- background: linear-gradient(270deg, #484353 0%, #6F6F6F 100%);
- border-radius: 15rpx;
- display: flex;
- align-items: center;
- // justify-content: space-between;
-
- .teacher-left {
- width: 62rpx;
- height: 62rpx;
- border-radius: 50%;
- box-shadow: 0rpx 4rpx 8rpx 2rpx rgba(0, 0, 0, 0.3);
- opacity: 1;
-
- .left-icon {
- width: 62rpx;
- height: 62rpx;
- border-radius: 50%;
- }
- }
-
- .teacher-center {
- margin-left: 20rpx;
- height: 50rpx;
- padding: 0 20rpx;
- border-left: 2rpx solid rgba(255, 232, 171, 0.16);
- font-size: 26rpx;
- line-height: 50rpx;
- color: #E0E0E0;
- }
- }
- </style>
|