wangxia 8 months ago
commit fde0183e4c

@ -55,7 +55,7 @@ export default {
if (uni.getStorageSync("apply-token")) {
that.checkNum();
}
}, 1 * 30 * 1000);
}, 30 * 1000);
}
uni.$on("isGlogin", function (data) {
@ -69,7 +69,13 @@ export default {
// that.initWyyx()
}
},
onHide: function () {},
onHide: function () {
if (this.globalData.timer) {
clearInterval(this.globalData.timer);
this.globalData.timer = null;
console.log("定时任务已清除");
}
},
methods: {
initWyyx() {
let that = this;

@ -0,0 +1,6 @@
# 报名助手
```
段后注释文本
上8#999左对齐14px
```

@ -21,8 +21,10 @@
<view v-if="speed > 0" class="link">
<block class="" v-for="(item, index) in jobArray" :key="index">
<view class="item g_position_rela g_mb_10 g_ml_12 g_mr_12 g_bg_f g_radius_8 g_border_e_b" :class="from == 'share' ? 'g_pr_32' : ''">
<view class="g_p_10" @click="handleCard(item, index)">
<image v-if="item.recruitment == 2 && from != 'mine'" src="http://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/tingzhao.svg" class="g_w_82 g_h_65" style="position: absolute; left: 50%; top: 0; transform: translateX(-50%)"> </image>
<view class="g_p_10" style="position: relative;" @click="handleCard(item, index)">
<i class="iconfont icon-yitingzhao" v-if="item.recruitment == 2 && from != 'mine'"
style="position: absolute; right: 30px; top: 50%; transform: translateY(-50%);color: #ff4d4f;font-size: 80px;z-index: 1;"
></i>
<view class="m-top g_flex_row_between">
<view class="g_flex_1 g_flex_column_between">
<view class="g_flex_1 g_flex_row_between g_lh_1">

@ -47,7 +47,9 @@
</view>
</view>
<image v-if="info.recruitmentImage == 2" :src="localBaseImg + 'stop.svg'" class="g_w_82 g_h_65" style="position: absolute; left: 50%; top: 0; transform: translateX(-50%)"> </image>
<i class="iconfont icon-yitingzhao" v-if="info.recruitmentImage == 2"
style="position: absolute; right: 30px; top: 50%; transform: translateY(-50%);color: #ff4d4f;font-size: 80px;z-index: 1;"
></i>
</view>
<view class="g_ell_1 g_fs_14 g_mt_8" style="color: rgba(0, 0, 0, 0.45)" v-if="item.classify == 2">
{{ info.jobInfo || "-" }}

@ -32,6 +32,7 @@ export default {
openId: wxRes.openId,
tel: wxRes.phoneNumber,
unionid: wxRes.unionid,
createFakerAgency: 1,
},
(res) => {
console.log("res", res);
@ -82,6 +83,7 @@ export default {
openId: wxRes.openId,
tel: wxRes.phoneNumber,
unionid: wxRes.unionid,
createFakerAgency: 1,
},
(res) => {
that.setToken(res);

@ -65,6 +65,7 @@ export function createApp () {
uni.setStorageSync('apply-userinfo-copy', JSON.stringify(res));
uni.setStorageSync("apply-agencyId", res.user.agencyId); // 单独存储 -- 代理id方便获取
uni.setStorageSync("apply-supplierAccount", res.supplierAccount); // 单独存储 -- 是否是发单号,方便获取 0.不是发单号 1.是发单号
if (res.agencyStatus == 1) {
G.Get(apiInfo.login_agencyInfo, {}, (aRes) => {
uni.setStorageSync("agencyInfo", aRes.agency); // 1是创建者 2是普通成员
uni.setStorageSync("IS_CREATOR", aRes.agency.userId == res.user.id || res.admin == true ? 1 : 2); // 1是创建者 2是普通成员
@ -73,6 +74,8 @@ export function createApp () {
uni.setStorageSync("SHOW_INVITE", 1);
resolve(res)
});
}
},
function fail (err) {
console.log(err);
@ -91,13 +94,16 @@ export function createApp () {
uni.setStorageSync('apply-userinfo-copy', JSON.stringify(res));
uni.setStorageSync("apply-agencyId", res.user.agencyId); // 单独存储 -- 代理id方便获取
uni.setStorageSync("apply-supplierAccount", res.supplierAccount); // 单独存储 -- 是否是发单号,方便获取 0.不是发单号 1.是发单号
if (res.agencyStatus == 1) {
G.Get(apiInfo.login_agencyInfo, {}, (aRes) => {
uni.setStorageSync("agencyInfo", aRes.agency); // 1是创建者 2是普通成员
uni.setStorageSync("IS_CREATOR", aRes.agency.userId == res.user.id || res.admin == true ? 1 : 2); // 1是创建者 2是普通成员
// 登录跳转到首页的判断
uni.setStorageSync("SHOW_INVITE", 1);
resolve(res)
});
}
})
})
},

@ -1,13 +1,13 @@
<template>
<view class="gjFixed" v-if="show == 'special'" @click.stop @touchmove.stop.prevent>
<view class="filterContainer filterBox" style>
<view class="gjFixed" v-if="show == 'special'" @click.stop="hideDrawer" @touchmove.stop.prevent>
<view class="filterContainer filterBox" style @click.stop>
<scroll-view class style="padding: 0; background-color: #ededed" scroll-y>
<template v-for="item in anchorList">
<view :class="item.id == filterTo ? 'filterActive' : ''" class="g_c_3 g_fw_600" style="width: 84px; padding: 12px 0" @click="goAnchor(item)">{{ item.name }}</view>
<view :class="item.id == filterTo ? 'filterActive' : ''" class="g_c_3 g_fw_600 g_text_c" style="width: 84px; padding: 12px 0" @click="goAnchor(item)">{{ item.name }}</view>
</template>
</scroll-view>
<scroll-view class=" " :data-filter-to="filterTo" :scroll-into-view="filterTo" scroll-with-animation style="width: calc(100% - 100px); padding: 0 8px" scroll-y>
<view style="padding: 0 10px">
<view style="padding: 0 10px 32px 0">
<view class="sub" id="age">
<view class="title">年龄</view>
<view class="content g_bg_f">
@ -315,6 +315,10 @@ export default {
// this.getType();
},
methods: {
hideDrawer() {
console.log('123123');
this.$emit("hideDrawer", "");
},
format(val) {
return val;
},

@ -26,7 +26,7 @@
</div>
</div>
<div>
<div class="sticky">
<div class="sticky" v-if="isLogin">
<div class="g_flex_row_between flex_center" :class="toTop ? 'g_bg_f' : 'g_bg_f_5'" :style="{ 'box-shadow': toTop ? '0px 2px 3px 0px rgba(214, 214, 214, 0.3)' : '' }" id="tttop">
<div class="g_flex_1">
<u-tabs bg-color="transparent" from="index" gutter="20" :list="tabInfo.list" :is-scroll="true" :current="tabInfo.active" active-color="#00b666" bar-width="64" bar-height="6" @change="handleUpdateTab" font-size="34" duration="0.05" height="76"></u-tabs>
@ -46,7 +46,6 @@
筛选
<span class="iconfont icon-shouqi g_fs_12 g_c_9 fst g_ml_4" v-if="whichOneShow == 'special'"></span>
<span class="iconfont icon-zhankai g_fs_12 g_c_9 fst g_ml_4" v-if="whichOneShow != 'special'"></span>
<g-filter :show="whichOneShow" ref="filterChild" top="43px" :getFilterDataNew="getFilterData" @filterObj="receiveFromChild"></g-filter>
</view>
</div>
<!-- <div class="g_flex_none g_flex_column_center g_fs_17 g_pr_26 g_pb_4" style="color: #576b95; text-decoration: underline" @click="goPage('/root/home/ignore')"></div> -->
@ -99,9 +98,11 @@
</div>
</div>
</scroll-view>
<div hover-class="none" style="position: fixed; right: 20px; bottom: 20px" hover-stop-propagation="false" @click="toRecord" v-if="isLogin">
<div hover-class="none" style="position: fixed; right: 20px; bottom: 20px; z-index: 0" hover-stop-propagation="false" @click="toRecord" v-if="isLogin && userInfo.agencyId">
<g-panel-image :url="cdnBaseImg + 'quick_application0610.svg'" size="96" />
</div>
<g-filter :show.sync="whichOneShow" @hideDrawer="(e) => (whichOneShow = e)" ref="filterChild" top="43px" :getFilterDataNew="getFilterData" @filterObj="receiveFromChild"></g-filter>
<u-popup v-model="showPop" mode="bottom" uZindex="9999" border-radius="12" :closeable="true" :mask-close-able="true">
<div class="g_fs_18 g_text_c g_pt_32">
<div class="g_bg_f g_fw_600 g_pb_24">以下发单号向你发出关注邀请</div>
@ -214,6 +215,9 @@ export default {
return {
scrollTo: "",
selectedCity: "全国",
agencyInfo: uni.getStorageSync("agencyInfo"),
userInfo: uni.getStorageSync("apply-userinfo"),
whichOneShow: "",
toTop: false, //
getFilterData: {
sex: "-1",

@ -65,7 +65,7 @@
@clickItem="goPage('/root/bind/order?active=0')"
/>
</view>
<view class="g_mt_10">
<view class="g_mt_10" v-if="userInfo.agencyId">
<g-panel-card-num :list="billDataList" titleNav="/root/person/applyIndex" :border="true" :speed="1" :marginBottom="16" cusType="num" :height="26" :num="5" cusTitle="报名工单(我报的)" @clickItem="goOrder" />
<!-- <g-panel-card-num :list="todayDataList"
titleNav="/root/person/todayData"
@ -337,8 +337,10 @@ export default {
this.getAuthInfo();
this.getData();
this.getNum();
if(uni.getStorageSync("apply-userinfo").agencyStatus == 1){
this.getCompanyInfo();
}
}
} else {
that.waitNum_ups = 0;

@ -2,7 +2,7 @@
<view class="p-root-bind-my-main g_flex_column_center flex_center g_w_all g_h_all g_bg_f_5 g_kuaishou" :style="{ 'background-image': showBg ? 'url(' + cdnBaseImg + 'share_bg.svg)' : '' }" :class="showBg ? 'g_pt_32' : ''">
<view class="g_flex_row_center g_fs_22 g_c_3 g_fw_600 g_mb_24" v-if="showBg"></view>
<!-- #ifdef APP-PLUS || MP-WEIXIN -->
<image :src="shareJobImg" show-menu-by-longpress style="width: 343px; height: 555px; margin: 0 auto; display: block" mode=""></image>
<image :src="shareJobImg" show-menu-by-longpress style="width: 343px; height: 635px; margin: 0 auto; display: block" mode=""></image>
<view class="g_text_c g_fs_16 g_mt_12 g_mb_12 g_fw_600">长按图片转发给微信好友</view>
<!-- #endif -->
<!-- #ifdef APP-PLUS -->
@ -69,7 +69,7 @@
</view>
<!-- #endif -->
<view v-if="allowClick">
<view v-if="allowClick && false">
<view class="g_h_100"></view>
<g-panel-fixed>
<slot>
@ -348,7 +348,7 @@ export default {
success(res) {
console.log("res111", res);
canvas.width = res.width;
canvas.height = res.height;
canvas.height = res.height + 250;
mycenter = canvas.width;
myheight = canvas.height;
const img = canvas.createImage();
@ -356,11 +356,11 @@ export default {
console.log("img111", img);
img.onload = (info) => {
//
that.G.roundRect1(ctx, 0, 0, canvas.width, canvas.height, 0, baseColor);
that.G.roundRect1(ctx, 0, 0, canvas.width, canvas.height + 250, 0, baseColor);
//
that.G.roundRect1(ctx, (mycenter - canvas.width + 120) / 2, 280, canvas.width - 120, canvas.height - 360, 180, "#fff");
//
that.G.roundRect1(ctx, (mycenter - 800) / 2, canvas.height - 300, 800, 136, 135, baseColor);
that.G.roundRect1(ctx, (mycenter - 800) / 2, canvas.height - 600, 800, 136, 135, baseColor);
let qrTop = 1195;
//
that.G.roundRect1(ctx, (mycenter - 600) / 2 - 5, qrTop, 136, 136, 80, baseColor);
@ -370,7 +370,11 @@ export default {
that.G.roundRect1(ctx, (mycenter - 600) / 2 - 5, qrTop + 475, 136, 136, 80, baseColor);
//
that.G.roundRect1(ctx, (mycenter - 600) / 2 + 470, qrTop + 475, 136, 136, 80, baseColor);
that.G.fillTextLineBreak(ctx, "扫一扫关注我的发单号", (mycenter - "扫一扫关注我的发单号".length * 54) / 2 + 40, canvas.height - 215, "扫一扫关注我的发单号".length * 54, 58, "#333", 54, 600); //
//
that.G.fillTextLineBreak(ctx, "扫一扫关注我的发单号", (mycenter - "扫一扫关注我的发单号".length * 54) / 2 + 40, canvas.height - 515, "扫一扫关注我的发单号".length * 54, 58, "#333", 54, 600); //
that.G.drawCenteredText(ctx, mycenter, canvas.height - 300, [{ content: "该图片请不要发给工友", color: "#d30000", fontWeight: 500, fontSize: 72 }]);
that.G.drawCenteredText(ctx, mycenter, canvas.height - 200, [{ content: "关注后能直接看到单子的代理费/佣金", color: "#333", fontWeight: 500, fontSize: 48 }]);
//
that.G.roundRect_yuan(ctx, (mycenter - 360) / 2, 110, 360, "#ffffff");
@ -381,7 +385,7 @@ export default {
console.log("res333", res);
img.src = res.path;
img.onload = () => {
that.G.roundRect(ctx, img, (mycenter - 800) / 2 + 100, canvas.height - 265, 70, 70, 0);
that.G.roundRect(ctx, img, (mycenter - 800) / 2 + 100, canvas.height - 565, 70, 70, 0);
resolve(true);
};
},
@ -509,7 +513,7 @@ export default {
{ content: info.downNum.toString(), color: "#000", fontWeight: 500, fontSize: 80, space: 20 },
{ content: "粉丝", color: "#666", fontWeight: 500, fontSize: 56, space: 40 },
];
that.G.drawCenteredText(ctx, mycenter , 745, textSegments);
that.G.drawCenteredText(ctx, mycenter, 745, textSegments);
imgres(canvas);
};
},

@ -7,14 +7,15 @@
<g-loading />
</div>
<div v-if="speed == 1">
<view class="r_box g_flex_row_between flex_center g_pl_16 g_pr_16 g_fs_16" @click="goUserMain" style="height: 60px">
<view class="r_box g_mb_10" v-if="(isSharePage && isFans == 2) || !isSharePage">
<div class="g_flex_row_between flex_center g_pl_16 g_pr_16 g_fs_16 g_border_e_b" @click="goUserMain" style="height: 60px">
<view class="g_fw_600 g_mr_4 g_flex_column_center">项目方</view>
<view class="g_flex_row_end flex_center g_flex_1">
<span class="g_c_6" selectable="false" space="false" decode="false">{{ jobDetail.fullName ? jobDetail.fullName : jobDetail.agencyName }}</span>
<span class="iconfont icon-gengduo11 g_fs_14 g_c_6 g_ml_4"></span>
</view>
</view>
<div class="r_box g_mb_10 g_mt_10 g_pl_16 g_pr_16 servicePrice" @click="showFee" style="height: 60px">
</div>
<div class="g_mb_10 g_pl_16 g_pr_16 servicePrice" @click="showFee" style="height: 60px">
<div class="g_flex_row_between flex_center g_fs_16">
<div class="g_flex_row_start" style="flex: none">
<div class="g_fw_600 g_mr_4 g_hs_67 g_flex_column_center">代理佣金</div>
@ -27,9 +28,10 @@
</div>
</div>
</div>
</view>
<!-- 基本信息 -->
<view class="g_bg_f g_pt_10 g_pl_16 g_pr_16 g_mt_10 g_kuaishou g_radius_8 g_pb_16">
<view class="g_bg_f g_pt_10 g_pl_16 g_pr_16 g_kuaishou g_radius_8 g_pb_16">
<div class="m-info g_mb_12">
<view class="g_mb_10 g_flex_row_between flex_center">
<view class="g_flex_1 g_c_3 g_fs_20 g_fw_bold">{{ jobDetail.jobName }}</view>
@ -170,8 +172,8 @@
</view>
</view>
<view class="" v-if="isLogin">
<view class="contactInfo" style="white-space: pre-line">{{ userInfo.noticeEndStr ? userInfo.noticeEndStr : "详情咨询:" + userInfo.tel }}</view>
<view class="g_fs_14 g_text_c g_mt_16" v-if="userInfo.agencyStatus == 1">
<view class="contactInfo" style="white-space: pre-line">{{ loginInfo.noticeEndStr ? loginInfo.noticeEndStr : "详情咨询:" + loginInfo.tel }}</view>
<view class="g_fs_14 g_text_c g_mt_16" v-if="loginInfo.agencyStatus == 1">
以上联系人可以
<span class="g_fw_600" @click="changeContact" style="color: #576b95; text-decoration: underline">改成我的</span>
</view>
@ -553,11 +555,9 @@ export default {
// "", this.jobDetail.jobName + " " + this.jobDetail.priceStr + " " + " ");
let that = this;
let path;
if (this.isMember) {
path = `/root/detail/job?id=${that.jobDetail.id}&from=home&userId=${that.userInfo.user.id}`;
} else {
path = `/root/detail/job?id=${that.jobDetail.id}&from=home`;
}
console.log("that.loginInfo", that.loginInfo);
// id___
path = `/root/detail/job?scene=id=${that.jobDetail.id}_${that.jobDetail.agencyId}_${that.shareUserId || that.loginInfo.user.id}_${that.shareUserAgencyId ? (that.isFans == 2 ? that.loginInfo.agencyId : that.shareUserAgencyId) : that.loginInfo.agencyId}`;
return {
promise: new Promise((resolve, reject) => {
uni.showLoading({
@ -586,6 +586,11 @@ export default {
return {
globalData: getApp().globalData,
videoContextTemp: {},
isSharePage: false, //
isFans: false,
shareUserId: null, // id
shareJobAgencyId: null, // id
shareUserAgencyId: null, // id
corpUserFlag: false,
agreeRadio: ["agree"],
isPerson: false,
@ -673,19 +678,34 @@ export default {
},
onLoad(options) {
console.log("详情", options);
let loginUrl;
if (options.id) {
this.uid = options.id;
loginUrl = "/root/person/loginIndex?type=detail&path=/root/detail/job";
} else if (options.scene) {
var sceneStr = decodeURIComponent(options.scene);
var sceneJson = this.G.sceneToJson(sceneStr);
console.log("sceneJson===", sceneJson);
console.log('id对应的角色','职位id_职位项目方_分享人_分享人团队');
// id___
this.uid = sceneJson.id.split("_")[0]; //id
this.shareJobAgencyId = sceneJson.id.split("_")[1]; //id
this.shareUserId = sceneJson.id.split("_")[2]; //id
this.shareUserAgencyId = sceneJson.id.split("_")[3]; //id
this.isSharePage = true;
loginUrl = `/root/person/loginIndex?type=detail&path=/root/detail/job&scene=${JSON.stringify(sceneJson)}`;
}
if (options.from) {
this.from = options.from;
}
this.from = options.from || "home";
if (!uni.getStorageSync("apply-token")) {
console.log("apply-token");
uni.navigateTo({
url: "/root/person/loginIndex?type=detail&path=/root/detail/job&id=" + options.id,
console.log("options.scene", options.scene);
uni.reLaunch({
url: loginUrl,
});
return;
}
this.shareJobAgencyId && this.checkIsFans(this.shareJobAgencyId);
this.loginInfo = uni.getStorageSync("apply-userinfo");
// if (uni.getStorageSync("apply-AGENCY_MAMBER_LIST")) {
// this.applyList = uni.getStorageSync("apply-AGENCY_MAMBER_LIST");
@ -698,8 +718,6 @@ export default {
// console.log("this.applyList", this.applyList);
// });
// }
console.log("this.applyList", this.applyList);
},
onShow() {
let that = this;
@ -743,7 +761,9 @@ export default {
num1++;
}
});
this.toKnowInfo(res.agencyId);
that.speed = 1;
that.attention = true;
// this.toKnowInfo(res.agencyId);
});
}
uni.getSystemInfo({
@ -962,8 +982,21 @@ export default {
if (!this.attention) {
return false;
}
let params = {
jobId: this.jobDetail.id,
jobName: this.jobDetail.jobName,
title: "报名",
type: that.jobDetail.jobType,
agencyId: that.jobDetail.agencyId,
};
if (that.isFans !== false) {
params.isFans = that.isFans;
}
that.shareUserId && (params.agencyUserId = that.isFans == 2 ? '' : that.shareUserId);
// ,id,
that.shareUserAgencyId && (params.shareUserAgencyId = that.isFans == 2 ? that.loginInfo.agencyId : that.shareUserAgencyId);
uni.navigateTo({
url: "/root/home/quickApplication?jobId=" + this.jobDetail.id + "&jobName=" + this.jobDetail.jobName + "&title=报名&type=" + that.jobDetail.jobType + "&agencyId=" + that.jobDetail.agencyId,
url: `/root/home/quickApplication?params=${JSON.stringify(params)}`,
});
// if (this.jobDetail.recruitment == 1) {
// this.formInfo = {
@ -1422,7 +1455,7 @@ export default {
//
that.G.roundRect1(ctx, mycenter - 712 / 2, line7, 712, 100, 4, "#00b666"); //
//
that.G.fillTextLineBreak(ctx, "立即咨询", mycenter - 24 - ctx.measureText("立即咨询").width / 2 + 100, line7 + 65, 300, 120, "#fff", titleFontSize, "500"); //
that.G.fillTextLineBreak(ctx, "立即咨询", mycenter - 24 - ctx.measureText("立即咨询").width / 2, line7 + 65, 300, 120, "#fff", titleFontSize, "500"); //
// logo
uni.downloadFile({
url: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/pugongying/goxj2-qpwbo.png",
@ -1454,6 +1487,13 @@ export default {
console.log("all err", err);
});
},
checkIsFans(upAgencyId) {
let that = this;
that.G.Post("/assistant/circle/agency/checkUserTypeForAssistant", { upAgencyId }, (res) => {
console.log("isFans", res);
that.isFans = res;
});
},
},
};
</script>

@ -1,7 +1,7 @@
<template>
<div class="p-root-detail-user g_w_all g_bg_page g_kuaishou">
<u-navbar backIconColor="#333" :borderBottom="false" :immersive="true" :customBack="goHome" :background="{ background: navColor }" :backIconName="fromShare ? 'home' : 'arrow-left'"></u-navbar>
<view class=" u-navbar-fixed" style="background-color: #caf1e0 !important;height:160px"></view>
<view class="u-navbar-fixed" style="background-color: #caf1e0 !important; height: 160px"></view>
<div class style="background-color: #caf1e0 !important">
<view class="m-info g_p_20 g_pt_12 g_pb_0 g_bg_f g_position_rela" hover-class="none" style="margin-top: 0; border-radius: 8px 8px 0 0">
<view class="g_flex_row_start">
@ -37,7 +37,7 @@
</div>
<div class="g_h_10"></div>
<div class>
<quickLogin @successLogin="successLogin" v-if="!agencyInfo.id">
<quickLogin @successLogin="successLogin" v-if="!isLogin">
<div style="width: calc(100vw - 40px)" class>
<g-button btnText="申请关注" size="auto" type="primary" class></g-button>
</div>
@ -96,14 +96,15 @@
</div>
</div>
<!-- 发布职位确认框 -->
<u-modal v-model="submitConfirm" width="90%" negativeTop="52" confirmText="发布职位" :showTitle="false" :confirmStyle="{ color: '#576b95', 'font-weight': 600 }" :cancelStyle="{ color: '#000', 'font-weight': 600 }" :showConfirmButton="false">
<u-modal v-model="submitConfirm" width="90%" negativeTop="150" confirmText="发布职位" :showTitle="false" :confirmStyle="{ color: '#576b95', 'font-weight': 600 }" :cancelStyle="{ color: '#000', 'font-weight': 600 }" :showConfirmButton="false">
<div class="g_fs_17 g_text_c">
<div class style="padding: 42px 24px 36px">
<div class="g_text_c g_fw_600 g_c_0">创建团队/企业</div>
<div class="g_text_c g_c_6 g_mb_16 g_mt_16">创建团队后可关注发单号浏览职位及工单报名</div>
<div class="g_text_l g_c_6 g_mb_8 g_mt_24 g_pl_12">团队名称/企业简称</div>
<div class="g_fs_14 g_pl_12 g_bg_f2 g_border_d g_radius_4 g_flex_row_start flex_center">
<u-input v-model="agencyInfo.fullName" :customStyle="{ color: disabled ? '#999' : '#333', fontSize: '17px' }" :disabled="disabled" height="96" placeholder="请填写团队/企业简称"></u-input>
<u-input v-model="agencyInfo.fullName" :customStyle="{ color: disabled ? '#999' : '#333', fontSize: '17px' }" :disabled="disabled" height="96" placeholder="如:上海发财劳务"></u-input>
</div>
<div class="g_text_l g_c_9 g_mt_8 g_fs_14 g_pl_12">创建团队后可关注发单号浏览职位及工单报名</div>
</div>
<div class="g_flex_row_center flex_center g_fw_600 g_border_e_t">
<div class="g_flex_1 g_h_50 g_text_c g_c_0 g_border_e_r" hover-class="thover" @click="submitConfirm = false" style="line-height: 50px">取消</div>
@ -244,6 +245,7 @@ export default {
onShow() {
let that = this;
that.isLogin = uni.getStorageSync("apply-token") ? true : false; // uni.getStorageSync("apply-token");
console.log("that.isLogin", that.isLogin);
this.loginInfo = uni.getStorageSync("apply-userinfo");
that.G.Get("/checkUserLogin", {}, (res) => {
console.log("checkUserLogin", res);
@ -298,10 +300,12 @@ export default {
return new Promise((reso, reject) => {
that.G.Get(that.api.login_agencyInfo, {}, (aRes) => {
console.log("获取团队信息:", aRes);
if (aRes.agency) {
that.disabled = aRes.agency.fullName ? true : false;
that.agencyInfo = { ...aRes.agency, fullName: aRes.agency.fullName ? aRes.agency.fullName : that.agencyInfo.fullName };
uni.setStorageSync("agencyInfo", aRes.agency);
}
setTimeout(() => {
reso();
}, 200);
@ -607,6 +611,9 @@ export default {
}
}
this.G.Get(this.api.bind_subscribeSubmit + "/" + that.uid, { agencyId: that.agencyInfo.id, agencyName: that.agencyInfo.fullName, source: _code, remark: " " }, (res) => {
this.getAgencyInfo().then(() => {
that.getAgencyById().then(() => {});
});
uni.showToast({
title: "申请成功",
icon: "none",
@ -615,7 +622,7 @@ export default {
uni.navigateTo({
url: "/root/person/inviteFollowSuccess",
});
reso();
// reso();
// that.checkHasApply();
console.log(res);
});
@ -675,10 +682,9 @@ export default {
let that = this;
this.isLogin = true;
console.log("successLogin", e);
this.getAgencyInfo().then(() => {
that.getAgencyInfo().then(() => {
that.getAgencyById().then(() => {
that.getDefault("init");
// that.query.page++;
if (that.info.recordStatus == 3 || that.info.recordStatus == 4 || that.info.recordStatus == 6) {
that.handleSubmit();
} else {
@ -689,6 +695,7 @@ export default {
});
}
}
that.getDefault("init");
});
});
},

@ -145,7 +145,14 @@ export default {
uni.getClipboardData({
success(res) {
console.log(res)
if(res.data){
that.aitext = res.data
}else{
uni.showToast({
title: '请先复制内容',
icon: 'none',
})
}
},
fail() {
uni.showToast({

@ -3,10 +3,9 @@
<AiApply class="" @outputInfo="getTownsManInfo" />
<view class="">
<view class="card-tip g_pt_12 g_pb_8 g_pl_20 g_c_6">老乡信息</view>
<view class="card-tip g_pt_12 g_pb_8 g_pl_20 g_c_6">工友信息</view>
<view>
<view class="g_bg_f g_pl_15 g_pr_15 g_pt_10 g_ml_10 g_mr_10 g_radius_8 g_mb_12"
v-for="(item, index) in persenInfo" :key="index" style="margin-bottom: 12px;">
<view class="g_bg_f g_pl_15 g_pr_15 g_pt_10 g_ml_10 g_mr_10 g_radius_8 g_mb_12" v-for="(item, index) in persenInfo" :key="index" style="margin-bottom: 12px">
<view class="g_pb_2 g_flex_row_between">
<view class="g_flex_1 g_flex_column_center g_mr_10">
<view class="g_flex_row_start g_fs_16 g_fw_bold">
@ -19,8 +18,7 @@
</view>
</view>
<view class="g_flex_none g_flex_row_end">
<view class="g_flex_row_end g_pl_16 g_pr_16 g_pt_9 g_pb_9"
style="background-color: #f0fff8; border-radius: 17px">
<view class="g_flex_row_end g_pl_16 g_pr_16 g_pt_9 g_pb_9" style="background-color: #f0fff8; border-radius: 17px">
<view class="g_flex_row_end" @click="goFellow(item, index)">
<view class="g_flex_column_center">
<i class="iconfont icon-bianji g_c_3"></i>
@ -46,8 +44,7 @@
</view>
</view>
<view class="g_pb_17 g_flex_row_start">
<g-panel-image :url="item.idCardImageUrl" v-if="item.idCardImageUrl" radius="4" size="112"
@clickItem="handleClickIDcard" />
<g-panel-image :url="item.idCardImageUrl" v-if="item.idCardImageUrl" radius="4" size="112" @clickItem="handleClickIDcard" />
<view v-if="item.imgs" class="g_flex_row_start">
<view v-for="i in item.imgs" class="g_ml_10">
<g-panel-image :url="i" radius="4" size="112" @clickItem="handleClickIDcard" />
@ -56,30 +53,23 @@
</view>
</view>
</view>
<view
class="g_flex_row_center flex_center g_flex_1 g_h_48 g_bg_f g_fs_16 g_c_main g_ml_10 g_mr_10 g_radius_8"
@click="goFellow('')" v-if="persenInfo.length <= 5">
<view class="g_flex_row_center flex_center g_flex_1 g_h_48 g_bg_f g_fs_16 g_c_main g_ml_10 g_mr_10 g_radius_8" @click="goFellow('')" v-if="persenInfo.length <= 5">
<!-- <view class="g_w_18 g_h_18 g_mr_6 g_text_c g_radius_20 g_border_main g_fsi_18" style="line-height: 13px">+</view> -->
<view class="g_flex_column_center">
<i class="iconfont icon-jia1 g_c_min g_mr_6" style="font-size: 18px"></i>
</view>
<view class="">添加老乡</view>
<view class="">添加工友</view>
</view>
<view>
<view class="card-tip g_pt_24 g_pb_8 g_pl_20 g_c_6">职位信息</view>
<view class="fs_top text-wrap">
<g-panel-form-slot :list="jobData" @clickResult="changePage" @changeTime="getInviteTime"
@changeAddress="changeAddress" @chooseAddress="chooseAddress"> </g-panel-form-slot>
<g-panel-form-slot :list="jobData" @clickResult="changePage" @changeTime="getInviteTime" @changeAddress="changeAddress" @chooseAddress="chooseAddress"> </g-panel-form-slot>
</view>
</view>
<view>
<view class="card-tip g_pt_24 g_pb_8 g_pl_20 g_c_6">报名备注</view>
<view class="g_flex_row_center g_p_10 g_pt_16 g_ml_10 g_mr_10 g_bg_f g_radius_8"
style="width: calc(100vw- 20px)">
<textarea class="weui-input g_flex_1 g_fs_16" placeholder="请输入报名备注" v-model="updateInfo.desp"
placeholder-style="color:#999" :maxlength="-1" auto-height
style="min-height: 137px; width: 100%; z-index: 0"></textarea>
<view class="g_flex_row_center g_p_10 g_pt_16 g_ml_10 g_mr_10 g_bg_f g_radius_8" style="width: calc(100vw- 20px)">
<textarea class="weui-input g_flex_1 g_fs_16" placeholder="请输入报名备注" v-model="updateInfo.desp" placeholder-style="color:#999" :maxlength="-1" auto-height style="min-height: 137px; width: 100%; z-index: 0"></textarea>
</view>
</view>
<view class="g_mt_12">
@ -99,8 +89,7 @@
<g-panel-fixed>
<slot>
<view class="g_flex_row_between g_pl_16 g_pr_16" style="z-index: 99">
<view class="g_fs_16 g_c_6 g_flex_c g_pl_8 g_pr_8 g_radius_6 g_ml_16" hover-class="thover"
@click="goReturn">取消</view>
<view class="g_fs_16 g_c_6 g_flex_c g_pl_8 g_pr_8 g_radius_6 g_ml_16" hover-class="thover" @click="goReturn"></view>
<g-button btnText="立即报名" type="primary" @clickBtn="submitForm" />
</view>
</slot>
@ -110,37 +99,35 @@
</view>
</template>
<script>
import {
nationlist
} from "../../utils/nation.js";
import dateUtil from "../../utils/dateUtil.js";
import AiApply from "./components/AiApply.vue"
export default {
import { nationlist } from "../../utils/nation.js";
import dateUtil from "../../utils/dateUtil.js";
import AiApply from "./components/AiApply.vue";
export default {
components: {
AiApply
AiApply,
},
onReady() {
this.G.setNavStyle();
let that = this;
uni.$on("getTownsman", function(data) {
uni.$on("getTownsman", function (data) {
console.log("getTownsman", data);
if (that.persenInfo.length == 0) {
that.persenInfo[0] = {
...data.info,
index: that.persenInfo.length
index: that.persenInfo.length,
};
} else if (data.info.index || data.info.index === 0) {
that.persenInfo[data.info.index] = data.info;
} else {
that.persenInfo[that.persenInfo.length] = {
...data.info,
index: that.persenInfo.length
index: that.persenInfo.length,
};
}
console.log("that.persenInfo", that.persenInfo);
that.$forceUpdate();
});
uni.$on("changeJobInfo", function(data) {
uni.$on("changeJobInfo", function (data) {
that.updateInfo.jobId = data.info.leafCateId;
that.updateInfo.jobName = data.info.title;
that.jobType = data.info.jobType;
@ -148,7 +135,7 @@
that.getJobDetail(data.info);
that.$forceUpdate();
});
uni.$on("resetTownsman", function(data) {
uni.$on("resetTownsman", function (data) {
if (data.reset) {
that.persenInfo = [];
}
@ -160,20 +147,22 @@
},
onLoad(options) {
let that = this;
console.log("options", options);
console.log("options.jobId", options.jobId);
if (options.jobId) {
this.updateInfo.jobId = options.jobId;
this.updateInfo.jobName = options.jobName;
let params = options.params ? JSON.parse(options.params) : {};
if (params.jobId) {
this.updateInfo.jobId = params.jobId;
this.updateInfo.jobName = params.jobName;
}
uni.setNavigationBarTitle({
title: options.title ? options.title : "报名",
title: params.title ? params.title : "报名",
});
if (options.type == 1 || options.type == 2) {
that.jobType = options.type;
}
if (options.agencyId) {
that.updateInfo.upAgencyId = options.agencyId;
}
if (params.type == 1 || params.type == 2) that.jobType = params.type;
if (params.agencyId) that.updateInfo.upAgencyId = params.agencyId;
(params.isFans === 0 || params.isFans) && (that.isFans = params.isFans);
params.agencyUserId && (that.updateInfo.agencyUserId = params.agencyUserId); // id
params.shareUserAgencyId && (that.updateInfo.agencyId = params.shareUserAgencyId); // id
this.updateInfo.interviewTimeStr = "";
setTimeout(() => {
that.IS_CREATOR = uni.getStorageSync("IS_CREATOR") == 1 ? true : false;
@ -182,87 +171,30 @@
//
let hour = new Date().getHours();
if (hour < 20 && hour >= 6) {
this.updateInfo.interviewTimeStr = dateUtil.formatDateYMD(new Date().toLocaleDateString()) +
" " + (hour + 1) + ":00";
this.updateInfo.interviewTimeStr = dateUtil.formatDateYMD(new Date().toLocaleDateString()) + " " + (hour + 1) + ":00";
} else if (hour >= 20) {
this.updateInfo.interviewTimeStr = dateUtil.formatDateYMD(new Date().toLocaleDateString()) +
" 19:30";
this.updateInfo.interviewTimeStr = dateUtil.formatDateYMD(new Date().toLocaleDateString()) + " 19:30";
} else if (hour < 6) {
this.updateInfo.interviewTimeStr = dateUtil.formatDateYMD(new Date().toLocaleDateString()) +
" 6:00";
this.updateInfo.interviewTimeStr = dateUtil.formatDateYMD(new Date().toLocaleDateString()) + " 6:00";
}
// that.updateInfo.interviewTimeStr = dateUtil.formatDateYMD(new Date().toLocaleDateString()) + " 06:00";
that.jobData = [{
icon: "",
label: "报名职位",
result: that.updateInfo.jobName,
path: "/root/other/search?from=record",
placeholder: "请选择报名职位",
fontColor: that.updateInfo.jobName == "请选择报名职位" ? "g_c_9" : "g_c_3",
tip: "applia-job",
require: true,
customRequire: true,
pColumn: 12,
},
{
icon: '',
label: '面试地址',
result: '',
value: that.updateInfo['interviewAddress'],
path: '',
addressDetail: {
latitude: that.updateInfo['interviewLat'],
longitude: that.updateInfo['interviewLng'],
},
tip: 'slot-choose&input-address',
placeholder: '请选择面试地址',
type: 'slot',
fontSize: '16px',
pColumn: 5,
pRow: 12,
require: false,
suffix: 'icon-dizhi1',
},
{
icon: "",
label: "面试时间",
result: "",
path: "",
value: that.updateInfo.interviewTimeStr,
tip: "slot-time",
require: true,
customRequire: true,
type: "slot",
pColumn: 12,
from: "reservation-time",
},
{
icon: "",
label: "财务结算",
result: "",
path: "",
value: "-",
tip: "slot-caiwu",
require: false,
customRequire: false,
type: "slot",
pColumn: 12,
from: "slot-caiwu",
},
];
that.$forceUpdate();
if (that.updateInfo.jobId) {
that.setFormList();
that.getJobDetail({
leafCateId: that.updateInfo.jobId,
});
} else {
that.setFormList();
}
}, 1);
},
data() {
return {
IS_CREATOR: false,
jobType: 2,
isFans: 2,
cdnBaseImg: this.G.store().cdnBaseImg,
nation: nationlist.map((item, index) => {
return item.name;
@ -287,35 +219,44 @@
agreeRadio: ["agree"],
jobData: [],
zhengceTextList: [],
btnLaoding: false
btnLaoding: false,
};
},
onShow() {
let that = this;
that.pageSpeed = -1;
},
methods: {
getTownsManInfo(info) {
console.log('info', info);
uni.$emit('getTownsman', {
info
})
console.log("info", info);
uni.$emit("getTownsman", {
info,
});
},
getJobDetail($data) {
let that = this;
that.G.Get(
that.api.job_personDetail + "/" + $data.leafCateId, {
that.api.job_personDetail + "/" + $data.leafCateId,
{
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;
if (that.isFans == 2) {
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";
} else {
policyStr = "薪资待遇:" + (res.record.salaryDetail || "详询客服") + "\n\n";
}
console.log("政策列表:", res);
that.jobData = [{
that.setFormList(policyStr);
}
);
},
setFormList(policyStr) {
let that = this;
if (that.isFans == 2) {
that.jobData = [
{
icon: "",
label: "报名职位",
result: that.updateInfo.jobName,
@ -328,23 +269,65 @@
pColumn: 12,
},
{
icon: '',
label: '面试地址',
result: '',
value: that.updateInfo['interviewAddress'],
path: '',
icon: "",
label: "面试时间",
result: "",
path: "",
value: that.updateInfo.interviewTimeStr,
tip: "slot-time",
require: true,
customRequire: true,
type: "slot",
pColumn: 12,
from: "reservation-time",
},
{
icon: "",
label: "面试地址",
result: "",
value: that.updateInfo["interviewAddress"],
path: "",
addressDetail: {
latitude: that.updateInfo['interviewLat'],
longitude: that.updateInfo['interviewLng'],
latitude: that.updateInfo["interviewLat"],
longitude: that.updateInfo["interviewLng"],
},
tip: 'slot-choose&input-address',
placeholder: '请选择面试地址',
type: 'slot',
fontSize: '16px',
tip: "slot-choose&input-address",
placeholder: "请选择面试地址",
type: "slot",
fontSize: "16px",
pColumn: 5,
pRow: 12,
require: false,
suffix: 'icon-dizhi1',
suffix: "icon-dizhi1",
},
{
icon: "",
label: "财务结算",
result: "",
path: "",
value: policyStr || "-",
tip: "slot-caiwu",
require: false,
customRequire: false,
type: "slot",
pColumn: 12,
from: "slot-caiwu",
},
];
} else {
that.jobData = [
{
icon: "",
label: "报名职位",
result: that.updateInfo.jobName,
path: '',
placeholder: "请选择报名职位",
fontColor: that.updateInfo.jobName == "请选择报名职位" ? "g_c_9" : "g_c_3",
tip: "applia-job",
require: true,
customRequire: true,
pColumn: 12,
},
{
icon: "",
@ -364,7 +347,7 @@
label: "财务结算",
result: "",
path: "",
value: policyStr,
value: policyStr || "-",
tip: "slot-caiwu",
require: false,
customRequire: false,
@ -374,9 +357,9 @@
},
];
}
);
},
that.$forceUpdate();
},
handleClickIDcard(e) {
this.info.idCard = e;
},
@ -393,27 +376,25 @@
console.log("获取预约面试时间:", e);
this.updateInfo.interviewTimeStr = e;
},
updateDom() {
},
updateDom() {},
chooseAddress(e) {
let that = this;
console.log(e);
this.updateInfo.interviewLat = e.lat;
this.updateInfo.interviewLng = e.lng;
this.updateInfo.interviewAddress = e.address;
this.jobData[1].value = this.updateInfo.interviewAddress
this.jobData[1].value = this.updateInfo.interviewAddress;
// billForm.value.storeAddr = e.address;
console.log('this.updateInfo', this.updateInfo);
console.log('e', e);
this.$forceUpdate()
console.log("this.updateInfo", this.updateInfo);
console.log("e", e);
this.$forceUpdate();
},
changeAddress(e) {
this.updateInfo.interviewAddress = e;
console.log('this.updateInfo', this.updateInfo);
console.log('e', e);
console.log("this.updateInfo", this.updateInfo);
console.log("e", e);
// this.info.address = e;
this.$forceUpdate()
this.$forceUpdate();
},
radioGroupChange(e) {},
goReturn() {
@ -452,7 +433,7 @@
index: $index,
};
}
console.log('params', params);
console.log("params", params);
if (info) {
uni.navigateTo({
url: "/root/home/editTownsman?" + that.G.objToStr(params),
@ -488,13 +469,13 @@
return false;
}
if (that.btnLaoding) {
return false
return false;
}
that.btnLaoding = true
that.btnLaoding = true;
let submitInfo = {
...that.updateInfo,
}
};
submitInfo.applyUserJson = JSON.stringify(
that.persenInfo.map((item) => {
return {
@ -508,22 +489,23 @@
nation: item.nation,
tel: item.tel,
address: item.address,
userApplyOrderFiles: item.imgs && item.imgs.length > 0 ?
item.imgs
userApplyOrderFiles:
item.imgs && item.imgs.length > 0
? item.imgs
.map((itm) => {
return itm
return itm;
})
.join(',') :
'',
.join(",")
: "",
// desp: item.desp,
// policyIdx: item.policyIdx,
// pickerStr: item.pickerStr,
}
};
})
)
console.log('submitInfo', submitInfo);
);
console.log("submitInfo", submitInfo);
// return
that.G.Post('/yishoudan/common/order/addBatch', submitInfo, (res) => {
that.G.Post("/yishoudan/common/order/addBatch", submitInfo, (res) => {
// uni.hideLoading();
uni.showToast({
icon: "success",
@ -531,7 +513,7 @@
duration: 2000,
});
// that.persenInfo = [];
that.btnLaoding = false
that.btnLaoding = false;
// that.$forceUpdate();
setTimeout(() => {
@ -588,11 +570,11 @@
// }, 500);
},
},
};
};
</script>
<style lang="scss">
.p-root-home-quick {
.p-root-home-quick {
min-height: 100%;
.fs_top {
@ -626,5 +608,5 @@
.text-wrap {
white-space: pre-wrap;
}
}
}
</style>

@ -40,6 +40,18 @@
<!-- #endif -->
</slot>
</g-panel-form-slot>
<view class="g_flex_row_end" hover-class="none" hover-stop-propagation="false"
style="padding: 10px 22px;"
>
<view class=""
style="position: relative;font-size: 14px;color: #576b95;"
>
获取微信昵称
<button open-type="getUserInfo" @getuserinfo="getUserInfo"
style="position: absolute;left: 0;top: 0;width: 100%;height: 100%;opacity: 0;color: #576b95;"
>获取微信昵称</button>
</view>
</view>
<view class="g_flex_row_center" style="margin-top:90px">
<g-button btnText="提交" type="primary" @clickBtn="submitForm" />
</view>
@ -105,6 +117,10 @@ export default {
});
},
methods: {
getUserInfo(e){
console.log(e)
this.info.value = e.detail.userInfo.nickName;
},
submitForm() {
let that = this;
if (that.info.value == "") {

@ -63,7 +63,7 @@
<script>
export default {
onShareAppMessage() {
return this.G.shareFun()
return this.G.shareFun();
},
data() {
return {
@ -72,195 +72,198 @@ export default {
v3BaseImg: this.G.store().v3BaseImg,
isLoginCode: false,
form: {
tel: '',
pwd: '',
tel: "",
pwd: "",
},
path: '',
level: '',
path: "",
level: "",
msgCode: {
//
code: '',
btnText: '获取验证码', // 6s
code: "",
btnText: "获取验证码", // 6s
countdown: 0,
timer: null,
},
fromPageType: '',
fromPageType: "",
currentId: null,
}
};
},
onLoad(options) {
console.log('登录页:', options)
this.path = options.path ? options.path : ''
this.level = options.level ? options.level : ''
console.log("登录页:", options);
this.path = options.path ? options.path : "";
this.level = options.level ? options.level : "";
if (options.type) {
this.setOptions(options)
this.setOptions(options);
}
console.log('123')
console.log("123");
this.getCode((res) => {
uni.setStorageSync('apply-code', res)
})
uni.setStorageSync("apply-code", res);
});
},
onShow() {
this.G.clearLocalStorage()
this.G.clearLocalStorage();
},
onHide() {
if (this.msgCode.timer) {
clearInterval(this.msgCode.timer)
clearInterval(this.msgCode.timer);
}
},
methods: {
switchChange() {
console.log('switchChecked', this.switchChecked);
console.log("switchChecked", this.switchChecked);
console.log(this.switchChecked);
this.switchChecked = !this.switchChecked;
},
hideKeyboard(e) {
console.log(e)
console.log(e);
if (e.length >= 4) {
console.log('123123123')
uni.hideKeyboard()
console.log("123123123");
uni.hideKeyboard();
}
},
setOptions(options) {
console.log('options', options)
this.fromPageType = options.type
if (options.type == 'detail') {
this.currentId = options.id
console.log("options", options);
this.fromPageType = options.type;
if (options.type == "detail") {
this.currentId = `id%3D${JSON.parse(options.scene).id}`;
console.log('this.currentId',this.currentId);
}
},
goHome() {
let that = this,
url = '',
params = {}
if (that.form.tel == '') {
url = "",
params = {};
if (that.form.tel == "") {
uni.showToast({
title: '请输入手机号',
icon: 'none',
})
return false
title: "请输入手机号",
icon: "none",
});
return false;
}
if (!/^[1][3,4,5,6,7,8,9][0-9]{9}$/.test(that.form.tel)) {
uni.showToast({
title: '请输入正确的手机号',
icon: 'none',
})
return false
title: "请输入正确的手机号",
icon: "none",
});
return false;
}
if (that.isLoginCode) {
//
if (that.msgCode.code == '') {
if (that.msgCode.code == "") {
uni.showToast({
title: '请输入验证码',
icon: 'none',
})
return false
title: "请输入验证码",
icon: "none",
});
return false;
}
url = that.api.login_code
url = that.api.login_code;
params = {
tel: that.form.tel,
code: that.msgCode.code,
loginType: 'login',
wxCode: '',
}
loginType: "login",
wxCode: "",
createFakerAgency: 1,
};
} else {
//
if (that.form.pwd == '') {
if (that.form.pwd == "") {
uni.showToast({
title: '请输入密码',
icon: 'none',
})
return false
title: "请输入密码",
icon: "none",
});
return false;
}
url = that.api.login_user
url = that.api.login_user;
params = {
tel: that.form.tel,
password: that.form.pwd,
loginType: 'password',
wxCode: '',
}
loginType: "password",
wxCode: "",
createFakerAgency: 1,
};
}
uni.showLoading({
title: '登录中...',
title: "登录中...",
mask: true,
})
});
// #ifdef MP-WEIXIN
uni.checkSession({
success() {
//session_key
that.loginAccount(url, params)
that.loginAccount(url, params);
},
fail() {
// session_key
that.getCode((res) => {
uni.setStorageSync('apply-code', res)
uni.setStorageSync("apply-code", res);
setTimeout(() => {
that.loginAccount(url, params)
}, 300)
})
that.loginAccount(url, params);
}, 300);
});
},
})
});
// #endif
// #ifdef H5 || APP-PLUS || MP-TOUTIAO || MP-KUAISHOU
that.loginAccount(url, params)
that.loginAccount(url, params);
// #endif
},
loginAccount(url, params) {
let that = this,
_params = {}
params.wxCode = uni.getStorageSync('apply-code')
_params = {};
params.wxCode = uni.getStorageSync("apply-code");
_params = Object.assign(params, {
path: that.path,
})
console.log('登录参数:', _params, ' 获取分享参数:', uni.getStorageSync('apply-jobdetail-id'))
});
console.log("登录参数:", _params, " 获取分享参数:", uni.getStorageSync("apply-jobdetail-id"));
that.G.Get(url, _params, (res) => {
console.log('登录成功:', res)
that.setToken(res)
})
console.log("登录成功:", res);
that.setToken(res);
});
},
getCode(callback = () => {}) {
uni.login({
success(wxRes) {
callback(wxRes.code)
callback(wxRes.code);
},
fail(res) {
console.log(res)
console.log(res);
},
})
});
},
getphonenumber(e) {
let that = this
let that = this;
if (e.detail.code) {
// buttontoken
uni.checkSession({
success() {
//session_key
that.loginWX(e)
that.loginWX(e);
},
fail() {
// session_key
that.getCode((res) => {
uni.setStorageSync('apply-code', res)
uni.setStorageSync("apply-code", res);
setTimeout(() => {
that.loginWX(e)
}, 300)
})
that.loginWX(e);
}, 300);
});
},
})
});
} else {
//
}
},
loginWX(e) {
let that = this
let that = this;
that.G.Get(
that.api.login_getWxInfo,
{
code: uni.getStorageSync('apply-code'),
code: uni.getStorageSync("apply-code"),
btnCode: e.detail.code,
iv: e.detail.iv,
encryptedData: e.detail.encryptedData,
@ -272,107 +275,108 @@ export default {
openId: wxRes.openId,
tel: wxRes.phoneNumber,
unionid: wxRes.unionid,
createFakerAgency: 1,
},
(res) => {
that.setToken(res)
that.setToken(res);
}
)
);
}
)
);
},
// token
setToken($data) {
let that = this
console.log('获取登录用户信息:', $data)
uni.hideLoading()
uni.setStorageSync('apply-userinfo', $data) // ,
uni.setStorageSync('apply-userinfo-copy', JSON.stringify($data)) //
uni.setStorageSync('apply-avatar', $data.imgSrc) // -- 便
uni.setStorageSync('apply-username', $data.userName) // -- 便
uni.setStorageSync('apply-tel', $data.tel) // -- 便
uni.setStorageSync('apply-token', $data.token) // -- token便
uni.setStorageSync('apply-agencyId', $data.user.agencyId) // -- id便
uni.setStorageSync('apply-uid', $data.user.id) // -- 便
uni.setStorageSync('apply-supplierAccount', $data.supplierAccount) // -- 便 0. 1.
uni.$emit('isGlogin', {
let that = this;
console.log("获取登录用户信息:", $data);
uni.hideLoading();
uni.setStorageSync("apply-userinfo", $data); // ,
uni.setStorageSync("apply-userinfo-copy", JSON.stringify($data)); //
uni.setStorageSync("apply-avatar", $data.imgSrc); // -- 便
uni.setStorageSync("apply-username", $data.userName); // -- 便
uni.setStorageSync("apply-tel", $data.tel); // -- 便
uni.setStorageSync("apply-token", $data.token); // -- token便
uni.setStorageSync("apply-agencyId", $data.user.agencyId); // -- id便
uni.setStorageSync("apply-uid", $data.user.id); // -- 便
uni.setStorageSync("apply-supplierAccount", $data.supplierAccount); // -- 便 0. 1.
uni.$emit("isGlogin", {
uid: $data.user.id,
})
});
if (!that.path) {
uni.switchTab({
url: '/pages/home/index',
})
} else if (that.fromPageType == 'detail') {
url: "/pages/home/index",
});
} else if (that.fromPageType == "detail") {
uni.reLaunch({
url: `${that.path}?id=${that.currentId}`,
})
uni.navigateBack({
delta: 1,
})
return
url: `${that.path}?scene=${that.currentId}`,
});
// uni.navigateBack({
// delta: 1,
// })
return;
} else {
//
uni.reLaunch({
url: that.path,
})
});
}
// if ($data.agencyStatus == 1) {
if ($data.agencyStatus == 1) {
that.G.Get(that.api.login_agencyInfo, {}, (aRes) => {
console.log('获取团队信息:', aRes)
uni.setStorageSync('agencyInfo', aRes.agency) // 1 2
uni.setStorageSync('IS_CREATOR', aRes.agency.userId == $data.user.id || $data.admin == true ? 1 : 2) // 1 2
console.log("获取团队信息:", aRes);
uni.setStorageSync("agencyInfo", aRes.agency); // 1 2
uni.setStorageSync("IS_CREATOR", aRes.agency.userId == $data.user.id || $data.admin == true ? 1 : 2); // 1 2
//
uni.setStorageSync('SHOW_INVITE', 1)
})
// }
uni.setStorageSync("SHOW_INVITE", 1);
});
}
},
//
handleSendMsg() {
let that = this
let that = this;
if (this.msgCode.countdown > 0) {
return false
return false;
}
if (that.form.tel == '') {
if (that.form.tel == "") {
uni.showToast({
title: '请输入手机号后再获取',
icon: 'none',
})
return false
title: "请输入手机号后再获取",
icon: "none",
});
return false;
}
if (!/^[1][3,4,5,6,7,8,9][0-9]{9}$/.test(that.form.tel)) {
uni.showToast({
title: '请输入正确的手机号',
icon: 'none',
})
return false
title: "请输入正确的手机号",
icon: "none",
});
return false;
}
that.G.Get(
that.api.login_sendMsg,
{
tel: that.form.tel,
type:"assistant",
type: "assistant",
},
(res) => {
that.msgCode.countdown = 60
that.msgCode.btnText = that.msgCode.countdown + 's'
clearInterval(that.msgCode.timer)
that.msgCode.countdown = 60;
that.msgCode.btnText = that.msgCode.countdown + "s";
clearInterval(that.msgCode.timer);
that.msgCode.timer = setInterval(() => {
if (that.msgCode.countdown > 0) {
that.msgCode.countdown--
that.msgCode.btnText = that.msgCode.countdown + 's'
that.msgCode.countdown--;
that.msgCode.btnText = that.msgCode.countdown + "s";
} else {
clearInterval(that.msgCode.timer)
that.msgCode.timer = null
that.msgCode.btnText = '获取验证码'
clearInterval(that.msgCode.timer);
that.msgCode.timer = null;
that.msgCode.btnText = "获取验证码";
}
}, 1000)
}, 1000);
}
)
);
},
},
}
};
</script>
<style lang="scss">

@ -19,7 +19,7 @@
</view>
</view>
</view>
<view class="g_fs_14 g_mt_4 g_pl_10 g_c_9"> 关闭后首页收到的发单号邀请不再主动弹出 </view>
<view class="g_fs_14 g_mt_8 g_pl_20 g_c_9"> 关闭后首页收到的发单号邀请不再主动弹出 </view>
</view>
<g-panel-form-item
:list="[

@ -11,29 +11,53 @@
<div class="g_c_9 g_fs_14">您有{{ applyNum }}条申请等待审核</div>
</div>
</div>
<div class="r_box g_fs_20 g_text_c g_h_60 g_ml_10 g_mr_10 g_mb_10 g_fw_600" style="line-height: 60px">{{ agencyInfo.fullName || agencyInfo.userName }}</div>
<!-- <div class="r_box g_fs_20 g_text_c g_h_60 g_ml_10 g_mr_10 g_mb_10 g_fw_600" style="line-height: 60px">
{{ agencyInfo.fullName || agencyInfo.userName }}
</div> -->
<div class="g_mb_12">
<g-panel-form-item
:list="[
{
icon: '',
label: agencyInfo.fullName || agencyInfo.userName,
result: '',
path: '',
pRow: 12,
itype: 'icon',
},
]"
@clickItem="openChoose"
/>
</div>
<div class="r_box g_ml_10 g_mr_10">
<div v-for="item in memberList" :key="item.id" @click="editMember(item)" class="g_border_e_b g_flex_row_between g_fs_18" style="padding: 18px 10px">
<div class="g_flex_row_start flex_center g_fw_600">
<div v-for="item in memberList" :key="item.id"
@click="editMember(item)"
class="g_border_e_b g_flex_row_between g_fs_18"
style="padding: 19px 12px 19px 22px"
>
<div class="g_flex_row_start flex_center" style="font-size: 16px;color: #333333;">
{{ item.aliasName || item.userName }}
<div class="g_fs_12 g_pl_2 g_h_18 g_pr_2 g_radius_4 g_flex_row_center flex_center g_ml_4 g_fw_500" v-for="i in item.agencyRoleNameList" :class="i ? (i == '创建人' ? 'creator' : i == '管理员' ? 'manager' : 'member') : ''">{{ i }}</div>
<div class="g_fs_12 g_pl_2 g_h_18 g_pr_2 g_radius_4 g_flex_row_center flex_center g_ml_4"
v-for="i in item.agencyRoleNameList"
:class="i ? (i == '创建人' ? 'creator' : i == '管理员' ? 'manager' : 'member') : ''"
>{{ i }}</div>
</div>
<div class="g_flex_row_end flex_center g_c_6">
<div class="g_flex_row_end flex_center g_c_6" style="font-size: 16px;color: #888;">
{{ item.tel }}
<i class="iconfont icon-gengduo11 g_c_9"></i>
<i class="iconfont icon-gengduo11 g_c_c" style="font-size: 16px;"></i>
</div>
</div>
</div>
<div class="g_h_40"></div>
</div>
<g-panel-fixed>
<g-panel-fixed v-if="false">
<div class="g_flex_row_center">
<div class="g_w_128 g_mr_20">
<div class="g_w_200 g_mr_20">
<g-button btnText="手动添加" size="auto" @clickBtn="goPage('/root/person/addOrUpdataMember')"></g-button>
</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>
</div>
</div> -->
</div>
</g-panel-fixed>
<!-- <div class="g_h_24"></div> -->
@ -129,6 +153,20 @@ export default {
that.applyNum = res;
});
},
openChoose(){
console.log('openChoose')
uni.showActionSheet({
itemList: ['添加团队成员', '修改企业资料'],
success: (res) => {
console.log(res)
if(res.tapIndex == 0){
this.goPage('/root/person/addOrUpdataMember')
}else if(res.tapIndex == 1){
this.goPage('/root/person/info?active=1')
}
}
})
}
},
};
</script>
@ -140,7 +178,7 @@ export default {
background-color: #fff2f0;
}
.member {
color: rgba(0, 0, 0, 0.88);
color: #666;
// border: 1px solid #f9676e;
background-color: rgba(0, 0, 0, 0.04);
}

@ -1,8 +1,8 @@
@font-face {
font-family: "iconfont"; /* Project id 4374774 */
src: url('https://at.alicdn.com/t/c/font_4374774_rju4btsrrtq.woff2?t=1751011994815') format('woff2'),
url('https://at.alicdn.com/t/c/font_4374774_rju4btsrrtq.woff?t=1751011994815') format('woff'),
url('https://at.alicdn.com/t/c/font_4374774_rju4btsrrtq.ttf?t=1751011994815') format('truetype');
font-family: 'iconfont'; /* Project id 4374774 */
src: url('https://at.alicdn.com/t/c/font_4374774_t8oxmpbiwsm.woff2?t=1753957543436') format('woff2'),
url('https://at.alicdn.com/t/c/font_4374774_t8oxmpbiwsm.woff?t=1753957543436') format('woff'),
url('https://at.alicdn.com/t/c/font_4374774_t8oxmpbiwsm.ttf?t=1753957543436') format('truetype');
}
.iconfont {
@ -13,6 +13,10 @@
-moz-osx-font-smoothing: grayscale;
}
.icon-yitingzhao:before {
content: "\e67b";
}
.icon-time-circle:before {
content: "\e784";
}
@ -876,3 +880,4 @@
.icon-leftArrows:before {
content: "\100c6";
}

@ -116,6 +116,7 @@ let data = {
// console.log('测试报错123123123123123123',res);
// console.log('测试报错123123123123123123$url',$url);
let resData = res.data;
if (resData.status == 200) {// 正常
callback(resData.data, resData.msg);
} else if (resData.status == 9999) {// 登录过期或者身份变动等需要登录的场景
@ -137,6 +138,7 @@ let data = {
// } else {
uni.showToast({
title: resData.msg,
// title:'系统异常,请稍后',
icon: "none"
});
failback(resData.msg);
@ -167,7 +169,8 @@ let data = {
},
fail (error) {
uni.showToast({
title: error.errMsg,
// title: error.errMsg,
title:'系统异常,请稍后',
icon: "none"
})
failback(error);

@ -1260,7 +1260,7 @@ let data = {
let totalWidth = 0;
segments.forEach((segment) => {
ctx.font = `${segment.fontWeight} ${segment.fontSize}px Arial`;
totalWidth += ((ctx.measureText(segment.content).width) + segment.space || 0);
totalWidth += ((ctx.measureText(segment.content).width) + (segment.space || 0));
});
return totalWidth;
},
@ -1269,7 +1269,7 @@ let data = {
// 计算总宽度
const totalWidth = this.calculateTotalWidth(ctx, textSegments);
console.log('totalWidth', totalWidth, textSegments);
// 计算起始X坐标居中位置
const centerX = x;
const startX = (centerX - totalWidth) / 2;
@ -1288,7 +1288,7 @@ let data = {
ctx.fillText(segment.content, currentX, centerY);
// 更新X坐标为下一段文本做准备, 文本长度为1的时候使用字体大小
currentX += ((ctx.measureText(segment.content).width) + segment.space || 0);
currentX += ((ctx.measureText(segment.content).width) + (segment.space || 0));
});
},
/**

Loading…
Cancel
Save