lhl 1 rok temu
rodzic
commit
5b0d62fd73

+ 8 - 2
api/index.js

@@ -45,5 +45,11 @@ export function guide_map(data) {
 		data
 	});
 }
-
-
+//获取从业人员列表
+export function getWorkerList(data) {
+	return request({
+		url: '/api/pub/getWorkerList',
+		method: 'post',
+		data
+	});
+}

+ 25 - 10
pages/index/index.vue

@@ -50,27 +50,27 @@
 						精选名片推荐
 					</view>
 				</view>
-				<navigator url="/pages/user/model/phb">
+				<!-- <navigator url="/pages/user/model/phb">
 					<view class="right flex">
 						<text class="margin-r-10">
 							更多
 						</text>
 						<image src="../../static/icon/next1.png" mode="scaleToFill" class="tip"></image>
 					</view>
-				</navigator>
+				</navigator> -->
 			</view>
 			<view class="" style="padding: 0 20rpx;">
-				<view class="bd-btm-item flex" v-for="item in 3">
-					<image src="" mode="" class="item-img"></image>
+				<view class="bd-btm-item flex" v-for="item in jxList">
+					<image :src="item.avatar" mode="" class="item-img"></image>
 					<view class="flex item-info">
 						<view class="item-name">
-							杨阿姨 <image :src="rz" mode=""></image>
+							{{item.name}} <image :src="rz" mode=""></image>
 						</view>
 						<view class="item-zy">
-							育儿嫂
+							{{item.user_work_type_title}}
 						</view>
 						<view class="item-where">
-							48岁 丨 甘肃人
+							{{item.age}}岁
 						</view>
 						<view class="" style="flex-grow: 1;">
 							
@@ -139,7 +139,8 @@
 	import {
 		getBannerList,
 		getShowTemplateList
-	} from '@/api/model.js';
+	} from '@/api/model.js';
+	import { getWorkerList } from '@/api/index.js'
 	export default {
 		data() {
 			return {
@@ -156,7 +157,8 @@
 					count: 0, //总消息条数
 				},
 				// 热门商品
-				rmList: []
+				rmList: [],
+				jxList: [],//精选列表
 			};
 		},
 		computed: {
@@ -182,7 +184,8 @@
 			this.share()
 		},
 		onShow() {
-			this.loadIndexs();
+			this.loadIndexs();
+			this.getWorkerList()
 		},
 		onReady() {},
 		// 滚动到底部
@@ -222,6 +225,18 @@
 		},
 		// #endif
 		methods: {
+			getWorkerList() {
+				try{
+					getWorkerList().then(res => {
+						// console.log(res)
+						this.jxList = res.data.list
+					})
+				}catch(e){
+					//TODO handle the exception
+					console.log(e);
+				}
+				
+			},
 			swiperChange() {
 				
 			},

+ 8 - 11
pages/modelData/modeltemplate/model_1.vue

@@ -12,16 +12,14 @@
 					职业:{{cardInfo.user_work_type_title || '暂无'}}
 				</view>
 			</view>
-			<button type="default" class="top-btn fx-btn" v-if="isShare" open-type="share">
+			<!-- <button type="default" class="top-btn fx-btn" v-if="isShare" open-type="share">
 				<image :src="baseURL + '/resource/icon/model1/fx.png'" mode=""></image>
-			</button>
+			</button> -->
 			<view class="top-btn visit mvisit padding-r-10" v-if="isLook==1||isLook==2">
 				浏览:{{shareNumber}}
 			</view>
 			<image :src="baseURL + '/resource/icon/model1/hua7.png'" mode="" class="top-bg"></image>
-			<view class="u-bh flex">
-				<image :src="baseURL + '/resource/icon/model1/bh.png'" mode=""></image>编号:{{cardInfo.no|| "myj23031421"}}
-			</view>
+			
 		</view>
 		<view class="m-body gr">
 			<!-- 个人信息 -->
@@ -32,7 +30,9 @@
 						<view class="card-tit flex" style="flex-shrink: 0;">
 							<image :src="baseURL + '/resource/icon/model1/m1.png'" mode="" class="tit-logo"></image>个人信息
 						</view>
-						
+						<view class="u-bh flex">
+							<image :src="baseURL + '/resource/icon/model1/bh.png'" mode=""></image>编号:{{cardInfo.no|| "myj23031421"}}
+						</view>
 					</view>
 					
 					<view class="card-content">
@@ -375,7 +375,7 @@
 			}
 
 			.mvisit {
-				top: 150rpx;
+				top: 70rpx;
 			}
 		}
 	}
@@ -694,10 +694,7 @@
 	}
 	.u-bh {
 		justify-content: flex-start;
-		position: absolute;
-		top: 10rpx;
-		left: 10rpx;
-		padding-right: 30rpx;
+		padding-right: 10rpx;
 		image {
 			width: 26rpx;
 			height: 26rpx;

+ 7 - 27
pages/modelData/modeltemplate/model_2.vue

@@ -2,15 +2,13 @@
 	<view class="mone">
 		<view class="m-top">
 			<image :src="baseURL + '/resource/icon/model2/tli.png'" mode="" class="top-left-img"></image>
-			<button type="default" class="top-btn fx-btn" v-if="isShare" open-type="share">
+			<!-- <button type="default" class="top-btn fx-btn" v-if="isShare" open-type="share">
 				<image :src="baseURL + '/resource/icon/model1/fx.png'" mode=""></image>
-			</button>
+			</button> -->
 			<view class="top-btn visit mvisit padding-r-10" v-if="isLook==1||isLook==2">
 				浏览:{{shareNumber}}
 			</view>
-			<view class="u-bh flex ">
-				<image :src="baseURL + '/resource/icon/model2/bh.png'" mode=""></image>编号:{{cardInfo.no || "myj23031421"}}
-			</view>
+			
 		</view>
 		<view class="m-body ">
 			<!-- 个人信息 -->
@@ -22,7 +20,9 @@
 						{{cardInfo.name || '暂无'}}
 					</view>
 					<!-- 编号 -->
-					
+					<view class="u-bh flex ">
+						<image :src="baseURL + '/resource/icon/model2/bh.png'" mode=""></image>编号:{{cardInfo.no || "myj23031421"}}
+					</view>
 					<!-- 头像 -->
 					<view class="user-img">
 						<image :src="baseURL + '/resource/icon/model2/txk.png'" mode="" class="base-bg"></image>
@@ -312,7 +312,7 @@
 				padding-left: 24rpx;
 			}
 			.mvisit {
-				top: 150rpx;
+				top: 70rpx;
 			}
 		}
 	}
@@ -690,10 +690,6 @@
 	}
 	.u-bh {
 		justify-content: flex-start;
-		position: absolute;
-		top: 10rpx;
-		left: 10rpx;
-		padding-right: 30rpx;
 		image {
 			width: 26rpx;
 			height: 26rpx;
@@ -704,20 +700,4 @@
 		color: #202e4f;
 		
 	}
-	.u-bh {
-		justify-content: flex-start;
-		position: absolute;
-		top: 10rpx;
-		left: 10rpx;
-		padding-right: 30rpx;
-		image {
-			width: 26rpx;
-			height: 26rpx;
-			margin-right: 10rpx;
-		}
-		font-size: 28rpx;
-		font-weight: bold;
-		color: #030303;
-		
-	}
 </style>

+ 3 - 3
pages/user/myteam.vue

@@ -17,10 +17,10 @@
 				<view class="money">{{ all|| '0' }}</view>
 				<view>我的影响指数</view>
 			</view>
-			<!-- <view class="money-box flex" style="padding-top: 20rpx;" >
+			<view class="money-box flex" style="padding-top: 20rpx;" >
 				<view style="flex-grow: 1;"></view>
-				<view style="flex-grow: 1;">总业绩:{{total_count}}</view>
-			</view> -->
+				<view style="flex-grow: 1;text-align: right;padding-right: 20rpx;" @click="navto('/pages/user/teamph')">排行榜</view>
+			</view>
 		</view>
 
 		<scroll-view class="list-scroll-content" :style="{ height: maxheight }" scroll-y @scrolltolower="loadData">