渠道商
This commit is contained in:
parent
5e2c10dc2c
commit
773253721c
|
@ -153,7 +153,6 @@
|
|||
wx.requestSubscribeMessage({
|
||||
tmplIds: this.arr,
|
||||
success(re) {
|
||||
console.log(JSON.stringify(re), 111111111111)
|
||||
var datas = JSON.stringify(re);
|
||||
if (datas.indexOf("accept") != -1) {
|
||||
console.log(re)
|
||||
|
|
|
@ -174,8 +174,9 @@
|
|||
}
|
||||
});
|
||||
} else {
|
||||
this.url = this.$queue.publicYuMingApp() + '/?invitation=' + this
|
||||
.invitationCode+"&flag=3";
|
||||
// this.url = this.$queue.publicYuMingApp() + '/?invitation=' + this
|
||||
// .invitationCode+"&flag=3";
|
||||
this.url = this.$queue.publicYuMingApp() + '/pages/public/login?blJjrCode=' + this.invitationCode;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -224,6 +225,8 @@
|
|||
if (!this.haibaoImg) {
|
||||
this.haibaoShow = true;
|
||||
this.$queue.showLoading('海报生成中...');
|
||||
console.log(this.backgroundImage);
|
||||
console.log(this.erweimapath);
|
||||
} else {
|
||||
this.modalName = 'Image';
|
||||
}
|
||||
|
|
|
@ -117,7 +117,7 @@
|
|||
.list-top-view-title{
|
||||
color: #13141A;
|
||||
font-weight: bold;
|
||||
font-size: 35rpx;
|
||||
// font-size: 35rpx;
|
||||
}
|
||||
.list-top-view{
|
||||
display: flex;
|
||||
|
|
|
@ -198,10 +198,12 @@
|
|||
});
|
||||
} else {
|
||||
// flag=1 分销员邀请用户 flag=2分销员邀请分销员 flag=3经纪人邀请技师
|
||||
this.url = this.$queue.publicYuMingApp() + '/?invitation=' + this
|
||||
.invitationCode+"&flag=2";
|
||||
this.url2 = this.$queue.publicYuMingApp() + '/?invitation=' + this
|
||||
.invitationCode+"&flag=1";
|
||||
// this.url = this.$queue.publicYuMingApp() + '/?invitation=' + this
|
||||
// .invitationCode+"&flag=2";
|
||||
// this.url2 = this.$queue.publicYuMingApp() + '/?invitation=' + this
|
||||
// .invitationCode+"&flag=1";
|
||||
this.url = this.$queue.publicYuMingApp() + '/pages/public/login?blFxyCode=' + this.invitationCode;
|
||||
this.url2 = this.$queue.publicYuMingApp() + '/pages/public/login?blFxyCode=' + this.invitationCode;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -147,8 +147,11 @@
|
|||
}
|
||||
});
|
||||
} else {
|
||||
this.url = this.$queue.publicYuMingApp() + '/?invitation=' + this
|
||||
.invitationCode+"&flag=3";
|
||||
// this.url = this.$queue.publicYuMingApp() + '/?invitation=' + this
|
||||
// .invitationCode+"&flag=3";
|
||||
// this.url = this.$queue.publicYuMingApp() + '/?invitation=' + this
|
||||
// .invitationCode+"&flag=3";
|
||||
this.url = this.$queue.publicYuMingApp() + '/pages/public/login?blYwyCode=' + this.invitationCode;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -11,14 +11,14 @@
|
|||
</view>
|
||||
<view class="item_view">
|
||||
<view class="item_title">联系电话</view>
|
||||
<u-input type="number" v-model="phone" maxlength="11" placeholder="请输入联系电话" />
|
||||
<u-input type="text" v-model="phone" maxlength="11" placeholder="请输入联系电话" />
|
||||
<view class="xian"></view>
|
||||
</view>
|
||||
<view class="item_view">
|
||||
<view class="item_title" @click.stop="pickerShow">申请渠道</view>
|
||||
<ch-picker ref="ChPicker" position="bottom" :columns="columns" :defaultIndex="curIndexs" @confirm="pickerChange">
|
||||
</ch-picker>
|
||||
<u-input type="text" :disabled="true" v-model="qudao" maxlength="11" placeholder="请选择渠道" />
|
||||
<view class="item_title" @tap="qudaoShow = true">申请渠道</view>
|
||||
<view class="text text-city text-city-active" v-if="qudao" @tap="qudaoShow = true">{{qudao}}</view>
|
||||
<view class="text text-city text-city-disable" v-else @tap="qudaoShow = true">选择渠道</view>
|
||||
<u-input type="text" v-show="false" :disabled="true" v-model="qudao" placeholder="请选择渠道"/>
|
||||
<view class="xian"></view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -28,10 +28,11 @@
|
|||
</view>
|
||||
<view class="list-pay">
|
||||
<view class="textarea-pay-list">
|
||||
<textarea @input="remarks" class="textarea-pay" v-model="remarks" placeholder="请输入备注" name="" maxlength="100"></textarea>
|
||||
<textarea class="textarea-pay" v-model="remarks" placeholder="请输入备注" name="" maxlength="100"></textarea>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<u-select v-model="qudaoShow" style="height: auto;" :list="qudaoList" @confirm="getQudao"></u-select>
|
||||
<view class="push-button">
|
||||
<view class="que-btn" @tap="save">提交申请</view>
|
||||
</view>
|
||||
|
@ -43,46 +44,34 @@
|
|||
export default {
|
||||
data() {
|
||||
return {
|
||||
qudaoList: [],
|
||||
qudaoShow: false,
|
||||
name: '',
|
||||
phone: '',
|
||||
remarks:'',
|
||||
qudao:'',
|
||||
curIndexs: [0],
|
||||
columns: [
|
||||
[
|
||||
{label: '暂无接入渠道商',value: '暂无接入渠道商'},
|
||||
{label: '足球联赛',value: '足球联赛'},
|
||||
{label: '地推',value: '地推',},
|
||||
{label: '酒店',value: '酒店'}
|
||||
],
|
||||
],
|
||||
bb:'1',
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.getQudaoLmList();
|
||||
},
|
||||
methods: {
|
||||
pickerShow() {
|
||||
this.$refs.ChPicker.show()
|
||||
getQudao(e) {
|
||||
this.qudao = e[0].label;
|
||||
this.getQudaoLmList();
|
||||
},
|
||||
pickerChange(e) {
|
||||
console.log(e.columns[0].value);
|
||||
this.qudao=e.columns[0].value
|
||||
this.curIndexs = e.indexs
|
||||
},
|
||||
getChannel() {
|
||||
let userId = this.$queue.getData('userId');
|
||||
this.$Request.getT('/app/artificer/selectAgencyById?userId=' + userId).then(res => {
|
||||
//获取渠道类目
|
||||
getQudaoLmList(){
|
||||
this.$Request.getT('/app/commission/qds/lmList').then(res => {
|
||||
if (res.code == 0) {
|
||||
if (res.data == null) {
|
||||
this.bb = 1;
|
||||
} else {
|
||||
this.bb = res.data.status;
|
||||
this.city = res.data.city;
|
||||
this.age = res.data.age;
|
||||
this.headImg = res.data.img;
|
||||
this.userName = res.data.name;
|
||||
this.phone = res.data.phone;
|
||||
}
|
||||
console.log(this.bb)
|
||||
// this.auditContent = res.data.auditContent;
|
||||
this.qudaoList = [];
|
||||
res.data.forEach((d, index) => {
|
||||
let data = {}
|
||||
data.label = d.name
|
||||
data.value = d.id+""
|
||||
this.qudaoList.push(data);
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
|
@ -95,20 +84,17 @@
|
|||
this.$queue.showToast('请输入正确的手机号!')
|
||||
return;
|
||||
}
|
||||
|
||||
let userId = this.$queue.getData('userId');
|
||||
let data = {
|
||||
remarks: this.remarks,
|
||||
name: this.name,
|
||||
phone: this.phone,
|
||||
lm: this.qudao,
|
||||
}
|
||||
this.$Request.get('/app/commission/jjr/apply', data).then(res => {
|
||||
this.$Request.get('/app/commission/qds/apply', data).then(res => {
|
||||
if (res.code == 0) {
|
||||
uni.hideLoading();
|
||||
this.$queue.showToast(res.msg);
|
||||
// setTimeout(d => {
|
||||
// uni.navigateBack();
|
||||
// }, 1000);
|
||||
} else {
|
||||
uni.hideLoading();
|
||||
this.$queue.showToast(res.msg);
|
||||
|
@ -269,6 +255,17 @@
|
|||
border-bottom: 1rpx solid #f7f7f7;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
.text-city{
|
||||
align-content: center;
|
||||
flex-wrap: wrap;
|
||||
min-height: 40px;
|
||||
}
|
||||
.text-city-active{
|
||||
color: inherit;
|
||||
}
|
||||
.text-city-disable{
|
||||
color: rgb(192, 196, 204);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -163,35 +163,35 @@
|
|||
<image style="padding: 3rpx;" src="../../static/my-gong-4.png" mode=""></image>
|
||||
<span class="my-use-list-text">城市合伙人</span>
|
||||
</view>
|
||||
<!-- <view class="my-use-list" v-if="blIsJjr=='0'" @click="useToUrl('/pages/my/applyBroker/index')">
|
||||
<!-- <view class="my-use-list" v-if="blIsJjr=='0'" @click="useToUrl('/pages/my/applyBroker/index')">
|
||||
<image style="padding: 3rpx;" src="../../static/my-gong-11.png" mode=""></image>
|
||||
<span class="my-use-list-text">申请经纪人</span>
|
||||
</view>
|
||||
<view class="my-use-list" v-if="blIsJjr=='1'" @click="useToUrl('/pages/my/applyBroker/myBroker')">
|
||||
<image style="padding: 3rpx;" src="../../static/my-gong-12.png" mode=""></image>
|
||||
<span class="my-use-list-text">我是经纪人</span>
|
||||
</view>
|
||||
<view class="my-use-list" v-if="blIsJjr=='0'" @click="useToUrl('/pages/my/applySalesperson/index')">
|
||||
</view> -->
|
||||
<!-- <view class="my-use-list" v-if="blIsYwy=='0'" @click="useToUrl('/pages/my/applySalesperson/index')">
|
||||
<image style="padding: 3rpx;" src="../../static/my-gong-14.png" mode=""></image>
|
||||
<span class="my-use-list-text">申请业务员</span>
|
||||
</view>
|
||||
<view class="my-use-list" v-if="blIsJjr=='1'" @click="useToUrl('/pages/my/applySalesperson/mySalesperson')">
|
||||
</view> -->
|
||||
<!-- <view class="my-use-list" v-if="blIsYwy=='1'" @click="useToUrl('/pages/my/applySalesperson/mySalesperson')">
|
||||
<image style="padding: 3rpx;" src="../../static/my-gong-13.png" mode=""></image>
|
||||
<span class="my-use-list-text">我是业务员</span>
|
||||
</view>
|
||||
<view class="my-use-list" v-if="blIsFxy=='0'" @click="useToUrl('/pages/my/applyDistributor/index')">
|
||||
</view> -->
|
||||
<!-- <view class="my-use-list" v-if="blIsFxy=='0'" @click="useToUrl('/pages/my/applyDistributor/index')">
|
||||
<image style="padding: 3rpx;" src="../../static/my-gong-15.png" mode=""></image>
|
||||
<span class="my-use-list-text">申请分销员</span>
|
||||
</view>
|
||||
<view class="my-use-list" v-if="blIsFxy=='1'" @click="useToUrl('/pages/my/applyDistributor/myDistributor')">
|
||||
</view> -->
|
||||
<!-- <view class="my-use-list" v-if="blIsFxy=='1'" @click="useToUrl('/pages/my/applyDistributor/myDistributor')">
|
||||
<image style="padding: 3rpx;" src="../../static/my-gong-16.png" mode=""></image>
|
||||
<span class="my-use-list-text">我是分销员</span>
|
||||
</view> -->
|
||||
<!-- <view class="my-use-list" @click="useToUrl('/pages/my/channelMerchants/index')">
|
||||
<!-- <view class="my-use-list" v-if="blIsQds=='0'" @click="useToUrl('/pages/my/channelMerchants/index')">
|
||||
<image style="padding: 3rpx;" src="../../static/my-gong-11.png" mode=""></image>
|
||||
<span class="my-use-list-text">申请渠道商</span>
|
||||
</view>
|
||||
<view class="my-use-list" @click="useToUrl('/pages/my/channelMerchants/myMerchants')">
|
||||
</view> -->
|
||||
<!-- <view class="my-use-list" v-if="blIsQds=='1'" @click="useToUrl('/pages/my/channelMerchants/myMerchants')">
|
||||
<image style="padding: 3rpx;" src="../../static/my-gong-12.png" mode=""></image>
|
||||
<span class="my-use-list-text">我是渠道商</span>
|
||||
</view> -->
|
||||
|
@ -295,6 +295,8 @@
|
|||
tagsData: [],
|
||||
blIsJjr:'',//1是经纪人 0不是经纪人
|
||||
blIsFxy:'',//1是分销员 0不是分销员
|
||||
blIsYwy:'',//1是业务员 0不是业务员
|
||||
blIsQds:'',//1是渠道商 0不是渠道商
|
||||
}
|
||||
},
|
||||
onLoad(e) {
|
||||
|
@ -346,6 +348,8 @@
|
|||
this.isAgency = res.data.isAgency ? res.data.isAgency : 0; //是否是推广员 1是 2否
|
||||
this.blIsJjr=res.data.blIsJjr;//经纪人
|
||||
this.blIsFxy=res.data.blIsFxy;//分销员
|
||||
this.blIsYwy=res.data.blIsYwy;//业务员
|
||||
this.blIsQds=res.data.blIsQds;//渠道商
|
||||
this.money = res.data.money
|
||||
this.couponnum = res.data.member
|
||||
|
||||
|
|
|
@ -101,6 +101,21 @@
|
|||
if (e.bindingConsortiaId) {
|
||||
this.$queue.setData('bindingConsortiaId', e.bindingConsortiaId);
|
||||
}
|
||||
if (e.blFxyCode) {
|
||||
this.$queue.setData('blFxyCode', e.blFxyCode);
|
||||
}
|
||||
if (e.blJjrCode) {
|
||||
this.$queue.setData('blJjrCode', e.blJjrCode);
|
||||
}
|
||||
if (e.blYwyCode) {
|
||||
this.$queue.setData('blYwyCode', e.blYwyCode);
|
||||
}
|
||||
if (e.blQdsCode) {
|
||||
this.$queue.setData('blQdsCode', e.blQdsCode);
|
||||
}
|
||||
if (e.blDlsCode) {
|
||||
this.$queue.setData('blDlsCode', e.blDlsCode);
|
||||
}
|
||||
this.$Request.get('/app/common/type/237').then(res => {
|
||||
if (res.code == 0) {
|
||||
if (res.data && res.data.value && res.data.value == '是') {
|
||||
|
@ -167,8 +182,12 @@
|
|||
this.$queue.setData("avatar", res.user.avatar);
|
||||
this.$queue.setData("invitationCode", res.user.invitationCode);
|
||||
this.$queue.setData("inviterCode", res.user.inviterCode);
|
||||
this.$queue.setData("bindingConsortiaId", res.user.bindingConsortiaId);
|
||||
|
||||
this.$queue.setData("bindingConsortiaId", res.user.bindingConsortiaId);
|
||||
this.$queue.setData('blFxyCode', res.user.blFxyCode);
|
||||
this.$queue.setData('blJjrCode', res.user.blJjrCode);
|
||||
this.$queue.setData('blYwyCode', res.user.blYwyCode);
|
||||
this.$queue.setData("blQdsCode", res.user.blQdsCode);
|
||||
this.$queue.setData("blDlsCode", res.user.blDlsCode);
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index'
|
||||
})
|
||||
|
@ -219,7 +238,12 @@
|
|||
this.$queue.setData("avatar", res.user.avatar);
|
||||
this.$queue.setData("invitationCode", res.user.invitationCode);
|
||||
this.$queue.setData("inviterCode", res.user.inviterCode);
|
||||
this.$queue.setData("bindingConsortiaId", res.user.bindingConsortiaId);
|
||||
this.$queue.setData("bindingConsortiaId", res.user.bindingConsortiaId);
|
||||
this.$queue.setData('blFxyCode', res.user.blFxyCode);
|
||||
this.$queue.setData('blJjrCode', res.user.blJjrCode);
|
||||
this.$queue.setData('blYwyCode', res.user.blYwyCode);
|
||||
this.$queue.setData("blQdsCode", res.user.blQdsCode);
|
||||
this.$queue.setData("blDlsCode", res.user.blDlsCode);
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index'
|
||||
})
|
||||
|
@ -248,6 +272,11 @@
|
|||
this.$queue.setData("avatar", res.user.avatar);
|
||||
this.$queue.setData("invitationCode", res.user.invitationCode);
|
||||
this.$queue.setData("inviterCode", res.user.inviterCode);
|
||||
this.$queue.setData('blFxyCode', res.user.blFxyCode);
|
||||
this.$queue.setData('blJjrCode', res.user.blJjrCode);
|
||||
this.$queue.setData('blYwyCode', res.user.blYwyCode);
|
||||
this.$queue.setData("blQdsCode", res.user.blQdsCode);
|
||||
this.$queue.setData("blDlsCode", res.user.blDlsCode);
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index'
|
||||
})
|
||||
|
@ -313,10 +342,30 @@
|
|||
if (uni.getStorageSync('inviterCode')) {
|
||||
inviterCode = uni.getStorageSync('inviterCode')
|
||||
}
|
||||
let bindingConsortiaId = '';
|
||||
let bindingConsortiaId = '';
|
||||
if (uni.getStorageSync('bindingConsortiaId')) {
|
||||
bindingConsortiaId = uni.getStorageSync('bindingConsortiaId')
|
||||
}
|
||||
let blFxyCode = '';
|
||||
if (uni.getStorageSync('blFxyCode')) {
|
||||
blFxyCode = uni.getStorageSync('blFxyCode')
|
||||
}
|
||||
let blJjrCode = '';
|
||||
if (uni.getStorageSync('blJjrCode')) {
|
||||
blJjrCode = uni.getStorageSync('blJjrCode')
|
||||
}
|
||||
let blYwyCode = '';
|
||||
if (uni.getStorageSync('blYwyCode')) {
|
||||
blYwyCode = uni.getStorageSync('blYwyCode')
|
||||
}
|
||||
let blQdsCode = '';
|
||||
if (uni.getStorageSync('blQdsCode')) {
|
||||
blQdsCode = uni.getStorageSync('blQdsCode')
|
||||
}
|
||||
let blDlsCode = '';
|
||||
if (uni.getStorageSync('blDlsCode')) {
|
||||
blDlsCode = uni.getStorageSync('blDlsCode')
|
||||
}
|
||||
let sendData = {
|
||||
openId: uni.getStorageSync('openId'),
|
||||
unionId: uni.getStorageSync('unionId'),
|
||||
|
@ -324,7 +373,12 @@
|
|||
avatar: avatarUrl,
|
||||
sex: sex, //性别
|
||||
inviterCode: inviterCode, //别人登录进来携带你的邀请码
|
||||
bindingConsortiaId: bindingConsortiaId,
|
||||
bindingConsortiaId: bindingConsortiaId,
|
||||
blFxyCode: blFxyCode,
|
||||
blJjrCode: blJjrCode,
|
||||
blYwyCode: blYwyCode,
|
||||
blQdsCode: blQdsCode,
|
||||
blDlsCode: blDlsCode,
|
||||
};
|
||||
that.sendDataList = sendData;
|
||||
that.flag = res.data.flag;
|
||||
|
@ -393,7 +447,12 @@
|
|||
sex: sendData.sex, //性别
|
||||
phone: that.phone,
|
||||
inviterCode: sendData.inviterCode,
|
||||
bindingConsortiaId: sendData.bindingConsortiaId,
|
||||
bindingConsortiaId: sendData.bindingConsortiaId,
|
||||
blFxyCode: sendData.blFxyCode,
|
||||
blJjrCode: sendData.blJjrCode,
|
||||
blYwyCode: sendData.blYwyCode,
|
||||
blQdsCode: sendData.blQdsCode,
|
||||
blDlsCode: sendData.blDlsCode,
|
||||
};
|
||||
that.$Request.postJson('/app/Login/insertWxUser', postData).then(res => {
|
||||
uni.hideLoading();
|
||||
|
@ -403,6 +462,11 @@
|
|||
uni.setStorageSync('avatar', res.user.avatar)
|
||||
uni.setStorageSync('phone', res.user.phone)
|
||||
uni.setStorageSync('invitationCode', res.user.invitationCode)
|
||||
uni.setStorageSync('blFxyCode', res.user.blFxyCode)
|
||||
uni.setStorageSync('blJjrCode', res.user.blJjrCode)
|
||||
uni.setStorageSync('blYwyCode', res.user.blYwyCode)
|
||||
uni.setStorageSync('blQdsCode', res.user.blQdsCode)
|
||||
uni.setStorageSync('blDlsCode', res.user.blDlsCode)
|
||||
uni.setStorageSync('sex', res.user.sex)
|
||||
uni.setStorageSync('userId', res.user.userId)
|
||||
uni.setStorageSync('openId', res.user.openId)
|
||||
|
@ -512,7 +576,12 @@
|
|||
'/static/img/common/logo.jpg');
|
||||
this.$queue.setData('inviterCode', res.data.inviterCode);
|
||||
this.$queue.setData('invitationCode', res.data.invitationCode);
|
||||
this.$queue.setData('bindingConsortiaId', res.data.bindingConsortiaId);
|
||||
this.$queue.setData('bindingConsortiaId', res.data.bindingConsortiaId);
|
||||
this.$queue.setData('blFxyCode', res.data.blFxyCode);
|
||||
this.$queue.setData('blJjrCode', res.data.blJjrCode);
|
||||
this.$queue.setData('blYwyCode', res.data.blYwyCode);
|
||||
this.$queue.setData('blQdsCode', res.data.blQdsCode);
|
||||
this.$queue.setData('blDlsCode', res.data.blDlsCode);
|
||||
this.$queue.setData('grade', res.data.grade);
|
||||
this.$queue.setData('mobile', res.data.mobile);
|
||||
this.$queue.setData('isInvitation', res.data.isInvitation);
|
||||
|
|
|
@ -197,16 +197,13 @@
|
|||
} else if (!showAgree) {
|
||||
this.$queue.showToast('请同意《用户协议》和《隐私政策》');
|
||||
} else {
|
||||
|
||||
|
||||
|
||||
let postData = {
|
||||
userName: userName,
|
||||
password: password,
|
||||
phone: phone,
|
||||
openId: this.$queue.getData('openid') ? this.$queue.getData('openid') : '',
|
||||
inviterCode: this.invitation,
|
||||
bindingConsortiaId: this.bindingConsortiaId,
|
||||
bindingConsortiaId: this.bindingConsortiaId,
|
||||
platform: this.platform,
|
||||
msg: code
|
||||
}
|
||||
|
|
|
@ -101,6 +101,21 @@
|
|||
if (e.bindingConsortiaId) {
|
||||
this.$queue.setData('bindingConsortiaId', e.bindingConsortiaId);
|
||||
}
|
||||
if (e.blFxyCode) {
|
||||
this.$queue.setData('blFxyCode', e.blFxyCode);
|
||||
}
|
||||
if (e.blJjrCode) {
|
||||
this.$queue.setData('blJjrCode', e.blJjrCode);
|
||||
}
|
||||
if (e.blYwyCode) {
|
||||
this.$queue.setData('blYwyCode', e.blYwyCode);
|
||||
}
|
||||
if (e.blQdsCode) {
|
||||
this.$queue.setData('blQdsCode', e.blQdsCode);
|
||||
}
|
||||
if (e.blDlsCode) {
|
||||
this.$queue.setData('blDlsCode', e.blDlsCode);
|
||||
}
|
||||
this.$Request.get('/app/common/type/237').then(res => {
|
||||
if (res.code == 0) {
|
||||
if (res.data && res.data.value && res.data.value == '是') {
|
||||
|
@ -168,6 +183,11 @@
|
|||
this.$queue.setData("invitationCode", res.user.invitationCode);
|
||||
this.$queue.setData("inviterCode", res.user.inviterCode);
|
||||
this.$queue.setData("bindingConsortiaId", res.user.bindingConsortiaId);
|
||||
this.$queue.setData('blFxyCode', res.user.blFxyCode);
|
||||
this.$queue.setData('blJjrCode', res.user.blJjrCode);
|
||||
this.$queue.setData('blYwyCode', res.user.blYwyCode);
|
||||
this.$queue.setData("blQdsCode", res.user.blQdsCode);
|
||||
this.$queue.setData("blDlsCode", res.user.blDlsCode);
|
||||
uni.navigateTo({
|
||||
url: '/pages/my/hehuo'
|
||||
});
|
||||
|
@ -223,6 +243,11 @@
|
|||
this.$queue.setData("invitationCode", res.user.invitationCode);
|
||||
this.$queue.setData("inviterCode", res.user.inviterCode);
|
||||
this.$queue.setData("bindingConsortiaId", res.user.bindingConsortiaId);
|
||||
this.$queue.setData('blFxyCode', res.user.blFxyCode);
|
||||
this.$queue.setData('blJjrCode', res.user.blJjrCode);
|
||||
this.$queue.setData('blYwyCode', res.user.blYwyCode);
|
||||
this.$queue.setData("blQdsCode", res.user.blQdsCode);
|
||||
this.$queue.setData("blDlsCode", res.user.blDlsCode);
|
||||
uni.navigateTo({
|
||||
url: '/pages/my/hehuo'
|
||||
});
|
||||
|
@ -254,6 +279,11 @@
|
|||
this.$queue.setData("avatar", res.user.avatar);
|
||||
this.$queue.setData("invitationCode", res.user.invitationCode);
|
||||
this.$queue.setData("inviterCode", res.user.inviterCode);
|
||||
this.$queue.setData('blFxyCode', res.user.blFxyCode);
|
||||
this.$queue.setData('blJjrCode', res.user.blJjrCode);
|
||||
this.$queue.setData('blYwyCode', res.user.blYwyCode);
|
||||
this.$queue.setData("blQdsCode", res.user.blQdsCode);
|
||||
this.$queue.setData("blDlsCode", res.user.blDlsCode);
|
||||
uni.navigateTo({
|
||||
url: '/pages/my/hehuo'
|
||||
});
|
||||
|
@ -322,10 +352,30 @@
|
|||
if (uni.getStorageSync('inviterCode')) {
|
||||
inviterCode = uni.getStorageSync('inviterCode')
|
||||
}
|
||||
let bindingConsortiaId = '';
|
||||
let bindingConsortiaId = '';
|
||||
if (uni.getStorageSync('bindingConsortiaId')) {
|
||||
bindingConsortiaId = uni.getStorageSync('bindingConsortiaId')
|
||||
}
|
||||
let blFxyCode = '';
|
||||
if (uni.getStorageSync('blFxyCode')) {
|
||||
blFxyCode = uni.getStorageSync('blFxyCode')
|
||||
}
|
||||
let blJjrCode = '';
|
||||
if (uni.getStorageSync('blJjrCode')) {
|
||||
blJjrCode = uni.getStorageSync('blJjrCode')
|
||||
}
|
||||
let blYwyCode = '';
|
||||
if (uni.getStorageSync('blYwyCode')) {
|
||||
blYwyCode = uni.getStorageSync('blYwyCode')
|
||||
}
|
||||
let blQdsCode = '';
|
||||
if (uni.getStorageSync('blQdsCode')) {
|
||||
blQdsCode = uni.getStorageSync('blQdsCode')
|
||||
}
|
||||
let blDlsCode = '';
|
||||
if (uni.getStorageSync('blDlsCode')) {
|
||||
blDlsCode = uni.getStorageSync('blDlsCode')
|
||||
}
|
||||
let sendData = {
|
||||
openId: uni.getStorageSync('openId'),
|
||||
unionId: uni.getStorageSync('unionId'),
|
||||
|
@ -333,7 +383,12 @@
|
|||
avatar: avatarUrl,
|
||||
sex: sex, //性别
|
||||
inviterCode: inviterCode, //别人登录进来携带你的邀请码
|
||||
bindingConsortiaId: bindingConsortiaId,
|
||||
bindingConsortiaId: bindingConsortiaId,
|
||||
blFxyCode: blFxyCode,
|
||||
blJjrCode: blJjrCode,
|
||||
blYwyCode: blYwyCode,
|
||||
blQdsCode: blQdsCode,
|
||||
blDlsCode: blDlsCode,
|
||||
};
|
||||
that.sendDataList = sendData;
|
||||
that.flag = res.data.flag;
|
||||
|
@ -402,7 +457,12 @@
|
|||
sex: sendData.sex, //性别
|
||||
phone: that.phone,
|
||||
inviterCode: sendData.inviterCode,
|
||||
bindingConsortiaId: sendData.bindingConsortiaId,
|
||||
bindingConsortiaId: sendData.bindingConsortiaId,
|
||||
blFxyCode: sendData.blFxyCode,
|
||||
blJjrCode: sendData.blJjrCode,
|
||||
blYwyCode: sendData.blYwyCode,
|
||||
blQdsCode: sendData.blQdsCode,
|
||||
blDlsCode: sendData.blDlsCode,
|
||||
};
|
||||
that.$Request.postJson('/app/Login/insertWxUser', postData).then(res => {
|
||||
uni.hideLoading();
|
||||
|
@ -412,6 +472,11 @@
|
|||
uni.setStorageSync('avatar', res.user.avatar)
|
||||
uni.setStorageSync('phone', res.user.phone)
|
||||
uni.setStorageSync('invitationCode', res.user.invitationCode)
|
||||
uni.setStorageSync('blFxyCode', res.user.blFxyCode)
|
||||
uni.setStorageSync('blJjrCode', res.user.blJjrCode)
|
||||
uni.setStorageSync('blYwyCode', res.user.blYwyCode)
|
||||
uni.setStorageSync('blQdsCode', res.user.blQdsCode)
|
||||
uni.setStorageSync('blDlsCode', res.user.blDlsCode)
|
||||
uni.setStorageSync('sex', res.user.sex)
|
||||
uni.setStorageSync('userId', res.user.userId)
|
||||
uni.setStorageSync('openId', res.user.openId)
|
||||
|
@ -514,7 +579,7 @@
|
|||
},
|
||||
|
||||
getUserInfo(userId, token) {
|
||||
this.$Request.postJson('/app/selectUserById?userId=' + userId).then(res => {
|
||||
this.$Request.postJson('/app/user/selectUserById?userId=' + userId).then(res => {
|
||||
if (res.code === 0) {
|
||||
this.$queue.setData('token', res.data.uuid);
|
||||
this.$queue.setData('image_url', res.data.imageUrl ? res.data.imageUrl :
|
||||
|
@ -522,6 +587,11 @@
|
|||
this.$queue.setData('inviterCode', res.data.inviterCode);
|
||||
this.$queue.setData('invitationCode', res.data.invitationCode);
|
||||
this.$queue.setData('bindingConsortiaId', res.data.bindingConsortiaId);
|
||||
this.$queue.setData('blFxyCode', res.data.blFxyCode);
|
||||
this.$queue.setData('blJjrCode', res.data.blJjrCode);
|
||||
this.$queue.setData('blYwyCode', res.data.blYwyCode);
|
||||
this.$queue.setData('blQdsCode', res.data.blQdsCode);
|
||||
this.$queue.setData('blDlsCode', res.data.blDlsCode);
|
||||
this.$queue.setData('grade', res.data.grade);
|
||||
this.$queue.setData('mobile', res.data.mobile);
|
||||
this.$queue.setData('isInvitation', res.data.isInvitation);
|
||||
|
|
|
@ -206,7 +206,7 @@
|
|||
phone: phone,
|
||||
openId: this.$queue.getData('openid') ? this.$queue.getData('openid') : '',
|
||||
inviterCode: this.invitation,
|
||||
bindingConsortiaId: this.bindingConsortiaId,
|
||||
bindingConsortiaId: this.bindingConsortiaId,
|
||||
platform: this.platform,
|
||||
msg: code
|
||||
}
|
||||
|
|
|
@ -101,6 +101,21 @@
|
|||
if (e.bindingConsortiaId) {
|
||||
this.$queue.setData('bindingConsortiaId', e.bindingConsortiaId);
|
||||
}
|
||||
if (e.blFxyCode) {
|
||||
this.$queue.setData('blFxyCode', e.blFxyCode);
|
||||
}
|
||||
if (e.blJjrCode) {
|
||||
this.$queue.setData('blJjrCode', e.blJjrCode);
|
||||
}
|
||||
if (e.blYwyCode) {
|
||||
this.$queue.setData('blYwyCode', e.blYwyCode);
|
||||
}
|
||||
if (e.blQdsCode) {
|
||||
this.$queue.setData('blQdsCode', e.blQdsCode);
|
||||
}
|
||||
if (e.blDlsCode) {
|
||||
this.$queue.setData('blDlsCode', e.blDlsCode);
|
||||
}
|
||||
this.$Request.get('/app/common/type/237').then(res => {
|
||||
if (res.code == 0) {
|
||||
if (res.data && res.data.value && res.data.value == '是') {
|
||||
|
@ -168,6 +183,11 @@
|
|||
this.$queue.setData("invitationCode", res.user.invitationCode);
|
||||
this.$queue.setData("inviterCode", res.user.inviterCode);
|
||||
this.$queue.setData("bindingConsortiaId", res.user.bindingConsortiaId);
|
||||
this.$queue.setData('blFxyCode', res.user.blFxyCode);
|
||||
this.$queue.setData('blJjrCode', res.user.blJjrCode);
|
||||
this.$queue.setData('blYwyCode', res.user.blYwyCode);
|
||||
this.$queue.setData("blQdsCode", res.user.blQdsCode);
|
||||
this.$queue.setData("blDlsCode", res.user.blDlsCode);
|
||||
let data = {
|
||||
userId: res.user.userId,
|
||||
focusedUserId: '0',
|
||||
|
@ -233,6 +253,11 @@
|
|||
this.$queue.setData("invitationCode", res.user.invitationCode);
|
||||
this.$queue.setData("inviterCode", res.user.inviterCode);
|
||||
this.$queue.setData("bindingConsortiaId", res.user.bindingConsortiaId);
|
||||
this.$queue.setData('blFxyCode', res.user.blFxyCode);
|
||||
this.$queue.setData('blJjrCode', res.user.blJjrCode);
|
||||
this.$queue.setData('blYwyCode', res.user.blYwyCode);
|
||||
this.$queue.setData("blQdsCode", res.user.blQdsCode);
|
||||
this.$queue.setData("blDlsCode", res.user.blDlsCode);
|
||||
let data = {
|
||||
userId: res.user.userId,
|
||||
focusedUserId: '0',
|
||||
|
@ -274,6 +299,11 @@
|
|||
this.$queue.setData("avatar", res.user.avatar);
|
||||
this.$queue.setData("invitationCode", res.user.invitationCode);
|
||||
this.$queue.setData("inviterCode", res.user.inviterCode);
|
||||
this.$queue.setData('blFxyCode', res.user.blFxyCode);
|
||||
this.$queue.setData('blJjrCode', res.user.blJjrCode);
|
||||
this.$queue.setData('blYwyCode', res.user.blYwyCode);
|
||||
this.$queue.setData("blQdsCode", res.user.blQdsCode);
|
||||
this.$queue.setData("blDlsCode", res.user.blDlsCode);
|
||||
let data = {
|
||||
userId: res.user.userId,
|
||||
focusedUserId: '0',
|
||||
|
@ -352,10 +382,30 @@
|
|||
if (uni.getStorageSync('inviterCode')) {
|
||||
inviterCode = uni.getStorageSync('inviterCode')
|
||||
}
|
||||
let bindingConsortiaId = '';
|
||||
let bindingConsortiaId = '';
|
||||
if (uni.getStorageSync('bindingConsortiaId')) {
|
||||
bindingConsortiaId = uni.getStorageSync('bindingConsortiaId')
|
||||
}
|
||||
let blFxyCode = '';
|
||||
if (uni.getStorageSync('blFxyCode')) {
|
||||
blFxyCode = uni.getStorageSync('blFxyCode')
|
||||
}
|
||||
let blJjrCode = '';
|
||||
if (uni.getStorageSync('blJjrCode')) {
|
||||
blJjrCode = uni.getStorageSync('blJjrCode')
|
||||
}
|
||||
let blYwyCode = '';
|
||||
if (uni.getStorageSync('blYwyCode')) {
|
||||
blYwyCode = uni.getStorageSync('blYwyCode')
|
||||
}
|
||||
let blQdsCode = '';
|
||||
if (uni.getStorageSync('blQdsCode')) {
|
||||
blQdsCode = uni.getStorageSync('blQdsCode')
|
||||
}
|
||||
let blDlsCode = '';
|
||||
if (uni.getStorageSync('blDlsCode')) {
|
||||
blDlsCode = uni.getStorageSync('blDlsCode')
|
||||
}
|
||||
let sendData = {
|
||||
openId: uni.getStorageSync('openId'),
|
||||
unionId: uni.getStorageSync('unionId'),
|
||||
|
@ -363,7 +413,12 @@
|
|||
avatar: avatarUrl,
|
||||
sex: sex, //性别
|
||||
inviterCode: inviterCode, //别人登录进来携带你的邀请码
|
||||
bindingConsortiaId: bindingConsortiaId,
|
||||
bindingConsortiaId: bindingConsortiaId,
|
||||
blFxyCode: blFxyCode,
|
||||
blJjrCode: blJjrCode,
|
||||
blYwyCode: blYwyCode,
|
||||
blQdsCode: blQdsCode,
|
||||
blDlsCode: blDlsCode,
|
||||
};
|
||||
that.sendDataList = sendData;
|
||||
that.flag = res.data.flag;
|
||||
|
@ -432,7 +487,12 @@
|
|||
sex: sendData.sex, //性别
|
||||
phone: that.phone,
|
||||
inviterCode: sendData.inviterCode,
|
||||
bindingConsortiaId: sendData.bindingConsortiaId,
|
||||
bindingConsortiaId: sendData.bindingConsortiaId,
|
||||
blFxyCode: sendData.blFxyCode,
|
||||
blJjrCode: sendData.blJjrCode,
|
||||
blYwyCode: sendData.blYwyCode,
|
||||
blQdsCode: sendData.blQdsCode,
|
||||
blDlsCode: sendData.blDlsCode,
|
||||
};
|
||||
that.$Request.postJson('/app/Login/insertWxUser', postData).then(res => {
|
||||
uni.hideLoading();
|
||||
|
@ -442,6 +502,11 @@
|
|||
uni.setStorageSync('avatar', res.user.avatar)
|
||||
uni.setStorageSync('phone', res.user.phone)
|
||||
uni.setStorageSync('invitationCode', res.user.invitationCode)
|
||||
uni.setStorageSync('blFxyCode', res.user.blFxyCode)
|
||||
uni.setStorageSync('blJjrCode', res.user.blJjrCode)
|
||||
uni.setStorageSync('blYwyCode', res.user.blYwyCode)
|
||||
uni.setStorageSync('blQdsCode', res.user.blQdsCode)
|
||||
uni.setStorageSync('blDlsCode', res.user.blDlsCode)
|
||||
uni.setStorageSync('sex', res.user.sex)
|
||||
uni.setStorageSync('userId', res.user.userId)
|
||||
uni.setStorageSync('openId', res.user.openId)
|
||||
|
@ -544,7 +609,7 @@
|
|||
},
|
||||
|
||||
getUserInfo(userId, token) {
|
||||
this.$Request.postJson('/app/selectUserById?userId=' + userId).then(res => {
|
||||
this.$Request.postJson('/app/user/selectUserById?userId=' + userId).then(res => {
|
||||
if (res.code === 0) {
|
||||
this.$queue.setData('token', res.data.uuid);
|
||||
this.$queue.setData('image_url', res.data.imageUrl ? res.data.imageUrl :
|
||||
|
@ -552,6 +617,11 @@
|
|||
this.$queue.setData('inviterCode', res.data.inviterCode);
|
||||
this.$queue.setData('invitationCode', res.data.invitationCode);
|
||||
this.$queue.setData('bindingConsortiaId', res.data.bindingConsortiaId);
|
||||
this.$queue.setData('blFxyCode', res.data.blFxyCode);
|
||||
this.$queue.setData('blJjrCode', res.data.blJjrCode);
|
||||
this.$queue.setData('blYwyCode', res.data.blYwyCode);
|
||||
this.$queue.setData('blQdsCode', res.data.blQdsCode);
|
||||
this.$queue.setData('blDlsCode', res.data.blDlsCode);
|
||||
this.$queue.setData('grade', res.data.grade);
|
||||
this.$queue.setData('mobile', res.data.mobile);
|
||||
this.$queue.setData('isInvitation', res.data.isInvitation);
|
||||
|
|
Loading…
Reference in New Issue