提交 b07fdcfa 作者: 施汉文

feat(quickSendGame): add main game select filter for gift code list

上级 69eb5f5c
......@@ -69,8 +69,11 @@
></i>
</div>
<el-collapse-transition>
<div v-show="showGameCode">
<div style="margin-bottom: 8px">
<mainGameSelect width="100%" @result="handleGiftGameSelect" />
</div>
<el-collapse
v-show="showGameCode"
v-if="giftCodeGame.length > 0"
:disabled="disabled"
class="giftGameCollapse"
......@@ -130,6 +133,7 @@
<div v-else class="rowFlex allCenter">暂无游戏</div>
</el-collapse-item>
</el-collapse>
</div>
</el-collapse-transition>
</div>
<giftCodeDialog
......@@ -154,6 +158,7 @@ import { passwardEncryption, createVipUrl } from "@/api/game";
import { giftCodeList, sendGiftCode, getZyouAuthLink } from "@/api/works";
import giftCodeDialog from "./giftCodeDialog.vue";
import flowerLinkDialog from "./flowerLinkDialog.vue";
import mainGameSelect from "@/components/mainGame.vue";
export default {
name: "vipTools",
data() {
......@@ -164,6 +169,7 @@ export default {
dialogVisible: false,
game_name: "",
flowerLinkDialogVisible: false,
giftMainGameId: "",
giftCodeForm: {
member_id: "",
username: "",
......@@ -178,6 +184,7 @@ export default {
components: {
giftCodeDialog,
flowerLinkDialog,
mainGameSelect,
},
mounted() {
this.requestGiftCode();
......@@ -308,6 +315,10 @@ export default {
this.$message.warning("暂无申诉自助链接");
}
},
handleGiftGameSelect(value) {
this.giftMainGameId = value;
this.requestGiftCode();
},
async requestGiftCode() {
this.giftCodeGame = [];
// 1 企微 2 微信
......@@ -315,6 +326,9 @@ export default {
userid: this.userid,
user_type: 1,
};
if (this.giftMainGameId) {
data.main_game_id = this.giftMainGameId;
}
const res = await giftCodeList(data);
if (res.status_code == 1 && res.data.length > 0) {
// this.giftCodeGame = res.data
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论