Commit e5ffceb5 by 前端

Merge branch 'chenwq_dev_v2.1.0' into 'v2.1.0'

Chenwq to v2.1.0

See merge request !116
2 parents 4d930cd4 072310ca
......@@ -129,6 +129,10 @@ html {
margin-top: 20px;
}
.marketing .f-right {
float: right;
}
.marketing .footer-btns {
float: right;
margin-bottom: 18px;
......@@ -164,6 +168,15 @@ html {
border: 0;
}
.marketing .table-show-img {
width: 160px;
height: 160px;
}
.marketing .img-w-100 {
width: 100%;
}
.marketing .img-60 {
width: 60px;
height: 60px;
......

53.8 KB | W: | H:

169 KB | W: | H:

src/assets/homeSet/home-set.png
src/assets/homeSet/home-set.png
src/assets/homeSet/home-set.png
src/assets/homeSet/home-set.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -99,7 +99,7 @@
</div>
</div>
</div>
<p class="edit-tips">最多支持4张banner,图片格式仅支持JPG,PNG格式</p>
<p class="edit-tips">最多支持6张banner,图片格式仅支持JPG,PNG格式</p>
<p class="edit-tips">建议尺寸660*270px,大小10M以内</p>
</div>
<!-- 金刚区管理 -->
......@@ -136,9 +136,12 @@
<marquee width="200px" height="14px" scrolldelay="160">{{ editForm.noticeContent }}</marquee>
</span>
</div>
<img class="p-absolute icon-wbyy" :src="editForm.clueList.indexOf(1) != -1 ? require('@/assets/homeSet/icon-wbyy.png') : require('@/assets/homeSet/icon-wbyy-default.png')" />
<img class="p-absolute icon-jyfw" :src="editForm.clueList.indexOf(2) != -1 ? require('@/assets/homeSet/icon-jyfw.png') : require('@/assets/homeSet/icon-jyfw-default.png')" />
<img class="p-absolute icon-fwwd" src="@/assets/homeSet/icon-fwwd.png" />
<img class="p-absolute icon-jyfw" :src="editForm.clueList.indexOf(1) != -1 ? require('@/assets/homeSet/icon-jyfw.png') : require('@/assets/homeSet/icon-jyfw-default.png')" />
<img class="p-absolute icon-wbyy" :src="editForm.clueList.indexOf(2) != -1 ? require('@/assets/homeSet/icon-wbyy.png') : require('@/assets/homeSet/icon-wbyy-default.png')" />
<img class="p-absolute icon-mdkq" src="@/assets/homeSet/icon-mdkq.png" />
<img class="p-absolute icon-xcpd" :src="editForm.clueList.indexOf(3) != -1 ? require('@/assets/homeSet/icon-xcpd.png') : require('@/assets/homeSet/icon-xcpd-default.png')" />
<img class="p-absolute icon-acbb" src="@/assets/homeSet/icon-acbb.png" />
</div>
</div>
</div>
......@@ -342,11 +345,11 @@ export default {
clueList: [
{
confId: 1,
confName: '维保预约'
confName: '救援服务'
},
{
confId: 2,
confName: '救援服务'
confName: '维保预约'
},
{
confId: 3,
......@@ -675,6 +678,10 @@ export default {
line-height: 14px;
color: #333333;
}
.home-set .wechat-container .wechat-box .icon-fwwd {
top: 262px;
left: 40px;
}
.home-set .wechat-container .wechat-box .icon-wbyy {
top: 262px;
left: 101px;
......@@ -683,10 +690,18 @@ export default {
top: 262px;
left: 162px;
}
.home-set .wechat-container .wechat-box .icon-mdkq {
top: 262px;
left: 223px;
}
.home-set .wechat-container .wechat-box .icon-xcpd {
top: 315px;
left: 40px;
}
.home-set .wechat-container .wechat-box .icon-acbb {
top: 315px;
left: 103px;
}
.home-set .wechat-container .wechat-box .el-carousel__button {
width: 5px !important;
}
......
......@@ -17,10 +17,10 @@
<!-- 表格区域 开始 -->
<GLTable ref="zoneRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div slot="logoUrl" class="table-image" slot-scope="scope">
<img class="img-60" :src="scope.scope.goodsImage" />
<img class="img-60" :src="scope.scope.logoUrl" />
</div>
<div slot="showImageUrl" class="table-image" slot-scope="scope">
<img class="img-60" :src="scope.scope.goodsImage" />
<img class="img-60" :src="scope.scope.showImageUrl" />
</div>
<!-- <div class="table-btns" slot="auth-button" slot-scope="scope">
<GLButton type="text" fn="编辑" @click="handleEdit(2, scope.scope)">编辑</GLButton>
......
......@@ -6,7 +6,7 @@
<el-form label-width="100px" :inline="true">
<el-row v-for="(item, index) in detailFormDataRow" :key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label">
<span class="detail-txt ellipsis-1" :title="detailForm[subItem.name]">{{ detailForm[subItem.name] + (subItem.suffix || '') || '-' }}</span>
<span class="detail-txt ellipsis-1" :title="detailForm[subItem.name]">{{ detailForm[subItem.name] ? detailForm[subItem.name] + (subItem.suffix || '') : '-' }}</span>
</el-form-item>
</el-row>
</el-form>
......
......@@ -289,7 +289,7 @@
<glsx-dialog title="规格" :isVisible.sync="isSpescVisible" width="70%" @confirmDialog="handleSpescConfirm" @closeDialog="handleSpescClose">
<el-form label-width="120px" :model="spescEditForm" :rules="spescRules" ref="spescRef">
<el-form-item label="规格名:" prop="specificationName">
<el-input class="w-320" :size="size" maxlength="10" v-model="spescEditForm.specificationName" placeholder="请输入规格名"></el-input>
<el-input class="w-320" :size="size" maxlength="30" v-model="spescEditForm.specificationName" placeholder="请输入规格名"></el-input>
</el-form-item>
<el-form-item label="规格值:" prop="specificationValueList">
<el-tag style="margin-right: 10px;" v-for="(tag, i) in spescEditForm.specificationValueList" :key="i" closable :type="tag.type" @close="handleSpescDelete(tag)">{{ tag.specificationValue }}</el-tag>
......@@ -333,6 +333,7 @@ export default {
couponName: '',
directionalFlag: 3,
status: 2,
unUsed: 1,
discountTypes: [2, 3, 4]
},
// 搜索
......@@ -499,7 +500,7 @@ export default {
// specificationDetailList: [],
retailPrice: '',
originalPrice: '',
takeType: '1',
takeType: '0',
takeFee: '',
supplyPrice: '',
memberPrice: '',
......@@ -672,8 +673,8 @@ export default {
editRule: {
retailPrice: [{ required: true, message: '请输入零售价', trigger: 'change' }],
originalPrice: [{ required: true, message: '请输入划线价', trigger: 'change' }],
takeFee: [{ required: false, message: '请输入分润比例', trigger: 'change' }],
supplyPrice: [{ required: true, message: '请输入供货价', trigger: 'change' }],
takeFee: [{ required: true, message: '请输入分润比例', trigger: 'change' }],
supplyPrice: [{ required: false, message: '请输入供货价', trigger: 'change' }],
goodsStock: [{ required: true, message: '请输入库存', trigger: 'change' }]
},
editFormData: [
......@@ -1382,6 +1383,7 @@ export default {
this.editForm.goodsDescList.length && this.recoveryDescribe()
this.editForm.supplyMerchantList.length && this.recoveryMerchantList()
this.handleTypeChange(this.editForm.deliveryType)
this.handleTakeTypeChange(this.editForm.takeType)
this.getWechatImgList()
// console.log(this.editForm)
this.$nextTick(() => {
......
......@@ -9,23 +9,6 @@
<p class="edit-title">{{ title }}</p>
<div class="flex" style="margin-top: 20px;">
<div class="main-img-box">
<!-- <img class="main-img" :src="mainImgUrl" />
<div>
<div class="flex">
<p class="arrow left-arrow" @click="handleMoveImg('left')"></p>
<div class="small-block">
<div class="flex small-box">
<img class="small-img" v-for="(item, index) in editForm.goodsDetailImageList" :key="index" :src="item.content" @click="handleChangeImg(index)" />
</div>
</div>
<p class="arrow right-arrow" @click="handleMoveImg('right')"></p>
</div>
</div> -->
<!-- <img
v-if="!wechatImgList.length"
class="inner-img"
src="@/assets/product-default.png"
/> -->
<el-carousel height="420px">
<el-carousel-item v-for="item in editForm.goodsDetailImageList" :key="item">
<video v-if="item.resType == 3" class="inner-img" :src="item.content"></video>
......@@ -41,9 +24,9 @@
</p>
</div>
</div>
<div v-if="specificationDetailList.length" class="flex" style="margin-top: 20px;" id="specificationDetailList">
<span class="spesc-label" :style="{ width: labelWidth }">规格明细:</span>
<div style="width: calc(100% - 100px); padding-right: 20px;">
<div v-if="specificationDetailList.length" style="margin: 20px;" id="specificationDetailList">
<div class="spesc-label" :style="{ width: labelWidth }">规格明细:</div>
<div style="width: 100%;">
<table class="table-spesc">
<tbody>
<tr style="background: #F4F6FC; box-shadow: 0px 1px 5px 0px rgba(38, 38, 38, 0.1);">
......@@ -295,23 +278,6 @@ export default {
handleChangeImg(idx) {
this.mainImgUrl = this.editForm.goodsDetailImageList[idx].content
},
// 移动图片
handleMoveImg(dirction) {
var el = document.getElementsByClassName('small-box')[0]
if (dirction == 'left') {
if (this.curMoveNum == 0) {
return true
}
this.curMoveNum = this.curMoveNum - 1
el.style.left = '-' + this.curMoveNum * 90 + 'px'
} else {
if (this.curMoveNum == this.moveNum) {
return true
}
this.curMoveNum = this.curMoveNum + 1
el.style.left = '-' + this.curMoveNum * 90 + 'px'
}
},
handleInput(e, idx) {
var newValue = e.target.value
if (!this.reg.priceReg.test(newValue)) {
......@@ -420,20 +386,11 @@ export default {
position: relative;
}
/* .control {
width: calc(100% - 480px);
} */
.edit-product-dh .view img {
width: 100%;
vertical-align: top;
}
/* .edit-product-dh .main-img {
width: 375px;
height: 375px;
} */
.edit-product-dh .inner-img {
width: 420px;
height: 420px;
......@@ -441,52 +398,10 @@ export default {
.edit-product-dh .main-img-box {
width: 440px;
/* height: 440px; */
text-align: center;
padding: 0 20px;
}
/* .edit-product-dh .flex {
display: flex;
} */
.edit-product-dh .arrow {
width: 0;
height: 0;
border-width: 20px;
border-style: solid;
margin-top: 20px;
cursor: pointer;
}
.edit-product-dh .left-arrow {
border-color: transparent #999999 transparent transparent;
}
.edit-product-dh .right-arrow {
border-color: transparent transparent transparent #999999;
}
.edit-product-dh .small-block {
position: relative;
overflow: hidden;
width: 344px;
height: 80px;
margin: 0 10px;
}
.edit-product-dh .small-box {
position: absolute;
left: 0;
}
.edit-product-dh .small-img {
width: 80px;
height: 80px;
margin-right: 8px;
cursor: pointer;
}
.edit-product-dh .pro-name {
width: 100%;
font-size: 16px;
......@@ -513,12 +428,10 @@ export default {
}
/* 规格 */
.edit-product-dh .spesc-label {
padding: 1px 10px;
box-sizing: border-box;
width: 110px;
color: #666;
text-align: right;
padding-right: 12px;
font-weight: 600;
margin-bottom: 10px;
}
.edit-product-dh .table-spesc {
width: 100%;
......
......@@ -23,9 +23,9 @@
<div class="table-btns" slot="auth-button" slot-scope="scope">
<!-- <el-button v-if="!scope.scope.goodsStatus" type="text" @click="handleEdit(2, scope.scope)">编辑</el-button> -->
<GLButton v-if="!scope.scope.goodsStatus && scope.scope.goodsSource == 1" type="text" fn="自建编辑" @click="handleEdit(2, scope.scope)">编辑</GLButton>
<GLButton v-if="!scope.scope.goodsStatus && scope.scope.goodsSource == 2" type="text" fn="带货编辑" @click="handleEditDh(2, scope.scope)">编辑</GLButton>
<GLButton v-if="!scope.scope.goodsStatus && scope.scope.goodsSource == 2 && scope.scope.takeType == '1'" type="text" fn="带货编辑" @click="handleEditDh(2, scope.scope)">编辑</GLButton>
<el-button v-if="!scope.scope.goodsStatus && (scope.scope.goodsSource == 1 || (scope.scope.goodsSource == 2 && scope.scope.originGoodsStatus))" type="text" @click="handleUpOrDown(scope.scope)">上架</el-button>
<el-button v-if="!scope.scope.goodsStatus && scope.scope.goodsSource == 2 && !scope.scope.originGoodsStatus" type="text" @click="handleDwonNotice(scope.scope)">下架通知</el-button>
<el-button v-if="!scope.scope.goodsStatus && scope.scope.goodsSource == 2 && !scope.scope.originGoodsStatus && scope.scope.offReason" type="text" @click="handleDwonNotice(scope.scope)">下架通知</el-button>
<el-button v-if="scope.scope.goodsStatus" type="text" @click="handleUpOrDown(scope.scope)">下架</el-button>
<el-button v-if="!scope.scope.goodsStatus && scope.scope.goodsSource == 2" type="text" @click="handleTakeGood(scope.scope)">取消带货</el-button>
<el-button v-if="!scope.scope.goodsStatus && scope.scope.goodsSource == 1" type="text" @click="handleTop(scope.scope)">置顶</el-button>
......
......@@ -425,7 +425,7 @@ export default {
} else {
params.eventList = []
this.editForm.eventList.forEach((item, index) => {
params.eventList.push(item)
params.eventList.push(JSON.parse(JSON.stringify(item)))
if (item.object) {
params.eventList[index].objectId = item.object.objectId
params.eventList[index].additionalType = item.object.additionalType
......
<!-- 带货管理 -->
<template>
<div class="marketing p-t-20">
<div class="m-b-20">
<el-button :size="size" type="primary" @click="handleTakeGood()">一键带货</el-button>
</div>
<div class="marketing take-good">
<div class="container">
<div>
<glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData">
<span slot="footer" class="footer-btns">
<el-button :size="size" type="default" @click="handleReset">重置</el-button>
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
<el-button :size="size" type="default" @click="handleReset">重置</el-button>
</span>
</glsx-combi-form>
</div>
<el-button :size="size" class="default-blue-btn f-right m-b-10" type="default" @click="handleTakeGood()">一键带货</el-button>
<!-- 表格区域 开始 -->
<GLTable ref="takeGoodRef" class="table-img" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div slot="goodsImage" class="table-image" slot-scope="scope">
<div slot="goodsImage" slot-scope="scope">
<!-- <el-tooltip placement="top" trigger="hover" popper-class="table-show-img" effect="light" :visible-arrow="false">
<div slot="content" class="table-show-img">
<img class="img-w-100" :src="scope.scope.goods.goodsImage" />
</div> -->
<img class="img-60" :src="scope.scope.goods.goodsImage" />
<!-- </el-tooltip> -->
</div>
<div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button v-if="!scope.scope.taked" type="text" @click="handleSingleTakeGood(scope.scope)">带货</el-button>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!