|
@@ -1,7 +1,7 @@
|
|
|
<style lang="less">
|
|
|
.overflow-wrap {
|
|
|
box-sizing: border-box;
|
|
|
- position:relative;
|
|
|
+ position: relative;
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
background-color: #ebf5fa;
|
|
@@ -94,63 +94,16 @@
|
|
|
<div class="overflow-wrap" :style="{'background-image': 'url('+h5StaticPath+'/page-home/adminBack.png)'}">
|
|
|
<navigationbar :ntitle="'选择登录身份'"></navigationbar>
|
|
|
<div class="bind-item" >
|
|
|
- <div class="tenant-name">博锐尚格技术有限公司</div>
|
|
|
- <div class="tenant-identity">
|
|
|
- <div class="info">正式员工</div>
|
|
|
- <image class="logo-icon" src="{{h5StaticPath+'/page-bind-tenant/logo_icon.svg'}}"/>
|
|
|
- </div>
|
|
|
- <image class="checked-icon" src="{{h5StaticPath+'/page-bind-tenant/checked.svg'}}"/>
|
|
|
- </div>
|
|
|
- <div class="bind-item" >
|
|
|
- <div class="tenant-name">博锐尚格技术有限公司</div>
|
|
|
- <div class="tenant-identity">
|
|
|
- <div class="info">正式员工</div>
|
|
|
- <image class="logo-icon" src="{{h5StaticPath+'/page-bind-tenant/logo_icon.svg'}}"/>
|
|
|
- </div>
|
|
|
- <image class="checked-icon" src="{{h5StaticPath+'/page-bind-tenant/checked.svg'}}"/>
|
|
|
- </div>
|
|
|
- <div class="bind-item" >
|
|
|
- <div class="tenant-name">博锐尚格技术有限公司</div>
|
|
|
- <div class="tenant-identity">
|
|
|
- <div class="info">正式员工</div>
|
|
|
- <image class="logo-icon" src="{{h5StaticPath+'/page-bind-tenant/logo_icon.svg'}}"/>
|
|
|
- </div>
|
|
|
- <image class="checked-icon" src="{{h5StaticPath+'/page-bind-tenant/checked.svg'}}"/>
|
|
|
- </div>
|
|
|
- <div class="bind-item" >
|
|
|
- <div class="tenant-name">博锐尚格技术有限公司</div>
|
|
|
- <div class="tenant-identity">
|
|
|
- <div class="info">正式员工</div>
|
|
|
- <image class="logo-icon" src="{{h5StaticPath+'/page-bind-tenant/logo_icon.svg'}}"/>
|
|
|
- </div>
|
|
|
- <image class="checked-icon" src="{{h5StaticPath+'/page-bind-tenant/checked.svg'}}"/>
|
|
|
- </div>
|
|
|
- <div class="bind-item" >
|
|
|
- <div class="tenant-name">博锐尚格技术有限公司</div>
|
|
|
- <div class="tenant-identity">
|
|
|
- <div class="info">正式员工</div>
|
|
|
- <image class="logo-icon" src="{{h5StaticPath+'/page-bind-tenant/logo_icon.svg'}}"/>
|
|
|
- </div>
|
|
|
- <image class="checked-icon" src="{{h5StaticPath+'/page-bind-tenant/checked.svg'}}"/>
|
|
|
- </div>
|
|
|
- <div class="bind-item" >
|
|
|
- <div class="tenant-name">博锐尚格技术有限公司</div>
|
|
|
- <div class="tenant-identity">
|
|
|
- <div class="info">正式员工</div>
|
|
|
- <image class="logo-icon" src="{{h5StaticPath+'/page-bind-tenant/logo_icon.svg'}}"/>
|
|
|
- </div>
|
|
|
- <image class="checked-icon" src="{{h5StaticPath+'/page-bind-tenant/checked.svg'}}"/>
|
|
|
- </div>
|
|
|
- <div class="bind-item" >
|
|
|
- <div class="tenant-name">博锐尚格技术有限公司</div>
|
|
|
+ <div class="tenant-name">{{ companyName }}</div>
|
|
|
<div class="tenant-identity">
|
|
|
<div class="info">正式员工</div>
|
|
|
<image class="logo-icon" src="{{h5StaticPath+'/page-bind-tenant/logo_icon.svg'}}"/>
|
|
|
</div>
|
|
|
<image class="checked-icon" src="{{h5StaticPath+'/page-bind-tenant/checked.svg'}}"/>
|
|
|
</div>
|
|
|
+
|
|
|
<div class="bind-btn-box">
|
|
|
- <button @click.stop="bindTent">确认</button>
|
|
|
+ <button @click.stop="loginAdmin">确认</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -161,22 +114,41 @@ import eventHub from '@/common/eventHub';
|
|
|
import { mapState } from '@wepy/x';
|
|
|
import store from '@/store';
|
|
|
import config from '@/config';
|
|
|
+import { confirmLogin } from '@/api/home.js';
|
|
|
|
|
|
wepy.page({
|
|
|
store,
|
|
|
config: {},
|
|
|
data: {
|
|
|
h5StaticPath: config.h5StaticPath,
|
|
|
+ qrCodeId: '',
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState({
|
|
|
userInfo: (state) => state.user.userInfo,
|
|
|
projctId: (state) => state.user?.userInfo?.projctId,
|
|
|
companyId: (state) => state.user?.userInfo?.companyId,
|
|
|
+ companyName: (state) => {
|
|
|
+ return state.user?.companyName;
|
|
|
+ },
|
|
|
}),
|
|
|
},
|
|
|
- methods: {},
|
|
|
- onLoad() {},
|
|
|
+ methods: {
|
|
|
+ loginAdmin() {
|
|
|
+ confirmLogin({ qrCodeId: '1792589efd114af5a1493f1b05a22378' })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.result == 'success') {
|
|
|
+ wx.navigateTo({
|
|
|
+ url: `/packagesEnv/pages/administration/asuccess`,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch((err) => {});
|
|
|
+ },
|
|
|
+ },
|
|
|
+ onLoad(options) {
|
|
|
+ this.qrCodeId = options.qrCodeId;
|
|
|
+ },
|
|
|
onShow() {},
|
|
|
});
|
|
|
</script>
|