Commit 24c9c0d7 by 前端

Merge branch 'v3.13.1' into 'master'

V3.13.1

See merge request !8
2 parents 0993e6bf 0117a31d
...@@ -12589,6 +12589,11 @@ ...@@ -12589,6 +12589,11 @@
"integrity": "sha512-OJSOnJtn7f1v/8xX+MJae+RrE8WguhiiG9QTBx/MNOPXYsxqut6Ommo+ZD3raNc7eryhqdM2T/DlMfdvIKpCtw==", "integrity": "sha512-OJSOnJtn7f1v/8xX+MJae+RrE8WguhiiG9QTBx/MNOPXYsxqut6Ommo+ZD3raNc7eryhqdM2T/DlMfdvIKpCtw==",
"dev": true "dev": true
}, },
"vue-draggable-resizable": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/vue-draggable-resizable/-/vue-draggable-resizable-2.3.0.tgz",
"integrity": "sha512-77CLRj1TPwB30pwsjOf3pkd1UzYanCdKXbqhILJ0Oo5QQl50lvBfyQCXxMFzwWwTc3sbBbQH3FfWSV+BkoSElA=="
},
"vue-eslint-parser": { "vue-eslint-parser": {
"version": "5.0.0", "version": "5.0.0",
"resolved": "https://registry.npmjs.org/vue-eslint-parser/-/vue-eslint-parser-5.0.0.tgz", "resolved": "https://registry.npmjs.org/vue-eslint-parser/-/vue-eslint-parser-5.0.0.tgz",
......
...@@ -16,7 +16,9 @@ ...@@ -16,7 +16,9 @@
"glsx-common": "^1.4.6", "glsx-common": "^1.4.6",
"glsx-components": "^1.5.7", "glsx-components": "^1.5.7",
"vue": "^2.6.10", "vue": "^2.6.10",
"vue-draggable-resizable": "^2.3.0",
"vue-router": "^3.1.3", "vue-router": "^3.1.3",
"vuedraggable": "^2.24.3",
"vuex": "^3.1.2", "vuex": "^3.1.2",
"xlsx": "^0.18.5" "xlsx": "^0.18.5"
}, },
......
.vdr {
touch-action: none;
position: absolute;
box-sizing: border-box;
border: 1px dashed black;
}
.handle {
box-sizing: border-box;
position: absolute;
width: 10px;
height: 10px;
background: #EEE;
border: 1px solid #333;
}
.handle-tl {
top: -10px;
left: -10px;
cursor: nw-resize;
}
.handle-tm {
top: -10px;
left: 50%;
margin-left: -5px;
cursor: n-resize;
}
.handle-tr {
top: -10px;
right: -10px;
cursor: ne-resize;
}
.handle-ml {
top: 50%;
margin-top: -5px;
left: -10px;
cursor: w-resize;
}
.handle-mr {
top: 50%;
margin-top: -5px;
right: -10px;
cursor: e-resize;
}
.handle-bl {
bottom: -10px;
left: -10px;
cursor: sw-resize;
}
.handle-bm {
bottom: -10px;
left: 50%;
margin-left: -5px;
cursor: s-resize;
}
.handle-br {
bottom: -10px;
right: -10px;
cursor: se-resize;
}
@media only screen and (max-width: 768px) {
[class*="handle-"]:before {
content: '';
left: -10px;
right: -10px;
bottom: -10px;
top: -10px;
position: absolute;
}
}
...@@ -4,12 +4,13 @@ ...@@ -4,12 +4,13 @@
* @Author: limin * @Author: limin
* @Date: 2021-06-07 14:12:32 * @Date: 2021-06-07 14:12:32
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-05-31 16:27:05 * @LastEditTime: 2023-07-03 11:27:37
*/ */
// 根据环境引入不同配置 process.env.VUE_APP_ENV // 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js') // let request = require('@/http/request.js')
let cfg = require('./conf.js') let cfg = require('./conf.js')
import { Http } from 'glsx-common' import { Http } from 'glsx-common'
let timeout = 30000 //超时时间 let timeout = 30000 //超时时间
export const fetchConfig = function(common) { export const fetchConfig = function(common) {
// if (isEnv) { // if (isEnv) {
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* @version: 1.0.0 * @version: 1.0.0
* @Author: limin * @Author: limin
* @Date: 2021-08-13 14:12:11 * @Date: 2021-08-13 14:12:11
* @LastEditors: limin * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2021-09-24 10:41:31 * @LastEditTime: 2023-07-13 17:52:36
* @FilePath: \scrm\scrm-sub-blog\src\main.js * @FilePath: \scrm\scrm-sub-blog\src\main.js
*/ */
import Vue from 'vue' import Vue from 'vue'
...@@ -17,6 +17,7 @@ import { start } from '@/setup' ...@@ -17,6 +17,7 @@ import { start } from '@/setup'
Vue.config.productionTip = false Vue.config.productionTip = false
Vue.prototype.$apis = apis Vue.prototype.$apis = apis
Vue.prototype.size = 'small' Vue.prototype.size = 'small'
Vue.prototype.$vip = 'https://img01.glsx.com.cn/weapp/resource/miniprogram/expandedGold/vip.png'
start() start()
export { bootstrap, mount, unmount } from '@/setup' export { bootstrap, mount, unmount } from '@/setup'
export const http = params => Vue.prototype.$http(params) export const http = params => Vue.prototype.$http(params)
......
/*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-05-22 20:12:55
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-06 13:41:22
* @FilePath: \scrm-micro-home\src\utils\color.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
var img_width = 0,
img_height = 0
var canvas = document.createElement('canvas')
var context = canvas.getContext('2d')
var myColor = []
function getColor() {
var imageData = context.getImageData(img_width - 10, img_height - 10, img_width, img_height)
myColor = [imageData.data[0], imageData.data[1], imageData.data[2]]
var hexColor = gethex(...myColor)
return `#${hexColor}`
}
// 获取16进制颜色
function gethex(r, g, b) {
console.log(r, g, b)
r = r.toString(16)
g = g.toString(16)
b = b.toString(16)
// 补0
r.length == 1 ? (r = '0' + r) : ''
g.length == 1 ? (g = '0' + g) : ''
b.length == 1 ? (b = '0' + b) : ''
var hex = r + g + b
// 简化处理,如 FFEEDD 可以写为 FED
if (r.slice(0, 1) == r.slice(1, 1) && g.slice(0, 1) == g.slice(1, 1) && b.slice(0, 1) == b.slice(1, 1)) {
hex = r.slice(0, 1) + g.slice(0, 1) + b.slice(0, 1)
}
return hex
}
async function uploadImg(url, callbackFn) {
var image = new Image()
image.src = url
image.setAttribute('crossOrigin', 'Anonymous')
image.onload = function() {
img_width = this.width
img_height = this.height
// 设置画布尺寸
canvas.width = img_width
canvas.height = img_height
// 将图片按像素写入画布
context.drawImage(this, 0, 0, img_width, img_height)
callbackFn(getColor())
}
}
export default uploadImg
import { isFunction } from './fns'
export function matchesSelectorToParentElements(el, selector, baseNode) {
let node = el
const matchesSelectorFunc = ['matches', 'webkitMatchesSelector', 'mozMatchesSelector', 'msMatchesSelector', 'oMatchesSelector'].find(func => isFunction(node[func]))
if (!isFunction(node[matchesSelectorFunc])) return false
do {
if (node[matchesSelectorFunc](selector)) return true
if (node === baseNode) return false
node = node.parentNode
} while (node)
return false
}
export function getComputedSize($el) {
const style = window.getComputedStyle($el)
return [parseFloat(style.getPropertyValue('width'), 10), parseFloat(style.getPropertyValue('height'), 10)]
}
export function addEvent(el, event, handler) {
if (!el) {
return
}
if (el.attachEvent) {
el.attachEvent('on' + event, handler)
} else if (el.addEventListener) {
el.addEventListener(event, handler, true)
} else {
el['on' + event] = handler
}
}
export function removeEvent(el, event, handler) {
if (!el) {
return
}
if (el.detachEvent) {
el.detachEvent('on' + event, handler)
} else if (el.removeEventListener) {
el.removeEventListener(event, handler, true)
} else {
el['on' + event] = null
}
}
export function isFunction(func) {
return typeof func === 'function' || Object.prototype.toString.call(func) === '[object Function]'
}
export function snapToGrid(grid, pendingX, pendingY, scale = 1) {
const [scaleX, scaleY] = typeof scale === 'number' ? [scale, scale] : scale
const x = Math.round(pendingX / scaleX / grid[0]) * grid[0]
const y = Math.round(pendingY / scaleY / grid[1]) * grid[1]
return [x, y]
}
export function getSize(el) {
const rect = el.getBoundingClientRect()
return [parseInt(rect.width), parseInt(rect.height)]
}
export function computeWidth(parentWidth, left, right) {
return parentWidth - left - right
}
export function computeHeight(parentHeight, top, bottom) {
return parentHeight - top - bottom
}
export function restrictToBounds(value, min, max) {
if (min !== null && value < min) {
return min
}
if (max !== null && max < value) {
return max
}
return value
}
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn * @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2023-05-10 17:17:31 * @Date: 2023-05-10 17:17:31
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-05-25 15:55:08 * @LastEditTime: 2023-07-14 20:40:56
* @FilePath: \outbound\src\views\calendar\add.vue * @FilePath: \outbound\src\views\calendar\add.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
</div> </div>
</glsx-combi-form> </glsx-combi-form>
<div class="preview-panel"> <div class="preview-panel">
<PhoneView :editForm="editForm" :selectedGoodsList="selectedGoodsList"></PhoneView> <PhoneView :editForm="editForm" ref="preview" :selectedGoodsList="selectedGoodsList"></PhoneView>
</div> </div>
</div> </div>
<GLFooter> <GLFooter>
...@@ -66,6 +66,10 @@ ...@@ -66,6 +66,10 @@
<script> <script>
import selectGoodsDialog from './components/SelectGoodsDialog' import selectGoodsDialog from './components/SelectGoodsDialog'
import PhoneView from './components/PhoneView' import PhoneView from './components/PhoneView'
import getUploadImgColor from '@/utils/color'
const RENEWAL = [1, 2, 3, 4, 5, 6, 7, 8]
const WIDTH = 285
const RATIO = 375 / WIDTH
export default { export default {
name: 'addCalendar', name: 'addCalendar',
data() { data() {
...@@ -176,6 +180,9 @@ export default { ...@@ -176,6 +180,9 @@ export default {
if (res.startTime) { if (res.startTime) {
this.$set(this.editForm, 'activityTime', [res.startTime, res.endTime]) this.$set(this.editForm, 'activityTime', [res.startTime, res.endTime])
} }
getUploadImgColor(res.backgroundImg, color => {
this.editForm.mainColor = color
})
this.selectedGoodsList = this.editForm.couponItemList || [] this.selectedGoodsList = this.editForm.couponItemList || []
this.selectedGoodsList.forEach(item => { this.selectedGoodsList.forEach(item => {
item.id = item.couponId item.id = item.couponId
...@@ -206,6 +213,22 @@ export default { ...@@ -206,6 +213,22 @@ export default {
couponAmount: item.couponAmount couponAmount: item.couponAmount
} }
}) })
if (param.titleStyle && RENEWAL.includes(param.codeId)) {
const style1 = this.$refs.preview.draggableList[0]
const style2 = this.$refs.preview.draggableList[1]
const titleStyle = JSON.parse(param.titleStyle)
const subTitleStyle = JSON.parse(param.subTitleStyle)
const styles = [style1, style2]
for (const style of styles) {
style.x = parseInt(style.x * RATIO)
style.y = parseInt(style.y * RATIO)
style.size = parseInt(style.size * RATIO)
style.width = parseInt(style.width * RATIO)
}
param.titleStyle = JSON.stringify(Object.assign(titleStyle, { x: style1.x, y: style1.y, size: style1.size, width: style1.width }))
param.subTitleStyle = JSON.stringify(Object.assign(subTitleStyle, { x: style2.x, y: style2.y, size: style2.size, width: style2.width }))
}
console.log(param.titleStyle)
delete param.goodsList delete param.goodsList
delete param.couponTemplateName delete param.couponTemplateName
delete param.couponTemplateId delete param.couponTemplateId
...@@ -286,7 +309,7 @@ export default { ...@@ -286,7 +309,7 @@ export default {
width: 400px; width: 400px;
margin-left: auto; margin-left: auto;
.preview-bg { .preview-bg {
width: 280px; width: 285px;
height: 556px; height: 556px;
} }
} }
......
...@@ -437,7 +437,7 @@ export default { ...@@ -437,7 +437,7 @@ export default {
margin-top: 10px; margin-top: 10px;
} }
.muti-gift .gift-table { .muti-gift .gift-table {
width: calc(100% - 280px); width: calc(100% - 285px);
border: 1px solid #eeeeee; border: 1px solid #eeeeee;
margin-right: 10px; margin-right: 10px;
} }
...@@ -445,7 +445,7 @@ export default { ...@@ -445,7 +445,7 @@ export default {
padding: 10px; padding: 10px;
} }
.muti-gift .selected-list { .muti-gift .selected-list {
width: 280px; width: 285px;
border-radius: 2px; border-radius: 2px;
border: 1px solid #eeeeee; border: 1px solid #eeeeee;
.list-title { .list-title {
......
<template>
<div class="wrap">
<div class="container-panel">
<img class="angle" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/get.png?v=1.0.2" />
<div class="title">
<span>门店专享服务</span>
<img class="xing " src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/xing_1.png?v=1.0.2" />
</div>
<div class="service-panel">
<div class="service-panel-bg"></div>
<div class="service-panel-box">
<div class="service-item" v-for="(item, index) in serviceList" :key="index">
<div class="service-time">{{ discount[item.discountType] }}</div>
<div class="service-title">
<span>{{ item.couponName }}</span>
<span>x{{ item.couponAmount }}</span>
</div>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
discount: {
2: '折扣券',
3: '代金券',
4: '兑换券',
7: '服务券'
},
serviceList: [
{
couponId: 1312,
discountType: 7,
couponName: '特殊服务230104160557',
couponAnticipatedCost: 0,
status: 2,
limitStockFlag: 1,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 3,
effectiveDays: null,
brandId: null,
brandName: null,
goodId: null,
goodsName: null,
appearance: null,
rechargeDenomination: null,
provideWay: null
},
{
couponId: 1308,
discountType: 7,
couponName: '特殊服务230104160455',
couponAnticipatedCost: 0,
status: 2,
limitStockFlag: 1,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 3,
effectiveDays: null,
brandId: null,
brandName: null,
goodId: null,
goodsName: null,
appearance: null,
rechargeDenomination: null,
provideWay: null
},
{
couponId: 1304,
discountType: 7,
couponName: '特殊服务230104154920',
couponAnticipatedCost: 0,
status: 2,
limitStockFlag: 1,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 3,
effectiveDays: null,
brandId: null,
brandName: null,
goodId: null,
goodsName: null,
appearance: null,
rechargeDenomination: null,
provideWay: null
},
{
couponId: 1296,
discountType: 7,
couponName: '特殊服务20230103161654',
couponAnticipatedCost: 0,
status: 2,
limitStockFlag: 1,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 3,
effectiveDays: null,
brandId: null,
brandName: null,
goodId: null,
goodsName: null,
appearance: null,
rechargeDenomination: null,
provideWay: null
},
{
couponId: 1295,
discountType: 7,
couponName: '特殊服务',
couponAnticipatedCost: 0,
status: 2,
limitStockFlag: 1,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 3,
effectiveDays: null,
brandId: null,
brandName: null,
goodId: null,
goodsName: null,
appearance: null,
rechargeDenomination: null,
provideWay: null
},
{
couponId: 1404,
discountType: 8,
couponName: '爱奇艺2元券',
couponAnticipatedCost: 100,
status: 2,
limitStockFlag: 2,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 1,
effectiveDays: 25,
brandId: null,
brandName: '爱奇艺',
goodId: 353,
goodsName: '爱奇艺2元券',
appearance: 2,
rechargeDenomination: '1',
provideWay: null
},
{
couponId: 1399,
discountType: 8,
couponName: '中杯全国通兑券-新品',
couponAnticipatedCost: 1000,
status: 2,
limitStockFlag: 2,
residueCouponAmount: null,
couponAmount: 4,
effectiveType: 1,
effectiveDays: 30,
brandId: null,
brandName: '星巴克',
goodId: 578,
goodsName: '中杯全国通兑券-新品',
appearance: 1,
rechargeDenomination: '',
provideWay: null
}
]
}
}
}
</script>
<style scoped lang="scss">
.wrap {
margin-top: 20px;
.container-panel {
background-image: linear-gradient(180deg, #ff626f 0%, #ff626f00 100%);
box-shadow: inset 0 3px 15px 0 #ffffffbf;
border-radius: 20px;
padding: 8px;
position: relative;
.angle {
position: absolute;
top: -8px;
left: -8px;
width: 93.87px;
height: 89.24px;
}
.title {
font-weight: 700;
font-size: 20px;
color: #ffffff;
padding-left: 51px;
padding-top: 4px;
position: relative;
display: inline-block;
text-shadow: 0 2px 3px #d81033;
font-weight: 700;
font-size: 20px;
color: #ffffff;
.xing {
position: absolute;
top: -5px;
width: 39.99px;
height: 42.89px;
}
}
.service-panel {
position: relative;
z-index: 2;
margin-top: 15px;
&-bg {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
background: rgba($color: #ffffff, $alpha: 0.3);
box-shadow: inset 0 0 18px 0 #ffffff;
border-radius: 20px;
z-index: -1;
}
&-box {
padding: 12px 13px;
}
}
.service-item {
margin-top: 10px;
display: flex;
&:first-child {
margin-top: 0px;
display: flex;
}
.service-title {
flex: 1;
height: 55px;
background: #fcf9ef;
background-image: linear-gradient(-84deg, #fe6a7545 0%, #fcf0ee00 96%);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0px 27px 0px 14px;
border-radius: 0px 8px 8px 0px;
font-size: 14px;
color: #5a3c36;
text {
font-size: 14px;
color: #5a3c36;
}
}
.service-time {
width: 50px;
height: 55px;
padding: 6px 20px;
box-sizing: border-box;
background-image: linear-gradient(180deg, #ede7fa 0%, #b498ff 100%);
font-size: 12px;
line-height: 14px;
color: #04005d;
position: relative;
border-radius: 8px 0px 0px 8px;
}
}
}
}
</style>
<template>
<div class="wrap">
<div class="container-panel">
<img class="angle" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/rob.png?v=1.0.2" />
<div class="title">用车权益</div>
<div class="service-item" v-for="(item, index) in serviceList" :key="index">
<div class="service-title">{{ item.packageName }}</div>
<div class="service-time">
1
<span>元</span>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
serviceList: [
{
cardName: 'card',
createdBy: null,
createdDate: null,
deletedFlag: null,
id: null,
isChecked: 1,
merchantId: 44210895,
packageCode: 'PC0005',
packageName: '盗抢全损无忧(嘀加)',
packageServicePeriod: null,
planId: null,
servicePeriod: '1,2,3',
templateFlag: null,
updatedBy: null,
updatedDate: null
},
{
cardName: null,
createdBy: null,
createdDate: null,
deletedFlag: null,
id: null,
isChecked: 1,
merchantId: 44210895,
packageCode: 'PC0006',
packageName: '轮胎无忧(嘀加)',
packageServicePeriod: null,
planId: null,
servicePeriod: '1',
templateFlag: null,
updatedBy: null,
updatedDate: null
}
]
}
}
}
</script>
<style scoped lang="scss">
.wrap {
margin-bottom: 20px;
.container-panel {
background: #ffffff;
background-image: linear-gradient(90deg, #ffa4a4 0%, #f5dea2c7 27%, #ffc8d9 75%, #fe9ca400 100%);
box-shadow: inset 0 4px 54px 0 #ffffff;
border-radius: 16px;
padding: 16px 27px;
position: relative;
.angle {
position: absolute;
top: -8px;
left: -8px;
width: 93.87px;
height: 89.24px;
}
.title {
font-weight: 700;
font-size: 20px;
color: #ffffff;
text-shadow: 0 2px 3px #f37b87;
padding-left: 33px;
}
.service-item {
height: 50px;
background: #fefdf8;
background-image: linear-gradient(-84deg, #fdeef7 0%, #f6ffee 53%, #ffffff 96%);
border-radius: 8px;
margin-top: 10px;
padding: 0px 12px;
display: flex;
align-items: center;
&:first-child {
margin-top: 0px;
}
.service-title {
flex: 1;
font-size: 14px;
color: #5a3c36;
line-height: 40px;
}
.service-time {
color: #8e5310;
text-align: center;
font-size: 31px;
color: #ff5c67;
span {
font-size: 12px;
}
}
}
}
}
</style>
<template>
<div class="wrap">
<div class="container-panel">
<img class="angle" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/deliver.png?v=1.0.2" />
<div class="title">
<span>超爽生活权益</span>
<img class="xing " src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/xing_2.png?v=1.0.2" />
</div>
<div class="service-item" v-for="(item, index) in selectedGoodsList" :key="index">
<div class="service-logo">
<img :src="item.goodsImage || $vip" />
</div>
<div class="service-desc">
<div class="service-title">{{ item.brandName }}{{ item.goodsName }}</div>
<div class="service-content">x{{ item.couponAmount }} 抵扣券</div>
</div>
<div class="service-price">
{{ formatPrice(item.couponAnticipatedCost || item.denomination) }}
<span>元</span>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
discount: {
2: '折扣券',
3: '代金券',
4: '兑换券',
7: '服务券'
}
}
},
props: {
selectedGoodsList: {
type: Array,
default: () => []
}
},
watch: {
selectedGoodsList: {
handler(val) {
console.log(val)
},
deep: true
}
},
methods: {
formatPrice(val) {
return (val / 100).toFixed(2).replace(/\.[0]+$/, '')
}
}
}
</script>
<style scoped lang="scss">
.wrap {
margin-top: -8px;
.container-panel {
background-image: linear-gradient(180deg, #efb94f 0%, #f8d87d00 100%);
box-shadow: inset 0 3px 15px 0 #ffffffbf;
border-radius: 20px;
padding: 8px;
position: relative;
.angle {
position: absolute;
top: -4px;
left: -4px;
width: 53.87px;
height: 59.24px;
}
.title {
font-weight: 700;
font-size: 13px;
color: #ffffff;
text-shadow: 0 2px 3px #d89410;
padding-left: 20px;
padding-top: 5px;
position: relative;
display: inline-block;
.xing {
position: absolute;
top: -5px;
width: 19.99px;
height: 22.89px;
}
}
.service-item {
display: flex;
height: 46.15px;
align-items: center;
background: #fcf9ef;
background-image: linear-gradient(-83deg, #fe6a7545 0%, #fcf0ee00 96%);
border-radius: 10px;
margin-top: 10px;
padding: 14px;
box-sizing: border-box;
&:last-child {
margin-bottom: 0px;
}
.service-logo {
width: 32px;
height: 32px;
margin-right: 10px;
img {
width: 32px;
height: 32px;
border-radius: 50%;
}
}
.service-desc {
.service-title {
font-size: 12px;
color: #5a3c36;
}
.service-content {
margin-top: 3px;
font-size: 11px;
color: #e16578;
}
}
.service-price {
margin-left: auto;
font-size: 15px;
color: #ff5c67;
font-weight: 700;
span {
font-size: 12px;
}
}
}
}
}
</style>
<template>
<div class="wrap">
<div class="container-panel">
<img class="header-panel" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_4/get.png?v=1.0.2" />
<div class="service-item" v-for="(item, index) in serviceList" :key="index">
<div class="service-time">{{ discount[item.discountType] }}</div>
<div class="service-title">
<div class="service-couponName">{{ item.couponName }}</div>
<div class="service-amount">x{{ item.couponAmount }}</div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
discount: {
2: '折扣券',
3: '代金券',
4: '兑换券',
7: '服务券'
},
serviceList: [
{
couponId: 1312,
discountType: 7,
couponName: '特殊服务230104160557',
couponAnticipatedCost: 0,
status: 2,
limitStockFlag: 1,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 3,
effectiveDays: null,
brandId: null,
brandName: null,
goodId: null,
goodsName: null,
appearance: null,
rechargeDenomination: null,
provideWay: null
},
{
couponId: 1308,
discountType: 7,
couponName: '特殊服务230104160455',
couponAnticipatedCost: 0,
status: 2,
limitStockFlag: 1,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 3,
effectiveDays: null,
brandId: null,
brandName: null,
goodId: null,
goodsName: null,
appearance: null,
rechargeDenomination: null,
provideWay: null
},
{
couponId: 1304,
discountType: 7,
couponName: '特殊服务230104154920',
couponAnticipatedCost: 0,
status: 2,
limitStockFlag: 1,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 3,
effectiveDays: null,
brandId: null,
brandName: null,
goodId: null,
goodsName: null,
appearance: null,
rechargeDenomination: null,
provideWay: null
},
{
couponId: 1296,
discountType: 7,
couponName: '特殊服务20230103161654',
couponAnticipatedCost: 0,
status: 2,
limitStockFlag: 1,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 3,
effectiveDays: null,
brandId: null,
brandName: null,
goodId: null,
goodsName: null,
appearance: null,
rechargeDenomination: null,
provideWay: null
},
{
couponId: 1295,
discountType: 7,
couponName: '特殊服务',
couponAnticipatedCost: 0,
status: 2,
limitStockFlag: 1,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 3,
effectiveDays: null,
brandId: null,
brandName: null,
goodId: null,
goodsName: null,
appearance: null,
rechargeDenomination: null,
provideWay: null
},
{
couponId: 1404,
discountType: 8,
couponName: '爱奇艺2元券',
couponAnticipatedCost: 100,
status: 2,
limitStockFlag: 2,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 1,
effectiveDays: 25,
brandId: null,
brandName: '爱奇艺',
goodId: 353,
goodsName: '爱奇艺2元券',
appearance: 2,
rechargeDenomination: '1',
provideWay: null
},
{
couponId: 1399,
discountType: 8,
couponName: '中杯全国通兑券-新品',
couponAnticipatedCost: 1000,
status: 2,
limitStockFlag: 2,
residueCouponAmount: null,
couponAmount: 4,
effectiveType: 1,
effectiveDays: 30,
brandId: null,
brandName: '星巴克',
goodId: 578,
goodsName: '中杯全国通兑券-新品',
appearance: 1,
rechargeDenomination: '',
provideWay: null
}
]
}
}
}
</script>
<style scoped lang="scss">
.wrap {
padding: 0px 10px;
.container-panel {
background: #ffffff;
border-radius: 12px;
padding: 39px 10px 16px;
position: relative;
.header-panel {
position: absolute;
top: -15px;
left: 50%;
transform: translateX(-50%);
width: 246.5px;
height: 41px;
}
.service-item {
margin-top: 10px;
display: flex;
height: 67px;
background-image: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_4/get_b.png');
background-size: 100% 100%;
border-radius: 8px;
align-items: center;
&:first-child {
margin-top: 0px;
}
.service-title {
flex: 1;
display: flex;
border-radius: 0px 8px 8px 0px;
.service-couponName {
font-size: 14px;
color: #5a3c36;
margin-left: 50px;
}
.service-amount {
font-size: 14px;
color: #5a3c36;
margin-left: auto;
margin-right: 20px;
}
}
.service-time {
box-sizing: border-box;
font-size: 15px;
color: #763510;
line-height: 11px;
position: relative;
border-radius: 50%;
margin-left: 15px;
white-space: nowrap;
}
}
}
}
</style>
<template>
<div class="wrap">
<div class="container-panel">
<img class="header-panel" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_4/rob.png" />
<div class="service-item" v-for="(item, index) in serviceList" :key="index">
<div class="service-title">{{ item.packageName }}</div>
<div class="service-time">
1
<text>元</text>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
serviceList: [
{
cardName: 'card',
createdBy: null,
createdDate: null,
deletedFlag: null,
id: null,
isChecked: 1,
merchantId: 44210895,
packageCode: 'PC0005',
packageName: '盗抢全损无忧(嘀加)',
packageServicePeriod: null,
planId: null,
servicePeriod: '1,2,3',
templateFlag: null,
updatedBy: null,
updatedDate: null
},
{
cardName: null,
createdBy: null,
createdDate: null,
deletedFlag: null,
id: null,
isChecked: 1,
merchantId: 44210895,
packageCode: 'PC0006',
packageName: '轮胎无忧(嘀加)',
packageServicePeriod: null,
planId: null,
servicePeriod: '1',
templateFlag: null,
updatedBy: null,
updatedDate: null
}
]
}
}
}
</script>
<style scoped lang="scss">
.wrap {
padding: 0px 8px;
margin-bottom: 41px;
.container-panel {
background: #ffffff;
border-radius: 12px;
padding: 39px 10px 16px;
position: relative;
.header-panel {
position: absolute;
top: -15px;
left: 50%;
transform: translateX(-50%);
width: 246.5px;
height: 41px;
}
.service-item {
height: 49px;
background-image: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_4/rob_b.png');
background-size: 100% 100%;
border-radius: 4px;
margin-bottom: 8px;
display: flex;
align-items: center;
padding: 0px 28.5px 0px 16px;
&:first-child {
margin-top: 0px;
}
.service-title {
flex: 1;
font-size: 14px;
color: #5a3c36;
}
.service-time {
text-align: center;
font-size: 26px;
color: #fe455d;
span {
font-size: 12px;
color: #fe455d;
}
}
}
}
}
</style>
<template>
<div class="wrap">
<div class="container-panel">
<img class="header-panel" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_4/delivery.png" />
<div class="service-item" v-for="(item, index) in selectedGoodsList" :key="index">
<div class="service-logo">
<img :src="item.goodsImage || $vip" />
</div>
<div class="service-desc">
<div class="service-title">{{ item.brandName }}{{ item.goodsName }}</div>
<div class="service-content">x{{ item.couponAmount }} 抵扣券</div>
</div>
<div class="service-price">
{{ formatPrice(item.couponAnticipatedCost || item.denomination) }}
<span>元</span>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
discount: {
2: '折扣券',
3: '代金券',
4: '兑换券',
7: '服务券'
}
}
},
props: {
selectedGoodsList: {
type: Array,
default: () => []
}
},
watch: {
selectedGoodsList: {
handler(val) {
console.log(val)
},
deep: true
}
},
methods: {
formatPrice(val) {
return (val / 100).toFixed(2).replace(/\.[0]+$/, '')
}
}
}
</script>
<style scoped lang="scss">
.wrap {
padding: 0px 10px;
margin-bottom: 41px;
.container-panel {
background: #ffffff;
border-radius: 12px;
padding: 39px 10px 16px;
position: relative;
.header-panel {
position: absolute;
top: -15px;
left: 50%;
transform: translateX(-50%);
width: 246.5px;
height: 41px;
}
.service-item {
display: flex;
height: 32.5px;
background-image: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_4/deliver_b.png');
background-size: 100% 100%;
margin-bottom: 8px;
align-items: center;
&:last-child {
margin-bottom: 0px;
}
.service-logo {
width: 28px;
height: 28px;
margin-right: 8px;
img {
width: 28px;
height: 28px;
border-radius: 50%;
}
}
.service-desc {
.service-title {
font-size: 12px;
color: #5a3c36;
}
.service-content {
margin-top: 3px;
font-size: 11px;
color: #e16578;
}
}
.service-price {
margin-left: auto;
margin-right: 16px;
font-size: 15px;
color: #ff5c67;
font-weight: 700;
white-space: nowrap;
span {
font-size: 12px;
}
}
}
}
}
</style>
<template>
<div class="wrap">
<div class="container-panel">
<div class="service-panel">
<img class="header-panel" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_5/get.png" />
<div class="service-body-bg"></div>
<div class="service-panel-bg"></div>
<div class="service-panel-box">
<div class="service-item" v-for="(item, index) in serviceList" :key="index">
<div class="service-time">{{ discount[item.discountType] }}</div>
<div class="service-title">
<div class="service-couponName">{{ item.couponName }}</div>
<div class="service-amount">x{{ item.couponAmount }} {{ discount[item.discountType] }}</div>
</div>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
discount: {
2: '折扣券',
3: '代金券',
4: '兑换券',
7: '服务券'
},
serviceList: [
{
couponId: 1312,
discountType: 7,
couponName: '特殊服务230104160557',
couponAnticipatedCost: 0,
status: 2,
limitStockFlag: 1,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 3,
effectiveDays: null,
brandId: null,
brandName: null,
goodId: null,
goodsName: null,
appearance: null,
rechargeDenomination: null,
provideWay: null
},
{
couponId: 1308,
discountType: 7,
couponName: '特殊服务230104160455',
couponAnticipatedCost: 0,
status: 2,
limitStockFlag: 1,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 3,
effectiveDays: null,
brandId: null,
brandName: null,
goodId: null,
goodsName: null,
appearance: null,
rechargeDenomination: null,
provideWay: null
},
{
couponId: 1304,
discountType: 7,
couponName: '特殊服务230104154920',
couponAnticipatedCost: 0,
status: 2,
limitStockFlag: 1,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 3,
effectiveDays: null,
brandId: null,
brandName: null,
goodId: null,
goodsName: null,
appearance: null,
rechargeDenomination: null,
provideWay: null
},
{
couponId: 1296,
discountType: 7,
couponName: '特殊服务20230103161654',
couponAnticipatedCost: 0,
status: 2,
limitStockFlag: 1,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 3,
effectiveDays: null,
brandId: null,
brandName: null,
goodId: null,
goodsName: null,
appearance: null,
rechargeDenomination: null,
provideWay: null
},
{
couponId: 1295,
discountType: 7,
couponName: '特殊服务',
couponAnticipatedCost: 0,
status: 2,
limitStockFlag: 1,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 3,
effectiveDays: null,
brandId: null,
brandName: null,
goodId: null,
goodsName: null,
appearance: null,
rechargeDenomination: null,
provideWay: null
},
{
couponId: 1404,
discountType: 8,
couponName: '爱奇艺2元券',
couponAnticipatedCost: 100,
status: 2,
limitStockFlag: 2,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 1,
effectiveDays: 25,
brandId: null,
brandName: '爱奇艺',
goodId: 353,
goodsName: '爱奇艺2元券',
appearance: 2,
rechargeDenomination: '1',
provideWay: null
},
{
couponId: 1399,
discountType: 8,
couponName: '中杯全国通兑券-新品',
couponAnticipatedCost: 1000,
status: 2,
limitStockFlag: 2,
residueCouponAmount: null,
couponAmount: 4,
effectiveType: 1,
effectiveDays: 30,
brandId: null,
brandName: '星巴克',
goodId: 578,
goodsName: '中杯全国通兑券-新品',
appearance: 1,
rechargeDenomination: '',
provideWay: null
}
]
}
}
}
</script>
<style scoped lang="scss">
.wrap {
margin-top: 10px;
.container-panel {
padding: 8px;
position: relative;
.service-panel {
position: relative;
z-index: 2;
padding: 0px 10px;
.service-body-bg {
position: absolute;
height: calc(100% - 20px);
width: calc(100% - 5px);
left: 2px;
top: 25px;
z-index: -1;
border-radius: 0px 0px 12px 12px;
background-image: linear-gradient(180deg, #ec5cb2 2%, #ec5cb2 40%, #ed76c9 67%, #ffcf8600 100%);
}
.header-panel {
position: absolute;
width: 375px;
height: 190px;
top: -85px;
left: -8px;
z-index: -4;
}
&-bg {
position: absolute;
width: calc(100% - 20px);
height: calc(100% - 5px);
box-sizing: border-box;
background: rgba($color: #ffffff, $alpha: 0.3);
box-shadow: inset 0 0 18px 0 #ffffff;
border-radius: 20px;
z-index: -1;
}
&-box {
padding: 12px 13px;
}
}
.service-item {
margin-top: 5px;
display: flex;
height: 64px;
background-image: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_5/get_b.png');
background-size: 100% 100%;
&:first-child {
margin-top: 0px;
display: flex;
}
.service-title {
flex: 1;
margin-left: 35px;
.service-couponName {
font-size: 14px;
margin-top: 15px;
color: #111111;
}
.service-amount {
font-size: 11px;
color: #878e99;
}
}
.service-time {
width: 50px;
padding: 9px 20px;
box-sizing: border-box;
font-size: 13px;
color: #ffffff;
line-height: 14px;
}
}
}
}
</style>
<template>
<div class="wrap">
<div class="container-panel">
<div class="service-panel">
<img class="header-panel" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_5/rob.png" />
<div class="service-body-bg"></div>
<div class="service-panel-bg"></div>
<div class="service-panel-box">
<div class="service-item" v-for="(item, index) in serviceList" :key="index">
<div class="service-time">
1
<span>元</span>
</div>
<div class="service-title">{{ item.packageName }}</div>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
serviceList: [
{
cardName: 'card',
createdBy: null,
createdDate: null,
deletedFlag: null,
id: null,
isChecked: 1,
merchantId: 44210895,
packageCode: 'PC0005',
packageName: '盗抢全损无忧(嘀加)',
packageServicePeriod: null,
planId: null,
servicePeriod: '1,2,3',
templateFlag: null,
updatedBy: null,
updatedDate: null
},
{
cardName: null,
createdBy: null,
createdDate: null,
deletedFlag: null,
id: null,
isChecked: 1,
merchantId: 44210895,
packageCode: 'PC0006',
packageName: '轮胎无忧(嘀加)',
packageServicePeriod: null,
planId: null,
servicePeriod: '1',
templateFlag: null,
updatedBy: null,
updatedDate: null
}
]
}
}
}
</script>
<style scoped lang="scss">
.wrap {
margin-bottom: 65px;
.container-panel {
padding: 8px;
position: relative;
.service-panel {
position: relative;
z-index: 2;
padding: 0px 10px;
.service-body-bg {
position: absolute;
height: calc(100% - 20px);
width: calc(100% - 15px);
left: 2.5px;
top: 25px;
z-index: -1;
border-radius: 0px 0px 12px 12px;
background-image: linear-gradient(180deg, #ff5a52 0%, #fe7141 34%, #fe912f 66%, #ffe6ab00 100%);
}
.header-panel {
position: absolute;
width: 375px;
height: 190px;
top: -85px;
left: -8px;
z-index: -4;
}
&-bg {
position: absolute;
width: calc(100% - 20px);
height: calc(100% - 5px);
box-sizing: border-box;
background: rgba($color: #ffffff, $alpha: 0.3);
box-shadow: inset 0 0 18px 0 #ffffff;
border-radius: 20px;
z-index: -1;
}
&-box {
padding: 15px 13px;
}
}
.service-item {
display: flex;
height: 56px;
align-items: center;
background-image: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_5/rob_b.png');
background-size: 100% 100%;
margin-top: 10px;
display: flex;
align-items: center;
&:first-child {
margin-top: 0px;
}
.service-title {
flex: 1;
font-size: 14px;
color: #5a3c36;
margin-left: 25px;
}
.service-time {
font-size: 20px;
color: #999896;
width: 40px;
text-align: center;
span {
font-size: 12px;
color: #8e5310;
}
}
}
}
}
</style>
<template>
<div class="wrap">
<div class="container-panel">
<div class="service-panel">
<img class="header-panel" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_5/deliver.png" />
<div class="service-body-bg"></div>
<div class="service-panel-bg"></div>
<div class="service-panel-box">
<div class="service-item" v-for="(item, index) in selectedGoodsList" :key="index">
<div class="service-logo">
<img :src="item.goodsImage || $vip" />
</div>
<div class="service-desc">
<div class="service-title">{{ item.brandName }}{{ item.goodsName }}</div>
<div class="service-content">x{{ item.couponAmount }} 抵扣券</div>
</div>
<div class="service-price">
{{ formatPrice(item.couponAnticipatedCost || item.denomination) }}
<span>元</span>
</div>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
discount: {
2: '折扣券',
3: '代金券',
4: '兑换券',
7: '服务券'
}
}
},
props: {
selectedGoodsList: {
type: Array,
default: () => []
}
},
watch: {
selectedGoodsList: {
handler(val) {
console.log(val)
},
deep: true
}
},
methods: {
formatPrice(val) {
return (val / 100).toFixed(2).replace(/\.[0]+$/, '')
}
}
}
</script>
<style scoped lang="scss">
.wrap {
margin-top: 40px;
.container-panel {
padding: 8px;
position: relative;
.service-panel {
position: relative;
z-index: 2;
padding: 0px 10px;
.service-body-bg {
position: absolute;
height: calc(100% - 20px);
width: calc(100% - 5px);
left: 2px;
top: 25px;
z-index: -1;
border-radius: 0px 0px 12px 12px;
background-image: linear-gradient(180deg, #ec5cb2 2%, #ec5cb2 40%, #ed76c9 67%, #ffcf8600 100%);
}
.header-panel {
position: absolute;
width: 285px;
height: 130px;
top: -52px;
left: -6px;
z-index: -4;
}
&-bg {
position: absolute;
width: calc(100% - 20px);
height: calc(100% - 5px);
box-sizing: border-box;
background: rgba($color: #ffffff, $alpha: 0.3);
box-shadow: inset 0 0 18px 0 #ffffff;
border-radius: 20px;
z-index: -1;
}
&-box {
padding: 12px 13px;
}
}
.service-item {
display: flex;
height: 32px;
align-items: center;
background-image: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_5/delivery_b.png');
background-size: 100% 100%;
border-radius: 10px;
margin-bottom: 5px;
padding: 21px 0px 21px 21px;
box-sizing: border-box;
&:last-child {
margin-bottom: 0px;
}
.service-logo {
width: 32px;
height: 32px;
margin-right: 10px;
img {
width: 32px;
height: 32px;
border-radius: 50%;
}
}
.service-desc {
.service-title {
font-size: 10px;
color: #111111;
}
.service-content {
margin-top: 3px;
font-size: 11px;
color: #878e99;
}
}
.service-price {
margin-left: auto;
width: 80px;
text-align: center;
font-size: 13px;
color: #ff5c67;
font-weight: 700;
white-space: nowrap;
span {
font-size: 10px;
}
}
}
}
}
</style>
<template>
<div class="wrap">
<div class="container-panel">
<img class="header-panel" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_8/get.png?v=1.0.2" />
<div class="service-item" v-for="(item, index) in serviceList" :key="index">
<div class="service-time">{{ discount[item.discountType] }}</div>
<div class="service-title">
<div class="service-couponName">{{ item.couponName }}</div>
<div class="service-amount">x{{ item.couponAmount }}</div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
discount: {
2: '折扣券',
3: '代金券',
4: '兑换券',
7: '服务券'
},
serviceList: [
{
couponId: 1312,
discountType: 7,
couponName: '特殊服务230104160557',
couponAnticipatedCost: 0,
status: 2,
limitStockFlag: 1,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 3,
effectiveDays: null,
brandId: null,
brandName: null,
goodId: null,
goodsName: null,
appearance: null,
rechargeDenomination: null,
provideWay: null
},
{
couponId: 1308,
discountType: 7,
couponName: '特殊服务230104160455',
couponAnticipatedCost: 0,
status: 2,
limitStockFlag: 1,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 3,
effectiveDays: null,
brandId: null,
brandName: null,
goodId: null,
goodsName: null,
appearance: null,
rechargeDenomination: null,
provideWay: null
},
{
couponId: 1304,
discountType: 7,
couponName: '特殊服务230104154920',
couponAnticipatedCost: 0,
status: 2,
limitStockFlag: 1,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 3,
effectiveDays: null,
brandId: null,
brandName: null,
goodId: null,
goodsName: null,
appearance: null,
rechargeDenomination: null,
provideWay: null
},
{
couponId: 1296,
discountType: 7,
couponName: '特殊服务20230103161654',
couponAnticipatedCost: 0,
status: 2,
limitStockFlag: 1,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 3,
effectiveDays: null,
brandId: null,
brandName: null,
goodId: null,
goodsName: null,
appearance: null,
rechargeDenomination: null,
provideWay: null
},
{
couponId: 1295,
discountType: 7,
couponName: '特殊服务',
couponAnticipatedCost: 0,
status: 2,
limitStockFlag: 1,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 3,
effectiveDays: null,
brandId: null,
brandName: null,
goodId: null,
goodsName: null,
appearance: null,
rechargeDenomination: null,
provideWay: null
},
{
couponId: 1404,
discountType: 8,
couponName: '爱奇艺2元券',
couponAnticipatedCost: 100,
status: 2,
limitStockFlag: 2,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 1,
effectiveDays: 25,
brandId: null,
brandName: '爱奇艺',
goodId: 353,
goodsName: '爱奇艺2元券',
appearance: 2,
rechargeDenomination: '1',
provideWay: null
},
{
couponId: 1399,
discountType: 8,
couponName: '中杯全国通兑券-新品',
couponAnticipatedCost: 1000,
status: 2,
limitStockFlag: 2,
residueCouponAmount: null,
couponAmount: 4,
effectiveType: 1,
effectiveDays: 30,
brandId: null,
brandName: '星巴克',
goodId: 578,
goodsName: '中杯全国通兑券-新品',
appearance: 1,
rechargeDenomination: '',
provideWay: null
}
]
}
}
}
</script>
<style scoped lang="scss">
.wrap {
padding: 0px 5px;
.container-panel {
background: #ffffff;
border-radius: 12px;
padding: 34px 14px 16px;
position: relative;
.header-panel {
position: absolute;
top: -27.5px;
left: 50%;
transform: translateX(-50%);
width: 241px;
height: 50px;
}
.service-item {
margin-top: 5px;
display: flex;
height: 64px;
background-image: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_8/get_b.png');
background-size: 100% 100%;
border-radius: 8px;
&:first-child {
margin-top: 0px;
display: flex;
}
.service-title {
flex: 1;
height: 55px;
padding: 0px 27px 0px 14px;
border-radius: 0px 8px 8px 0px;
.service-couponName {
font-size: 14px;
margin-top: 14px;
color: #111111;
}
.service-amount {
font-size: 11px;
color: #878e99;
}
}
.service-time {
width: 50px;
height: 60px;
padding: 15px 30px;
box-sizing: border-box;
font-size: 10px;
color: #fe455d;
line-height: 12px;
position: relative;
&::before {
content: '';
position: absolute;
top: 10px;
left: 33px;
color: #fe455d;
background: #fe455d;
width: 3px;
height: 3px;
border-radius: 50%;
}
&::after {
content: '';
position: absolute;
bottom: 3px;
left: 33px;
color: #fe455d;
background: #fe455d;
width: 3px;
height: 3px;
border-radius: 50%;
}
}
}
}
}
</style>
<template>
<div class="wrap">
<div class="container-panel">
<img class="header-panel" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_8/rob.png" />
<div class="service-item" v-for="(item, index) in serviceList" :key="index">
<div class="service-time">
1
<sapn>元</sapn>
</div>
<div class="service-title">{{ item.packageName }}</div>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
serviceList: [
{
cardName: 'card',
createdBy: null,
createdDate: null,
deletedFlag: null,
id: null,
isChecked: 1,
merchantId: 44210895,
packageCode: 'PC0005',
packageName: '盗抢全损无忧(嘀加)',
packageServicePeriod: null,
planId: null,
servicePeriod: '1,2,3',
templateFlag: null,
updatedBy: null,
updatedDate: null
},
{
cardName: null,
createdBy: null,
createdDate: null,
deletedFlag: null,
id: null,
isChecked: 1,
merchantId: 44210895,
packageCode: 'PC0006',
packageName: '轮胎无忧(嘀加)',
packageServicePeriod: null,
planId: null,
servicePeriod: '1',
templateFlag: null,
updatedBy: null,
updatedDate: null
}
]
}
}
}
</script>
<style scoped lang="scss">
.wrap {
padding: 0px 5px;
margin-bottom: 41px;
.container-panel {
background: #ffffff;
border-radius: 12px;
padding: 34px 14px 16px;
position: relative;
.header-panel {
position: absolute;
top: -15px;
left: 50%;
transform: translateX(-50%);
width: 240px;
height: 50px;
}
.service-item {
height: 64px;
background-image: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_8/rob_b.png');
background-size: 100% 100%;
border: 1px solid #ffffff;
box-shadow: inset 0 1px 0 0 #bcbebf;
border-radius: 8px;
margin-bottom: 8px;
display: flex;
align-items: center;
&:first-child {
margin-top: 0px;
}
.service-title {
flex: 1;
font-size: 14px;
color: #5a3c36;
}
.service-time {
text-align: center;
font-size: 16px;
color: #fe455d;
width:63px;
span {
font-size: 12px;
color: #fe455d;
}
}
}
}
}
</style>
<template>
<div class="wrap">
<div class="container-panel">
<img class="header-panel" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_8/deliver.png" />
<div class="service-item" v-for="(item, index) in selectedGoodsList" :key="index">
<div class="service-logo">
<img :src="item.goodsImage || $vip" />
</div>
<div class="service-desc">
<div class="service-title">{{ item.brandName }}{{ item.goodsName }}</div>
<div class="service-content">x{{ item.couponAmount }} 抵扣券</div>
</div>
<div class="service-price">
{{ formatPrice(item.couponAnticipatedCost || item.denomination) }}
<span>元</span>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
discount: {
2: '折扣券',
3: '代金券',
4: '兑换券',
7: '服务券'
}
}
},
props: {
selectedGoodsList: {
type: Array,
default: () => []
}
},
watch: {
selectedGoodsList: {
handler(val) {
console.log(val)
},
deep: true
}
},
methods: {
formatPrice(val) {
return (val / 100).toFixed(2).replace(/\.[0]+$/, '')
}
}
}
</script>
<style scoped lang="scss">
.wrap {
padding: 0px 5px;
margin-bottom: 41px;
.container-panel {
background: #ffffff;
border-radius: 12px;
padding: 34px 14px 16px;
position: relative;
.header-panel {
position: absolute;
top: -27.5px;
left: 50%;
transform: translateX(-50%);
width: 240px;
height: 50px;
}
.service-item {
display: flex;
height: 68px;
background-image: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_8/deliver-b.png');
background-size: 100% 100%;
margin-bottom: 8px;
align-items: center;
&:last-child {
margin-bottom: 0px;
}
.service-logo {
width: 28px;
height: 28px;
margin-right: 8px;
img {
width: 28px;
height: 28px;
border-radius: 50%;
}
}
.service-desc {
.service-title {
font-size: 14px;
color: #111111;
}
.service-content {
margin-top: 3px;
font-size: 11px;
color: #878e99;
}
}
.service-price {
margin-left: auto;
margin-right: 16px;
font-size: 15px;
color: #ff5c67;
font-weight: 700;
white-space: nowrap;
span {
font-size: 12px;
}
}
}
}
}
</style>
...@@ -156,7 +156,7 @@ export default { ...@@ -156,7 +156,7 @@ export default {
}, },
watch: { watch: {
'addForm.messageContext': { 'addForm.messageContext': {
handler: function () { handler: function() {
this.content = [] this.content = []
let str = this.addForm.messageContext let str = this.addForm.messageContext
let num = 70 let num = 70
...@@ -513,7 +513,7 @@ export default { ...@@ -513,7 +513,7 @@ export default {
} }
} }
.form-image { .form-image {
width: 280px; width: 285px;
height: 546px; height: 546px;
margin: 20px 80px 20px 0; margin: 20px 80px 20px 0;
position: relative; position: relative;
...@@ -593,4 +593,4 @@ export default { ...@@ -593,4 +593,4 @@ export default {
} }
} }
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
...@@ -180,7 +180,7 @@ export default { ...@@ -180,7 +180,7 @@ export default {
} }
} }
.form-image { .form-image {
width: 280px; width: 285px;
height: 546px; height: 546px;
margin-right: 80px; margin-right: 80px;
position: relative; position: relative;
...@@ -208,4 +208,4 @@ export default { ...@@ -208,4 +208,4 @@ export default {
} }
} }
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!