作者 Rico

完善公众号

@@ -794,6 +794,24 @@ @@ -794,6 +794,24 @@
794 } 794 }
795 795
796 } 796 }
  797 + ,{
  798 + "path" : "lower/lower",
  799 + "style" :
  800 + {
  801 + "navigationBarTitleText": "我的小伙伴",
  802 + "enablePullDownRefresh": false
  803 + }
  804 +
  805 + }
  806 + ,{
  807 + "path" : "mycode/mycode",
  808 + "style" :
  809 + {
  810 + "navigationBarTitleText": "我的二维码",
  811 + "enablePullDownRefresh": false
  812 + }
  813 +
  814 + }
797 ] 815 ]
798 } 816 }
799 ], 817 ],
@@ -51,7 +51,7 @@ @@ -51,7 +51,7 @@
51 <image src="../../../static/back.png" mode=""></image> 51 <image src="../../../static/back.png" mode=""></image>
52 </view> 52 </view>
53 53
54 - <view class="nav-list"> 54 + <view @click="tolower" class="nav-list">
55 <view> 55 <view>
56 <image src="../../../static/friend.png" mode=""></image> 56 <image src="../../../static/friend.png" mode=""></image>
57 <view>我的伙伴</view> 57 <view>我的伙伴</view>
@@ -59,7 +59,7 @@ @@ -59,7 +59,7 @@
59 <image src="../../../static/back.png" mode=""></image> 59 <image src="../../../static/back.png" mode=""></image>
60 </view> 60 </view>
61 61
62 - <view class="nav-list"> 62 + <view @click="tocode" class="nav-list">
63 <view> 63 <view>
64 <image src="../../../static/group.png" mode=""></image> 64 <image src="../../../static/group.png" mode=""></image>
65 <view>我的二维码</view> 65 <view>我的二维码</view>
@@ -88,6 +88,16 @@ @@ -88,6 +88,16 @@
88 }; 88 };
89 }, 89 },
90 methods:{ 90 methods:{
  91 + tocode(){
  92 + uni.navigateTo({
  93 + url:"/pages/user/mycode/mycode"
  94 + })
  95 + },
  96 + tolower(){
  97 + uni.navigateTo({
  98 + url:'/pages/user/lower/lower'
  99 + })
  100 + },
91 tocareer(){ 101 tocareer(){
92 uni.navigateTo({ 102 uni.navigateTo({
93 url:'/pages/user/career/career' 103 url:'/pages/user/career/career'
  1 +<template>
  2 + <view>
  3 + <view v-for="(item,index) in list" class="award-wrp">
  4 + <view>
  5 + <image class="avatar-wrp" :src="item.avatar"></image>
  6 + <view class="tit-wrp">
  7 + <view>{{item.nickname}}</view>
  8 + <view>{{item.createtime}}</view>
  9 + </view>
  10 + </view>
  11 + <view>¥{{item.commission_sum}}</view>
  12 + </view>
  13 + </view>
  14 +</template>
  15 +
  16 +<script>
  17 + import request from "../../../App.vue"
  18 + export default {
  19 + data() {
  20 + return {
  21 + list:''
  22 + };
  23 + },
  24 + onLoad:function(){
  25 + request.post('/api/user/lowerList').then(r=>{
  26 + if(r.code == 1){
  27 + this.list = r.data.data
  28 + }
  29 + })
  30 + }
  31 + }
  32 +</script>
  33 +
  34 +<style lang="scss" scoped>
  35 + .tit-wrp{
  36 + display: flex;
  37 + flex-direction: column;
  38 + margin-left: 24rpx;
  39 + }
  40 + .avatar-wrp{
  41 + width: 80rpx;
  42 + height: 80rpx;
  43 + border-radius: 50%;
  44 + }
  45 + .award-wrp{
  46 + display: flex;
  47 + justify-content: space-between;
  48 + align-items: center;
  49 + width: 686rpx;
  50 + margin: 0 auto;
  51 + padding-bottom: 28rpx;
  52 + border-bottom: 1rpx solid #EBEDF0;
  53 + padding-top: 23rpx;
  54 + >view:first-child{
  55 + display: flex;
  56 + align-items: center;
  57 + >view:first-child{
  58 + color: #323233;
  59 + font-size: 28rpx;
  60 + padding-bottom: 16rpx;
  61 + }
  62 + >view:last-child{
  63 + color: #969799;
  64 + font-size: 24rpx;
  65 + font-weight: 400;
  66 + }
  67 + }
  68 + >view:last-child{
  69 + color: #FC8C06;
  70 + font-size: 32rpx;
  71 + }
  72 + }
  73 +
  74 +</style>
  1 +<template>
  2 + <!-- 居中 -->
  3 +
  4 + <view class="wrapper">
  5 + <image mode="widthFix" :src="qrcode"></image>
  6 + </view>
  7 +
  8 +</template>
  9 +
  10 +<script>
  11 + import request from "../../../App.vue"
  12 + export default {
  13 + data() {
  14 + return {
  15 + qrcode:''
  16 + };
  17 + },
  18 + onLoad:function(){
  19 + request.post('/api/user/userPoster').then(r=>{
  20 + if(r.code == 1){
  21 + this.qrcode = r.data.url
  22 + }
  23 + })
  24 + }
  25 + }
  26 +</script>
  27 +
  28 +<style lang="scss" scoped>
  29 + page {
  30 + background-image: url("../../../static/imgs/codeback.png");
  31 + background-size: cover;
  32 + display: flex;
  33 + justify-content: center;
  34 + align-items: center;
  35 +
  36 + }
  37 + .wrapper{
  38 + >image{
  39 + width: 622rpx;
  40 + }
  41 + }
  42 +</style>