Commit a67eb0de by 胡悦
2 parents f8706718 b1f63843
...@@ -269,6 +269,9 @@ export default { ...@@ -269,6 +269,9 @@ export default {
} }
this.getCardContentFun() this.getCardContentFun()
}, },
mounted () {
},
methods: { methods: {
oninput(value) { oninput(value) {
let str = value let str = value
......
...@@ -58,7 +58,9 @@ export default { ...@@ -58,7 +58,9 @@ export default {
this.$router.push('/memberCenter/center') this.$router.push('/memberCenter/center')
}, },
mounted() {}, mounted() {
},
methods: { methods: {
tabClick(index) { tabClick(index) {
......
...@@ -146,7 +146,9 @@ export default { ...@@ -146,7 +146,9 @@ export default {
} }
} }
}, },
mounted () {
},
methods: { methods: {
tabClick(index) { tabClick(index) {
this.currentIndex = index this.currentIndex = index
......
...@@ -94,7 +94,7 @@ export default { ...@@ -94,7 +94,7 @@ export default {
// this.setTableData() // this.setTableData()
}, },
mounted() { mounted() {
document.querySelector(".el-tabs").style.display="none"
this.$nextTick(() => { this.$nextTick(() => {
let clientHeight = document.documentElement.clientHeight let clientHeight = document.documentElement.clientHeight
let offsettop = document.getElementById('tableWrap').offsetTop let offsettop = document.getElementById('tableWrap').offsetTop
...@@ -125,7 +125,7 @@ export default { ...@@ -125,7 +125,7 @@ export default {
console.log(this.detail, 'gggg') console.log(this.detail, 'gggg')
// this.$router.go(-1) // this.$router.go(-1)
this.$router.push("/memberCenter/order") this.$router.push("/memberCenter/order")
document.querySelector(".el-tabs").style.display="block"
} }
} }
} }
......
...@@ -133,6 +133,9 @@ export default { ...@@ -133,6 +133,9 @@ export default {
} }
this.getLoginCountFun() this.getLoginCountFun()
}, },
mounted () {
},
methods: { methods: {
getLoginCountFun() { getLoginCountFun() {
//loginType:4是查会员服务浏览次数 //loginType:4是查会员服务浏览次数
......
...@@ -264,7 +264,7 @@ export default { ...@@ -264,7 +264,7 @@ export default {
mounted() { mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft this.footerWidth = document.documentElement.clientWidth - this.footerLeft
document.querySelector(".el-tabs").style.display="none"
}, },
methods: { methods: {
getPageDetail() { getPageDetail() {
...@@ -365,7 +365,7 @@ export default { ...@@ -365,7 +365,7 @@ export default {
// console.log(res, '提交内容') // console.log(res, '提交内容')
this.$message.success('创建服务成功') this.$message.success('创建服务成功')
this.$router.push('/memberCenter/service') this.$router.push('/memberCenter/service')
document.querySelector(".el-tabs").style.display="block"
} else { } else {
this.$message({ this.$message({
type: 'error', type: 'error',
...@@ -387,7 +387,7 @@ export default { ...@@ -387,7 +387,7 @@ export default {
if (res.code == 0) { if (res.code == 0) {
this.$message.success('编辑服务成功') this.$message.success('编辑服务成功')
this.$router.push('/memberCenter/service') this.$router.push('/memberCenter/service')
document.querySelector(".el-tabs").style.display="block"
} else { } else {
this.$message({ this.$message({
type: 'error', type: 'error',
...@@ -400,7 +400,6 @@ export default { ...@@ -400,7 +400,6 @@ export default {
goBack() { goBack() {
if(JSON.stringify(this.ruleForm)==JSON.stringify(this.copyRuleForm)){ if(JSON.stringify(this.ruleForm)==JSON.stringify(this.copyRuleForm)){
this.$router.push('/memberCenter/service') this.$router.push('/memberCenter/service')
document.querySelector(".el-tabs").style.display="block"
}else{ }else{
// this.$message.error('是否保存信息') // this.$message.error('是否保存信息')
this.isDialogVisible=true this.isDialogVisible=true
...@@ -411,7 +410,6 @@ export default { ...@@ -411,7 +410,6 @@ export default {
}, },
handleConfirm(){ handleConfirm(){
this.$router.push('/memberCenter/service') this.$router.push('/memberCenter/service')
document.querySelector(".el-tabs").style.display="block"
}, },
oninput(value) { oninput(value) {
let str = value let str = value
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<span slot="list" slot-scope="scope"> <span slot="list" slot-scope="scope">
<div v-for="(item, index) in scope.scope.list" :key="index">{{ item.couponName }}×{{ item.serviceQuantity }}</div> <div v-for="(item, index) in scope.scope.list" :key="index">{{ item.couponName }}×{{ item.serviceQuantity }}</div>
</span> </span>
<span class="table-btns" slot="auth-button" slot-scope="scope" :data="scope.scope"> <span class="table-btns" slot="optionsFun" slot-scope="scope" :data="scope.scope">
<template v-if="scope.scope.state === 0"> <template v-if="scope.scope.state === 0">
<el-button type="text" @click="handleEdit(scope.scope)">编辑</el-button> <el-button type="text" @click="handleEdit(scope.scope)">编辑</el-button>
<el-button type="text" @click="handleUpOption(scope.scope)">上架</el-button> <el-button type="text" @click="handleUpOption(scope.scope)">上架</el-button>
...@@ -28,17 +28,21 @@ ...@@ -28,17 +28,21 @@
</span> </span>
</GLTable> </GLTable>
</div> </div>
<!-- btnCancelLabel="关闭" --> <!-- btnCancelLabel="关闭" -->
<glsx-dialog title="示例效果" width="1142px" :hasScroll="false" :noBtnOk="true" :noCancel="true" :noClose="false" typeName="primary" btnSize="small" :isVisible="isDialogVisible" :showClose="false" @closeDialog="handleClose" @confirmDialog="handleClose"> <glsx-dialog title="示例效果" width="1142px" :hasScroll="false" :noBtnOk="true" :noCancel="true" :noClose="false" typeName="primary" btnSize="small" :isVisible="isDialogVisible" :showClose="false" @closeDialog="handleClose" @confirmDialog="handleClose">
<div class="content-body"> <div class="content-body">
<div class="content-item col1"> <div class="content-item col1">
<div class="subTitle">1、管理后台先创建套餐</div> <div class="subTitle">
1、管理后台先创建套餐
</div>
<div class="imageWrap"> <div class="imageWrap">
<img src="@/assets/table.png" alt="" /> <img src="@/assets/table.png" alt="" />
</div> </div>
</div> </div>
<div class="content-item col2"> <div class="content-item col2">
<div class="subTitle">2、小程序端进行展示</div> <div class="subTitle">
2、小程序端进行展示
</div>
<div class="twoImageWrap"> <div class="twoImageWrap">
<img src="@/assets/card1.png" alt="" /> <img src="@/assets/card1.png" alt="" />
<img src="@/assets/card2.png" alt="" /> <img src="@/assets/card2.png" alt="" />
...@@ -51,7 +55,7 @@ ...@@ -51,7 +55,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 { getSetMealListApi, deleteSetMeal, upDownPackage } from '@/api/modules/setmeal' import { getSetMealListApi, deleteSetMeal, upDownPackage } from '@/api/modules/setmeal'
import { getLoginCount } from '@/api/modules/service' import { getLoginCount } from '@/api/modules/service'
...@@ -111,11 +115,14 @@ export default { ...@@ -111,11 +115,14 @@ export default {
formatter: cellValue => { formatter: cellValue => {
return this.baseDataList.stateList.find(item => item.confId == cellValue.state).confName return this.baseDataList.stateList.find(item => item.confId == cellValue.state).confName
} }
},
{
label: '操作',
prop: 'optionsFun',
addHtml: 'optionsFun',
width: 160
} }
], ]
tableOption: {
width: 80
}
}, },
baseDataList: { baseDataList: {
stateList: stateList stateList: stateList
...@@ -127,6 +134,8 @@ export default { ...@@ -127,6 +134,8 @@ export default {
created() { created() {
this.getLoginCountFun() this.getLoginCountFun()
}, },
mounted () {
},
methods: { methods: {
getLoginCountFun() { getLoginCountFun() {
//loginType:5是查会员套餐浏览次数 //loginType:5是查会员套餐浏览次数
......
...@@ -309,7 +309,6 @@ export default { ...@@ -309,7 +309,6 @@ export default {
if (res.code == '0') { if (res.code == '0') {
// this.$router.go(-1) // this.$router.go(-1)
this.$router.push("/memberCenter/setmeal") this.$router.push("/memberCenter/setmeal")
document.querySelector(".el-tabs").style.display="block"
} }
}) })
} else { } else {
...@@ -333,7 +332,6 @@ export default { ...@@ -333,7 +332,6 @@ export default {
}) })
if (res.code == '0') { if (res.code == '0') {
this.$router.push("/memberCenter/setmeal") this.$router.push("/memberCenter/setmeal")
document.querySelector(".el-tabs").style.display="block"
} }
}) })
} }
...@@ -355,7 +353,6 @@ export default { ...@@ -355,7 +353,6 @@ export default {
goBack() { goBack() {
if (JSON.stringify(this.ruleForm) == JSON.stringify(this.copyRuleForm) && this.choseItemList.length == this.copyChoseItemList.length && this.totalPrice == this.copyTotalPrice) { if (JSON.stringify(this.ruleForm) == JSON.stringify(this.copyRuleForm) && this.choseItemList.length == this.copyChoseItemList.length && this.totalPrice == this.copyTotalPrice) {
this.$router.push("/memberCenter/setmeal") this.$router.push("/memberCenter/setmeal")
document.querySelector(".el-tabs").style.display="block"
} else { } else {
this.isTipDialogVisible = true this.isTipDialogVisible = true
} }
...@@ -426,7 +423,6 @@ export default { ...@@ -426,7 +423,6 @@ export default {
}, },
handleTipConfirm() { handleTipConfirm() {
this.$router.push("/memberCenter/setmeal") this.$router.push("/memberCenter/setmeal")
document.querySelector(".el-tabs").style.display="block"
} }
} }
} }
......
...@@ -19,7 +19,9 @@ ...@@ -19,7 +19,9 @@
<div v-show="commentInfo.imgUrls" class="m-t-24"> <div v-show="commentInfo.imgUrls" class="m-t-24">
<span class="comment-label">图片:</span> <span class="comment-label">图片:</span>
<div class="flex" style="flex-wrap: wrap;"> <div class="flex" style="flex-wrap: wrap;">
<img class="img-100 comment-img" v-for="(item, index) in commentInfo.imgUrls" :key="index" :src="item"/> <span v-for="(item, index) in commentInfo.imgUrls" :key="index">
<el-image class="img-60 comment-img" :src="item" :preview-src-list="[item]"></el-image>
</span>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<el-button v-if="scope.scope.commentStatus == '0'" type="text" @click="handleRevoke(scope.scope)">发布</el-button> <el-button v-if="scope.scope.commentStatus == '0'" type="text" @click="handleRevoke(scope.scope)">发布</el-button>
<el-button v-if="scope.scope.commentStatus == '1'" type="text" @click="handleRevoke(scope.scope)">撤回</el-button> <el-button v-if="scope.scope.commentStatus == '1'" type="text" @click="handleRevoke(scope.scope)">撤回</el-button>
<el-button type="text" @click="handleDetail(scope.scope)">查看</el-button> <el-button type="text" @click="handleDetail(scope.scope)">查看</el-button>
<el-button type="text" @click="handleDelete(scope.scope)">删除</el-button> <!-- <el-button type="text" @click="handleDelete(scope.scope)">删除</el-button> -->
</div> </div>
</GLTable> </GLTable>
<!-- 表格区域 end --> <!-- 表格区域 end -->
......
...@@ -67,7 +67,9 @@ ...@@ -67,7 +67,9 @@
<span>{{ orderInfo.remark || '-' }}</span> <span>{{ orderInfo.remark || '-' }}</span>
</el-form-item> </el-form-item>
<el-form-item v-if="orderInfo.imgUrls"> <el-form-item v-if="orderInfo.imgUrls">
<img class="img-60" v-for="(item, index) in orderInfo.imgUrls" :key="index" :src="item" /> <span v-for="(item, index) in orderInfo.imgUrls" :key="index">
<el-image class="img-60" :src="item" :preview-src-list="[item]"></el-image>
</span>
</el-form-item> </el-form-item>
<el-form-item label="审核是否通过"> <el-form-item label="审核是否通过">
<el-radio-group v-model="examineForm.isAllowed"> <el-radio-group v-model="examineForm.isAllowed">
...@@ -163,12 +165,12 @@ export default { ...@@ -163,12 +165,12 @@ export default {
} }
} }
} }
!targetVal && (this.searchForm.orderStatuses = isAdd ? this.searchFormData[1].optionList.map(item => item.confId) : []) !targetVal && (this.searchForm.orderStatuses = isAdd ? this.searchFormData1[1].optionList.map(item => item.confId) : [])
if (targetVal) { if (targetVal) {
var idx = value.findIndex(item => item == '') var idx = value.findIndex(item => item == '')
if (idx != -1 && this.searchForm.orderStatuses.length < this.searchFormData[1].optionList.length) { if (idx != -1 && this.searchForm.orderStatuses.length < this.searchFormData1[1].optionList.length) {
this.searchForm.orderStatuses.splice(idx, 1) this.searchForm.orderStatuses.splice(idx, 1)
} else if (idx == -1 && this.searchForm.orderStatuses.length == this.searchFormData[1].optionList.length - 1) { } else if (idx == -1 && this.searchForm.orderStatuses.length == this.searchFormData1[1].optionList.length - 1) {
this.searchForm.orderStatuses.push('') this.searchForm.orderStatuses.push('')
} }
} }
......
...@@ -44,8 +44,11 @@ ...@@ -44,8 +44,11 @@
</el-form-item> </el-form-item>
</el-row> </el-row>
</el-form> </el-form>
<div class="flex"> <div class="flex" style="padding: 0 30px;">
<img v-for="(item, index) in orderRefund.imgUrls" :key="index" class="img-60" :src="item"/> <!-- <img v-for="(item, index) in orderRefund.imgUrls" :key="index" class="img-60" :src="item"/> -->
<span v-for="(item, index) in orderRefund.imgUrls" :key="index">
<el-image class="img-60 comment-img" :src="item" :preview-src-list="[item]"></el-image>
</span>
</div> </div>
</div> </div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> <div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
...@@ -224,4 +227,8 @@ export default { ...@@ -224,4 +227,8 @@ export default {
.marketing.order-detail .show-table td { .marketing.order-detail .show-table td {
padding-right: 20px; padding-right: 20px;
} }
.order-detail .comment-img {
margin-top: 10px;
margin-right: 20px;
}
</style> </style>
...@@ -91,27 +91,29 @@ ...@@ -91,27 +91,29 @@
<el-button :disabled="isDisabled" type="default" @click="handleSpecsEdit(1)">+添加规格项目</el-button> <el-button :disabled="isDisabled" type="default" @click="handleSpecsEdit(1)">+添加规格项目</el-button>
</template> </template>
<div slot="proSpecs" :style="{ 'margin-left': labelWidth }"> <div slot="proSpecs" :style="{ 'margin-left': labelWidth }">
<div v-for="(subItem, subIndex) in specificationDetailList" :key="subIndex"> <div class="sepce-box" v-for="(subItem, subIndex) in specificationDetailList" :key="subIndex">
<div> <div>
<span>规格名:</span> <span class="specs-title">规格名:</span>
<span>{{ subItem.specificationName }}</span> <span class="specs-item">{{ subItem.specificationName }}</span>
<el-button <div style="position: absolute; right: 10px; top: 10px;">
v-show="!isDisabled" <el-button
type="text" v-show="!isDisabled"
@click="handleSpecsEdit(2, subItem, subIndex)" type="text"
>编辑</el-button> @click="handleSpecsEdit(2, subItem, subIndex)"
<el-button >编辑</el-button>
v-show="!isDisabled" <el-button
type="text" v-show="!isDisabled"
@click="handleSpecsDelete(subIndex)" type="text"
>删除</el-button> @click="handleSpecsDelete(subIndex)"
>删除</el-button>
</div>
</div> </div>
<div class="flex"> <div class="flex">
<span style="width: 56px;">规格值:</span> <span style="width: 56px;">规格值:</span>
<div style="width: calc(100% - 56px);"> <div style="width: calc(100% - 56px);">
<div> <div>
<span <span
class="specs-label" class="specs-item"
v-for="(n, idx) in subItem.specificationValueList" v-for="(n, idx) in subItem.specificationValueList"
:key="idx" :key="idx"
>{{ n.specificationValue }}</span> >{{ n.specificationValue }}</span>
...@@ -125,7 +127,7 @@ ...@@ -125,7 +127,7 @@
<div :style="{ width: `calc(100% - ${labelWidth} )` }"> <div :style="{ width: `calc(100% - ${labelWidth} )` }">
<table class="table-spesc"> <table class="table-spesc">
<tbody> <tbody>
<tr> <tr style="padding: 17px 0; background: #F4F6FC; box-shadow: 0px 1px 5px 0px rgba(38, 38, 38, 0.1);">
<td <td
:style="{ width: specsWidth }" :style="{ width: specsWidth }"
v-for="(subItem, subIndex) in specificationDetailList" v-for="(subItem, subIndex) in specificationDetailList"
...@@ -136,10 +138,10 @@ ...@@ -136,10 +138,10 @@
</tr> </tr>
</tbody> </tbody>
</table> </table>
<table class="table-spesc" style="max-height: 400px;"> <table class="table-spesc" style="max-height: 400px; overflow: scroll;">
<tbody> <tbody>
<tr <tr
style="border-bottom: 1px solid rgb(235, 235, 235);" style="border-bottom: 1px solid rgb(235, 235, 235); height: 54px; line-height: 54px;"
v-for="(subItem, subIndex) in nameToValSpecsList" v-for="(subItem, subIndex) in nameToValSpecsList"
:key="subIndex" :key="subIndex"
> >
...@@ -147,6 +149,7 @@ ...@@ -147,6 +149,7 @@
:style="{ width: specsWidth }" :style="{ width: specsWidth }"
v-for="(n, idx) in subItem.specsValueList" v-for="(n, idx) in subItem.specsValueList"
:key="idx" :key="idx"
:title="n"
>{{ n }}</td> >{{ n }}</td>
<td :style="{ width: specsWidth }"> <td :style="{ width: specsWidth }">
<div v-if="routeInfo.groupOrStore == 1"> <div v-if="routeInfo.groupOrStore == 1">
...@@ -633,7 +636,7 @@ export default { ...@@ -633,7 +636,7 @@ export default {
}, },
{ {
// label: '规格明细', // label: '规格明细',
name: '', name: 'specsDetail',
addHtml: 'specsDetail' addHtml: 'specsDetail'
}, },
{ {
...@@ -783,6 +786,7 @@ export default { ...@@ -783,6 +786,7 @@ export default {
this.getBaseDate().then(() => { this.getBaseDate().then(() => {
this.getOptionsList(0, 'editFormData', false) this.getOptionsList(0, 'editFormData', false)
}) })
this.retailStockRule()
this.isDisabled = this.routeInfo.addOrEdit == 3 this.isDisabled = this.routeInfo.addOrEdit == 3
this.routeInfo.groupOrStore == 2 && this.storeNoExitAttr() this.routeInfo.groupOrStore == 2 && this.storeNoExitAttr()
this.routeInfo.addOrEdit != 1 ? this.getInfo() : '' this.routeInfo.addOrEdit != 1 ? this.getInfo() : ''
...@@ -854,12 +858,18 @@ export default { ...@@ -854,12 +858,18 @@ export default {
}, },
retailStockRule() { retailStockRule() {
var list = ['retailPrice', 'goodsStock'] var list = ['retailPrice', 'goodsStock']
var otherList = ['specificationDetailList', 'specsDetail']
var idx = '' var idx = ''
list.forEach(item => { list.forEach(item => {
// this.externalFormList[1].editRule[item][0].required = !this.specificationDetailList.length // this.externalFormList[1].editRule[item][0].required = !this.specificationDetailList.length
idx = this.externalFormList[1].editFormData.findIndex(subItem => subItem.name == item) idx = this.externalFormList[1].editFormData.findIndex(subItem => subItem.name == item)
this.externalFormList[1].editFormData[idx].isHide = !!this.specificationDetailList.length this.externalFormList[1].editFormData[idx].isHide = !!this.specificationDetailList.length
}) })
otherList.forEach(item => {
idx = this.externalFormList[1].editFormData.findIndex(subItem => subItem.name == item)
console.log(this.externalFormList[1].editFormData[idx])
this.externalFormList[1].editFormData[idx].isHide = !this.specificationDetailList.length
})
}, },
handleRetailPriceInput(e, idx) { handleRetailPriceInput(e, idx) {
var newValue = e.target.value var newValue = e.target.value
...@@ -1330,14 +1340,14 @@ export default { ...@@ -1330,14 +1340,14 @@ export default {
} }
</script> </script>
<style> <style>
.edit-pro .specs-label { /* .edit-pro .specs-label {
padding: 1px 10px; padding: 1px 10px;
font-size: 13px; font-size: 13px;
border-radius: 2px; border-radius: 2px;
display: inline-block; display: inline-block;
border: 1px solid #cccccc; border: 1px solid #cccccc;
margin-right: 10px; margin-right: 10px;
} } */
.edit-pro .spesc-label { .edit-pro .spesc-label {
box-sizing: border-box; box-sizing: border-box;
width: 110px; width: 110px;
...@@ -1394,7 +1404,7 @@ export default { ...@@ -1394,7 +1404,7 @@ export default {
padding: 6px 11px; padding: 6px 11px;
} }
.edit-pro .wechat-container .price { .edit-pro .wechat-container .price {
font-size: 28px; font-size: 24px;
color: #fc5b32; color: #fc5b32;
margin-right: 4px; margin-right: 4px;
} }
...@@ -1406,7 +1416,7 @@ export default { ...@@ -1406,7 +1416,7 @@ export default {
} }
.edit-pro .wechat-container .good-name { .edit-pro .wechat-container .good-name {
font-size: 18px; font-size: 12px;
width: 200px; width: 200px;
font-weight: bold; font-weight: bold;
margin: 8px 0 6px; margin: 8px 0 6px;
...@@ -1458,6 +1468,25 @@ export default { ...@@ -1458,6 +1468,25 @@ export default {
.edit-pro .table-spesc .el-input--small.border-red .el-input__inner { .edit-pro .table-spesc .el-input--small.border-red .el-input__inner {
border: 1px solid #eb4e4e; border: 1px solid #eb4e4e;
} }
.edit-pro .sepce-box {
position: relative;
padding: 30px 34px;
color: #3A3A3A;
background: #F7F7F7;
border: 1px solid #DCDFE6;
margin-bottom: 10px;
}
.edit-pro .sepce-box .specs-title {
height: 60px;
line-height: 60px;
}
.edit-pro .sepce-box .specs-item {
background: #E6E9FF;
border-radius: 4px;
padding: 9px 16px;
color: #717171;
margin-right: 12px;
}
.color-red { .color-red {
color: #eb4e4e; color: #eb4e4e;
cursor: pointer; cursor: pointer;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!