Merge branch 'v5.1.0dev' of https://gitee.com/ZhongBangKeJi/CRMEB into v5.1.0dev

This commit is contained in:
From-wh 2023-06-19 09:21:40 +08:00
commit f7ca371ff6
5 changed files with 15 additions and 7 deletions

View File

@ -293,6 +293,7 @@ class StoreOrder extends AuthController
['day_type', 0], //顺丰传 0今天,1明天,2后台
['pickup_time', []],//开始时间 9:00,结束时间 10:00 开始时间和结束时间之间不能小于一个小时
['service_type', ''],//快递业务类型
]);
if (!$id) {
return app('json')->fail(100100);
@ -325,8 +326,15 @@ class StoreOrder extends AuthController
['address', ''],
['weight', ''],
['service_type', ''],
['cart_ids', []],
]);
foreach ($data['cart_ids'] as $cart) {
if (!isset($cart['cart_id']) || !$cart['cart_id'] || !isset($cart['cart_num']) || !$cart['cart_num']) {
return app('json')->fail(400159);
}
}
return app('json')->success($services->express()->getPrice($data));
}

View File

@ -170,13 +170,13 @@ class Express extends BaseExpress
*/
public function getPrice(array $data)
{
if (!empty($data['kuaidicom'])) {
if (empty($data['kuaidicom'])) {
throw new ApiException('快递编码必须填写');
}
if (!empty($data['send_address'])) {
if (empty($data['send_address'])) {
throw new ApiException('寄件地址必须填写');
}
if (!empty($data['address'])) {
if (empty($data['address'])) {
throw new ApiException('收件地址必须填写');
}
$param = [

View File

@ -176,10 +176,10 @@
</button>
</div>
<!-- #endif -->
<view class='wrapper'>
<view class='wrapper' v-if="isReturen == 1">
<view class='item acea-row row-between'>
<view>{{$t(`申请理由`)}}:</view>
<view class='conter'>{{(orderInfo.add_time_y || '') +' '+(orderInfo.add_time_h || 0)}}</view>
<view class='conter'>{{orderInfo.refund_explain}}</view>
</view>
<view class='item acea-row row-between'>
<view>{{$t(`申请图片`)}}:</view>

View File

@ -197,7 +197,7 @@
})
} else {
this.$util.Tips({
title: that.$t(`该商品已下架`)
title: this.$t(`该商品已下架`)
})
}

View File

@ -25,7 +25,7 @@
<view class="fail-msg" v-if="child.fail_msg">
{{$t(`原因`)}}:{{child.fail_msg}}
</view>
<view class="fail-msg" v-else>
<view class="fail-msg" v-else-if="child.extract_type">
{{$t(`提现方式`)}}:{{child.extract_type}}
</view>
</view>