|  |  |  | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | <u-icon name="arrow-right" size="24" color="#979797" /> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | <view class="item" @click="jump('/pages/staffLogin/login')"> | 
|---|
|  |  |  | <view class="item" @click="staffLogin"> | 
|---|
|  |  |  | <image class="avatar" src="@/static/ic_staff@2x.png" /> | 
|---|
|  |  |  | <view class="content"> | 
|---|
|  |  |  | <view class="name">我是员工</view> | 
|---|
|  |  |  | 
|---|
|  |  |  | export default { | 
|---|
|  |  |  | methods: { | 
|---|
|  |  |  | jump(url) { | 
|---|
|  |  |  | console.log(url); | 
|---|
|  |  |  | console.log(url) | 
|---|
|  |  |  | uni.navigateTo({ | 
|---|
|  |  |  | url | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | staffLogin() { | 
|---|
|  |  |  | const userInfo = uni.getStorageSync('userInfo') || {} | 
|---|
|  |  |  | if (userInfo && userInfo.memberId) { | 
|---|
|  |  |  | uni.navigateTo({ | 
|---|
|  |  |  | url: '/pages/staff/index' | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }else{ | 
|---|
|  |  |  | uni.navigateTo({ | 
|---|
|  |  |  | url: '/pages/staffLogin/login' | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | line-height: 66rpx; | 
|---|
|  |  |  | margin-bottom: 16rpx; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | .place{ | 
|---|
|  |  |  | .place { | 
|---|
|  |  |  | margin-bottom: 98rpx; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | .item { | 
|---|