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

@ -57,13 +57,7 @@ export default {
text: "首页",
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",
selectedIconPath: "icon-message g_c_main",
@ -81,6 +75,13 @@ export default {
iconSize: 48,
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",
selectedIconPath: "icon-user g_c_main",

@ -110,8 +110,8 @@
<i class="iconfont icon-gengduo2 icon g_c_b1" style="font-size: 32rpx"></i>
</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_c_6 g_fs_12 g_pr_4 g_radius_4 g_flex_row_start flex_center" style="background: #f1faff">
<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" @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> -->
<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>
@ -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) {
console.log("$item", $item);
let that = this;

@ -162,11 +162,18 @@ export default {
// #endif
},
lifetimes: {
//
detached() {
console.log('detacheddetacheddetacheddetacheddetached');
uni.removeStorageSync("poster_img");
},
},
watch: {
shareJobImg(newValue, oldValue) {
console.log("shareJobImg123", newValue);
if (newValue) {
console.log("shareJobImg345", newValue);
console.log("shareJobImg345", newValue);
uni.hideLoading();
}
},
@ -491,17 +498,17 @@ export default {
}
// 1000
if (num < 1000) {
if (num < 10000) {
return num.toString();
}
// 10000
if (num < 10000) {
return (num / 1000).toFixed(fixed) + "千";
}
// if (num < 10000) {
// return (num / 1000).toFixed(fixed) + "K";
// }
// 10000
return (num / 10000).toFixed(fixed) + "万";
return (num / 10000).toFixed(fixed);
},
//
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"); //
console.log("that.formatNumberAdvanced(info.jobNum)", that.formatNumberAdvanced(info.jobNum));
const textSegments = [
{ 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 },
];
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 }];
that.G.drawCenteredText(ctx, mycenter + 20, 745, textSegments);
imgres(canvas);
};

@ -10,6 +10,7 @@
'padding-left': (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_1 g_flex_row_start">
@ -72,10 +73,12 @@
<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)" />
</div>
<div class="btn-text g_flex_c g_flex_none" @click="handleSendMsg(item.tel, item.verifyTel)"
:style="{
'background-color':msgCode.countdown >= 0 && msgCode.countdown < 60 ? '#dddddd' : '#00b666'
}"
<div
class="btn-text g_flex_c g_flex_none"
@click="handleSendMsg(item.tel, item.verifyTel)"
:style="{
'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>
</div>
@ -182,7 +185,7 @@
<div
v-if="
list.filter((item) => {
return item.tip == 'slot-caiwu';
return item && item.tip == 'slot-caiwu';
}).length
"
@click="caiwuToggle = !caiwuToggle"

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

@ -282,7 +282,7 @@
lazy-load="false"></image>
</view>
<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>
</div>

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

@ -76,7 +76,7 @@
<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>
</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>
</view>

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

@ -23,7 +23,7 @@
<view class="g_flex_row_start">
<view class="g_w_71">
<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 class="g_flex_1 g_ml_11">
@ -248,7 +248,7 @@ export default {
this.inviteUserId = sceneJson.id.split("_")[1]; //id
this.uid = sceneJson.id.split("_")[0]; // id
this.fromQRCode = true; // id
that.G.watchUserPage('/root/detail/userShare');
that.G.watchUserPage("/root/detail/userShare");
} else {
this.uid = options.id;
this.isShowMore = options.isShowMore ? true : false;

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

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

@ -7,9 +7,9 @@ let data = {
localBaseImg: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/dailibaoming/APP/", // app图片前缀
cdnBaseImg: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/dailibaoming/", // cdn图片公共前缀路径
v3BaseImg: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/dailibaoming/v3/", // cdn图片公共前缀路径
fadanBaseImg: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/dailibaoming/",
fadanBaseImg: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/dailibaoming/",
loginText: '请登录',
coziID:'7537572244600471579',
coziID: '7537572244600471579',
// #ifdef MP-WEIXIN
version: uni.getAccountInfoSync().miniProgram.version || "1.0.16",
// #endif
@ -1263,9 +1263,13 @@ let data = {
calculateTotalWidth (ctx, segments) {
let totalWidth = 0;
segments.forEach((segment) => {
ctx.font = `${segment.fontWeight} ${segment.fontSize}px Arial`;
totalWidth += ((ctx.measureText(segment.content).width) + (segment.space || 0));
console.log('segment',segment);
if (segment) {
ctx.font = `${segment.fontWeight} ${segment.fontSize}px Arial`;
totalWidth += ((ctx.measureText(segment.content).width) + (segment.space || 0));
}
});
return totalWidth;
},
// 绘制单行居中的拼接文本
@ -1282,17 +1286,20 @@ let data = {
// 绘制拼接文本
let currentX = startX;
textSegments.forEach((segment) => {
ctx.font = `${segment.fontWeight} ${segment.fontSize}px Arial`;
ctx.fillStyle = segment.color;
if (segment) {
ctx.font = `${segment.fontWeight} ${segment.fontSize}px Arial`;
ctx.fillStyle = segment.color;
// 文本基线设为中间,使垂直方向也居中
// ctx.textBaseline = "middle";
// 文本基线设为中间,使垂直方向也居中
// ctx.textBaseline = "middle";
// 绘制当前文本片段
ctx.fillText(segment.content, currentX, centerY);
// 绘制当前文本片段
ctx.fillText(segment.content, currentX, centerY);
// 更新X坐标为下一段文本做准备, 文本长度为1的时候使用字体大小
currentX += ((ctx.measureText(segment.content).width) + (segment.space || 0));
}
// 更新X坐标为下一段文本做准备, 文本长度为1的时候使用字体大小
currentX += ((ctx.measureText(segment.content).width) + (segment.space || 0));
});
},
/**

Loading…
Cancel
Save