155 lines
4.3 KiB
Vue
155 lines
4.3 KiB
Vue
|
<template>
|
||
|
<view class="template-edit tn-safe-area-inset-bottom">
|
||
|
<!-- 顶部自定义导航 -->
|
||
|
<tn-nav-bar :isBack="false" backTitle="" :bottomShadow="true" backgroundColor="#FFFFFF">
|
||
|
<view class="custom-nav tn-flex tn-flex-col-center tn-flex-row-left">
|
||
|
<view style="padding-left: 15rpx;" @click="goBack()">
|
||
|
<text class="tn-icon-left" style="font-size: 40rpx;"></text>
|
||
|
</view>
|
||
|
<view class="tn-margin-top"
|
||
|
style=";text-shadow: 1rpx 0 0 #FFF, 0 1rpx 0 #FFF, -1rpx 0 0 #FFF , 0 -1rpx 0 #FFF;">
|
||
|
<tn-tabs :list="[{name:'邀请入会'}]" :current="topCurrent" activeColor="#000" :bold="false"
|
||
|
:fontSize="36"></tn-tabs>
|
||
|
</view>
|
||
|
</view>
|
||
|
</tn-nav-bar>
|
||
|
|
||
|
<view class="tn-safe-area-inset-bottom" :style="{paddingTop: vuex_custom_bar_height + 'px'}">
|
||
|
<view style="padding: 50rpx">
|
||
|
<view>
|
||
|
<tn-button backgroundColor="#82B2FF" height="80rpx" :shadow="true" fontColor="#ffffff" width="100%">生成二维码</tn-button>
|
||
|
</view>
|
||
|
<view style="margin-top: 40rpx">
|
||
|
<tn-button open-type="share" backgroundColor="#82B2FF" height="80rpx" :shadow="true" fontColor="#ffffff" width="100%">转发到微信好友</tn-button>
|
||
|
</view>
|
||
|
</view>
|
||
|
<view style="padding:20rpx 40rpx">
|
||
|
<view style="font-size: 32rpx">我邀请的会员</view>
|
||
|
<view>
|
||
|
<view class="tn-flex tn-flex-center tn-flex-col-center" style="padding: 30rpx;width: 100%;">
|
||
|
<view>
|
||
|
<image src="/static/def.png" style="width: 100rpx;height: 100rpx;border-radius: 50%;"></image>
|
||
|
</view>
|
||
|
<view style="width: 100%;">
|
||
|
<view class="tn-flex tn-flex-col-center tn-flex-row-between">
|
||
|
<view style="margin-left: 20rpx;color: #000000">
|
||
|
<view style="font-size: 35rpx;">王小明</view>
|
||
|
</view>
|
||
|
</view>
|
||
|
</view>
|
||
|
</view>
|
||
|
</view>
|
||
|
</view>
|
||
|
</view>
|
||
|
<view class='tn-tabbar-height'></view>
|
||
|
</view>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
import {
|
||
|
getUserIndex,
|
||
|
} from "@/util/api";
|
||
|
import store from "@/store";
|
||
|
export default {
|
||
|
data() {
|
||
|
return {
|
||
|
topCurrent: 0,
|
||
|
uid:0,
|
||
|
userInfo:{},
|
||
|
apiImgUrl: this.$store.state.imgUrl,
|
||
|
}
|
||
|
},
|
||
|
onShareAppMessage() {
|
||
|
return {
|
||
|
title: this.userInfo.nikename+'邀请你加入【'+this.userInfo.association_name+'】',
|
||
|
path: '/pages/index/apply_in?id='+this.uid+"&association_id="+this.userInfo.association_id,
|
||
|
imageUrl: this.apiImgUrl+this.userInfo.association_image,
|
||
|
}
|
||
|
},
|
||
|
onShareTimeline() { // 分享到朋友圈
|
||
|
return {
|
||
|
title: this.userInfo.nikename+'邀请你加入【'+this.userInfo.association_name+'】',
|
||
|
path: '/pages/index/apply_in?id='+this.uid+"&association_id="+this.userInfo.association_id,
|
||
|
imageUrl: this.apiImgUrl+this.userInfo.association_image,
|
||
|
}
|
||
|
},
|
||
|
onLoad() {
|
||
|
var u = uni.getStorageSync('uid');
|
||
|
this.uid = u;
|
||
|
this.getUserInfo();
|
||
|
},
|
||
|
methods: {
|
||
|
getUserInfo() {
|
||
|
getUserIndex({
|
||
|
member_b_id: this.uid,
|
||
|
member_id: this.uid
|
||
|
})
|
||
|
.then(res => {
|
||
|
console.log(res);
|
||
|
if (res.code == 1) {
|
||
|
this.userInfo = res.data;
|
||
|
}
|
||
|
})
|
||
|
.catch(error => {
|
||
|
uni.showToast({
|
||
|
title: error,
|
||
|
icon: 'none',
|
||
|
duration: 2000
|
||
|
});
|
||
|
})
|
||
|
},
|
||
|
// 跳转
|
||
|
tn(e) {
|
||
|
uni.navigateTo({
|
||
|
url: e,
|
||
|
});
|
||
|
},
|
||
|
goBack() {
|
||
|
if (getCurrentPages().length > 1) {
|
||
|
uni.navigateBack()
|
||
|
} else {
|
||
|
uni.redirectTo({
|
||
|
url: '/pages/index/index'
|
||
|
})
|
||
|
|
||
|
}
|
||
|
},
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style lang="scss" scoped>
|
||
|
/* 底部悬浮按钮 start*/
|
||
|
.tn-tabbar-height {
|
||
|
min-height: 100rpx;
|
||
|
height: calc(120rpx + env(safe-area-inset-bottom) / 2);
|
||
|
}
|
||
|
|
||
|
.tn-footerfixed {
|
||
|
position: fixed;
|
||
|
width: 100%;
|
||
|
bottom: calc(30rpx + env(safe-area-inset-bottom));
|
||
|
z-index: 1024;
|
||
|
box-shadow: 0 1rpx 6rpx rgba(0, 0, 0, 0);
|
||
|
|
||
|
}
|
||
|
|
||
|
/* 底部悬浮按钮 end*/
|
||
|
|
||
|
/* 标签内容 start*/
|
||
|
.tn-tag-content {
|
||
|
&__item {
|
||
|
display: inline-block;
|
||
|
line-height: 45rpx;
|
||
|
padding: 10rpx 30rpx;
|
||
|
margin: 20rpx 20rpx 5rpx 0rpx;
|
||
|
|
||
|
&--prefix {
|
||
|
padding-right: 10rpx;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* 标签内容 end*/
|
||
|
</style>
|