Commit d8cbd117 by 李伟康

修改样式

1 parent dcd49954
...@@ -29,7 +29,8 @@ module.exports = { ...@@ -29,7 +29,8 @@ module.exports = {
code_message_map: {} code_message_map: {}
}, },
secret: "c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b", secret: "c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b",
shopmall_appid: "wxe10067a63c1856ac", // shopmall_appid: "wxfe82b8d65d07808f", //广汇
shopmall_appid: "wxe10067a63c1856ac", //嘀加
sign: { sign: {
appKey: "48e5e13229b82c1b4e6e8c96151f0637", appKey: "48e5e13229b82c1b4e6e8c96151f0637",
format: "json", format: "json",
......
...@@ -7,6 +7,16 @@ export default { ...@@ -7,6 +7,16 @@ export default {
}, },
mounted () { mounted () {
if (this.$route.meta.isTab || this.$route.meta.isIndex) this.wxInit() if (this.$route.meta.isTab || this.$route.meta.isIndex) this.wxInit()
// wxConfig
// .createMiniprogramUrlLink({
// path: 'packageEquity/pages/active/active',
// appId: 'wxfe82b8d65d07808f',
// query: '?ss=ss',
// envVersion: 'release'
// })
// .then(url => {
// console.log(url)
// })
}, },
methods: { methods: {
wxInit () { wxInit () {
......
...@@ -30,28 +30,25 @@ ...@@ -30,28 +30,25 @@
<!-- 0:优惠券 1:精品礼券 2:商品订单 3:门店服务 --> <!-- 0:优惠券 1:精品礼券 2:商品订单 3:门店服务 -->
<template v-if="type == 0 || type == 1"> <template v-if="type == 0 || type == 1">
<div class="title flex"> <div class="title flex">
<div class="name text-hide">{{item.userName || item.customerName}}</div> <div class="name text-hide">
<div class="time"> <template v-if="type == 0">{{item.phone}}</template>
<template v-if="type == 0"> <template v-else>{{item.userName || item.customerName}}</template>
<template v-if="tabIndex == 0"> </div>
核销时间: {{new Date(item.verificationTime).format('yyyy/MM/dd')}} <template v-if="type == 0">
</template> <template v-if="(item.directionalGiftId || item.directionalGiftName)">
<template v-else-if="tabIndex == 1"> <div class="sprite-icon icon-gift-logo"></div>
领取时间:{{new Date(item.receiveTime).format('yyyy/MM/dd')}}
</template>
<template v-else>
发放时间:{{new Date(item.issueDate).format('yyyy/MM/dd')}}
</template>
</template> </template>
<template v-else> </template>
<template v-else>
<div class="time">
<template v-if="tabIndex == 0"> <template v-if="tabIndex == 0">
核销时间: {{new Date(item.usedTime).format('yyyy/MM/dd')}} 核销时间: {{new Date(item.usedTime).format('yyyy/MM/dd')}}
</template> </template>
<template v-else> <template v-else>
领券时间:{{new Date(item.createdDate).format('yyyy/MM/dd')}} 领券时间:{{new Date(item.createdDate).format('yyyy/MM/dd')}}
</template> </template>
</template> </div>
</div> </template>
</div> </div>
<div class="info"> <div class="info">
<template v-for="(i,ind) in type == 0?itemObj:itemObj2"> <template v-for="(i,ind) in type == 0?itemObj:itemObj2">
...@@ -76,6 +73,21 @@ ...@@ -76,6 +73,21 @@
</template> </template>
</template> </template>
</div> </div>
<template v-if="type == 0">
<div class="bottom flex">
<div class="name">
<template v-if="tabIndex == 0">
核销时间: {{new Date(item.verificationTime).format('yyyy/MM/dd')}}
</template>
<template v-else-if="tabIndex == 1">
领取时间:{{new Date(item.receiveTime).format('yyyy/MM/dd')}}
</template>
<template v-else>
发放时间:{{new Date(item.issueDate).format('yyyy/MM/dd')}}
</template>
</div>
</div>
</template>
</template> </template>
<template v-else-if="type == 2"> <template v-else-if="type == 2">
<div class="title flex"> <div class="title flex">
...@@ -468,6 +480,31 @@ export default { ...@@ -468,6 +480,31 @@ export default {
margin-bottom: 10px; margin-bottom: 10px;
.title { .title {
color: #333333; color: #333333;
position: relative;
.sprite-icon {
position: absolute;
right: 0;
top: 0;
}
}
.bottom {
color: #666666;
font-size: 12px;
padding: 0 12px;
min-height: 40px;
border-top: 1px solid #eff0f2;
.name {
flex-shrink: 0;
margin-left: auto;
}
.vip-btn {
height: 24px;
background: rgba(57, 117, 198, 0.15);
border-radius: 4px;
padding: 0 6px;
font-size: 12px;
color: #3975c6;
}
} }
} }
} }
...@@ -536,7 +573,8 @@ export default { ...@@ -536,7 +573,8 @@ export default {
min-height: 40px; min-height: 40px;
border-bottom: 1px solid #eff0f2; border-bottom: 1px solid #eff0f2;
padding-left: 12px; padding-left: 12px;
.sprite-icon { .time {
padding-right: 12px;
margin-left: auto; margin-left: auto;
} }
} }
...@@ -593,25 +631,6 @@ export default { ...@@ -593,25 +631,6 @@ export default {
} }
} }
} }
.bottom {
color: #666666;
font-size: 12px;
padding: 0 12px;
min-height: 40px;
border-top: 1px solid #eff0f2;
.name {
flex-shrink: 0;
margin-left: auto;
}
.vip-btn {
height: 24px;
background: rgba(57, 117, 198, 0.15);
border-radius: 4px;
padding: 0 6px;
font-size: 12px;
color: #3975c6;
}
}
} }
} }
.scan { .scan {
......
...@@ -50,7 +50,7 @@ const spritesmithFunction = data => { ...@@ -50,7 +50,7 @@ const spritesmithFunction = data => {
return `${shared}\n${perSprite}` return `${shared}\n${perSprite}`
} }
module.exports = { module.exports = {
publicPath: IS_PROD ? './' : '/dj-scrm-wx-work-main-lwk/', // 本地调试时需登录时使用 publicPath: IS_PROD ? './' : '/dj-scrm-wx-work-lwk/', // 本地调试时需登录时使用
// publicPath: './', // publicPath: './',
// publicPath: '/dj-scrm-wx-work-attachment-activity/', // 署应用包时的基本 URL。 vue-router history模式使用 // publicPath: '/dj-scrm-wx-work-attachment-activity/', // 署应用包时的基本 URL。 vue-router history模式使用
outputDir: 'dist', // 生产环境构建文件的目录 outputDir: 'dist', // 生产环境构建文件的目录
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!