cyl/master-im
wangxia 6 months ago
parent 6991e0516c
commit 0453612e87

@ -2,7 +2,10 @@
export default { export default {
onShow: function (options) { onShow: function (options) {
console.log("show 项目init", options, decodeURIComponent(options.query.scene)); console.log("show 项目init", options, decodeURIComponent(options.query.scene));
// id
uni.removeStorageSync("scene"); uni.removeStorageSync("scene");
uni.removeStorageSync("user_scene");
uni.removeStorageSync("user_options", options);
if (options.query.id) { if (options.query.id) {
uni.setStorageSync("apply-jobdetail-id", options.query.id); uni.setStorageSync("apply-jobdetail-id", options.query.id);

@ -19,7 +19,7 @@
</div> </div>
<!-- #ifdef APP-PLUS || H5 || MP-TOUTIAO || MP-KUAISHOU --> <!-- #ifdef APP-PLUS || H5 || MP-TOUTIAO || MP-KUAISHOU -->
<div> <div>
<div class="g_mb_10 g_bg_f_5 sticky g_flex_row_between"> <div class=" g_bg_f_5 sticky g_flex_row_between">
<div class="g_flex_1"> <div class="g_flex_1">
<u-tabs bg-color="transparent" from="index" :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" :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>
</div> </div>
@ -30,7 +30,7 @@
<!-- #endif --> <!-- #endif -->
<!-- #ifdef MP-WEIXIN --> <!-- #ifdef MP-WEIXIN -->
<div> <div>
<div class="g_mb_10 g_bg_f_5 sticky g_flex_row_between"> <div class=" g_bg_f_5 sticky g_flex_row_between">
<div class="g_flex_1"> <div class="g_flex_1">
<u-tabs bg-color="transparent" from="index" :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" :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>
</div> </div>

@ -262,29 +262,31 @@ export default {
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-supplierAccount", $data.supplierAccount); // -- 便 0. 1. uni.setStorageSync("apply-supplierAccount", $data.supplierAccount); // -- 便 0. 1.
that.G.Get(that.api.login_agencyInfo, {}, (aRes) => { if (!that.path) {
console.log("获取团队信息:", aRes); uni.switchTab({
uni.setStorageSync("IS_CREATOR", aRes.agency.userId == $data.user.id || $data.admin == true ? 1 : 2); // 1 2 url: "/pages/home/index",
if (that.fromPageType == "detail") { });
uni.navigateBack({ } else if (that.fromPageType == "detail") {
delta: 1, uni.navigateBack({
}); delta: 1,
return; });
} return;
// } else {
uni.setStorageSync("SHOW_INVITE", 1); //
console.log("that.path", that.path); uni.reLaunch({
if (!that.path) { url: that.path,
uni.switchTab({ });
url: "/pages/home/index", }
}); if ($data.agencyStatus == 1) {
} else { that.G.Get(that.api.login_agencyInfo, {}, (aRes) => {
// console.log("获取团队信息:", aRes);
uni.reLaunch({ uni.setStorageSync("agencyInfo", aRes.agency); // 1 2
url: that.path, uni.setStorageSync("IS_CREATOR", aRes.agency.userId == $data.user.id || $data.admin == true ? 1 : 2); // 1 2
});
} //
}); uni.setStorageSync("SHOW_INVITE", 1);
});
}
}, },
// //

@ -11,7 +11,8 @@
<view class="g_fw_600 g_mb_10 g_fs_20">{{ upNum }}</view> <view class="g_fw_600 g_mb_10 g_fs_20">{{ upNum }}</view>
<view class="g_c_6">关注发单号</view> <view class="g_c_6">关注发单号</view>
</view> </view>
<view class="g_mt_10" v-if="agencyInfo.supplierAccount == 1"> <!-- v-if="agencyInfo.supplierAccount == 1" -->
<view class="g_mt_10" v-if="false">
<!-- 发单号 --> <!-- 发单号 -->
<g-panel-card-num :list="orderDataList" :subhead="agencyInfo.fullName || ''" titleNav="/root/merchantManagement/orderManagement" :border="true" :speed="1" :marginBottom="16" cusType="num" :height="26" :num="5" cusTitle="我的发单号" :bottomBox="true" bottomNav="/root/merchantManagement/jobForm" @clickItem="handleClickNum" /> <g-panel-card-num :list="orderDataList" :subhead="agencyInfo.fullName || ''" titleNav="/root/merchantManagement/orderManagement" :border="true" :speed="1" :marginBottom="16" cusType="num" :height="26" :num="5" cusTitle="我的发单号" :bottomBox="true" bottomNav="/root/merchantManagement/jobForm" @clickItem="handleClickNum" />
</view> </view>

@ -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" style="width: 343px; height: 555px; margin: 0 auto; display: block" mode=""></image> <image :src="shareJobImg" show-menu-by-longpress style="width: 343px; height: 555px; margin: 0 auto; display: block" mode=""></image>
<!-- #endif --> <!-- #endif -->
<!-- #ifdef APP-PLUS --> <!-- #ifdef APP-PLUS -->
<canvas <canvas

@ -150,18 +150,37 @@ export default {
if (this.loginId == options.id && options.id) { if (this.loginId == options.id && options.id) {
this.isSelf = true; this.isSelf = true;
} }
this.scene = options.scene; this.G.checkToken().then((info) => {
if (this.scene) { console.log("info11", info);
let _str = decodeURIComponent(this.scene); if (!info.msg) {
this.uid = _str.split("=")[1]; if (uni.getStorageSync("user_scene") || options.scene) {
} else { this.scene = uni.getStorageSync("user_scene") ? decodeURIComponent(uni.getStorageSync("user_scene")) : decodeURIComponent(options.scene);
this.uid = options.id; this.uid = this.scene.split("=")[1];
}
this.type = options.type ? options.type : ""; console.log("this.uid", this.uid);
this.isShowMore = options.isShowMore; uni.removeStorageSync("user_scene");
this.isShowJob = options.isShowJob; } else {
this.jobDetailShow = options.jobDetailShow || true; if (uni.getStorageSync("user_options")) {
this.from = options.shareForm; options = uni.getStorageSync("user_options");
}
this.type = options.type ? options.type : "";
this.isShowMore = options.isShowMore ? options.isShowMore : "";
this.isShowJob = options.isShowJob ? options.isShowJob : "";
this.jobDetailShow = options.jobDetailShow || true;
this.from = options.shareForm;
this.uid = options.id;
uni.removeStorageSync("user_options", options);
}
this.getDetail();
} else {
if (options.scene) {
uni.setStorageSync("user_scene", options.scene);
} else {
uni.setStorageSync("user_options", options);
}
}
});
if (options.bindid) { if (options.bindid) {
this.bindid = options.bindid; this.bindid = options.bindid;
} }
@ -193,43 +212,46 @@ export default {
// this.G.isLogin(); // this.G.isLogin();
// if (this.G.isLogin()) { // if (this.G.isLogin()) {
that.pageSpeed = 0; that.pageSpeed = 0;
that.G.Get( if (that.uid) {
that.api.bind_enterpriseDetail + "/" + that.uid, that.G.Get(
{ that.api.bind_enterpriseDetail + "/" + that.uid,
agencyId: that.uid, {
type: that.type, agencyId: that.uid,
}, type: that.type,
(res) => { },
console.log("获取详情:", res, " -- ", that.uid); (res) => {
that.pageSpeed = 1; console.log("获取详情:", res, " -- ", that.uid);
that.info = res; that.pageSpeed = 1;
if (!that.uid) { that.info = res;
if (that.loginInfo.agencyId == that.info.agencyId) { if (!that.uid) {
that.isSelf = true; if (that.loginInfo.agencyId == that.info.agencyId) {
that.isSelf = true;
}
} }
if (that.info.supplierAccount == 0) {
that.isShowMore = false;
}
that.agencyId = res.agencyId;
that.mLook = that.info.himSee == 1 ? false : true;
that.numSlot = [
{
name: "职位数",
num: that.info.himSee == 0 ? 0 : that.info.jobNum,
},
{
name: "今日更新",
num: that.info.jobUpdateNum,
},
{
name: "粉丝数",
num: that.info.downNum,
},
];
that.getList();
} }
if (that.info.supplierAccount == 0) { );
that.isShowMore = false; }
}
that.agencyId = res.agencyId;
that.mLook = that.info.himSee == 1 ? false : true;
that.numSlot = [
{
name: "职位数",
num: that.info.himSee == 0 ? 0 : that.info.jobNum,
},
{
name: "今日更新",
num: that.info.jobUpdateNum,
},
{
name: "粉丝数",
num: that.info.downNum,
},
];
that.getList();
}
);
// } // }
}, },
goDetailUser() { goDetailUser() {

@ -1,7 +1,7 @@
<template> <template>
<div class="g_pb_32"> <div class="g_pb_32">
<div v-for="(item, index) in applyList"> <div v-for="(item, index) in applyList">
<div class="g_pb_8 g_pt_16 g_pl_16 g_border_e_b g_c_9"> <div class="g_pb_8 g_pt_16 g_pl_16 g_border_e_b g_c_9" v-if="item.length > 0">
{{ index == "near" ? "近三天" : "三天前" }} {{ index == "near" ? "近三天" : "三天前" }}
</div> </div>
<div class="g_flex_row_between flex_center i-items" style="padding: 20px 16px 8px" v-for="i in item" :key="item.id"> <div class="g_flex_row_between flex_center i-items" style="padding: 20px 16px 8px" v-for="i in item" :key="item.id">

@ -45,7 +45,6 @@ export default {
if (uni.getStorageSync("scene") || options.scene) { if (uni.getStorageSync("scene") || options.scene) {
console.log("XXXXXXXXXXXX"); console.log("XXXXXXXXXXXX");
// //
var sceneStr = uni.getStorageSync("scene") ? decodeURIComponent(uni.getStorageSync("scene")) : decodeURIComponent(options.scene); var sceneStr = uni.getStorageSync("scene") ? decodeURIComponent(uni.getStorageSync("scene")) : decodeURIComponent(options.scene);
var sceneJson = this.G.sceneToJson(sceneStr); var sceneJson = this.G.sceneToJson(sceneStr);
console.log("sceneJson===", sceneJson); console.log("sceneJson===", sceneJson);

@ -104,6 +104,11 @@ let data = {
if ($parmas.formdata || $method == "POST" || $method == "PUT") { if ($parmas.formdata || $method == "POST" || $method == "PUT") {
$header['content-type'] = 'application/x-www-form-urlencoded; charset=UTF-8'; $header['content-type'] = 'application/x-www-form-urlencoded; charset=UTF-8';
} }
for (const k in $parmas) {
if ($parmas[k] == undefined || $parmas[k] == 'undefined') {
$parmas[k] = ''
}
}
console.log("公共参数,+++++", Object.assign($parmas, that.setPublicParams())); console.log("公共参数,+++++", Object.assign($parmas, that.setPublicParams()));
uni.request({ uni.request({
url: ajaxUrl + $url, url: ajaxUrl + $url,
@ -128,17 +133,17 @@ let data = {
}); });
}, 1500); }, 1500);
} else if (resData.status == 500 || resData.status == 502) {// 某种原因导致接口提示该状态码 } else if (resData.status == 500 || resData.status == 502) {// 某种原因导致接口提示该状态码
if (resData.msg == '系统异常,请稍后') { // if (resData.msg == '系统异常,请稍后') {
uni.reLaunch({ // uni.reLaunch({
url: '/root/other/error' // url: '/root/other/error'
}); // });
} else { // } else {
uni.showToast({ uni.showToast({
title: resData.msg, title: resData.msg,
icon: "none" icon: "none"
}); });
failback(resData.msg); failback(resData.msg);
} // }
} else if (resData.status == 2002) { } else if (resData.status == 2002) {
uni.showToast({ uni.showToast({
title: resData.msg, title: resData.msg,

Loading…
Cancel
Save