Commit cf581ceda4f808eabded6cf36e9954959fa491ac

Authored by 泉州测试
1 parent 340cbded

移除首页待支付判断

Showing 1 changed file with 2 additions and 34 deletions
pages/index/index/index.js
... ... @@ -938,41 +938,9 @@ Page({
938 938  
939 939 // 幸运购跳转
940 940 go_url: function (e) {
941   - var remark = e.currentTarget.dataset.remark;
942   - // 不是标题
943   - if (remark == 2) {
944   - var app = getApp(),
945   - os = app.globalData.setting,
946   - oo = app.globalData;
947   - // 进入幸运购活动前 判断是否有待支付订单
948   - app.request.promiseGet('/api/weshop/prom/luckyOrder/page', {
949   - data: {
950   - store_id: os.stoid,
951   - user_id: oo.user_id,
952   - aid: e.currentTarget.dataset.aid,
953   - pay_status: 0,
954   - }
955   - }).then(res => {
956   - if(res.data.code == 0){
957   - if (res.data.data.total > 0) {
958   - // 待支付订单页面
959   - getApp().goto('/pages/user/order_list/order_list?type=1');
960   -
961   - } else {
962   - var url = e.currentTarget.dataset.url;
963   - getApp().goto(url);
964 941  
965   - }
966   -
967   - }
968   - });
969   -
970   - } else {
971   - // 标题
972   - var url = e.currentTarget.dataset.url;
973   - getApp().goto(url);
974   -
975   - }
  942 + var url = e.currentTarget.dataset.url;
  943 + getApp().goto(url);
976 944  
977 945 }, //
978 946  
... ...