|
@@ -45,6 +45,11 @@
|
|
|
<p style="margin-top: 6px;"> 充值成功!</p>
|
|
|
<p class="datapackage-money-tip-group">¥<span></span></p>
|
|
|
<p class="datapackage-tip-group">数据流量包+<span></span>条</p>
|
|
|
+ {{else if eq .T.orderType "filePack"}}
|
|
|
+ <p style="margin-top: 6px;"> 充值成功!</p>
|
|
|
+ <p class="file-info datapackage-money-tip-group">¥<span name="file-price"></span></p>
|
|
|
+ <p class="file-info datapackage-tip-group"><span name="file-num"></span>个附件下载</p>
|
|
|
+ <p class="file-info datapackage-tip-group">有效期至<span name="file-time"></span></p>
|
|
|
{{else}}
|
|
|
<p>支付成功!</p>
|
|
|
{{end}}
|
|
@@ -107,6 +112,38 @@
|
|
|
{{include "/common/pcbottom.html"}}
|
|
|
<script type="text/javascript">
|
|
|
var myPageNavIsNormal = true;
|
|
|
+ var orderType = {{.T.orderType}}
|
|
|
+ if (orderType === 'filePack') {
|
|
|
+ getFilePackInfo()
|
|
|
+ }
|
|
|
+ function getFilePackInfo () {
|
|
|
+ $.ajax({
|
|
|
+ type: 'POST',
|
|
|
+ url: '/subscribepay/orderListDetails/getOrderPayAllMsg',
|
|
|
+ data: {
|
|
|
+ orderCode: {{.T.orderCode}}
|
|
|
+ },
|
|
|
+ success: function (res) {
|
|
|
+ if (res && res.errMsg === '' && res.data) {
|
|
|
+ console.log(res.data)
|
|
|
+ try {
|
|
|
+ switch (res.data.order.product_type) {
|
|
|
+ case '附件下载包': {
|
|
|
+ var tempNode = $('.file-info')
|
|
|
+ var tempInfo = JSON.parse(res.data.order.filter)
|
|
|
+ tempNode.find('span[name="file-price"]').text(res.data.order.pay_money / 100)
|
|
|
+ tempNode.find('span[name="file-num"]').text('+' + tempInfo.num)
|
|
|
+ tempNode.find('span[name="file-time"]').text(tempInfo.validTime.replace(/-/g, '/'))
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } catch (e) {
|
|
|
+ console.warn(e)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
$(function () {
|
|
|
var payway = getParam('payway')
|
|
|
if (payway) {
|