修改样式
This commit is contained in:
parent
cd98744baf
commit
86beddf2fa
|
|
@ -60,32 +60,28 @@
|
|||
<view class="shop_home-commodity-infor-title shop_home-commodity-infor-bottom">
|
||||
{{item['product_name']}}
|
||||
</view>
|
||||
<!-- 补贴金额 -->
|
||||
<!-- <view class="shop_home-commodity-infor-discount shop_home-commodity-infor-bottom">
|
||||
最高补贴{{RetainDecimalPoint(item['max_deduction'])}}元
|
||||
</view> -->
|
||||
<!-- 价格 -->
|
||||
<view class="shop_home-commodity-infor-price shop_home-commodity-infor-bottom">
|
||||
<text class="yang">原价:¥</text>
|
||||
<!-- <text class="price">{{RetainDecimalPoint(item['pay_price'])}}</text> -->
|
||||
<text class="price">{{item['product_price']}}</text>
|
||||
</view>
|
||||
<!-- 优惠补贴后的价格 -->
|
||||
<view class="shop_home-commodity-infor-price shop_home-commodity-infor-bottom">
|
||||
<text class="yang">补贴后价格:¥</text>
|
||||
<!-- <text class="price">{{RetainDecimalPoint(item['pay_price'] - item['max_deduction'])}}</text> -->
|
||||
<text class="price">{{item['bt_price']}}</text>
|
||||
<view class="flex">
|
||||
<!-- 优惠补贴后的价格 -->
|
||||
<view class="shop_home-commodity-infor-price shop_home-commodity-infor-bottom">
|
||||
<text class="price">¥{{item['bt_price']}}</text>
|
||||
</view>
|
||||
<!-- 价格 -->
|
||||
<view class="shop_home-commodity-infor-price shop_home-commodity-infor-bottom huaxian">
|
||||
<text class="price">¥{{item['product_price']}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 消费补贴卡 -->
|
||||
<view class="shop_home-commodity-infor-price shop_home-commodity-infor-bottom">
|
||||
<view class="shop_home-commodity-infor-price shop_home-commodity-infor-bottom" v-if="item['subsidy_card_price']">
|
||||
<text class="yang">消费补贴卡:¥</text>
|
||||
<text class="price">{{item['subsidy_card_price']}}</text>
|
||||
</view>
|
||||
<!-- 积分 -->
|
||||
<view class="shop_home-commodity-infor-price shop_home-commodity-infor-bottom" v-if="!isWx">
|
||||
<text class="yang">预估积分:</text>
|
||||
<!-- <text class="price">{{RetainDecimalPoint(item['pay_price'] - item['max_deduction'])}}</text> -->
|
||||
<text class="price">{{item['integral']}}</text>
|
||||
<view v-else>
|
||||
<view class="shop_home-commodity-infor-price shop_home-commodity-infor-bottom" v-if="!isWx">
|
||||
<text class="yang">预估积分:</text>
|
||||
<!-- <text class="price">{{RetainDecimalPoint(item['pay_price'] - item['max_deduction'])}}</text> -->
|
||||
<text class="price">{{item['integral']}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 选规格 -->
|
||||
<view class="shop_home-commodity-infor-cart-sku" @tap="$u.debounce(Addcommodity, 800,true)">
|
||||
|
|
@ -365,15 +361,27 @@
|
|||
|
||||
&-commodity-infor {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
padding-left: 22rpx;
|
||||
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
&-bottom {
|
||||
// margin-bottom: 12rpx;
|
||||
}
|
||||
|
||||
.huaxian {
|
||||
margin-left: 20rpx;
|
||||
color: gray;
|
||||
text-decoration: line-through;
|
||||
.price {
|
||||
font-size: 24rpx !important;
|
||||
}
|
||||
}
|
||||
|
||||
&-title {
|
||||
font-size: $FONTSIZE26;
|
||||
font-size: $FONTSIZE30;
|
||||
color: $THEMECOLOR4;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
&-discount {
|
||||
|
|
@ -394,6 +402,7 @@
|
|||
|
||||
.price {
|
||||
font-size: $FONTSIZE30;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -418,13 +427,10 @@
|
|||
}
|
||||
|
||||
&-cart-sku {
|
||||
flex: 1;
|
||||
height: 60rpx;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
font-size: 36rpx;
|
||||
align-items: center;
|
||||
|
||||
&-btn {
|
||||
width: 106rpx;
|
||||
height: 50rpx;
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@
|
|||
return {
|
||||
// 肯德基
|
||||
// 顶部通知
|
||||
topNotice: '当前6人正在下单,获取取餐码等待时间为1-2分钟,景区和交通枢纽不支持线上点餐~',
|
||||
topNotice: '当前5人正在下单,获取取餐码等待时间为1-2分钟,景区和交通枢纽不支持线上点餐~',
|
||||
show: false,
|
||||
|
||||
suspend: config['suspend'],
|
||||
|
|
|
|||
|
|
@ -468,6 +468,8 @@
|
|||
|
||||
// 创建订单
|
||||
createFoodOrder(from).then(res => {
|
||||
console.log(res, '创建订单返回')
|
||||
|
||||
let redirect_url = '/pages/restaurant/order/order-details/details';
|
||||
uni.hideLoading();
|
||||
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@ class Request {
|
|||
// #ifdef H5
|
||||
if (infor['data']['status'] == 110002) {
|
||||
window.location.href = `${HTTP_REQUEST_URL}/JXH5/pages/users/h5_login/index?redirectUri=${window.location.protocol + "//" + window.location.host}/privilege/pages/restaurant/home/shop_home/shop_home`;
|
||||
// window.location.href = `http://10.210.254.176:8081/JXH5/#/pages/users/h5_login/index?redirectUri=${window.location.protocol + "//" + window.location.host}/privilege/pages/restaurant/home/shop_home/shop_home`;
|
||||
// window.location.href = `https://10.210.254.143:1024/JXH5/#/pages/users/h5_login/index?redirectUri=${window.location.protocol + "//" + window.location.host}/privilege/pages/restaurant/home/shop_home/shop_home`;
|
||||
}
|
||||
// #endif
|
||||
if (infor['data']['msg'] == '产品错误' || infor['data']['msg'] == '产品不存在') {
|
||||
|
|
|
|||
Loading…
Reference in New Issue