Browse Source

将充值金币改为永久金币

Hongxilin
hongxilin 4 months ago
parent
commit
2d55f6fe95
  1. 2
      vue/gold-system/src/views/audit/rechargeAudit.vue
  2. 2
      vue/gold-system/src/views/audit/refundAudit.vue
  3. 6
      vue/gold-system/src/views/consume/addConsume.vue
  4. 2
      vue/gold-system/src/views/consume/allConsume.vue
  5. 16
      vue/gold-system/src/views/recharge/addRecharge.vue
  6. 2
      vue/gold-system/src/views/recharge/adminRecharge.vue
  7. 2
      vue/gold-system/src/views/recharge/allRecharge.vue
  8. 6
      vue/gold-system/src/views/refund/addRefund.vue
  9. 2
      vue/gold-system/src/views/refund/allRefund.vue
  10. 6
      vue/gold-system/src/views/usergold/index.vue
  11. 2
      vue/gold-system/src/views/usergoldInfo/index.vue
  12. 24
      vue/gold-system/src/views/workspace/index.vue

2
vue/gold-system/src/views/audit/rechargeAudit.vue

@ -573,7 +573,7 @@ onMounted(async function () {
label="充值方式"
width="100px"
/>
<el-table-column prop="paidGold" label="充值金币" width="100px" />
<el-table-column prop="paidGold" label="永久金币" width="100px" />
<el-table-column prop="freeGold" label="免费金币" width="100px" />
<el-table-column
prop="remark"

2
vue/gold-system/src/views/audit/refundAudit.vue

@ -537,7 +537,7 @@ onMounted(async function () {
</el-table-column>
<el-table-column
prop="rechargeCoin"
label="充值金币"
label="永久金币"
width="100px"
/>
<el-table-column prop="freeCoin" label="免费金币" width="100px" />

6
vue/gold-system/src/views/consume/addConsume.vue

@ -241,7 +241,7 @@ function calculateCoins() {
addConsume.value.freeCoin = Math.min(remainingGold, todayFree);
remainingGold -= addConsume.value.freeCoin;
addConsume.value.rechargeCoin = remainingGold; //
addConsume.value.rechargeCoin = remainingGold; //
// allGold
addConsume.value.allGold = originalAllGold;
@ -302,7 +302,7 @@ function calculateCoins() {
/>
</el-form-item>
<div style="display: flex; align-items: center">
<el-form-item prop="rechargeCoin" label="充值金币" style="float: left">
<el-form-item prop="rechargeCoin" label="永久金币" style="float: left">
<el-input
disabled
v-model="addConsume.rechargeCoin"
@ -386,7 +386,7 @@ function calculateCoins() {
<span
style="display: inline; white-space: nowrap; color: #b1b1b1"
v-if="user.buyJb"
>(充值金币:{{ user.buyJb }};免费金币:{{
>(永久金币:{{ user.buyJb }};免费金币:{{
user.free6 + user.free12
}};任务金币:{{ user.coreJb }})</span
>

2
vue/gold-system/src/views/consume/allConsume.vue

@ -383,7 +383,7 @@ getGoods();
{{ scope.row.freeCoin * -1 }}
</template>
</el-table-column>
<el-table-column prop="rechargeCoin" label="充值金币" width="120px"
<el-table-column prop="rechargeCoin" label="永久金币" width="120px"
><template #default="scope">
{{ scope.row.rechargeCoin * -1 }}
</template>

16
vue/gold-system/src/views/recharge/addRecharge.vue

@ -104,7 +104,7 @@ const Ref = ref(null);
const checkFreeGoldRadio = function (rule, value, callback) {
if (value == "0" || value == null || value == "") {
callback(new Error("请输入充值金币"));
callback(new Error("请输入永久金币"));
} else if (value < 0 || isNaN(value)) {
callback(new Error("请输入正确的格式"));
} else {
@ -580,7 +580,7 @@ const changeActivity = function (row) {
}
}
};
//
//
const changePaidGold = function (row) {
console.log("row===", row);
let ratio = 0;
@ -682,7 +682,7 @@ const batchAdd = async function () {
if (
batchData.value[i].paidGold == "" ||
batchData.value[i].paidGold == null) {
msg += `充值金币不能为空! <br/>`;
msg += `永久金币不能为空! <br/>`;
}
if (
batchData.value[i].freeGold == "" ||
@ -877,7 +877,7 @@ onMounted(async function () {
<el-option v-for="item in activity" :key="item.value" :label="item.activityName" :value="item.activityId" />
</el-select>
</el-form-item>
<el-form-item prop="paidGold" label="充值金币">
<el-form-item prop="paidGold" label="永久金币">
<el-input v-model="addRecharge.paidGold" style="width: 100px" />
<p style="margin-right: 20px"></p>
<p>免费金币</p>
@ -946,7 +946,7 @@ onMounted(async function () {
<span style="color: #2fa1ff; margin-right: 5px" v-if="user.buyJb">{{
user.buyJb + user.free6 + user.free12 + user.coreJb
}}</span>
<span style="display: inline; white-space: nowrap; color: #b1b1b1" v-if="user.buyJb">(充值金币:{{ user.buyJb
<span style="display: inline; white-space: nowrap; color: #b1b1b1" v-if="user.buyJb">(永久金币:{{ user.buyJb
}};免费金币:{{
user.free6 + user.free12
}};任务金币:{{ user.coreJb }})</span>
@ -1041,7 +1041,7 @@ onMounted(async function () {
<span v-else>{{ scope.row.activityName }}</span>
</template>
</el-table-column>
<el-table-column property="paidGold" label="充值金币" width="110px">
<el-table-column property="paidGold" label="永久金币" width="110px">
<template #default="scope">
<el-input v-if="scope.row.showInput" v-model="scope.row.paidGold" style="width: 70px"
@change="changePaidGold(scope.row)" />
@ -1162,8 +1162,8 @@ onMounted(async function () {
</el-option>
</el-select>
</el-form-item>
<el-form-item label="充值金币">
<el-input v-model="batchSettingObj.paidGold" placeholder="请输入充值金币"></el-input>
<el-form-item label="永久金币">
<el-input v-model="batchSettingObj.paidGold" placeholder="请输入永久金币"></el-input>
</el-form-item>
<el-form-item label="免费金币">
<el-input v-model="batchSettingObj.freeGold"></el-input>

2
vue/gold-system/src/views/recharge/adminRecharge.vue

@ -460,7 +460,7 @@ onMounted(async function () {
width="120px"
sortable
/>
<el-table-column prop="paidGold" label="充值金币" width="100px" />
<el-table-column prop="paidGold" label="永久金币" width="100px" />
<el-table-column prop="freeGold" label="免费金币" width="100px" />
<el-table-column
prop="remark"

2
vue/gold-system/src/views/recharge/allRecharge.vue

@ -423,7 +423,7 @@ onMounted(async function () {
label="充值方式"
width="100px"
/>
<el-table-column prop="paidGold" label="充值金币" width="100px" />
<el-table-column prop="paidGold" label="永久金币" width="100px" />
<el-table-column prop="freeGold" label="免费金币" width="100px" />
<el-table-column
prop="remark"

6
vue/gold-system/src/views/refund/addRefund.vue

@ -120,7 +120,7 @@ const rules = reactive({
taskCoin: [{ required: true, message: "请输入任务金币", trigger: "blur" }],
freeCoin: [{ required: true, message: "请输入免费金币", trigger: "blur" }],
rechargeCoin: [
{ required: true, message: "请输入充值金币", trigger: "blur" },
{ required: true, message: "请输入永久金币", trigger: "blur" },
],
allCoin: [
{ required: true, message: "请选择付款方式", trigger: "blur" },
@ -340,7 +340,7 @@ const handleSelectionChange = (value) => {
</el-form-item>
<div style="display: flex; align-items: center">
<el-form-item prop="rechargeCoin" label="充值金币" style="float: left">
<el-form-item prop="rechargeCoin" label="永久金币" style="float: left">
<el-input
v-model="addRefund.rechargeCoin"
style="width: 100px"
@ -428,7 +428,7 @@ const handleSelectionChange = (value) => {
<span
style="display: inline; white-space: nowrap; color: #b1b1b1"
v-if="user.buyJb"
>(充值金币:{{ user.buyJb }};免费金币:{{
>(永久金币:{{ user.buyJb }};免费金币:{{
user.free6 + user.free12
}};任务金币:{{ user.coreJb }})</span
>

2
vue/gold-system/src/views/refund/allRefund.vue

@ -434,7 +434,7 @@ const checkNumber = function () {
</el-table-column>
<el-table-column
prop="rechargeCoin"
label="充值金币"
label="永久金币"
width="100px"
/>
<el-table-column prop="freeCoin" label="免费金币" width="100px" />

6
vue/gold-system/src/views/usergold/index.vue

@ -229,7 +229,7 @@ const json_fields = (row) => {
row.consumePlatform, //
row.firstexam_score, //
row.freeCoin, //
row.rechageCoin, //
row.rechageCoin, //
row.taskCoin, //
row.name, //
moment(row.createTime).format("YYYY-MM-DD HH:mm:ss"), //
@ -520,7 +520,7 @@ const get30 = function () {
<el-col>
<el-card>
<div>
现有金币免费金币{{ Math.abs(freeCoin) }}充值金币{{
现有金币免费金币{{ Math.abs(freeCoin) }}永久金币{{
Math.abs(rechargeCoin)
}}任务金币{{ Math.abs(taskCoin) }}
</div>
@ -579,7 +579,7 @@ const get30 = function () {
<span>{{ Math.abs(scope.row.freeCoin) }}</span>
</template>
</el-table-column>
<el-table-column prop="rechargeCoin" label="充值金币" width="150">
<el-table-column prop="rechargeCoin" label="永久金币" width="150">
<template #default="scope">
<span>{{ Math.abs(scope.row.rechargeCoin) }}</span>
</template>

2
vue/gold-system/src/views/usergoldInfo/index.vue

@ -243,7 +243,7 @@ onMounted(async function () {
<span>{{ Math.abs(scope.row.free6 + scope.row.free12) }}</span>
</template>
</el-table-column>
<el-table-column prop="buyJb" label="充值金币" width="110">
<el-table-column prop="buyJb" label="永久金币" width="110">
<template #default="scope">
<span>{{ Math.abs(scope.row.buyJb) }}</span>
</template>

24
vue/gold-system/src/views/workspace/index.vue

@ -68,7 +68,7 @@ const gold = [
},
{
value: "充值金币",
label: "充值金币",
label: "永久金币",
},
{
value: "免费金币",
@ -144,7 +144,7 @@ const get = async function () {
option3Data.value = [
{
value: Math.abs(statistics.value.rechargeSumCoin),
name: "充值金币" + " | " + statistics.value.rechargeSumCoin,
name: "永久金币" + " | " + statistics.value.rechargeSumCoin,
},
{
value: Math.abs(statistics.value.freeSumCoin),
@ -160,7 +160,7 @@ const get = async function () {
{
value: Math.abs(getYearConsumeCoin.value.yearSumRechargeCoin),
name:
"充值金币" +
"永久金币" +
" | " +
Math.abs(getYearConsumeCoin.value.yearSumRechargeCoin),
},
@ -184,7 +184,7 @@ const get = async function () {
option5Data.value = [
{
value: Math.abs(getSumCoin.value.todayRecharge),
name: "充值金币" + " | " + getSumCoin.value.todayRecharge,
name: "永久金币" + " | " + getSumCoin.value.todayRecharge,
},
{
value: Math.abs(getSumCoin.value.todayFree),
@ -440,7 +440,7 @@ const getMiddleBar = async function () {
},
series: [
{
name: "充值金币",
name: "永久金币",
color: "#35e383",
type: "bar",
stack: "total",
@ -513,7 +513,7 @@ const getMiddleBar = async function () {
},
series: [
{
name: "充值金币",
name: "永久金币",
color: "#35e383",
type: "bar",
stack: "total",
@ -906,7 +906,7 @@ onMounted(async function () {
},
series: [
{
name: "充值金币",
name: "永久金币",
color: "#35e383",
type: "bar",
stack: "total",
@ -1125,7 +1125,7 @@ onMounted(async function () {
</span>
</p>
<template #footer>
<span>充值{{ formatNum(getSumCoin.todayRecharge) }}
<span>永久{{ formatNum(getSumCoin.todayRecharge) }}
免费{{ formatNum(getSumCoin.todayFree) }}
任务{{ formatNum(getSumCoin.todayTask) }}
</span>
@ -1242,7 +1242,7 @@ onMounted(async function () {
<el-tabs v-model="activeName" class="demo-tabs" @tab-change="handleChange">
<el-tab-pane label="金币充值" name="recharge">
<div>
合计充值金币
合计永久金币
<span class="mid-head-font">{{
formatNum(middleTotalRecharge)
}}</span>
@ -1259,7 +1259,7 @@ onMounted(async function () {
<div id="recharge" style="width: 100%; height: 400px"></div>
<div style="width: 140px">
<div class="goldCategory">
<span>充值金币</span>
<span>永久金币</span>
</div>
<div class="goldCategory">
<span>免费金币</span>
@ -1295,7 +1295,7 @@ onMounted(async function () {
</el-tab-pane>
<el-tab-pane label="金币消费" name="consume">
<div>
合计充值金币
合计永久金币
<span class="mid-head-font">{{
formatNum(middleTotalRecharge)
}}</span>
@ -1312,7 +1312,7 @@ onMounted(async function () {
<div id="consume" style="width: 100%; height: 400px"></div>
<div style="width: 140px">
<div class="goldCategory">
<span>充值金币</span>
<span>永久金币</span>
</div>
<div class="goldCategory">
<span>免费金币</span>

Loading…
Cancel
Save