|
@@ -1979,6 +1979,55 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-card>
|
|
</el-card>
|
|
|
|
|
|
|
|
|
|
+ <!-- 游戏配置卡片 -->
|
|
|
|
|
+ <el-card class="config-card" shadow="hover">
|
|
|
|
|
+ <div class="section-title">
|
|
|
|
|
+ <div class="title-icon icon-game">
|
|
|
|
|
+ <i class="el-icon-s-flag"></i>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="title-text">
|
|
|
|
|
+ <h3>游戏配置</h3>
|
|
|
|
|
+ <p class="subtitle">配置APP内小游戏相关参数</p>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <el-divider></el-divider>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 游戏获得积分 -->
|
|
|
|
|
+ <el-form-item label="游戏获得积分" prop="addIntegral">
|
|
|
|
|
+ <el-input-number
|
|
|
|
|
+ v-model="form25.addIntegral"
|
|
|
|
|
+ :min="-999999"
|
|
|
|
|
+ :max="999999"
|
|
|
|
|
+ :step="1"
|
|
|
|
|
+ :precision="0"
|
|
|
|
|
+ controls-position="right"
|
|
|
|
|
+ style="width: 320px;">
|
|
|
|
|
+ </el-input-number>
|
|
|
|
|
+ <el-tooltip content="玩一局游戏获得的积分(负数为扣减),默认100" placement="right">
|
|
|
|
|
+ <i class="el-icon-question help-icon"></i>
|
|
|
|
|
+ </el-tooltip>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 视频获得积分 -->
|
|
|
|
|
+ <el-form-item label="视频获得积分" prop="defaultRewardGold">
|
|
|
|
|
+ <el-input-number
|
|
|
|
|
+ v-model="form25.defaultRewardGold"
|
|
|
|
|
+ :min="-999999"
|
|
|
|
|
+ :max="999999"
|
|
|
|
|
+ :step="1"
|
|
|
|
|
+ :precision="0"
|
|
|
|
|
+ controls-position="right"
|
|
|
|
|
+ style="width: 320px;">
|
|
|
|
|
+ </el-input-number>
|
|
|
|
|
+ <el-tooltip content="观看视频获得的金币(负数为扣减),默认100" placement="right">
|
|
|
|
|
+ <i class="el-icon-question help-icon"></i>
|
|
|
|
|
+ </el-tooltip>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+
|
|
|
|
|
+ </el-card>
|
|
|
|
|
+
|
|
|
<!-- 操作按钮 -->
|
|
<!-- 操作按钮 -->
|
|
|
<div class="footer">
|
|
<div class="footer">
|
|
|
<el-button type="primary" @click="submitForm25">提 交</el-button>
|
|
<el-button type="primary" @click="submitForm25">提 交</el-button>
|
|
@@ -3416,6 +3465,12 @@ export default {
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
submitForm25() {
|
|
submitForm25() {
|
|
|
|
|
+ if (!this.form25.addIntegral){
|
|
|
|
|
+ this.form25.addIntegral = 100
|
|
|
|
|
+ }
|
|
|
|
|
+ if (!this.form25.defaultRewardGold){
|
|
|
|
|
+ this.form25.defaultRewardGold = 100
|
|
|
|
|
+ }
|
|
|
var param = { configId: this.configId, configKey: this.configKey, configValue: JSON.stringify(this.form25) }
|
|
var param = { configId: this.configId, configKey: this.configKey, configValue: JSON.stringify(this.form25) }
|
|
|
console.log(param)
|
|
console.log(param)
|
|
|
updateConfigByKey(param).then(response => {
|
|
updateConfigByKey(param).then(response => {
|