wangxia 8 months ago
commit fde0183e4c

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

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

@ -21,8 +21,10 @@
<view v-if="speed > 0" class="link"> <view v-if="speed > 0" class="link">
<block class="" v-for="(item, index) in jobArray" :key="index"> <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="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)"> <view class="g_p_10" style="position: relative;" @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> <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="m-top g_flex_row_between">
<view class="g_flex_1 g_flex_column_between"> <view class="g_flex_1 g_flex_column_between">
<view class="g_flex_1 g_flex_row_between g_lh_1"> <view class="g_flex_1 g_flex_row_between g_lh_1">

@ -47,7 +47,9 @@
</view> </view>
</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>
<view class="g_ell_1 g_fs_14 g_mt_8" style="color: rgba(0, 0, 0, 0.45)" v-if="item.classify == 2"> <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 || "-" }} {{ info.jobInfo || "-" }}

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

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

@ -1,13 +1,13 @@
<template> <template>
<view class="gjFixed" v-if="show == 'special'" @click.stop @touchmove.stop.prevent> <view class="gjFixed" v-if="show == 'special'" @click.stop="hideDrawer" @touchmove.stop.prevent>
<view class="filterContainer filterBox" style> <view class="filterContainer filterBox" style @click.stop>
<scroll-view class style="padding: 0; background-color: #ededed" scroll-y> <scroll-view class style="padding: 0; background-color: #ededed" scroll-y>
<template v-for="item in anchorList"> <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> </template>
</scroll-view> </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> <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="sub" id="age">
<view class="title">年龄</view> <view class="title">年龄</view>
<view class="content g_bg_f"> <view class="content g_bg_f">
@ -315,6 +315,10 @@ export default {
// this.getType(); // this.getType();
}, },
methods: { methods: {
hideDrawer() {
console.log('123123');
this.$emit("hideDrawer", "");
},
format(val) { format(val) {
return val; return val;
}, },

@ -26,7 +26,7 @@
</div> </div>
</div> </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_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"> <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> <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-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> <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> </view>
</div> </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> --> <!-- <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>
</div> </div>
</scroll-view> </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" /> <g-panel-image :url="cdnBaseImg + 'quick_application0610.svg'" size="96" />
</div> </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"> <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_fs_18 g_text_c g_pt_32">
<div class="g_bg_f g_fw_600 g_pb_24">以下发单号向你发出关注邀请</div> <div class="g_bg_f g_fw_600 g_pb_24">以下发单号向你发出关注邀请</div>
@ -214,6 +215,9 @@ export default {
return { return {
scrollTo: "", scrollTo: "",
selectedCity: "全国", selectedCity: "全国",
agencyInfo: uni.getStorageSync("agencyInfo"),
userInfo: uni.getStorageSync("apply-userinfo"),
whichOneShow: "",
toTop: false, // toTop: false, //
getFilterData: { getFilterData: {
sex: "-1", sex: "-1",

@ -65,7 +65,7 @@
@clickItem="goPage('/root/bind/order?active=0')" @clickItem="goPage('/root/bind/order?active=0')"
/> />
</view> </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="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" <!-- <g-panel-card-num :list="todayDataList"
titleNav="/root/person/todayData" titleNav="/root/person/todayData"
@ -337,8 +337,10 @@ export default {
this.getAuthInfo(); this.getAuthInfo();
this.getData(); this.getData();
this.getNum(); this.getNum();
if(uni.getStorageSync("apply-userinfo").agencyStatus == 1){
this.getCompanyInfo(); this.getCompanyInfo();
}
} }
} else { } else {
that.waitNum_ups = 0; 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="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> <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 --> <!-- #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> <view class="g_text_c g_fs_16 g_mt_12 g_mb_12 g_fw_600">长按图片转发给微信好友</view>
<!-- #endif --> <!-- #endif -->
<!-- #ifdef APP-PLUS --> <!-- #ifdef APP-PLUS -->
@ -69,7 +69,7 @@
</view> </view>
<!-- #endif --> <!-- #endif -->
<view v-if="allowClick"> <view v-if="allowClick && false">
<view class="g_h_100"></view> <view class="g_h_100"></view>
<g-panel-fixed> <g-panel-fixed>
<slot> <slot>
@ -348,7 +348,7 @@ export default {
success(res) { success(res) {
console.log("res111", res); console.log("res111", res);
canvas.width = res.width; canvas.width = res.width;
canvas.height = res.height; canvas.height = res.height + 250;
mycenter = canvas.width; mycenter = canvas.width;
myheight = canvas.height; myheight = canvas.height;
const img = canvas.createImage(); const img = canvas.createImage();
@ -356,11 +356,11 @@ export default {
console.log("img111", img); console.log("img111", img);
img.onload = (info) => { 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 - 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; let qrTop = 1195;
// //
that.G.roundRect1(ctx, (mycenter - 600) / 2 - 5, qrTop, 136, 136, 80, baseColor); 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 - 5, qrTop + 475, 136, 136, 80, baseColor);
// //
that.G.roundRect1(ctx, (mycenter - 600) / 2 + 470, 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"); that.G.roundRect_yuan(ctx, (mycenter - 360) / 2, 110, 360, "#ffffff");
@ -381,7 +385,7 @@ export default {
console.log("res333", res); console.log("res333", res);
img.src = res.path; img.src = res.path;
img.onload = () => { 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); resolve(true);
}; };
}, },
@ -509,7 +513,7 @@ export default {
{ content: info.downNum.toString(), color: "#000", fontWeight: 500, fontSize: 80, space: 20 }, { content: info.downNum.toString(), color: "#000", fontWeight: 500, fontSize: 80, space: 20 },
{ content: "粉丝", color: "#666", fontWeight: 500, fontSize: 56, space: 40 }, { 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); imgres(canvas);
}; };
}, },

@ -7,14 +7,15 @@
<g-loading /> <g-loading />
</div> </div>
<div v-if="speed == 1"> <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_fw_600 g_mr_4 g_flex_column_center">项目方</view>
<view class="g_flex_row_end flex_center g_flex_1"> <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="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> <span class="iconfont icon-gengduo11 g_fs_14 g_c_6 g_ml_4"></span>
</view> </view>
</view> </div>
<div class="r_box g_mb_10 g_mt_10 g_pl_16 g_pr_16 servicePrice" @click="showFee" style="height: 60px"> <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_between flex_center g_fs_16">
<div class="g_flex_row_start" style="flex: none"> <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> <div class="g_fw_600 g_mr_4 g_hs_67 g_flex_column_center">代理佣金</div>
@ -27,9 +28,10 @@
</div> </div>
</div> </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"> <div class="m-info g_mb_12">
<view class="g_mb_10 g_flex_row_between flex_center"> <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> <view class="g_flex_1 g_c_3 g_fs_20 g_fw_bold">{{ jobDetail.jobName }}</view>
@ -170,8 +172,8 @@
</view> </view>
</view> </view>
<view class="" v-if="isLogin"> <view class="" v-if="isLogin">
<view class="contactInfo" style="white-space: pre-line">{{ userInfo.noticeEndStr ? userInfo.noticeEndStr : "详情咨询:" + userInfo.tel }}</view> <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="userInfo.agencyStatus == 1"> <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> <span class="g_fw_600" @click="changeContact" style="color: #576b95; text-decoration: underline">改成我的</span>
</view> </view>
@ -553,11 +555,9 @@ export default {
// "", this.jobDetail.jobName + " " + this.jobDetail.priceStr + " " + " "); // "", this.jobDetail.jobName + " " + this.jobDetail.priceStr + " " + " ");
let that = this; let that = this;
let path; let path;
if (this.isMember) { console.log("that.loginInfo", that.loginInfo);
path = `/root/detail/job?id=${that.jobDetail.id}&from=home&userId=${that.userInfo.user.id}`; // id___
} else { 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}`;
path = `/root/detail/job?id=${that.jobDetail.id}&from=home`;
}
return { return {
promise: new Promise((resolve, reject) => { promise: new Promise((resolve, reject) => {
uni.showLoading({ uni.showLoading({
@ -586,6 +586,11 @@ export default {
return { return {
globalData: getApp().globalData, globalData: getApp().globalData,
videoContextTemp: {}, videoContextTemp: {},
isSharePage: false, //
isFans: false,
shareUserId: null, // id
shareJobAgencyId: null, // id
shareUserAgencyId: null, // id
corpUserFlag: false, corpUserFlag: false,
agreeRadio: ["agree"], agreeRadio: ["agree"],
isPerson: false, isPerson: false,
@ -673,19 +678,34 @@ export default {
}, },
onLoad(options) { onLoad(options) {
console.log("详情", options); console.log("详情", options);
let loginUrl;
if (options.id) { if (options.id) {
this.uid = 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 || "home";
this.from = options.from;
}
if (!uni.getStorageSync("apply-token")) { if (!uni.getStorageSync("apply-token")) {
console.log("apply-token"); console.log("apply-token");
uni.navigateTo({ console.log("options.scene", options.scene);
url: "/root/person/loginIndex?type=detail&path=/root/detail/job&id=" + options.id, uni.reLaunch({
url: loginUrl,
}); });
return; return;
} }
this.shareJobAgencyId && this.checkIsFans(this.shareJobAgencyId);
this.loginInfo = uni.getStorageSync("apply-userinfo"); this.loginInfo = uni.getStorageSync("apply-userinfo");
// if (uni.getStorageSync("apply-AGENCY_MAMBER_LIST")) { // if (uni.getStorageSync("apply-AGENCY_MAMBER_LIST")) {
// this.applyList = 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);
// }); // });
// } // }
console.log("this.applyList", this.applyList);
}, },
onShow() { onShow() {
let that = this; let that = this;
@ -743,7 +761,9 @@ export default {
num1++; num1++;
} }
}); });
this.toKnowInfo(res.agencyId); that.speed = 1;
that.attention = true;
// this.toKnowInfo(res.agencyId);
}); });
} }
uni.getSystemInfo({ uni.getSystemInfo({
@ -962,8 +982,21 @@ export default {
if (!this.attention) { if (!this.attention) {
return false; 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({ 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) { // if (this.jobDetail.recruitment == 1) {
// this.formInfo = { // this.formInfo = {
@ -1422,7 +1455,7 @@ export default {
// //
that.G.roundRect1(ctx, mycenter - 712 / 2, line7, 712, 100, 4, "#00b666"); // 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 // logo
uni.downloadFile({ uni.downloadFile({
url: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/pugongying/goxj2-qpwbo.png", url: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/pugongying/goxj2-qpwbo.png",
@ -1454,6 +1487,13 @@ export default {
console.log("all err", err); 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> </script>

@ -1,7 +1,7 @@
<template> <template>
<div class="p-root-detail-user g_w_all g_bg_page g_kuaishou"> <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> <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"> <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="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"> <view class="g_flex_row_start">
@ -37,7 +37,7 @@
</div> </div>
<div class="g_h_10"></div> <div class="g_h_10"></div>
<div class> <div class>
<quickLogin @successLogin="successLogin" v-if="!agencyInfo.id"> <quickLogin @successLogin="successLogin" v-if="!isLogin">
<div style="width: calc(100vw - 40px)" class> <div style="width: calc(100vw - 40px)" class>
<g-button btnText="申请关注" size="auto" type="primary" class></g-button> <g-button btnText="申请关注" size="auto" type="primary" class></g-button>
</div> </div>
@ -96,14 +96,15 @@
</div> </div>
</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="g_fs_17 g_text_c">
<div class style="padding: 42px 24px 36px"> <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_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"> <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>
<div class="g_text_l g_c_9 g_mt_8 g_fs_14 g_pl_12">创建团队后可关注发单号浏览职位及工单报名</div>
</div> </div>
<div class="g_flex_row_center flex_center g_fw_600 g_border_e_t"> <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> <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() { onShow() {
let that = this; let that = this;
that.isLogin = uni.getStorageSync("apply-token") ? true : false; // uni.getStorageSync("apply-token"); that.isLogin = uni.getStorageSync("apply-token") ? true : false; // uni.getStorageSync("apply-token");
console.log("that.isLogin", that.isLogin);
this.loginInfo = uni.getStorageSync("apply-userinfo"); this.loginInfo = uni.getStorageSync("apply-userinfo");
that.G.Get("/checkUserLogin", {}, (res) => { that.G.Get("/checkUserLogin", {}, (res) => {
console.log("checkUserLogin", res); console.log("checkUserLogin", res);
@ -298,10 +300,12 @@ export default {
return new Promise((reso, reject) => { return new Promise((reso, reject) => {
that.G.Get(that.api.login_agencyInfo, {}, (aRes) => { that.G.Get(that.api.login_agencyInfo, {}, (aRes) => {
console.log("获取团队信息:", aRes); console.log("获取团队信息:", aRes);
if (aRes.agency) {
that.disabled = aRes.agency.fullName ? true : false; that.disabled = aRes.agency.fullName ? true : false;
that.agencyInfo = { ...aRes.agency, fullName: aRes.agency.fullName ? aRes.agency.fullName : that.agencyInfo.fullName }; that.agencyInfo = { ...aRes.agency, fullName: aRes.agency.fullName ? aRes.agency.fullName : that.agencyInfo.fullName };
uni.setStorageSync("agencyInfo", aRes.agency); uni.setStorageSync("agencyInfo", aRes.agency);
}
setTimeout(() => { setTimeout(() => {
reso(); reso();
}, 200); }, 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.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({ uni.showToast({
title: "申请成功", title: "申请成功",
icon: "none", icon: "none",
@ -615,7 +622,7 @@ export default {
uni.navigateTo({ uni.navigateTo({
url: "/root/person/inviteFollowSuccess", url: "/root/person/inviteFollowSuccess",
}); });
reso(); // reso();
// that.checkHasApply(); // that.checkHasApply();
console.log(res); console.log(res);
}); });
@ -675,10 +682,9 @@ export default {
let that = this; let that = this;
this.isLogin = true; this.isLogin = true;
console.log("successLogin", e); console.log("successLogin", e);
this.getAgencyInfo().then(() => { that.getAgencyInfo().then(() => {
that.getAgencyById().then(() => { that.getAgencyById().then(() => {
that.getDefault("init"); // that.query.page++;
if (that.info.recordStatus == 3 || that.info.recordStatus == 4 || that.info.recordStatus == 6) { if (that.info.recordStatus == 3 || that.info.recordStatus == 4 || that.info.recordStatus == 6) {
that.handleSubmit(); that.handleSubmit();
} else { } else {
@ -689,6 +695,7 @@ export default {
}); });
} }
} }
that.getDefault("init");
}); });
}); });
}, },

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

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

@ -40,6 +40,18 @@
<!-- #endif --> <!-- #endif -->
</slot> </slot>
</g-panel-form-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"> <view class="g_flex_row_center" style="margin-top:90px">
<g-button btnText="提交" type="primary" @clickBtn="submitForm" /> <g-button btnText="提交" type="primary" @clickBtn="submitForm" />
</view> </view>
@ -105,6 +117,10 @@ export default {
}); });
}, },
methods: { methods: {
getUserInfo(e){
console.log(e)
this.info.value = e.detail.userInfo.nickName;
},
submitForm() { submitForm() {
let that = this; let that = this;
if (that.info.value == "") { if (that.info.value == "") {

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

@ -19,7 +19,7 @@
</view> </view>
</view> </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> </view>
<g-panel-form-item <g-panel-form-item
:list="[ :list="[

@ -11,29 +11,53 @@
<div class="g_c_9 g_fs_14">您有{{ applyNum }}条申请等待审核</div> <div class="g_c_9 g_fs_14">您有{{ applyNum }}条申请等待审核</div>
</div> </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 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 v-for="item in memberList" :key="item.id"
<div class="g_flex_row_start flex_center g_fw_600"> @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 }} {{ 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>
<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 }} {{ 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>
</div> </div>
<div class="g_h_40"></div> <div class="g_h_40"></div>
</div> </div>
<g-panel-fixed> <g-panel-fixed v-if="false">
<div class="g_flex_row_center"> <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> <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> -->
</div> </div>
</g-panel-fixed> </g-panel-fixed>
<!-- <div class="g_h_24"></div> --> <!-- <div class="g_h_24"></div> -->
@ -129,6 +153,20 @@ export default {
that.applyNum = res; 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> </script>
@ -140,7 +178,7 @@ export default {
background-color: #fff2f0; background-color: #fff2f0;
} }
.member { .member {
color: rgba(0, 0, 0, 0.88); color: #666;
// border: 1px solid #f9676e; // border: 1px solid #f9676e;
background-color: rgba(0, 0, 0, 0.04); background-color: rgba(0, 0, 0, 0.04);
} }

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

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

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

Loading…
Cancel
Save