Commit 696fd7e9 by 前端

Merge branch 'v3.8.0' into 'master'

V3.8.0

See merge request !476
2 parents 3aea31f1 5dc62b35
...@@ -115,4 +115,26 @@ const updateToTop = params=>{ ...@@ -115,4 +115,26 @@ const updateToTop = params=>{
}) })
} }
export { getghSetMealListApi,getSetMealstoreListApi, deleteSetMeal, getSetmealService, getServiceInfo, createSetMeal, upDownPackage, updateSetMeal, configSetMeal ,updateToTop} // 门店会员套餐置顶推荐
const updateToTopMD = params=>{
params.method = `scrm.api.equity.package.gh.updateToTopMD`
return http({
url: '/rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 门店套餐取消置顶
const cancelTopMD = params=>{
params.method = `scrm.api.equity.package.gh.cancelTopMD`
return http({
url: '/rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
export { cancelTopMD,updateToTopMD,getghSetMealListApi,getSetMealstoreListApi, deleteSetMeal, getSetmealService, getServiceInfo, createSetMeal, upDownPackage, updateSetMeal, configSetMeal ,updateToTop}
...@@ -18,7 +18,7 @@ module.exports = { ...@@ -18,7 +18,7 @@ module.exports = {
code_message_map: {} code_message_map: {}
}, },
request: { request: {
baseURL: 'http://scrm.test.glsx.com.cn/', baseURL: 'http://scrm.dev.glsx.com.cn/',
// baseURL: 'http://192.168.2.42:8064/', // baseURL: 'http://192.168.2.42:8064/',
// baseURL: 'http://scrm.dev.glsx.com.cn/', // baseURL: 'http://scrm.dev.glsx.com.cn/',
// 设置超时时间 // 设置超时时间
......
...@@ -116,6 +116,7 @@ export default { ...@@ -116,6 +116,7 @@ export default {
merchantId: this.$globalState.session.merchantId, merchantId: this.$globalState.session.merchantId,
crowdType: 3, crowdType: 3,
filterType: 2, filterType: 2,
filterUEM:2,
pageSize: page.pageSize, pageSize: page.pageSize,
pageNum: page.pageNum pageNum: page.pageNum
} }
......
...@@ -394,12 +394,12 @@ export default { ...@@ -394,12 +394,12 @@ export default {
}, },
methods: { methods: {
judgeGh() { judgeGh() {
if (this.accountLevel == 4) {
this.baseData.openModeList.push({ this.baseData.openModeList.push({
dictValue: 13, dictValue: 13,
dictLabel: '通过门店套餐赠送' dictLabel: '通过门店套餐赠送'
}) })
}
this.tableParams.tableColumns.push({ this.tableParams.tableColumns.push({
label: '操作', label: '操作',
width: '140px', width: '140px',
......
<template>
<div class="activity-img-box">
<template v-if="imageUrlArr && imageUrlArr.length > 0">
<div v-for="(item, index) in imageUrlArr" :key="index">
<div class="pic-box" :style="{ width: picOptions.width, height: picOptions.height }">
<img class="photo-activity" :src="item" alt="" />
<div class="mask" :style="{ width: picOptions.width, height: picOptions.height }">
<div class="pic-pane-close" @click="handleEnlarge(item)">
<img src="@/assets/setmeal/view.png" alt="" />
</div>
<template v-if="picOptions.isClose">
<div class="pic-pane-close" @click="close('img', index)">
<img src="@/assets/setmeal/dele.png" alt="" />
</div>
</template>
</div>
</div>
</div>
</template>
<template v-if="(imageUrlArr && imageUrlArr.length < 9 && limit > 1) || (imageUrlArr&&imageUrlArr.length == 0 && limit == 1)">
<div class="upload-img">
<i class="el-icon-plus avatar-uploader-desc-icon"></i>
<div class="avatar-uploader-desc-word">上传照片</div>
<input type="file" ref="uploadImg" class="upload-img" style="opacity: 0" accept=".jpg, .jpeg, .png" @change="e => handleImgChange(e)" />
</div>
</template>
<el-dialog class="image-dialog" :visible.sync="dialogVisibleImg" width="50%">
<img :src="dialogSrc" width="100%" v-if="dialogType == 'img'" />
<!-- <video width="100%" autoplay controls :src="dialogSrc" v-else></video> -->
</el-dialog>
</div>
</template>
<script>
export default {
props: {
picOptions: {
type: Object,
default: () => {
return {
width: '104px',
height: '104px',
isClose: true
}
}
},
imageUrlArr: {
type: Array,
default: () => []
},
limit: {
type: String,
default: '1'
},
index: {
type: Number,
default: -1
}
},
data() {
return {
dialogVisibleImg: false
}
},
methods: {
// 上传图片
handleImgChange(e) {
this.$notify({
title: '提示',
message: '图片上传中,请稍后'
})
var file = e.srcElement.files[0]
var reader = new FileReader()
// 默认1MB
const limitSize = 5
const isLt = file.size / 1024 / 1024 < limitSize
if (!isLt) {
this.$message.error('上传图片大小不能超过' + limitSize + 'MB!')
return true
}
if (this.imageUrlArr.length > 9) {
this.$message.error('最多上传9张图片')
return
}
reader.readAsDataURL(file)
reader.onload = e => {
const imgFile = e.target.result
const arrBase64 = imgFile.split(',')
const splitStr = file.name.split('.')
const fileUrl = splitStr[splitStr.length - 1] + '@' + arrBase64[1]
this.$apis.common.pictureUpload({ file: fileUrl, compress: this.picOptions.compress || 0 }).then(res => {
if (res) {
this.$notify({
title: '提示',
message: '图片上传成功',
type: 'success'
})
this.imageUrlArr.push(res)
this.$emit('change', { arr: this.imageUrlArr, key: this.picOptions.key, index: this.index })
}
e.target.value = ''
this.$refs.uploadImg.value = ''
})
}
},
// 预览图文
handleEnlarge(src, type) {
this.dialogVisibleImg = true
this.dialogSrc = src
this.dialogType = type ? type : 'img'
},
// 删除图片/视频
close(type, index) {
switch (type) {
case 'radio':
this.videoUrl = ''
this.videoImage = ''
break
case 'img':
this.imageUrlArr.splice(index, 1)
this.$emit('change', { arr: this.imageUrlArr, key: this.picOptions.key, id: 1, index: this.index })
break
default:
this.videoUrl = ''
}
}
}
}
</script>
<style scoped lang="scss">
.activity-img-box {
display: flex;
flex-wrap: wrap;
max-width: 600px;
.pic-box {
position: relative;
width: 104px;
height: 104px;
border-radius: 4px;
margin-right: 8px;
margin-bottom: 5px;
&:hover .mask {
opacity: 1;
}
.pic {
position: absolute;
object-fit: fill;
}
.photo-activity {
position: absolute;
width: 100%;
height: 100%;
}
.mask {
display: flex;
align-items: center;
justify-content: center;
position: absolute;
background: rgba(0, 0, 0, 0.5);
color: #ffffff;
opacity: 0;
top: 0;
right: 0;
width: 104px;
height: 104px;
z-index: 999;
.pic-pane-close {
width: 14px;
height: 14px;
cursor: pointer;
margin-right: 8px;
img{
width:100%;
display: block;
}
}
}
}
.upload-img {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 104px;
height: 104px;
background: rgba(0, 0, 0, 0.04);
border: 1px dashed rgba(0, 0, 0, 0.15);
border-radius: 4px;
input {
position: absolute;
// top: 0;
// left: 0;
width: 104px;
height: 104px;
}
}
.avatar-uploader-desc-word {
font-weight: 400;
font-size: 28rpx;
color: #666666;
}
.image-dialog {
/deep/ {
.el-dialog__header {
border-bottom: 0px;
padding: 0px;
}
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
...@@ -3,11 +3,16 @@ ...@@ -3,11 +3,16 @@
<div class="btnWrap"> <div class="btnWrap">
<GLButton type="primary" @click="handleCreate" size="small" icon="el-icon-plus" fn="创建套餐" mode="el-button">创建套餐</GLButton> <GLButton type="primary" @click="handleCreate" size="small" icon="el-icon-plus" fn="创建套餐" mode="el-button">创建套餐</GLButton>
<!-- <el-button :size="size" @click="showViewer = true">查看示例效果</el-button> --> <!-- <el-button :size="size" @click="showViewer = true">查看示例效果</el-button> -->
<el-image-viewer v-if="showViewer" :on-close=" <el-image-viewer
v-if="showViewer"
:on-close="
() => { () => {
showViewer = false showViewer = false
} }
" :url-list="srcList" style="padding:4%;" /> "
:url-list="srcList"
style="padding: 4%"
/>
</div> </div>
<tip-panel class="list-panel" panelMinHeight="40px" :panelContent="panelContent" v-if="isFirstShow" @closePanel="closePanel"></tip-panel> <tip-panel class="list-panel" panelMinHeight="40px" :panelContent="panelContent" v-if="isFirstShow" @closePanel="closePanel"></tip-panel>
<template v-if="accountLevel == 4 && merchantModel == 1"> <template v-if="accountLevel == 4 && merchantModel == 1">
...@@ -27,7 +32,9 @@ ...@@ -27,7 +32,9 @@
<ticket :choseItemList="scope.scope.list"></ticket> <ticket :choseItemList="scope.scope.list"></ticket>
</div> </div>
</span> </span>
<span slot="topFlag" slot-scope="scope" v-if="accountLevel == 4 && showGh">
<el-switch v-model="scope.scope.isOpen" active-text="开" inactive-text="关" @change="updateState(scope.scope)"></el-switch>
</span>
<span class="table-btns" slot="optionsFun" slot-scope="scope" :data="scope.scope"> <span class="table-btns" slot="optionsFun" slot-scope="scope" :data="scope.scope">
<template v-if="!(accountLevel == 4 && activetab == 1)"> <template v-if="!(accountLevel == 4 && activetab == 1)">
<!-- <template v-if="scope.scope.state === 0"> <!-- <template v-if="scope.scope.state === 0">
...@@ -75,7 +82,7 @@ ...@@ -75,7 +82,7 @@
<script> <script>
import glsxDialog from '@/components/glsx-dialog' import glsxDialog from '@/components/glsx-dialog'
import url from '@/assets/empty.png' import url from '@/assets/empty.png'
import { getghSetMealListApi, getSetMealstoreListApi, deleteSetMeal, upDownPackage, updateToTop } from '@/api/modules/setmeal' import { getghSetMealListApi, getSetMealstoreListApi, deleteSetMeal, upDownPackage, updateToTop, cancelTopMD, updateToTopMD } from '@/api/modules/setmeal'
import { getLoginCount } from '@/api/modules/service' import { getLoginCount } from '@/api/modules/service'
import { stateList } from '@/common/constant' import { stateList } from '@/common/constant'
...@@ -91,6 +98,7 @@ export default { ...@@ -91,6 +98,7 @@ export default {
data() { data() {
return { return {
showViewer: false, showViewer: false,
showGh: false,
url: url, url: url,
surl: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/memberCase.png', surl: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/memberCase.png',
srcList: ['https://img01.glsx.com.cn/weapp/resource/saas/scrm/memberCase.png'], srcList: ['https://img01.glsx.com.cn/weapp/resource/saas/scrm/memberCase.png'],
...@@ -181,6 +189,32 @@ export default { ...@@ -181,6 +189,32 @@ export default {
click: this.handleUpdateToTop click: this.handleUpdateToTop
} }
}, },
// {
// type: 'el-button',
// name: '置顶推荐',
// attrs: {
// type: 'text'
// },
// condition: row => {
// return row.topFlag == 2 && this.accountLevel == 4 && this.showGh
// },
// listeners: {
// click: this.handleUpdateToTop
// }
// },
// {
// type: 'el-button',
// name: '取消置顶',
// attrs: {
// type: 'text'
// },
// condition: row => {
// return row.topFlag == 1 && this.accountLevel == 4 && this.showGh
// },
// listeners: {
// click: this.cancelTopMD
// }
// },
{ {
type: 'el-button', type: 'el-button',
name: '已置顶推荐', name: '已置顶推荐',
...@@ -234,6 +268,12 @@ export default { ...@@ -234,6 +268,12 @@ export default {
} }
}, },
{ {
label: '首页置顶展示',
prop: 'topFlag',
addHtml: 'topFlag',
width: 150,
},
{
label: '操作', label: '操作',
prop: 'optionsFun', prop: 'optionsFun',
addHtml: 'optionsFun', addHtml: 'optionsFun',
...@@ -276,10 +316,11 @@ export default { ...@@ -276,10 +316,11 @@ export default {
merchantId: this.merchantId merchantId: this.merchantId
// merchantName // merchantName
} }
this.showGh = window.location.host.indexOf('cgacar') != -1
this.dynamicFile() this.dynamicFile()
this.getLoginCountFun() this.getLoginCountFun()
}, },
mounted() { }, mounted() {},
methods: { methods: {
dynamicFile() { dynamicFile() {
let { activetab, accountLevel } = this let { activetab, accountLevel } = this
...@@ -328,6 +369,9 @@ export default { ...@@ -328,6 +369,9 @@ export default {
this.$refs.memberSetMealRef.refreshTable() this.$refs.memberSetMealRef.refreshTable()
}, },
setTableFinishFun() { setTableFinishFun() {
this.$refs.memberSetMealRef.data.forEach((item, index) => {
item.isOpen = item.topFlag == 2 ? false : true
})
//接收到的数据为空 //接收到的数据为空
if (!this.$refs.memberSetMealRef.data.length) { if (!this.$refs.memberSetMealRef.data.length) {
this.$refs.memberSetMealRef.setTableHeightFun() this.$refs.memberSetMealRef.setTableHeightFun()
...@@ -389,7 +433,8 @@ export default { ...@@ -389,7 +433,8 @@ export default {
}, },
//置顶推荐 //置顶推荐
handleUpdateToTop(row) { handleUpdateToTop(row) {
updateToTop({ id: row.id }).then(res => { let params = this.showGh && this.accountLevel == 4 ? updateToTopMD : updateToTop
params({ id: row.id }).then(res => {
console.log(res) console.log(res)
this.$message({ this.$message({
message: res.code == '0' ? '操作成功' : res.message, message: res.code == '0' ? '操作成功' : res.message,
...@@ -400,8 +445,26 @@ export default { ...@@ -400,8 +445,26 @@ export default {
} }
}) })
}, },
cancelTopMD(row) {
cancelTopMD({ id: row.id }).then(res => {
this.$message({
message: res.code == '0' ? '操作成功' : res.message,
type: res.code == '0' ? 'success' : 'error'
})
if (res.code == '0') {
this.handleSearch()
}
})
},
updateState(val) {
if (val.topFlag == 2) {
this.handleUpdateToTop(val)
} else {
this.cancelTopMD(val)
}
},
// 查看示例效果 // 查看示例效果
handleLook(row) { }, handleLook(row) {},
handleDelete(row) { handleDelete(row) {
this.$messageBox.confirm('是否删除该套餐?', '删除', { this.$messageBox.confirm('是否删除该套餐?', '删除', {
confirmButtonText: '确定', confirmButtonText: '确定',
......
...@@ -19,8 +19,7 @@ ...@@ -19,8 +19,7 @@
<div class="gift-content"> <div class="gift-content">
<div class="gift-item" v-for="(subItem, subIndex) in couponObj[item].list" :key="subIndex"> <div class="gift-item" v-for="(subItem, subIndex) in couponObj[item].list" :key="subIndex">
<span :class="['circle', subItem.status == '3' ? ' grey' : '']"></span> <span :class="['circle', subItem.status == '3' ? ' grey' : '']"></span>
<div :class="['gift-coupon-name', subItem.status == '3' ? ' txt-grey' : '']">{{ subItem.couponName }} <div :class="['gift-coupon-name', subItem.status == '3' ? ' txt-grey' : '']">{{ subItem.couponName }} × {{ subItem.couponAmount }}</div>
× {{ subItem.couponAmount }}</div>
<div v-show="subItem.status == '3'" class="gift-tips">已失效</div> <div v-show="subItem.status == '3'" class="gift-tips">已失效</div>
<i class="el-icon-delete" @click="handleGiftDelete(item, subIndex)"></i> <i class="el-icon-delete" @click="handleGiftDelete(item, subIndex)"></i>
</div> </div>
...@@ -36,10 +35,9 @@ ...@@ -36,10 +35,9 @@
<el-radio :label="1">不赠送</el-radio> <el-radio :label="1">不赠送</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<span class="give-tip" v-if="showGh && accountLevel == 4">选择赠送,客户购买该套餐后即开通一年金卡会员权益</span> <span class="give-tip" v-if="showGh && accountLevel == 4">选择赠送,客户购买该套餐后即开通一年金卡会员权益</span>
<el-form-item size="small" label="套餐售价/元:" prop="packagePrice"> <el-form-item size="small" label="套餐售价/元:" prop="packagePrice">
<el-input size="small" v-model="ruleForm.packagePrice" placeholder="请输入套餐售价" <el-input size="small" v-model="ruleForm.packagePrice" placeholder="请输入套餐售价" @keyup.native="ruleForm.packagePrice = oninput(ruleForm.packagePrice)">
@keyup.native="ruleForm.packagePrice = oninput(ruleForm.packagePrice)">
<!-- <span slot="suffix" class="suffix-label">元</span> --> <!-- <span slot="suffix" class="suffix-label">元</span> -->
</el-input> </el-input>
</el-form-item> </el-form-item>
...@@ -69,29 +67,34 @@ ...@@ -69,29 +67,34 @@
</div> </div>
</template> --> </template> -->
<el-form-item size="small" label="说明:" prop="notes"> <el-form-item size="small" label="说明:" prop="notes">
<el-input size="small" :rows="6" type="textarea" v-model="ruleForm.notes" placeholder="请输入" maxlength="200" <el-input size="small" :rows="6" type="textarea" v-model="ruleForm.notes" placeholder="请输入" maxlength="200" show-word-limit></el-input>
show-word-limit></el-input>
</el-form-item> </el-form-item>
<template v-if="showGh && accountLevel == 4">
<el-form-item size="small" label="套餐详情图片:">
<preview :picOptions="picOptions" :imageUrlArr="packageImgArr" @change="changeqrCode"></preview>
</el-form-item>
<span class="give-tip">可在套餐详情页顶部展示</span>
</template>
</el-form> </el-form>
</div> </div>
<GLFooter> <GLFooter>
<el-button @click="goBack" size="medium">取消</el-button> <el-button @click="goBack" size="medium">取消</el-button>
<el-button type="primary" @click="submitForm()" size="medium" :loading="sloading">提交</el-button> <el-button type="primary" @click="submitForm()" size="medium" :loading="sloading">提交</el-button>
</GLFooter> </GLFooter>
<GLDialog mode="small" type="warning" @onOk="handleTipConfirm" content="当前有内容信息未保存,是否继续返回?" @onCancel="handleTipClose" <GLDialog mode="small" type="warning" @onOk="handleTipConfirm" content="当前有内容信息未保存,是否继续返回?" @onCancel="handleTipClose" :visible.sync="isTipDialogVisible"></GLDialog>
:visible.sync="isTipDialogVisible"></GLDialog> <select-gift-dialog v-if="isSelectGiftVisible" :isSelectGiftVisible="isSelectGiftVisible" :selectedGiftList="selectedMealList" @handleGiftConfirm="handleGiftConfirm" @handleGiftClose="handleGiftClose"></select-gift-dialog>
<select-gift-dialog v-if="isSelectGiftVisible" :isSelectGiftVisible="isSelectGiftVisible"
:selectedGiftList="selectedMealList" @handleGiftConfirm="handleGiftConfirm"
@handleGiftClose="handleGiftClose"></select-gift-dialog>
</div> </div>
</template> </template>
<script> <script>
import { getSetmealService, createSetMeal, getServiceInfo, updateSetMeal, configSetMeal } from '@/api/modules/setmeal' import { getSetmealService, createSetMeal, getServiceInfo, updateSetMeal, configSetMeal } from '@/api/modules/setmeal'
import { getCardContent } from '@/api/modules/center' import { getCardContent } from '@/api/modules/center'
import selectGiftDialog from './selectGiftDialog.vue' import selectGiftDialog from './selectGiftDialog.vue'
import preview from './components/preview'
export default { export default {
components: { components: {
selectGiftDialog selectGiftDialog,
preview
}, },
data() { data() {
// else if (value < this.memberPrice && this.ruleForm.giveGoldFlag == 2 && this.accountLevel == 4 && this.showGh) { // else if (value < this.memberPrice && this.ruleForm.giveGoldFlag == 2 && this.accountLevel == 4 && this.showGh) {
...@@ -100,7 +103,7 @@ export default { ...@@ -100,7 +103,7 @@ export default {
var validatePrice = (rule, value, callback) => { var validatePrice = (rule, value, callback) => {
if (!value) { if (!value) {
return callback(new Error('请输入售价')) return callback(new Error('请输入售价'))
} else { } else {
callback() callback()
} }
} }
...@@ -113,7 +116,8 @@ export default { ...@@ -113,7 +116,8 @@ export default {
switchStatus: true, switchStatus: true,
// couponList:[], // couponList:[],
notes: '', notes: '',
giveGoldFlag: '' giveGoldFlag: '',
packageImg: ''
}, },
copyRuleForm: {}, //用于检查页面信息是否改动 copyRuleForm: {}, //用于检查页面信息是否改动
rules: { rules: {
...@@ -121,6 +125,13 @@ export default { ...@@ -121,6 +125,13 @@ export default {
packagePrice: [{ required: true, validator: validatePrice, trigger: 'blur' }], packagePrice: [{ required: true, validator: validatePrice, trigger: 'blur' }],
giveGoldFlag: [{ required: true, message: '请选择金卡会员', trigger: 'change' }] giveGoldFlag: [{ required: true, message: '请选择金卡会员', trigger: 'change' }]
}, },
picOptions: {
width: '104px',
height: '104px',
key: 'packageImg',
isClose: true
},
packageImgArr: [],
allItemList: [], allItemList: [],
choseItemList: [], //['一年12次洗车券×1', '车身打蜡×2', '全车镀膜×1'], choseItemList: [], //['一年12次洗车券×1', '车身打蜡×2', '全车镀膜×1'],
copyChoseItemList: [], //用于检查页面信息是否改动 copyChoseItemList: [], //用于检查页面信息是否改动
...@@ -200,7 +211,7 @@ export default { ...@@ -200,7 +211,7 @@ export default {
this.merchantName = this.$globalState.session.merchantName this.merchantName = this.$globalState.session.merchantName
this.accountLevel = this.$globalState.session.accountLevel this.accountLevel = this.$globalState.session.accountLevel
} }
this.showGh = window.location.host.indexOf('cgacar')!= -1 this.showGh = window.location.host.indexOf('cgacar') != -1
if (this.showGh) { if (this.showGh) {
this.getCardContentFun() this.getCardContentFun()
} }
...@@ -211,8 +222,11 @@ export default { ...@@ -211,8 +222,11 @@ export default {
} }
// this.getSetmealServiceFun() //获取服务套餐,执行完了之后去获取编辑详情 // this.getSetmealServiceFun() //获取服务套餐,执行完了之后去获取编辑详情
}, },
mounted() { }, mounted() {},
methods: { methods: {
changeqrCode(val) {
this.ruleForm[val.key] = val.arr[0]
},
//获取会员卡上方卡片的相关信息 //获取会员卡上方卡片的相关信息
getCardContentFun() { getCardContentFun() {
getCardContent({ merchantId: this.merchantId }).then(res => { getCardContent({ merchantId: this.merchantId }).then(res => {
...@@ -286,6 +300,7 @@ export default { ...@@ -286,6 +300,7 @@ export default {
item.couponAmount = item.serviceQuantity item.couponAmount = item.serviceQuantity
item.id = item.serviceId item.id = item.serviceId
}) })
this.packageImgArr =[res.data.packageImg]
this.recoveryCoupon() this.recoveryCoupon()
this.copyTotalPrice = this.totalPrice this.copyTotalPrice = this.totalPrice
this.copyRuleForm = JSON.parse(JSON.stringify(this.ruleForm)) //深拷贝一份数据 this.copyRuleForm = JSON.parse(JSON.stringify(this.ruleForm)) //深拷贝一份数据
...@@ -335,7 +350,10 @@ export default { ...@@ -335,7 +350,10 @@ export default {
param.packagePrice = this.ruleForm.packagePrice param.packagePrice = this.ruleForm.packagePrice
param.notes = this.ruleForm.notes param.notes = this.ruleForm.notes
param.switchStatus = this.ruleForm.switchStatus ? 1 : 0 param.switchStatus = this.ruleForm.switchStatus ? 1 : 0
if (this.showGh) param.giveGoldFlag = this.ruleForm.giveGoldFlag if (this.showGh) {
param.giveGoldFlag = this.ruleForm.giveGoldFlag
if (this.accountLevel == 4) param.packageImg = this.ruleForm.packageImg
}
let lists = this.choseItemList let lists = this.choseItemList
for (var k in lists) { for (var k in lists) {
param[`lists[${k}].serviceQuantity`] = lists[k].couponAmount param[`lists[${k}].serviceQuantity`] = lists[k].couponAmount
...@@ -371,7 +389,10 @@ export default { ...@@ -371,7 +389,10 @@ export default {
params.packagePrice = this.ruleForm.packagePrice params.packagePrice = this.ruleForm.packagePrice
params.notes = this.ruleForm.notes params.notes = this.ruleForm.notes
params.switchStatus = this.ruleForm.switchStatus ? 1 : 0 params.switchStatus = this.ruleForm.switchStatus ? 1 : 0
if (this.showGh) params.giveGoldFlag = this.ruleForm.giveGoldFlag if (this.showGh) {
params.giveGoldFlag = this.ruleForm.giveGoldFlag
if (this.accountLevel == 4) params.packageImg = this.ruleForm.packageImg
}
let list = this.choseItemList let list = this.choseItemList
for (var i in list) { for (var i in list) {
params[`list[${i}].serviceQuantity`] = list[i].couponAmount params[`list[${i}].serviceQuantity`] = list[i].couponAmount
...@@ -611,7 +632,7 @@ export default { ...@@ -611,7 +632,7 @@ export default {
font-weight: 400; font-weight: 400;
color: #666666; color: #666666;
margin-top: 10px; margin-top: 10px;
>span:first-child { > span:first-child {
display: inline-block; display: inline-block;
min-width: 165px; min-width: 165px;
text-align: right; text-align: right;
...@@ -633,7 +654,6 @@ export default { ...@@ -633,7 +654,6 @@ export default {
} }
.marketing { .marketing {
// 礼包 // 礼包
.gift-block { .gift-block {
width: 878px; width: 878px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!