|
@@ -1,2167 +1,144 @@
|
|
|
-<html>
|
|
|
-<head>
|
|
|
- <title>我的订单</title>
|
|
|
- <meta name="viewport" content="width=device-width,initial-scale=1.0">
|
|
|
- <meta HTTP-EQUIV="pragma" CONTENT="no-cache">
|
|
|
- <meta HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
|
|
|
- <meta HTTP-EQUIV="expires" CONTENT="0">
|
|
|
- <script src="{{Msg "seo" "cdn"}}/js/rem.js?v={{Msg "seo" "version"}}"></script>
|
|
|
- <script src="https://cdn-common.jianyu360.com/cdn/lib/jquery/3.6.0/jquery.min.js"></script>
|
|
|
- <script src="{{Msg "seo" "cdn"}}/js/dropload.js?v={{Msg "seo" "version"}}"></script>
|
|
|
- <script src="//cdn.bootcss.com/jquery-confirm/3.1.0/jquery-confirm.min.js"></script>
|
|
|
- <script src="{{Msg "seo" "cdn"}}/wxswordfish/share.js?v={{Msg "seo" "version"}}"></script>
|
|
|
- {{include "/common/weixin.html"}}
|
|
|
- <script src="{{Msg "seo" "cdn"}}/vipsubscribe/js/common.js"></script>
|
|
|
- <script src="{{Msg "seo" "cdn"}}/vipsubscribe/js/weui.min.js?v={{Msg "seo" "version"}}"></script>
|
|
|
- <link rel="stylesheet" href="{{Msg "seo" "cdn"}}/wxCommonPay/css/weui.min.css?v={{Msg "seo" "version"}}">
|
|
|
- <link rel="stylesheet" type="text/css"
|
|
|
- href="{{Msg "seo" "cdn"}}/wx_dataExport/css/base_myorder.css?v={{Msg "seo" "version"}}"/>
|
|
|
- <link rel="stylesheet" type="text/css"
|
|
|
- href="{{Msg "seo" "cdn"}}/wxCommonPay/iconfont/iconfont.css?v={{Msg "seo" "version"}}"/>
|
|
|
- <link rel="stylesheet" href="{{Msg "seo" "cdn"}}/css/dropload.css?v={{Msg "seo" "version"}}">
|
|
|
- <link href="//cdn.bootcss.com/jquery-confirm/3.1.0/jquery-confirm.min.css" rel="stylesheet">
|
|
|
- <!--2.8.8-->
|
|
|
- <link rel="stylesheet" href="{{Msg "seo" "cdn"}}/wxCommonPay/css/order_list.css?v={{Msg "seo" "version"}}">
|
|
|
- <style>
|
|
|
- #order_list .main .tabs .card .card-content .price {
|
|
|
- margin-bottom: 0;
|
|
|
- }
|
|
|
-
|
|
|
- /* vip订阅原价 */
|
|
|
- .origin-price-container {
|
|
|
- display: inline-block;
|
|
|
- margin-top: .06rem;
|
|
|
- margin-right: .1rem;
|
|
|
- color: #9B9CA3;
|
|
|
- font-size: .22rem;
|
|
|
- }
|
|
|
-
|
|
|
- .origin-price-container .origin-price {
|
|
|
- text-decoration: line-through;
|
|
|
- }
|
|
|
-
|
|
|
- .ellipsis {
|
|
|
- overflow: hidden;
|
|
|
- text-overflow: ellipsis;
|
|
|
- white-space: nowrap;
|
|
|
- }
|
|
|
-
|
|
|
- /* 超过2行省略号显示 */
|
|
|
- .ellipsis-2 {
|
|
|
- overflow: hidden;
|
|
|
- text-overflow: ellipsis;
|
|
|
- display: -webkit-box;
|
|
|
- -webkit-line-clamp: 2;
|
|
|
- -webkit-box-orient: vertical;
|
|
|
- }
|
|
|
-
|
|
|
- /* 统一弹框头部样式 android ios*/
|
|
|
- .weui-dialog__title {
|
|
|
- font-weight: 600 !important;
|
|
|
- font-size: 18px !important;
|
|
|
- }
|
|
|
-
|
|
|
- .weui-dialog__hd {
|
|
|
- text-align: center !important;
|
|
|
- }
|
|
|
-
|
|
|
- .weui-dialog__bd {
|
|
|
- line-height: 24px;
|
|
|
- font-weight: normal !important;
|
|
|
- }
|
|
|
-
|
|
|
+<!DOCTYPE html>
|
|
|
+<html lang="zh-CN">
|
|
|
|
|
|
- .media-info .buchongbao:before {
|
|
|
- content: '';
|
|
|
- display: inline-block;
|
|
|
- width: 2px;
|
|
|
- height: 2px;
|
|
|
- background-color: #5F5E64;
|
|
|
- vertical-align: middle;
|
|
|
- margin-right: 7px;
|
|
|
- border-radius: 4px;
|
|
|
- }
|
|
|
- .discount .current{
|
|
|
- font-size:.2rem !important;
|
|
|
- margin-right: .1rem;
|
|
|
- line-height: .28rem;
|
|
|
- }
|
|
|
- .discount .current:nth-child(1){
|
|
|
- border: 1px solid rgba(0, 0, 0, 0.1);
|
|
|
- border-radius: 8px;
|
|
|
- padding: .02rem .16rem;
|
|
|
- }
|
|
|
- .discount .current:nth-child(2){
|
|
|
- border: 1px solid rgba(251,72,61,0.10);
|
|
|
- border-radius: 12px;
|
|
|
- padding: .02rem .16rem;
|
|
|
- background: rgba(251,72,61,0.10);
|
|
|
- color: #FB483D;
|
|
|
- }
|
|
|
- </style>
|
|
|
+<head>
|
|
|
+ <meta charset="utf-8">
|
|
|
+ <meta name="keywords" content="剑鱼标讯">
|
|
|
+ <meta name="description" content="剑鱼标讯">
|
|
|
+ <meta name="author" content="剑鱼标讯">
|
|
|
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
+ <meta name="viewport"
|
|
|
+ content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
|
|
|
+ <meta name="browsermode" content="application">
|
|
|
+ <meta name="x5-orientation" content="portrait">
|
|
|
+ <meta name="screen-orientation" content="portrait">
|
|
|
+ <meta name="x5-page-mode" content="app">
|
|
|
+ <meta name="apple-mobile-web-app-capable" content="yes">
|
|
|
+ <meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|
|
+ <meta name="format-detection" content="telephone=no">
|
|
|
+ <title>我的订单</title>
|
|
|
+ <!--S-当前页面的css资源-->
|
|
|
+ <link rel="stylesheet" href=//cdn-common.jianyu360.com/cdn/lib/reset-css/5.0.1/reset.min.css />
|
|
|
+ <link rel="stylesheet" href=//cdn-common.jianyu360.com/cdn/lib/vant/2.12.24/lib/index.css />
|
|
|
+ <link rel="stylesheet" href=//cdn-common.jianyu360.com/cdn/lib/vant/2.12.24/lib/icon/local.css />
|
|
|
+ <link rel="stylesheet" href='{{Msg "seo" "cdn"}}/big-member/css/j-icons.css?v={{Msg "seo" "version"}}'>
|
|
|
+ <link rel="stylesheet" href='{{Msg "seo" "cdn"}}/big-member/css/public.css?v={{Msg "seo" "version"}}'>
|
|
|
+ <link rel="stylesheet"
|
|
|
+ href='{{Msg "seo" "cdn"}}/common-module/order-list/css/order-list.css?v={{Msg "seo" "version"}}' />
|
|
|
</head>
|
|
|
+
|
|
|
<body>
|
|
|
-<!-- 加载数据-->
|
|
|
-<div class="loading_">
|
|
|
- <p><span></span></p>
|
|
|
-</div>
|
|
|
-<div id="order_list" class="j-container">
|
|
|
- <main class="main j-body">
|
|
|
- <div class="buttons-tab">
|
|
|
- <ul>
|
|
|
- <li class="tab-link active">全部</li>
|
|
|
- <li class="tab-link ">待付款</li>
|
|
|
- <li class="tab-link ">已完成</li>
|
|
|
- <li class="tab-link ">已取消</li>
|
|
|
- </ul>
|
|
|
- </div>
|
|
|
- <div class="tabs">
|
|
|
- <div class="tab active">
|
|
|
- <div class="card_lists">
|
|
|
+ <div class="j-container order-list-container" id="app" v-cloak>
|
|
|
+ <van-tabs
|
|
|
+ :title-active-color="tabConf.titleActiveColor"
|
|
|
+ :title-inactive-color="tabConf.titleInactiveColor"
|
|
|
+ :line-width="tabConf.lineWidth"
|
|
|
+ :color="tabConf.color"
|
|
|
+ :before-change="beforeTabChange"
|
|
|
+ v-model="tabActiveName"
|
|
|
+ class="j-container"
|
|
|
+ >
|
|
|
+ <van-tab
|
|
|
+ v-for="(item, index) in tabList"
|
|
|
+ :key="index"
|
|
|
+ :title="item.label"
|
|
|
+ :name="item.name">
|
|
|
+ <van-pull-refresh v-model="tabState.refreshing" @refresh="onRefresh">
|
|
|
+ <van-list
|
|
|
+ v-model="tabState.loading"
|
|
|
+ :finished="tabState.finished"
|
|
|
+ :offset="tabState.offset"
|
|
|
+ :finished-text="tabState.list.length === 0 ? '' : '没有更多了'"
|
|
|
+ @load="onLoad"
|
|
|
+ class="more-list"
|
|
|
+ ref="vanList">
|
|
|
+ <div class="order-list">
|
|
|
+ <div
|
|
|
+ class="j-order-card order-list-item"
|
|
|
+ v-for="(item, index) in tabState.list"
|
|
|
+ :order-id="item.order_code"
|
|
|
+ :key="item.order_code + '-' +tabActiveName">
|
|
|
+ <div class="order-item-header">
|
|
|
+ <div class="o-i-h-left">${ calcTime(item) }</div>
|
|
|
+ <div class="o-i-h-right">
|
|
|
+ <div class="order-state-text" :class="item.stateClassName">${ item.stateText }</div>
|
|
|
+ <van-icon name="delete-o" @click="delThisOrder(item, index)"></van-icon>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="order-item-content click-active" @click="toOrderDetail(item)">
|
|
|
+ <div class="img-container">
|
|
|
+ <img :src="item.contentImgUrl" />
|
|
|
+ </div>
|
|
|
+ <div class="content-list" v-if="item.contentList">
|
|
|
+ <div
|
|
|
+ class="content-list-item ellipsis"
|
|
|
+ v-for="(k, i) in item.contentList"
|
|
|
+ :key="i"
|
|
|
+ v-html="k.label + k.split + k.text"
|
|
|
+ ></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="order-item-footer">
|
|
|
+ <div class="o-i-price-container">
|
|
|
+ <div class="discount-info total-price" v-if="item.totalPrice">
|
|
|
+ <div class="text">商品总价:</div>
|
|
|
+ <div class="t-num">¥ ${ item.totalPrice }</div>
|
|
|
+ </div>
|
|
|
+ <div class="discount-info discount-price" v-if="item.discountPrice">
|
|
|
+ <div class="text">优惠金额:</div>
|
|
|
+ <div class="d-num">¥ ${ item.discountPrice }</div>
|
|
|
+ </div>
|
|
|
+ <div class="pay-price">
|
|
|
+ <!-- 已完成订单才有实付价格 -->
|
|
|
+ <div class="text" v-if="item.order_status === 1">实付:</div>
|
|
|
+ <div class="p-num">¥ ${ item.payPrice }</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="o-i-f-button-group">
|
|
|
+ <button
|
|
|
+ class="order-action-button click-active cancel-order"
|
|
|
+ v-if="item.buttonConf.cancelOrderShow"
|
|
|
+ @click="cancelThisOrder(item, index)">取消订单</button>
|
|
|
+ <!-- 已完成订单才能开发票 -->
|
|
|
+ <button
|
|
|
+ class="order-action-button click-active invoke"
|
|
|
+ v-if="item.buttonConf.invokeButtonShow"
|
|
|
+ @click="clickInvoke(item)">${ item.buttonConf.invokeButtonText }</button>
|
|
|
+ <button
|
|
|
+ class="order-action-button click-active pay"
|
|
|
+ v-if="item.buttonConf.payConfirmShow"
|
|
|
+ @click="clickPayConfirm(item)">${ item.buttonConf.payConfirmText }</button>
|
|
|
+ <button
|
|
|
+ class="order-action-button click-active repay"
|
|
|
+ v-if="item.buttonConf.bugAgainShow"
|
|
|
+ @click="clickBuyAgain(item, item.buttonConf)">${ item.buttonConf.bugAgainText }</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </van-list>
|
|
|
+ </van-pull-refresh>
|
|
|
+ <div class="empty-container" v-show="tabState.list.length === 0 && tabState.loaded && !tabState.loading">
|
|
|
+ <div class="empty-content-position">
|
|
|
+ <div class="image">
|
|
|
+ <img src="/jyapp/big-member/image/img-empty.png">
|
|
|
+ </div>
|
|
|
+ <div class="empty-main tip-text">暂无数据</div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </main>
|
|
|
-</div>
|
|
|
-<script src="https://cdn-common.jianyu360.com/cdn/lib/zepto/1.2.0/zepto.min.js"></script>
|
|
|
-<script>
|
|
|
- //ios进入详情页后退不会刷新页面导致orderTabActive没有清,再次进入其他类型订单 展示不对问题
|
|
|
- window.addEventListener('pageshow', function (event) {
|
|
|
- if (event.persisted) {
|
|
|
- location.reload();
|
|
|
- }
|
|
|
- }, false);
|
|
|
-
|
|
|
- var hasNextPage = false;
|
|
|
- var pageIndex = 1;
|
|
|
- var wxflag = "";
|
|
|
- var scrollTop = 0;
|
|
|
- var dataCache = new Array();
|
|
|
- var count = 0;
|
|
|
- var typ = 0;
|
|
|
- var deleteIndex = 0;
|
|
|
- var totalName = "商品总价:"
|
|
|
- var discountName = "优惠金额:"
|
|
|
- var isPayName = "实付:"
|
|
|
-
|
|
|
- initShare({{.T.signature}},{{.T.openid}}, 2, "jy_wxmyorder",{{.T.nickname}},{{.T.avatar}});
|
|
|
-
|
|
|
- //时间格式化
|
|
|
- function timestampToTime(timestamp) {
|
|
|
- var date = new Date(timestamp * 1000);
|
|
|
- Y = date.getFullYear() + '.';
|
|
|
- M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '.';
|
|
|
- D = date.getDate();
|
|
|
- return Y + M + D;
|
|
|
- }
|
|
|
-
|
|
|
- //格式化数字
|
|
|
- function toThousands(num) {
|
|
|
- var num = (num || 0).toString(), result = '';
|
|
|
- while (num.length > 3) {
|
|
|
- result = ',' + num.slice(-3) + result;
|
|
|
- num = num.slice(0, num.length - 3);
|
|
|
- }
|
|
|
- if (num) {
|
|
|
- result = num + result;
|
|
|
- }
|
|
|
- return result;
|
|
|
- }
|
|
|
-
|
|
|
- function appendList(listhtml) {
|
|
|
- $(".card_lists").append(listhtml);
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- function setSessionStorage() {
|
|
|
- sessionStorage.orderScrollTop = $(".main")[0].scrollTop;
|
|
|
- sessionStorage.orderTabActive = $("ul .active").index();
|
|
|
- sessionStorage.orderPageNum = parseInt(pageIndex) - 1;
|
|
|
- sessionStorage.course_order_href = "true";
|
|
|
- }
|
|
|
-
|
|
|
- function onceMore(e) {
|
|
|
- setSessionStorage();
|
|
|
- var orderCode = $(e).parent(".card-footer").prev(".card-content").find("a").attr("eid");
|
|
|
- window.location.href = "/front/wx_dataExport/toSieve?orderCode=" + orderCode;
|
|
|
- }
|
|
|
-
|
|
|
- //续费 1 再次购买 2
|
|
|
- function renewalOrBuyAgain(pattern, e) {
|
|
|
- setSessionStorage();
|
|
|
- var orderCode = $(e).parent(".card-footer").prev(".card-content").find("a").attr("eid");
|
|
|
- if (pattern === 1) {
|
|
|
- window.location.href = "/front/vipsubscribe/vipsubscribe_renew?orderCode" + orderCode;
|
|
|
- } else if (pattern === 2) {
|
|
|
- window.location.href = "/front/vipsubscribe/vipsubscribe_new?orderCode=" + orderCode;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- function deleteOrder(id, obj) {
|
|
|
- typ = $("ul .active").index()
|
|
|
- weui.dialog({
|
|
|
- title: '确定删除订单',
|
|
|
- content: '确定删除订单,删除后无法恢复',
|
|
|
- className: 'custom-dialog',
|
|
|
- buttons: [{
|
|
|
- label: '取消',
|
|
|
- type: 'default',
|
|
|
- onClick: function () {
|
|
|
- }
|
|
|
- }, {
|
|
|
- label: '确定',
|
|
|
- type: 'primary',
|
|
|
- onClick: function () {
|
|
|
- $(".loading_").show();
|
|
|
- $.post("/subscribepay/orderListDetails/deleteOrder", {
|
|
|
- "id": id,
|
|
|
- "pageNum": pageIndex,
|
|
|
- "type": typ,
|
|
|
- "fromPage": "wx"
|
|
|
- }, function (data) {
|
|
|
- $(".loading_").hide();
|
|
|
- if (data && data["success"]) {
|
|
|
- var self = $(obj).parent().parent();
|
|
|
- var parent = self.parent();
|
|
|
- if (self.next().find("a").attr("courseOrder") == "true") {
|
|
|
- self.parent().remove();
|
|
|
- } else {
|
|
|
- deleteIndex = self.index();
|
|
|
- dataCache.splice(deleteIndex, 1)
|
|
|
- //删除索引存入缓存
|
|
|
- sessionStorage.setItem("deleteIndex", deleteIndex);
|
|
|
- if (data.res != null) {
|
|
|
- dataCache.push(data.res[0])
|
|
|
- //hasNextPage=data.hasNextPage;
|
|
|
- hasNextPage = data.nextPage;
|
|
|
- }
|
|
|
- self.parent().remove();
|
|
|
- }
|
|
|
- weui.toast('删除成功', {
|
|
|
- duration: 1500,
|
|
|
- className: 'j-toast',
|
|
|
- callback: function () {
|
|
|
- $(".loading_").show();
|
|
|
- if ($(".card_lists").children("div").length == 0) {
|
|
|
- nodataHtml = ""
|
|
|
- nodataHtml += '<div style="text-align:center;">';
|
|
|
- nodataHtml += '<img src="/wx_dataExport/images/fish.png" style="width: 2.8rem;height: 2.8rem;margin-top: 45%;">'
|
|
|
- nodataHtml += '<div style="color: #888;font-size: .32rem;text-align:center;">暂无数据</div></div>'
|
|
|
- $(".card_lists").append(nodataHtml);
|
|
|
- $(".dropload-down").hide();
|
|
|
- } else {//删除一条数据 往后铺一条数据
|
|
|
- structureHtml(data.res, typ);
|
|
|
- }//铺数据 end
|
|
|
- if (parent.children("div").length < 10) {
|
|
|
- $(".dropload-refresh").text("没有更多了");
|
|
|
- }
|
|
|
- $(".loading_").hide();
|
|
|
- }
|
|
|
- })
|
|
|
- } else {
|
|
|
- alertS("删除失败,请联系管理员!");
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- }]
|
|
|
- });
|
|
|
- }//delete end
|
|
|
-
|
|
|
- //取消订单
|
|
|
- function cancelOrder(id, obj) {
|
|
|
- typ = $("ul .active").index()
|
|
|
- weui.dialog({
|
|
|
- title: '确定取消订单',
|
|
|
- content: '确定取消订单,取消后无法恢复',
|
|
|
- className: 'custom-dialog',
|
|
|
- buttons: [{
|
|
|
- label: '取消',
|
|
|
- type: 'default',
|
|
|
- onClick: function () {
|
|
|
- }
|
|
|
- }, {
|
|
|
- label: '确定',
|
|
|
- type: 'primary',
|
|
|
- onClick: function () {
|
|
|
- $(".loading_").show();
|
|
|
- $.post("/subscribepay/orderListDetails/deleteOrder", {
|
|
|
- "id": id,
|
|
|
- "pageNum": pageIndex,
|
|
|
- "type": typ,
|
|
|
- "cancel": "cancel",
|
|
|
- "fromPage": "wx"
|
|
|
- }, function (data) {
|
|
|
- $(".loading_").hide();
|
|
|
- if (data && data["success"]) {
|
|
|
- weui.toast('取消成功', {
|
|
|
- duration: 1500,
|
|
|
- className: 'j-toast',
|
|
|
- callback: function () {
|
|
|
- $(".loading_").show();
|
|
|
- if (typ === 1) {
|
|
|
- var self = $(obj).parent().parent();
|
|
|
- self.remove();
|
|
|
- }
|
|
|
- $(obj).parent(".card-footer").prev(".card-content").find(".discount").html("");
|
|
|
- var self = $(obj).parent(".card-footer").prev(".card-content").prev(".card-header").children(".notpay");
|
|
|
- self.css("color", "#686868");
|
|
|
- var isVipOrder = $(obj).parent(".card-footer").prev(".card-content").children(".media").attr("isvipOrder");
|
|
|
- var courseOrder = $(obj).parent(".card-footer").prev(".card-content").children(".media").attr("courseOrder");
|
|
|
- var courseOnlineOrder = $(obj).parent(".card-footer").prev(".card-content").children(".media").attr("courseOnlineOrder");
|
|
|
- var courseId = $(obj).parent(".card-footer").prev(".card-content").find("a").attr("eid");
|
|
|
- var isDataReport = $(obj).parent(".card-footer").prev(".card-content").children(".media").attr("datareportOrder");
|
|
|
- //vip订单取消了没有再次购买
|
|
|
- if (isVipOrder != "true") {
|
|
|
- if (courseOrder != "true") {
|
|
|
- self.children().remove();
|
|
|
- self.removeClass("notpay").addClass("cancel_text").append('<span class="status-text">已取消</span><a class="delete_icon" title="删除订单" onclick="deleteOrder(' + id + ',this)"></a>');
|
|
|
- if (courseOnlineOrder == "true" || isDataReport == "true") {
|
|
|
- $(obj).parent(".card-footer").remove();
|
|
|
- } else {
|
|
|
- $(obj).parent(".card-footer").html('<a onclick="onceMore(this)" class="btn cancle">再次购买</a>')
|
|
|
- }
|
|
|
- } else {
|
|
|
- $(obj).parent(".card-footer").html('<a href="/swordfish/course/detail/' + courseId + '" class="btn cancle">再次购买</a>')
|
|
|
- self.children().remove()
|
|
|
- self.removeClass("notpay").addClass("cancel_text").append('<span class="status-text">已取消</span><a class="delete_icon" title="删除订单" onclick="deleteOrder(' + id + ',this)"></a>');
|
|
|
- }
|
|
|
- if ($(".card_lists").children("div").length === 0) {
|
|
|
- nodataHtml = ""
|
|
|
- nodataHtml += '<div style="text-align:center;">';
|
|
|
- nodataHtml += '<img src="/wx_dataExport/images/fish.png?v=51430" style="width: 2.8rem;height: 2.8rem;margin-top: 45%;">'
|
|
|
- nodataHtml += '<div style="color: #888;font-size: .32rem;text-align:center;">暂无数据</div></div>'
|
|
|
- $(".card_lists").append(nodataHtml);
|
|
|
- $(".dropload-down").hide();
|
|
|
- }
|
|
|
- } else {
|
|
|
- $(obj).parent().parent().remove();
|
|
|
- $(".card_lists").empty();
|
|
|
- queryOrder($("ul .active").index(), 10);
|
|
|
- }
|
|
|
- $(".loading_").hide();
|
|
|
- }
|
|
|
- })
|
|
|
- } else {
|
|
|
- alertS("取消失败,请联系管理员!");
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- }]
|
|
|
- });
|
|
|
- }
|
|
|
-
|
|
|
- function alertS(content) {
|
|
|
- $.alert({
|
|
|
- title: "",
|
|
|
- content: content,
|
|
|
- buttons: {
|
|
|
- ok: {
|
|
|
- text: '确定',
|
|
|
- btnClass: 'btn-primary-2'
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
-
|
|
|
- clickFlag = true;
|
|
|
- $(function () {
|
|
|
- sessionStorage.removeItem("applysuccess");
|
|
|
- sessionStorage.removeItem("companyName");
|
|
|
- sessionStorage.removeItem("taxNumer");
|
|
|
-
|
|
|
- $(".buttons-tab .tab-link").each(function () {
|
|
|
- $(".loading_").hide();
|
|
|
- var index = $(this).index();
|
|
|
- $(".buttons-tab .tab-link").eq(0).addClass("active");
|
|
|
- //
|
|
|
- $(this).click(function () {
|
|
|
- $(".loading_").show();
|
|
|
- $(this).addClass("active").siblings().removeClass("active");
|
|
|
- $(".tabs>.tab").eq(index).show().siblings().hide();
|
|
|
- typ = $("ul .active").index();
|
|
|
- $(".card_lists").empty();
|
|
|
- queryOrder(index, 10);
|
|
|
- })
|
|
|
- })
|
|
|
-
|
|
|
-
|
|
|
- //解决苹果手机里面的网页返回不刷新页面的问题
|
|
|
- var browserRule = /^.*((iPhone)|(iPad)|(Safari))+.*$/;
|
|
|
- if (browserRule.test(navigator.userAgent)) {
|
|
|
- window.onpageshow = function (event) {
|
|
|
- if (event.persisted) {
|
|
|
- window.location.reload()
|
|
|
- }
|
|
|
- };
|
|
|
- }
|
|
|
- if (sessionStorage.orderTabActive) {
|
|
|
- $(".buttons-tab .tab-link").eq(sessionStorage.orderTabActive).addClass("active").siblings().removeClass("active");
|
|
|
- typ = Number(sessionStorage.orderTabActive);
|
|
|
- var orderPageNum = parseInt(sessionStorage.orderPageNum);
|
|
|
- queryOrder(sessionStorage.orderTabActive, orderPageNum * 10);
|
|
|
- sessionStorage.removeItem("orderPageNum");
|
|
|
- sessionStorage.removeItem("orderTabActive");
|
|
|
- if (sessionStorage.orderScrollTop) {
|
|
|
- setTimeout(function () {
|
|
|
- $(".main")[0].scrollTop = parseInt(sessionStorage.orderScrollTop);
|
|
|
- }, 500)
|
|
|
- setTimeout(function () {
|
|
|
- sessionStorage.removeItem("orderScrollTop");
|
|
|
- }, 2000)
|
|
|
- }
|
|
|
- } else {
|
|
|
- //后续版本用
|
|
|
- var active = getParam("active");
|
|
|
- if (active) {
|
|
|
- $(".buttons-tab .tab-link").eq(active).addClass("active").siblings().removeClass("active");
|
|
|
- $(".tabs>.tab").eq(active).show().siblings().hide();
|
|
|
- $(".card_lists").empty();
|
|
|
- queryOrder(active, 10);
|
|
|
- } else {
|
|
|
- queryOrder(0, 10);
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
-
|
|
|
- //查询订单ajax
|
|
|
- //typ 0全部 1未支付 2已支付
|
|
|
- function queryOrder(typ, page_size) {
|
|
|
- var result = true;
|
|
|
- $.post("/subscribepay/orderListDetails/myOrder", {
|
|
|
- "type": typ,
|
|
|
- "page_size": page_size,
|
|
|
- "fromPage": "wx"
|
|
|
- }, function (data) {
|
|
|
- console.log(data)
|
|
|
- $(".loading_").hide();
|
|
|
- var list = data.res;
|
|
|
- dataCache = data.res;
|
|
|
- if (page_size != 10) {
|
|
|
- pageIndex = parseInt(page_size / 10) + 1;
|
|
|
- } else {
|
|
|
- pageIndex = 2;
|
|
|
- }
|
|
|
- hasNextPage = data.hasNextPage;
|
|
|
- if (data.res && data.res.length > 0) {
|
|
|
- structureHtml(data.res, typ);
|
|
|
- }
|
|
|
- if ($(".card_lists .card").length === 0) {
|
|
|
- result = false;
|
|
|
- nodataHtml = ""
|
|
|
- nodataHtml += '<div style="text-align:center;">';
|
|
|
- nodataHtml += '<img src="/wx_dataExport/images/fish.png" style="width: 2.8rem;height: 2.8rem;margin-top: 45%;">'
|
|
|
- nodataHtml += '<div style="color: #888;font-size: .32rem;text-align:center;">暂无数据</div></div>'
|
|
|
- $(".card_lists").append(nodataHtml);
|
|
|
- }
|
|
|
-
|
|
|
- if (!result) {
|
|
|
- $(".dropload-down").hide()
|
|
|
- return
|
|
|
- }
|
|
|
- if (hasNextPage) {
|
|
|
- wxflag = $(' .main').dropload({
|
|
|
- scrollArea: $(".main"),
|
|
|
- loadDownFn: function (me) {
|
|
|
- $.post('/subscribepay/orderListDetails/myOrder', {
|
|
|
- "pageNum": pageIndex,
|
|
|
- "type": typ,
|
|
|
- "fromPage": "wx"
|
|
|
- }, function (data) {
|
|
|
- //没有数据
|
|
|
- if (data.res == null || data.res.length == 0) {
|
|
|
- noMoreData(me);
|
|
|
- } else {
|
|
|
- dataCache = dataCache.concat(data.res);
|
|
|
- pageIndex++;
|
|
|
- structureHtml(data.res, typ);
|
|
|
- if (data.hasNextPage) {
|
|
|
- // 每次数据插入,必须重置
|
|
|
- me.resetload();
|
|
|
- } else {
|
|
|
- noMoreData(me);
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
- } else {
|
|
|
- wxflag = $('.main').dropload({
|
|
|
- scrollArea: window,
|
|
|
- loadDownFn: function (me) {
|
|
|
- if (wxflag == null) {
|
|
|
- wxflag = me;
|
|
|
- }
|
|
|
- noMoreData(me);
|
|
|
- }
|
|
|
- });
|
|
|
- noMoreData(wxflag);
|
|
|
- }
|
|
|
- //},500)
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
- var orderHtml = "";
|
|
|
- var iconHtml = "";
|
|
|
-
|
|
|
- function structureHtml(object, typ) {
|
|
|
- var listhtml = '';
|
|
|
- var psss = 0;
|
|
|
- for (var index in object) {
|
|
|
- var obj = object[index];
|
|
|
- var isLiveActive = false;
|
|
|
- if (obj.isLiveActive) {
|
|
|
- isLiveActive = true;
|
|
|
- }
|
|
|
- if (typ === 1 || $(".tab-link.active").index() === 1) { //待付款订单列表页
|
|
|
- if (obj.order_status === -2) {
|
|
|
- continue;
|
|
|
- }
|
|
|
- }
|
|
|
- if (obj.product_type === "历史数据") {
|
|
|
- count++;
|
|
|
- var id = obj.id;
|
|
|
- //订单编号
|
|
|
- var orderCode = obj.order_code;
|
|
|
- //创建时间
|
|
|
- var createTime = obj.create_time;
|
|
|
- createTime = createTime.replace(/-/g, ".");
|
|
|
- //选择时间
|
|
|
- var publishTime = obj.filter_publishtime;
|
|
|
- if (!publishTime) {
|
|
|
- publishTime = "全部";
|
|
|
- } else {
|
|
|
- if (publishTime.length === 11) {
|
|
|
- if (publishTime.slice(0, 1) !== "_") {
|
|
|
- publishTime = timestampToTime(publishTime.slice(0, 10));
|
|
|
- publishTime = publishTime + "-";
|
|
|
- } else {
|
|
|
- publishTime = timestampToTime(publishTime.slice(1, 11));
|
|
|
- publishTime = publishTime + "前全部";
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- //1标准字段包 2高级字段包
|
|
|
- var spec = obj.data_spec;
|
|
|
- if (spec === 1) {
|
|
|
- spec = "标准字段包";
|
|
|
- } else if (spec === 2) {
|
|
|
- spec = "高级字段包";
|
|
|
- }
|
|
|
- //订单总数
|
|
|
- var data_count = obj.data_count;
|
|
|
- //订单金额
|
|
|
- var orderMoney = obj.order_money;
|
|
|
- //金额格式化 小数点前 1,000
|
|
|
- orderMoney = orderMoney + "";
|
|
|
- orderMoney_1 = toThousands(orderMoney.split(".")[0]);
|
|
|
- orderMoney_2 = orderMoney.split(".")[1];
|
|
|
- if (orderMoney_2) {
|
|
|
- orderMoney = orderMoney_1 + "." + orderMoney_2;
|
|
|
- } else {
|
|
|
- orderMoney = orderMoney_1;
|
|
|
- }
|
|
|
- //
|
|
|
- var token = obj.token;
|
|
|
- //订单状态 0待支付 1已完成 -1删除
|
|
|
- var orderStatus = obj.order_status;
|
|
|
- if (sessionStorage && sessionStorage.getItem("paySuccess_" + obj.order_code) != null) {
|
|
|
- orderStatus = sessionStorage.getItem("paySuccess_" + obj.order_code);
|
|
|
- if (sessionStorage.orderTabActive === 1 && orderStatus === 1) {
|
|
|
- gopayIndex = index;
|
|
|
- psss = obj.order_code;
|
|
|
- continue;
|
|
|
- } else {
|
|
|
- sessionStorage.removeItem("paySuccess_" + obj.order_code);
|
|
|
- }
|
|
|
- }
|
|
|
- //优惠
|
|
|
- var discountHtml = ""
|
|
|
- if ((orderStatus === 0||orderStatus === 1)&&obj.discount_price>0){
|
|
|
- var totalPrice = Number(obj.order_money) + Number(obj.discount_price)
|
|
|
- discountHtml = '<p class="discount"><span class="current">'+totalName+'¥' + formatMoney(totalPrice) + '</span>'
|
|
|
- + '<span class="current">'+discountName+'¥' + formatMoney(obj.discount_price) + '</span>'
|
|
|
- }
|
|
|
- if (orderStatus === 0) {
|
|
|
- orderStatus = "待付款"
|
|
|
- orderHtml = "";
|
|
|
- orderHtml += '<span class="status notpay">'
|
|
|
- orderHtml += '<span class="status-text">' + orderStatus + '</span>'
|
|
|
- orderHtml += "<span class=\"delete_icon\" title=\"删除订单\" onclick=\"deleteOrder(" + id + ",this)\"></span></span>";
|
|
|
- iconHtml = ""
|
|
|
- iconHtml += '<div class="card-footer">'
|
|
|
- + '<a class="btn cancle gray-btn" onclick="cancelOrder(' + id + ',this)">取消订单</a>'
|
|
|
- + '<a href="javascript:void(0)" onclick="window.location.href =\'' + "/weixin/pay/checkout_dataexport?orderCode=" + orderCode + '\'" class="btn green-btn">去支付</a>'
|
|
|
- + '</div>'
|
|
|
- } else if (orderStatus === 1) {
|
|
|
- orderStatus = "已完成";
|
|
|
- orderHtml = ""
|
|
|
- orderHtml += ' <span class="status finish">'
|
|
|
- orderHtml += '<span class="status-text">' + orderStatus + '</span>'
|
|
|
- orderHtml += "<a class=\"delete_icon\" title=\"删除订单\" onclick=\"deleteOrder(" + id + ",this)\"></a></span>";
|
|
|
-
|
|
|
- iconHtml = ""
|
|
|
- iconHtml += '<div class="card-footer">'
|
|
|
- //已完成订单 开发票判断 0未申请 1已申请
|
|
|
- var applybill_status = obj.applybill_status;
|
|
|
- if (applybill_status === 0) {
|
|
|
- iconHtml += '<a onclick="invoiceAdd(this)" class="btn gray-btn">开发票</a>'
|
|
|
- iconHtml += '<a onclick="onceMore(this)" class="btn cancle green-btn">再次购买</a>'
|
|
|
- } else if (applybill_status === 1 || applybill_status === 2) {
|
|
|
- iconHtml += '<a onclick="checkinvoice(this,' + applybill_status + ')" class="btn gray-btn">查看发票</a>'
|
|
|
- iconHtml += '<a onclick="onceMore(this)" class="btn cancle green-btn">再次购买</a>'
|
|
|
- }
|
|
|
- iconHtml += '</div>'
|
|
|
- discountHtml +='<span>'+isPayName+'</span>'
|
|
|
- } else if (orderStatus === -2 || orderStatus === -3) {
|
|
|
- orderStatus = "已取消";
|
|
|
- orderHtml = "";
|
|
|
- orderHtml += '<span class="status cancel_text">'
|
|
|
- orderHtml += '<span class="status-text">' + orderStatus + '</span>'
|
|
|
- orderHtml += "<span class=\"delete_icon\" title=\"删除订单\" onclick=\"deleteOrder(" + id + ",this)\"></span></span>";
|
|
|
- iconHtml = "";
|
|
|
- iconHtml += '<div class="card-footer">'
|
|
|
- + '<a onclick="onceMore(this)" class="btn cancle green-btn">再次购买</a>'
|
|
|
- + '</div>'
|
|
|
- }
|
|
|
- discountHtml +='</p>'
|
|
|
- //关键词
|
|
|
- if (obj.filter_keys && obj.filter_keys.split(",").length > 0) {
|
|
|
- var keysHtml = "";
|
|
|
- var keysArr = obj.filter_keys.split(",");
|
|
|
- var keysLen = keysArr.length;
|
|
|
- for (var j = 0; j < keysLen; j++) {
|
|
|
- keysHtml += "<span>" + keysArr[j] + " </span>";
|
|
|
- }
|
|
|
- } else {
|
|
|
- keysHtml = ""
|
|
|
- }
|
|
|
-
|
|
|
- listhtml += '<div class="card">'
|
|
|
- + '<div class="card-header">'
|
|
|
- + '<span class="time" style="color:#888888">' + createTime + '</span>'
|
|
|
- + orderHtml
|
|
|
- + '</div>'
|
|
|
- + '<div class="card-content">'
|
|
|
- + '<a onclick="setSessionStorage()" eid=' + orderCode + ' href="/front/wx_dataExport/wxToOrderDetail?orderCode=' + orderCode + '" class="media">'
|
|
|
- + '<div class="media-img">'
|
|
|
- + '<img src="/dataExport/image/dataOutput.png">'
|
|
|
- + '</div>'
|
|
|
- + '<div class="media-info">'
|
|
|
- + '<p class="item-ifo ellipsis">关键词:' + keysHtml + '</p>'
|
|
|
- + '<p class="item-ifo ellipsis">数据量:' + data_count + '条</p>'
|
|
|
- + '<p class="item-ifo ellipsis">数据规格:' + spec + '</p>'
|
|
|
- + '<p class="item-ifo ellipsis">筛选日期:' + publishTime + '</p>'
|
|
|
- + '</div>'
|
|
|
- + '</a>'
|
|
|
- + '<div class="price">'
|
|
|
- + discountHtml
|
|
|
- + '<strong class="current">¥' + orderMoney + '</strong>'
|
|
|
- + '</div>'
|
|
|
- + '</div>'
|
|
|
- + iconHtml
|
|
|
- + '</div>'
|
|
|
- } else if ((obj.product_type === "vip订阅") || (obj.product_type === "VIP订阅")) {
|
|
|
- if (typ === 1) { //待付款订单列表页
|
|
|
- if (obj.order_status === -2) {
|
|
|
- continue;
|
|
|
- }
|
|
|
- }
|
|
|
- count++;
|
|
|
- var id_vip = obj.id;
|
|
|
- //订单编号
|
|
|
- var orderCode_vip = obj.order_code;
|
|
|
- //创建时间
|
|
|
- var createTime_vip = obj.create_time;
|
|
|
- createTime_vip = createTime_vip.replace(/-/g, ".")
|
|
|
- //筛选条件
|
|
|
- var filter_vip = JSON.parse(obj.filter);
|
|
|
- var newbuyset = filter_vip.newBuyset;
|
|
|
- //判断该订单是否是升级订单
|
|
|
- var vip_type = obj.vip_type;
|
|
|
- var region_vip = ""
|
|
|
- if ((vip_type !== 2) && (vip_type !== 1)) {
|
|
|
- //地区
|
|
|
- if (!$.isEmptyObject(newbuyset)) { //不为空
|
|
|
- if (newbuyset.areacount !== -1) {
|
|
|
- var newcitys = newbuyset.newcitys;
|
|
|
- var scatter = newcitys.length;//分布
|
|
|
- var citynum = 0;
|
|
|
- for (var k in newcitys) {
|
|
|
- citynum += newcitys[k];
|
|
|
- }
|
|
|
- if (newbuyset.areacount > 0) {
|
|
|
- region_vip = newbuyset.areacount + "个省级区域";
|
|
|
- if (citynum !== 0) {
|
|
|
- region_vip += "、" + citynum + "个地市";
|
|
|
- }
|
|
|
- } else {
|
|
|
- region_vip += citynum + "个地市";
|
|
|
- }
|
|
|
- } else {
|
|
|
- region_vip = "全国";
|
|
|
- }
|
|
|
- //行业
|
|
|
- var industry_vip = newbuyset.buyerclasscount; //数组
|
|
|
- if (industry_vip === -1) {
|
|
|
- industry_vip = "全行业";
|
|
|
- } else {
|
|
|
- industry_vip = industry_vip + "个行业";
|
|
|
- }
|
|
|
- } else {
|
|
|
- var region_vipArr = filter_vip.area;
|
|
|
- var province_length = 0;
|
|
|
- var city_length = 0;
|
|
|
- if (JSON.stringify(region_vipArr) !== JSON.stringify({})) {
|
|
|
- for (i in region_vipArr) {
|
|
|
- if (region_vipArr[i].length === 0) {
|
|
|
- province_length++;
|
|
|
- } else {
|
|
|
- city_length += region_vipArr[i].length;
|
|
|
- }
|
|
|
- }
|
|
|
- } else {
|
|
|
- region_vip = "全国";
|
|
|
- }
|
|
|
- if ((province_length !== 0) && (city_length !== 0)) {
|
|
|
- region_vip = province_length + "个省级区域、" + city_length + "个地市";
|
|
|
- } else if ((province_length === 0) && (city_length !== 0)) {
|
|
|
- region_vip = city_length + "个地市";
|
|
|
- } else if ((province_length !== 0) && (city_length === 0)) {
|
|
|
- region_vip = province_length + "个省级区域";
|
|
|
- }
|
|
|
- //行业
|
|
|
- var industry_vip = filter_vip.industry.length; //数组
|
|
|
- if (industry_vip === 0) {
|
|
|
- industry_vip = "全行业";
|
|
|
- } else {
|
|
|
- industry_vip = industry_vip + "个行业";
|
|
|
- }
|
|
|
- }
|
|
|
- var cyclecount_vip = filter_vip.cyclecount; //时长
|
|
|
- var cycleunit_vip = filter_vip.cycleunit;//单位 1:年 2:月 3:天 4:季
|
|
|
- //订阅周期
|
|
|
- var effectiveduration_vip = ""
|
|
|
- if ((obj.vip_starttime) && (obj.vip_endtime)) {
|
|
|
- var start_time_vip = obj.vip_starttime;
|
|
|
- var end_time_vip = obj.vip_endtime;
|
|
|
- var start_time_arr = start_time_vip.split(" ")[0].split("-")
|
|
|
- var end_time_arr = end_time_vip.split(" ")[0].split("-")
|
|
|
- var start_year = start_time_arr[0];
|
|
|
- var start_month = start_time_arr[1];
|
|
|
- var end_year = end_time_arr[0];
|
|
|
- var end_month = end_time_arr[1];
|
|
|
-
|
|
|
- var year = 0;
|
|
|
- var month = 0;
|
|
|
- if (end_year > start_year) {
|
|
|
- if (end_month > start_month) {
|
|
|
- year = end_year - start_year;
|
|
|
- month = end_month - start_month;
|
|
|
- } else {
|
|
|
- year = end_year - start_year - 1;
|
|
|
- month = 12 + Number(end_month) - start_month;
|
|
|
- if (month === 12) {
|
|
|
- year = Number(year) + 1;
|
|
|
- month = 0;
|
|
|
- }
|
|
|
- }
|
|
|
- } else if (end_year === start_year) {
|
|
|
- month = end_month - start_month;
|
|
|
- }
|
|
|
-
|
|
|
- if (year !== 0 && month !== 0) {
|
|
|
- effectiveduration_vip = year + "年" + month + "个月";
|
|
|
- } else if (year !== 0 && month === 0) {
|
|
|
- effectiveduration_vip = year + "年";
|
|
|
- } else if (year === 0 && month !== 0) {
|
|
|
- effectiveduration_vip = month + "个月";
|
|
|
- }
|
|
|
- if (cycleunit_vip === 3) {
|
|
|
- effectiveduration_vip = cyclecount_vip + "天";
|
|
|
- }else if (cycleunit_vip === 4) {
|
|
|
- effectiveduration_vip = cyclecount_vip + "季";
|
|
|
- }
|
|
|
- } else {
|
|
|
- if (cycleunit_vip === 1) {
|
|
|
- effectiveduration_vip = cyclecount_vip + "年";
|
|
|
- } else if (cycleunit_vip === 2) {
|
|
|
- effectiveduration_vip = cyclecount_vip + "个月"
|
|
|
- } else if (cycleunit_vip === 3) {
|
|
|
- effectiveduration_vip = cyclecount_vip + "天";
|
|
|
- } else if (cycleunit_vip === 4) {
|
|
|
- effectiveduration_vip = cyclecount_vip + "季";
|
|
|
- }
|
|
|
- }
|
|
|
- //试用用户生成订单 周期
|
|
|
- if (effectiveduration_vip === "") {
|
|
|
- if (cycleunit_vip === 1) {
|
|
|
- effectiveduration_vip = cyclecount_vip + "年";
|
|
|
- } else if (cycleunit_vip === 2) {
|
|
|
- effectiveduration_vip = cyclecount_vip + "个月"
|
|
|
- } else if (cycleunit_vip === 3) {
|
|
|
- effectiveduration_vip = cyclecount_vip + "天";
|
|
|
- } else if (cycleunit_vip === 4) {
|
|
|
- effectiveduration_vip = cyclecount_vip + "季";
|
|
|
- }
|
|
|
- }
|
|
|
- } else if (vip_type === 2) {
|
|
|
- //新增全部行业:-1 新增部分行业:123 无新增:0
|
|
|
- //新增全国{"province":0,"city":0} 无新增:{}
|
|
|
- //区域
|
|
|
- var filterObj = filter_vip;
|
|
|
- if (!$.isEmptyObject(newbuyset)) { //不为空
|
|
|
- if (newbuyset.areacount !== -1) {
|
|
|
- var newcitys = newbuyset.newcitys;
|
|
|
- var scatter = newcitys.length;//分布
|
|
|
- var citynum = 0;
|
|
|
- for (var k in newcitys) {
|
|
|
- citynum += newcitys[k];
|
|
|
- }
|
|
|
- if (newbuyset.areacount > 0) {
|
|
|
- region_vip = newbuyset.areacount + "个省级区域";
|
|
|
- if (citynum != 0) {
|
|
|
- region_vip += "、" + citynum + "个地市";
|
|
|
- }
|
|
|
- } else {
|
|
|
- region_vip += citynum + "个地市";
|
|
|
- }
|
|
|
- } else {
|
|
|
- region_vip = "全国";
|
|
|
- }
|
|
|
- var buyerclasscount = newbuyset.buyerclasscount;
|
|
|
- if (buyerclasscount > 3) {
|
|
|
- buyerclasscount = filterObj.industry.length;
|
|
|
- industry_vip = "全行业(" + buyerclasscount + "个行业)";
|
|
|
- } else {
|
|
|
- industry_vip = buyerclasscount + "个行业";
|
|
|
- }
|
|
|
- if (buyerclasscount === -1) {
|
|
|
- industry_vip = "全行业";
|
|
|
- }
|
|
|
- } else {
|
|
|
- if (!$.isEmptyObject(filterObj.addareacount)) {
|
|
|
- if ((filterObj.addareacount.province === 0) && (filterObj.addareacount.city === 0)) {
|
|
|
- region_vip = "全国";
|
|
|
- }
|
|
|
- if ((filterObj.addareacount.province !== 0) && (filterObj.addareacount.city === 0)) {
|
|
|
- region_vip = filterObj.addareacount.province + "个省级区域";
|
|
|
- }
|
|
|
- if ((filterObj.addareacount.province === 0) && (filterObj.addareacount.city !== 0)) {
|
|
|
- region_vip = filterObj.addareacount.city + "个地市";
|
|
|
- }
|
|
|
- if ((filterObj.addareacount.province !== 0) && (filterObj.addareacount.city !== 0)) {
|
|
|
- region_vip = filterObj.addareacount.province + "个省级区域、" + filterObj.addareacount.city + "个地市";
|
|
|
- }
|
|
|
- } else {
|
|
|
- region_vip = "无";
|
|
|
- }
|
|
|
- //行业
|
|
|
- var industry_vip = "";
|
|
|
- industry_vip = filterObj.addbuyerclasscount + "个行业";
|
|
|
- if (filterObj.addbuyerclasscount === 0) {
|
|
|
- industry_vip = "无";
|
|
|
- }
|
|
|
- if (filterObj.addbuyerclasscount === -1) {
|
|
|
- industry_vip = "全行业";
|
|
|
- }
|
|
|
- }
|
|
|
- //延长周期
|
|
|
- var effectiveduration_vip = "";
|
|
|
- if (filterObj.cycleunit === 1) {
|
|
|
- effectiveduration_vip = filterObj.cyclecount + "年";
|
|
|
- } else if (filterObj.cycleunit === 2) {
|
|
|
- effectiveduration_vip = filterObj.cyclecount + "个月";
|
|
|
- } else if (filterObj.cycleunit === 3) {
|
|
|
- effectiveduration_vip = filterObj.cyclecount + "天";
|
|
|
- } else if (filterObj.cycleunit === 4) {
|
|
|
- effectiveduration_vip = filterObj.cyclecount + "季";
|
|
|
- } else if (filterObj.cycleunit === -1) {
|
|
|
- effectiveduration_vip = "不延期";
|
|
|
- } else {
|
|
|
- if ((obj.vip_starttime !== undefined) && (obj.vip_endtime !== undefined)) {
|
|
|
- var start_time_vip = obj.vip_starttime;
|
|
|
- var end_time_vip = obj.vip_endtime;
|
|
|
- var start_time_arr = start_time_vip.split(" ")[0].split("-")
|
|
|
- var end_time_arr = end_time_vip.split(" ")[0].split("-")
|
|
|
- var start_year = start_time_arr[0];
|
|
|
- var start_month = start_time_arr[1];
|
|
|
- var end_year = end_time_arr[0];
|
|
|
- var end_month = end_time_arr[1];
|
|
|
-
|
|
|
- var year = 0;
|
|
|
- var month = 0;
|
|
|
- if (end_year > start_year) {
|
|
|
- if (end_month > start_month) {
|
|
|
- year = end_year - start_year;
|
|
|
- month = end_month - start_month;
|
|
|
- } else {
|
|
|
- year = end_year - start_year - 1;
|
|
|
- month = 12 + Number(end_month) - start_month;
|
|
|
- if (month === 12) {
|
|
|
- year = Number(year) + 1;
|
|
|
- month = 0;
|
|
|
- }
|
|
|
- }
|
|
|
- } else if (end_year === start_year) {
|
|
|
- month = end_month - start_month;
|
|
|
- }
|
|
|
-
|
|
|
- if (year !== 0 && month !== 0) {
|
|
|
- effectiveduration_vip = year + "年" + month + "个月";
|
|
|
- } else if (year !== 0 && month === 0) {
|
|
|
- effectiveduration_vip = year + "年";
|
|
|
- } else if (year === 0 && month !== 0) {
|
|
|
- effectiveduration_vip = month + "个月";
|
|
|
- }
|
|
|
- if (cycleunit_vip === 3) {
|
|
|
- effectiveduration_vip = cyclecount_vip + "天";
|
|
|
- }else if (cycleunit_vip === 4) {
|
|
|
- effectiveduration_vip = cyclecount_vip + "季";
|
|
|
- }
|
|
|
- } else {
|
|
|
- if (cycleunit_vip === 1) {
|
|
|
- effectiveduration_vip = cyclecount_vip + "年";
|
|
|
- } else if (cycleunit_vip === 2) {
|
|
|
- effectiveduration_vip = cyclecount_vip + "个月"
|
|
|
- } else if (cycleunit_vip === 3) {
|
|
|
- effectiveduration_vip = cyclecount_vip + "天";
|
|
|
- } else if (cycleunit_vip === 4) {
|
|
|
- effectiveduration_vip = cyclecount_vip + "季";
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- //续费升级逻辑修改后判断是否不延期
|
|
|
- if (filterObj.cycleunit === 0 && filterObj.cyclecount === 0) {
|
|
|
- effectiveduration_vip = "不延期";
|
|
|
- }
|
|
|
- } else if (vip_type === 1) {
|
|
|
- filter_vip = JSON.parse(obj.filter);
|
|
|
- var renewal_market = 0; //续费市级地区
|
|
|
- var buyset = filter_vip.buyset;
|
|
|
- if ($.isEmptyObject(newbuyset)) {
|
|
|
- //续费订单根据buyset 中ciyts判断 老订单为citys 新订单为newcitys 续费以外根据newbuyset判断
|
|
|
- if (buyset.ciyts !== undefined) {
|
|
|
- if (buyset.areacount === -1) {
|
|
|
- region_vip = "全国";
|
|
|
- } else {
|
|
|
- if (!$.isEmptyObject(buyset.citys)) {
|
|
|
- for (var key in buyset.citys) {
|
|
|
- renewal_market += (buyset.citys[key]);
|
|
|
- }
|
|
|
- }
|
|
|
- //
|
|
|
- var areaText = "";
|
|
|
- if ((buyset.areacount !== 0) && (renewal_market !== 0)) {
|
|
|
- region_vip = buyset.areacount + "个省级地区、" + renewal_market + "个地市";
|
|
|
- } else if ((buyset.areacount === 0) && (renewal_market !== 0)) {
|
|
|
- region_vip = renewal_market + "个地市";
|
|
|
- } else if ((buyset.areacount !== 0) && (renewal_market === 0)) {
|
|
|
- region_vip = buyset.areacount + "个省级地区";
|
|
|
- }
|
|
|
- }
|
|
|
- if (buyset.buyerclasscount === -1) {
|
|
|
- industry_vip = "全行业";
|
|
|
- } else {
|
|
|
- industry_vip = buyset.buyerclasscount + "个行业";
|
|
|
- }
|
|
|
- }
|
|
|
- } else {
|
|
|
- if (newbuyset.areacount !== -1) {
|
|
|
- var newcitys = newbuyset.newcitys;
|
|
|
- var scatter = newcitys.length;//分布
|
|
|
- var citynum = 0;
|
|
|
- for (var k in newcitys) {
|
|
|
- citynum += newcitys[k];
|
|
|
- }
|
|
|
- if (newbuyset.areacount > 0) {
|
|
|
- region_vip = newbuyset.areacount + "个省级区域";
|
|
|
- if (citynum !== 0) {
|
|
|
- region_vip += "、" + citynum + "个地市";
|
|
|
- }
|
|
|
- } else {
|
|
|
- if (citynum !== 0) {
|
|
|
- region_vip += citynum + "个地市";
|
|
|
- }
|
|
|
- }
|
|
|
- } else {
|
|
|
- region_vip = "全国";
|
|
|
- }
|
|
|
- if (newbuyset.buyerclasscount !== -1) {
|
|
|
- industry_vip = newbuyset.buyerclasscount + "个行业";
|
|
|
- } else {
|
|
|
- industry_vip = "全行业";
|
|
|
- }
|
|
|
- }
|
|
|
- //订阅周期
|
|
|
- var effectiveduration_vip = ""
|
|
|
- if ((obj.vip_starttime !== undefined) && (obj.vip_endtime !== undefined)) {
|
|
|
- var start_time_vip = obj.vip_starttime;
|
|
|
- var end_time_vip = obj.vip_endtime;
|
|
|
- var start_time_arr = start_time_vip.split(" ")[0].split("-")
|
|
|
- var end_time_arr = end_time_vip.split(" ")[0].split("-")
|
|
|
- var start_year = start_time_arr[0];
|
|
|
- var start_month = start_time_arr[1];
|
|
|
- var end_year = end_time_arr[0];
|
|
|
- var end_month = end_time_arr[1];
|
|
|
-
|
|
|
- var year = 0;
|
|
|
- var month = 0;
|
|
|
- if (end_year > start_year) {
|
|
|
- if (end_month > start_month) {
|
|
|
- year = end_year - start_year;
|
|
|
- month = end_month - start_month;
|
|
|
- } else {
|
|
|
- year = end_year - start_year - 1;
|
|
|
- month = 12 + Number(end_month) - start_month;
|
|
|
- if (month === 12) {
|
|
|
- year = Number(year) + 1;
|
|
|
- month = 0;
|
|
|
- }
|
|
|
- }
|
|
|
- } else if (end_year === start_year) {
|
|
|
- month = end_month - start_month;
|
|
|
- }
|
|
|
-
|
|
|
- if (year !== 0 && month !== 0) {
|
|
|
- effectiveduration_vip = year + "年" + month + "个月";
|
|
|
- } else if (year !== 0 && month === 0) {
|
|
|
- effectiveduration_vip = year + "年";
|
|
|
- } else if (year === 0 && month !== 0) {
|
|
|
- effectiveduration_vip = month + "个月";
|
|
|
- }
|
|
|
- if (cycleunit_vip === 3) {
|
|
|
- effectiveduration_vip = cyclecount_vip + "天";
|
|
|
- }else if (cycleunit_vip === 4) {
|
|
|
- effectiveduration_vip = cyclecount_vip + "季";
|
|
|
- }
|
|
|
- } else {
|
|
|
- if (cycleunit_vip === 1) {
|
|
|
- effectiveduration_vip = cyclecount_vip + "年";
|
|
|
- } else if (cycleunit_vip === 2) {
|
|
|
- effectiveduration_vip = cyclecount_vip + "个月"
|
|
|
- } else if (cycleunit_vip === 3) {
|
|
|
- effectiveduration_vip = cyclecount_vip + "天";
|
|
|
- } else if (cycleunit_vip === 4) {
|
|
|
- effectiveduration_vip = cyclecount_vip + "季";
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- var vip_status = obj.i_vip_status; // 1:试用 2:正式 -1:试用到期 -2:正式到期
|
|
|
- //订单状态 0待支付 1已完成 -1删除
|
|
|
- var orderStatus_vip = obj.order_status;
|
|
|
- var token_vip = obj.token;
|
|
|
- if (sessionStorage && sessionStorage.getItem("paySuccess_" + obj.order_code) != null) {
|
|
|
- orderStatus = sessionStorage.getItem("paySuccess_" + obj.order_code);
|
|
|
- if (orderTabActive === 1 && orderStatus === 1) {
|
|
|
- gopayIndex = index;
|
|
|
- psss = obj.order_code;
|
|
|
- continue;
|
|
|
- } else {
|
|
|
- sessionStorage.removeItem("paySuccess_" + obj.order_code);
|
|
|
- }
|
|
|
- }
|
|
|
- //订单金额
|
|
|
- var orderMoney_vip = obj.order_money;
|
|
|
- var orginsPrices = obj.order_money;
|
|
|
- var can1111 = filter_vip && filter_vip.original_price
|
|
|
- if (can1111) {
|
|
|
- orginsPrices = filter_vip.original_price;
|
|
|
- }
|
|
|
- var giveCycle = filter_vip.give_cycle;
|
|
|
- //金额格式化 小数点前 1,000
|
|
|
- orderMoney_vip = orderMoney_vip + "";
|
|
|
- orderMoney_vip1 = toThousands(orderMoney_vip.split(".")[0]);
|
|
|
- orderMoney_vip2 = orderMoney_vip.split(".")[1];
|
|
|
- if (orderMoney_vip2) {
|
|
|
- orderMoney_vip = orderMoney_vip1 + "." + orderMoney_vip2;
|
|
|
- } else {
|
|
|
- orderMoney_vip = orderMoney_vip1;
|
|
|
- }
|
|
|
- //0试用用户、1续费、2升级、3购买
|
|
|
- var vipType = 0
|
|
|
- if (!vip_type) {
|
|
|
- if (obj.order_money > 0) {
|
|
|
- vipType = 3
|
|
|
- }
|
|
|
- } else {
|
|
|
- vipType = vip_type
|
|
|
- }
|
|
|
- //优惠
|
|
|
- var discountHtml = ""
|
|
|
- if ((orderStatus_vip === 0||orderStatus_vip === 1)&&obj.discount_price>0){
|
|
|
- var totalPrice = Number(obj.order_money) + Number(obj.discount_price)
|
|
|
- discountHtml = '<p class="discount"><span class="current">'+totalName+'¥' + formatMoney(totalPrice) + '</span>'
|
|
|
- + '<span class="current">'+discountName+'¥' + formatMoney(obj.discount_price) + '</span>'
|
|
|
- }
|
|
|
- if (orderStatus_vip === 0) {
|
|
|
- orderStatus_vip = "待付款"
|
|
|
- orderHtml = ""
|
|
|
- orderHtml += '<span class="status notpay">'
|
|
|
- orderHtml += '<span class="status-text">' + orderStatus_vip + '</span>'
|
|
|
- orderHtml += "<a class=\"delete_icon\" title=\"删除订单\" onclick=\"deleteOrder(" + id_vip + ",this)\"></a></span>";
|
|
|
- iconHtml = ""
|
|
|
- iconHtml += '<div class="card-footer">'
|
|
|
- + '<a class="btn cancle" onclick="cancelOrder(' + id_vip + ',this)">取消订单</a>'
|
|
|
- + '<a href="javascript:void(0)" onclick="window.location.href =\'' + "/weixin/pay/checkout_subvip?orderCode=" + obj.order_code + "&t=" + vipType + '\'" class="btn green-btn">去支付</a>'
|
|
|
- + '</div>'
|
|
|
- } else if (orderStatus_vip === 1) {
|
|
|
- orderStatus_vip = "已完成";
|
|
|
- orderHtml = ""
|
|
|
- orderHtml += '<span class="status finish">'
|
|
|
- orderHtml += '<span class="status-text">' + orderStatus_vip + '</span>'
|
|
|
- orderHtml += "<a class=\"delete_icon\" title=\"删除订单\" onclick=\"deleteOrder(" + id_vip + ",this)\"></a></span>";
|
|
|
- iconHtml = ""
|
|
|
- //最后一次购买完 1:试用 2:正式 -1:试用到期 -2:正式到期
|
|
|
- if ((vip_status === -2) && (obj.lastbuy_code !== undefined)) {
|
|
|
- iconHtml += '<div class="card-footer">'
|
|
|
- if (obj.applybill_status === 0) {
|
|
|
- iconHtml += '<a onclick="invoiceAdd(this)" class="btn gray-btn">开发票</a>'
|
|
|
- } else if (obj.applybill_status === 1 || obj.applybill_status === 2) {
|
|
|
- iconHtml += '<a onclick="checkinvoice(this,' + obj.applybill_status + ')" class="btn gray-btn">查看发票</a>'
|
|
|
- }
|
|
|
- iconHtml += '<a onclick="renewalOrBuyAgain(2,this)" class="btn green-btn">再次购买</a></div>'
|
|
|
- } else if ((vip_status === 2) && (obj.lastbuy_code !== undefined)) {
|
|
|
- if (obj.pay_way !== "trial") {
|
|
|
- iconHtml += '<div class="card-footer">'
|
|
|
- if (obj.applybill_status === 0) {
|
|
|
- iconHtml += '<a onclick="invoiceAdd(this)" class="btn gray-btn">开发票</a>'
|
|
|
- } else if (obj.applybill_status === 1 || obj.applybill_status === 2) {
|
|
|
- iconHtml += '<a onclick="checkinvoice(this,' + obj.applybill_status + ')" class="btn gray-btn">查看发票</a>'
|
|
|
- }
|
|
|
- iconHtml += '<a onclick="renewalOrBuyAgain(1,this)" class="btn green-btn">续费</a></div>'
|
|
|
- }
|
|
|
- } else if ((vip_status === -2) && (obj.lastbuy_code === undefined)) {
|
|
|
- iconHtml += '<div class="card-footer">'
|
|
|
- if (obj.applybill_status === 0) {
|
|
|
- iconHtml += '<a onclick="invoiceAdd(this)" class="btn gray-btn">开发票</a></div>'
|
|
|
- } else if (obj.applybill_status === 1 || obj.applybill_status === 2) {
|
|
|
- iconHtml += '<a onclick="checkinvoice(this,' + obj.applybill_status + ')" class="btn gray-btn">查看发票</a></div>'
|
|
|
- }
|
|
|
- } else if ((vip_status === 2) && (obj.lastbuy_code === undefined)) {
|
|
|
- if (obj.pay_way !== "trial") {
|
|
|
- iconHtml += '<div class="card-footer">'
|
|
|
- if (obj.applybill_status === 0) {
|
|
|
- iconHtml += '<a onclick="invoiceAdd(this)" class="btn gray-btn">开发票</a></div>'
|
|
|
- } else if (obj.applybill_status === 1 || obj.applybill_status === 2) {
|
|
|
- iconHtml += '<a onclick="checkinvoice(this,' + obj.applybill_status + ')" class="btn gray-btn">查看发票</a></div>'
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- discountHtml +='<span>'+isPayName+'</span>'
|
|
|
- } else if (orderStatus_vip === -2 || orderStatus_vip === -3) {
|
|
|
- orderStatus_vip = "已取消";
|
|
|
- orderHtml = "<span class=\"status cancel_text\">";
|
|
|
- orderHtml += '<span class="status-text">' + orderStatus_vip + '</span>'
|
|
|
- orderHtml += "<a class=\"delete_icon\" title=\"删除订单\" onclick=\"deleteOrder(" + id_vip + ",this)\"></a></span>";
|
|
|
- iconHtml = "";
|
|
|
- iconHtml += '<div class="card-footer">'
|
|
|
- + '</div>'
|
|
|
- }
|
|
|
- discountHtml +='</p>'
|
|
|
- if (filter_vip.cyclecount !== undefined && filter_vip.cyclecount !== "" && filter_vip.cycleunit !== undefined && filter_vip.cycleunit !== "") {
|
|
|
- if (parseInt(filter_vip.cycleunit) === 1) {
|
|
|
- effectiveduration_vip = filter_vip.cyclecount + "年"
|
|
|
- } else if (parseInt(filter_vip.cycleunit) === 2) {
|
|
|
- effectiveduration_vip = filter_vip.cyclecount + "个月"
|
|
|
- } else if (parseInt(filter_vip.cycleunit) === 4) {
|
|
|
- effectiveduration_vip = filter_vip.cyclecount + "季"
|
|
|
- } else {
|
|
|
- effectiveduration_vip = "7天"
|
|
|
- }
|
|
|
- }
|
|
|
- if (filter_vip.cycleunit === 0 && filter_vip.cyclecount === 0) {
|
|
|
- effectiveduration_vip = "不延期";
|
|
|
- }
|
|
|
- if (obj.isUsedActiveCode) {
|
|
|
- effectiveduration_vip = effectiveduration_vip + '<span class="discount-container"><span> + </span><span class="highlight-text">赠送30天</span></span>'
|
|
|
- }
|
|
|
- //vip状态 0不是vip 1试用 2正式
|
|
|
- if (orderStatus_vip !== "已完成") {
|
|
|
- //未支付 或 已取消
|
|
|
- listhtml += '<div class="card">'
|
|
|
- + '<div class="card-header">'
|
|
|
- + '<span class="time" style="color:#888888">' + createTime_vip + '</span>'
|
|
|
- + orderHtml
|
|
|
- + '</div>'
|
|
|
- + '<div class="card-content">'
|
|
|
- + '<a onclick="setSessionStorage()" eid=' + orderCode_vip + ' href="/front/vipsubscribe/toOrderDetailPage?orderCode=' + orderCode_vip + '" class="media" isvipOrder="true">'
|
|
|
- + '<div class="media-img">'
|
|
|
- + '<img src="/vipsubscribe/image/vipBook.png?v={{Msg "seo" "version"}}">'
|
|
|
- + '</div>'
|
|
|
- + '<div class="media-info">';
|
|
|
- listhtml += '<p class="item-ifo ellipsis">区域:' + region_vip + '</p>'
|
|
|
- + '<p class="item-ifo ellipsis">行业:' + industry_vip + '</p>'
|
|
|
- + '<p class="item-ifo ellipsis">订阅周期:' + effectiveduration_vip
|
|
|
- + (can1111 ? (' + ' + '<span style="color: #2ABED1;">赠送' + (giveCycle < 12 ? (giveCycle + '个月') : '1年') + '</span>') : '')
|
|
|
- + '</p>'
|
|
|
- + '</div>'
|
|
|
- + '</a>'
|
|
|
- listhtml += '<div class="price">'
|
|
|
- if (can1111 || isLiveActive) {
|
|
|
- var originPrice = formatMoney(parseFloat(orginsPrices) / parseFloat(0.6));
|
|
|
- if (can1111) {
|
|
|
- originPrice = formatMoney(parseFloat(orginsPrices) / 100)
|
|
|
- }
|
|
|
- listhtml += '<span class="origin-price-container">'
|
|
|
- + '<span>原价:¥</span>'
|
|
|
- + '<span class="origin-price">' + originPrice + '</span>'
|
|
|
- + '</span>'
|
|
|
- }else{
|
|
|
- listhtml += discountHtml
|
|
|
- }
|
|
|
- listhtml += '<strong class="current">¥' + orderMoney_vip + '</strong>'
|
|
|
- + '</div>'
|
|
|
- + '</div>'
|
|
|
- + iconHtml
|
|
|
- + '</div>'
|
|
|
- } else {
|
|
|
- //有效时间
|
|
|
- var starttime_vip = obj.vip_starttime + "";
|
|
|
- var endtime_vip = obj.vip_endtime + "";
|
|
|
- starttime_vip = starttime_vip.split(" ")[0].replace(/-/g, ".")
|
|
|
- endtime_vip = endtime_vip.split(" ")[0].replace(/-/g, ".")
|
|
|
- var effectivetime_vip = starttime_vip + "-" + endtime_vip;
|
|
|
- //已完成
|
|
|
- listhtml += '<div class="card">'
|
|
|
- + '<div class="card-header">'
|
|
|
- + '<span class="time" style="color:#888888">' + createTime_vip + '</span>'
|
|
|
- + orderHtml
|
|
|
- + '</div>'
|
|
|
- + '<div class="card-content">'
|
|
|
- + '<a onclick="setSessionStorage()" eid=' + orderCode_vip + ' href="/front/vipsubscribe/toOrderDetailPage?orderCode=' + orderCode_vip + '" class="media" isvipOrder="true">'
|
|
|
- + '<div class="media-img">'
|
|
|
- + '<img src="/vipsubscribe/image/vipBook.png?v={{Msg "seo" "version"}}">'
|
|
|
- + '</div>'
|
|
|
- + '<div class="media-info">';
|
|
|
- listhtml += '<p class="item-ifo ellipsis">区域:' + region_vip + '</p>'
|
|
|
- + '<p class="item-ifo ellipsis">行业:' + industry_vip + '</p>'
|
|
|
- + '<p class="item-ifo ellipsis">订阅周期:' + effectiveduration_vip
|
|
|
- + (can1111 ? (' + ' + '<span style="color: #2ABED1;">赠送' + (giveCycle < 12 ? (giveCycle + '个月') : '1年') + '</span>') : '')
|
|
|
- + '</p>'
|
|
|
- if (effectiveduration_vip != "不延期"){
|
|
|
- listhtml += '<p class="item-ifo ellipsis">有效日期:' + effectivetime_vip + '</p>';
|
|
|
- }
|
|
|
- //}
|
|
|
- listhtml += '</div></a>'
|
|
|
- listhtml += '<div class="price">'
|
|
|
- if (can1111 || isLiveActive) {
|
|
|
- var originPrice = formatMoney(parseFloat(orginsPrices) / parseFloat(0.6));
|
|
|
- if (can1111) {
|
|
|
- originPrice = formatMoney(parseFloat(orginsPrices) / 100)
|
|
|
- }
|
|
|
-
|
|
|
- listhtml += '<span class="origin-price-container">'
|
|
|
- + '<span>原价:¥</span>'
|
|
|
- + '<span class="origin-price">' + originPrice + '</span>'
|
|
|
- + '</span>'
|
|
|
- }else{
|
|
|
- listhtml += discountHtml
|
|
|
- }
|
|
|
- listhtml += '<strong class="current">¥' + orderMoney_vip + '</strong>'
|
|
|
- + '</div>'
|
|
|
- + '</div>'
|
|
|
- + iconHtml
|
|
|
- + '</div>'
|
|
|
- }
|
|
|
-
|
|
|
- } else if (obj.product_type === "中标必听课") {
|
|
|
- count++;
|
|
|
- var id = obj.id;
|
|
|
- //订单编号
|
|
|
- var orderCode = obj.order_code;
|
|
|
- //创建时间
|
|
|
- var createTime = obj.create_time;
|
|
|
- createTime = createTime.replace(/-/g, ".")
|
|
|
- var payWay = obj.pay_way
|
|
|
- var filterObj = JSON.parse(obj.filter);
|
|
|
- var courseName = filterObj.s_name;
|
|
|
- var courseLength = filterObj.s_courseDate;
|
|
|
- var courseEndTimeStamp = filterObj.l_endtime;
|
|
|
- var courseId = filterObj._id;
|
|
|
- var orderStatus = obj.order_status;
|
|
|
- var orderStatusHtml = "";
|
|
|
- var orderStatusHtmls = "";
|
|
|
- var orderMoney = obj.order_money;
|
|
|
- var applybill_status = obj.applybill_status;
|
|
|
-
|
|
|
- var courseEndTime = new Date(courseEndTimeStamp * 1000)
|
|
|
-
|
|
|
- var lastHtml = "";
|
|
|
- var orderUrl = "/weixin/pay/xs_payNow?code=" + orderCode;
|
|
|
- var helpHtml = "";
|
|
|
-
|
|
|
- if (orderStatus === 0) {
|
|
|
- orderStatusHtml = "待付款";
|
|
|
- orderStatusHtmls = "notpay";
|
|
|
- lastHtml = '<div class="card-footer">'
|
|
|
- + '<a class="btn cancle" onclick="cancelOrder(' + id + ',this)">取消订单</a>'
|
|
|
- + '<a onclick="window.location.href =\'' + "/weixin/pay/checkout_onlineCourse?orderCode=" + orderCode + '\'" class="btn green-btn">去支付</a>'
|
|
|
- + '</div>'
|
|
|
- } else if (orderStatus === 1) {
|
|
|
- orderStatusHtml = "已完成";
|
|
|
- if (filterObj.i_drawer === 1) {
|
|
|
- if (applybill_status === 0) {
|
|
|
- lastHtml = '<div class="card-footer">'
|
|
|
- + '<a onclick="setSessionStorage()" href="/front/invoice/showpage?order_code=' + orderCode + '" class="btn cancle">开发票</a>'
|
|
|
- + '</div>'
|
|
|
- } else if (applybill_status === 1 || applybill_status === 2) {
|
|
|
- lastHtml = '<div class="card-footer">'
|
|
|
- + '<a onclick="checkinvoice(this,' + applybill_status + ')" class="btn cancle">查看发票</a>'
|
|
|
- + '</div>'
|
|
|
- }
|
|
|
- } else {
|
|
|
- if (applybill_status === 0) {
|
|
|
- lastHtml = '<div class="card-footer">'
|
|
|
- + '<a onclick="setSessionStorage()" href="/jyxsapp/invoice?code=' + orderCode + '" class="btn cancle">开发票</a>'
|
|
|
- + '</div>'
|
|
|
- } else if (applybill_status === 1 || applybill_status === 2) {
|
|
|
- var toHref = "/jyxsapp/invoiceDetail?code=" + orderCode + "&id=" + id
|
|
|
- lastHtml = '<div class="card-footer">'
|
|
|
- + '<a onclick="checkinvoice(this,' + applybill_status + ',\'' + toHref + '\')" class="btn cancle">查看发票</a>'
|
|
|
- + '</div>'
|
|
|
- }
|
|
|
- }
|
|
|
- } else {
|
|
|
- orderStatusHtml = "已取消";
|
|
|
- }
|
|
|
-
|
|
|
- listhtml += '<div class="card">'
|
|
|
- + '<div class="card-header">'
|
|
|
- + '<span class="time">' + createTime + '</span>'
|
|
|
- + '<span class="status ' + orderStatusHtmls + '">'
|
|
|
- + helpHtml
|
|
|
- + '<span class="status-text">' + orderStatusHtml + '</span>'
|
|
|
- + '<a class="delete_icon" title="删除订单" onclick="deleteOrder(' + id + ',this)"></a>'
|
|
|
- + '</span>'
|
|
|
- + '</div>'
|
|
|
- + '<div class="card-content">'
|
|
|
- + '<a onclick="setSessionStorage()" href="' + orderUrl + '" eid="' + orderCode + '" vid="' + orderCode + '" class="media" courseOnlineOrder="true">'
|
|
|
- + '<div class="media-img">'
|
|
|
- + '<img src="/course/image/lessonsOnline.png">'
|
|
|
- + '</div>'
|
|
|
- + '<div class="media-info">'
|
|
|
- + '<p class="item-ifo ellipsis-2">课程名称:' + courseName + '</p>'
|
|
|
- + '<p class="item-ifo ellipsis">课程类型:中标必听课</p>'
|
|
|
- + '<p class="item-ifo ellipsis">课程时长:' + courseLength + '</p>'
|
|
|
- + '<p class="item-ifo ellipsis">课程节数:共' + (!filterObj.i_num ? 1 : filterObj.i_num) + '节</p>'
|
|
|
- + '<p class="item-ifo ellipsis">有效日期:' + courseEndTime.getFullYear() + '/' + (courseEndTime.getMonth() + 1) + '/' + courseEndTime.getDate() + ' 到期</p>'
|
|
|
- + '</div>'
|
|
|
- + '</a>'
|
|
|
- + '<div class="price">'
|
|
|
- + '<strong class="current">¥' + formatMoney(orderMoney) + '</strong>'
|
|
|
- + '</div>'
|
|
|
- + '</div>'
|
|
|
- + lastHtml
|
|
|
- + '</div>'
|
|
|
- } else if (obj.product_type === "数据报告") {
|
|
|
- if (typ === 1 || $(".tab-link.active").index() === 1) { //待付款订单列表页
|
|
|
- if (obj.order_status === -2) {
|
|
|
- continue;
|
|
|
- }
|
|
|
- }
|
|
|
- count++;
|
|
|
- var id = obj.id;
|
|
|
- //订单编号
|
|
|
- var orderCode = obj.order_code;
|
|
|
- //创建时间
|
|
|
- var createTime = obj.create_time;
|
|
|
- createTime = createTime.replace(/-/g, ".")
|
|
|
- var filterObj = JSON.parse(obj.filter);
|
|
|
- var reportName = filterObj.report_name;
|
|
|
- var pushTimeStamp = filterObj.l_pushtime;
|
|
|
-
|
|
|
- var orderStatus = obj.order_status;
|
|
|
- var orderStatusHtml = "";
|
|
|
- var orderStatusHtmls = "";
|
|
|
- var orderMoney = obj.order_money;
|
|
|
- var applybill_status = obj.applybill_status;
|
|
|
-
|
|
|
- var pushTime = new Date(pushTimeStamp * 1000)
|
|
|
-
|
|
|
- var lastHtml = "";
|
|
|
- var orderUrl = "/datareport/page/order/detail/" + orderCode;
|
|
|
- var helpHtml = "";
|
|
|
-
|
|
|
- if (orderStatus === 0) {
|
|
|
- orderStatusHtml = "待付款";
|
|
|
- orderStatusHtmls = "notpay";
|
|
|
- lastHtml = '<div class="card-footer">'
|
|
|
- + '<a class="btn cancle" onclick="cancelOrder(' + id + ',this)">取消订单</a>'
|
|
|
- + '<a onclick="window.location.href=\'' + '/weixin/pay/datareport?ordercode=' + orderCode + '\'" class="btn green-btn">去支付</a>'
|
|
|
- + '</div>';
|
|
|
- } else if (orderStatus === 1) {
|
|
|
- orderStatusHtml = "已完成";
|
|
|
- if (applybill_status === 0) {
|
|
|
- lastHtml = '<div class="card-footer">'
|
|
|
- + '<a onclick="invoiceAdd(this)" class="btn gray-btn">开发票</a>'
|
|
|
- + '</div>'
|
|
|
- } else if (applybill_status === 1 || applybill_status === 2) {
|
|
|
- lastHtml = '<div class="card-footer">'
|
|
|
- + '<a onclick="checkinvoice(this,' + applybill_status + ')" class="btn gray-btn">查看发票</a>'
|
|
|
- + '</div>'
|
|
|
- }
|
|
|
- } else {
|
|
|
- orderStatusHtml = "已取消";
|
|
|
- }
|
|
|
-
|
|
|
- listhtml += '<div class="card">'
|
|
|
- + '<div class="card-header">'
|
|
|
- + '<span class="time">' + createTime + '</span>'
|
|
|
- + '<span class="status ' + orderStatusHtmls + '">'
|
|
|
- + helpHtml
|
|
|
- + '<span class="status-text">' + orderStatusHtml + '</span>'
|
|
|
- + '<a class="delete_icon" title="删除订单" onclick="deleteOrder(\'' + id + '\',this)"></a>'
|
|
|
- + '</span>'
|
|
|
- + '</div>'
|
|
|
- + '<div class="card-content">'
|
|
|
- + '<a onclick="setSessionStorage()" href="' + orderUrl + '" eid="' + orderCode + '" class="media" datareportOrder="true">'
|
|
|
- + '<div class="media-img">'
|
|
|
- + '<img src="/images/pc/report_icon.png">'
|
|
|
- + '</div>'
|
|
|
- + '<div class="media-info">'
|
|
|
- + '<p class="item-ifo ellipsis">报告名称:' + reportName + '</p>'
|
|
|
- + '<p class="item-ifo ellipsis">发布日期:' + pushTime.getFullYear() + '/' + (pushTime.getMonth() + 1) + '/' + pushTime.getDate() + '</p>'
|
|
|
- + '</div>'
|
|
|
- + '</a>'
|
|
|
- + '<div class="price">'
|
|
|
- + '<strong class="current">¥' + formatMoney(orderMoney) + '</strong>'
|
|
|
- + '</div>'
|
|
|
- + '</div>'
|
|
|
- + lastHtml
|
|
|
- + '</div>'
|
|
|
- } else if (obj.product_type === "大会员") {
|
|
|
- if (typ === 1 || $(".tab-link.active").index() === 1) { //待付款订单列表页
|
|
|
- if (obj.order_status === -2) {
|
|
|
- continue;
|
|
|
- }
|
|
|
- }
|
|
|
- count++;
|
|
|
- var id = obj.id;
|
|
|
- //订单编号
|
|
|
- var orderCode = obj.order_code;
|
|
|
- //创建时间
|
|
|
- var createTime = obj.create_time;
|
|
|
- createTime = createTime.replace(/-/g, ".")
|
|
|
- var filterObj = JSON.parse(obj.filter);
|
|
|
- var source = "";
|
|
|
- if(filterObj.source){
|
|
|
- source = filterObj.source;
|
|
|
- }
|
|
|
- var level = filterObj.level;
|
|
|
- var cycle = filterObj.cycle;
|
|
|
- var level_map = new Map();
|
|
|
- var expert = new Map();
|
|
|
-
|
|
|
- expert.set("img", "/order/image/dahuiyuan1.png");
|
|
|
- expert.set("level", "专家版");
|
|
|
- var smart = new Map();
|
|
|
- smart.set("img", "/order/image/dahuiyuan3.png");
|
|
|
- smart.set("level", "智慧版");
|
|
|
- var niche = new Map();
|
|
|
- niche.set("img", "/order/image/dahuiyuan2.png");
|
|
|
- niche.set("level", "商机版");
|
|
|
- var trial = new Map();
|
|
|
- trial.set("img", "/order/image/dahuiyuan4.png");
|
|
|
- trial.set("level", "试用版");
|
|
|
- var custom = new Map();
|
|
|
- custom.set("img", "/order/image/dahuiyuan1.png");
|
|
|
- custom.set("level", "自定义");
|
|
|
- level_map.set(1, expert);
|
|
|
- level_map.set(2, smart);
|
|
|
- level_map.set(3, niche);
|
|
|
- level_map.set(4, trial);
|
|
|
- level_map.set(5, custom);
|
|
|
- var imgurl = level_map.get(filterObj.level).get("img");
|
|
|
- var member_endtime = "-";
|
|
|
- if (obj.vip_endtime != null && obj.order_status == 1) {
|
|
|
- member_endtime = formatTime(obj.vip_endtime).replace(/\./g, "/") + " 到期";
|
|
|
- }
|
|
|
- var member_cycle = filterObj.cycle;
|
|
|
- if (filterObj.level == 4) {
|
|
|
- member_cycle += "天"
|
|
|
- } else {
|
|
|
- var createType = filterObj.createType
|
|
|
- if (createType){
|
|
|
- member_cycle+="个月";
|
|
|
- }else{
|
|
|
- member_cycle+="年"
|
|
|
- }
|
|
|
- }
|
|
|
- var member_level=level_map.get(filterObj.level).get("level");
|
|
|
- //if(filterObj.combo!=null&&filterObj.combo!=undefined&&filterObj.combo!=""){
|
|
|
- // member_level="自定义-"+filterObj.combo;
|
|
|
- // }
|
|
|
- var orderStatus = obj.order_status;
|
|
|
- var orderStatusHtml = "";
|
|
|
- var orderStatusHtmls = "";
|
|
|
- var orderMoney = obj.order_money;
|
|
|
- var applybill_status = obj.applybill_status;
|
|
|
- var pushTime = new Date(pushTimeStamp * 1000)
|
|
|
-
|
|
|
- var lastHtml = "";
|
|
|
- var orderUrl = "/front/wxMyOrder/memberDetail/" + orderCode;
|
|
|
-
|
|
|
- if (orderStatus === 0) {
|
|
|
- var payNameTmp = "去支付"
|
|
|
- if (obj.pay_way === "transferAccounts") {
|
|
|
- orderStatusHtmls = "refund";
|
|
|
- if (obj.course_status === 2) {
|
|
|
- orderStatusHtml = "转账审核中";
|
|
|
- } else if (obj.course_status === 3) {
|
|
|
- orderStatusHtml = "未收到转账";
|
|
|
- payNameTmp = "再次支付"
|
|
|
- }
|
|
|
- } else {
|
|
|
- orderStatusHtml = "待付款";
|
|
|
- orderStatusHtmls = "notpay";
|
|
|
- }
|
|
|
- if (!(obj.pay_way === "transferAccounts" && (obj.course_status === 2 || obj.course_status === 4))) {
|
|
|
- lastHtml = '<div class="card-footer">'
|
|
|
- + '<a class="btn cancle" onclick="cancelOrder(' + id + ',this)">取消订单</a>'
|
|
|
- + '<a onclick="window.location.href=\'' + '/weixin/pay/checkout_member?orderCode=' + orderCode + '\'" class="btn green-btn">' + payNameTmp + '</a>'
|
|
|
- + '</div>';
|
|
|
- }
|
|
|
- } else if (orderStatus === 1) {
|
|
|
- orderStatusHtml = "已完成";
|
|
|
- orderStatusHtmls = "finish";
|
|
|
- var customIsAll = 0
|
|
|
- if (filterObj.isAll){
|
|
|
- customIsAll=filterObj.isAll
|
|
|
- }
|
|
|
- if (customIsAll == 2){
|
|
|
- orderStatusHtml = "待付款";
|
|
|
- orderStatusHtmls = "notpay";
|
|
|
- }else if (customIsAll == 3){
|
|
|
- orderStatusHtml = "待付完";
|
|
|
- orderStatusHtmls = "notpay";
|
|
|
- }
|
|
|
- if (source===""){
|
|
|
- if (applybill_status === 0) {
|
|
|
- lastHtml = '<div class="card-footer">'
|
|
|
- + '<a onclick="invoiceAdd(this)" class="btn gray-btn">开发票</a>'
|
|
|
- + '</div>'
|
|
|
- } else if (applybill_status === 1 || applybill_status === 2) {
|
|
|
- lastHtml = '<div class="card-footer">'
|
|
|
- + '<a onclick="checkinvoice(this,' + applybill_status + ')" class="btn gray-btn">查看发票</a>'
|
|
|
- + '</div>'
|
|
|
- }
|
|
|
- }
|
|
|
- } else {
|
|
|
- orderStatusHtml = "已取消";
|
|
|
- orderStatusHtmls = "status-text";
|
|
|
- }
|
|
|
- listhtml += '<div class="card">'
|
|
|
- + '<div class="card-header">'
|
|
|
- + '<span class="time" style="color:#888888">' + createTime + '</span>'
|
|
|
- + '<span class="status ' + orderStatusHtmls + '">'
|
|
|
- + '<span class="status-text">' + orderStatusHtml + '</span>'
|
|
|
- + '<a class="delete_icon" title="删除订单" onclick="deleteOrder(\'' + id + '\',this)"></a>'
|
|
|
- + '</span>'
|
|
|
- + '</div>'
|
|
|
- + '<div class="card-content">'
|
|
|
- + '<a onclick="setSessionStorage()" href="' + orderUrl + '" eid="' + orderCode + '" class="media" datareportOrder="true">'
|
|
|
- + '<div class="media-img">'
|
|
|
- + '<img src="' + imgurl + '">'
|
|
|
- + '</div>'
|
|
|
- + '<div class="media-info">'
|
|
|
- + '<p class="item-ifo ellipsis">会员套餐:' + member_level + '</p>'
|
|
|
- + '<p class="item-ifo ellipsis">订阅周期:' + member_cycle + ' </p>'
|
|
|
- + '<p class="item-ifo ellipsis">有效日期:' + member_endtime + '</p>'
|
|
|
- + '</div>'
|
|
|
- + '</a>'
|
|
|
- + '<div class="price">'
|
|
|
- + '<strong class="current">¥' + formatMoney(orderMoney) + '</strong>'
|
|
|
- + '</div>'
|
|
|
- + '</div>'
|
|
|
- + lastHtml
|
|
|
- + '</div>'
|
|
|
- }else if (obj.product_type === "大会员-子账号") {
|
|
|
- if (typ === 1 || $(".tab-link.active").index() === 1) { //待付款订单列表页
|
|
|
- if (obj.order_status === -2) {
|
|
|
- continue;
|
|
|
- }
|
|
|
- }
|
|
|
- count++;
|
|
|
- var id = obj.id;
|
|
|
- //订单编号
|
|
|
- var orderCode = obj.order_code;
|
|
|
- //创建时间
|
|
|
- var createTime = obj.create_time;
|
|
|
- createTime = createTime.replace(/-/g, ".")
|
|
|
- var filterObj = JSON.parse(obj.filter);
|
|
|
- var source = "";
|
|
|
- if(filterObj.source){
|
|
|
- source = filterObj.source;
|
|
|
- }
|
|
|
- var level = filterObj.level;
|
|
|
- var level_map = new Map();
|
|
|
- var expert = new Map();
|
|
|
-
|
|
|
- expert.set("img", "/order/image/zizhanghao1.png");
|
|
|
- expert.set("level", "专家版");
|
|
|
- var smart = new Map();
|
|
|
- smart.set("img", "/order/image/zizhanghao3.png");
|
|
|
- smart.set("level", "智慧版");
|
|
|
- var niche = new Map();
|
|
|
- niche.set("img", "/order/image/zizhanghao2.png");
|
|
|
- niche.set("level", "商机版");
|
|
|
- var custom = new Map();
|
|
|
- custom.set("level", "自定义");
|
|
|
- custom.set("img", "/order/image/zizhanghao1.png");
|
|
|
- level_map.set(1, expert);
|
|
|
- level_map.set(2, smart);
|
|
|
- level_map.set(3, niche);
|
|
|
- level_map.set(5, custom);
|
|
|
- var imgurl = level_map.get(filterObj.level).get("img");
|
|
|
- var member_endtime = "-";
|
|
|
- if (obj.vip_endtime != null && obj.order_status == 1) {
|
|
|
- member_endtime = formatTime(obj.vip_endtime).replace(/\./g, "/") + " 到期";
|
|
|
- }
|
|
|
- var orderStatus = obj.order_status;
|
|
|
- var orderStatusHtml = "";
|
|
|
- var orderStatusHtmls = "";
|
|
|
- var orderMoney = obj.order_money;
|
|
|
- var applybill_status = obj.applybill_status;
|
|
|
- var pushTime = new Date(pushTimeStamp * 1000)
|
|
|
-
|
|
|
- var lastHtml = "";
|
|
|
- var orderUrl = "/front/wxMyOrder/subAccountDetail/" + orderCode;
|
|
|
-
|
|
|
- if (orderStatus === 0) {
|
|
|
- var payNameTmp = "去支付"
|
|
|
- if (obj.pay_way === "transferAccounts") {
|
|
|
- orderStatusHtmls = "refund";
|
|
|
- if (obj.course_status === 2) {
|
|
|
- orderStatusHtml = "转账审核中";
|
|
|
- } else if (obj.course_status === 3) {
|
|
|
- orderStatusHtml = "未收到转账";
|
|
|
- payNameTmp = "再次支付"
|
|
|
- }
|
|
|
- } else {
|
|
|
- orderStatusHtml = "待付款";
|
|
|
- orderStatusHtmls = "notpay";
|
|
|
- }
|
|
|
- if (!(obj.pay_way === "transferAccounts" && (obj.course_status === 2 || obj.course_status === 4))) {
|
|
|
- lastHtml = '<div class="card-footer">'
|
|
|
- + '<a class="btn cancle" onclick="cancelOrder(' + id + ',this)">取消订单</a>'
|
|
|
- + '<a onclick="window.location.href=\'' + '/weixin/pay/checkout_member?orderCode=' + orderCode + '\'" class="btn green-btn">' + payNameTmp + '</a>'
|
|
|
- + '</div>';
|
|
|
- }
|
|
|
- } else if (orderStatus === 1) {
|
|
|
- orderStatusHtml = "已完成";
|
|
|
- orderStatusHtmls = "finish";
|
|
|
- var customIsAll = 0
|
|
|
- if (filterObj.isAll){
|
|
|
- customIsAll=filterObj.isAll
|
|
|
- }
|
|
|
- if (customIsAll == 2){
|
|
|
- orderStatusHtml = "待付款";
|
|
|
- orderStatusHtmls = "notpay";
|
|
|
- }else if (customIsAll == 3){
|
|
|
- orderStatusHtml = "待付完";
|
|
|
- orderStatusHtmls = "notpay";
|
|
|
- }
|
|
|
- //非企明星后台可开发票
|
|
|
- if (source === "" && applybill_status === 0) {
|
|
|
- lastHtml = '<div class="card-footer">'
|
|
|
- + '<a onclick="invoiceAdd(this)" class="btn gray-btn">开发票</a>'
|
|
|
- + '</div>'
|
|
|
- } else if (applybill_status === 1 || applybill_status === 2) {
|
|
|
- lastHtml = '<div class="card-footer">'
|
|
|
- + '<a onclick="checkinvoice(this,' + applybill_status + ')" class="btn gray-btn">查看发票</a>'
|
|
|
- + '</div>'
|
|
|
- }
|
|
|
- } else {
|
|
|
- orderStatusHtml = "已取消";
|
|
|
- orderStatusHtmls = "status-text";
|
|
|
- }
|
|
|
- listhtml += '<div class="card">'
|
|
|
- + '<div class="card-header">'
|
|
|
- + '<span class="time" style="color:#888888">' + createTime + '</span>'
|
|
|
- + '<span class="status ' + orderStatusHtmls + '">'
|
|
|
- + '<span class="status-text">' + orderStatusHtml + '</span>'
|
|
|
- + '<a class="delete_icon" title="删除订单" onclick="deleteOrder(\'' + id + '\',this)"></a>'
|
|
|
- + '</span>'
|
|
|
- + '</div>'
|
|
|
- + '<div class="card-content">'
|
|
|
- + '<a onclick="setSessionStorage()" href="' + orderUrl + '" eid="' + orderCode + '" class="media" datareportOrder="true">'
|
|
|
- + '<div class="media-img">'
|
|
|
- + '<img src="' + imgurl + '">'
|
|
|
- + '</div>'
|
|
|
- + '<div class="media-info">'
|
|
|
- + '<p class="item-ifo ellipsis">会员套餐:' + level_map.get(filterObj.level).get("level") + '</p>'
|
|
|
- + '<p class="item-ifo ellipsis">有效日期:' + member_endtime + '</p>'
|
|
|
- + '<p class="item-ifo ellipsis">付费账号:' + filterObj.pay_sub_num + ' 个</p>'
|
|
|
- + '<p class="item-ifo ellipsis">免费账号:' + filterObj.free_sub_num + ' 个</p>'
|
|
|
- + '</div>'
|
|
|
- + '</a>'
|
|
|
- + '<div class="price">'
|
|
|
- + '<strong class="current">¥' + formatMoney(orderMoney) + '</strong>'
|
|
|
- + '</div>'
|
|
|
- + '</div>'
|
|
|
- + lastHtml
|
|
|
- + '</div>'
|
|
|
- }else if (obj.product_type === "大会员-补充包"||obj.product_type === "大会员-AI中标预测包"||obj.product_type === "大会员-招标文件解读") {
|
|
|
- if (typ === 1 || $(".tab-link.active").index() === 1) { //待付款订单列表页
|
|
|
- if (obj.order_status === -2) {
|
|
|
- continue;
|
|
|
- }
|
|
|
- }
|
|
|
- count++;
|
|
|
- var buchongbaoHtml = '';
|
|
|
- var id = obj.id;
|
|
|
- //订单编号
|
|
|
- var orderCode = obj.order_code;
|
|
|
- //创建时间
|
|
|
- var createTime = obj.create_time;
|
|
|
- createTime = createTime.replace(/-/g, ".")
|
|
|
- var filterObj = JSON.parse(obj.filter);
|
|
|
- var source = "";
|
|
|
- if(filterObj.source){
|
|
|
- source = filterObj.source;
|
|
|
- }
|
|
|
- var member_endtime = "-";
|
|
|
- if (obj.product_type === "大会员-补充包"){
|
|
|
- var checkout_aiForecastPack="checkout_aiForecastPack";
|
|
|
- var bigmemberBid="";
|
|
|
- if (obj.vip_endtime != null && obj.order_status == 1) {
|
|
|
- member_endtime = formatTime(obj.vip_endtime).replace(/\./g, "/");
|
|
|
- }
|
|
|
- var supplys = filterObj.supplys;
|
|
|
- if (supplys){
|
|
|
- for (var i = 0; i < supplys.length; i++) {
|
|
|
- var serviceUnit = '个'
|
|
|
- if (i > 3) {
|
|
|
- buchongbaoHtml += '<p class="item-ifo ellipsis">...</p>';
|
|
|
- break;
|
|
|
- }
|
|
|
- if (supplys[i]["id"] == "15" || supplys[i]["id"] == "6") {
|
|
|
- serviceUnit = "次"
|
|
|
- }
|
|
|
- buchongbaoHtml += '<p class="item-ifo ellipsis buchongbao">' + supplys[i]["name"] + '(' + supplys[i]["count"] + serviceUnit + ')' + '</p>'
|
|
|
- }
|
|
|
- }
|
|
|
- }else if (obj.product_type === "大会员-AI中标预测包"){
|
|
|
- member_endtime = filterObj.effective_date;
|
|
|
- buchongbaoHtml += '<p class="item-ifo ellipsis buchongbao">中标企业预测(' + filterObj.count*10 + ')次' + '</p>'
|
|
|
- }else if (obj.product_type === "大会员-招标文件解读"){
|
|
|
- checkout_aiForecastPack="checkout_bidfile"
|
|
|
- bigmemberBid="&b=1";
|
|
|
- member_endtime ="2021/11/15";
|
|
|
- buchongbaoHtml += '<p class="item-ifo ellipsis buchongbao">招标文件解读(' + filterObj.count + ')次' + '</p>'
|
|
|
- }
|
|
|
- var level = filterObj.level;
|
|
|
- var level_map = new Map();
|
|
|
- var expert = new Map();
|
|
|
- expert.set("level", "专家版");
|
|
|
- var smart = new Map();
|
|
|
- smart.set("level", "智慧版");
|
|
|
- var entniche = new Map();
|
|
|
- entniche.set("level", "商机版");
|
|
|
- var custom = new Map();
|
|
|
- custom.set("level", "自定义");
|
|
|
- level_map.set(1, expert);
|
|
|
- level_map.set(2, smart);
|
|
|
- level_map.set(3, entniche);
|
|
|
- level_map.set(5, custom);
|
|
|
- var imgurl = "/order/image/buchongbao.png";
|
|
|
- var orderStatus = obj.order_status;
|
|
|
- var orderMoney = obj.order_money;
|
|
|
- var applybill_status = obj.applybill_status;
|
|
|
- var pushTime = new Date(pushTimeStamp * 1000)
|
|
|
- var lastHtml = "";
|
|
|
- var orderUrl = "/front/wxMyOrder/aiForecastPackdetail/" + orderCode;
|
|
|
- var orderStatusHtml = "";
|
|
|
- var orderStatusHtmls = "";
|
|
|
- if (orderStatus === 0) {
|
|
|
- var payNameTmp = "去支付"
|
|
|
- if (obj.pay_way === "transferAccounts") {
|
|
|
- orderStatusHtmls = "refund";
|
|
|
- if (obj.course_status === 2) {
|
|
|
- orderStatusHtml = "转账审核中";
|
|
|
- } else if (obj.course_status === 3) {
|
|
|
- orderStatusHtml = "未收到转账";
|
|
|
- payNameTmp = "再次支付"
|
|
|
- }
|
|
|
- } else {
|
|
|
- orderStatusHtml = "待付款";
|
|
|
- orderStatusHtmls = "notpay";
|
|
|
- }
|
|
|
- if (!(obj.pay_way === "transferAccounts" && (obj.course_status === 2 || obj.course_status === 4))) {
|
|
|
- lastHtml = '<div class="card-footer">'
|
|
|
- + '<a class="btn cancle" onclick="cancelOrder(' + id + ',this)">取消订单</a>'
|
|
|
- + '<a onclick="window.location.href=\'' + '/weixin/pay/'+checkout_aiForecastPack+'?orderCode=' + orderCode + bigmemberBid+ '\'" class="btn green-btn">' + payNameTmp + '</a>'
|
|
|
- + '</div>';
|
|
|
- }
|
|
|
- } else if (orderStatus === 1) {
|
|
|
- orderStatusHtml = "已完成";
|
|
|
- orderStatusHtmls = "finish";
|
|
|
- var customIsAll = 0
|
|
|
- if (filterObj.isAll){
|
|
|
- customIsAll=filterObj.isAll
|
|
|
- }
|
|
|
- if (customIsAll == 2){
|
|
|
- orderStatusHtml = "待付款";
|
|
|
- orderStatusHtmls = "notpay";
|
|
|
- }else if (customIsAll == 3){
|
|
|
- orderStatusHtml = "待付完";
|
|
|
- orderStatusHtmls = "notpay";
|
|
|
- }
|
|
|
- if (source===""){
|
|
|
- if (applybill_status === 0) {
|
|
|
- lastHtml = '<div class="card-footer">'
|
|
|
- + '<a onclick="invoiceAdd(this)" class="btn gray-btn">开发票</a>'
|
|
|
- + '</div>'
|
|
|
- } else if (applybill_status === 1 || applybill_status === 2) {
|
|
|
- lastHtml = '<div class="card-footer">'
|
|
|
- + '<a onclick="checkinvoice(this,' + applybill_status + ')" class="btn gray-btn">查看发票</a>'
|
|
|
- + '</div>'
|
|
|
- }
|
|
|
- }
|
|
|
- } else {
|
|
|
- orderStatusHtml = "已取消";
|
|
|
- orderStatusHtmls = "status-text";
|
|
|
- }
|
|
|
- listhtml += '<div class="card">'
|
|
|
- + '<div class="card-header">'
|
|
|
- + '<span class="time">' + createTime + '</span>'
|
|
|
- + '<span class="status ' + orderStatusHtmls + '">' + orderStatusHtml
|
|
|
- + '<a class="shanchu iconfont icon-shanchu" title="删除订单" onclick="deleteOrder(' + id + ',this)"></a>'
|
|
|
- + '</span>'
|
|
|
- + '</div>'
|
|
|
- + '<div class="card-content">'
|
|
|
- + '<a onclick="setSessionStorage()" href="' + orderUrl + '" eid="' + orderCode + '" class="media" datareportOrder="true">'
|
|
|
- + '<div class="media-img">'
|
|
|
- + '<img src="' + imgurl + '">'
|
|
|
- + '</div>'
|
|
|
- + '<div class="media-info">'
|
|
|
- + '<p class="item-ifo ellipsis">服务列表:</p>'
|
|
|
- + buchongbaoHtml
|
|
|
- + '<p class="item-ifo ellipsis">有效日期:' + member_endtime + '到期</p>'
|
|
|
- + '</div>'
|
|
|
- + '</a>'
|
|
|
- + '<div class="price">'
|
|
|
- + '<strong class="current">¥' + formatMoney(orderMoney) + '</strong>'
|
|
|
- + '</div>'
|
|
|
- + '</div>'
|
|
|
- + lastHtml
|
|
|
- + '</div>'
|
|
|
- } else if (obj.product_type === "招标文件解读") {
|
|
|
- if (typ === 1 || $(".tab-link.active").index() === 1) { //待付款订单列表页
|
|
|
- if (obj.order_status === -2) {
|
|
|
- continue;
|
|
|
- }
|
|
|
- }
|
|
|
- count++;
|
|
|
- var id = obj.id;
|
|
|
- //订单编号
|
|
|
- var orderCode = obj.order_code;
|
|
|
- //创建时间
|
|
|
- var createTime = obj.create_time;
|
|
|
- createTime = createTime.replace(/-/g, ".")
|
|
|
- var filterObj = JSON.parse(obj.filter);
|
|
|
- var level = filterObj.level;
|
|
|
- var level_map = new Map();
|
|
|
- var expert = new Map();
|
|
|
- var imgurl = "/order/image/zbwjjd_new.png";
|
|
|
- var orderStatus = obj.order_status;
|
|
|
- var orderStatusHtml = "";
|
|
|
- var orderStatusHtmls = "";
|
|
|
- var orderMoney = obj.order_money;
|
|
|
- var applybill_status = obj.applybill_status;
|
|
|
- var pushTime = new Date(pushTimeStamp * 1000)
|
|
|
-
|
|
|
- var lastHtml = "";
|
|
|
- var orderUrl = "/front/wxMyOrder/bidfileDetail/" + orderCode;
|
|
|
-
|
|
|
- if (orderStatus === 0) {
|
|
|
- var payNameTmp = "去支付"
|
|
|
- if (obj.pay_way === "transferAccounts") {
|
|
|
- orderStatusHtmls = "refund";
|
|
|
- if (obj.course_status === 2) {
|
|
|
- orderStatusHtml = "转账审核中";
|
|
|
- } else if (obj.course_status === 3) {
|
|
|
- orderStatusHtml = "未收到转账";
|
|
|
- payNameTmp = "再次支付"
|
|
|
- }
|
|
|
- } else {
|
|
|
- orderStatusHtml = "待付款";
|
|
|
- orderStatusHtmls = "notpay";
|
|
|
- }
|
|
|
- if (!(obj.pay_way === "transferAccounts" && (obj.course_status === 2 || obj.course_status === 4))) {
|
|
|
- lastHtml = '<div class="card-footer">'
|
|
|
- + '<a class="btn cancle" onclick="cancelOrder(' + id + ',this)">取消订单</a>'
|
|
|
- + '<a onclick="window.location.href=\'' + '/weixin/pay/checkout_bidfile?orderCode=' + orderCode + '\'" class="btn green-btn">' + payNameTmp + '</a>'
|
|
|
- + '</div>';
|
|
|
- }
|
|
|
- } else if (orderStatus === 1) {
|
|
|
- orderStatusHtml = "已完成";
|
|
|
- orderStatusHtmls = "finish";
|
|
|
-
|
|
|
- if (applybill_status === 0) {
|
|
|
- lastHtml = '<div class="card-footer">'
|
|
|
- + '<a onclick="invoiceAdd(this)" class="btn gray-btn">开发票</a>'
|
|
|
- + '</div>'
|
|
|
- } else if (applybill_status === 1 || applybill_status === 2) {
|
|
|
- lastHtml = '<div class="card-footer">'
|
|
|
- + '<a onclick = "checkinvoice(this,' + applybill_status + ')" class="btn gray-btn">查看发票</a>'
|
|
|
- + '</div>'
|
|
|
- }
|
|
|
- } else {
|
|
|
- orderStatusHtml = "已取消";
|
|
|
- orderStatusHtmls = "status-text";
|
|
|
- }
|
|
|
- listhtml += '<div class="card">'
|
|
|
- + '<div class="card-header">'
|
|
|
- + '<span class="time" style="color:#888888">' + createTime + '</span>'
|
|
|
- + '<span class="status ' + orderStatusHtmls + '">'
|
|
|
- + '<span class="status-text">' + orderStatusHtml + '</span>'
|
|
|
- + '<a class="delete_icon" title="删除订单" onclick="deleteOrder(\'' + id + '\',this)"></a>'
|
|
|
- + '</span>'
|
|
|
- + '</div>'
|
|
|
- + '<div class="card-content">'
|
|
|
- + '<a onclick="setSessionStorage()" href="' + orderUrl + '" eid="' + orderCode + '" class="media" datareportOrder="true">'
|
|
|
- + '<div class="media-img">'
|
|
|
- + '<img src="' + imgurl + '">'
|
|
|
- + '</div>'
|
|
|
- + '<div class="media-info">'
|
|
|
- + '<p class="item-ifo ellipsis">产品类型:招标文件解读</p>'
|
|
|
- + '<p class="item-ifo ellipsis">购买次数:' + filterObj.count + '次</p>'
|
|
|
- + '<p class="item-ifo ellipsis">有效日期:' + "2021/11/15" + ' 到期</p>'
|
|
|
- + '</div>'
|
|
|
- + '</a>'
|
|
|
- + '<div class="price">'
|
|
|
- + '<strong class="current">¥' + formatMoney(orderMoney) + '</strong>'
|
|
|
- + '</div>'
|
|
|
- + '</div>'
|
|
|
- + lastHtml
|
|
|
- + '</div>'
|
|
|
- }else if (obj.product_type === "剑鱼币") {
|
|
|
- if (typ === 1 || $(".tab-link.active").index() === 1) { //待付款订单列表页
|
|
|
- if (obj.order_status === -2) {
|
|
|
- continue;
|
|
|
- }
|
|
|
- }
|
|
|
- count++;
|
|
|
- var id = obj.id;
|
|
|
- //订单编号
|
|
|
- var orderCode = obj.order_code;
|
|
|
- //创建时间
|
|
|
- var createTime = obj.create_time;
|
|
|
- createTime = createTime.replace(/-/g, ".")
|
|
|
- var filterObj = JSON.parse(obj.filter);
|
|
|
- var level = filterObj.level;
|
|
|
- var level_map = new Map();
|
|
|
- var expert = new Map();
|
|
|
- var imgurl = "/order/image/jianyubi.png";
|
|
|
- var orderStatus = obj.order_status;
|
|
|
- var orderStatusHtml = "";
|
|
|
- var orderStatusHtmls = "";
|
|
|
- var orderMoney = obj.order_money;
|
|
|
- var applybill_status = obj.applybill_status;
|
|
|
- var pushTime = new Date(pushTimeStamp * 1000)
|
|
|
-
|
|
|
- var lastHtml = "";
|
|
|
- var orderUrl = "/front/wxMyOrder/integralDetail/" + orderCode;
|
|
|
- //优惠
|
|
|
- var discountHtml = ""
|
|
|
- if ((orderStatus === 0||orderStatus === 1)&&obj.discount_price>0){
|
|
|
- var totalPrice = Number(obj.order_money) + Number(obj.discount_price)
|
|
|
- discountHtml = '<p class="discount"><span class="current">'+totalName+'¥' + formatMoney(totalPrice) + '</span>'
|
|
|
- + '<span class="current">'+discountName+'¥' + formatMoney(obj.discount_price) + '</span>'
|
|
|
- }
|
|
|
- if (orderStatus === 0) {
|
|
|
- var payNameTmp = "去支付"
|
|
|
- if (obj.pay_way === "transferAccounts") {
|
|
|
- orderStatusHtmls = "refund";
|
|
|
- if (obj.course_status === 2) {
|
|
|
- orderStatusHtml = "转账审核中";
|
|
|
- } else if (obj.course_status === 3) {
|
|
|
- orderStatusHtml = "未收到转账";
|
|
|
- payNameTmp = "再次支付"
|
|
|
- }
|
|
|
- } else {
|
|
|
- orderStatusHtml = "待付款";
|
|
|
- orderStatusHtmls = "notpay";
|
|
|
- }
|
|
|
- if (!(obj.pay_way === "transferAccounts" && (obj.course_status === 2 || obj.course_status === 4))) {
|
|
|
- lastHtml = '<div class="card-footer">'
|
|
|
- + '<a class="btn cancle" onclick="cancelOrder(' + id + ',this)">取消订单</a>'
|
|
|
- + '<a onclick="window.location.href=\'' + '/weixin/pay/checkout_integral?orderCode=' + orderCode + '\'" class="btn green-btn">' + payNameTmp + '</a>'
|
|
|
- + '</div>';
|
|
|
- }
|
|
|
- } else if (orderStatus === 1) {
|
|
|
- orderStatusHtml = "已完成";
|
|
|
- orderStatusHtmls = "finish";
|
|
|
- if (applybill_status === 0) {
|
|
|
- lastHtml = '<div class="card-footer">'
|
|
|
- + '<a onclick="invoiceAdd(this)" class="btn gray-btn">开发票</a>'
|
|
|
- + '</div>'
|
|
|
- } else if (applybill_status === 1 || applybill_status === 2) {
|
|
|
- lastHtml = '<div class="card-footer">'
|
|
|
- + '<a onclick = "checkinvoice(this,' + applybill_status + ')" class="btn gray-btn">查看发票</a>'
|
|
|
- + '</div>'
|
|
|
- }
|
|
|
- discountHtml +='<span>'+isPayName+'</span>'
|
|
|
- } else {
|
|
|
- orderStatusHtml = "已取消";
|
|
|
- orderStatusHtmls = "status-text";
|
|
|
- }
|
|
|
- discountHtml +='</p>'
|
|
|
- var jianyubiCount =filterObj.score;
|
|
|
- listhtml += '<div class="card">'
|
|
|
- + '<div class="card-header">'
|
|
|
- + '<span class="time" style="color:#888888">' + createTime + '</span>'
|
|
|
- + '<span class="status ' + orderStatusHtmls + '">'
|
|
|
- + '<span class="status-text">' + orderStatusHtml + '</span>'
|
|
|
- + '<a class="delete_icon" title="删除订单" onclick="deleteOrder(\'' + id + '\',this)"></a>'
|
|
|
- + '</span>'
|
|
|
- + '</div>'
|
|
|
- + '<div class="card-content">'
|
|
|
- + '<a onclick="setSessionStorage()" href="' + orderUrl + '" eid="' + orderCode + '" class="media" datareportOrder="true">'
|
|
|
- + '<div class="media-img">'
|
|
|
- + '<img src="' + imgurl + '">'
|
|
|
- + '</div>'
|
|
|
- + '<div class="media-info">'
|
|
|
- + '<p class="item-ifo ellipsis">产品类型:剑鱼币</p>'
|
|
|
- + '<p class="item-ifo ellipsis">数量:' + formatMoney(jianyubiCount)+ '枚</p>'
|
|
|
- + '<p class="item-ifo ellipsis">有效日期:永久</p>'
|
|
|
- + '</div>'
|
|
|
- + '</a>'
|
|
|
- + '<div class="price">'
|
|
|
- + discountHtml
|
|
|
- + '<strong class="current">¥' + formatMoney(orderMoney) + '</strong>'
|
|
|
- + '</div>'
|
|
|
- + '</div>'
|
|
|
- + lastHtml
|
|
|
- + '</div>'
|
|
|
- }
|
|
|
- }
|
|
|
- appendList($(listhtml));
|
|
|
- }
|
|
|
-
|
|
|
- function noMoreData(me) {
|
|
|
- if (me == null) {
|
|
|
- return;
|
|
|
- }
|
|
|
- wxflag = me;
|
|
|
- hasNextPage = false;
|
|
|
- // 锁定
|
|
|
- me.lock();
|
|
|
- // 无数据
|
|
|
- me.noData();
|
|
|
- // 即使加载出错,也得重置
|
|
|
- me.resetload();
|
|
|
- }
|
|
|
-
|
|
|
- // 退款按钮
|
|
|
- function show_more(e) {
|
|
|
- $this = $(e)
|
|
|
- $tooltip = $(e).siblings('.tooltip-text')
|
|
|
- if ($tooltip.is(':hidden')) {
|
|
|
- $tooltip.show()
|
|
|
- } else {
|
|
|
- $tooltip.hide()
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- // 格式化金钱的函数
|
|
|
- // s: 金额(number) 必传
|
|
|
- // n: 保留小数的位数(int:0-100)
|
|
|
- function formatMoney(s, n) {
|
|
|
- if (n === undefined) {
|
|
|
- n = -1
|
|
|
- } else {
|
|
|
- n = n > 0 && n <= 20 ? n : 2;
|
|
|
- }
|
|
|
- var intS = parseInt(s)
|
|
|
- var point = '.'
|
|
|
- var left;
|
|
|
- var right;
|
|
|
- s = parseFloat((s + '').replace(/[^\d\.-]/g, ''))
|
|
|
- // 没传n,默认(如果为整数,则不保留小数。如果为浮点数,则保留两位小数)
|
|
|
- if (n === -1) {
|
|
|
- if (s === intS) {
|
|
|
- n = 0
|
|
|
- right = ''
|
|
|
- point = ''
|
|
|
- } else {
|
|
|
- n = 2
|
|
|
- s = s.toFixed(n);
|
|
|
- right = s.split('.')[1];
|
|
|
- }
|
|
|
- s = s + ''
|
|
|
- left = s.split('.')[0].split("").reverse();
|
|
|
- } else {
|
|
|
- s = parseFloat((s + '').replace(/[^\d\.-]/g, '')).toFixed(n) + '';
|
|
|
- left = s.split('.')[0].split('').reverse();
|
|
|
- right = s.split('.')[1];
|
|
|
- }
|
|
|
-
|
|
|
- t = "";
|
|
|
- for (i = 0; i < left.length; i++) {
|
|
|
- t += left[i] + ((i + 1) % 3 == 0 && (i + 1) != left.length ? ',' : '');
|
|
|
- }
|
|
|
-
|
|
|
- var money = t.split('').reverse().join('') + point + right;
|
|
|
- return money;
|
|
|
- }
|
|
|
-
|
|
|
- // 客服电话弹窗
|
|
|
- function phoneShow() {
|
|
|
- weui.alert('客服电话400-108-6670', {
|
|
|
- buttons: [{
|
|
|
- label: '我知道了',
|
|
|
- type: 'primary'
|
|
|
- }]
|
|
|
- });
|
|
|
- }
|
|
|
-
|
|
|
- //开发票
|
|
|
- function invoiceAdd(e) {
|
|
|
- setSessionStorage()
|
|
|
- var orderCode = $(e).parent(".card-footer").prev(".card-content").find("a").attr("eid");
|
|
|
- $.post("/subscribepay/orderListDetails/isOver", {"order_code": orderCode}, function (data) {
|
|
|
- if (data.status == 1) {
|
|
|
- window.location.href = "/front/invoice/showpage?order_code=" + orderCode;
|
|
|
- } else {
|
|
|
- window.location.href = "/front/invoice/cantInvoice";
|
|
|
- }
|
|
|
- ;
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
- //查看发票flag 1:已开线上发票 2:已开线下发票
|
|
|
- function checkinvoice(e, flag, otherHref) {
|
|
|
- if (flag === 2) {
|
|
|
- weui.alert('您已开具发票<br>如有问题请联系客服<br>400-108-6670', {
|
|
|
- buttons: [{
|
|
|
- label: '我知道了',
|
|
|
- type: 'primary'
|
|
|
- }]
|
|
|
- });
|
|
|
- return
|
|
|
- }
|
|
|
- setSessionStorage()
|
|
|
- if (!otherHref) {
|
|
|
- var orderCode = $(e).parent(".card-footer").prev(".card-content").find("a").attr("eid");
|
|
|
- otherHref = "/front/invoice/check_invoice.html?order_code=" + orderCode
|
|
|
- }
|
|
|
- window.location.href = otherHref
|
|
|
- }
|
|
|
-
|
|
|
- function formatTime(t) {
|
|
|
- try {
|
|
|
- return t.substring(0, 10).replace(/\-/g, ".")
|
|
|
- } catch (e) {
|
|
|
- if (t === null) {
|
|
|
- t = "";
|
|
|
- }
|
|
|
- return t
|
|
|
- }
|
|
|
- }
|
|
|
-</script>
|
|
|
-{{include "/common/baiducc.html"}}
|
|
|
+ </van-tab>
|
|
|
+ </van-tabs>
|
|
|
+ </div>
|
|
|
+ <!--S-当前页面的资源-->
|
|
|
+ <script src="/big-member/js/rem.js"></script>
|
|
|
+ <script src=//cdn-common.jianyu360.com/cdn/lib/vue/2.6.11/vue.min.js></script>
|
|
|
+ <script src=//cdn-common.jianyu360.com/cdn/lib/vant/2.12.24/lib/vant.min.js></script>
|
|
|
+ <script src=//cdn-common.jianyu360.com/cdn/lib/jquery/3.6.0/jquery.min.js></script>
|
|
|
+ <!--E-当前页面的资源-->
|
|
|
+ <script src='{{Msg "seo" "cdn"}}/big-member/js/utils.js?v={{Msg "seo" "version"}}'></script>
|
|
|
+ <script src='{{Msg "seo" "cdn"}}/common-module/order-list/js/order-list-config-wx.js?v={{Msg "seo" "version"}}'></script>
|
|
|
+ <script src='{{Msg "seo" "cdn"}}/common-module/order-list/js/order-list.js?v={{Msg "seo" "version"}}'></script>
|
|
|
+ {{include "/common/baiducc.html"}}
|
|
|
</body>
|
|
|
-</html>
|
|
|
+
|
|
|
+</html>
|