Commit cdfbe425 by chenxin

fix:ecm细节修改,游戏设置bug(分享id)修改

parent 2f0ac6b0
...@@ -19,9 +19,9 @@ ...@@ -19,9 +19,9 @@
<script src="//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js"></script> <script src="//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js"></script>
<script src="//web-1251519181.file.myqcloud.com/lib/elementUI/index.2.5.4.js"></script> <script src="//web-1251519181.file.myqcloud.com/lib/elementUI/index.2.5.4.js"></script>
<!-- 组件引用cdn --> <!-- 组件引用cdn -->
<script src="//web-1251519181.file.myqcloud.com/components/header.2.0.18.05.js"></script> <script src="//web-1251519181.file.myqcloud.com/components/header.2.0.18.js"></script>
<script src="//web-1251519181.file.myqcloud.com/components/footer.2.0.02.js"></script> <script src="//web-1251519181.file.myqcloud.com/components/footer.2.0.02.js"></script>
<script src="//web-1251519181.file.myqcloud.com/components/card.2.0.01.js"></script> <script src="//web-1251519181.file.myqcloud.com/components/card.2.0.02.js"></script>
<script src="//web-1251519181.file.myqcloud.com/components/store.2.0.01.js"></script> <script src="//web-1251519181.file.myqcloud.com/components/store.2.0.01.js"></script>
<script src="//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js"></script> <script src="//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js"></script>
<script src="//web-1251519181.file.myqcloud.com/components/member-group.2.0.01.js"></script> <script src="//web-1251519181.file.myqcloud.com/components/member-group.2.0.01.js"></script>
......
...@@ -141,3 +141,6 @@ export const getGameSystemMusic = params => requests(PREFIX + 'get-game-system-m ...@@ -141,3 +141,6 @@ export const getGameSystemMusic = params => requests(PREFIX + 'get-game-system-m
//游戏营销--拼图游戏下载模板 //游戏营销--拼图游戏下载模板
export const downloadPtyxSkinPsd = config.api + PREFIX + 'download-tempskin-psd?requestProject=marketing'; export const downloadPtyxSkinPsd = config.api + PREFIX + 'download-tempskin-psd?requestProject=marketing';
// 游戏营销--大转盘/刮刮卡下载psd
export const downloadWheelSkinPsd = config.api + PREFIX + 'download_wheel_skin_psd?requestProject=marketing';
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item v-if="form.shareFlag === 1" label="分享图" prop="shareImg.imgUrl" class="width50" :rules="{ required: true, message: '请上传分享图片', trigger: 'blur' }"> <el-form-item v-if="form.shareFlag === 1" label="分享图" prop="shareImg.imgUrl" class="width50" :rules="{ required: true, message: '请上传分享图片', trigger: 'blur' }">
<dm-upload-avatar :model.sync="form.shareImg" fileType="fileShare" label="上传图片" tips="图片建议尺寸:高度200px*200px" :disabled="isInfo"></dm-upload-avatar> <dm-upload-avatar :limit="{ type: true, width: 200, height: 200 }" :model.sync="form.shareImg" fileType="fileShare" label="上传图片" tips="图片建议尺寸:高度200px*200px" :disabled="isInfo"></dm-upload-avatar>
</el-form-item> </el-form-item>
<el-form-item v-if="form.shareFlag === 1" label="分享标题" prop="shareTitle" class="width50" :rules="{ required: true, message: '标题不能为空', trigger: 'blur' }"> <el-form-item v-if="form.shareFlag === 1" label="分享标题" prop="shareTitle" class="width50" :rules="{ required: true, message: '标题不能为空', trigger: 'blur' }">
<dm-input v-model="form.shareTitle" class="w400" placeholder="请输入分享标题" :disabled="isInfo" :maxlength="20"></dm-input> <dm-input v-model="form.shareTitle" class="w400" placeholder="请输入分享标题" :disabled="isInfo" :maxlength="20"></dm-input>
...@@ -33,7 +33,7 @@ export default { ...@@ -33,7 +33,7 @@ export default {
shareTextInfo: '', shareTextInfo: '',
shareImg: { shareImg: {
code: '', code: '',
imgUrl: require("./img/default-share.png"), // eslint-disable-line imgUrl: '', // eslint-disable-line
wxImg: '' wxImg: ''
} }
}; };
...@@ -47,14 +47,7 @@ export default { ...@@ -47,14 +47,7 @@ export default {
default: false default: false
} }
}, },
watch: { // watch: {},
// childData: {
// handler(val) {
// console.log(val);
// },
// deep: true
// }
},
components: { components: {
dmUploadAvatar dmUploadAvatar
} }
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<el-radio v-model="form.skinType" :label="3" :disabled="isInfo">霓虹灯</el-radio> <el-radio v-model="form.skinType" :label="3" :disabled="isInfo">霓虹灯</el-radio>
<el-radio v-model="form.skinType" :label="0" :disabled="isInfo">自定义</el-radio> <el-radio v-model="form.skinType" :label="0" :disabled="isInfo">自定义</el-radio>
<span class="regular-font-color pl20"> <span class="regular-font-color pl20">
<b class="blue cursor-pointer">模板皮肤下载</b> <b class="blue cursor-pointer" @click="downloadWheelSkinPsd">模板皮肤下载</b>
<el-popover placement="top-start" width="200" trigger="hover" title="banner图片定制化:" content="下载后修改为需要使用的样式,重新上传banner图的图片"> <el-popover placement="top-start" width="200" trigger="hover" title="banner图片定制化:" content="下载后修改为需要使用的样式,重新上传banner图的图片">
<i class="el-icon-question fz16 blue el-popover__reference" slot="reference"></i> <i class="el-icon-question fz16 blue el-popover__reference" slot="reference"></i>
</el-popover> </el-popover>
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
</template> </template>
<script> <script>
import { detailLottery, saveLottery } from '@/service/api/gameApi.js'; import { detailLottery, saveLottery, downloadWheelSkinPsd } from '@/service/api/gameApi.js';
import { numberToChinese, formatDateTimeByType } from '@/utils/index.js'; import { numberToChinese, formatDateTimeByType } from '@/utils/index.js';
import dmUploadAvatar from '@/components/upload/avatar'; import dmUploadAvatar from '@/components/upload/avatar';
import editAlertMixin from '../common/editAlertMixin.js'; import editAlertMixin from '../common/editAlertMixin.js';
...@@ -157,12 +157,12 @@ export default { ...@@ -157,12 +157,12 @@ export default {
skinType: 1, skinType: 1,
// 分享 // 分享
shareFlag: 1, shareFlag: 1,
GameShareSettingId: '', gameShareSettingId: '',
shareTitle: '大转盘中大奖', shareTitle: '速玩大转盘,各种好礼等你盘',
shareTextInfo: '玩游戏,赢大奖~', shareTextInfo: '大转盘来啦!你的“小幸运”转转转转起来,超值大奖等你拿回家!',
shareImg: { shareImg: {
code: '', code: '',
imgUrl: require("../common/img/default-share.png"), // eslint-disable-line imgUrl: require("../common/img/share/dzp.png"), // eslint-disable-line
wxImg: '' wxImg: ''
}, },
// 参与门槛 // 参与门槛
...@@ -450,7 +450,7 @@ export default { ...@@ -450,7 +450,7 @@ export default {
// 游戏分享 // 游戏分享
let shareSetting = {}; let shareSetting = {};
if (this.form.shareFlag) { if (this.form.shareFlag) {
const { shareTitle, shareTextInfo, shareImg, GameShareSettingId } = this.form; const { shareTitle, shareTextInfo, shareImg, gameShareSettingId } = this.form;
shareSetting = { shareSetting = {
shareTitle, shareTitle,
shareTextInfo, shareTextInfo,
...@@ -459,7 +459,7 @@ export default { ...@@ -459,7 +459,7 @@ export default {
shareImgUrlWX: shareImg.wxImg shareImgUrlWX: shareImg.wxImg
}; };
if (this.isEdit) { if (this.isEdit) {
shareSetting.GameShareSettingId = GameShareSettingId; shareSetting.GameShareSettingId = gameShareSettingId;
} }
} }
// attendCondition 参与门槛 // attendCondition 参与门槛
...@@ -572,6 +572,9 @@ export default { ...@@ -572,6 +572,9 @@ export default {
</span> </span>
</el-tooltip> </el-tooltip>
); );
},
downloadWheelSkinPsd() {
window.location = downloadWheelSkinPsd;
} }
}, },
filters: { filters: {
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<el-radio v-model="form.skinType" :label="3" :disabled="isInfo">霓虹灯</el-radio> <el-radio v-model="form.skinType" :label="3" :disabled="isInfo">霓虹灯</el-radio>
<el-radio v-model="form.skinType" :label="0" :disabled="isInfo">自定义</el-radio> <el-radio v-model="form.skinType" :label="0" :disabled="isInfo">自定义</el-radio>
<span class="regular-font-color pl20"> <span class="regular-font-color pl20">
<b class="blue cursor-pointer">模板皮肤下载</b> <b class="blue cursor-pointer" @click="downloadWheelSkinPsd">模板皮肤下载</b>
<el-popover placement="top-start" width="200" trigger="hover" title="banner图片定制化:" content="下载后修改为需要使用的样式,重新上传banner图的图片"> <el-popover placement="top-start" width="200" trigger="hover" title="banner图片定制化:" content="下载后修改为需要使用的样式,重新上传banner图的图片">
<i class="el-icon-question fz16 blue el-popover__reference" slot="reference"></i> <i class="el-icon-question fz16 blue el-popover__reference" slot="reference"></i>
</el-popover> </el-popover>
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
</template> </template>
<script> <script>
import { detailLottery, saveLottery } from '@/service/api/gameApi.js'; import { detailLottery, saveLottery, downloadWheelSkinPsd } from '@/service/api/gameApi.js';
import { formatDateTimeByType } from '@/utils/index.js'; import { formatDateTimeByType } from '@/utils/index.js';
import dmUploadAvatar from '@/components/upload/avatar'; import dmUploadAvatar from '@/components/upload/avatar';
import editAlertMixin from '../common/editAlertMixin.js'; import editAlertMixin from '../common/editAlertMixin.js';
...@@ -143,12 +143,12 @@ export default { ...@@ -143,12 +143,12 @@ export default {
// 分享 // 分享
memberType: 0, memberType: 0,
shareFlag: 1, shareFlag: 1,
GameShareSettingId: '', gameShareSettingId: '',
shareTitle: '刮一刮,中大奖', shareTitle: '幸运刮刮卡,超级大礼刮出来',
shareTextInfo: '玩游戏,赢大奖~', shareTextInfo: '你敢来!我就敢送!刮刮卡中奖High翻天,奖品都到怀里来',
shareImg: { shareImg: {
code: '', code: '',
imgUrl: require("../common/img/default-share.png"), // eslint-disable-line imgUrl: require("../common/img/share/ggk.png"), // eslint-disable-line
wxImg: '' wxImg: ''
}, },
// 参与门槛 // 参与门槛
...@@ -402,7 +402,7 @@ export default { ...@@ -402,7 +402,7 @@ export default {
let shareSetting = {}; let shareSetting = {};
// 游戏分享 // 游戏分享
if (this.form.shareFlag) { if (this.form.shareFlag) {
const { shareTitle, shareTextInfo, shareImg, GameShareSettingId } = this.form; const { shareTitle, shareTextInfo, shareImg, gameShareSettingId } = this.form;
shareSetting = { shareSetting = {
shareTitle, shareTitle,
shareTextInfo, shareTextInfo,
...@@ -411,7 +411,7 @@ export default { ...@@ -411,7 +411,7 @@ export default {
shareImgUrlWX: shareImg.wxImg shareImgUrlWX: shareImg.wxImg
}; };
if (this.isEdit) { if (this.isEdit) {
shareSetting.GameShareSettingId = GameShareSettingId; shareSetting.GameShareSettingId = gameShareSettingId;
} }
} }
// attendCondition 参与门槛 // attendCondition 参与门槛
...@@ -509,6 +509,9 @@ export default { ...@@ -509,6 +509,9 @@ export default {
</span> </span>
</el-tooltip> </el-tooltip>
); );
},
downloadWheelSkinPsd() {
window.location = downloadWheelSkinPsd;
} }
} }
}; };
......
...@@ -237,12 +237,12 @@ export default { ...@@ -237,12 +237,12 @@ export default {
tipUrl: '', tipUrl: '',
// 分享 // 分享
shareFlag: 1, shareFlag: 1,
GameShareSettingId: '', gameShareSettingId: '',
shareTitle: '大转盘中大奖', shareTitle: '输口令,赢大奖',
shareTextInfo: '玩游戏,赢大奖~', shareTextInfo: '玩游戏,赢大奖~',
shareImg: { shareImg: {
code: '', code: '',
imgUrl: require("../common/img/default-share.png"), // eslint-disable-line imgUrl: require("../common/img/share/klfl.png"), // eslint-disable-line
wxImg: '' wxImg: ''
}, },
// 参与门槛 // 参与门槛
...@@ -626,7 +626,7 @@ export default { ...@@ -626,7 +626,7 @@ export default {
// 游戏分享 // 游戏分享
let shareSetting = {}; let shareSetting = {};
if (this.form.shareFlag) { if (this.form.shareFlag) {
const { shareTitle, shareTextInfo, shareImg, GameShareSettingId } = this.form; const { shareTitle, shareTextInfo, shareImg, gameShareSettingId } = this.form;
shareSetting = { shareSetting = {
shareTitle, shareTitle,
shareTextInfo, shareTextInfo,
...@@ -635,7 +635,7 @@ export default { ...@@ -635,7 +635,7 @@ export default {
shareImgUrlWX: shareImg.wxImg shareImgUrlWX: shareImg.wxImg
}; };
if (this.isEdit) { if (this.isEdit) {
shareSetting.GameShareSettingId = GameShareSettingId; shareSetting.GameShareSettingId = gameShareSettingId;
} }
} }
// attendCondition 参与门槛 // attendCondition 参与门槛
......
...@@ -193,12 +193,12 @@ export default { ...@@ -193,12 +193,12 @@ export default {
skinType: 0, skinType: 0,
// 分享 // 分享
shareFlag: 1, shareFlag: 1,
GameShareSettingId: '', gameShareSettingId: '',
shareTitle: '大转盘中大奖', shareTitle: '您的好友邀请你一起来玩拼图游戏~',
shareTextInfo: '玩游戏,赢大奖~', shareTextInfo: '玩游戏,赠送体力,pk好友,赢大奖!',
shareImg: { shareImg: {
code: '', code: '',
imgUrl: require("../common/img/default-share.png"), // eslint-disable-line imgUrl: require("../common/img/share/ptyx.png"), // eslint-disable-line
wxImg: '' wxImg: ''
}, },
// 参与门槛 // 参与门槛
...@@ -473,7 +473,7 @@ export default { ...@@ -473,7 +473,7 @@ export default {
// 游戏分享 // 游戏分享
let shareSetting = {}; let shareSetting = {};
if (this.form.shareFlag) { if (this.form.shareFlag) {
const { shareTitle, shareTextInfo, shareImg, GameShareSettingId } = this.form; const { shareTitle, shareTextInfo, shareImg, gameShareSettingId } = this.form;
shareSetting = { shareSetting = {
shareTitle, shareTitle,
shareTextInfo, shareTextInfo,
...@@ -482,7 +482,7 @@ export default { ...@@ -482,7 +482,7 @@ export default {
shareImgUrlWX: shareImg.wxImg shareImgUrlWX: shareImg.wxImg
}; };
if (this.isEdit) { if (this.isEdit) {
shareSetting.GameShareSettingId = GameShareSettingId; shareSetting.GameShareSettingId = gameShareSettingId;
} }
} }
// attendCondition 参与门槛 // attendCondition 参与门槛
......
...@@ -104,12 +104,12 @@ export default { ...@@ -104,12 +104,12 @@ export default {
gameIntroduction: '', gameIntroduction: '',
// 分享 // 分享
shareFlag: 1, shareFlag: 1,
GameShareSettingId: '', gameShareSettingId: '',
shareTitle: '大转盘中大奖', shareTitle: '找呀找呀找你马',
shareTextInfo: '玩游戏,赢大奖~', shareTextInfo: '玩游戏,赢大奖~',
shareImg: { shareImg: {
code: '', code: '',
imgUrl: require("../common/img/default-share.png"), // eslint-disable-line imgUrl: require("../common/img/share/znm.png"), // eslint-disable-line
wxImg: '' wxImg: ''
}, },
// 参与门槛 // 参与门槛
...@@ -330,7 +330,7 @@ export default { ...@@ -330,7 +330,7 @@ export default {
let shareSetting = {}; let shareSetting = {};
// 游戏分享 // 游戏分享
if (this.form.shareFlag) { if (this.form.shareFlag) {
const { shareTitle, shareTextInfo, shareImg, GameShareSettingId } = this.form; const { shareTitle, shareTextInfo, shareImg, gameShareSettingId } = this.form;
shareSetting = { shareSetting = {
shareTitle, shareTitle,
shareTextInfo, shareTextInfo,
...@@ -339,7 +339,7 @@ export default { ...@@ -339,7 +339,7 @@ export default {
shareImgUrlWX: shareImg.wxImg shareImgUrlWX: shareImg.wxImg
}; };
if (this.isEdit) { if (this.isEdit) {
shareSetting.GameShareSettingId = GameShareSettingId; shareSetting.GameShareSettingId = gameShareSettingId;
} }
} }
// attendCondition 参与门槛 // attendCondition 参与门槛
......
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