cyl/master-0819
wangxia 3 months ago
parent 8d077977b4
commit 8641fa5920

@ -57,13 +57,7 @@ export default {
text: "首页", text: "首页",
iconSize: 48, iconSize: 48,
}, },
{
iconPath: "icon-fadanhao-31 g_c_9",
selectedIconPath: "icon-fadanhao-31 g_c_main",
pagePath: "/pages/home/order",
text: "发单号",
iconSize: 48,
},
{ {
iconPath: "icon-message g_c_9", iconPath: "icon-message g_c_9",
selectedIconPath: "icon-message g_c_main", selectedIconPath: "icon-message g_c_main",
@ -81,6 +75,13 @@ export default {
iconSize: 48, iconSize: 48,
count: 0, count: 0,
}, },
{
iconPath: "icon-fadanhao-31 g_c_9",
selectedIconPath: "icon-fadanhao-31 g_c_main",
pagePath: "/pages/home/order",
text: "发单号",
iconSize: 48,
},
{ {
iconPath: "icon-user g_c_9", iconPath: "icon-user g_c_9",
selectedIconPath: "icon-user g_c_main", selectedIconPath: "icon-user g_c_main",

@ -111,7 +111,7 @@
</view> </view>
</view> </view>
<view class="g_flex_row_between flex_center g_border_e_t g_p_8" style="line-height: 23px" v-if="from != 'shareList'"> <view class="g_flex_row_between flex_center g_border_e_t g_p_8" style="line-height: 23px" v-if="from != 'shareList'">
<view class="g_c_6 g_fs_12 g_pr_4 g_radius_4 g_flex_row_start flex_center" style="background: #f1faff"> <view class="g_c_6 g_fs_12 g_pr_4 g_radius_4 g_flex_row_start flex_center" style="background: #f1faff" @click="toApplyInfo(item)">
<!-- <div class="g_w_36 g_mr_4 g_fs_12 g_pl_4 g_pr_4" style="background-color: #e3f5ff">发单号</div> --> <!-- <div class="g_w_36 g_mr_4 g_fs_12 g_pl_4 g_pr_4" style="background-color: #e3f5ff">发单号</div> -->
<img class="g_w_36 g_h_20 g_mr_4" src="https://matripe-cms.oss-cn-beijing.aliyuncs.com/bocaigongyinglian/icon-fadanhao.svg" alt="" /> <img class="g_w_36 g_h_20 g_mr_4" src="https://matripe-cms.oss-cn-beijing.aliyuncs.com/bocaigongyinglian/icon-fadanhao.svg" alt="" />
<view> <view>
@ -346,6 +346,20 @@ export default {
}, },
}); });
}, },
toApplyInfo($item) {
let that = this;
let params = {
id: $item.agencyId,
type: 1,
shareForm: "apply",
isShowMore: true,
isShowJob: true,
};
uni.navigateTo({
url: "/root/detail/userShare?" + that.G.objToStr(params),
});
},
handleCard($item) { handleCard($item) {
console.log("$item", $item); console.log("$item", $item);
let that = this; let that = this;

@ -162,6 +162,13 @@ export default {
// #endif // #endif
}, },
lifetimes: {
//
detached() {
console.log('detacheddetacheddetacheddetacheddetached');
uni.removeStorageSync("poster_img");
},
},
watch: { watch: {
shareJobImg(newValue, oldValue) { shareJobImg(newValue, oldValue) {
console.log("shareJobImg123", newValue); console.log("shareJobImg123", newValue);
@ -491,17 +498,17 @@ export default {
} }
// 1000 // 1000
if (num < 1000) { if (num < 10000) {
return num.toString(); return num.toString();
} }
// 10000 // 10000
if (num < 10000) { // if (num < 10000) {
return (num / 1000).toFixed(fixed) + "千"; // return (num / 1000).toFixed(fixed) + "K";
} // }
// 10000 // 10000
return (num / 10000).toFixed(fixed) + "万"; return (num / 10000).toFixed(fixed);
}, },
// //
setShareJobImg(ctx, canvas, mycenter, funObj) { setShareJobImg(ctx, canvas, mycenter, funObj) {
@ -539,14 +546,7 @@ export default {
// that.G.fillTextLineBreak(ctx, "" + info.jobUpdateNum, 140, 400, ("" + info.jobUpdateNum).length * 56, 56, "#999", 56, 500, "left"); // // that.G.fillTextLineBreak(ctx, "" + info.jobUpdateNum, 140, 400, ("" + info.jobUpdateNum).length * 56, 56, "#999", 56, 500, "left"); //
console.log("that.formatNumberAdvanced(info.jobNum)", that.formatNumberAdvanced(info.jobNum)); console.log("that.formatNumberAdvanced(info.jobNum)", that.formatNumberAdvanced(info.jobNum));
const textSegments = [ const textSegments = [{ content: that.formatNumberAdvanced(info.jobNum).toString(), color: "#000", fontWeight: 500, fontSize: 80, space: info.jobNum < 10000 ? 10 : 0 }, info.jobNum < 10000 ? null : { content: "万", color: "#000", fontWeight: 500, fontSize: 64, space: 10 }, { content: "总职位", color: "#666", fontWeight: 500, fontSize: 56, space: 70 }, { content: that.formatNumberAdvanced(info.recruitmentJobNum).toString(), color: "#000", fontWeight: 500, fontSize: 80, space: 10 }, { content: "在招", color: "#666", fontWeight: 500, fontSize: 56, space: 70 }, { content: that.formatNumberAdvanced(info.downNum).toString(), color: "#000", fontWeight: 500, fontSize: 80, space: 10 }, { content: "粉丝", color: "#666", fontWeight: 500, fontSize: 56, space: 40 }];
{ content: that.formatNumberAdvanced(info.jobNum).toString(), color: "#000", fontWeight: 500, fontSize: 80, space: 10 },
{ content: "总职位", color: "#666", fontWeight: 500, fontSize: 56, space: 70 },
{ content: that.formatNumberAdvanced(info.recruitmentJobNum).toString(), color: "#000", fontWeight: 500, fontSize: 80, space: 10 },
{ content: "在招数", color: "#666", fontWeight: 500, fontSize: 56, space: 70 },
{ content: that.formatNumberAdvanced(info.downNum).toString(), color: "#000", fontWeight: 500, fontSize: 80, space: 10 },
{ content: "粉丝", color: "#666", fontWeight: 500, fontSize: 56, space: 40 },
];
that.G.drawCenteredText(ctx, mycenter + 20, 745, textSegments); that.G.drawCenteredText(ctx, mycenter + 20, 745, textSegments);
imgres(canvas); imgres(canvas);
}; };

@ -10,6 +10,7 @@
'padding-left': (item.pRow ? item.pRow : 10) + 'px', 'padding-left': (item.pRow ? item.pRow : 10) + 'px',
'padding-right': (item.pRow ? item.pRow : 10) + 'px', 'padding-right': (item.pRow ? item.pRow : 10) + 'px',
}" }"
v-if="item"
> >
<div class="g_flex_none g_pr_10 g_flex_column_center"> <div class="g_flex_none g_pr_10 g_flex_column_center">
<div class="g_flex_1 g_flex_row_start"> <div class="g_flex_1 g_flex_row_start">
@ -72,9 +73,11 @@
<div class="g_flex_1 g_mr_16"> <div class="g_flex_1 g_mr_16">
<u-input maxlength="4" type="number" :custom-style="{ fontSize: item.fontSize || ' 16px' }" :clearable="false" :password-icon="false" :placeholder="item.placeholder" input-align="right" class="g_text_r" placeholder-style="color:#999;font-size:16px;" v-model="item.value" @input="(e) => handleCode(e, item, index)" /> <u-input maxlength="4" type="number" :custom-style="{ fontSize: item.fontSize || ' 16px' }" :clearable="false" :password-icon="false" :placeholder="item.placeholder" input-align="right" class="g_text_r" placeholder-style="color:#999;font-size:16px;" v-model="item.value" @input="(e) => handleCode(e, item, index)" />
</div> </div>
<div class="btn-text g_flex_c g_flex_none" @click="handleSendMsg(item.tel, item.verifyTel)" <div
class="btn-text g_flex_c g_flex_none"
@click="handleSendMsg(item.tel, item.verifyTel)"
:style="{ :style="{
'background-color':msgCode.countdown >= 0 && msgCode.countdown < 60 ? '#dddddd' : '#00b666' 'background-color': msgCode.countdown >= 0 && msgCode.countdown < 60 ? '#dddddd' : '#00b666',
}" }"
> >
<button class="btn-con g_fs_14 g_c_9 g_flex_row_center" style="width: 100px">{{ msgCode.btnText }}</button> <button class="btn-con g_fs_14 g_c_9 g_flex_row_center" style="width: 100px">{{ msgCode.btnText }}</button>
@ -182,7 +185,7 @@
<div <div
v-if=" v-if="
list.filter((item) => { list.filter((item) => {
return item.tip == 'slot-caiwu'; return item && item.tip == 'slot-caiwu';
}).length }).length
" "
@click="caiwuToggle = !caiwuToggle" @click="caiwuToggle = !caiwuToggle"

@ -388,6 +388,9 @@ export default {
that.getWaitNum(); that.getWaitNum();
} }
}, },
onHide() {
this.createPoster = false;
},
methods: { methods: {
getNewApplyNum() { getNewApplyNum() {
let that = this; let that = this;

@ -282,7 +282,7 @@
lazy-load="false"></image> lazy-load="false"></image>
</view> </view>
<view class="g_fs_13"> <view class="g_fs_13">
{{ JSON.parse(props.msg.attachment.raw).serviceFee ? JSON.parse(props.msg.attachment.raw).serviceFee : '详询客服' }} {{ JSON.parse(props.msg.attachment.raw).serviceFee ? JSON.parse(props.msg.attachment.raw).serviceFee : '费用待定' }}
</view> </view>
</view> </view>
</div> </div>

@ -98,6 +98,7 @@ export default {
onReady() { onReady() {
this.G.setNavStyle(); this.G.setNavStyle();
}, },
onShareAppMessage1() { onShareAppMessage1() {
let that = this; let that = this;
let params = { let params = {
@ -127,6 +128,10 @@ export default {
title: "发展代理", title: "发展代理",
}); });
} }
uni.onAfterPageUnload(() => {
console.log("onAfterPageUnload");
uni.removeStorageSync("poster_img");
});
}, },
onShow() { onShow() {
this.getDetail(); this.getDetail();

@ -76,7 +76,7 @@
<view class> <view class>
<image class="g_mr_4" style="width: 20px; height: 20px; display: block" src="https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/fee.svg" mode="aspecFill" lazy-load="false"></image> <image class="g_mr_4" style="width: 20px; height: 20px; display: block" src="https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/fee.svg" mode="aspecFill" lazy-load="false"></image>
</view> </view>
<view class="g_fs_13" v-if="userinfo.agencyStatus == 1">{{ item.fuWuFei || "" }}</view> <view class="g_fs_13" v-if="userinfo.agencyStatus == 1">{{ item.fuWuFei || "" }}</view>
<view class="biggerSize2 g_fs_13" v-else>{{ "" }}</view> <view class="biggerSize2 g_fs_13" v-else>{{ "" }}</view>
</view> </view>
</view> </view>

@ -29,7 +29,7 @@
</div> </div>
<div class="g_flex_row_end flex_center g_hs_67" style="flex: 1"> <div class="g_flex_row_end flex_center g_hs_67" style="flex: 1">
<span class v-if="showPrice">{{ jobDetail.serverPrice || "" }}</span> <span class v-if="showPrice">{{ jobDetail.serverPrice || "" }}</span>
<span class v-else>***</span> <span class v-else>***</span>
@ -1307,8 +1307,8 @@ export default {
title = "佣金: " + that.jobDetail.serverPrice; title = "佣金: " + that.jobDetail.serverPrice;
content = that.jobDetail.returnFeeDesp; content = that.jobDetail.returnFeeDesp;
} else { } else {
title = "详询客服"; title = "费用待定";
content = "因三方项目政策变动太快,详情请咨询客服。页面左下角点击“联系客服”直接联系我哟~"; content = "费用暂未公布";
} }
that.G.handleConfirm({ that.G.handleConfirm({

@ -23,7 +23,7 @@
<view class="g_flex_row_start"> <view class="g_flex_row_start">
<view class="g_w_71"> <view class="g_w_71">
<view class="g_position_abso g_p_4 g_radius_50 g_bg_f" style="top: -20px"> <view class="g_position_abso g_p_4 g_radius_50 g_bg_f" style="top: -20px">
<g-panel-image :radius="50" :size="128" :url="info.logo" /> <g-panel-image :radius="50" :size="128" :url="info.logo || 'https://matripe-cms.oss-cn-beijing.aliyuncs.com/ibocai/storeDefault.jpg'" />
</view> </view>
</view> </view>
<view class="g_flex_1 g_ml_11"> <view class="g_flex_1 g_ml_11">
@ -248,7 +248,7 @@ export default {
this.inviteUserId = sceneJson.id.split("_")[1]; //id this.inviteUserId = sceneJson.id.split("_")[1]; //id
this.uid = sceneJson.id.split("_")[0]; // id this.uid = sceneJson.id.split("_")[0]; // id
this.fromQRCode = true; // id this.fromQRCode = true; // id
that.G.watchUserPage('/root/detail/userShare'); that.G.watchUserPage("/root/detail/userShare");
} else { } else {
this.uid = options.id; this.uid = options.id;
this.isShowMore = options.isShowMore ? true : false; this.isShowMore = options.isShowMore ? true : false;

@ -245,9 +245,9 @@ export default {
that.detailRes = res.record; that.detailRes = res.record;
let policyStr; let policyStr;
if (that.isFans == 2) { 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"; 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 { } else {
policyStr = "薪资待遇:" + (res.record.salaryDetail || "详询客服") + "\n\n"; policyStr = "薪资待遇:" + (res.record.salaryDetail || "-") + "\n\n";
} }
console.log("政策列表:", res); console.log("政策列表:", res);
that.setFormList(policyStr); that.setFormList(policyStr);
@ -303,9 +303,10 @@ export default {
suffix: "icon-dizhi1", suffix: "icon-dizhi1",
}, },
{ that.updateInfo.jobId
? {
icon: "", icon: "",
label: "财务结算", label: "项目政策",
result: "", result: "",
path: "", path: "",
value: policyStr || "-", value: policyStr || "-",
@ -315,7 +316,8 @@ export default {
type: "slot", type: "slot",
pColumn: 12, pColumn: 12,
from: "slot-caiwu", from: "slot-caiwu",
}, }
: null,
]; ];
} else { } else {
that.jobData = [ that.jobData = [
@ -323,7 +325,7 @@ export default {
icon: "", icon: "",
label: "报名职位", label: "报名职位",
result: that.updateInfo.jobName, result: that.updateInfo.jobName,
path: '', path: "",
placeholder: "请选择报名职位", placeholder: "请选择报名职位",
fontColor: that.updateInfo.jobName == "请选择报名职位" ? "g_c_9" : "g_c_3", fontColor: that.updateInfo.jobName == "请选择报名职位" ? "g_c_9" : "g_c_3",
tip: "applia-job", tip: "applia-job",
@ -344,9 +346,10 @@ export default {
pColumn: 12, pColumn: 12,
from: "reservation-time", from: "reservation-time",
}, },
{ that.updateInfo.jobId
? {
icon: "", icon: "",
label: "财务结算", label: "项目政策",
result: "", result: "",
path: "", path: "",
value: policyStr || "-", value: policyStr || "-",
@ -356,7 +359,8 @@ export default {
type: "slot", type: "slot",
pColumn: 12, pColumn: 12,
from: "slot-caiwu", from: "slot-caiwu",
}, }
: null,
]; ];
} }

@ -147,7 +147,7 @@ export default {
}, },
onShow() { onShow() {
console.log("企业资料 show"); console.log("企业资料 show");
this.getNum() this.getNum();
}, },
created() { created() {
var that = this; var that = this;
@ -181,7 +181,7 @@ export default {
let that = this; let that = this;
that.G.Get(that.api.person_applyNum, {}, (res) => { that.G.Get(that.api.person_applyNum, {}, (res) => {
that.readed = res; that.readed = res;
}) });
}, },
save() { save() {
let that = this; let that = this;
@ -228,7 +228,7 @@ export default {
}); });
} }
that.resetInfo(); that.resetInfo();
that.getNum() that.getNum();
}); });
}, },
resetInfo() { resetInfo() {
@ -237,8 +237,8 @@ export default {
{ {
icon: "", icon: "",
label: "企业头像", label: "企业头像",
value: that.info.logo, value: that.info.logo || "https://matripe-cms.oss-cn-beijing.aliyuncs.com/ibocai/storeDefault.jpg",
path: "/root/person/agencyAvatar?label=企业头像&fieldName=logo&value=" + that.info.logo, path: "/root/person/agencyAvatar?label=企业头像&fieldName=logo&value=" + that.info.logo || "https://matripe-cms.oss-cn-beijing.aliyuncs.com/ibocai/storeDefault.jpg",
tip: "avatar", tip: "avatar",
type: "text", type: "text",
fontSize: "16px", fontSize: "16px",
@ -367,8 +367,8 @@ export default {
}, },
goMarge() { goMarge() {
uni.navigateTo({ uni.navigateTo({
url:'/root/person/marge' url: "/root/person/marge",
}) });
}, },
teamSet() { teamSet() {
this.teamSetShow = true; this.teamSetShow = true;

@ -1263,9 +1263,13 @@ let data = {
calculateTotalWidth (ctx, segments) { calculateTotalWidth (ctx, segments) {
let totalWidth = 0; let totalWidth = 0;
segments.forEach((segment) => { segments.forEach((segment) => {
console.log('segment',segment);
if (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;
}, },
// 绘制单行居中的拼接文本 // 绘制单行居中的拼接文本
@ -1282,6 +1286,7 @@ let data = {
// 绘制拼接文本 // 绘制拼接文本
let currentX = startX; let currentX = startX;
textSegments.forEach((segment) => { textSegments.forEach((segment) => {
if (segment) {
ctx.font = `${segment.fontWeight} ${segment.fontSize}px Arial`; ctx.font = `${segment.fontWeight} ${segment.fontSize}px Arial`;
ctx.fillStyle = segment.color; ctx.fillStyle = segment.color;
@ -1293,6 +1298,8 @@ let data = {
// 更新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