Selaa lähdekoodia

海报邀请码添加名字

corn 6 kuukautta sitten
vanhempi
sitoutus
dd66dad176
1 muutettua tiedostoa jossa 4 lisäystä ja 3 poistoa
  1. 4 3
      src/views/user/userListQy.vue

+ 4 - 3
src/views/user/userListQy.vue

@@ -79,7 +79,7 @@
 					<el-table-column prop="invitationCode" label="邀请码">
 						<template slot-scope="scope">
 							<span style="color: #4f9dec;cursor: pointer;"
-								@click="onChangeShow(scope.row.invitationCode,scope.row.userId)">{{ scope.row.invitationCode }}</span>
+								@click="onChangeShow(scope.row.invitationCode,scope.row.userId,scope.row.userName)">{{ scope.row.invitationCode }}</span>
 						</template>
 					</el-table-column>
 					<el-table-column label="邀请人邀请码">
@@ -663,10 +663,11 @@
 		},
 		methods: {
 			// 显示拉人头
-			onChangeShow(code, id) {
+			onChangeShow(code, id, userName) {
 				this.isShow = true
 				this.invitationCode = code
 				this.invitationUserId = id
+				this.userName = userName
 				this.getDataSource()
 			},
 			getDataSource(page = 1) {
@@ -727,7 +728,7 @@
 					if(res.data.code == 500){
 						this.$message.error(res.data.msg)
 					}
-					this.base64ToFileDownload(res.data.data.image, '邀请码', 'png')
+					this.base64ToFileDownload(res.data.data.image, this.userName, 'png')
 				})
 			},