shish 5 лет назад
Родитель
Сommit
253f98c507
2 измененных файлов с 16 добавлено и 16 удалено
  1. 9 1
      ghsApp/src/pagesInvite/inviteItem.vue
  2. 7 15
      ghsApp/src/pagesInvite/list.vue

+ 9 - 1
ghsApp/src/pagesInvite/inviteItem.vue

@@ -6,7 +6,7 @@
 			alt="商品图"
 		/>
 		<view class="item-info">
-			<view class="info-title">{{ info.name }}</view>
+			<view class="info-title">{{ info.name }} <text class="ghs-info" v-if="info.style ==2">供货商</text></view>
 			<view class="info-row">
 				<text class="info-tag">{{ info.adminName }}</text>
 				<text class="info-tag">{{ info.mobile }} </text>
@@ -80,6 +80,14 @@ export default {
 			font-weight: 400;
 			color: #333333;
 		}
+		.ghs-info{
+			color:#BBBB44;
+			font-size:19upx;
+			margin-left:20upx;
+			border:1upx solid #BBBB44;
+			border-radius: 10upx;
+			padding:0 4upx 0 4upx;
+		}
 		.info-row {
 			margin-top: 10upx;
 			display: flex;

+ 7 - 15
ghsApp/src/pagesInvite/list.vue

@@ -7,8 +7,7 @@
 					<view class="name"> {{ userInfo.merchantName || "" }}</view>
 					<view class="mark"> 普通代理 </view>
 				</view>
-
-				<button class="user-wrap-right btn" @tap="toProcedure">
+				<button class="user-wrap-right" @tap="toProcedure">
 					<img :src="`${constant.imgUrl}/retail/interest/invite-store.png`" alt mode="widthFix" />
 				</button>
 				<navigator class="user-wrap-right" :url="`/pagesClient/official/index?shopAdminId=${loginInfo.shopAdminId}`">
@@ -16,14 +15,13 @@
 				</navigator>
 			</view>
 			<view class="info-list">
-
 				<view class="info-item">
 					<view class="item-value">{{ invitedNum || 0 }}</view>
 					<view class="item-name">已邀请</view>
 				</view>
 				<view class="info-item">
 					<view class="item-value">{{ payNum || 0 }}</view>
-					<view class="item-name">已付费</view>
+					<view class="item-name">已购买</view>
 				</view>
 				<view class="info-item">
 					<view class="item-value">{{ income || 0.00 }}</view>
@@ -32,7 +30,7 @@
 			</view>
 		</view>
 		<view class="list-title">
-			花店列表
+			邀请列表
 		</view>
 		<view class="tabs">
 			<Tabs
@@ -49,7 +47,7 @@
 				</InviteItem>
 			</block>
 			<block v-else>
-				<app-wrapper-empty title="暂无数据" :is-empty="$util.isEmpty(list.data)" />
+				<app-wrapper-empty title="暂无记录" :is-empty="$util.isEmpty(list.data)" />
 			</block>
 		</scroll-view>
 	</view>
@@ -97,10 +95,6 @@ export default {
 				{
 					name: "已购买",
 					key: "4"
-				},
-				{
-					name: "已到期",
-					key: "5"
 				}
 			],
 			invitedNum: "", //已邀请
@@ -108,12 +102,10 @@ export default {
 			income: "" //累计收益
 		};
 	},
-	onLoad() {
-		console.log(this.loginInfo.shopAdminId)
-		this.init();
-	},
+	onLoad() {},
 	onPullDownRefresh() {
 		this.resetList();
+		console.log(2222)
 		this._list().then(res => {
 			uni.stopPullDownRefresh();
 		});
@@ -237,7 +229,7 @@ export default {
 				}
 			}
 			.user-wrap-right {
-			width: 150upx;
+			width: 180upx;
 			background-color: #fff;
 			margin-right: 0;
 			padding: 0;