|
@@ -95,9 +95,9 @@
|
|
继续浏览
|
|
继续浏览
|
|
</button>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
- {{else if eq .T.doType "dataPack"}}
|
|
|
|
|
|
+ {{else if or .T.doType "dataPack" .T.doType "areaPack"}}
|
|
<div class="bottom_button j-button-group">
|
|
<div class="bottom_button j-button-group">
|
|
- <button id ="order" class="j-button-confirm" onclick="window.location.href = '/jyapp/common/dataPack/orderDetail?order_code={{.T.orderCode}}'">
|
|
|
|
|
|
+ <button id ="order" class="j-button-confirm" onclick="window.location.href = '/jyapp/common/{{.T.doType}}/orderDetail?order_code={{.T.orderCode}}'">
|
|
查看订单
|
|
查看订单
|
|
</button>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
@@ -136,6 +136,36 @@
|
|
allTotal = Number(allTotal) + Number(orderFilter.give_cycle)
|
|
allTotal = Number(allTotal) + Number(orderFilter.give_cycle)
|
|
}
|
|
}
|
|
$('.info-box .info-item').text('数据流量包:+' + allTotal)
|
|
$('.info-box .info-item').text('数据流量包:+' + allTotal)
|
|
|
|
+ } else if (productType === 'areaPack') {
|
|
|
|
+ // https://showdoc.jydev.jianyu360.com/web/#/67?page_id=891
|
|
|
|
+ // {
|
|
|
|
+ // num: 0, // 购买的数量 -1全国
|
|
|
|
+ // ordertype: 1, // 1正常购买 2升级 3续费
|
|
|
|
+ // cycleunit: 0, // 日期单位 1月 2季 3年
|
|
|
|
+ // OldNum: 0, // 升级前购买的省份数量
|
|
|
|
+ // }
|
|
|
|
+ var titleMap = {
|
|
|
|
+ 1: '购买',
|
|
|
|
+ 2: '升级',
|
|
|
|
+ 3: '续费'
|
|
|
|
+ }
|
|
|
|
+ setHeaderTitle(titleMap[orderFilter.ordertype] + $('.header-title').text())
|
|
|
|
+ var cycleType = ' 个月'
|
|
|
|
+ if (orderFilter.cycleunit == 2) {
|
|
|
|
+ cycleType = ' 季'
|
|
|
|
+ } else if (orderFilter.cycleunit == 3) {
|
|
|
|
+ cycleType = ' 年'
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ var html = `${titleMap[orderFilter.ordertype]}省份数量:<span class="highlight-text">${orderFilter.num === -1 ? '全国' : orderFilter.num}</span>${orderFilter.num === -1 ? '' : ' 个省'}`
|
|
|
|
+ html += ` | `
|
|
|
|
+ html += `订阅周期:`
|
|
|
|
+ if (orderFilter.ordertype == 2) {
|
|
|
|
+ html += `不延期`
|
|
|
|
+ } else {
|
|
|
|
+ html += `<span class="highlight-text">1</span>${ cycleType }`
|
|
|
|
+ }
|
|
|
|
+ $('.info-box .info-item').html(html)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -168,6 +198,12 @@
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
|
|
|
|
+ function setHeaderTitle (title) {
|
|
|
|
+ if (!title) return
|
|
|
|
+ document.title = title
|
|
|
|
+ $('.header-title').text(title)
|
|
|
|
+ }
|
|
|
|
+
|
|
function formatMoney(s, n) {
|
|
function formatMoney(s, n) {
|
|
s = s / 100
|
|
s = s / 100
|
|
if (n === undefined) {
|
|
if (n === undefined) {
|
|
@@ -207,7 +243,7 @@
|
|
var money = t.split('').reverse().join('') + point + right;
|
|
var money = t.split('').reverse().join('') + point + right;
|
|
return money;
|
|
return money;
|
|
}
|
|
}
|
|
- //获取url参数
|
|
|
|
|
|
+ //获取url参数
|
|
function getParam(name) {
|
|
function getParam(name) {
|
|
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
|
|
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
|
|
var r = window.location.search.substr(1).match(reg); //获取url中"?"符后的字符串并正则匹配
|
|
var r = window.location.search.substr(1).match(reg); //获取url中"?"符后的字符串并正则匹配
|