|
@@ -679,16 +679,16 @@
|
|
|
}
|
|
|
},
|
|
|
filters: {
|
|
|
- FormatNum (value) {
|
|
|
+ FormatNum: function (value) {
|
|
|
return FormatNum(value)
|
|
|
},
|
|
|
- FormatDateFn (value) {
|
|
|
+ FormatDateFn: function (value) {
|
|
|
return new Date(value * 1000).Format('yyyy/MM/dd')
|
|
|
},
|
|
|
- formatAreaText (value, old) {
|
|
|
+ formatAreaText: function (value, old) {
|
|
|
return value === -1 ? '全国' : ((old ? (value - old) : value) + '个省')
|
|
|
},
|
|
|
- formatAreaTextBefore (type) {
|
|
|
+ formatAreaTextBefore: function (type) {
|
|
|
var typeMap = {
|
|
|
'1': '购买',
|
|
|
'2': '升级',
|
|
@@ -696,7 +696,7 @@
|
|
|
}
|
|
|
return typeMap[type || '1']
|
|
|
},
|
|
|
- formatTimeText (type) {
|
|
|
+ formatTimeText: function (type) {
|
|
|
var result = ''
|
|
|
if (typeof type === "string") {
|
|
|
type = type.replace(/-/g, '/')
|
|
@@ -707,7 +707,7 @@
|
|
|
}
|
|
|
return result
|
|
|
},
|
|
|
- formatCycleText (type) {
|
|
|
+ formatCycleText: function (type) {
|
|
|
var typeMap = {
|
|
|
'1': '1个月',
|
|
|
'2': '1季',
|
|
@@ -717,13 +717,14 @@
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
- getList () {
|
|
|
- return this.list.filter(v => {
|
|
|
+ getList: function () {
|
|
|
+ var _this = this
|
|
|
+ return this.list.filter(function (v) {
|
|
|
if (v.product_type === '线上课程') {
|
|
|
v.product_type = '中标必听课'
|
|
|
}
|
|
|
- return this.typeEnum.indexOf(v.product_type) !== -1
|
|
|
- }).map((v, index) => {
|
|
|
+ return _this.typeEnum.indexOf(v.product_type) !== -1
|
|
|
+ }).map(function (v, index) {
|
|
|
// product_type
|
|
|
if (v.product_type === '线上课程') {
|
|
|
v.product_type = '中标必听课'
|
|
@@ -744,14 +745,14 @@
|
|
|
}
|
|
|
// 大会员
|
|
|
if (v.product_type === '大会员') {
|
|
|
- v.icon = this.imgMap[v.product_type].icons[this.bigIndexMap[v.filter.level]].icon
|
|
|
+ v.icon = _this.imgMap[v.product_type].icons[_this.bigIndexMap[v.filter.level]].icon
|
|
|
} else if (v.product_type === '大会员-子账号') {
|
|
|
- v.icon = this.imgMap[v.product_type].icons[this.bigIndexMap[v.filter.level]].icon
|
|
|
+ v.icon = _this.imgMap[v.product_type].icons[_this.bigIndexMap[v.filter.level]].icon
|
|
|
} else {
|
|
|
- v.icon = this.imgMap[v.product_type].icon
|
|
|
+ v.icon = _this.imgMap[v.product_type].icon
|
|
|
}
|
|
|
v.memberInfo = {
|
|
|
- level: this.bigIndexMap[v.filter.level],
|
|
|
+ level: _this.bigIndexMap[v.filter.level],
|
|
|
cycle: '-',
|
|
|
endTime: '-'
|
|
|
}
|
|
@@ -886,7 +887,7 @@
|
|
|
if (v.product_type === '大会员-子账号') {
|
|
|
// 大会员子账号
|
|
|
v.memberChildInfo = {
|
|
|
- level: this.bigIndexMap[v.filter.level],
|
|
|
+ level: _this.bigIndexMap[v.filter.level],
|
|
|
endTime: '',
|
|
|
fee: v.filter.pay_sub_num,
|
|
|
free: v.filter.free_sub_num
|
|
@@ -899,7 +900,7 @@
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
- mounted () {
|
|
|
+ mounted: function () {
|
|
|
this.changeAjaxParams({
|
|
|
tabIndex: 0,
|
|
|
pageNum: 1
|
|
@@ -913,7 +914,7 @@
|
|
|
var prodMoney100 = (order_money * 100) + (discount_price * 100)
|
|
|
return prodMoney100 / 100
|
|
|
},
|
|
|
- goPay (item) {
|
|
|
+ goPay: function (item) {
|
|
|
var href = ''
|
|
|
switch (item.product_type) {
|
|
|
case '历史数据': {
|
|
@@ -976,7 +977,7 @@
|
|
|
}
|
|
|
location.href = href
|
|
|
},
|
|
|
- goCancel (item) {
|
|
|
+ goCancel: function (item) {
|
|
|
var _this = this
|
|
|
$.confirm({
|
|
|
title: '订单取消',
|
|
@@ -1025,7 +1026,7 @@
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- goInvoice (item) {
|
|
|
+ goInvoice: function (item) {
|
|
|
if (item.applybill_status === 0) {
|
|
|
if (item.product_type === '中标必听课') {
|
|
|
var href = ''
|
|
@@ -1049,7 +1050,7 @@
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- goShowTipForInvoice (str) {
|
|
|
+ goShowTipForInvoice: function (str) {
|
|
|
var tempStr = str || '您已开具发票<br>如有问题请联系客服<br>400-108-6670'
|
|
|
var showHtml = '<div style="width: 100%;height: 100%;z-index: 999; position: absolute;top: 0;background: rgba(0, 0, 0, 0.65);"> <div style="position: fixed;z-index: 9999;width: 540px;height: 262px;left: 50%;top: 30%;margin-left: -270px;background-color: #fff;border-radius: 6px;padding: 32px;display: flex;flex-direction: column;justify-items: center;align-items: center;"> <div class="invoice_title" style="color: #1D1D1D;font-size: 18px;line-height: 28px;">提示</div> <div class="invoice_body" style="height: 78px;margin: 20px 0px;font-size: 14px;line-height: 24px;text-align: center;">'+tempStr+'</div> <div class="invoice_control" style="width: 132px;height: 36px;text-align: center;background: #2CB7CA;border-radius: 6px;font-size: 16px;line-height: 36px;color: #FFFFFF;cursor: pointer;" onclick="document.querySelector(\'#invoice_tip\').remove()" > 我知道了 </div> </div>\n</div>'
|
|
|
var div_invoice_tip = document.createElement('div');
|
|
@@ -1058,7 +1059,7 @@
|
|
|
document.body.appendChild(div_invoice_tip)
|
|
|
return
|
|
|
},
|
|
|
- goLookInvoice (item) {
|
|
|
+ goLookInvoice: function (item) {
|
|
|
var href = ''
|
|
|
switch (item.product_type) {
|
|
|
case '中标必听课': {
|
|
@@ -1076,7 +1077,7 @@
|
|
|
}
|
|
|
location.href = href
|
|
|
},
|
|
|
- goOpenInvoice (code) {
|
|
|
+ goOpenInvoice: function (code) {
|
|
|
$.post("/subscribepay/orderListDetails/isOver", {"order_code": code}, function (r) {
|
|
|
if (r.status !== 1) {
|
|
|
window.open("/front/order/invoicetimeOut", '_self');
|
|
@@ -1085,7 +1086,7 @@
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- goDetail (item) {
|
|
|
+ goDetail: function (item) {
|
|
|
var href = ''
|
|
|
switch (item.product_type) {
|
|
|
case '历史数据': {
|
|
@@ -1147,7 +1148,7 @@
|
|
|
}
|
|
|
window.open(href)
|
|
|
},
|
|
|
- goDeleteOrder (item) {
|
|
|
+ goDeleteOrder: function (item) {
|
|
|
var _this = this
|
|
|
$.confirm({
|
|
|
title: '订单删除',
|
|
@@ -1195,7 +1196,7 @@
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- ajaxData () {
|
|
|
+ ajaxData: function () {
|
|
|
var _this = this
|
|
|
$.ajax({
|
|
|
type: "post",
|
|
@@ -1226,7 +1227,7 @@
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- changeAjaxParams (data) {
|
|
|
+ changeAjaxParams: function (data) {
|
|
|
if (typeof data.tabIndex !== 'undefined') {
|
|
|
this.ind = data.tabIndex
|
|
|
}
|