|
|
@@ -2290,7 +2290,7 @@ class StoreOrderRepository extends BaseRepository
|
|
2290
|
2290
|
}
|
|
2291
|
2291
|
|
|
2292
|
2292
|
|
|
2293
|
|
- } else if ($store_product_datas['mer_id'] == 439 || $is_commercetrade) {
|
|
|
2293
|
+ } else if ($store_product_datas['mer_id'] == 439) {
|
|
2294
|
2294
|
|
|
2295
|
2295
|
|
|
2296
|
2296
|
//精彩生活和商贸区
|
|
|
@@ -2327,33 +2327,25 @@ class StoreOrderRepository extends BaseRepository
|
|
2327
|
2327
|
// ]
|
|
2328
|
2328
|
// ];
|
|
2329
|
2329
|
|
|
2330
|
|
- if ($is_commercetrade){
|
|
2331
|
|
- $cartInfo['list'][$_k]['fzone_paytype'] = [
|
|
2332
|
|
- ['type' => self::commercetrade_cash_integral, 'price' => $jcprice, 'other' => $jcjf1, "note" => "现金+积分"],
|
|
2333
|
|
- ['type'=>self::commercetrade_cash_peking_bean,'price'=>$jcprice,'other'=>$jcjd,"note"=>"现金+京豆"],
|
|
2334
|
|
- ['type' => self::commercetrade_cash, 'price' => $orderpri, 'other' => 0, "note" => "现金"]
|
|
2335
|
|
- ];
|
|
2336
|
|
- } else {
|
|
2337
|
|
- $cartInfo['list'][$_k]['fzone_paytype'] = [
|
|
|
2330
|
+ $cartInfo['list'][$_k]['fzone_paytype'] = [
|
|
2338
|
2331
|
|
|
2339
|
|
- // ['type'=>'a1','price'=>100,'other'=>0,'note'=>"VR"],
|
|
2340
|
|
- // ['type'=>'a2','price'=>100,'other'=>0,"note"=>"现金"],
|
|
2341
|
|
- // ['type'=>'a3','price'=>0,'other'=>0,"note"=>"现金+VR"],
|
|
|
2332
|
+ // ['type'=>'a1','price'=>100,'other'=>0,'note'=>"VR"],
|
|
|
2333
|
+ // ['type'=>'a2','price'=>100,'other'=>0,"note"=>"现金"],
|
|
|
2334
|
+ // ['type'=>'a3','price'=>0,'other'=>0,"note"=>"现金+VR"],
|
|
2342
|
2335
|
|
|
2343
|
|
- ['type' => 'b1', 'price' => $jcvr, 'other' => $jcjf, 'note' => "VR+积分"],
|
|
2344
|
|
- ['type' => 'b2', 'price' => $jcprice, 'other' => $jcjf1, "note" => "现金+积分"],
|
|
2345
|
|
- // ['type'=>'b3','price'=>$jcvr1,'other'=>$jcjd,"note"=>"VR+京豆"],
|
|
2346
|
|
- //['type'=>'b4','price'=>$jcvr1,'other'=>$jcjd,"note"=>"现金+京豆"],
|
|
2347
|
|
- ['type' => 'b5', 'price' => $orderpri, 'other' => 0, "note" => "VR"],
|
|
2348
|
|
- ['type' => 'b6', 'price' => $orderpri, 'other' => 0, "note" => "现金"],
|
|
|
2336
|
+ ['type' => 'b1', 'price' => $jcvr, 'other' => $jcjf, 'note' => "VR+积分"],
|
|
|
2337
|
+ ['type' => 'b2', 'price' => $jcprice, 'other' => $jcjf1, "note" => "现金+积分"],
|
|
|
2338
|
+ // ['type'=>'b3','price'=>$jcvr1,'other'=>$jcjd,"note"=>"VR+京豆"],
|
|
|
2339
|
+ //['type'=>'b4','price'=>$jcvr1,'other'=>$jcjd,"note"=>"现金+京豆"],
|
|
|
2340
|
+ ['type' => 'b5', 'price' => $orderpri, 'other' => 0, "note" => "VR"],
|
|
|
2341
|
+ ['type' => 'b6', 'price' => $orderpri, 'other' => 0, "note" => "现金"],
|
|
2349
|
2342
|
|
|
2350
|
|
- // ['type'=>'c1','price'=>100,'other'=>0,'note'=>"复购金"],
|
|
2351
|
|
- // ['type'=>'c2','price'=>100,'other'=>0,"note"=>"VR"],
|
|
2352
|
|
- // ['type'=>'c3','price'=>100,'other'=>0,"note"=>"现金"],
|
|
|
2343
|
+ // ['type'=>'c1','price'=>100,'other'=>0,'note'=>"复购金"],
|
|
|
2344
|
+ // ['type'=>'c2','price'=>100,'other'=>0,"note"=>"VR"],
|
|
|
2345
|
+ // ['type'=>'c3','price'=>100,'other'=>0,"note"=>"现金"],
|
|
2353
|
2346
|
|
|
2354
|
2347
|
|
|
2355
|
|
- ];
|
|
2356
|
|
- }
|
|
|
2348
|
+ ];
|
|
2357
|
2349
|
|
|
2358
|
2350
|
|
|
2359
|
2351
|
}
|
|
|
@@ -2368,6 +2360,64 @@ class StoreOrderRepository extends BaseRepository
|
|
2368
|
2360
|
['type' => 'c1', 'price' => $orderpri, 'other' => 0, 'note' => "复购金"],
|
|
2369
|
2361
|
];
|
|
2370
|
2362
|
|
|
|
2363
|
+ }// 商贸区
|
|
|
2364
|
+ elseif ($is_commercetrade){
|
|
|
2365
|
+
|
|
|
2366
|
+ $jf = $orderpri - round($store_product_datas['concession_pri'] * 0.3, 2) . ' + ' . round($store_product_datas['concession_pri'] * 0.3, 2);
|
|
|
2367
|
+ $jd = $orderpri - round($store_product_datas['concession_pri'] * 0.35, 2) . ' + ' . round($store_product_datas['concession_pri'] * 0.35, 2);
|
|
|
2368
|
+ if ($store_product_datas['concession_pri'] != null || $store_product_datas['concession_pri'] != 0) {
|
|
|
2369
|
+ $yanglao = round($store_product_datas['concession_pri'] * 0.3, 2);
|
|
|
2370
|
+ $pv = round($store_product_datas['concession_pri'] * 0.35, 2);
|
|
|
2371
|
+ $srtArry['jfduihuan'] = $jf;
|
|
|
2372
|
+ $srtArry['jdduihuan'] = $jd;
|
|
|
2373
|
+ $jifen = round($store_product_datas['concession_pri'] * 0.35, 2);
|
|
|
2374
|
+ $gongxian = round($store_product_datas['concession_pri'] * 0.35, 2);
|
|
|
2375
|
+
|
|
|
2376
|
+ $jcvr = round($orderpri - round($store_product_datas['concession_pri'] * 0.3, 2), 2);
|
|
|
2377
|
+ $jcjf = round($store_product_datas['concession_pri'] * 0.3, 2);
|
|
|
2378
|
+ $jcprice = round($orderpri - round($store_product_datas['concession_pri'] * 0.3, 2), 2);
|
|
|
2379
|
+ $jcjf1 = round($store_product_datas['concession_pri'] * 0.3, 2);
|
|
|
2380
|
+ $jcvr1 = round($orderpri - round($store_product_datas['concession_pri'] * 0.35, 2), 2);
|
|
|
2381
|
+ $jcjd = round($store_product_datas['concession_pri'] * 0.35, 2);
|
|
|
2382
|
+ $jcprice1 = round($orderpri - round($store_product_datas['concession_pri'] * 0.35, 2), 2);
|
|
|
2383
|
+ $jcjd1 = round($store_product_datas['concession_pri'] * 0.35, 2);
|
|
|
2384
|
+
|
|
|
2385
|
+ //var_dump($cartInfo['list'][$_k]);
|
|
|
2386
|
+ //支付组合
|
|
|
2387
|
+ // $fzone_paytype= [
|
|
|
2388
|
+
|
|
|
2389
|
+ // 2=>[
|
|
|
2390
|
+ // 1=>[$jcvr,$jcjf],//VR+积分
|
|
|
2391
|
+ // 2=>[$jcprice,$jcjf1],//现金+积分
|
|
|
2392
|
+ // 3=>[$jcvr1,$jcjd],//VR+京豆
|
|
|
2393
|
+ // 4=>[$jcprice1,$jcjd1],//现金+金豆
|
|
|
2394
|
+ // 5=>$orderpri,//VR
|
|
|
2395
|
+ // 6=>$orderpri,//现金
|
|
|
2396
|
+ // ]
|
|
|
2397
|
+ // ];
|
|
|
2398
|
+
|
|
|
2399
|
+ $cartInfo['list'][$_k]['fzone_paytype'] = [
|
|
|
2400
|
+
|
|
|
2401
|
+ // ['type'=>'a1','price'=>100,'other'=>0,'note'=>"VR"],
|
|
|
2402
|
+ // ['type'=>'a2','price'=>100,'other'=>0,"note"=>"现金"],
|
|
|
2403
|
+ // ['type'=>'a3','price'=>0,'other'=>0,"note"=>"现金+VR"],
|
|
|
2404
|
+
|
|
|
2405
|
+// ['type' => 'b1', 'price' => $jcvr, 'other' => $jcjf, 'note' => "VR+积分"],
|
|
|
2406
|
+ ['type' => 'b2', 'price' => $jcprice, 'other' => $jcjf1, "note" => "现金+积分"],
|
|
|
2407
|
+ // ['type'=>'b3','price'=>$jcvr1,'other'=>$jcjd,"note"=>"VR+京豆"],
|
|
|
2408
|
+ ['type'=>'b4','price'=>$jcvr1,'other'=>$jcjd,"note"=>"现金+京豆"],
|
|
|
2409
|
+// ['type' => 'b5', 'price' => $orderpri, 'other' => 0, "note" => "VR"],
|
|
|
2410
|
+ ['type' => 'b6', 'price' => $orderpri, 'other' => 0, "note" => "现金"],
|
|
|
2411
|
+
|
|
|
2412
|
+ // ['type'=>'c1','price'=>100,'other'=>0,'note'=>"复购金"],
|
|
|
2413
|
+ // ['type'=>'c2','price'=>100,'other'=>0,"note"=>"VR"],
|
|
|
2414
|
+ // ['type'=>'c3','price'=>100,'other'=>0,"note"=>"现金"],
|
|
|
2415
|
+
|
|
|
2416
|
+
|
|
|
2417
|
+ ];
|
|
|
2418
|
+
|
|
|
2419
|
+
|
|
|
2420
|
+ }
|
|
2371
|
2421
|
}
|
|
2372
|
2422
|
|
|
2373
|
2423
|
|