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

@ -1,5 +1,6 @@
<template>
<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="link" :class="!loading && speed == 0 ? '' : ''">
<!-- <g-loading bg="#ededed" v-if="loading && speed == -1" /> -->

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

@ -43,9 +43,7 @@
</view>
<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" />
</view>
</view>
</view>
<!-- 用户信息 -->
@ -352,25 +350,21 @@
</g-panel-fixed>
</u-popup>
<view class="g_h_104" style="background-color: #ededed;"></view>
<g-panel-fixed style="box-shadow: 0 -4px 12px #ededed;">
<view class="g_h_104" style="background-color: #ededed"></view>
<g-panel-fixed style="box-shadow: 0 -4px 12px #ededed">
<slot>
<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="">
<button
@click="createImage"
class="g_flex_c"
style="background-color: #00b666;color: #fff;width: 250px;height: 42px;font-size: 18px;border-radius: 60px;"
>分享</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>
</view>
</view>
</view>
</slot>
</g-panel-fixed>
<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]" />
<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]" />
</u-popup>
</view>
</template>
@ -379,7 +373,7 @@
import mainPanel from "./myMain.vue";
export default {
components: {
mainPanel
mainPanel,
},
onReady() {
this.G.setNavStyle();
@ -476,38 +470,42 @@ export default {
};
},
onLoad(options) {
console.log('工单详情页:',options)
console.log("工单详情页:", options);
if (options.scene) {
let _str = decodeURIComponent(options.scene);
console.log('邀请 codeRes 1',_str)
console.log("邀请 codeRes 1", _str);
let codeRes = _str.split("=");
console.log('邀请 codeRes 2',codeRes)
this.oid = codeRes[1].split('_')[1];
this.relationId = codeRes[1].split('_')[2];
uni.setStorageSync('order_oid',this.oid)
uni.setStorageSync('order_relationId',this.relationId)
this.type = '1';
console.log('邀请 codeRes 3 oid:',this.oid,' rid:',this.relationId)
console.log("邀请 codeRes 2", codeRes);
this.oid = codeRes[1].split("_")[1];
this.relationId = codeRes[1].split("_")[2];
uni.setStorageSync("order_oid", this.oid);
uni.setStorageSync("order_relationId", this.relationId);
this.type = "1";
console.log("邀请 codeRes 3 oid:", this.oid, " rid:", this.relationId);
} else {
if (options.id) {
this.oid = options.id;
this.relationId = options.relationId;
this.type = options.type;
}else if(uni.getStorageSync('order_oid')){
this.oid = uni.getStorageSync('order_oid');
this.relationId = uni.getStorageSync('order_relationId');
} else if (uni.getStorageSync("order_oid")) {
this.oid = uni.getStorageSync("order_oid");
this.relationId = uni.getStorageSync("order_relationId");
this.type = options.type;
}
}
this.getResident();
this.getPeople();
this.getDetail();
uni.$on("infoUpdate", () => {
uni.$emit("infoUpdateList");
this.getDetail();
});
},
onShow() {
let that = this;
this.isCreator = uni.getStorageSync("IS_CREATOR") == 1 ? true : false;
this.getResident();
this.getPeople();
this.getDetail();
that.G.Get(
that.api.bind_enterpriseDetail + "/" + uni.getStorageSync("apply-agencyId"),
{
@ -520,9 +518,6 @@ export default {
console.log("--", that.recommendList);
}
);
uni.$on("infoUpdate", () => {
this.getDetail();
});
},
methods: {
setShareImg(e) {
@ -610,8 +605,8 @@ export default {
relationId: that.relationId,
},
(res) => {
uni.removeStorageSync('order_oid')
uni.removeStorageSync('order_relationId')
uni.removeStorageSync("order_oid");
uni.removeStorageSync("order_relationId");
console.log("工单详情:", res);
if (res.prevRecordId) {
that.rid = res.prevRecordId;
@ -737,19 +732,18 @@ export default {
},
(err) => {
uni.showModal({
title:' ',
title: " ",
content: err,
confirmText:'回首页',
confirmText: "回首页",
success(era) {
if (era.confirm) {
uni.switchTab({
url:'/pages/home/index'
})
url: "/pages/home/index",
});
} else {
}
}
})
},
});
}
);
},
@ -837,7 +831,7 @@ export default {
"姓名:": this.orderDetail.userName + this.orderDetail.setTitle,
"\n身份证号": this.orderDetail.idCard ? this.orderDetail.idCard : "-",
"\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) {
params["\n面试时间"] = this.orderDetail.interview_time ? this.orderDetail.interview_time : "-";

@ -292,7 +292,7 @@ export default {
id: $data.leafCateId,
},
(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);
that.jobData = [
{

@ -8,11 +8,10 @@
result: '',
path: '/root/person/feedback',
tip: 'message',
pRow: 12
}]" @clickItem="handleClickItem" />
</view>
<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_column_center g_fs_16 g_c_3">关注邀请</view>
<view class="g_flex_column_center">

@ -1,6 +1,6 @@
<template>
<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>
<div class="g_h_10"></div>
@ -26,16 +26,20 @@
</div>
<div class="g_h_40"></div>
</div>
<!-- <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-panel-fixed>
<div class="g_flex_row_center">
<div class="g_w_128 g_mr_20">
<g-button btnText="手动添加" size="auto" @clickBtn="goPage('/root/person/addOrUpdataMember')"></g-button>
</div>
<div class="g_w_128">
<g-button btnText="微信邀请" size="auto" type="primary" class @clickBtn="goPage('/root/person/memberApplyQRCode')"></g-button>
</div>
<!-- <g-button icon="icon-tianjia g_fsi_16 g_mr_8" btnText="添加成员" class="" @clickBtn="addMember"></g-button> -->
</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>
</scroll-view>
<!-- <div class="g_flex_row_end g_bg_f" style="padding: 14px 16px 34px"> -->
@ -62,71 +66,71 @@ export default {
return {
memberList: [],
addMemberShow: false,
agencyInfo: uni.getStorageSync('agencyInfo'),
agencyInfo: uni.getStorageSync("agencyInfo"),
applyNum: 0,
}
};
},
onShow() {
this.getMemberList()
this.getNewApplyNum()
this.getMemberList();
this.getNewApplyNum();
},
onLoad() {},
created() {
console.log(123123)
console.log(123123);
},
methods: {
compare(a, b) {
let sortList = ['创建人', '管理员']
let sortList = ["创建人", "管理员",'成员'];
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)) {
return -1
return -1;
} else if (sortList.includes(b)) {
return 1
return 1;
} else {
return a.localeCompare(b)
return a.localeCompare(b);
}
},
getMemberList() {
let that = this
let that = this;
uni.showLoading({
title: '加载中...',
})
title: "加载中...",
});
this.G.Get(this.api.order_peopleList, { pageSize: 500 }, (res) => {
console.log('报名人列表:', res)
that.memberList = res.recordList
console.log("报名人列表:", res);
that.memberList = res.recordList;
that.memberList.forEach((item) => {
item.agencyRoleNameList = item.agencyRoleName.split('')
item.agencyRoleNameList = item.agencyRoleNameList.sort(this.compare)
})
item.agencyRoleNameList = item.agencyRoleName.split("");
item.agencyRoleNameList = item.agencyRoleNameList.sort(this.compare);
});
uni.hideLoading()
})
uni.hideLoading();
});
},
addMember() {
this.addMemberShow = true
this.addMemberShow = true;
},
editMember(_item) {
uni.navigateTo({
url: '/root/person/addOrUpdataMember?info=' + JSON.stringify(_item),
})
url: "/root/person/addOrUpdataMember?info=" + JSON.stringify(_item),
});
},
goPage(url) {
uni.navigateTo({
url,
})
this.addMemberShow = false
});
this.addMemberShow = false;
},
getNewApplyNum() {
let that = this
let that = this;
this.G.Get(this.api.order_getNewApplyNum, {}, (res) => {
console.log('order_getNewApplyNum', res)
that.applyNum = res
})
console.log("order_getNewApplyNum", res);
that.applyNum = res;
});
},
},
}
};
</script>
<style lang="scss">

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

Loading…
Cancel
Save