要搞直接登录
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
<template>
|
||||
<view class="cu-item">
|
||||
<view class="cu-avatar round lg" style="background-image:url(https://ossweb-img.qq.com/images/lol/web201310/skin/big10001.jpg);"></view>
|
||||
<view class="cu-avatar round lg" :style="'background-image: url('+mainURL+'default-avator.png)'">
|
||||
<!-- {{staff.cUserName.substring(-1)}} -->
|
||||
</view>
|
||||
<!-- <view class="cu-avatar round lg" >
|
||||
{{staff.cUserName.slice(0,1)}}
|
||||
</view> -->
|
||||
<view class="content">
|
||||
<view class="text-black">{{staff.cUserName}}</view>
|
||||
<view class="text-gray flex" @tap="callStaff(staff.phone)">
|
||||
@@ -14,7 +19,7 @@
|
||||
<button class="cu-btn padding-left-xs padding-right-xs bg-white" @tap="toEdit(staff.cUserId)">编辑</button>
|
||||
</view>
|
||||
<view class="action" v-show="staff.cType==1">
|
||||
<view class="cu-tag text-white round my-tag" style="background-color: #FE0505;">超级管理员</view>
|
||||
<view class="cu-tag text-white round my-tag" style="background-color:#FE0505;">超级管理员</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -24,14 +29,12 @@
|
||||
props: {
|
||||
staff: {
|
||||
type: Object,
|
||||
default () {
|
||||
|
||||
}
|
||||
default () {}
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
||||
mainURL: this.global.mainURL
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
@@ -41,7 +44,10 @@
|
||||
})
|
||||
},
|
||||
toEdit(Uid) {
|
||||
uni.setStorageSync('tempUid',{id:Uid,type:'edit'})
|
||||
uni.setStorageSync('tempUid', {
|
||||
id: Uid,
|
||||
type: 'edit'
|
||||
})
|
||||
uni.navigateTo({
|
||||
url: '/pages/staff/editStaff/editStaff'
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user