yangc 8 лет назад
Родитель
Сommit
8d08c259b8

+ 2 - 3
src/main/webapp/resources/js/usercenter/controllers/forstore/seek_purchase_ctrl.js

@@ -97,8 +97,8 @@ define(['app/app'], function (app) {
             goodsObj.storeid = go.storeid;
             var goodsList = [];
             goodsList.push(goodsObj);
+            var rootPath = BaseService.getRootPath();
             if(go.minBuyQty > 0) {
-              var newWidow = window.open(rootPath + '/product#/cart');
               // 1、生成订单
               Order.buyNowInStore({spId: $scope.currentSeek.spId}, goodsList, function(data){
                 if(data.message) {
@@ -107,9 +107,8 @@ define(['app/app'], function (app) {
                 // 控制订单确认页,直接购买不显示进度条
                 SessionService.set("buyNow", true);
                 // 2、跳转到订单确认页面,进行付款操作
-                newWidow.location.href = rootPath + '/user#/order/pay/'+ enIdFilter(data.data.orderid);
+                window.open(rootPath + '/user#/order/pay/'+ enIdFilter(data.data.orderid));
               }, function(res){
-                newWindow.close();
                 toaster.pop('error', '警告', res.data);
               });
             }else {

+ 5 - 5
src/main/webapp/resources/view/usercenter/forstore/seekPurchase.html

@@ -542,8 +542,8 @@
                             <table>
                                 <thead>
                                 <tr>
-                                    <th width="68">全选</th>
-                                    <th width="146">卖家</th>
+                                   <!-- <th width="68">全选</th>-->
+                                    <th width="214">卖家</th>
                                     <th width="83">交期(天)</th>
                                     <th width="104">单价</th>
                                     <th width="137">生产日期</th>
@@ -557,13 +557,13 @@
                                 <table>
                                     <tbody>
                                     <tr ng-repeat="go in goods track by $index">
-                                        <td width="68">
+                                        <!--<td width="68">
                                             <label class="com-check-box">
                                                 <input type="checkbox" id="{{$index + 2}}" ng-model="go.$checked" ng-change="onSelectGoods(go, seek, $index)">
                                                 <label for="{{$index + 2}}"></label>
                                             </label>
-                                        </td>
-                                        <td width="146" ng-bind="go.enterpriseName">哈哈哈</td>
+                                        </td>-->
+                                        <td width="214" title="{{go.enterpriseName}}" ng-bind="go.enterpriseName">哈哈哈</td>
                                         <td width="83" class="red-text" ng-bind="go.minDelivery+'-'+go.maxDelivery">4-6{{fragments[i].price}}</td>
                                         <td width="104" class="red-text">{{go.currencyName + fragments[$index].price | currencyStr}}</td>
                                         <td width="137" ng-bind="go.produceDate">2012-12-12</td>