|
@@ -412,7 +412,7 @@ provide('installStatus', installStatus)
|
|
let publishRes = reactive({});
|
|
let publishRes = reactive({});
|
|
|
|
|
|
//弹窗是否展示
|
|
//弹窗是否展示
|
|
-let visible = ref(true);
|
|
|
|
|
|
+let visible = ref(false);
|
|
|
|
|
|
//弹窗高度
|
|
//弹窗高度
|
|
let dialogStyle = reactive({
|
|
let dialogStyle = reactive({
|
|
@@ -770,6 +770,10 @@ const selectCurrencyAfter = (params, openWindow = true) => {
|
|
const resetFormIpt = () => {
|
|
const resetFormIpt = () => {
|
|
baseFormData.amountValue = "";
|
|
baseFormData.amountValue = "";
|
|
baseFormData.totalCount = "";
|
|
baseFormData.totalCount = "";
|
|
|
|
+ baseFormData.validityDuration = "";
|
|
|
|
+ selectModeInfo.index = 0;
|
|
|
|
+ selectModeInfo.type = publishModeList[selectModeInfo.index]['type'];
|
|
|
|
+ baseFormData.type = selectModeInfo.type;
|
|
}
|
|
}
|
|
|
|
|
|
const setLocalSelectCurrencyInfo = (params = {}) => {
|
|
const setLocalSelectCurrencyInfo = (params = {}) => {
|
|
@@ -914,7 +918,14 @@ const submitRequest = async () => {
|
|
|
|
|
|
let validityDuration = '';
|
|
let validityDuration = '';
|
|
if(baseFormData.type == 2) {
|
|
if(baseFormData.type == 2) {
|
|
- validityDuration = baseFormData.validityDuration * 60 * 60 * 1000;
|
|
|
|
|
|
+ //小时转毫秒
|
|
|
|
+ let unit = 60 * 60 * 1000;
|
|
|
|
+ if(process.env.NODE_ENV != 'production') {
|
|
|
|
+ unit = 60 * 1000;
|
|
|
|
+ } else {
|
|
|
|
+ unit = 60 * 60 * 1000;
|
|
|
|
+ }
|
|
|
|
+ validityDuration = baseFormData.validityDuration * unit;
|
|
} else {
|
|
} else {
|
|
validityDuration = '';
|
|
validityDuration = '';
|
|
}
|
|
}
|
|
@@ -1423,7 +1434,6 @@ const getDiscordInviteInfo = ({inviteUrl, getDuildId}, cb) => {
|
|
iptErrMsgTxt.value = discordIptErrTxt;
|
|
iptErrMsgTxt.value = discordIptErrTxt;
|
|
} else {
|
|
} else {
|
|
getGuildInfoByOpenApi({inviteCode}, cb);
|
|
getGuildInfoByOpenApi({inviteCode}, cb);
|
|
-
|
|
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -1568,6 +1578,7 @@ const selectPublishMode = (params, index) => {
|
|
selectModeInfo.type = params.type;
|
|
selectModeInfo.type = params.type;
|
|
baseFormData.type = params.type;
|
|
baseFormData.type = params.type;
|
|
|
|
|
|
|
|
+ setInputErrorMsg();
|
|
}
|
|
}
|
|
|
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
@@ -1843,7 +1854,7 @@ onMounted(() => {
|
|
.item {
|
|
.item {
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
padding: 7px 0;
|
|
padding: 7px 0;
|
|
- height: 76px;
|
|
|
|
|
|
+ min-height: 76px;
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
@@ -1986,7 +1997,7 @@ onMounted(() => {
|
|
border: 1px solid #D1D9DD;
|
|
border: 1px solid #D1D9DD;
|
|
|
|
|
|
.form-item {
|
|
.form-item {
|
|
- min-height: 50px;
|
|
|
|
|
|
+ min-height: 54px;
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|