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" /> -->

@ -186,7 +186,7 @@ export default {
that.isLogin = uni.getStorageSync("apply-token") ? true : false; that.isLogin = uni.getStorageSync("apply-token") ? true : false;
console.log("that.isLogin", that.isLogin); console.log("that.isLogin", that.isLogin);
that.loginInfo = uni.getStorageSync("apply-userinfo"); that.loginInfo = uni.getStorageSync("apply-userinfo");
if (uni.getStorageSync("applyType")||uni.getStorageSync("applyType") === 0) { if (uni.getStorageSync("applyType") || uni.getStorageSync("applyType") === 0) {
that.menuActive = uni.getStorageSync("applyType"); that.menuActive = uni.getStorageSync("applyType");
uni.removeStorageSync("applyType"); uni.removeStorageSync("applyType");
} }
@ -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();

@ -9,25 +9,25 @@
<view class="g_h_10"></view> <view class="g_h_10"></view>
<view class="link g_bg_f g_pt_10"> <view class="link g_bg_f g_pt_10">
<g-panel-detail-item label="状态" :value="orderDetail.status_text" valueColor="#ff4400" /> <g-panel-detail-item label="状态" :value="orderDetail.status_text" valueColor="#ff4400" />
<g-panel-detail-item label="报名备注" :value="orderDetail.desp" v-if="orderDetail.status== '10' || orderDetail.status== '20' || orderDetail.status== '21' || orderDetail.status== '26'"/> <g-panel-detail-item label="报名备注" :value="orderDetail.desp" v-if="orderDetail.status == '10' || orderDetail.status == '20' || orderDetail.status == '21' || orderDetail.status == '26'" />
<!-- afterIcon="icon-gengduo11" @clickItem="goBossDetail" --> <!-- afterIcon="icon-gengduo11" @clickItem="goBossDetail" -->
<!-- <g-panel-detail-item label="项目方" :value="orderDetail.upFullName || orderDetail.upAgencyName" valueColor="#333" /> --> <!-- <g-panel-detail-item label="项目方" :value="orderDetail.upFullName || orderDetail.upAgencyName" valueColor="#333" /> -->
<!-- @clickItem="handleOpenPeopleModal" --> <!-- @clickItem="handleOpenPeopleModal" -->
<view> <view>
<view class=" " v-if="orderDetail.reception_time && (orderDetail.status== '10' ||orderDetail.status== '20' ||orderDetail.status== '21' ||orderDetail.status== '26')"> <view class=" " v-if="orderDetail.reception_time && (orderDetail.status == '10' || orderDetail.status == '20' || orderDetail.status == '21' || orderDetail.status == '26')">
<g-panel-detail-item from="times" label="接待时间" :value="orderDetail.reception_time" /> <g-panel-detail-item from="times" label="接待时间" :value="orderDetail.reception_time" />
</view> </view>
<view class=" " v-if="orderDetail.interview_time && orderDetail.status!='50'"> <view class=" " v-if="orderDetail.interview_time && orderDetail.status != '50'">
<g-panel-detail-item from="times" label="面试时间" :value="orderDetail.interview_time" /> <g-panel-detail-item from="times" label="面试时间" :value="orderDetail.interview_time" />
</view> </view>
<view class=" " v-if="orderDetail.willEntry_time &&(orderDetail.status== '45' ||orderDetail.status== '30')"> <view class=" " v-if="orderDetail.willEntry_time && (orderDetail.status == '45' || orderDetail.status == '30')">
<g-panel-detail-item from="times" label="约入职时间" :value="orderDetail.willEntry_time" /> <g-panel-detail-item from="times" label="约入职时间" :value="orderDetail.willEntry_time" />
</view> </view>
<view class=" " v-if="orderDetail.entry_time &&(orderDetail.status== '40' ||orderDetail.status== '48' ||orderDetail.status== '50')"> <view class=" " v-if="orderDetail.entry_time && (orderDetail.status == '40' || orderDetail.status == '48' || orderDetail.status == '50')">
<g-panel-detail-item from="times" label="入职时间" :value="orderDetail.entry_time" /> <g-panel-detail-item from="times" label="入职时间" :value="orderDetail.entry_time" />
</view> </view>
<view class=" " v-if="orderDetail.willLeave_time &&orderDetail.status == 48"> <view class=" " v-if="orderDetail.willLeave_time && orderDetail.status == 48">
<g-panel-detail-item from="times" label="约离职时间" :value="orderDetail.willLeave_time" /> <g-panel-detail-item from="times" label="约离职时间" :value="orderDetail.willLeave_time" />
</view> </view>
<view class=" " v-if="orderDetail.leave_time && orderDetail.status == 50"> <view class=" " v-if="orderDetail.leave_time && orderDetail.status == 50">
@ -42,10 +42,8 @@
</view> --> </view> -->
</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>
<!-- 用户信息 --> <!-- 用户信息 -->
@ -98,9 +96,9 @@
<!-- 费用 --> <!-- 费用 -->
<view class="m-price" v-if="false"> <view class="m-price" v-if="false">
<view class="g_h_12"></view> <view class="g_h_12"></view>
<view class="link g_bg_f g_pt_10" > <view class="link g_bg_f g_pt_10">
<!-- v-if="(!orderDetail.nextRecordId && !orderDetail.prevRecordId && isCreator) || (isCreator && orderDetail.nextRecordId)" --> <!-- v-if="(!orderDetail.nextRecordId && !orderDetail.prevRecordId && isCreator) || (isCreator && orderDetail.nextRecordId)" -->
<view > <view>
<g-panel-detail-item label="上游佣金" :value="setReturnFee(orderDetail.returnFee, orderDetail.returnFeeType)" /> <g-panel-detail-item label="上游佣金" :value="setReturnFee(orderDetail.returnFee, orderDetail.returnFeeType)" />
<g-panel-detail-item label="上游佣金详情" :value="orderDetail.returnFeeDesp" afterIcon="icon-gengduo11" @clickItem="goInfo(orderDetail.returnFeeDesp, '上游佣金详情', 'view')" /> <g-panel-detail-item label="上游佣金详情" :value="orderDetail.returnFeeDesp" afterIcon="icon-gengduo11" @clickItem="goInfo(orderDetail.returnFeeDesp, '上游佣金详情', 'view')" />
</view> </view>
@ -124,12 +122,12 @@
<!-- <g-panel-detail-item label="报名时间" :value="orderDetail.create_time" /> --> <!-- <g-panel-detail-item label="报名时间" :value="orderDetail.create_time" /> -->
<g-panel-detail-item label="薪资明细" :value="orderDetail.employeeSalary" afterIcon="icon-gengduo11" @clickItem="goInfo(orderDetail.employeeSalary, '薪资明细', 'view')" /> <g-panel-detail-item label="薪资明细" :value="orderDetail.employeeSalary" afterIcon="icon-gengduo11" @clickItem="goInfo(orderDetail.employeeSalary, '薪资明细', 'view')" />
<view > <view>
<g-panel-detail-item label="上游项目方" :value="orderDetail.upFullName || orderDetail.upProviderName || '-'" /> <g-panel-detail-item label="上游项目方" :value="orderDetail.upFullName || orderDetail.upProviderName || '-'" />
<g-panel-detail-item label="上游佣金" :value="setReturnFee(orderDetail.returnFee, orderDetail.returnFeeType)" /> <g-panel-detail-item label="上游佣金" :value="setReturnFee(orderDetail.returnFee, orderDetail.returnFeeType)" />
<g-panel-detail-item label="上游佣金详情" :value="orderDetail.returnFeeDesp" afterIcon="icon-gengduo11" @clickItem="goInfo(orderDetail.returnFeeDesp, '上游佣金详情', 'view')" /> <g-panel-detail-item label="上游佣金详情" :value="orderDetail.returnFeeDesp" afterIcon="icon-gengduo11" @clickItem="goInfo(orderDetail.returnFeeDesp, '上游佣金详情', 'view')" />
</view> </view>
<g-panel-detail-item label="驻场信息" :labelSubStr="orderDetail.onSiteInfo ? '复制' :''" :value="orderDetail.onSiteInfo || '-'" from="resident-info" afterType="multi" @clickLabelBtn="handleClickLabelBtn(orderDetail.onSiteInfo || '-')" /> <g-panel-detail-item label="驻场信息" :labelSubStr="orderDetail.onSiteInfo ? '复制' : ''" :value="orderDetail.onSiteInfo || '-'" from="resident-info" afterType="multi" @clickLabelBtn="handleClickLabelBtn(orderDetail.onSiteInfo || '-')" />
<g-panel-detail-item label="面试地址" :value="orderDetail.interviewAddress" afterIcon="icon-gengduo11" @clickItem="handleChooseAddressModal" /> <g-panel-detail-item label="面试地址" :value="orderDetail.interviewAddress" afterIcon="icon-gengduo11" @clickItem="handleChooseAddressModal" />
<view class="g_h_15"></view> <view class="g_h_15"></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>
@ -378,8 +372,8 @@
<script> <script>
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();
@ -390,10 +384,10 @@ export default {
}, },
data() { data() {
return { return {
rid:0, rid: 0,
recommendList:[], recommendList: [],
shareModal:{ shareModal: {
isShow:false, isShow: false,
}, },
cdnBaseImg: this.G.store().cdnBaseImg, cdnBaseImg: this.G.store().cdnBaseImg,
agencyId: uni.getStorageSync("apply-agencyId"), agencyId: uni.getStorageSync("apply-agencyId"),
@ -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) {
@ -534,7 +529,7 @@ export default {
this.wxCode = e.code; this.wxCode = e.code;
this.agencyName = e.agencyName; this.agencyName = e.agencyName;
}, },
createImage(){ createImage() {
let that = this; let that = this;
that.shareModal.isShow = true; that.shareModal.isShow = true;
}, },
@ -610,12 +605,12 @@ 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;
}else{ } else {
that.rid = that.relationId; that.rid = that.relationId;
} }
// return; // return;
@ -735,21 +730,20 @@ export default {
that.$forceUpdate(); that.$forceUpdate();
that.speed = 1; that.speed = 1;
}, },
(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 : "-";
@ -863,7 +857,7 @@ export default {
let that = this, let that = this,
params = {}; params = {};
params = { params = {
id:this.orderDetail.id, id: this.orderDetail.id,
name: this.orderDetail.userName, name: this.orderDetail.userName,
sex: this.orderDetail.sex, sex: this.orderDetail.sex,
age: this.orderDetail.age, age: this.orderDetail.age,

@ -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