Commit db856f3b by 杨明

fixed

1 parent 8de36131
......@@ -9,7 +9,9 @@
<el-radio :label="item.id" v-for="item in giftList" :key="item.id">{{ item.name }}(成本:{{ item.totalEquityPrice || 0 }})</el-radio>
</el-radio-group>
<div class="choseRow">
<div class="choseItem" :class="{ active: currentIndex == index + 1 }" v-for="(item, index) in tabList" :key="index" @click="tabClick(index + 1)">{{ item.label }}</div>
<div class="choseItem" :class="{ active: currentIndex == index + 1 }" v-for="(item, index) in tabList" :key="index" @click="tabClick(index + 1)">
{{ item.label }}
</div>
</div>
<div class="gift-table">
<div class="goods-panel">
......@@ -26,10 +28,12 @@
</div>
<div v-show="currentIndex == 2">
<div class="select-tab">
<div class="tab-item" :class="{ active: goodsIndex == item.type }" v-for="(item, index) in goodsTabList" :key="index" @click="goodsIndex = item.type">{{ item.label }}</div>
<div class="tab-item" :class="{ active: goodsIndex == item.type }" v-for="(item, index) in goodsTabList" :key="index" @click="goodsIndex = item.type">
{{ item.label }}
</div>
<div class="tab-border" :style="{ left: (goodsIndex - 1) * 61 + 2 + 'px' }"></div>
</div>
<glsx-combi-form :isEdit="false" labelWidth="70px" class="p-16" style="padding-bottom: 0px;" ref="showSearch" :formObj="searchForm[goodsIndex - 1]" :formData="searchFormData">
<glsx-combi-form :isEdit="false" labelWidth="70px" class="p-16" style="padding-bottom: 0px" ref="showSearch" :formObj="searchForm[goodsIndex - 1]" :formData="searchFormData">
<span slot="footer">
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
<el-button :size="size" @click="handleReset">重置</el-button>
......@@ -41,8 +45,15 @@
</div>
<div v-show="currentIndex == 3">
<div class="service-tab">
<div class="tab-item" :class="{ active: serviceIndex == item.type }" v-for="(item, index) in serviceTabList" :key="index" @click="serviceIndex = item.type">{{ item.label }}</div>
<div class="tab-border" :style="{ left: (serviceIndex == 7 ? 0 : serviceIndex - 1) * 88 + 2 + 'px' }"></div>
<div class="tab-item" :class="{ active: serviceIndex == item.type }" v-for="(item, index) in serviceTabList" :key="index" @click="serviceIndex = item.type">
{{ item.label }}
</div>
<div
class="tab-border"
:style="{
left: (serviceIndex == 7 ? 0 : serviceIndex - 1) * 88 + 2 + 'px'
}"
></div>
<div class="service-tip">(仅支持引用无限库存券)</div>
<div class="tab-right">
<div class="refresh-btn" @click="getList">
......@@ -319,7 +330,16 @@ export default {
for (let i = 0; i < selectedCarList.length; i++) {
this.totalPrice = this.totalPrice + parseFloat(selectedCarList[i].packageAmount || 0)
}
this.setPackage(Object.assign({}, { selectedServiceList: this.$common.utils.deepClone(this.selectedServiceList), selectedCarList: this.$common.utils.deepClone(selectedCarList), selectedGoodsList: this.$common.utils.deepClone(this.selectedGoodsList) }))
this.setPackage(
Object.assign(
{},
{
selectedServiceList: this.$common.utils.deepClone(this.selectedServiceList),
selectedCarList: this.$common.utils.deepClone(selectedCarList),
selectedGoodsList: this.$common.utils.deepClone(this.selectedGoodsList)
}
)
)
const selectedGoodsList = [...this.selectedGoodsList, ...this.selectedServiceList].map(item => {
console.log(item)
return {
......@@ -528,7 +548,10 @@ export default {
async getCarList() {
let equities = {}
if (this.isInit) {
let res = await this.$apis.giftBag.packageDefault({ merchantId: this.merchantId, activitySubscribe: this.subscribe })
let res = await this.$apis.giftBag.packageDefault({
merchantId: this.merchantId,
activitySubscribe: this.subscribe
})
equities = JSON.parse(res.equities)
}
var params = {
......
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2023-05-15 15:08:32
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-08-09 15:34:15
* @LastEditTime: 2023-08-28 14:56:02
* @FilePath: \scrm-micro-home\src\views\home\components\Marketing\MarketingRight.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -464,7 +464,7 @@ export default {
for (const style of styles) {
style.x = parseInt(style.x * RATIO)
style.y = parseInt(style.y * RATIO)
style.size = parseInt(style.size * RATIO)
style.size = +(style.size * RATIO.toFixed(2))
style.width = parseInt(style.width * RATIO)
}
Object.assign(this.draggableList[0], { content: this.detail.marketingTitle, ...style1, width: this.detail.marketingTitle.length * (style1.size + 0.5), color: style1.style.color, font: style1.font, height: 'auto' })
......
......@@ -150,7 +150,7 @@ export default {
for (const style of styles) {
style.x = parseInt(style.x * RATIO)
style.y = parseInt(style.y * RATIO)
style.size = parseInt(style.size * RATIO)
style.size = +(style.size * RATIO.toFixed(2))
style.width = parseInt(style.width * RATIO)
}
params.titleStyle = JSON.stringify(Object.assign(titleStyle, { x: style1.x, y: style1.y, size: style1.size, width: style1.width }))
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!