wangxia 3 months ago
commit 83224bde59

@ -120,10 +120,22 @@
@clickItem="goPage('/root/person/set')" @clickItem="goPage('/root/person/set')"
/> />
</view> </view>
<view class="g_h_100"></view>
<!-- #ifdef APP-PLUS -->
<view class="g_mt_32 g_mb_12 g_text_c g_c_9 g_fs_12">
<!-- <view class="g_flex_row_center g_mb_4 g_mt_4">
<view class="g_mr_8" @click="goPage('/root/other/showImg?type=rlzy')"> </view>
</view> -->
<view class="g_flex_row_center">
<!-- <view class="g_mr_8" @click="goPage('/root/other/showImg?type=yyzz')"> </view> -->
<view class="">豫ICP备2025146744号</view>
</view>
</view>
<!-- #endif -->
<!-- <div class="g_mt_40" v-if="userInfo.admin"> <!-- <div class="g_mt_40" v-if="userInfo.admin">
<g-button btnText="添加成员" icon="icon-tianjia g_fsi_16 g_mr_8" @clickBtn="addMemberShow = true"></g-button> <g-button btnText="添加成员" icon="icon-tianjia g_fsi_16 g_mr_8" @clickBtn="addMemberShow = true"></g-button>
</div> --> </div> -->
<view class="g_h_100"></view>
<u-popup v-model="addMemberShow" mode="bottom" z-index="999999" border-radius="12" :closeable="false" :mask-close-able="true" @close="addMemberShow = false"> <u-popup v-model="addMemberShow" mode="bottom" z-index="999999" border-radius="12" :closeable="false" :mask-close-able="true" @close="addMemberShow = false">
<view class="g_text_c g_bg_f_5 g_fs_17"> <view class="g_text_c g_bg_f_5 g_fs_17">
<view class="g_bg_f"> <view class="g_bg_f">

@ -70,10 +70,10 @@
{{ jobDetail.monthPay ? "丨" + jobDetail.monthPay : "" }} {{ jobDetail.monthPay ? "丨" + jobDetail.monthPay : "" }}
</view> </view>
</view> </view>
<view v-if="corpUserFlag" class="g_flex_row_start g_c_main" @click.stop="setCopy('jobName')"> <!-- <view v-if="corpUserFlag" class="g_flex_row_start g_c_main" @click.stop="setCopy('jobName')">
<view class="iconfont icon-fuzhi mr4" style></view> <view class="iconfont icon-fuzhi mr4" style></view>
<span class="f14">复制</span> <span class="f14">复制</span>
</view> </view> -->
</view> </view>
<div> <div>
<view class="m-address g_mt_16 g_mb_16 g_pt_10 g_pb_10 g_flex_row_start g_border_e_t g_border_e_b" hover-class="thover" @click="goAddress" v-if="jobDetail.storeLat && jobDetail.storeLng && jobDetail.storeDistrict"> <view class="m-address g_mt_16 g_mb_16 g_pt_10 g_pb_10 g_flex_row_start g_border_e_t g_border_e_b" hover-class="thover" @click="goAddress" v-if="jobDetail.storeLat && jobDetail.storeLng && jobDetail.storeDistrict">

@ -17,15 +17,17 @@
}" }"
/> />
</view> </view>
<view class="g_flex_row_center g_mt_30"> <!-- #ifdef MP-WEIXIN -->
<view v-if="!isEdit" class="g_flex_row_center"> <view class="g_flex_row_center g_mt_30">
<button aria-role="button" class="g_w_110 g_h_32 g_flex_c g_radius_17 g_c_f" style="border: 1px solid #fff; background-color: transparent; font-size: 14px" @click="handleOpenAvatar"></button> <view v-if="!isEdit" class="g_flex_row_center">
<button aria-role="button" class="g_w_110 g_h_32 g_flex_c g_radius_17 g_c_f" style="border: 1px solid #fff; background-color: transparent; font-size: 14px" @click="handleOpenAvatar"></button>
</view>
<view v-if="isEdit" class="g_flex_row_center">
<view class="g_w_110 g_h_32 g_flex_c g_radius_17 g_c_f g_mr_16" style="border: 1px solid #fff" @click="handleCancel"></view>
<view class="g_w_112 g_h_34 g_flex_c g_radius_17 g_c_f g_bg_f40" style="border: 2px solid #ff4400" @click="handleConfirm"></view>
</view>
</view> </view>
<view v-if="isEdit" class="g_flex_row_center"> <!-- #endif -->
<view class="g_w_110 g_h_32 g_flex_c g_radius_17 g_c_f g_mr_16" style="border: 1px solid #fff" @click="handleCancel"></view>
<view class="g_w_112 g_h_34 g_flex_c g_radius_17 g_c_f g_bg_f40" style="border: 2px solid #ff4400" @click="handleConfirm"></view>
</view>
</view>
</view> </view>
</view> </view>
</template> </template>

@ -84,6 +84,13 @@
<view class="g_mt_10 g_ml_10 g_mr_10"> <view class="g_mt_10 g_ml_10 g_mr_10">
<g-button btnText="退出登录" type="delete" size="medium" @clickBtn="handleLayout" mode="square" /> <g-button btnText="退出登录" type="delete" size="medium" @clickBtn="handleLayout" mode="square" />
</view> </view>
<view @click="logOff" style="position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%)" hover-class="thover">
<view class="tc">
<text class="g_fs_12 g_c_9">注销账号</text>
</view>
</view>
<u-popup v-model="showTeamToggle" class="" mode="bottom" uZindex="9999" :closeable="true" border-radius="12" :mask-close-able="true"> <u-popup v-model="showTeamToggle" class="" mode="bottom" uZindex="9999" :closeable="true" border-radius="12" :mask-close-able="true">
<view class="title g_text_c g_fs_18 g_fw_600 g_pt_32 g_pb_20">切换团队</view> <view class="title g_text_c g_fs_18 g_fw_600 g_pt_32 g_pb_20">切换团队</view>
<scroll-view class="g_pb_32" scroll-y="true" hover-class="none" style="height: calc(70vh)"> <scroll-view class="g_pb_32" scroll-y="true" hover-class="none" style="height: calc(70vh)">
@ -132,6 +139,46 @@ export default {
that.isCreator = uni.getStorageSync("IS_CREATOR") == 1 ? true : false; that.isCreator = uni.getStorageSync("IS_CREATOR") == 1 ? true : false;
}, },
methods: { methods: {
logOff() {
var that = this;
uni.showModal({
title: "注销账号",
content: "确定要注销账号吗?该操作不可逆!",
confirmColor: "#576b95",
success(res) {
if (res.confirm) {
that.G.Post(
that.api.user_changeLoginPwd,
{
tel: uni.getStorageSync("apply-tel"),
oldPassword: "123456",
password: "123456",
},
() => {
uni.showToast({
title: "修改成功",
icon: "success",
});
setTimeout(() => {
that.G.Get(that.api.login_out, {}, () => {
that.G.clearLocalStorage();
let params = {
path: "",
level: "",
};
uni.reLaunch({
url: "/root/person/loginIndex?" + that.G.objToStr(params),
});
});
}, 1500);
}
);
} else if (res.cancel) {
console.log("用户点击取消");
}
},
});
},
/** /**
* 获取团队列表 * 获取团队列表
*/ */

Loading…
Cancel
Save