Commit 9427629f by 胡悦
2 parents d40993ca 69511375
......@@ -5355,9 +5355,9 @@
}
},
"glsx-components": {
"version": "1.2.4",
"resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.2.4.tgz",
"integrity": "sha512-SYdn82Qoohe28jCYQBw+E4vYofwAzzOWheXfw5DZKQPR16KW76dbw0H2nL/OqN/sVIeQdERsTdC6iSIAjItdDw==",
"version": "1.2.5",
"resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.2.5.tgz",
"integrity": "sha512-lXobGXHn8NlO3SI/q7XpdmW5HaqIdwRuaSGkiy9Lfq5hFgi55VmSjJpEh99Srk2blCMNP4tHvVfdS/z1rucB2w==",
"requires": {
"core-js": "^3.6.5",
"element-ui": "^2.15.6",
......
......@@ -21,7 +21,7 @@ html {
}
.marketing.edit-box .container {
padding: 20px 0 20px;
padding: 0 0 20px;
}
.live-room .container {
......@@ -195,6 +195,12 @@ html {
text-align: center;
}
.marketing .edit-tips {
line-height: 20px;
font-size: 14px;
color: #999999;
}
.marketing .footer {
position: fixed;
bottom: 0;
......@@ -222,13 +228,12 @@ html {
.marketing .edit-title {
font-size: 16px;
font-weight: 500;
font-family: PingFangSC-Medium, PingFang SC;
height: 28px;
line-height: 28px;
font-weight: 600;
height: 58px;
line-height: 58px;
border-bottom: 1px solid #E7EAEC;
margin: 0 0;
padding: 0 0 11px 40px;
padding: 0 0 0 20px;
}
// .marketing .edit-sub-title::before {
......

61.3 KB | W: | H:

78.9 KB | W: | H:

src/assets/home-set.png
src/assets/home-set.png
src/assets/home-set.png
src/assets/home-set.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -33,7 +33,7 @@ function limitPrice(newValue, oldValue, intergerDigit, pointDigit, minValue, max
const orderManageStatusList = [
{ confId: '1', confName: '未支付' },
// { id: '2', confName: '已支付' },
{ confId: '2', confName: '已支付' },
{ confId: '3', confName: '已失效' },
{ confId: '4', confName: '已发货' },
{ confId: '5', confName: '已收货' },
......@@ -45,7 +45,8 @@ const orderManageStatusList = [
{ confId: '11', confName: '已退款' },
{ confId: '12', confName: '退款失败' },
{ confId: '13', confName: '待发货' },
{ confId: '14', confName: '已安装' }
{ confId: '14', confName: '待安装' },
{ confId: '15', confName: '已安装' }
]
const orderSourceList = [
......
......@@ -93,6 +93,7 @@
</span>
</div>
</template>
<slot :name="item.suffixSlot" :scope="item"></slot>
</template>
</el-form-item>
</template>
......@@ -424,4 +425,18 @@ export default {
height: 50%;
}
/* 图片上传 */
.glsx-combi-form .el-tag.el-tag--info .el-tag__close {
color: #E8E8EA;
background-color: #5850ff !important;
}
.glsx-combi-form .el-tag.el-tag--info {
border-color: #5850ff;
}
.el-tag--plain.el-tag--info .el-tag__close:hover {
background-color: #E8E8EA;
}
.el-tag.el-tag--info .el-tag__close:hover {
background-color: #E8E8EA;
}
</style>
<!-- 选择商品弹窗 -->
<template>
<glsx-dialog class="muti-pro" title="选择商品" :isVisible.sync="isMutiSelectVisible" width="70%" @confirmDialog="handleMutiSelectConfirm" @closeDialog="handleMutiSelectClose">
<GLTable ref="mutiProRef" :tableData="productList" :hasPage="false" :tableParams="tableParams" @refreshTable="getList">
<span slot="goodsImage" slot-scope="scope">
<img class="m-t-10 img-60" :src="scope.scope.goodsImage" />
</span>
</GLTable>
<GLTable v-loading="loading" ref="mutiProRef" :tableData="productList" :hasPage="false" :noDataImg="url" :tableParams="tableParams" @refreshTable="getList">
<span slot="goodsImage" slot-scope="scope">
<img class="m-t-10 img-60" :src="scope.scope.goodsImage" />
</span>
</GLTable>
</glsx-dialog>
</template>
<script>
// import { getGoodsList } from '@/api/modules/common'
import url from "@/assets/empty.png"
import glsxDialog from '@/components/glsx-dialog'
export default {
name: 'selectMutiProDialog',
......@@ -19,6 +20,8 @@ export default {
// 表格组件
// getListApi: this.$apis.common.getGoodsListApi,
productList: [],
url: url,
loading: true,
// pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
// 表格参数
tableParams: {
......@@ -65,7 +68,7 @@ export default {
glsxDialog
},
mounted() {
created() {
this.getList(true)
},
......@@ -78,9 +81,10 @@ export default {
pageSize: isMounted ? 10 : this.$refs.mutiProRef.page.pageSize
}
var that = this
this.loading = true
this.$apis.common.getGoodsListApi(params).then(res => {
// console.log(res)
this.productList = res
this.loading = false
// this.$refs.mutiProRef.tableTotal = res.total
this.productList.forEach(function(item) {
item.saleAmount = item.goodsStatistics.saleAmount
......@@ -108,10 +112,11 @@ export default {
}
})
this.recoverySelected()
this.$refs.mutiProRef.tableHeightValues = '50vh'
})
},
recoverySelected() {
if (this.selectedProList.length) {
if (this.selectedProList && this.selectedProList.length) {
this.selectedProList.forEach(row => {
this.$refs.mutiProRef.$refs[this.tableParams.mutiSelectName + 'MutiTable'].toggleRowSelection(row)
})
......@@ -119,7 +124,7 @@ export default {
},
handleMutiSelectConfirm() {
var selectedData = this.$refs.mutiProRef.mutiSelectArr[this.tableParams.mutiSelectName]
console.log(selectedData)
// console.log(selectedData)
this.$emit('handleMutiSelectConfirm', selectedData)
},
handleMutiSelectClose() {
......
......@@ -5,7 +5,7 @@
<p class="edit-title">{{ title }}</p>
<glsx-combi-form class="edit-form-container m-r-20" ref="editFormRef" :isEdit="isEdit" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<div slot="selectProBtn" slot-scope="scope" class="select-pro">
<el-button type="primary" @click="handleMutiProClose(scope)">{{ editForm.goodsRefList.length ? '更换' : '请选择' }}</el-button>
<el-button type="default" @click="handleMutiProClose(scope)">{{ editForm.goodsRefList.length ? '更换商品' : '+选择商品' }}</el-button>
</div>
<div slot="proTable" class="select-pro">
<GLTable v-show="editForm.goodsRefList.length" :hasPage="false" :tableParams="tableParams" :tableData="editForm.goodsRefList">
......@@ -142,7 +142,7 @@ export default {
this.selectedProList = this.$common.utils.deepClone(this.editForm.goodsRefList)
this.handleMutiSelectClose()
},
handleMutiSelectConfirm(selectedData) {
handleMutiSelectConfirm(selectedData = []) {
this.editForm.goodsRefList = selectedData
this.handleMutiSelectClose()
},
......
......@@ -522,7 +522,7 @@ export default {
// this.isConsultantVisible = !this.isConsultantVisible
// },
getConsultant() {
this.$apis.homeSet.getConsultantListApi({ merchantId: this.userInfo.merchantId, followType: 3 }).then(res => {
this.$apis.homeSet.getConsultantListApi({ merchantId: this.userInfo.merchantId, followTypes: [3] }).then(res => {
// console.log(res)
this.baseData.consultantList = res
this.externalFormList[4].editFormData[0].optionList = res
......
......@@ -515,7 +515,8 @@ export default {
/deep/.el-dialog__body {
border-top: 1px solid #e6e6e6;
border-bottom: 1px solid #e6e6e6;
padding: 20px 45px;
// padding: 20px 45px;
padding: 20px 20px 20px 45px;
.modal-body {
// overflow: auto;
max-height: 400px;
......
......@@ -94,6 +94,7 @@ export default {
// this.setTableData()
},
mounted() {
document.querySelector(".el-tabs").style.display="none"
this.$nextTick(() => {
let clientHeight = document.documentElement.clientHeight
let offsettop = document.getElementById('tableWrap').offsetTop
......@@ -122,7 +123,9 @@ export default {
},
goBack() {
console.log(this.detail, 'gggg')
this.$router.go(-1)
// this.$router.go(-1)
this.$router.push("/memberCenter/order")
document.querySelector(".el-tabs").style.display="block"
}
}
}
......
......@@ -264,6 +264,7 @@ export default {
mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
document.querySelector(".el-tabs").style.display="none"
},
methods: {
getPageDetail() {
......@@ -364,6 +365,7 @@ export default {
// console.log(res, '提交内容')
this.$message.success('创建服务成功')
this.$router.push('/memberCenter/service')
document.querySelector(".el-tabs").style.display="block"
} else {
this.$message({
type: 'error',
......@@ -385,6 +387,7 @@ export default {
if (res.code == 0) {
this.$message.success('编辑服务成功')
this.$router.push('/memberCenter/service')
document.querySelector(".el-tabs").style.display="block"
} else {
this.$message({
type: 'error',
......@@ -393,14 +396,11 @@ export default {
}
})
},
// resetForm(formName) {
// this.$router.push('/memberCenter/service')
// this.$refs[formName].resetFields()
// },
goBack() {
if(JSON.stringify(this.ruleForm)==JSON.stringify(this.copyRuleForm)){
this.$router.push('/memberCenter/service')
document.querySelector(".el-tabs").style.display="block"
}else{
// this.$message.error('是否保存信息')
this.isDialogVisible=true
......@@ -411,6 +411,7 @@ export default {
},
handleConfirm(){
this.$router.push('/memberCenter/service')
document.querySelector(".el-tabs").style.display="block"
},
oninput(value) {
let str = value
......@@ -613,7 +614,8 @@ export default {
}
/deep/ .el-dialog__footer {
text-align: center;
padding-top: 15px;
padding-bottom: 15px;
}
}
</style>
......@@ -51,7 +51,7 @@
<script>
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 { getLoginCount } from '@/api/modules/service'
......@@ -65,7 +65,7 @@ export default {
},
data() {
return {
url:url,
url: url,
isFirstShow: false,
panelContent: '会员套餐:将已经创建好的会员服务打包成一个套餐售卖给客户。',
size: 'small',
......@@ -78,7 +78,7 @@ export default {
// 表格参数
tableParams: {
listName: 'list',
tableOption: true,
// tableOption: true,
tableColumns: [
{
label: '套餐名称',
......@@ -112,7 +112,10 @@ export default {
return this.baseDataList.stateList.find(item => item.confId == cellValue.state).confName
}
}
]
],
tableOption: {
width: 80
}
},
baseDataList: {
stateList: stateList
......@@ -125,7 +128,7 @@ export default {
this.getLoginCountFun()
},
methods: {
getLoginCountFun() {
getLoginCountFun() {
//loginType:5是查会员套餐浏览次数
getLoginCount({ loginType: 5 }).then(res => {
//获取是否第一次点击该页面
......@@ -135,11 +138,11 @@ export default {
closePanel() {
this.isFirstShow = false
},
handleReset() {
handleReset() {
this.searchForm = {
merchantId: 44184606
}
this.handleSearch()
this.handleSearch()
},
handleSearch() {
this.$refs.memberSetMealRef.refreshTable()
......@@ -153,9 +156,12 @@ export default {
//创建套餐
handleCreate() {
this.$router.push({path:'/memberCenter/setmealAddUpdate',query:{
$title:encodeURI('创建套餐')
}})
this.$router.push({
path: '/memberCenter/setmealAddUpdate',
query: {
$title: encodeURI('创建套餐')
}
})
},
handleClose() {
this.isDialogVisible = !this.isDialogVisible
......@@ -199,7 +205,7 @@ export default {
})
},
handleEdit(row) {
this.$router.push({ path: '/memberCenter/setmealAddUpdate', query: { id: row.id,$title:encodeURI('编辑套餐') } })
this.$router.push({ path: '/memberCenter/setmealAddUpdate', query: { id: row.id, $title: encodeURI('编辑套餐') } })
},
// 查看示例效果
handleLook(row) {},
......
......@@ -16,7 +16,8 @@
<!-- choseItemList -->
<div class="choseItem" v-for="(item, index) in choseItemList" :key="index">
<span>{{ item.couponName }}</span>
<img src="@/assets/closeIcon.png" @click="closeChoseItemFun(item, index)" alt="" />
<!-- <img src="@/assets/closeIcon.png" @click="closeChoseItemFun(item, index)" alt="" /> -->
<div class="close-x" @click="closeChoseItemFun(item, index)">×</div>
</div>
</div>
<div class="el-form-item__error" v-if="setmealContentRules">请选择套餐</div>
......@@ -96,6 +97,7 @@
<span class="smallRedText">¥</span>
<span class="redText">{{ totalPrice }}</span>
</div>
<div style="height:1px"></div>
</div>
</glsx-dialog>
<glsx-dialog title="" :hasScroll="false" class="tipDialog" width="547px" btnCloseLabel="取消" :noClose="false" :noCancel="true" btnSize="small" :isVisible="isTipDialogVisible" :showClose="false" @closeDialog="handleTipClose" @confirmDialog="handleTipConfirm">
......@@ -305,7 +307,9 @@ export default {
type: res.code == '0' ? 'success' : 'error'
})
if (res.code == '0') {
this.$router.go(-1)
// this.$router.go(-1)
this.$router.push("/memberCenter/setmeal")
document.querySelector(".el-tabs").style.display="block"
}
})
} else {
......@@ -328,7 +332,8 @@ export default {
type: res.code == '0' ? 'success' : 'error'
})
if (res.code == '0') {
this.$router.go(-1)
this.$router.push("/memberCenter/setmeal")
document.querySelector(".el-tabs").style.display="block"
}
})
}
......@@ -346,14 +351,11 @@ export default {
console.log('配置接口', res.data)
})
},
// resetForm(formName) {
// this.$router.go(-1)
// },
goBack() {
// this.$router.go(-1)
if (JSON.stringify(this.ruleForm) == JSON.stringify(this.copyRuleForm) && this.choseItemList.length == this.copyChoseItemList.length && this.totalPrice == this.copyTotalPrice) {
this.$router.go(-1)
this.$router.push("/memberCenter/setmeal")
document.querySelector(".el-tabs").style.display="block"
} else {
this.isTipDialogVisible = true
}
......@@ -423,7 +425,8 @@ export default {
this.isTipDialogVisible = false
},
handleTipConfirm() {
this.$router.go(-1)
this.$router.push("/memberCenter/setmeal")
document.querySelector(".el-tabs").style.display="block"
}
}
}
......@@ -474,26 +477,44 @@ export default {
min-width: 90px;
padding: 0 22px 0 6px;
box-sizing: border-box;
height: 22px;
line-height: 18px;
background: #e6e9ff;
border-radius: 2px;
border: 1px solid #5850ff;
height: 26px;
line-height: 22px;
// background: #e6e9ff;
background: #FAFBFE;
border-radius: 4px;
// border-radius: 2px;
// border: 1px solid #5850ff;
border: 1px solid #E8E8EA;
margin-right: 10px;
margin-bottom: 10px;
span {
font-size: 12px;
font-size: 14px;
font-weight: 400;
color: #666666;
}
img {
position: absolute;
.close-x{
position: absolute;
color: #666;
top: 5px;
right: 5px;
display: inline-block;
width: 12px;
text-align: center;
height: 12px;
line-height: 12px;
cursor: pointer;
&:hover{
border-radius: 100%;
background-color: #e8e8ea;
}
}
// img {
// position: absolute;
// top: 5px;
// right: 5px;
// cursor: pointer;
// }
}
}
.totalWrap {
......@@ -546,6 +567,7 @@ export default {
padding: 0px 25px;
.content-body {
max-height: 446px;
min-height: 446px;
.subTitle {
margin-top: 20px;
margin-bottom: 20px;
......@@ -584,19 +606,22 @@ export default {
.name {
margin-top: 15px;
font-size: 18px;
margin-bottom: 10px;
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;
......@@ -656,6 +681,8 @@ export default {
}
/deep/ .el-dialog__footer {
text-align: center;
padding-top: 15px;
padding-bottom: 15px;
.el-button + .el-button {
margin-left: 40px;
}
......@@ -674,6 +701,8 @@ export default {
}
/deep/ .el-dialog__footer {
text-align: center;
padding-top: 15px;
padding-bottom: 15px;
}
}
}
......
......@@ -666,7 +666,7 @@ export default {
}
</script>
<style>
<style lang="scss">
.marketing .el-tabs__nav-wrap:after {
opacity: 0;
}
......@@ -674,4 +674,29 @@ export default {
height: 20px !important;
line-height: 10px !important;
}
.marketing .el-tabs__item {
width: 120px;
height: 40px !important;
line-height: 40px !important;
font-size: 14px;
text-align: center;
border: 0 !important;
background: #FFFFFF;
color: #999999;
border-radius: 0px 4px 0px 0px;
border: 1px solid #F4F6FC;
padding: 0;
}
.marketing .el-tabs__active-bar {
display: none;
}
.marketing .el-tabs__header {
margin: 0 !important;
}
.marketing .el-tabs__item.is-active {
color: #5850ff;
background: #F4F6FC !important;
border-radius: 4px 0px 0px 0px;
border: 1px solid #F4F6FC !important;
}
</style>
......@@ -21,7 +21,19 @@
@handleImgDelete="handleFormImgDelete"
>
<template slot="describeBtn">
<el-button :disabled="isDisabled" type="primary" @click="handleDescribeImgAdd">添加图片</el-button>
<el-button :disabled="isDisabled" type="default" @click="handleDescribeImgAdd">+添加图片</el-button>
</template>
<template slot="goodsImage">
<p class="edit-tips">作为商品列表展示</p>
<p class="edit-tips">建议图片分辨率400*400</p>
</template>
<template slot="goodsDetailImageList">
<p class="edit-tips">作为商品详情页顶部展示</p>
<p class="edit-tips">建议图片分辨率800*800</p>
</template>
<template slot="goodsVideo">
<p class="edit-tips">作为商品详情页顶部展示</p>
<p class="edit-tips">格式建议mp4,大小不超过50M</p>
</template>
<div :style="{ 'margin-left': labelWidth }" slot="descImgs" slot-scope="scope">
<div
......@@ -76,7 +88,7 @@
</div>
</div>
<template slot="proSpecsBtn">
<el-button :disabled="isDisabled" type="primary" @click="handleSpecsEdit(1)">添加规格</el-button>
<el-button :disabled="isDisabled" type="default" @click="handleSpecsEdit(1)">+添加规格项目</el-button>
</template>
<div slot="proSpecs" :style="{ 'margin-left': labelWidth }">
<div v-for="(subItem, subIndex) in specificationDetailList" :key="subIndex">
......@@ -193,20 +205,20 @@
</div>
</div>
<template slot="retailPrice">
<p>作为商品商城售卖的价格</p>
<p class="edit-tips">作为商品商城售卖的价格</p>
</template>
<template slot="originalPrice">
<p>作为商品划线展示的价格</p>
<p class="edit-tips">作为商品划线展示的价格</p>
</template>
<template slot="supplyPrice">
<p>作为货源供给门店的价格</p>
<p class="edit-tips">作为货源供给门店的价格</p>
</template>
<div slot="selectMerchant" slot-scope="scope" class="select-merchant">
<el-button
:disabled="isDisabled"
type="primary"
type="default"
@click="handleRelateStoreClose(scope)"
>{{ editForm.supplyMerchantList.length ? '更换' : '请选择' }}</el-button>
>{{ editForm.supplyMerchantList.length ? '更换门店' : '+选择门店' }}</el-button>
</div>
<div
slot="merchantTable"
......@@ -501,6 +513,7 @@ export default {
type: 'upload',
limitSize: 10,
maxPhotoNum: 1,
suffixSlot: 'goodsImage',
isDisabled: false,
handleUpload: (e, file, targetItem) => {
const imgFile = e.target.result
......@@ -518,6 +531,7 @@ export default {
width: '100%',
limitSize: 20,
maxPhotoNum: 10,
suffixSlot: 'goodsDetailImageList',
isDisabled: false,
handleUpload: (e, file, targetItem) => {
const imgFile = e.target.result
......@@ -538,6 +552,7 @@ export default {
name: 'goodsVideo',
type: 'upload',
uploadType: 'video',
suffixSlot: 'goodsVideo',
limitSize: 50,
maxPhotoNum: 1,
isDisabled: false,
......
......@@ -82,16 +82,12 @@ export default {
label: '专区图片',
name: 'zoneImg',
type: 'upload',
style: {
'margin-bottom': '10px'
},
limitSize: 10,
maxPhotoNum: 1,
handleUpload: (e, file, targetItem) => {
const imgFile = e.target.result
const base64 = file.name.split('.')[1] + '@' + imgFile.split(',')[1]
this.$apis.common.uploadImgApi({ file: base64, fileType: 'image' }).then(res => {
console.log(res)
this.editForm[targetItem.name] = res
this.$refs.editFormRef.$refs[this.editChildRef].validateField(targetItem.name)
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!