团队管理

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

@ -2,6 +2,8 @@
export default {
onShow: function (options) {
console.log("show 项目init", options, decodeURIComponent(options.query.scene));
uni.removeStorageSync("scene");
if (options.query.id) {
uni.setStorageSync("apply-jobdetail-id", options.query.id);
} else {

@ -65,7 +65,12 @@ export function createApp () {
uni.setStorageSync("apply-supplierAccount", res.supplierAccount); // 单独存储 -- 是否是发单号,方便获取 0.不是发单号 1.是发单号
resolve(res)
})
},
function fail (err) {
console.log(err);
resolve(err)
})
})
},
/*

@ -1,7 +1,7 @@
{
"name" : "fadanzhushou",
"appid" : "__UNI__860FDF3",
"description" : "发单助手",
"description" : "报名助手",
"versionName" : "1.0.0",
"versionCode" : "100",
"transformPx" : false,

@ -3,7 +3,7 @@
{
"path": "pages/home/index",
"style": {
"navigationBarTitleText": "发单助手",
"navigationBarTitleText": "报名助手",
"backgroundColor": "#caf1e0",
"backgroundColorTop": "#caf1e0"
// "navigationStyle": "custom"

@ -103,7 +103,19 @@
<!-- <g-panel-form-item :list="[{ icon: 'icon-my_setup', label: '创建发单号', result: '', path: '/root/person/order', tip: 'createOrder', pRow: 12 }]" @clickItem="handleClickItem" /> -->
<view class="g_mt_10">
<g-panel-form-item :list="itemList" @clickItem="handleClickItem" />
<g-panel-form-item
:list="[{
icon: 'icon-wodetuandui',
label: '团队管理',
result: '',
path: '/root/person/teamManage',
pRow: 12,
}]"
@clickItem="handleClickItem"
/>
</view>
<view class="g_mt_10">
<g-panel-form-item :list="[{ icon: 'icon-fankuiyujianyi', label: '反馈与建议', result: '', path: '/root/person/feedback', tip: 'message', pRow: 12 }]" @clickItem="handleClickItem" />
</view>
<view class="g_mt_24">
@ -299,9 +311,9 @@ export default {
that.itemList = [
{
icon: "icon-wodetuandui",
label: "切换团队",
label: "团队管理",
result: "",
path: "qiehuan",
path: "/root/person/teamManage",
pRow: 12,
},
{

@ -63,7 +63,7 @@ export default {
placeholder: "",
wxCode: "",
keyword: "",
agencyName: "发单助手",
agencyName: "报名助手",
recommendList: [],
shareImg: "",
sharePop: {

@ -4,7 +4,7 @@
<view class="g_mb_24 g_flex_row_center" style="padding-top: 130px;">
<img :src="localBaseImg + 'fadanzhushou.png'" class="g_w_63 g_h_63 g_radius_20">
</view>
<view class="g_fs_24 g_c_3 g_flex_row_center g_mb_8 g_fw_600">发单助手</view>
<view class="g_fs_24 g_c_3 g_flex_row_center g_mb_8 g_fw_600">报名助手</view>
<view class="g_fs_16 g_c_3 g_flex_row_center">Version {{version}}</view>
</view>
<view class="g_flex_none">

@ -15,8 +15,8 @@
<u-input v-model="userInfo.userName" height="88" placeholder="请输入你的姓名"></u-input>
</div>
<div class="g_mt_84">
<g-button v-if="applying" btnText="已申请" type="disabled" class=""></g-button>
<g-button v-else btnText="申请加入团队" type="primary" class="" @clickBtn="applyAdd"></g-button>
<g-button v-if="!applying && agencyInfo.agencyName" btnText="申请加入团队" type="primary" class="" @clickBtn="applyAdd"></g-button>
<g-button v-else btnText="已申请" type="disabled" class=""></g-button>
</div>
</div>
</template>
@ -36,28 +36,33 @@ export default {
applying: false,
inviteUserId: "",
uid: "",
ing: false,
};
},
onLoad(options) {
console.log(options);
options.scene = "id=3087_101125";
if (options.scene) {
// options.scene = "id=3087_101125";
if (uni.getStorageSync("scene") || options.scene) {
console.log("XXXXXXXXXXXX");
//
var sceneStr = decodeURIComponent(options.scene);
var sceneStr = uni.getStorageSync("scene") ? decodeURIComponent(uni.getStorageSync("scene")) : decodeURIComponent(options.scene);
var sceneJson = this.G.sceneToJson(sceneStr);
console.log("sceneJson===", sceneJson);
this.inviteUserId = sceneJson.id.split("_")[1];
this.uid = sceneJson.id.split("_")[0];
this.G.checkToken().then((info) => {
console.log("info", info);
if (info) {
console.log("info11", info);
if (!info.msg) {
this.userInfo = uni.getStorageSync("apply-userinfo");
this.getAgencyById();
this.checkHasApply();
uni.removeStorageSync("scene");
} else {
uni.reLaunch({
url: "/pages/login/index?path=/pages/person/memberApplyAdd&scene=" + options.scene,
});
// uni.reLaunch({
// url: `/pages/login/index?path='/root1/person/memberApplyAdd'&scene=${options.scene}`,
// });
uni.setStorageSync("scene", options.scene);
}
});
@ -69,7 +74,24 @@ export default {
methods: {
applyAdd() {
let that = this;
if (!this.userInfo.userName) {
uni.showToast({
title: "请输入你的姓名",
icon: "none",
});
return;
}
if (this.ing) {
return;
}
that.ing = true;
this.G.Post(this.api.order_addApply, { agencyId: that.uid, username: this.userInfo.userName, inviteUserId: this.inviteUserId }, (res) => {
uni.showToast({
title: "申请成功",
icon: "none",
});
that.checkHasApply();
console.log(res);
});
},
@ -82,13 +104,13 @@ export default {
},
checkHasApply() {
let that = this;
this.G.Post(this.api.order_checkHasApply, { agencyId: that.uid, userId: this.inviteUserId }, (res) => {
this.G.Post(this.api.order_checkHasApply, { agencyId: that.uid, userId: this.userInfo.id }, (res) => {
if (res.length > 0) {
that.applying = true;
} else {
that.applying = false;
}
that.ing = false;
console.log(res);
});
},

@ -128,7 +128,7 @@
</view>
<view class="g_flex_c g_pb_42 g_mt_42">
<!-- #ifdef APP-PLUS -->
<g-button type="primary" @clickBtn="commitApply" btnText="发单助手"></g-button>
<g-button type="primary" @clickBtn="commitApply" btnText="报名助手"></g-button>
<!-- #endif -->
<!-- #ifdef MP-WEIXIN -->
<g-button type="primary" @clickBtn="commitApply" btnText="提交申请"></g-button>

@ -37,7 +37,7 @@
<view class="g_p_16 g_border_e_t" @click="goPage('/root/person/memberApplyQRCode')"> </view>
</view>
</view>
<view class="g_p_16 g_mt_10 g_bg_f" style="padding-bottom: calc(constant(safe-area-inset-bottom)); padding-bottom: calc(env(safe-area-inset-bottom))" @click="addMemberShow = false"> 取消 </view>
<view class="g_p_16 g_mt_10 g_bg_f" style="padding-bottom: calc(constant(safe-area-inset-bottom) + 16px); padding-bottom: calc(env(safe-area-inset-bottom) + 16px)" @click="addMemberShow = false"> 取消 </view>
</view>
</u-popup>
</div>

@ -55,34 +55,34 @@ let data = {
// #ifdef APP-PLUS
'g-open-env': 'APP-PLUS',
appId: uuid_new,
// 请求来源标识 1.小程序 2.app 3.网页
appClassify: 2,
appName: encodeURIComponent('发单助手')
// 请求来源标识 1.小程序 2.app 3.网页
appClassify: 2,
appName: encodeURIComponent('报名助手')
// #endif
// #ifdef H5
'g-open-env': 'H5',
appId: '',
appClassify: 3,
appName: encodeURIComponent('发单助手')
appClassify: 3,
appName: encodeURIComponent('报名助手')
// #endif
// #ifdef MP-WEIXIN
'g-open-env': 'MP-MINI',
appId: uni.getAccountInfoSync().miniProgram.appId,
appClassify: 1,
appName: encodeURIComponent('发单助手')
appClassify: 1,
appName: encodeURIComponent('报名助手')
// #endif
// #ifdef MP-TOUTIAO
'g-open-env': 'MP-TOUTIAO',
appId: tt.getEnvInfoSync().microapp.appId,
subAppId: uni.getStorageSync('subAppId'),
appClassify: 1,
appName: encodeURIComponent('发单助手')
appClassify: 1,
appName: encodeURIComponent('报名助手')
// #endif
// #ifdef MP-KUAISHOU
'g-open-env': 'MP-KUAISHOU',
appId: "",
appClassify: 1,
appName: encodeURIComponent('发单助手')
appClassify: 1,
appName: encodeURIComponent('报名助手')
// #endif
}
return params
@ -121,9 +121,10 @@ let data = {
title: resData.msg,
icon: "none"
});
failback(resData);
setTimeout(() => {
uni.reLaunch({
url: '/pages/login/index?path=' + that.getPathCopy().path + '&level=' + that.getPathCopy().level
url: '/pages/login/index?path=/' + that.getPathCopy().path + '&level=' + that.getPathCopy().level
});
}, 1500);
} else if (resData.status == 500 || resData.status == 502) {// 某种原因导致接口提示该状态码

@ -32,7 +32,7 @@ let data = {
shareFun (
path = "/pages/home/index",
image = "",
title = "发单助手"
title = "报名助手"
) {
let params = {
path: path,

Loading…
Cancel
Save