Commit 5fd3de09 authored by 刘殿昕's avatar 刘殿昕

Merge branch 'ldx' into dev

parents da510826 ec1385e9
......@@ -651,11 +651,15 @@
<span @click="dialogFymx = true" class="ckfymx_a">
查看费用明细
</span>
<span class="ckfymx_qian">账户余额:{{ userInfo.account_balance }} 金币</span>
<span class="ckfymx_qian"
>账户余额:{{ userInfo.account_balance }} 金币</span
>
</p>
</div>
<el-button
:class="getSumCoin <= userInfo.account_balance ? 'submit' : 'nosubmit'"
:class="
getSumCoin <= userInfo.account_balance ? 'submit' : 'nosubmit'
"
:disabled="getSumCoin > userInfo.account_balance"
@click="submitApp"
>
......@@ -964,7 +968,9 @@
</p>
</div>
<p class="fyzj_2">
账户余额:<span class="fyzj_2_num">{{ userInfo.account_balance }} 金币</span>
账户余额:<span class="fyzj_2_num"
>{{ userInfo.account_balance }} 金币</span
>
</p>
</div>
<div class="clear_xxx"></div>
......@@ -1053,27 +1059,27 @@ export default {
a_deductions = this.deductions;
if (this.formNew.cpu == "8") {
if (this.formNew.memory == "16") {
let priceObj = this.cpu_memory.find(item => {
let priceObj = this.cpu_memory.find((item) => {
return item.cpu == 8 && item.memory == 16;
})
sumCM += priceObj.price;
});
sumCM += Number(priceObj.price);
} else if (this.formNew.memory == "32") {
let priceObj = this.cpu_memory.find(item => {
let priceObj = this.cpu_memory.find((item) => {
return item.cpu == 8 && item.memory == 32;
})
sumCM += priceObj.price;
});
sumCM += Number(priceObj.price);
}
} else if (this.formNew.cpu == "16") {
if (this.formNew.memory == "32") {
let priceObj = this.cpu_memory.find(item => {
let priceObj = this.cpu_memory.find((item) => {
return item.cpu == 16 && item.memory == 32;
})
sumCM += priceObj.price;
});
sumCM += Number(priceObj.price);
} else if (this.formNew.memory == "64") {
let priceObj = this.cpu_memory.find(item => {
let priceObj = this.cpu_memory.find((item) => {
return item.cpu == 16 && item.memory == 64;
})
sumCM += priceObj.price;
});
sumCM += Number(priceObj.price);
}
}
if (
......@@ -1082,10 +1088,10 @@ export default {
this.formNew.appDuration >= 1
) {
sumDisk +=
this.formNew.dataDisk *
this.formNew.perDataDisk *
this.formNew.appDuration *
this.hard_disk[0].price;
Number(this.formNew.dataDisk) *
Number(this.formNew.perDataDisk) *
Number(this.formNew.appDuration) *
Number(this.hard_disk[0].price);
this.jifeiList1[2] = {
name: "数据盘",
num: `${this.formNew.dataDisk}个数据盘,每个数据盘${this.formNew.perDataDisk}GB`,
......@@ -1112,27 +1118,27 @@ export default {
a_deductions = this.deductions;
if (this.formOld.cpu == "8") {
if (this.formOld.memory == "16") {
let priceObj = this.cpu_memory.find(item => {
let priceObj = this.cpu_memory.find((item) => {
return item.cpu == 8 && item.memory == 16;
})
sumCM += priceObj.price;
});
sumCM += Number(priceObj.price);
} else if (this.formOld.memory == "32") {
let priceObj = this.cpu_memory.find(item => {
let priceObj = this.cpu_memory.find((item) => {
return item.cpu == 8 && item.memory == 32;
})
sumCM += priceObj.price;
});
sumCM += Number(priceObj.price);
}
} else if (this.formOld.cpu == "16") {
if (this.formOld.memory == "32") {
let priceObj = this.cpu_memory.find(item => {
let priceObj = this.cpu_memory.find((item) => {
return item.cpu == 16 && item.memory == 32;
})
sumCM += priceObj.price;
});
sumCM += Number(priceObj.price);
} else if (this.formOld.memory == "64") {
let priceObj = this.cpu_memory.find(item => {
let priceObj = this.cpu_memory.find((item) => {
return item.cpu == 16 && item.memory == 64;
})
sumCM += priceObj.price;
});
sumCM += Number(priceObj.price);
}
}
if (
......@@ -1141,10 +1147,10 @@ export default {
this.formOld.appDuration >= 1
) {
sumDisk +=
this.formOld.dataDisk *
this.formOld.perDataDisk *
this.formOld.appDuration *
this.hard_disk[0].price;
Number(this.formOld.dataDisk) *
Number(this.formOld.perDataDisk) *
Number(this.formOld.appDuration) *
Number(this.hard_disk[0].price);
this.jifeiList1[2] = {
name: "数据盘",
num: `${this.formOld.dataDisk}个数据盘,每个数据盘${this.formOld.perDataDisk}GB`,
......@@ -1168,7 +1174,7 @@ export default {
this.formOld.appDuration >= 1 ? this.formOld.appDuration : 0
}个月`;
}
this.amounts_payable = (sumCM + sumDisk).toFixed(2);
this.amounts_payable = Number((Number(sumCM) + Number(sumDisk)).toFixed(2));
// this.total_money = sumCM + sumDisk - a_deductions;
return this.amounts_payable;
},
......
......@@ -132,9 +132,9 @@ export default {
this.checkList.forEach((item, index) => {
if (item) {
if (this.list[index].service_id != 0) {
sum += (this.list[index].service.spcs_info.money * this.list[index].duration).toFixed(2);
sum += Number((this.list[index].service.spcs_info.money * this.list[index].duration).toFixed(2));
} else {
sum += (this.list[index].application.price * this.list[index].duration).toFixed(2);
sum += Number((this.list[index].application.price * this.list[index].duration).toFixed(2));
}
}
});
......
......@@ -51,7 +51,7 @@
>
<div class="dia_reason">
<el-form ref="form1" :model="reason_form" :rules="reason_rules">
<el-form-item class="dia_item">
<el-form-item class="dia_item" prop="reason">
<p>删除理由:</p>
<el-input
type="textarea"
......@@ -292,6 +292,7 @@ export default {
this.table_header = [];
if (val == "/qa/questions") {
this.form_data[1].label = "发布人搜索";
this.form_data[1].placeholder = "请输入发布人名称";
this.form_data[2].label = "发布时间";
this.table_header = [
{
......@@ -355,6 +356,7 @@ export default {
this.getQList();
} else if (val == "/qa/answers") {
this.form_data[1].label = "回复人搜索";
this.form_data[1].placeholder = "请输入回复人名称";
this.form_data[2].label = "回复时间";
this.table_header = [
{
......
......@@ -67,8 +67,7 @@
<div v-for="(item, index) in data_list" :key="index" class="qa_cell">
<div class="qa_cell_in">
<div :class="activeName == 2 ? 'qa_is_del' : 'qa_init'">
<p v-if="activeName == 1" class="cell_answer">
{{ item.answer }}
<p v-if="activeName == 1" class="cell_answer" v-html="item.answer">
</p>
<p
@click="gotodeta(item.question_id)"
......@@ -324,7 +323,7 @@ export default {
},
delQ() {
let items = [{ id: this.delItem.id }];
console.log(items);
this.diaDelItem = false;
this.$api.user.delQuestions(items).then((response) => {
if (response.data.success == 1) {
this.$message({
......@@ -336,6 +335,7 @@ export default {
},
delA() {
let items = [{ id: this.delItem.id }];
this.diaDelItem = false;
this.$api.user.delAnswers(items).then((response) => {
if (response.data.success == 1) {
this.$message({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment