|
@@ -118,9 +118,11 @@
|
|
|
<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>
|
|
@@ -314,6 +316,18 @@
|
|
|
<div class="form-right-sheet">
|
|
|
<!-- 自定义封面事件 -->
|
|
|
<!-- @click="customCoverImg" -->
|
|
|
+ <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">
|
|
|
<div class="submit-btn"
|
|
@@ -439,7 +453,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";
|
|
@@ -471,6 +485,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',
|
|
@@ -491,6 +506,8 @@ let publishRes = reactive({});
|
|
|
let visible = ref(true);
|
|
|
let publishType = ref('REDPACKET');
|
|
|
|
|
|
+let userInfo = ref({})
|
|
|
+
|
|
|
|
|
|
//弹窗高度
|
|
|
let dialogStyle = reactive({
|
|
@@ -1791,10 +1808,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();
|
|
|
}
|
|
@@ -1802,8 +1835,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) {
|
|
@@ -2175,7 +2207,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;
|
|
@@ -2284,7 +2316,7 @@ onMounted(() => {
|
|
|
}
|
|
|
|
|
|
.text {
|
|
|
- word-break: break-all;
|
|
|
+ white-space: nowrap;
|
|
|
font-weight: 500;
|
|
|
font-size: 14px;
|
|
|
}
|
|
@@ -2295,8 +2327,11 @@ onMounted(() => {
|
|
|
}
|
|
|
.selected {
|
|
|
background: #FFF !important;
|
|
|
- color: #000 !important;
|
|
|
border: 1px solid #D9D9D9;
|
|
|
+
|
|
|
+ .text {
|
|
|
+ color: #000 !important;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.automatically-input {
|