no message

cyl/job_im_cus
jscyl13849007907 6 days ago
parent dfe1a7ed58
commit ad04d42f96

@ -194,7 +194,7 @@
{ {
"path": "info", "path": "info",
"style": { "style": {
"navigationBarTitleText": "个人信息" "navigationBarTitleText": ""
} }
}, },
{ {

@ -19,7 +19,7 @@
</div> </div>
<i class="iconfont icon-edit-square" style="font-size: 18px;color: #999;position: absolute;right: 12px;top: 12px;" <i class="iconfont icon-edit-square" style="font-size: 18px;color: #999;position: absolute;right: 12px;top: 12px;"
@click="goPage('/root/person/info?active=1')" @click="goPage('/root/person/info?active=1')" v-if="false"
></i> ></i>
</div> </div>
<view class="dom_2" style="margin-top: 10px;" v-if="applyNum && applyNum > 0"> <view class="dom_2" style="margin-top: 10px;" v-if="applyNum && applyNum > 0">
@ -76,7 +76,7 @@
</div> </div>
</div> </div>
<div class="dom_4 g_flex_row_start" style="padding: 10px 0px;" <div class="dom_4 g_flex_row_start" style="padding: 10px 0px;"
@click="addMemberShow = true" @click="addMemberShow = true" v-if="false"
> >
<div class="g_flex_column_center" style="padding: 0 10px;"> <div class="g_flex_column_center" style="padding: 0 10px;">
<div class="g_flex_c" style="width: 40px;height: 40px;background-color: rgba(2, 122, 255, 0.1);color: #1890ff;border-radius: 50%;"> <div class="g_flex_c" style="width: 40px;height: 40px;background-color: rgba(2, 122, 255, 0.1);color: #1890ff;border-radius: 50%;">
@ -101,6 +101,17 @@
<view class="g_p_16 g_mt_10 g_bg_f" style="padding-bottom: calc(constant(safe-area-inset-bottom) + 16px); padding-bottom: calc(env(safe-area-inset-bottom) + 16px)" @click="addMemberShow = false">取消</view> <view class="g_p_16 g_mt_10 g_bg_f" style="padding-bottom: calc(constant(safe-area-inset-bottom) + 16px); padding-bottom: calc(env(safe-area-inset-bottom) + 16px)" @click="addMemberShow = false">取消</view>
</view> </view>
</u-popup> </u-popup>
<div style="height: 40px;"></div>
<g-panel-fixed>
<slot>
<div class="g_flex_row_between" style="padding: 0 10px;">
<div style="font-size: 17px;color: rgba(2, 122, 255, 1);" @click="addMemberShow = true">添加成员</div>
<div style="font-size: 17px;color: rgba(2, 122, 255, 1);">添加部门</div>
<div style="font-size: 17px;color: rgba(2, 122, 255, 1);" @click="goPage('/root/person/info?active=1')"></div>
</div>
</slot>
</g-panel-fixed>
</div> </div>
</template> </template>

@ -1,9 +1,9 @@
<template> <template>
<view class="p-person-info g_w_all g_h_all g_bg_f_5 g_kuaishou"> <view class="p-person-info g_w_all g_h_all g_bg_f_5 g_kuaishou">
<view class="g_bg_f sticky" :style="{ boxShadow: '0px 4px 4px 0px rgba(218, 218, 218, 0.5)' }"> <view v-if="showTabs" class="g_bg_f sticky" :style="{ boxShadow: '0px 4px 4px 0px rgba(218, 218, 218, 0.5)' }">
<g-tabs bg-color="transparent" from="index" :list="menuList" :is-scroll="false" :current="menuActive" bar-width="64" bar-height="6" @change="handleUpdateMenu" font-size="32" duration="0.05" height="76"></g-tabs> <g-tabs bg-color="transparent" from="index" :list="menuList" :is-scroll="false" :current="menuActive" bar-width="64" bar-height="6" @change="handleUpdateMenu" font-size="32" duration="0.05" height="76"></g-tabs>
</view> </view>
<scroll-view class="" :scroll-y="true" style="height: calc(100vh - 38px)"> <scroll-view class="" :scroll-y="true" :style="{ height: showTabs ? 'calc(100vh - 38px)' : '100vh' }">
<view class="g_h_10"> </view> <view class="g_h_10"> </view>
<!-- 根据menuActive显示不同内容 --> <!-- 根据menuActive显示不同内容 -->
<view v-if="menuActive === 0" class="g_flex_column_start"> <view v-if="menuActive === 0" class="g_flex_column_start">
@ -72,12 +72,22 @@ export default {
], ],
menuActive: 0, menuActive: 0,
reset: true, reset: true,
showTabs: true,
}; };
}, },
onLoad(options) { onLoad(options) {
let that = this; let that = this;
if (options.active) { if (options.active) {
that.menuActive = parseInt(options.active); that.menuActive = parseInt(options.active);
that.showTabs = false;
uni.setNavigationBarTitle({
title: "企业资料",
});
} else {
that.showTabs = true;
uni.setNavigationBarTitle({
title: "个人信息",
});
} }
uni.$on("changePersonDesp", function (data) { uni.$on("changePersonDesp", function (data) {
console.log(data.info); console.log(data.info);

Loading…
Cancel
Save