cyl/master-0804
wangxia 3 months ago
parent d02cfa6c81
commit 09ba059ec3

@ -82,6 +82,10 @@ export default {
type: String, type: String,
default: "", default: "",
}, },
navNewPage: {
type: Boolean,
default: true,
},
}, },
// //
data() { data() {
@ -89,6 +93,7 @@ export default {
joinTeamDrawerShow: false, joinTeamDrawerShow: false,
joinTeamConfirm: false, joinTeamConfirm: false,
submitConfirm: false, submitConfirm: false,
btnLoading: false,
teamList: [], teamList: [],
teamInfo: { teamInfo: {
tel: "", tel: "",
@ -220,16 +225,19 @@ export default {
} }
that.btnLoading = true; that.btnLoading = true;
this.G.Get(this.api.bind_subscribeSubmit + "/" + that.shareAgencyId, { agencyId: that.agencyInfo.id, agencyName: that.agencyInfo.fullName, source: 3, remark: " " }, (res) => { this.G.Get(this.api.bind_subscribeSubmit + "/" + that.shareAgencyId, { agencyId: that.agencyInfo.id, agencyName: that.agencyInfo.fullName, source: 3, remark: " " }, (res) => {
that.$emit('updateInfo') that.$emit("updateInfo");
uni.showToast({ uni.showToast({
title: "申请成功", title: "关注成功",
icon: "none", icon: "none",
}); });
that.btnLoading = false; that.btnLoading = false;
that.submitConfirm = false; that.submitConfirm = false;
if (that.navNewPage) {
uni.navigateTo({ uni.navigateTo({
url: "/root/person/inviteFollowSuccess", url: "/root/person/inviteFollowSuccess",
}); });
}
// reso(); // reso();
// that.checkHasApply(); // that.checkHasApply();
console.log(res); console.log(res);

@ -639,7 +639,7 @@ export default {
}); });
}); });
} else if (type == "setShare") { } else if (type == "setShare") {
this.setShareImg(ctx, canvas, mycenter, { roundRect1, roundRect_yuan, roundRect, fillTextLineBreak }) this.setShareImg(ctx, canvas, mycenter)
.then(function (canvas1) { .then(function (canvas1) {
uni.canvasToTempFilePath({ uni.canvasToTempFilePath({
canvas: canvas1, canvas: canvas1,

@ -3,11 +3,11 @@
<view class="g_flex_row_between flex_center g_p_12 g_mb_12 g_bg_f" v-if="(userRole.recordStatus == 3 || userRole.recordStatus == 4 || userRole.recordStatus == 5) && from == '短链接'"> <view class="g_flex_row_between flex_center g_p_12 g_mb_12 g_bg_f" v-if="(userRole.recordStatus == 3 || userRole.recordStatus == 4 || userRole.recordStatus == 5) && from == '短链接'">
<view>关注该代理可查看其佣金, 点击直接关注</view> <view>关注该代理可查看其佣金, 点击直接关注</view>
<view> <view>
<g-button type="primary" size="mini" fontSize="14" btnText="关注" @btnClick="handleSubmit"></g-button> <g-button type="primary" size="mini" fontSize="14" btnText="关注" @clickBtn="handleSubmit"></g-button>
</view> </view>
</view> </view>
<g-list-job from="shareList" class="g_flex_1" :recordStatus="userRole.recordStatus" :list="query.list" @clickCard="goDetail" :loading="loading" :speed="speed" :query="query" :isShowLoginBtn="isLogin ? false : true" /> <g-list-job from="shareList" class="g_flex_1" :recordStatus="userRole.recordStatus" :list="query.list" @clickCard="goDetail" :loading="loading" :speed="speed" :query="query" :isShowLoginBtn="isLogin ? false : true" />
<applyFlow ref="applyFlow" @updateInfo="updateInfo" :userInfo="userInfo" :shareAgencyId="shareUserInfo.agencyId" :agencyInfo="agencyInfo"></applyFlow> <applyFlow ref="applyFlow" @updateInfo="updateInfo" :navNewPage="false" :userInfo="userInfo" :shareAgencyId="shareUserInfo.agencyId" :agencyInfo="agencyInfo"></applyFlow>
</view> </view>
</template> </template>
@ -132,8 +132,10 @@ export default {
updateInfo() { updateInfo() {
let that = this; let that = this;
that.getAgencyInfo().then(() => { that.getAgencyInfo().then(() => {
that.getUserRole().then(() => {
that.G.checkToken(); that.G.checkToken();
}); });
});
}, },
getUserRole() { getUserRole() {
@ -242,6 +244,7 @@ export default {
let that = this; let that = this;
this.G.isLogin(); this.G.isLogin();
if (this.G.isLogin()) { if (this.G.isLogin()) {
console.log("123123123213");
if (that.userInfo.agencyId) { if (that.userInfo.agencyId) {
// that.submitConfirm = true; // that.submitConfirm = true;
that.$refs.applyFlow.applyFlowConfirm(); that.$refs.applyFlow.applyFlowConfirm();

Loading…
Cancel
Save