Commit 4d347d78 by 李伟康

精品交付单

1 parent a8b04c81
......@@ -51,9 +51,7 @@ export default {
case 'coupon': {
let desc = '您的专属服务顾问为您发来了优惠券,请点击领取~'
let imgUrl = 'http://img01.glsx.com.cn/upload/biz/dracMini-yh-10004.png'
console.log(entry)
if (false) {
// if (tabIndex == 0 ) {
if (tabIndex == 0) {
if (entry != 'normal')
this.sendChatMessage({
// channelType 1 嘀加 2:广汇
......
......@@ -21,8 +21,7 @@
class="item"
>
<div :class="['sprite-icon', 'text-center',tabIndex == 0 ?'icon-coupon':'icon-discount', {'clear-padding':i.discountType == 3}]">
<template v-if="false">
<!-- <template v-if="tabIndex == 0 "> -->
<template v-if="tabIndex == 0 ">
{{i.couponTypeName}}
</template>
<template v-else>
......@@ -77,30 +76,29 @@
<script type='text/ecmascript-6'>
import { shareMixin, pageMixin, discountTypeMixin } from '@/mixins'
import { couponApi, boutiquecouponApi } from '@/api'
const tabList = ['商城优惠券']
// const tabList = ['新车精品礼券', '商城优惠券']
const tabList = ['新车精品礼券', '商城优惠券']
export default {
name: 'coupon',
mixins: [shareMixin, pageMixin, discountTypeMixin],
data() {
data () {
return {
tabList,
updata: new Date().getTime()
}
},
mounted() {},
mounted () { },
methods: {
// getList_0(pageNum) {
// let { list } = this
// boutiquecouponApi.getBoutiqueCouponList({ pageNum }).then(res => {
// this.hideLoading()
// console.log('精品礼券', res)
// this.flag = true
// this.list = list.concat(res.list)
// this.total = res.total
// })
// },
getList_0(pageNum) {
getList_0 (pageNum) {
let { list } = this
boutiquecouponApi.getBoutiqueCouponList({ pageNum }).then(res => {
this.hideLoading()
console.log('精品礼券', res)
this.flag = true
this.list = list.concat(res.list)
this.total = res.total
})
},
getList_1 (pageNum) {
let { list } = this
couponApi.getMerchantCouponList({ pageNum }).then(res => {
this.hideLoading()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!