添加老乡

cyl/master-im
wangxia 5 months ago
parent 204752f015
commit ae53783f9b

@ -51,24 +51,19 @@ export default {
checkNum() {
let that = this;
if (uni.getStorageSync("apply-token")) {
that.G.Get(
that.api.bind_getWaitNum + "/" + 1,
{
},
(res) => {
that.G.Get(that.api.bind_getApplyNum, {}, (res) => {
console.log("获取待处理数量:", res);
if (res.unread > 0) {
if (res.approvePassHasNotRed > 0) {
uni.setTabBarBadge({
index: 1,
text: String(res.unread),
text: String(res.approvePassHasNotRed),
});
} else {
uni.removeTabBarBadge({
index: 1,
});
}
}
);
});
}
},
},

@ -7,6 +7,7 @@ let bindInfo = {
bind_recordSubmit:"/assistant/circle/agency/apply/agree",// 通过申请提交事件
bind_enterpriseDetail:"/assistant/circle/agency/detail",// 企业详情
bind_getWaitNum:"/assistant/circle/agency/countPending",// 获取统计处理中的数量
bind_getApplyNum:"/assistant/circle/agency/countHasNotReadNum",// 获取通过未读的关注数
bind_isSee:"/assistant/circle/agency/himSee",// 让不让他看
bind_getGroupDetail:"/assistant/circle/agency/info",// 团队详情
bind_list:"/assistant/circle/agency/list",// 上下游列表

@ -164,6 +164,7 @@ export function createApp () {
/*
*/
uploadImgByCamera (callback = () => { }, type = 'default', $num = 1, $sourceType = ['camera']) {
var that = this;
G.uploadImage($num, (imgRes) => {
console.log('imgRes', imgRes);
uni.showLoading({

@ -19,8 +19,7 @@
</div>
<!-- #ifdef MP-WEIXIN -->
<div>
<div class="sticky">
<div class="g_bg_f_5 g_flex_row_between flex_center" id="tttop">
<div class="sticky"> <div class="g_bg_f_5 g_flex_row_between flex_center" id="tttop">
<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>
</div>

@ -322,16 +322,12 @@ export default {
},
getNum() {
let that = this;
that.G.Get(
that.api.bind_getWaitNum + "/" + 1,
{
},
(res) => {
that.G.Get(that.api.bind_getApplyNum + "/" + 1, {}, (res) => {
console.log("获取待处理数量:", res);
if (res.unread > 0) {
if (res.approvePassHasNotRed > 0) {
uni.setTabBarBadge({
index: 1,
text: String(res.unread),
text: String(res.approvePassHasNotRed),
});
that.readed = false;
} else {
@ -340,8 +336,7 @@ export default {
});
that.readed = true;
}
}
);
});
},
goLogin() {

@ -57,7 +57,7 @@
type: 'slot',
pColumn: 12,
require: true,
customRequire:true
customRequire: true,
},
{
icon: '',
@ -82,7 +82,7 @@
pColumn: 12,
require: true,
type: 'slot',
customRequire:true
customRequire: true,
},
{
icon: '',
@ -95,7 +95,20 @@
type: 'slot',
pColumn: 8,
},
]"
@changeName="handleClickName"
@changeSex="handleClickSex"
@changeAge="handleClickAge"
@changeNation="handleClickNation"
@changeIDcard="handleClickIDcard"
@changeAddress="handleClickAddress"
@updateFile="updateFile"
@updateIDInfo="handlerIDInfo"
>
</g-panel-form-slot>
<view class="g_h_10"></view>
<g-panel-form-slot
:list="[
{
icon: '',
label: '上传附件',
@ -106,14 +119,7 @@
pColumn: 16,
},
]"
@changeName="handleClickName"
@changeSex="handleClickSex"
@changeAge="handleClickAge"
@changeNation="handleClickNation"
@changeIDcard="handleClickIDcard"
@changeAddress="handleClickAddress"
@updateFile="updateFile"
@updateIDInfo="handlerIDInfo"
>
<template v-slot:after>
<view class="g_flex_row_start g_p_10" v-if="imgList.length > 0">
@ -121,9 +127,8 @@
<i class="iconfont icon-guanbi img-close" @click="delImg(index)"></i>
<image :src="item" class="g_w_56 g_h_56 g_radius_8" />
</view>
</view>
</template>
</g-panel-form-slot>
</view> </template
></g-panel-form-slot>
<g-panel-fixed>
<slot>
<view class="g_flex_row_center">

@ -51,7 +51,7 @@
</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[0]">
<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 <= 2">
<!-- <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">
<i class="iconfont icon-jia1 g_c_min g_mr_6" style="font-size: 18px"></i>
@ -111,7 +111,7 @@ export default {
} else if (data.info.index) {
that.persenInfo[data.info.index] = data.info;
} else {
// that.persenInfo[that.persenInfo.length] = { ...data.info, index: that.persenInfo.length };
that.persenInfo[that.persenInfo.length] = { ...data.info, index: that.persenInfo.length };
}
that.$forceUpdate();
});
@ -464,7 +464,7 @@ export default {
title: "报名成功",
duration: 2000,
});
that.persenInfo = [];
// that.persenInfo = [];
// that.$forceUpdate();
setTimeout(() => {

Loading…
Cancel
Save