|
@@ -93,7 +93,7 @@
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
<div class="form-wrapper" v-if="showComType == 'default'">
|
|
|
- <div class="form-left-sheet">
|
|
|
+ <div class="form-left-sheet" style="width: 500px">
|
|
|
<div class="form-cell-item base-form-wrapper">
|
|
|
<div class="form-cell-content">
|
|
|
<div class="select-mode-ele">
|
|
@@ -119,14 +119,15 @@
|
|
|
<img class="icon"
|
|
|
v-if="currentIconCpd"
|
|
|
:src="currentIconCpd"/>
|
|
|
- <div class="text">
|
|
|
- {{currentPrizeCpd}}
|
|
|
- </div>
|
|
|
+ <component-zoom :width="100" :txt="currentPrizeCpd">
|
|
|
+ <div class="text">
|
|
|
+ {{currentPrizeCpd}}
|
|
|
+ </div>
|
|
|
+ </component-zoom>
|
|
|
<img class="arrow"
|
|
|
:src="currentArrowCpd"/>
|
|
|
</div>
|
|
|
- <form-input
|
|
|
- class="margin-left-10"
|
|
|
+ <form-input class="margin-left-10"
|
|
|
:suffix="baseFormData.rewardType === RewardType.custom || currentCurrencyInfo.currencyCode ? currentPrizeCpd : ''">
|
|
|
<template v-slot:content>
|
|
|
<input style="width: 100px"
|
|
@@ -310,6 +311,18 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-right-sheet">
|
|
|
+ <div style="width: 375px;height: 500px; zoom: .74;margin-left: 80px">
|
|
|
+ <custom-card-cover :data="{
|
|
|
+ ...baseFormData,
|
|
|
+ ...currentCurrencyInfo,
|
|
|
+ currencyIconUrl: currentCurrencyInfo.iconPath,
|
|
|
+ customPosterUrl: customPosterInfo && customPosterInfo.after && customPosterInfo.after.imagePath || '',
|
|
|
+ userInfo: {
|
|
|
+ nickName: userInfo.name,
|
|
|
+ avatarUrl: userInfo.avatarUrl
|
|
|
+ },
|
|
|
+ }"></custom-card-cover>
|
|
|
+ </div>
|
|
|
|
|
|
</div>
|
|
|
<div class="submit-btn-wrapper">
|
|
@@ -436,7 +449,7 @@
|
|
|
|
|
|
<script setup>
|
|
|
import { ref, watch, reactive, defineProps, defineEmits, onMounted, nextTick, provide, computed } from "vue";
|
|
|
-import { postPublish, syncChainTokenRechargeRecord, getCurrencyInfoByCode } from "@/http/publishApi";
|
|
|
+import { postPublish, syncChainTokenRechargeRecord, getCurrencyInfoByCode, getUser } from "@/http/publishApi";
|
|
|
import { getInviteGuildInfo, getInviteGuildInfoByOpenApi, saveInviteGuildInfo } from "@/http/discordApi";
|
|
|
import { payCalcFee, getPayConfig } from "@/http/pay";
|
|
|
import { getFrontConfig, calcRechargePayAmount } from "@/http/account";
|
|
@@ -468,6 +481,7 @@ import GlobalTip from '@/view/components/global-tip.vue'
|
|
|
import customCardCover from '@/view/components/custom-card-cover.vue'
|
|
|
|
|
|
import CustomizedRewardEditPopup from '@/view/iframe/publish/components/customized-reward-edit';
|
|
|
+import ComponentZoom from '@/view/components/component-zoom.vue'
|
|
|
|
|
|
const config = {
|
|
|
number: 'BigNumber',
|
|
@@ -488,6 +502,8 @@ let publishRes = reactive({});
|
|
|
let visible = ref(true);
|
|
|
let publishType = ref('REDPACKET');
|
|
|
|
|
|
+let userInfo = ref({})
|
|
|
+
|
|
|
|
|
|
//弹窗高度
|
|
|
let dialogStyle = reactive({
|
|
@@ -1786,10 +1802,26 @@ const setFrontConfig = () => {
|
|
|
});
|
|
|
};
|
|
|
|
|
|
+const getUserName = (screenName) => {
|
|
|
+ getUser({
|
|
|
+ params:{
|
|
|
+ screenName
|
|
|
+ }
|
|
|
+ }).then(res => {
|
|
|
+ if(res.code == 0) {
|
|
|
+ userInfo.value.name = res.data.name || ''
|
|
|
+ }
|
|
|
+ console.log(userInfo.value, 'userinfo')
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
/**
|
|
|
* 默认获取上次选中的货币信息
|
|
|
*/
|
|
|
-const getLocalCurrencyInfoByCode = () => {
|
|
|
+const getLocalCurrencyInfoByCode = async () => {
|
|
|
+ let storageUserInfo = await getChromeStorage('userInfo') || {};
|
|
|
+ userInfo.value = storageUserInfo;
|
|
|
+ getUserName(storageUserInfo.nickName);
|
|
|
if(!currentCurrencyInfo.value.currencyCode) {
|
|
|
getCurrencyInfo();
|
|
|
}
|
|
@@ -1797,8 +1829,7 @@ const getLocalCurrencyInfoByCode = () => {
|
|
|
|
|
|
const getCurrencyInfo = async (_params) => {
|
|
|
let { loop = false} = _params || {};
|
|
|
- let {accessToken = ''} = await getChromeStorage('userInfo') || {};
|
|
|
- if (accessToken) {
|
|
|
+ if (userInfo.value && userInfo.value.accessToken) {
|
|
|
let {currencyCode = ''} = await getChromeStorage('selectCurrencyInfo') || {};
|
|
|
|
|
|
if(currencyCode) {
|
|
@@ -2170,7 +2201,7 @@ onMounted(() => {
|
|
|
border-left: 1px solid #ececec;
|
|
|
|
|
|
.form-wrapper {
|
|
|
- padding: 18px 18px 18px 18px;
|
|
|
+ padding: 18px 80px 18px 80px;
|
|
|
height: calc(100% - 80px);
|
|
|
overflow: auto;
|
|
|
box-sizing: border-box;
|
|
@@ -2280,7 +2311,7 @@ onMounted(() => {
|
|
|
}
|
|
|
|
|
|
.text {
|
|
|
- word-break: break-all;
|
|
|
+ white-space: nowrap;
|
|
|
font-weight: 500;
|
|
|
font-size: 14px;
|
|
|
}
|
|
@@ -2291,8 +2322,11 @@ onMounted(() => {
|
|
|
}
|
|
|
.selected {
|
|
|
background: #FFF !important;
|
|
|
- color: #000 !important;
|
|
|
border: 1px solid #D9D9D9;
|
|
|
+
|
|
|
+ .text {
|
|
|
+ color: #000 !important;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.automatically-input {
|