tabbar页面添加

cyl/master
wangxia 8 months ago
parent fdfa0c0dbc
commit 4b5af87c07

@ -32,36 +32,19 @@ export default {
}); });
// (:release, :trial, :develop) // (:release, :trial, :develop)
uni.setStorageSync("ENV_VERSION", __wxConfig.envVersion); uni.setStorageSync("ENV_VERSION", __wxConfig.envVersion);
if (that.globalData.appId == "wx581db3f39c49ed2b") { if (that.globalData.appId == "wxb0dea4d11428c6a5") {
that.globalData.title = "英华招工"; that.globalData.title = "伯才供应链";
that.globalData.themeColor = "#3578f6"; that.globalData.themeColor = "#3578f6";
that.globalData.logo = uni.getStorageSync("miniApp-info").logo || "https://matripe-cms.oss-cn-beijing.aliyuncs.com/pugongying/yinghua.png"; that.globalData.logo = uni.getStorageSync("miniApp-info").logo || "https://matripe-cms.oss-cn-beijing.aliyuncs.com/pugongying/renhailaowu.png";
} } else if (that.globalData.appId == "wxe431e0b3abd9ae0b") {
if (that.globalData.appId == "wxe431e0b3abd9ae0b") {
that.globalData.title = "伯才工作"; that.globalData.title = "伯才工作";
that.globalData.themeColor = "#3578f6"; that.globalData.themeColor = "#ff4400";
that.globalData.logo = uni.getStorageSync("miniApp-info").logo || "https://matripe-cms.oss-cn-beijing.aliyuncs.com/pugongying/renhailaowu.png"; that.globalData.logo = uni.getStorageSync("miniApp-info").logo || "https://matripe-cms.oss-cn-beijing.aliyuncs.com/pugongying/renhailaowu.png";
} else if (that.globalData.appId == "wxb0c590fd696b79be") { } else if (that.globalData.appId == "wxb0c590fd696b79be") {
that.globalData.title = "稻田工作"; that.globalData.title = "稻田工作";
that.globalData.themeColor = "#0dcc91"; that.globalData.themeColor = "#0dcc91";
that.globalData.logo = uni.getStorageSync("miniApp-info").logo || "https://matripe-cms.oss-cn-beijing.aliyuncs.com/pugongying/yicaiLogoBgf913.png"; that.globalData.logo = uni.getStorageSync("miniApp-info").logo || "https://matripe-cms.oss-cn-beijing.aliyuncs.com/pugongying/yicaiLogoBgf913.png";
} else if (that.globalData.appId == "wxcd0e4a001e1d87bd") { }
that.globalData.title = "会聘工作";
that.globalData.themeColor = "#0dcc91";
that.globalData.logo = uni.getStorageSync("miniApp-info").logo || "https://matripe-cms.oss-cn-beijing.aliyuncs.com/pugongying/kuaipin.jpg";
} else if (that.globalData.appId == "wx57e965905e6b4530") {
that.globalData.title = "人海劳务";
that.globalData.themeColor = "#3578f6";
that.globalData.logo = uni.getStorageSync("miniApp-info").logo || "https://matripe-cms.oss-cn-beijing.aliyuncs.com/pugongying/renhailaowu.png";
} else if (that.globalData.appId == "wxd522e45fa0d4be09") {
that.globalData.title = "鑫都直聘";
that.globalData.themeColor = "#3578f6";
that.globalData.logo = uni.getStorageSync("miniApp-info").logo || "https://matripe-cms.oss-cn-beijing.aliyuncs.com/pugongying/xindu.png ";
} else if (that.globalData.appId == "wx15bc9c758f4eb129") {
that.globalData.title = "业小满直聘";
that.globalData.themeColor = "#3578f6";
that.globalData.logo = uni.getStorageSync("miniApp-info").logo || "https://matripe-cms.oss-cn-beijing.aliyuncs.com/pugongying/yexiaoman.png";
}
if (options.query.id) { if (options.query.id) {
uni.setStorageSync("apply-jobdetail-id", options.query.id); uni.setStorageSync("apply-jobdetail-id", options.query.id);

@ -16,7 +16,7 @@
<g-button btnText="去登录" size="small" class="g_mt_32" @clickBtn="goLogin" /> <g-button btnText="去登录" size="small" class="g_mt_32" @clickBtn="goLogin" />
</view> </view>
</view> </view>
<scroll-view v-if="speed > 0" :style="{ height: `calc(100vh - ${navInfo.statusBarHeight + 62}px)` }" :scroll-y="true" @scrolltolower="reachBottom" :lower-threshold="100">1123 <scroll-view v-if="speed > 0" :style="{ height: `calc(100vh - ${navInfo.statusBarHeight + 62}px)` }" :scroll-y="true" @scrolltolower="reachBottom" :lower-threshold="100">
<view class="" style="min-height: calc(100% - 90px)"> <view class="" style="min-height: calc(100% - 90px)">
<view class="item g_pt_18 g_pl_10 g_pr_10" hover-class="g_bg_f_5" v-for="(item, index) in query.list" :key="index" @click="goDetail(item, index)"> <view class="item g_pt_18 g_pl_10 g_pr_10" hover-class="g_bg_f_5" v-for="(item, index) in query.list" :key="index" @click="goDetail(item, index)">
<view class="g_border_e_b g_flex_row_start g_pb_18"> <view class="g_border_e_b g_flex_row_start g_pb_18">

@ -34,9 +34,6 @@
<view class="g_flex_none g_flex_row_between g_mt_6"> <view class="g_flex_none g_flex_row_between g_mt_6">
<view class="g_flex_none g_flex_row_start g_fs_14" style="color: rgba(0, 0, 0, 0.45)"> <view class="g_flex_none g_flex_row_start g_fs_14" style="color: rgba(0, 0, 0, 0.45)">
<!-- <view class="g_ell_1" style="max-width: 124px" hover-class="none" hover-stop-propagation="false" v-if="appid != 'wxb0c590fd696b79be' && !isUseNewJob">
{{ item.district }}
</view> -->
<view class="g_ell_1" style="max-width: 124px; margin-right: 2px" hover-class="none" hover-stop-propagation="false"> {{ item.district }}{{ item.district ? "丨" : "" }} </view> <view class="g_ell_1" style="max-width: 124px; margin-right: 2px" hover-class="none" hover-stop-propagation="false"> {{ item.district }}{{ item.district ? "丨" : "" }} </view>
{{ item.gender + "丨" + item.age }} {{ item.gender + "丨" + item.age }}
</view> </view>

@ -5,9 +5,9 @@ Component({
toTop: false, toTop: false,
selected: 0, selected: 0,
color: "#888", color: "#888",
selectedColor: app.globalData.appId == 'wxb0c590fd696b79be' ? "#ff4400" : "#3578f6", selectedColor: "#3578f6",
appId: app.globalData.appId, appId: app.globalData.appId,
list: app.globalData.appId == 'wxb0c590fd696b79be' ? [ list: [
{ {
"iconPath": "icon-home", "iconPath": "icon-home",
// "selectedIconPath": "/static/image/tabbar/home.svg", // "selectedIconPath": "/static/image/tabbar/home.svg",
@ -16,7 +16,7 @@ Component({
"index": 0 "index": 0
}, },
{ {
iconPath: "icon-home", iconPath: "icon-gongdanguanli",
text: '工单', text: '工单',
"index": 3, "index": 3,
pagePath: "/pages/home/child/apply", pagePath: "/pages/home/child/apply",
@ -38,54 +38,23 @@ Component({
"index": 1 "index": 1
}, },
{ {
"iconPath": "icon-user", "iconPath": "icon-appstore",
// "iconPath": "/static/image/tabbar/user_active.svg",
// "selectedIconPath": "/static/image/tabbar/user.svg",
"pagePath": "/pages/person/index",
"text": "我的",
"index": 2
}
] : [
{
"iconPath": "icon-home",
// "iconPath": "/static/image/tabbar/home_active.svg",
// "selectedIconPath": "/static/image/tabbar/home.svg",
"pagePath": "/pages/home/index",
"text": "首页",
"index": 0
},
{
"iconPath": "icon-shop",
// "iconPath": "/static/image/tabbar/shop_active.svg",
// "selectedIconPath": "/static/image/tabbar/shop.svg",
"pagePath": "/pages/company/index",
"text": "门店",
"index": 1
},
// {
// "iconPath": "/static/image/tabbar/chat.svg",
// "selectedIconPath": "/static/image/tabbar/chat.svg",
// "pagePath": "/pages/ai/index",
// "text": "AI",
// "index": 2
// },
{
"iconPath": "icon-message",
// "iconPath": "/static/image/tabbar/message_active.svg", // "iconPath": "/static/image/tabbar/message_active.svg",
// "selectedIconPath": "/static/image/tabbar/message.svg", // "selectedIconPath": "/static/image/tabbar/message.svg",
"pagePath": "/pages/message/index", "pagePath": "/pages/workBench/index",
"text": "消息", "text": "工作台",
"index": 2 "index": 4
}, },
{ {
"iconPath": "icon-user", "iconPath": "icon-user",
// "iconPath": "/static/image/tabbar/user_active.svg", // "iconPath": "/static/image/tabbar/user_active.svg",
// "selectedIconPath": "/static/image/tabbar/user.svg", // "selectedIconPath": "/static/image/tabbar/user.svg",
"pagePath": "/pages/person/index", "pagePath": "/pages/person/index",
"text": "我的", "text": "我的",
"index": 3 "index": 2
} }
], ]
}, },
lifetimes: { lifetimes: {
show: function () { show: function () {

@ -1,6 +1,8 @@
@font-face { @font-face {
font-family: "iconfont"; /* Project id 4374774 */ font-family: "iconfont"; /* Project id 4374774 */
src: url("//at.alicdn.com/t/c/font_4374774_pt88dt6fxcj.woff2?t=1741923897019") format("woff2"), url("//at.alicdn.com/t/c/font_4374774_pt88dt6fxcj.woff?t=1741923897019") format("woff"), url("//at.alicdn.com/t/c/font_4374774_pt88dt6fxcj.ttf?t=1741923897019") format("truetype"); src: url('//at.alicdn.com/t/c/font_4374774_rftbvxqyqf.woff2?t=1742455310466') format('woff2'),
url('//at.alicdn.com/t/c/font_4374774_rftbvxqyqf.woff?t=1742455310466') format('woff'),
url('//at.alicdn.com/t/c/font_4374774_rftbvxqyqf.ttf?t=1742455310466') format('truetype');
} }
.iconfont { .iconfont {
font-family: "iconfont" !important; font-family: "iconfont" !important;
@ -9,6 +11,14 @@
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
.icon-appstore:before {
content: "\e792";
}
.icon-gongdanguanli:before {
content: "\e909";
}
.icon-home:before { .icon-home:before {
content: "\e7e1"; content: "\e7e1";
} }

@ -94,7 +94,7 @@
"quickapp" : {}, "quickapp" : {},
/* */ /* */
"mp-weixin" : { "mp-weixin" : {
"appid" : "wxb0c590fd696b79be", "appid" : "wxb0dea4d11428c6a5",
"requiredPrivateInfos" : [ "getLocation", "chooseLocation", "chooseAddress" ], "requiredPrivateInfos" : [ "getLocation", "chooseLocation", "chooseAddress" ],
"setting" : { "setting" : {
"urlCheck" : true, "urlCheck" : true,

@ -13,10 +13,20 @@
"navigationBarTextStyle": "black" "navigationBarTextStyle": "black"
} }
}, },
{
"path": "pages/workBench/index",
"style": {
"navigationBarTitleText": "工作台",
"backgroundColor": "#ffffff",
"backgroundColorTop": "#ffffff",
"backgroundColorBottom": "#ffffff",
"navigationBarTextStyle": "black"
}
},
{ {
"path": "pages/home/child/apply", "path": "pages/home/child/apply",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": "工单",
"backgroundColor": "#ffffff", "backgroundColor": "#ffffff",
"backgroundColorTop": "#ffffff", "backgroundColorTop": "#ffffff",
"backgroundColorBottom": "#ffffff", "backgroundColorBottom": "#ffffff",
@ -490,6 +500,12 @@
"selectedIconPath": "static/image/nav_company_selected_lao.png", "selectedIconPath": "static/image/nav_company_selected_lao.png",
"pagePath": "pages/home/child/apply", "pagePath": "pages/home/child/apply",
"text": "工单" "text": "工单"
},
{
"iconPath": "static/image/nav_company_norma.png",
"selectedIconPath": "static/image/nav_company_selected_lao.png",
"pagePath": "pages/workBench/index",
"text": "工作台"
}, },
// { // {
// "iconPath": "static/image/chat.png", // "iconPath": "static/image/chat.png",

@ -144,6 +144,12 @@ export default {
}, },
onShow() { onShow() {
let that = this; let that = this;
if (typeof that.$mp.page.getTabBar === "function" && that.$mp.page.getTabBar()) {
that.$mp.page.getTabBar().setData({
selected: 3,
isShow: true,
});
}
// //
that.navInfo = that.G.getNavInfo(); that.navInfo = that.G.getNavInfo();
if (uni.getStorageSync("apply-tab-active") == 1) { if (uni.getStorageSync("apply-tab-active") == 1) {
@ -163,12 +169,7 @@ export default {
this.menuList = this.tabInfo[this.tabActive].childList; this.menuList = this.tabInfo[this.tabActive].childList;
this.getList(); this.getList();
} }
if (typeof that.$mp.page.getTabBar === "function" && that.$mp.page.getTabBar()) {
that.$mp.page.getTabBar().setData({
selected: 3,
isShow: true,
});
}
this.getGZHInfo(); this.getGZHInfo();
}, },
onReachBottom() { onReachBottom() {

@ -356,7 +356,7 @@ export default {
getClass() { getClass() {
var that = this; var that = this;
that.G.Get( that.G.Get(
that.appid == "wxb0c590fd696b79be" ? that.api.yi_job_class_new : that.api.yi_job_class, that.api.yi_job_class_new,
{ type: 90, industry: 2, hasJob: 1 }, { type: 90, industry: 2, hasJob: 1 },
(res) => { (res) => {
console.log(res); console.log(res);
@ -392,7 +392,7 @@ export default {
getType() { getType() {
var that = this; var that = this;
that.G.Get( that.G.Get(
that.appid == "wxb0c590fd696b79be" ? that.api.yi_job_type_new : that.api.yi_job_type, that.api.yi_job_type_new,
{}, {},
(res) => { (res) => {
that.filterData.classifyList = res.labels.map((label) => ({ that.filterData.classifyList = res.labels.map((label) => ({

@ -51,7 +51,7 @@
<view class="g_mb_10 g_bg_f_5 sticky g_flex_row_between"> <view class="g_mb_10 g_bg_f_5 sticky g_flex_row_between">
<view class="g_flex_1"> <view class="g_flex_1">
<u-tabs bg-color="transparent" from="index" :list="tabInfo.list" :is-scroll="true" :current="tabInfo.active" :active-color="appid != 'wxb0c590fd696b79be' ? '#3578f6' : '#ff4400'" bar-width="64" bar-height="6" @change="handleUpdateTab" font-size="32" 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="globalData.themeColor" bar-width="64" bar-height="6" @change="handleUpdateTab" font-size="32" duration="0.05" height="76"></u-tabs>
</view> </view>
<view class="g_flex_none g_flex_column_center g_fs_17 g_pr_26 g_pb_4" style="color: #576b95; text-decoration: underline" @click="openPop"> </view> <view class="g_flex_none g_flex_column_center g_fs_17 g_pr_26 g_pb_4" style="color: #576b95; text-decoration: underline" @click="openPop"> </view>
</view> </view>
@ -62,23 +62,15 @@
<view> <view>
<view class="g_mt_10"> <view class="g_mt_10">
<!-- 推广区 --> <!-- 推广区 -->
<promotionPanel v-if="appid != 'wxb0c590fd696b79be'" /> <view class="g_ml_10 g_mr_10" hover-class="none" hover-stop-propagation="false">
<view class="g_ml_10 g_mr_10" v-else hover-class="none" hover-stop-propagation="false">
<image class="g_w_all g_h_70 g_radius_8" src="https://matripe-cms.oss-cn-beijing.aliyuncs.com/2023-11-17/1a1df19f-89f5-4a8d-8888-3b050badb6c1_banner-02.jpg" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload=""> </image> <image class="g_w_all g_h_70 g_radius_8" src="https://matripe-cms.oss-cn-beijing.aliyuncs.com/2023-11-17/1a1df19f-89f5-4a8d-8888-3b050badb6c1_banner-02.jpg" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload=""> </image>
</view> </view>
</view> </view>
<!--为最外层的大盒子-->
<view class="g_flex_row_start flex_center g_bg_f g_ml_10 g_mr_10 g_radius_8" style="overflow: hidden" v-if="noticList.length > 0 && appid != 'wxb0c590fd696b79be'">
<view class="g_flex_column_center g_h_48">
<image class="g_w_48 g_h_48" :src="noticeImg" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload=""> </image>
</view>
<u-notice-bar ref="noticeBar" :playState="showNotic" color="#333" padding="0rpx" font-size="32" style="width: calc(100% - 54px)" :speed="100" :volume-icon="false" type="none" :list="noticList"></u-notice-bar>
</view>
<view class="g_bg_f_5 sticky g_flex_row_between flex_center" id="tttop"> <view class="g_bg_f_5 sticky g_flex_row_between flex_center" id="tttop">
<view class="g_flex_1"> <view class="g_flex_1">
<u-tabs bg-color="transparent" from="index" :list="tabInfo.list" :is-scroll="true" :current="tabInfo.active" :active-color="appid != 'wxb0c590fd696b79be' ? '#3578f6' : '#ff4400'" 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="globalData.themeColor" bar-width="64" bar-height="6" @change="handleUpdateTab" font-size="34" duration="0.05" height="76"></u-tabs>
</view> </view>
<view v-if="true || isMember && hasPermission" class="g_mr_8" @click="goShare" hover-class="none" hover-stop-propagation="false"> </view> <view v-if="true || (isMember && hasPermission)" class="g_mr_8" @click="goShare" hover-class="none" hover-stop-propagation="false"> </view>
<!-- <view class="g_flex_none g_flex_column_center g_fs_17 g_pr_26 g_pb_4" style="color: #576b95; text-decoration: underline" @click="openPop"> </view> --> <!-- <view class="g_flex_none g_flex_column_center g_fs_17 g_pr_26 g_pb_4" style="color: #576b95; text-decoration: underline" @click="openPop"> </view> -->
<view class="csbf" @click="chooseNl" data-type="special"> <view class="csbf" @click="chooseNl" data-type="special">
@ -193,22 +185,16 @@ export default {
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
this.searchAnimate(); this.searchAnimate();
// #endif // #endif
let appId = getApp().globalData.appId;
if (this.appInfo.noticeImg) {
this.noticeImg = this.appInfo.noticeImg;
} else {
this.noticeImg = "https://matripe-cms.oss-cn-beijing.aliyuncs.com/pugongying/notice/noticeDefault.png";
}
}, },
data() { data() {
return { return {
globalData:getApp().globalData,
isUseNewJob: getApp().globalData.isUseNewJob, isUseNewJob: getApp().globalData.isUseNewJob,
appid: getApp().globalData.appId, appid: getApp().globalData.appId,
selectedCity: "全国", selectedCity: "全国",
envVersion: uni.getStorageSync("ENV_VERSION"), // envVersion: uni.getStorageSync("ENV_VERSION"), //
isMember: uni.getStorageSync("IS_MINIAPP_MEMBER"), // isMember: uni.getStorageSync("IS_MINIAPP_MEMBER"), //
hasPermission: uni.getStorageSync("HAS_PERMISSION") == 1 ? true : false, // hasPermission: uni.getStorageSync("HAS_PERMISSION") == 1 ? true : false, //
noticeImg: "",
getFilterData: { getFilterData: {
sex: "-1", sex: "-1",
ageRangeStr: "", ageRangeStr: "",
@ -290,8 +276,6 @@ export default {
isShow: false, isShow: false,
}, },
// "使沿" // "使沿"
noticList: [],
showNotic: "paused",
userId: 0, userId: 0,
currentInfo: {}, currentInfo: {},
appInfo: uni.getStorageSync("miniApp-info"), appInfo: uni.getStorageSync("miniApp-info"),
@ -312,40 +296,7 @@ export default {
that.query.page = 1; that.query.page = 1;
this.isLogin = uni.getStorageSync("apply-userinfo") ? true : false; this.isLogin = uni.getStorageSync("apply-userinfo") ? true : false;
this.query.size = this.isLogin ? 50 : 20; this.query.size = this.isLogin ? 50 : 20;
that.getList().then(() => { that.getList()
that.showNotic = "paused";
console.log("that.showNotic1", that.showNotic);
setTimeout(() => {
if (uni.getStorageSync("miniApp-info").notice) {
let notice = uni.getStorageSync("miniApp-info").notice;
var reg = /[\r\n]/g;
notice = notice.replace(reg, "");
that.noticList[0] = notice;
that.showNotic = "play";
that.$forceUpdate();
}
}, 0);
});
// that.tabInfo.list = [
// {
// name: "",
// num: 0,
// tip: 0,
// classify: 2,
// },
// // {
// // name: "",
// // num: 0,
// // tip: 1,
// // classify: 3,
// // },
// // {
// // name: "",
// // num: 0,
// // tip: 2,
// // classify: 2,
// // },
// ];
that.isShowTab = true; that.isShowTab = true;
}, },
@ -519,26 +470,13 @@ export default {
// params.sortTag = 2; // params.sortTag = 2;
} }
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
let _url = ""; let _url = that.api.new_job_list;
if (that.appid == "wxb0c590fd696b79be" && that.isUseNewJob) { console.log('_url',_url);
//
_url = that.api.new_job_list;
} else {
//
_url = that.api.yi_job_list;
}
that.G.Post(_url, params, (res) => { that.G.Post(_url, params, (res) => {
console.log("一才职位列表:", res); console.log("一才职位列表:", res);
that.computeCode = 1; that.computeCode = 1;
let resData = {}; let resData = {};
if (that.appid == "wxb0c590fd696b79be" && that.isUseNewJob) { resData = res;
//
resData = res;
} else {
//
resData = res.pageBean;
}
if (resData.recordCount == 0) { if (resData.recordCount == 0) {
that.loading = false; that.loading = false;

@ -2,13 +2,13 @@
<view class="p-login-index g_flex_column_start"> <view class="p-login-index g_flex_column_start">
<!-- 15936360682 --> <!-- 15936360682 -->
<view class="g_h_60"></view> <view class="g_h_60"></view>
<view class="g_flex_row_center g_mb_10"> <view class="g_text_c">
<!-- <img :src="localBaseImg + 'yicaiLogoBgf913.png'" alt="" class="g_w_56 g_h_56 g_radius_8" /> --> <image src="https://matripe.oss-cn-beijing.aliyuncs.com/bcgyl.png" class="g_w_70 g_h_70 g_mt_30" mode="aspectFit"></image>
<img :src="logo" alt="" class="g_w_56 g_h_56 g_radius_8" /> <!-- -->
</view> <view class="g_mb_12">
<view style="font-size: 16px; font-weight: 400; color: #919191; line-height: 25px; margin-bottom: 60px; text-align: center"> <image src="http://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/title3.svg" style="width: 190px;height: 19px;margin-top:20px;"></image>
{{ tip }} </view>
</view> </view>
<view class="m-form g_mb_50 g_pl_40 g_pr_40"> <view class="m-form g_mb_50 g_pl_40 g_pr_40">
<view class="g_bg_f_5 g_radius_6 g_pl_16 g_pr_16 g_flex_column_center g_pt_6 g_pb_6 g_mb_20"> <view class="g_bg_f_5 g_radius_6 g_pl_16 g_pr_16 g_flex_column_center g_pt_6 g_pb_6 g_mb_20">
<u-input maxlength="11" v-model="form.tel" type="number" class="g_fs_16" placeholder="请输入手机号" placeholder-style="color:#999999;font-size:32rpx;line-height:1" /> <u-input maxlength="11" v-model="form.tel" type="number" class="g_fs_16" placeholder="请输入手机号" placeholder-style="color:#999999;font-size:32rpx;line-height:1" />
@ -120,12 +120,6 @@ export default {
}, },
onShow() { onShow() {
let that = this; let that = this;
// if (uni.getAccountInfoSync().miniProgram.appId == "wxd522e45fa0d4be09") {
// //
// that.tip = " ";
// } else {
// that.tip = " ";
// }
let slogan = that.miniAppInfo.slogan || "全心全意为老乡服务"; let slogan = that.miniAppInfo.slogan || "全心全意为老乡服务";
that.tip = slogan; that.tip = slogan;
this.G.clearLocalStorage(); this.G.clearLocalStorage();

@ -116,7 +116,7 @@ export default {
let that = this; let that = this;
if (typeof that.$mp.page.getTabBar === "function" && that.$mp.page.getTabBar()) { if (typeof that.$mp.page.getTabBar === "function" && that.$mp.page.getTabBar()) {
that.$mp.page.getTabBar().setData({ that.$mp.page.getTabBar().setData({
selected: uni.getAccountInfoSync().miniProgram.appId == "wxb0c590fd696b79be" ? 1 : 2, selected: 1,
isShow: true, isShow: true,
}); });
} }

@ -243,7 +243,7 @@ export default {
let that = this; let that = this;
if (typeof that.$mp.page.getTabBar === "function" && that.$mp.page.getTabBar()) { if (typeof that.$mp.page.getTabBar === "function" && that.$mp.page.getTabBar()) {
that.$mp.page.getTabBar().setData({ that.$mp.page.getTabBar().setData({
selected: uni.getAccountInfoSync().miniProgram.appId == "wxb0c590fd696b79be" ? 2 : 3, selected: 2,
isShow: true, isShow: true,
}); });
} }

@ -0,0 +1,34 @@
<template>
<div>
工作台
</div>
</template>
<script>
export default {
onShareAppMessage() {
return this.G.shareFun();
},
onReady() {
this.G.setNavStyle();
},
data() {
return {};
},
onLoad() {},
onShow() {
let that = this;
if (typeof that.$mp.page.getTabBar === "function" && that.$mp.page.getTabBar()) {
that.$mp.page.getTabBar().setData({
selected: 4,
isShow: true,
});
}
},
created() {},
methods: {},
};
</script>
<style></style>

@ -1,5 +1,5 @@
<template> <template>
<view class="p-root-merchantManagement-dynamicNotice g_bg_f_5 g_p_10 g_pb_120" style="min-height: 100vh;padding-top: 24px;"> <view class="p-root-merchantManagement-dynamicNotice g_bg_f_5 g_p_10 g_pb_120" style="min-height: 100vh; padding-top: 24px">
<view class="g_pt_10" hover-class="none" hover-stop-propagation="false"> <view class="g_pt_10" hover-class="none" hover-stop-propagation="false">
<view class="g_mb_4 g_pl_10 g_c_6">预览</view> <view class="g_mb_4 g_pl_10 g_c_6">预览</view>
<view class="g_flex_row_start flex_center g_bg_f g_radius_8" style="overflow: hidden"> <view class="g_flex_row_start flex_center g_bg_f g_radius_8" style="overflow: hidden">
@ -15,9 +15,7 @@
<u-input type="textarea" height="240" :customStyle="{ fontSize: '34rpx' }" :clearable="false" autoHeight :value="notice" @input="changeNotice"></u-input> <u-input type="textarea" height="240" :customStyle="{ fontSize: '34rpx' }" :clearable="false" autoHeight :value="notice" @input="changeNotice"></u-input>
</view> </view>
<view class="g_mt_32" hover-class="none" hover-stop-propagation="false"> <view class="g_mt_32" hover-class="none" hover-stop-propagation="false">
<g-button :type="isChange ? 'primary' : 'disabled'" btnText="提交" @clickBtn="subNameInfo" <g-button :type="isChange ? 'primary' : 'disabled'" btnText="提交" @clickBtn="subNameInfo" :loading="isSubmit" />
:loading="isSubmit"
/>
</view> </view>
</view> </view>
</view> </view>
@ -30,17 +28,7 @@ export default {
}, },
onLoad(options) { onLoad(options) {
let appId = getApp().globalData.appId; let appId = getApp().globalData.appId;
if (appId == "wx581db3f39c49ed2b") { this.noticeImg = "../../static/image/noticIcon.png";
this.noticeImg = "https://matripe-cms.oss-cn-beijing.aliyuncs.com/pugongying/notice/yinghua.png";
} else if (appId == "wxcd0e4a001e1d87bd") {
this.noticeImg = "https://matripe-cms.oss-cn-beijing.aliyuncs.com/pugongying/notice/huipin.png";
} else if (appId == "wxd522e45fa0d4be09") {
this.noticeImg = "https://matripe-cms.oss-cn-beijing.aliyuncs.com/pugongying/notice/xindu.png";
} else if (appId == "wx15bc9c758f4eb129") {
this.noticeImg = "https://matripe-cms.oss-cn-beijing.aliyuncs.com/pugongying/notice/yexiaoman.png";
} else {
this.noticeImg = "../../static/image/noticIcon.png";
}
console.log(this.appInfo); console.log(this.appInfo);
var reg = /[\r\n]/g; var reg = /[\r\n]/g;
this.noticList[0] = this.appInfo.notice.replace(reg, ""); this.noticList[0] = this.appInfo.notice.replace(reg, "");
@ -50,24 +38,24 @@ export default {
}, },
data() { data() {
return { return {
sqlStr:'', sqlStr: "",
noticeImg: "", noticeImg: "",
noticList: [""], noticList: [""],
notice: "", notice: "",
playState: "paused", playState: "paused",
appInfo: uni.getStorageSync("miniApp-info"), appInfo: uni.getStorageSync("miniApp-info"),
isSubmit:false, isSubmit: false,
isChange:false, isChange: false,
}; };
}, },
methods: { methods: {
changeNotice(e) { changeNotice(e) {
console.log(e); console.log(e);
let that = this; let that = this;
if(that.sqlStr == e){ if (that.sqlStr == e) {
this.isChange = false; this.isChange = false;
}else{ } else {
this.isChange = true; this.isChange = true;
} }
this.playState = "paused"; this.playState = "paused";
@ -81,21 +69,26 @@ export default {
}, },
subNameInfo() { subNameInfo() {
let that = this; let that = this;
if(!that.isChange){ if (!that.isChange) {
return false; return false;
} }
that.isSubmit = true; that.isSubmit = true;
this.G.Put(this.api.merchantManagement_updateField, { fieldName: "notice", fieldValue: this.noticList[0] }, () => { this.G.Put(
that.isSubmit = false; this.api.merchantManagement_updateField,
uni.showToast({ { fieldName: "notice", fieldValue: this.noticList[0] },
title: "修改成功", () => {
icon: "none", that.isSubmit = false;
}); uni.showToast({
that.isChange = false; title: "修改成功",
that.G.getAgencyInfo(); icon: "none",
},()=>{ });
that.isSubmit = false; that.isChange = false;
}); that.G.getAgencyInfo();
},
() => {
that.isSubmit = false;
}
);
// 使沿 // 使沿
}, },
}, },

@ -89,18 +89,10 @@
</view> </view>
</view> </view>
<view class="g_mt_16"> <view class="g_mt_16">
<view class="g_flex_row_start g_mb_8 g_pl_10"> <view class="g_flex_row_start g_mb_8 g_pl_10"> 职位标签 </view>
职位标签 <view class="g_flex_row_start flex_center g_bg_f g_h_44 g_pl_10 g_radius_8" @click="goTable">
</view> <div class="weui-input g_flex_row_between" style="width: 97%; height: 21px; color: #999; background-color: #fff">
<view class="g_flex_row_start flex_center g_bg_f g_h_44 g_pl_10 g_radius_8" <div class="g_flex_column_center">请添加职位标签</div>
@click="goTable"
>
<div class="weui-input g_flex_row_between"
style="width: 97%;height: 21px;color: #999;background-color: #fff;"
>
<div class="g_flex_column_center">
请添加职位标签
</div>
<div class="g_flex_column_center"> <div class="g_flex_column_center">
<i class="iconfont icon-gengduo11 g_c_9"></i> <i class="iconfont icon-gengduo11 g_c_9"></i>
</div> </div>
@ -121,7 +113,7 @@
<view class="g_c_9 g_fs_15" v-else> </view> <view class="g_c_9 g_fs_15" v-else> </view>
</view> </view>
</view> </view>
<!-- 隐藏字段容器 --> <!-- 隐藏字段容器 -->
<view class="" v-if="false" hover-class="none" hover-stop-propagation="false"> <view class="" v-if="false" hover-class="none" hover-stop-propagation="false">
<view class="g_mt_16"> <view class="g_mt_16">
<view class="g_flex_row_start g_mb_8 g_pl_10"> <view class="g_flex_row_start g_mb_8 g_pl_10">
@ -216,12 +208,7 @@
<g-panel-fixed> <g-panel-fixed>
<slot> <slot>
<view class="g_flex_row_between g_pl_12 g_pr_12"> <view class="g_flex_row_between g_pl_12 g_pr_12">
<view class="" style="flex: 2;" <view @click.stop="onSubmit" class="g_ml_24" style="flex: 3">
v-if="appId == 'wxe431e0b3abd9ae0b' || appId == 'wx57e965905e6b4530'"
>
<g-button size="height" type="default" btnText="智能填表"></g-button>
</view>
<view @click.stop="onSubmit" class=" g_ml_24" style="flex: 3;">
<g-button size="height" type="primary" :btnText="jobId ? '确定' : '发布职位'"></g-button> <g-button size="height" type="primary" :btnText="jobId ? '确定' : '发布职位'"></g-button>
</view> </view>
</view> </view>
@ -1175,12 +1162,12 @@ export default {
// } // }
// ); // );
}, },
goTable(){ goTable() {
uni.navigateTo({ uni.navigateTo({
url:'/root/merchantManagement/child/jobLabels' url: "/root/merchantManagement/child/jobLabels",
}) });
} },
}, },
}; };
</script> </script>
@ -1217,7 +1204,7 @@ export default {
.menu-active { .menu-active {
.btn { .btn {
background: rgba(53,120,246, 0.1); background: rgba(53, 120, 246, 0.1);
border: 1rpx solid #3578f6; border: 1rpx solid #3578f6;
color: #3578f6; color: #3578f6;
} }

@ -93,12 +93,6 @@ export default {
let that = this; let that = this;
that.tip = that.miniAppInfo.slogan || "全心全意为老乡服务"; that.tip = that.miniAppInfo.slogan || "全心全意为老乡服务";
// if (uni.getAccountInfoSync().miniProgram.appId == "wxd522e45fa0d4be09") {
// //
// that.tip = " ";
// } else {
// that.tip = " ";
// }
}, },
onHide() { onHide() {
if (this.msgCode.timer) { if (this.msgCode.timer) {

@ -8,8 +8,8 @@
// #e3ecfd || #ff440011 filter_bg_color // #e3ecfd || #ff440011 filter_bg_color
$filter_bg_color: #e3ecfd; $filter_bg_color: #e3ecfd;
$main_bg_color: #ff4400; $main_bg_color: #3578f6;
$main_color: #ff4400; $main_color: #3578f6;
image { image {
vertical-align: top; vertical-align: top;
} }

@ -1,8 +1,8 @@
@font-face { @font-face {
font-family: "iconfont"; /* Project id 4374774 */ font-family: "iconfont"; /* Project id 4374774 */
src: url('//at.alicdn.com/t/c/font_4374774_pt88dt6fxcj.woff2?t=1741923897019') format('woff2'), src: url('//at.alicdn.com/t/c/font_4374774_k89ozyhemkr.woff2?t=1742454965474') format('woff2'),
url('//at.alicdn.com/t/c/font_4374774_pt88dt6fxcj.woff?t=1741923897019') format('woff'), url('//at.alicdn.com/t/c/font_4374774_k89ozyhemkr.woff?t=1742454965474') format('woff'),
url('//at.alicdn.com/t/c/font_4374774_pt88dt6fxcj.ttf?t=1741923897019') format('truetype'); url('//at.alicdn.com/t/c/font_4374774_k89ozyhemkr.ttf?t=1742454965474') format('truetype');
} }
.iconfont { .iconfont {
@ -13,6 +13,10 @@
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
.icon-gongdanguanli:before {
content: "\e909";
}
.icon-shop:before { .icon-shop:before {
content: "\e7e5"; content: "\e7e5";
} }

@ -53,7 +53,7 @@ let data = {
// #endif // #endif
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
appName = uni.getStorageSync('miniApp-info').fullName || uni.getStorageSync('miniApp-info').agencyName; appName = uni.getStorageSync('miniApp-info').fullName || uni.getStorageSync('miniApp-info').agencyName || '伯才供应链';
// #endif // #endif
@ -114,14 +114,14 @@ let data = {
} }
$header.inviteUserId = '' $header.inviteUserId = ''
if (uni.getStorageSync("AGENCY_USER_ID")) { if (uni.getStorageSync("AGENCY_USER_ID")) {
$header.inviteUserId = uni.getStorageSync("AGENCY_USER_ID"); // $header.inviteUserId = uni.getStorageSync("AGENCY_USER_ID");
} }
if ($parmas == '') { if ($parmas == '') {
$parmas = {}; $parmas = {};
} }
if (uni.getStorageSync("AGENCY_ID")) { if (uni.getStorageSync("AGENCY_ID")) {
$header.AgencyId4A = uni.getStorageSync("AGENCY_ID"); $header.AgencyId4A = uni.getStorageSync("AGENCY_ID");
$parmas.agencyId = uni.getStorageSync("AGENCY_ID") // $parmas.agencyId = uni.getStorageSync("AGENCY_ID")
} }
if ($parmas.formdata || $method == "POST" || $method == "PUT") { if ($parmas.formdata || $method == "POST" || $method == "PUT") {
@ -139,7 +139,7 @@ let data = {
header: Object.assign($header, that.setPublicParams()), header: Object.assign($header, that.setPublicParams()),
method: $method, method: $method,
success: (res) => { success: (res) => {
// 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) {// 正常

Loading…
Cancel
Save