|
|
@@ -0,0 +1,124 @@
|
|
|
+<template>
|
|
|
+ <My_listbox ref="List" :pullDown="false" boxBackground="linear-gradient( 225deg, #F7CA9D 0%, #FF5757 100%)">
|
|
|
+ <view class="head" :style="{ height: tovw(CustomBar) }">
|
|
|
+ <view class="custom" :style="{ height: tovw(Custom.height), top: tovw(Custom.top - 3) }">
|
|
|
+ 邀请人员
|
|
|
+ <view class="back" :style="{ lineHeight: tovw(Custom.height) }" @click="onBack">
|
|
|
+ <text class=" iconfont icon-a-wodetiaozhuan" />
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+
|
|
|
+ <view class="painter-box" v-if="userMsg.userid" style="">
|
|
|
+ <view>
|
|
|
+ <l-painter ref="painter" css="position: relative;width: 280px; height: 426px">
|
|
|
+ <l-painter-image
|
|
|
+ src="https://yossys06593.obs.cn-east-3.myhuaweicloud.com:443/202405151715752754485B32052a86.webp"
|
|
|
+ css="width: 280px; height: 426px;position: absolute;" />
|
|
|
+
|
|
|
+ <l-painter-image
|
|
|
+ :src="userMsg.headpic || 'https://yossys06593.obs.cn-east-3.myhuaweicloud.com:443/202404231713854678447B26b4363.svg'"
|
|
|
+ css="width: 56px; height:56px;border-radius: 50%;position: absolute;top:20px;left:20px;z-index:2;"
|
|
|
+ object-fit="fill" />
|
|
|
+ <l-painter-text :text="name"
|
|
|
+ css="width:180px;line-height:24px;height:24px;position: absolute;left:86px;top:21px;z-index:2;font-family: Source Han Sans SC, Source Han Sans SC;font-weight: 500;font-size: 16px;color: #333333; overflow: hidden;white-space: nowrap;text-overflow: ellipsis;" />
|
|
|
+
|
|
|
+ <l-painter-text :text="userMsg.areaname"
|
|
|
+ css="width:180px;line-height:20px;height:20px;position: absolute;left:86px;top:55px;z-index:2;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;font-family: Source Han Sans SC, Source Han Sans SC;font-size: 14px;color: #666666;" />
|
|
|
+
|
|
|
+ <l-painter-text text="扫码登记人员信息"
|
|
|
+ css="width:96px;line-height:17px;position: absolute;left:50%;bottom:269px;z-index:2;margin-left:-48px;font-size: 12px;color: #666666;font-family: PingFang SC, PingFang SC;" />
|
|
|
+ <l-painter-qrcode :text="qrCode + 'teamInvite?id=' + userMsg.sys_enterpriseid"
|
|
|
+ css="width: 200px; height: 200px;position: absolute;left:50%;bottom:55px;z-index:2;margin-left:-100px;" />
|
|
|
+ </l-painter>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </My_listbox>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import lPainter from "../../uni_modules/lime-painter/components/l-painter/l-painter.vue"
|
|
|
+import lPainterView from "../../uni_modules/lime-painter/components/l-painter-view/l-painter-view.vue"
|
|
|
+import lPainterText from "../../uni_modules/lime-painter/components/l-painter-text/l-painter-text.vue"
|
|
|
+import lPainterImage from "../../uni_modules/lime-painter/components/l-painter-image/l-painter-image.vue"
|
|
|
+import lPainterQrcode from "../../uni_modules/lime-painter/components/l-painter-qrcode/l-painter-qrcode.vue"
|
|
|
+export default {
|
|
|
+ components: { lPainter, lPainterView, lPainterText, lPainterImage, lPainterQrcode },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ userMsg: {
|
|
|
+ userid: 0
|
|
|
+ },
|
|
|
+ qrCode: this.qrCodePrefix,
|
|
|
+ name: ""
|
|
|
+ }
|
|
|
+ },
|
|
|
+ onLoad() {
|
|
|
+ this.getUserMsg()
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ getUserMsg() {
|
|
|
+ this.$Http.basic({
|
|
|
+ "id": 20240510104102,
|
|
|
+ "content": {},
|
|
|
+ }).then(res => {
|
|
|
+ console.log("获取个人信息", res)
|
|
|
+ if (this.cutoff(res.msg)) return;
|
|
|
+ this.userMsg = res.data;
|
|
|
+ this.name = res.data.enterprise_hr.name ? res.data.enterprise_hr.name + ',邀请您加入' : '邀请您加入'
|
|
|
+ })
|
|
|
+ },
|
|
|
+ onBack() {
|
|
|
+ uni.navigateBack();
|
|
|
+ },
|
|
|
+ getSheraDate() {
|
|
|
+ return {
|
|
|
+ title: this.name, // 标题
|
|
|
+ path: "/team/team/getInvite?id=" + this.userMsg.sys_enterpriseid, // 分享路径
|
|
|
+ imageUrl: ""// 分享图
|
|
|
+ };
|
|
|
+ }
|
|
|
+ },
|
|
|
+ onShareAppMessage(res) {
|
|
|
+ return this.getSheraDate()
|
|
|
+ },
|
|
|
+ onShareTimeline() {
|
|
|
+ return this.getSheraDate()
|
|
|
+ }
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+.head {
|
|
|
+ position: relative;
|
|
|
+ width: 100vw;
|
|
|
+
|
|
|
+ .custom {
|
|
|
+ position: absolute;
|
|
|
+ width: 100vw;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ font-family: PingFang SC, PingFang SC;
|
|
|
+ font-weight: 500;
|
|
|
+ font-size: 17px;
|
|
|
+ color: #FFFFFF;
|
|
|
+
|
|
|
+ .back {
|
|
|
+ position: absolute;
|
|
|
+ padding: 0 10px;
|
|
|
+ left: 0;
|
|
|
+ color: #fff;
|
|
|
+ font-size: 12px;
|
|
|
+ transform: rotateY(180deg);
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.painter-box {
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ margin-top: 25px;
|
|
|
+}
|
|
|
+</style>
|