Commit 8f4f845b by 李伟康

提交代码

1 parent 614c8e6b
...@@ -98,7 +98,12 @@ ...@@ -98,7 +98,12 @@
position: relative; position: relative;
&:last-of-type { &:last-of-type {
margin-right: 16px; .mask {
border-right: 16px solid #f7f7f7;
.line-box {
width: calc(100% - 16px);
}
}
} }
.mask { .mask {
...@@ -109,10 +114,10 @@ ...@@ -109,10 +114,10 @@
left: 0; left: 0;
z-index: 2; z-index: 2;
background: #E9E8EC; background: #E9E8EC;
box-sizing: border-box; img {
img{
object-fit: contain; object-fit: contain;
} }
.line-box { .line-box {
position: absolute; position: absolute;
left: 0; left: 0;
...@@ -128,7 +133,8 @@ ...@@ -128,7 +133,8 @@
border-radius: 1px; border-radius: 1px;
margin-left: 4%; margin-left: 4%;
} }
.duration{
.duration {
font-size: 8px; font-size: 8px;
color: #FFFFFF; color: #FFFFFF;
margin-left: auto; margin-left: auto;
...@@ -140,16 +146,16 @@ ...@@ -140,16 +146,16 @@
} }
.onlyone { .onlyone {
.item { .item {
width: 343px; width: 343px;
height: 192px; height: 192px;
margin: 0 auto !important; margin: 0 auto !important;
}
.active {
.mask { .mask {
border-color: transparent; border-right: none !important;
.line-box{
width: 100% !important;
}
} }
} }
} }
...@@ -157,13 +163,16 @@ ...@@ -157,13 +163,16 @@
.onlytwo { .onlytwo {
width: 100%; width: 100%;
justify-content: space-between; justify-content: space-between;
padding: 0 16px;
box-sizing: border-box;
.item { .item {
width: 166px; width: 166px;
height: 92px; height: 92px;
&:last-of-type {
margin-left: 0; margin-left: 0;
.mask{
.line-box{
width: 100% !important;
}
} }
} }
} }
...@@ -330,7 +339,8 @@ ...@@ -330,7 +339,8 @@
height: auto; height: auto;
} }
} }
.tips{
.tips {
padding-top: 30px; padding-top: 30px;
font-size: 10px; font-size: 10px;
} }
......
...@@ -65,7 +65,7 @@ fetchConfig(!isMock).then(res => { ...@@ -65,7 +65,7 @@ fetchConfig(!isMock).then(res => {
// 设置 js中可以访问 $cdn // 设置 js中可以访问 $cdn
Vue.use(cfg) Vue.use(cfg)
window.$fetchConfig = res window.$fetchConfig = res
if (res.vconsole) new VConsole() // if (res.vconsole) new VConsole()
/**登录过期 重新登录 */ /**登录过期 重新登录 */
window.reLogin = () => { window.reLogin = () => {
console.log('重新登录') console.log('重新登录')
......
...@@ -75,7 +75,6 @@ export default { ...@@ -75,7 +75,6 @@ export default {
watch: { watch: {
'detail': function (n) { 'detail': function (n) {
this.show = true this.show = true
console.log(n)
let [price, decimal] = this.centsToyuan(n.retailPrice).toString().split('.') let [price, decimal] = this.centsToyuan(n.retailPrice).toString().split('.')
if (!decimal) decimal = '00' if (!decimal) decimal = '00'
n.price = price n.price = price
......
...@@ -378,9 +378,8 @@ export default { ...@@ -378,9 +378,8 @@ export default {
}, },
getActivityGroup () { getActivityGroup () {
shopmallApi.getActivityGroup(this.id).then(data => { shopmallApi.getActivityGroup(this.id).then(data => {
console.log(data)
let arr = [], items = [] let arr = [], items = []
// console.log(JSON.parse(JSON.stringify(data))) console.log(JSON.parse(JSON.stringify(data)))
data.progress = data.fictitiousLadderQuantity != 0 data.progress = data.fictitiousLadderQuantity != 0
? this.decimal((data.groupQuantity / data.fictitiousLadderQuantity) * 100, 2) ? this.decimal((data.groupQuantity / data.fictitiousLadderQuantity) * 100, 2)
: this.decimal(data.groupQuantity * 100, 2) : this.decimal(data.groupQuantity * 100, 2)
......
...@@ -78,7 +78,7 @@ export default { ...@@ -78,7 +78,7 @@ export default {
valueList.push(carText) valueList.push(carText)
} }
labelList = [...labelList, '商品名称:', '支付时间:', '支付定金'] labelList = [...labelList, '商品名称:', '支付时间:', '支付定金']
valueList = [...valueList, orderGoods.goodsName, new Date().format('yyyy年M月d日 hh:mm:ss'), `${payPrice}元`] valueList = [...valueList, orderGoods.goodsName, new Date(activityJoin.createdDate).format('yyyy年M月d日 hh:mm:ss'), `${payPrice}元`]
labelList.map((e, index) => { labelList.map((e, index) => {
if (e == '商品名称:' && draw.getTextWidth(carText) + valueX > valueWidth) spacing = 24 if (e == '商品名称:' && draw.getTextWidth(carText) + valueX > valueWidth) spacing = 24
if (index == labelList.length - 1) textYList.push(352) if (index == labelList.length - 1) textYList.push(352)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!