Commit 6f4bf242 by 王志慧

commit

1 parent ce7297a2
......@@ -13,7 +13,7 @@
"el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5",
"glsx-common": "^1.4.6",
"glsx-components": "^1.4.2",
"glsx-components": "^1.4.4",
"lodash": "^4.17.21",
"node-sass": "^4.0.0",
"vue": "^2.6.10",
......
......@@ -578,12 +578,18 @@ html {
.marketing .line-20 {
line-height: 20px;
}
.marketing .weight-6 {
font-weight: 600;
}
.marketing .weight-5 {
font-weight: 500;
}
.marketing .weight-4 {
font-weight: 400;
}
.marketing .mt-10 {
margin-top:10px;
}
.el-tooltip__popper.is-light {
background: #ffffff;
box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.08);
......
......@@ -7,14 +7,26 @@
</div>
<div class="cardDetail" v-if="!isShowEditWrap">
<div class="flex-1">
<p>
<p class="text-16 weight-6">
{{ ruleForm.cardName }}
<el-tooltip content="会员已包含基础权益:生活权益、商城折扣" effect="light" placement="top">
<!-- <el-tooltip content="会员已包含基础权益:生活权益、商城折扣" effect="light" placement="top">
<img class="icon-circle-question" src="@/assets/icon-circle-question.png" alt="" @click="isshow = true" />
</el-tooltip>
</el-tooltip> -->
</p>
<template v-if="showGh">
<div class="member-card"><img src="@/assets/silver.png" alt="" /></div>
</template>
<GLButton @click="openEditWrap" fn="编辑" mode="div"><img src="@/assets/editBlue.png" class="editIcon" @click="openEditWrap" alt="" /></GLButton>
</div>
<template v-if="showGh">
<div class="flex-1 mt-10 line-20">
<p class="text-14 weight-5">
<!-- {{ ruleForm.cardName? ruleForm.cardName:'--'}} -->
--
</p>
<div class="member-card"><img src="@/assets/gold.png" alt="" /></div>
</div>
</template>
<div class="row">
<span>售价:</span>
......@@ -34,9 +46,20 @@
</div>
<div class="cardDetail editForm" v-else>
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="90px" class="demo-ruleForm" style="width: 500px">
<el-form-item label="会员卡名" prop="cardName" size="small">
<el-input v-model.trim="ruleForm.cardName" size="small" class="cardNameInput" show-word-limit placeholder="请输入会员卡名" maxlength="15"></el-input>
</el-form-item>
<template v-if="!showGh">
<el-form-item label="会员卡名" prop="cardName" size="small">
<el-input v-model.trim="ruleForm.cardName" size="small" class="cardNameInput" show-word-limit placeholder="请输入会员卡名" maxlength="15"></el-input>
</el-form-item>
</template>
<template v-else>
<el-form-item label="银卡" prop="cardName" size="small">
<el-input v-model.trim="ruleForm.cardName" size="small" class="cardNameInput" show-word-limit placeholder="请输入银卡名称" maxlength="15"></el-input>
</el-form-item>
<el-form-item label="金卡" prop="cardName" size="small">
<el-input v-model.trim="ruleForm.cardName" size="small" class="cardNameInput" show-word-limit placeholder="请输入金卡名称" maxlength="15"></el-input>
</el-form-item>
</template>
<div class="pricesMerge">
<el-form-item label="售价" size="small" prop="price" style="width: 300px">
<el-input v-model="ruleForm.price" size="small" placeholder="请输入售价" @keyup.native="ruleForm.price = oninput(ruleForm.price)">
......@@ -70,7 +93,6 @@
</div>
</div>
</div>
<!-- <div class="pageTitle" v-if="!(merchantModel == 2 && accountLevel == 1)">会员用户</div> -->
<div class="pageTitle">会员用户</div>
<div class="live-room container p-t-20 ">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
......@@ -89,8 +111,7 @@
</span>
</GLTable>
</div>
<glsx-dialog title="权益详情" width="712px" :noBtnOk="true" :noCancel="true" :noClose="false" typeName="primary" btnCancelLabel="关闭" btnSize="small" :isVisible="isDialogVisible" :showClose="false" @closeDialog="handleClose" @confirmDialog="handleClose">
<!-- <el-scrollbar> -->
<GLDialog :mode="mode" title="权益详情" :type="'error'" okText="关闭" @onOk="handleClose" @onCancel="handleClose" :visible.sync="isDialogVisible">
<div class="modal-body">
<div class="equity-name">汽车权益</div>
<div class="equity-panel">
......@@ -111,10 +132,12 @@
</div>
</div>
</div>
<!-- </el-scrollbar> -->
</glsx-dialog>
</GLDialog>
<!-- <glsx-dialog title="权益详情" width="712px" :noBtnOk="true" :noCancel="true" :noClose="false" typeName="primary" btnCancelLabel="关闭" btnSize="small" :isVisible="isDialogVisible" :showClose="false" @closeDialog="handleClose" @confirmDialog="handleClose">
</glsx-dialog> -->
<!-- 推广弹窗 -->
<el-dialog title="试用推广" :visible.sync="isQRVisible" :before-close="handleQRClose" :close-on-click-modal="false" width="547px" class="addCardsDialog">
<GLDialog :mode="mode" title="试用推广" :hasFooter="hasFooter" :type="'error'" @onOk="handleQRConfirm" @onCancel="handleQRClose" :visible.sync="isQRVisible">
<el-form class="proForm" :model="ruleForm" :rules="rules" ref="ruleForm" label-width="68px">
<div class="form">
<div class="main-qrcode">
......@@ -129,11 +152,7 @@
</el-form-item>
</div>
</el-form>
<div slot="footer" style="margin-left: 360px">
<el-button size="small" @click="handleQRClose">取消</el-button>
<el-button type="primary" @click="handleQRConfirm" size="small">确定</el-button>
</div>
</el-dialog>
</GLDialog>
</div>
</template>
......@@ -156,10 +175,13 @@ export default {
}
},
components: {
glsxDialog
// glsxDialog
},
data() {
return {
mode: 'mid',
hasFooter: true,
showGh: false,
promotionForm: {
QRurl: '',
QRcode: ''
......@@ -224,7 +246,7 @@ export default {
optionId: 'dictValue',
optionLabel: 'dictLabel',
optionsName: 'openModeList'
},
}
],
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
// 表格参数
......@@ -351,6 +373,7 @@ export default {
this.merchantModel = this.$globalState.session.merchantModel
this.accountLevel = this.$globalState.session.accountLevel
}
// this.showGh = window.location.host.indexOf('cgacar') != -1
this.getCardContentFun()
this.getCardtypeList()
},
......@@ -560,6 +583,9 @@ export default {
width: 53px;
margin: 0 3px;
}
/deep/ .btn-three{
display:none;
}
.lineCtn {
display: flex;
flex-direction: row;
......@@ -640,7 +666,14 @@ export default {
width: 16px;
height: 16px;
}
.member-card {
width: 30px;
height: 16px;
margin-left: 4px;
img {
width: 100%;
}
}
.seeEquity {
position: absolute;
right: 0;
......@@ -673,9 +706,7 @@ export default {
display: flex;
p {
display: inline-block;
font-weight: 600;
color: #333333;
font-size: 16px;
margin: 0;
}
}
......
......@@ -68,33 +68,33 @@
</span>
</GLTable>
</div>
<glsx-dialog class="refund-fill-boxss" :width="'576px'" title="提示" :show-close="true" :isVisible="isShow" @confirmDialog="isShow = false" @closeDialog="isShow = false" :noCancel="true">
<GLDialog class="refund-fill-boxss" mode="small" okText="确定" title="提示" :hasFooter="hasFooter" :type="'error'" @onOk="isShow = false" @onCancel="isShow = false" :visible.sync="isShow">
<div class="dialog-refund">
<img class="img" src="../../images/warn.png" />
<div>该会员在升级黑卡会员期间,已购买过生活权益</div>
<div style="color: #FF4D4F;padding: 6px 0;">(时间:{{orderDate}} 金额:{{orderPrice}}元)</div>
<div>暂不支持退款</div>
<img class="img" src="../../images/warn.png" />
<div>该会员在升级黑卡会员期间,已购买过生活权益</div>
<div style="color: #FF4D4F;padding: 6px 0;">(时间:{{ orderDate }} 金额:{{ orderPrice }}元)</div>
<div>暂不支持退款</div>
</div>
</glsx-dialog>
<glsx-dialog class="refund-fill-box" :width="'720px'" title="退款确认" :isVisible="refundVisible" @confirmDialog="refundConfirmDialog" @closeDialog="refundVisible = false" :isShowCloseBtn="true">
</GLDialog>
<GLDialog class="refund-fill-box" mode="mid" title="退款确认" :hasFooter="hasFooter" :type="'error'" @onOk="refundConfirmDialog" @onCancel="refundVisible = false" :visible.sync="refundVisible">
<div class="dialog-form">
<label>说明:</label>
<el-input v-model.trim="refund" type="textarea" :rows="3" placeholder="请输入退款说明"></el-input>
</div>
</glsx-dialog>
</GLDialog>
</div>
</template>
<script>
import { orderTypesList, orderStatusList, exportFn } from '@/common/constant'
import url from '@/assets/empty.png'
import { getOrderListApi, orderExportApi, orderRefund,ordeRefundApi } from '@/api/modules/order'
import { getOrderListApi, orderExportApi, orderRefund, ordeRefundApi } from '@/api/modules/order'
export default {
data() {
return {
isShow:false,
orderPrice:'',
orderDate:'',
isShow: false,
orderPrice: '',
orderDate: '',
orderCode: '',
refund: '',
refundVisible: false,
......@@ -180,7 +180,7 @@ export default {
fn: '退款'
},
condition: row => {
if(row.packageType == 2) {
if (row.packageType == 2) {
return row.refundFlag == 1 && row.show
} else {
return row.refundFlag == 1
......@@ -274,7 +274,7 @@ export default {
dictValue: 2,
dictLabel: '会员卡'
}
],
]
}
}
},
......@@ -366,21 +366,21 @@ export default {
})
},
ordeRefund(orderCode) {
ordeRefundApi({orderCode}).then(res => {
if(res != null) {
this.orderDate = res.orderDate
this.orderPrice = res.orderPrice
this.isShow = true
} else {
this.refundVisible = true
}
})
ordeRefundApi({ orderCode }).then(res => {
if (res != null) {
this.orderDate = res.orderDate
this.orderPrice = res.orderPrice
this.isShow = true
} else {
this.refundVisible = true
}
})
},
handleRefund(data) {
this.orderCode = data.orderCode
this.refund = ''
// this.refundVisible = !this.refundVisible
if(data.packageType == 2) {
if (data.packageType == 2) {
this.ordeRefund(data.orderCode)
} else {
this.refundVisible = true
......@@ -433,12 +433,12 @@ export default {
//接收到的数据为空
this.$refs.memberOrderRef.data.length ? (this.$refs.memberOrderRef.tableHeightValues = '') : this.$refs.memberOrderRef.setTableHeightFun()
let arr = this.$refs.memberOrderRef.data
if(arr.length > 0) {
if (arr.length > 0) {
arr.map(e => {
if(e.refundFlag == 1 && e.packageType == 2) {
if (e.refundFlag == 1 && e.packageType == 2) {
let time = new Date(`${e.createDate}`)
let timer = new Date()
if(timer.getTime() < time.getTime() + 604800000) {
if (timer.getTime() < time.getTime() + 604800000) {
e.show = true
}
}
......@@ -508,7 +508,6 @@ export default {
}
}
.refund-fill-box {
height: 320px;
.dialog-form {
padding: 26px 36px 46px 36px;
box-sizing: border-box;
......@@ -519,7 +518,9 @@ export default {
}
}
.refund-fill-boxss {
height: 320px;
/deep/ .btn-three {
display: none;
}
.dialog-refund {
box-sizing: border-box;
display: flex;
......@@ -532,7 +533,7 @@ export default {
padding-bottom: 12px;
}
}
::v-deep .el-dialog__footer {
::v-deep .el-dialog__footer {
text-align: center;
}
}
......
......@@ -48,8 +48,8 @@
<span>{{ dateFormatFun(scope.scope.verificationTime) }}</span>
</span>
</GLTable>
<glsx-dialog title="优惠券核销(请确保用户到店后核销,避免引起不必要问题)" :hasScroll="false" width="580px" btnCloseLabel="取消" :noClose="false" :noCancel="true" btnSize="small" :isVisible="isDialogVisible" :showClose="false" @closeDialog="handleClose" @confirmDialog="handleConfirm">
<div class="content-body">
<GLDialog mode="mid" title="优惠券核销(请确保用户到店后核销,避免引起不必要问题)" :hasFooter="hasFooter" :type="'error'" @onOk="handleConfirm" @onCancel="handleClose" :visible.sync="isDialogVisible">
<div class="content-body">
<el-form :rules="rules" ref="ruleForm" :model="ruleForm" label-width="80px">
<!-- style="width: 440px" -->
<el-form-item size="small" label="核销码" prop="verficationCode" style="width: 380px">
......@@ -57,22 +57,19 @@
</el-form-item>
</el-form>
</div>
</glsx-dialog>
</GLDialog>
</div>
</div>
</template>
<script>
import glsxDialog from '@/components/glsx-dialog'
// import { getRecordListApi, getVerificationCode, verificationExportApi } from '@/api/modules/record'
import url from '@/assets/empty.png'
import { dateFormat } from '@/utils/index.js'
import { exportFn } from '@/common/constant'
export default {
name: 'record',
components: {
glsxDialog
},
data() {
return {
ruleForm: {
......
<!-- 选择礼包弹窗 -->
<template>
<glsx-dialog class="muti-gift" title="选择套餐内容" :isVisible.sync="isSelectGiftVisible" width="70%" @confirmDialog="handleGiftConfirm" @closeDialog="handleGiftClose" v-loading="loading">
<!-- <div class="nogiftDiv" v-show="!giftList.length && fnCallBack">
<img src="@/assets/noPro.png" />
<p class="nogiftP">系统暂无已创建的礼包</p>
</div> -->
<GLDialog mode="big" class="muti-gift" bigTitle="选择套餐内容" :hasFooter="hasFooter" @onOk="handleGiftConfirm" @onCancel="handleGiftClose" :visible.sync="isSelectGiftVisible">
<div class="flex-default">
<div class="gift-table">
<el-tabs class="gift-tabs" v-model="activeName" @tab-click="handleTabClick">
......@@ -91,12 +87,12 @@
</div>
</div>
</div>
</glsx-dialog>
</GLDialog>
</template>
<script>
import url from '@/assets/empty.png'
import glsxDialog from '@/components/glsx-dialog'
// import glsxDialog from '@/components/glsx-dialog'
export default {
name: 'selectGiftDialog',
data() {
......@@ -223,9 +219,9 @@ export default {
}
},
components: {
glsxDialog
},
// components: {
// glsxDialog
// },
mounted() {
this.userInfo = this.$globalState.session
......
......@@ -174,23 +174,17 @@
<el-button type="primary" @click="submitForm('ruleForm')" size="medium" :loading="sloading" v-if="showSubmit">确定</el-button>
<el-button type="primary" @click="goBack" size="medium">取消</el-button>
</div>
<!-- :hasScroll="false" :noBtnOk="true" :noCancel="true" :noClose="false" -->
<glsx-dialog title="" top="30vh" :hasScroll="false" width="547px" btnCloseLabel="取消" :noClose="false" :noCancel="true" btnSize="small" :isVisible="isDialogVisible" :showClose="false" @closeDialog="handleClose" @confirmDialog="handleConfirm">
<div class="content-body">
<img src="@/assets/icon-warning.png" alt="" />
<div>当前有内容信息未保存,是否继续返回?</div>
</div>
</glsx-dialog>
<GLDialog mode="small" :hasFooter="hasFooter" type="warning" content="当前有内容信息未保存,是否继续返回?" @onOk="handleConfirm" @onCancel="handleClose" :visible.sync="isDialogVisible">
</GLDialog>
</div>
</template>
<script>
import glsxDialog from '@/components/glsx-dialog'
import { limitPrice } from '@/common/constant'
import { createService, detailService, updateService } from '@/api/modules/service'
export default {
components: {
glsxDialog
// glsxDialog
},
data() {
var checkZero = (rule, value, callback) => {
......@@ -566,6 +560,9 @@ export default {
<style lang="scss" scoped>
.live-room {
/deep/ .el-icon-warning{
color: #5850ff !important;
}
.topMsg {
margin: 20px 0px 0;
padding: 0 20px;
......@@ -700,34 +697,7 @@ export default {
z-index: 999;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
}
/deep/ .el-dialog__header {
border: 0;
}
/deep/ .el-dialog__body {
border-bottom: 1px solid #e6e6e6;
padding: 20px 25px;
.content-body {
text-align: center;
height: 98px;
line-height: 26px;
div {
font-size: 16px;
color: #333333;
font-weight: 400;
font-weight: 400;
color: #333333;
}
}
}
/deep/ .el-dialog__footer {
border: 0;
text-align: center;
padding-top: 15px;
padding-bottom: 15px;
.el-button--small {
padding: 8px 26px;
}
}
}
.right_show {
position: absolute;
......
......@@ -71,24 +71,17 @@
<el-button @click="goBack" size="medium">取消</el-button>
</div>
</div>
<glsx-dialog title="" top="30vh" :hasScroll="false" class="tipDialog" width="547px" btnCloseLabel="取消" :noClose="false" :noCancel="true" btnSize="small" :isVisible="isTipDialogVisible" :showClose="false" @closeDialog="handleTipClose" @confirmDialog="handleTipConfirm">
<div class="content-body">
<img src="@/assets/icon-warning.png" alt="" />
<div>当前有内容信息未保存,是否继续返回?</div>
</div>
</glsx-dialog>
<GLDialog mode="small" type="warning" @onOk="handleTipConfirm" content="当前有内容信息未保存,是否继续返回?" @onCancel="handleTipClose" :visible.sync="isTipDialogVisible"></GLDialog>
<select-gift-dialog v-if="isSelectGiftVisible" :isSelectGiftVisible="isSelectGiftVisible" :selectedGiftList="selectedMealList" @handleGiftConfirm="handleGiftConfirm" @handleGiftClose="handleGiftClose"></select-gift-dialog>
</div>
</template>
<script>
import glsxDialog from '@/components/glsx-dialog'
import { getSetmealService, createSetMeal, getServiceInfo, updateSetMeal, configSetMeal } from '@/api/modules/setmeal'
import { getCardContent } from '@/api/modules/center'
import selectGiftDialog from './selectGiftDialog.vue'
export default {
components: {
glsxDialog,
selectGiftDialog
},
data() {
......@@ -467,6 +460,9 @@ export default {
<style lang="scss" scoped>
.live-room {
/deep/ .el-icon-warning{
color: #5850ff !important;
}
.topMsg {
margin: 20px 0px 0;
padding: 0 20px;
......@@ -684,191 +680,5 @@ export default {
margin-left: -110px;
}
}
.setmealServiceDialog {
/deep/.el-dialog__headerbtn {
background-color: #d9e0f5;
width: 25px;
height: 25px;
border-radius: 50%;
.el-dialog__close {
color: #5850ff;
font-weight: bold;
}
}
/deep/ .el-dialog__header .el-dialog__title {
font-size: 16px;
font-weight: 700;
color: #000000;
}
/deep/ .el-dialog__body {
position: relative;
border-top: 1px solid #e6e6e6;
border-bottom: 1px solid #e6e6e6;
padding: 0px 25px;
.content-body {
height: 450px;
// max-height: 446px;
// min-height: 446px;
// padding-bottom: 28px;
.subTitle {
margin-top: 20px;
margin-bottom: 20px;
span:first-child {
font-size: 16px;
font-weight: 400;
color: #000000;
}
span:last-child {
font-size: 14px;
font-weight: 500;
color: #5850ff;
cursor: pointer;
}
}
.itemWrap {
max-height: 340px;
min-height: 340px;
display: grid;
grid-template-columns: repeat(4, 1fr);
.item {
.itemBox {
margin-bottom: 10px;
width: 240px;
height: 132px;
border-radius: 4px;
border: 2px solid #e6e6e6;
&:hover {
border: 2px solid #5850ff;
cursor: pointer;
}
div {
text-align: center;
margin-bottom: 5px;
}
.name {
margin-top: 15px;
margin-bottom: 10px;
font-size: 18px;
font-weight: 700;
color: #333333;
}
.price {
font-size: 24px;
margin-bottom: 14px;
font-weight: 700;
color: #ff5151;
> span {
font-size: 16px;
}
}
.effectiveRange {
margin-bottom: 10px;
}
.effectiveRange,
.useTime {
font-size: 12px;
font-weight: 400;
color: #666666;
}
}
.s-checkd {
border: 2px solid #5850ff;
}
.optionBtns {
text-align: center;
margin: 0 0 25px;
width: 240px;
.numWrap {
display: inline-block;
background-color: #fff;
border-radius: 3px;
border: 1px solid #e8e8ea;
min-width: 34px;
height: 22px;
text-align: center;
line-height: 22px;
margin: 0 2px;
padding: 1px 0;
}
.addsubBtn {
background-color: #fff;
color: #5850ff;
padding: 5px 9px;
}
}
}
}
.amountTo {
position: absolute;
bottom: 28px;
left: 50%;
transform: translateX(-50%);
// margin-top: 17px;
// margin-bottom: 28px;
text-align: center;
.bottomText {
font-size: 16px;
font-weight: 400;
color: #000000;
}
.smallRedText {
font-size: 16px;
color: #ff5151;
}
.redText {
font-size: 24px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #ff5151;
}
}
}
}
/deep/ .el-dialog__footer {
text-align: center;
padding-top: 15px;
padding-bottom: 15px;
.el-button + .el-button {
margin-left: 40px;
}
}
}
.tipDialog {
/deep/ .el-dialog__header {
border: 0;
}
/deep/ .el-dialog__body {
border-bottom: 1px solid #e6e6e6;
padding: 20px 25px;
.content-body {
text-align: center;
height: 98px;
line-height: 26px;
div {
font-size: 16px;
color: #333333;
font-weight: 400;
font-weight: 400;
color: #333333;
}
}
}
/deep/ .el-dialog__footer {
border: 0;
text-align: center;
padding-top: 15px;
padding-bottom: 15px;
.el-button--small {
padding: 8px 26px;
}
}
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!