cyl/master-0804
wangxia 4 months ago
parent 2cb033e0d2
commit 58e73273b1

@ -1,5 +1,6 @@
<template> <template>
<view :class="isLogin ? '' : 'm-login-false'"> <view :class="isLogin ? '' : 'm-login-false'">
<g-loading paddingBottom="g_pb_120" v-if="loading && speed == -1" />
<view class="m-panel" :class="!loading && speed == 0 ? 'g_bg_f_5' : ''"> <view class="m-panel" :class="!loading && speed == 0 ? 'g_bg_f_5' : ''">
<view class="link" :class="!loading && speed == 0 ? '' : ''"> <view class="link" :class="!loading && speed == 0 ? '' : ''">
<!-- <g-loading bg="#ededed" v-if="loading && speed == -1" /> --> <!-- <g-loading bg="#ededed" v-if="loading && speed == -1" /> -->

@ -197,6 +197,7 @@ export default {
this.menuList = this.tabInfo[this.tabActive].childList; this.menuList = this.tabInfo[this.tabActive].childList;
} else { } else {
this.query.page = 1; this.query.page = 1;
that.loading = true;
this.menuList = this.tabInfo[this.tabActive].childList; this.menuList = this.tabInfo[this.tabActive].childList;
this.getList(); this.getList();
} }
@ -336,6 +337,7 @@ export default {
let that = this; let that = this;
console.log("$item", $item); console.log("$item", $item);
this.menuActive = $item; this.menuActive = $item;
this.loading = true;
this.speed = -1; this.speed = -1;
this.query.page = 1; this.query.page = 1;
that.G.isLogin(); that.G.isLogin();

@ -43,9 +43,7 @@
</view> </view>
<view class=" "> <view class=" ">
<g-panel-detail-item label="报名人" from="resident-info" beforeIcon="icon-phone" @clickItem="goTel(orderDetail.agencyTel)" :remarkValue="orderDetail.agencyTel" :value="orderDetail.downFullName || orderDetail.downProviderName" /> <g-panel-detail-item label="报名人" from="resident-info" beforeIcon="icon-phone" @clickItem="goTel(orderDetail.agencyTel)" :remarkValue="orderDetail.agencyTel" :value="orderDetail.downFullName || orderDetail.downProviderName" />
</view> </view>
</view> </view>
</view> </view>
<!-- 用户信息 --> <!-- 用户信息 -->
@ -352,25 +350,21 @@
</g-panel-fixed> </g-panel-fixed>
</u-popup> </u-popup>
<view class="g_h_104" style="background-color: #ededed;"></view> <view class="g_h_104" style="background-color: #ededed"></view>
<g-panel-fixed style="box-shadow: 0 -4px 12px #ededed;"> <g-panel-fixed style="box-shadow: 0 -4px 12px #ededed">
<slot> <slot>
<view class="g_pl_20 g_pr_20 g_flex_row_center flex_center flex_nw" style="width: 100%"> <view class="g_pl_20 g_pr_20 g_flex_row_center flex_center flex_nw" style="width: 100%">
<view class="g_flex_1 g_flex_column_center"> <view class="g_flex_1 g_flex_column_center">
<view class=""> <view class="">
<button <button @click="createImage" class="g_flex_c" style="background-color: #00b666; color: #fff; width: 250px; height: 42px; font-size: 18px; border-radius: 60px">分享</button>
@click="createImage"
class="g_flex_c"
style="background-color: #00b666;color: #fff;width: 250px;height: 42px;font-size: 18px;border-radius: 60px;"
>分享</button>
</view> </view>
</view> </view>
</view> </view>
</slot> </slot>
</g-panel-fixed> </g-panel-fixed>
<u-popup v-model="shareModal.isShow" mode="bottom" border-radius="16" height='600px' :mask-close-able="true"> <u-popup v-model="shareModal.isShow" mode="bottom" border-radius="16" height="600px" :mask-close-able="true">
<mainPanel :showBg="true" :rid='rid' :oid='oid' :active="1" :name='orderDetail.userName' :job="orderDetail.storeJobName" :recommendList="recommendList[0]" /> <mainPanel :showBg="true" :rid="rid" :oid="oid" :active="1" :name="orderDetail.userName" :job="orderDetail.storeJobName" :recommendList="recommendList[0]" />
</u-popup> </u-popup>
</view> </view>
</template> </template>
@ -379,7 +373,7 @@
import mainPanel from "./myMain.vue"; import mainPanel from "./myMain.vue";
export default { export default {
components: { components: {
mainPanel mainPanel,
}, },
onReady() { onReady() {
this.G.setNavStyle(); this.G.setNavStyle();
@ -476,38 +470,42 @@ export default {
}; };
}, },
onLoad(options) { onLoad(options) {
console.log('工单详情页:',options) console.log("工单详情页:", options);
if (options.scene) { if (options.scene) {
let _str = decodeURIComponent(options.scene); let _str = decodeURIComponent(options.scene);
console.log('邀请 codeRes 1',_str) console.log("邀请 codeRes 1", _str);
let codeRes = _str.split("="); let codeRes = _str.split("=");
console.log('邀请 codeRes 2',codeRes) console.log("邀请 codeRes 2", codeRes);
this.oid = codeRes[1].split('_')[1]; this.oid = codeRes[1].split("_")[1];
this.relationId = codeRes[1].split('_')[2]; this.relationId = codeRes[1].split("_")[2];
uni.setStorageSync('order_oid',this.oid) uni.setStorageSync("order_oid", this.oid);
uni.setStorageSync('order_relationId',this.relationId) uni.setStorageSync("order_relationId", this.relationId);
this.type = '1'; this.type = "1";
console.log('邀请 codeRes 3 oid:',this.oid,' rid:',this.relationId) console.log("邀请 codeRes 3 oid:", this.oid, " rid:", this.relationId);
} else { } else {
if (options.id) { if (options.id) {
this.oid = options.id; this.oid = options.id;
this.relationId = options.relationId; this.relationId = options.relationId;
this.type = options.type; this.type = options.type;
}else if(uni.getStorageSync('order_oid')){ } else if (uni.getStorageSync("order_oid")) {
this.oid = uni.getStorageSync('order_oid'); this.oid = uni.getStorageSync("order_oid");
this.relationId = uni.getStorageSync('order_relationId'); this.relationId = uni.getStorageSync("order_relationId");
this.type = options.type; this.type = options.type;
} }
} }
this.getResident();
this.getPeople();
this.getDetail();
uni.$on("infoUpdate", () => {
uni.$emit("infoUpdateList");
this.getDetail();
});
}, },
onShow() { onShow() {
let that = this; let that = this;
this.isCreator = uni.getStorageSync("IS_CREATOR") == 1 ? true : false; this.isCreator = uni.getStorageSync("IS_CREATOR") == 1 ? true : false;
this.getResident();
this.getPeople();
this.getDetail();
that.G.Get( that.G.Get(
that.api.bind_enterpriseDetail + "/" + uni.getStorageSync("apply-agencyId"), that.api.bind_enterpriseDetail + "/" + uni.getStorageSync("apply-agencyId"),
{ {
@ -520,9 +518,6 @@ export default {
console.log("--", that.recommendList); console.log("--", that.recommendList);
} }
); );
uni.$on("infoUpdate", () => {
this.getDetail();
});
}, },
methods: { methods: {
setShareImg(e) { setShareImg(e) {
@ -610,8 +605,8 @@ export default {
relationId: that.relationId, relationId: that.relationId,
}, },
(res) => { (res) => {
uni.removeStorageSync('order_oid') uni.removeStorageSync("order_oid");
uni.removeStorageSync('order_relationId') uni.removeStorageSync("order_relationId");
console.log("工单详情:", res); console.log("工单详情:", res);
if (res.prevRecordId) { if (res.prevRecordId) {
that.rid = res.prevRecordId; that.rid = res.prevRecordId;
@ -737,19 +732,18 @@ export default {
}, },
(err) => { (err) => {
uni.showModal({ uni.showModal({
title:' ', title: " ",
content: err, content: err,
confirmText:'回首页', confirmText: "回首页",
success(era) { success(era) {
if (era.confirm) { if (era.confirm) {
uni.switchTab({ uni.switchTab({
url:'/pages/home/index' url: "/pages/home/index",
}) });
} else { } else {
}
} }
}) },
});
} }
); );
}, },
@ -837,7 +831,7 @@ export default {
"姓名:": this.orderDetail.userName + this.orderDetail.setTitle, "姓名:": this.orderDetail.userName + this.orderDetail.setTitle,
"\n身份证号": this.orderDetail.idCard ? this.orderDetail.idCard : "-", "\n身份证号": this.orderDetail.idCard ? this.orderDetail.idCard : "-",
"\n企业岗位": this.orderDetail.storeJobName ? this.orderDetail.storeJobName : "-", "\n企业岗位": this.orderDetail.storeJobName ? this.orderDetail.storeJobName : "-",
'\n电话': this.orderDetail.tel ? this.orderDetail.tel : "-", "\n电话": this.orderDetail.tel ? this.orderDetail.tel : "-",
}; };
if (this.orderDetail.status == 10 || this.orderDetail.status == 20 || this.orderDetail.status == 25) { if (this.orderDetail.status == 10 || this.orderDetail.status == 20 || this.orderDetail.status == 25) {
params["\n面试时间"] = this.orderDetail.interview_time ? this.orderDetail.interview_time : "-"; params["\n面试时间"] = this.orderDetail.interview_time ? this.orderDetail.interview_time : "-";

@ -292,7 +292,7 @@ export default {
id: $data.leafCateId, id: $data.leafCateId,
}, },
(res) => { (res) => {
let policyStr = "1. 服务费" + (res.record.returnFeeType !== "" ? that.G.setReturnFee(res.record.returnFee, res.record.returnFeeType) : "详询客服") + " \n\n" + "2. 服务费详情:" + (res.record.returnFeeDesp || "详询客服") + " \n\n" + "3. 薪资待遇:" + (res.record.salaryDetail || "详询客服") + "\n\n"; let policyStr = "1. 佣金" + (res.record.returnFeeType !== "" ? that.G.setReturnFee(res.record.returnFee, res.record.returnFeeType) : "详询客服") + " \n\n" + "2. 佣金详情:" + (res.record.returnFeeDesp || "详询客服") + " \n\n" + "3. 薪资待遇:" + (res.record.salaryDetail || "详询客服") + "\n\n";
console.log("政策列表:", res); console.log("政策列表:", res);
that.jobData = [ that.jobData = [
{ {

@ -8,11 +8,10 @@
result: '', result: '',
path: '/root/person/feedback', path: '/root/person/feedback',
tip: 'message', tip: 'message',
pRow: 12
}]" @clickItem="handleClickItem" /> }]" @clickItem="handleClickItem" />
</view> </view>
<view class="g_pl_10 g_pr_10 g_pb_16" v-if="isCreator"> <view class="g_pl_10 g_pr_10 g_pb_16" v-if="isCreator">
<view class="g_bg_f g_pl_16 g_pr_16 g_radius_8"> <view class="g_bg_f g_pl_20 g_pr_20 g_radius_8">
<view class="g_flex_row_between g_h_56"> <view class="g_flex_row_between g_h_56">
<view class="g_flex_column_center g_fs_16 g_c_3">关注邀请</view> <view class="g_flex_column_center g_fs_16 g_c_3">关注邀请</view>
<view class="g_flex_column_center"> <view class="g_flex_column_center">

@ -1,6 +1,6 @@
<template> <template>
<div class="team-manage-container g_flex_column_between g_bg_page"> <div class="team-manage-container g_flex_column_between g_bg_page">
<scroll-view class="g_flex_1" enable-flex :style="{ 'min-height': `calc(100vh - ${0}px)` }" :scroll-y="true"> <scroll-view class="g_flex_1" enable-flex :style="{ 'min-height': `calc(100vh - ${0}px)`,paddingBottom:'120px' }" :scroll-y="true">
<div class="g_flex_column_between" :style="{ 'min-height': `calc(100vh - ${0}px)` }"> <div class="g_flex_column_between" :style="{ 'min-height': `calc(100vh - ${0}px)` }">
<div class> <div class>
<div class="g_h_10"></div> <div class="g_h_10"></div>
@ -26,16 +26,20 @@
</div> </div>
<div class="g_h_40"></div> <div class="g_h_40"></div>
</div> </div>
<!-- <div class="g_h_24"></div> --> <g-panel-fixed>
<div class="sticky g_bg_f g_flex_row_center g_pt_8" style="padding-bottom: calc(constant(safe-area-inset-bottom) + 16px); padding-bottom: calc(env(safe-area-inset-bottom) + 16px);box-shadow:0px -4px 10px rgba(0, 0, 0, 0.06);"> <div class="g_flex_row_center">
<div class="g_w_128 g_mr_20"> <div class="g_w_128 g_mr_20">
<g-button btnText="手动添加" size="auto" @clickBtn="goPage('/root/person/addOrUpdataMember')"></g-button> <g-button btnText="手动添加" size="auto" @clickBtn="goPage('/root/person/addOrUpdataMember')"></g-button>
</div> </div>
<div class="g_w_128"> <div class="g_w_128">
<g-button btnText="微信邀请" size="auto" type="primary" class @clickBtn="goPage('/root/person/memberApplyQRCode')"></g-button> <g-button btnText="微信邀请" size="auto" type="primary" class @clickBtn="goPage('/root/person/memberApplyQRCode')"></g-button>
</div> </div>
<!-- <g-button icon="icon-tianjia g_fsi_16 g_mr_8" btnText="添加成员" class="" @clickBtn="addMember"></g-button> -->
</div> </div>
</g-panel-fixed>
<!-- <div class="g_h_24"></div> -->
<!-- <div class="sticky g_bg_f g_flex_row_center g_pt_8" style="padding-bottom: calc(constant(safe-area-inset-bottom) + 16px); padding-bottom: calc(env(safe-area-inset-bottom) + 16px); box-shadow: 0px -4px 10px rgba(0, 0, 0, 0.06)">
<g-button icon="icon-tianjia g_fsi_16 g_mr_8" btnText="添加成员" class="" @clickBtn="addMember"></g-button>
</div> -->
</div> </div>
</scroll-view> </scroll-view>
<!-- <div class="g_flex_row_end g_bg_f" style="padding: 14px 16px 34px"> --> <!-- <div class="g_flex_row_end g_bg_f" style="padding: 14px 16px 34px"> -->
@ -62,71 +66,71 @@ export default {
return { return {
memberList: [], memberList: [],
addMemberShow: false, addMemberShow: false,
agencyInfo: uni.getStorageSync('agencyInfo'), agencyInfo: uni.getStorageSync("agencyInfo"),
applyNum: 0, applyNum: 0,
} };
}, },
onShow() { onShow() {
this.getMemberList() this.getMemberList();
this.getNewApplyNum() this.getNewApplyNum();
}, },
onLoad() {}, onLoad() {},
created() { created() {
console.log(123123) console.log(123123);
}, },
methods: { methods: {
compare(a, b) { compare(a, b) {
let sortList = ['创建人', '管理员'] let sortList = ["创建人", "管理员",'成员'];
if (sortList.includes(a) && sortList.includes(b)) { if (sortList.includes(a) && sortList.includes(b)) {
return sortList.indexOf(a) - sortList.indexOf(b) return sortList.indexOf(a) - sortList.indexOf(b);
} else if (sortList.includes(a)) { } else if (sortList.includes(a)) {
return -1 return -1;
} else if (sortList.includes(b)) { } else if (sortList.includes(b)) {
return 1 return 1;
} else { } else {
return a.localeCompare(b) return a.localeCompare(b);
} }
}, },
getMemberList() { getMemberList() {
let that = this let that = this;
uni.showLoading({ uni.showLoading({
title: '加载中...', title: "加载中...",
}) });
this.G.Get(this.api.order_peopleList, { pageSize: 500 }, (res) => { this.G.Get(this.api.order_peopleList, { pageSize: 500 }, (res) => {
console.log('报名人列表:', res) console.log("报名人列表:", res);
that.memberList = res.recordList that.memberList = res.recordList;
that.memberList.forEach((item) => { that.memberList.forEach((item) => {
item.agencyRoleNameList = item.agencyRoleName.split('') item.agencyRoleNameList = item.agencyRoleName.split("");
item.agencyRoleNameList = item.agencyRoleNameList.sort(this.compare) item.agencyRoleNameList = item.agencyRoleNameList.sort(this.compare);
}) });
uni.hideLoading() uni.hideLoading();
}) });
}, },
addMember() { addMember() {
this.addMemberShow = true this.addMemberShow = true;
}, },
editMember(_item) { editMember(_item) {
uni.navigateTo({ uni.navigateTo({
url: '/root/person/addOrUpdataMember?info=' + JSON.stringify(_item), url: "/root/person/addOrUpdataMember?info=" + JSON.stringify(_item),
}) });
}, },
goPage(url) { goPage(url) {
uni.navigateTo({ uni.navigateTo({
url, url,
}) });
this.addMemberShow = false this.addMemberShow = false;
}, },
getNewApplyNum() { getNewApplyNum() {
let that = this let that = this;
this.G.Get(this.api.order_getNewApplyNum, {}, (res) => { this.G.Get(this.api.order_getNewApplyNum, {}, (res) => {
console.log('order_getNewApplyNum', res) console.log("order_getNewApplyNum", res);
that.applyNum = res that.applyNum = res;
}) });
}, },
}, },
} };
</script> </script>
<style lang="scss"> <style lang="scss">

@ -639,6 +639,9 @@ $max-mp: 20;
.g_mt_42 { .g_mt_42 {
margin-top: 42px; margin-top: 42px;
} }
.g_mt_65 {
margin-top: 42px;
}
.g_mt_40 { .g_mt_40 {
margin-top: 40px; margin-top: 40px;
} }

Loading…
Cancel
Save