Explorar o código

邀请开店模块

shish %!s(int64=4) %!d(string=hai) anos
pai
achega
3b8892faf5
Modificáronse 2 ficheiros con 41 adicións e 32 borrados
  1. 22 17
      ghsApp/src/pagesInvite/list.vue
  2. 19 15
      hdApp/src/pagesInvite/list.vue

+ 22 - 17
ghsApp/src/pagesInvite/list.vue

@@ -5,14 +5,14 @@
 				<app-avatar-module :width="100" />
 				<app-avatar-module :width="100" />
 				<view class="content">
 				<view class="content">
 					<view class="name"> {{ userInfo.name || "" }}</view>
 					<view class="name"> {{ userInfo.name || "" }}</view>
-					<view class="mark"> 普通代理 </view>
+					<view class="mark"> 普通等级 </view>
 				</view>
 				</view>
-				<button class="user-wrap-right" @tap="inviteHd">
-					<img :src="`${constant.imgUrl}/retail/interest/invite-store.png`" alt mode="widthFix" />
+				<button class="user-wrap-right" @tap="inviteHd()">
+					<img :src="`${constant.imgUrl}/retail/interest/invite-store.png`" mode="widthFix" />
+				</button>
+				<button class="user-wrap-right" @tap="inviteGhs()">
+					<img :src="`${constant.imgUrl}/ghs/me/yqghs.png`" mode="widthFix" />
 				</button>
 				</button>
-				<navigator class="user-wrap-right" :url="`/pagesInvite/inviteGhsShop`">
-					<img :src="`${constant.imgUrl}/ghs/me/yqghs.png`" alt mode="widthFix" />
-				</navigator>
 			</view>
 			</view>
 			<view class="info-list">
 			<view class="info-list">
 				<view class="info-item">
 				<view class="info-item">
@@ -41,7 +41,7 @@
 				:padding="0"
 				:padding="0"
 			></Tabs>
 			></Tabs>
 		</view>
 		</view>
-		<scroll-view scroll-y class="invite-list">
+		<view class="invite-list">
 			<block v-if="!$util.isEmpty(list.data)">
 			<block v-if="!$util.isEmpty(list.data)">
 				<InviteItem v-for="(item, index) in list.data" :info="item" :key="index">
 				<InviteItem v-for="(item, index) in list.data" :info="item" :key="index">
 				</InviteItem>
 				</InviteItem>
@@ -49,8 +49,7 @@
 			<block v-else>
 			<block v-else>
 				<app-wrapper-empty title="暂无记录" :is-empty="$util.isEmpty(list.data)" />
 				<app-wrapper-empty title="暂无记录" :is-empty="$util.isEmpty(list.data)" />
 			</block>
 			</block>
-		</scroll-view>
-    <!-- <kd-entrance></kd-entrance> -->
+		</view>
 	</view>
 	</view>
 </template>
 </template>
 <script>
 <script>
@@ -122,10 +121,16 @@ export default {
 	mounted(){
 	mounted(){
 	},
 	},
 	methods: {
 	methods: {
+		inviteGhs(){
+			this.$msg('开发中')
+			return false
+			this.pageTo({url: '/pagesInvite/inviteGhsShop'})
+		},
 		inviteHd(){
 		inviteHd(){
-			this.pageTo({
-        url: '/pagesInvite/inviteShop'
-      })
+			this.$msg('开发中')
+			return false
+			this.pageTo({url: '/pagesInvite/inviteShop'})
+
 			//查看分享的路径,不要删除 shish 20210517
 			//查看分享的路径,不要删除 shish 20210517
 			// console.log('pagesClient/official/index','ghsShopAdminId='+ this.loginInfo.shopAdminId)
 			// console.log('pagesClient/official/index','ghsShopAdminId='+ this.loginInfo.shopAdminId)
 
 
@@ -150,7 +155,9 @@ export default {
 		},
 		},
 		_list() {
 		_list() {
 			return appyleListApi({
 			return appyleListApi({
-				status: this.tabs[this.tabIndex].key
+				status: this.tabs[this.tabIndex].key,
+				page: this.list.page,
+				pageSize: this.list.pageSize
 			}).then(res => {
 			}).then(res => {
 				const {
 				const {
 					data: { invitedNum, payNum, income }
 					data: { invitedNum, payNum, income }
@@ -166,7 +173,6 @@ export default {
 				return false;
 				return false;
 			} else {
 			} else {
 				this.tabIndex = e.index;
 				this.tabIndex = e.index;
-				// this.operateCloseFn();
 				this.resetList();
 				this.resetList();
 				this._list();
 				this._list();
 			}
 			}
@@ -260,9 +266,8 @@ export default {
 		color: #999999;
 		color: #999999;
 	}
 	}
 	.invite-list {
 	.invite-list {
-		// margin-top: 20upx;
 		flex: 1;
 		flex: 1;
-		padding-bottom: 150upx;
+		padding-bottom: 50upx;
 	}
 	}
 }
 }
-</style>
+</style>

+ 19 - 15
hdApp/src/pagesInvite/list.vue

@@ -5,13 +5,13 @@
 				<app-avatar-module :width="100" />
 				<app-avatar-module :width="100" />
 				<view class="content">
 				<view class="content">
 					<view class="name"> {{ userInfo.name || "" }}</view>
 					<view class="name"> {{ userInfo.name || "" }}</view>
-					<view class="mark"> 普通代理 </view>
+					<view class="mark"> 普通等级 </view>
 				</view>
 				</view>
-				<navigator class="user-wrap-right" :url="`/pagesInvite/inviteHdShop`">
-					<img :src="`${constant.imgUrl}/retail/interest/invite-store.png`" alt mode="widthFix" />
-				</navigator>
+				<button class="user-wrap-right" @tap="inviteHd">
+					<img :src="`${constant.imgUrl}/retail/interest/invite-store.png`" mode="widthFix" />
+				</button>
 				<button class="user-wrap-right" @tap="inviteGhs">
 				<button class="user-wrap-right" @tap="inviteGhs">
-					<img :src="`${constant.imgUrl}/ghs/me/yqghs.png`" alt mode="widthFix" />
+					<img :src="`${constant.imgUrl}/ghs/me/yqghs.png`" mode="widthFix" />
 				</button>
 				</button>
 			</view>
 			</view>
 			<view class="info-list">
 			<view class="info-list">
@@ -41,7 +41,7 @@
 				:padding="0"
 				:padding="0"
 			></Tabs>
 			></Tabs>
 		</view>
 		</view>
-		<scroll-view scroll-y class="invite-list">
+		<view scroll-y class="invite-list">
 			<block v-if="!$util.isEmpty(list.data)">
 			<block v-if="!$util.isEmpty(list.data)">
 				<InviteItem v-for="(item, index) in list.data" :info="item" :key="index">
 				<InviteItem v-for="(item, index) in list.data" :info="item" :key="index">
 				</InviteItem>
 				</InviteItem>
@@ -49,8 +49,7 @@
 			<block v-else>
 			<block v-else>
 				<app-wrapper-empty title="暂无记录" :is-empty="$util.isEmpty(list.data)" />
 				<app-wrapper-empty title="暂无记录" :is-empty="$util.isEmpty(list.data)" />
 			</block>
 			</block>
-		</scroll-view>
-    <!-- <kd-entrance></kd-entrance> -->
+		</view>
 	</view>
 	</view>
 </template>
 </template>
 <script>
 <script>
@@ -122,10 +121,15 @@ export default {
 	mounted(){
 	mounted(){
 	},
 	},
 	methods: {
 	methods: {
+		inviteHd(){
+			this.$msg('开发中')
+			return false
+      		this.pageTo({url: '/pagesInvite/inviteHdShop'})
+		},
 		inviteGhs(){
 		inviteGhs(){
-      this.pageTo({
-        url: '/pagesInvite/inviteShop'
-      })
+			this.$msg('开发中')
+			return false
+      		this.pageTo({url: '/pagesInvite/inviteShop'})
         	//查看分享的路径,不要删除 shish 20210517
         	//查看分享的路径,不要删除 shish 20210517
 			// console.log('pagesClient/official/index?hdShopAdminId='+this.loginInfo.shopAdminId)
 			// console.log('pagesClient/official/index?hdShopAdminId='+this.loginInfo.shopAdminId)
 
 
@@ -150,7 +154,9 @@ export default {
 		},
 		},
 		_list() {
 		_list() {
 			return appyleListApi({
 			return appyleListApi({
-				status: this.tabs[this.tabIndex].key
+				status: this.tabs[this.tabIndex].key,
+				page: this.list.page,
+				pageSize: this.list.pageSize
 			}).then(res => {
 			}).then(res => {
 				const {
 				const {
 					data: { invitedNum, payNum, income }
 					data: { invitedNum, payNum, income }
@@ -166,7 +172,6 @@ export default {
 				return false;
 				return false;
 			} else {
 			} else {
 				this.tabIndex = e.index;
 				this.tabIndex = e.index;
-				// this.operateCloseFn();
 				this.resetList();
 				this.resetList();
 				this._list();
 				this._list();
 			}
 			}
@@ -260,9 +265,8 @@ export default {
 		color: #999999;
 		color: #999999;
 	}
 	}
 	.invite-list {
 	.invite-list {
-		// margin-top: 20upx;
 		flex: 1;
 		flex: 1;
-		padding-bottom: 150upx;
+		padding-bottom: 50upx;
 	}
 	}
 }
 }
 </style>
 </style>