申请业务员 我是业务员
This commit is contained in:
parent
532d2c1570
commit
fbbfdbb25f
|
@ -32,7 +32,7 @@
|
|||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.getChannel();
|
||||
// this.getChannel();
|
||||
|
||||
},
|
||||
methods: {
|
||||
|
@ -56,7 +56,7 @@
|
|||
});
|
||||
},
|
||||
save() {
|
||||
if (this.userName === '') {
|
||||
if (this.name === '') {
|
||||
this.$queue.showToast('请输入姓名')
|
||||
return;
|
||||
}
|
||||
|
@ -67,17 +67,17 @@
|
|||
|
||||
let userId = this.$queue.getData('userId');
|
||||
let data = {
|
||||
userId: userId,
|
||||
name: this.userName,
|
||||
remarks: this.remarks,
|
||||
name: this.name,
|
||||
phone: this.phone,
|
||||
}
|
||||
this.$Request.postJson('/app/artificer/insertAgency', data).then(res => {
|
||||
this.$Request.get('/app/commission/jjr/apply', data).then(res => {
|
||||
if (res.code == 0) {
|
||||
uni.hideLoading();
|
||||
this.$queue.showToast('提交成功!');
|
||||
setTimeout(d => {
|
||||
uni.navigateBack();
|
||||
}, 1000);
|
||||
this.$queue.showToast(res.msg);
|
||||
// setTimeout(d => {
|
||||
// uni.navigateBack();
|
||||
// }, 1000);
|
||||
} else {
|
||||
uni.hideLoading();
|
||||
this.$queue.showToast(res.msg);
|
||||
|
|
|
@ -8,31 +8,31 @@
|
|||
</view>
|
||||
<view class="bgimg-top-view">
|
||||
<view class="bgimg-top-money">
|
||||
<span>方</span>
|
||||
<span>提成比例:12%</span>
|
||||
<span>{{listData.name}}</span>
|
||||
<!-- <span>提成比例:12%</span> -->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="mian">
|
||||
<view class="mian-title">
|
||||
<span class="mian-top-title">可提现(元)</span>
|
||||
<span class="mian-top-title">0.00</span>
|
||||
<span class="mian-top-title">{{listData.withdrawableAmount}}</span>
|
||||
</view>
|
||||
<view class="mian-list">
|
||||
<view class="list-view">
|
||||
<view class="money">0.00</view>
|
||||
<view class="money">{{listData.income}}</view>
|
||||
<view class="list-title">累计佣金(元)不含手续费</view>
|
||||
</view>
|
||||
<view class="list-view">
|
||||
<view class="money">0.00</view>
|
||||
<view class="money">{{listData.withdrawal}}</view>
|
||||
<view class="list-title">已提现(元)</view>
|
||||
</view>
|
||||
<view class="list-view">
|
||||
<view class="money">0.00</view>
|
||||
<view class="money">{{listData.notCredited}}</view>
|
||||
<view class="list-title">总成交金额(元)不含物料费</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="detail-btn" @click="cashMoney">
|
||||
<view class="detail-btn" @click="goNav('/pages/my/applyBroker/withdrawal')">
|
||||
我要提现</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -45,32 +45,180 @@
|
|||
<image class="mian-bottom-img" src="../../../static/my-gong-18.png" mode=""></image>
|
||||
<span>我的渠道商</span>
|
||||
</view>
|
||||
<view class="mian-bottom-list">
|
||||
<view class="mian-bottom-list" @click="goNav('/pages/my/applyBroker/withdrawalRecord')">
|
||||
<image class="mian-bottom-img" src="../../../static/my-gong-20.png" mode=""></image>
|
||||
<span>提现记录</span>
|
||||
</view>
|
||||
</view>
|
||||
<view class="foot-img-list">
|
||||
<view class="foot-img-list" @click="showModal">
|
||||
<image class="foot-img" src="../../../static/suggest-banner5.png" mode=""></image>
|
||||
</view>
|
||||
<tki-qrcode ref="qrcode" :val="url" :size="200" background="#fff" foreground="#000" pdground="#000"
|
||||
:onval="true" :loadMake="true" @result="qrR" :show="false"></tki-qrcode>
|
||||
<view class="cu-modal" :class="modalName == 'Image' ? 'show' : ''" @tap="hideModal">
|
||||
<view class="cu-dialog" v-if="backgroundImage && erweimapath && haibaoShow" @tap="hideModal">
|
||||
<view class="bg-img">
|
||||
<wm-poster @success="posterSuccess" :imgSrc="backgroundImage" :Referrer="'我的邀请码:'+invitationCode"
|
||||
:QrSrc="erweimapath" :Title="tuiguang" :LineType="false"></wm-poster>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import tkiQrcode from '@/components/tki-qrcode/tki-qrcode.vue';
|
||||
import wmPoster from '@/components/wm-poster/wm-posterorders.vue';
|
||||
export default {
|
||||
components: {
|
||||
wmPoster,
|
||||
tkiQrcode
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
url: '',
|
||||
avatar: '',
|
||||
listData:[],
|
||||
haibaoImg: null,
|
||||
haibaoShow: false,
|
||||
modalName: '',
|
||||
backgroundImage:'',
|
||||
invitationCode: '',
|
||||
erweimapath: '',
|
||||
tuiguang: '',
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.avatar = uni.getStorageSync('avatar')
|
||||
this.getData();
|
||||
this.getBackImageList();
|
||||
this.getUserInfo();
|
||||
this.$Request.getT('/app/common/type/116').then(res => {
|
||||
if (res.code === 0) {
|
||||
if (res.data && res.data.value) {
|
||||
this.tuiguang = res.data.value;
|
||||
this.tuiguang1 = res.data.value;
|
||||
}
|
||||
}
|
||||
});
|
||||
//检测书否开启APP微信分享
|
||||
this.$Request.getT('/app/common/type/136').then(res => {
|
||||
if (res.code === 0) {
|
||||
if (res.data && res.data.value) {
|
||||
this.isShowWxAPPShare = res.data.value;
|
||||
}
|
||||
}
|
||||
});
|
||||
// #ifndef H5
|
||||
this.$Request.getT('/app/common/type/25').then(res => {
|
||||
if (res.code === 0) {
|
||||
if (res.data && res.data.value) {
|
||||
this.url = res.data.value;
|
||||
}
|
||||
}
|
||||
});
|
||||
//#endif
|
||||
},
|
||||
onShareAppMessage(res) {
|
||||
return {
|
||||
path: '/pages/index/index?invitation=' + this.invitationCode, //这是为了传参 onload(data){let id=data.id;}
|
||||
title: this.tuiguang,
|
||||
imageUrl: this.bgImg
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
getUserInfo() {
|
||||
this.$Request.get("/app/user/selectUserById").then(res => {
|
||||
if (res.code == 0) {
|
||||
this.nickName = res.data.userName
|
||||
this.invitationCode = res.data.invitationCode
|
||||
this.userImageUrl = res.data.avatar ? res.data.avatar : '../../static/logo.png'
|
||||
// #ifdef H5
|
||||
this.$Request.getT('/app/common/type/141').then(res => {
|
||||
if (res.code === 0) {
|
||||
if (res.data && res.data.value && res.data.value == '是') {
|
||||
this.$Request.getT('/app/common/type/25').then(ress => {
|
||||
if (ress.code === 0) {
|
||||
if (ress.data && ress.data.value) {
|
||||
this.url = ress.data.value;
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
this.url = this.$queue.publicYuMingApp() + '/?invitation=' + this
|
||||
.invitationCode+"&flag=3";
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
//#endif
|
||||
}
|
||||
});
|
||||
},
|
||||
getBackImageList() {
|
||||
this.$Request.get("/app/commission/jjr/poster").then(res => {
|
||||
uni.hideLoading();
|
||||
if (res.code == 0) {
|
||||
this.backgroundImage = res.data.artificerImage;
|
||||
}
|
||||
console.log("res.data--->", this.backgroundImage);
|
||||
});
|
||||
// this.make();
|
||||
},
|
||||
make() {
|
||||
uQRCode.make({
|
||||
canvasId: 'default_PosterCanvasId',
|
||||
componentInstance: this,
|
||||
text: this.url,
|
||||
size: 68,
|
||||
margin: 4,
|
||||
backgroundColor: '#ffffff',
|
||||
foregroundColor: '#000000',
|
||||
fileType: 'jpg',
|
||||
correctLevel: uQRCode.errorCorrectLevel.H,
|
||||
success: res => {
|
||||
console.log(res)
|
||||
}
|
||||
})
|
||||
},
|
||||
hideModal() {
|
||||
this.modalName = null;
|
||||
},
|
||||
qrR(path) {
|
||||
this.erweimapath = path;
|
||||
},
|
||||
posterSuccess(haibaoImg) {
|
||||
this.haibaoImg = haibaoImg;
|
||||
this.modalName = 'Image';
|
||||
},
|
||||
showModal() {
|
||||
if (!this.haibaoImg) {
|
||||
this.haibaoShow = true;
|
||||
this.$queue.showLoading('海报生成中...');
|
||||
} else {
|
||||
this.modalName = 'Image';
|
||||
}
|
||||
},
|
||||
goNav(link){
|
||||
uni.navigateTo({
|
||||
url:link+'?navName='+'经纪人'
|
||||
})
|
||||
},
|
||||
getData(){
|
||||
this.$Request.get("/app/commission/jjr/myJjr").then(res => {
|
||||
console.log("res.data--->", res.data);
|
||||
if (res.code == 0) {
|
||||
this.listData=res.data
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
<style scoped>
|
||||
.foot-img-list{
|
||||
width: 92%;
|
||||
|
|
|
@ -153,30 +153,30 @@
|
|||
<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" @click="useToUrl('/pages/my/applySalesperson/index')">
|
||||
</view>
|
||||
<view class="my-use-list" v-if="blIsJjr=='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" @click="useToUrl('/pages/my/applySalesperson/mySalesperson')">
|
||||
<view class="my-use-list" v-if="blIsJjr=='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')">
|
||||
<image style="padding: 3rpx;" src="../../static/my-gong-16.png" mode=""></image>
|
||||
<span class="my-use-list-text">我是分销员</span>
|
||||
</view> -->
|
||||
</view>
|
||||
<view class="my-use-list" @click="useToUrl('/pages/my/myteam')">
|
||||
<image style="padding: 3rpx;" src="../../static/my-gong-9.png" mode=""></image>
|
||||
<span class="my-use-list-text">我的团队</span>
|
||||
|
|
Loading…
Reference in New Issue