添加老乡

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

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

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

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

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

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

@ -29,7 +29,7 @@
value: info.name, value: info.name,
path: '', path: '',
tip: 'slot-upID', tip: 'slot-upID',
img:info.idCardImageUrl, img: info.idCardImageUrl,
placeholder: '手动输入或拍照自动识别 → ', placeholder: '手动输入或拍照自动识别 → ',
type: 'slot', type: 'slot',
pColumn: 8, pColumn: 8,
@ -57,7 +57,7 @@
type: 'slot', type: 'slot',
pColumn: 12, pColumn: 12,
require: true, require: true,
customRequire:true customRequire: true,
}, },
{ {
icon: '', icon: '',
@ -81,8 +81,8 @@
tip: 'slot-nation', tip: 'slot-nation',
pColumn: 12, pColumn: 12,
require: true, require: true,
type:'slot', type: 'slot',
customRequire:true customRequire: true,
}, },
{ {
icon: '', icon: '',
@ -95,7 +95,20 @@
type: 'slot', type: 'slot',
pColumn: 8, 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: '', icon: '',
label: '上传附件', label: '上传附件',
@ -106,14 +119,7 @@
pColumn: 16, pColumn: 16,
}, },
]" ]"
@changeName="handleClickName"
@changeSex="handleClickSex"
@changeAge="handleClickAge"
@changeNation="handleClickNation"
@changeIDcard="handleClickIDcard"
@changeAddress="handleClickAddress"
@updateFile="updateFile" @updateFile="updateFile"
@updateIDInfo="handlerIDInfo"
> >
<template v-slot:after> <template v-slot:after>
<view class="g_flex_row_start g_p_10" v-if="imgList.length > 0"> <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> <i class="iconfont icon-guanbi img-close" @click="delImg(index)"></i>
<image :src="item" class="g_w_56 g_h_56 g_radius_8" /> <image :src="item" class="g_w_56 g_h_56 g_radius_8" />
</view> </view>
</view> </view> </template
</template> ></g-panel-form-slot>
</g-panel-form-slot>
<g-panel-fixed> <g-panel-fixed>
<slot> <slot>
<view class="g_flex_row_center"> <view class="g_flex_row_center">

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

Loading…
Cancel
Save