# 2022-02-20

### 1.3.7 开源社区版:
无
### 0.2.1 会员专业版:
【修复】修复商品分享链接获取失败的问题。
【优化】同城配送运费计算直线距离超过50km的极端情况下直接按照公里数*2元计算。
【修复】修复同城配送切换地址成功但是未重新计算运费的问题。
【优化】优化会员中心面板用户登录后昵称与会员等级挤压导致换行问题。
【修复】修复购物车加减按钮反复频繁点击下。导致总价可能出现异常的情况。
【优化】优化下单界面布局细节。
【修复】修复首页秒杀排列样式问题。#I4UE2E
This commit is contained in:
JianWeie
2022-02-20 00:34:54 +08:00
parent 286c329a74
commit ef07cbe49c
7 changed files with 46 additions and 44 deletions

View File

@@ -7,25 +7,23 @@
<view class="coreshop-margin-left-15 coreshop-margin-right-15" v-if="coreshopdata.parameters.list && count">
<view class="img-list-item" v-if="item.id !== 'undefined' && item.id" v-for="(item, key) in coreshopdata.parameters.list" :key="key" @click="goSeckillDetail(item.goods.id, item.goods.groupId)">
<view class="img-list-item-l">
<u-image :src="item.goods.image" :index="item.id" :showLoading="true"></u-image>
<u-image :src="item.goods.image" :index="item.id" :showLoading="true" width="100%" height="96px"></u-image>
</view>
<view class="img-list-item-r">
<view class="coreshop-font-14 u-line-1">{{item.name}}</view>
<view class="description u-line-2 coreshop-margin-10">{{item.goods.name}}</view>
<view class="item-c">
<view class="red-price coreshop-justify-between">
<view class="coreshop-font-18 u-line-1">{{item.name}}</view>
<view class="u-line-2 coreshop-margin-top-5 coreshop-margin-bottom-5">{{item.goods.name}}</view>
<view class="item-c coreshop-flex coreshop-justify-between">
<view class="red-price coreshop-justify-between">
{{item.goods.product.price}}
<span class="coreshop-font-xs coreshop-text-through coreshop-margin-left-15">{{item.goods.product.mktprice}}</span>
<span class="coreshop-font-xs coreshop-text-through coreshop-margin-left-5">{{item.goods.product.mktprice}}</span>
</view>
<view class="coreshop-flex-direction-row coreshop-justify-between">
<view>
<view class="red-price coreshop-font-30 coreshop-flex-direction-row" v-if="(item.startStatus == 1) && item.lastTime">
剩余<u-count-down :time="item.lastTime" format="HH:mm:ss"></u-count-down>
</view>
<view class="coreshop-font-12 red-price" v-if="item.startStatus == 3">已结束</view>
<view class="coreshop-font-12 red-price" v-if="item.startStatus == 2">即将开始</view>
<view class="coreshop-flex coreshop-flex-direction-row coreshop-justify-between">
<view class="red-price coreshop-font-15 coreshop-flex-direction-row" v-if="(item.startStatus == 1) && item.lastTime">
<u-count-down :time="item.lastTime" format="HH:mm:ss"></u-count-down>
</view>
<u-icon name="shopping-cart" color="#2979ff" size="20" class="btnCart"></u-icon>
<view class="coreshop-font-12 red-price" v-if="item.startStatus == 3">已结束</view>
<view class="coreshop-font-12 red-price" v-if="item.startStatus == 2">即将开始</view>
<u-icon name="shopping-cart" color="#2979ff" size="25" class="btnCart"></u-icon>
</view>
</view>
</view>

View File

@@ -230,6 +230,10 @@
this.$u.throttle(this.numberChange(e), 500)
},
numberChange(e) {
uni.showLoading({
title: '加载中',
mask: true
});
let _this = this;
let data = {
id: this.shoppingCard.list[e.name].productId,
@@ -238,12 +242,19 @@
_this.$u.api.setCartNum(data).then(res => {
if (res.status) {
_this.shoppingCard.list[e.name].nums = e.value;
//重新计算总价
this.countTotoal();
setTimeout(function () {
uni.hideLoading();
}, 300);
} else {
_this.$u.toast(res.msg);
setTimeout(function () {
uni.hideLoading();
}, 300);
}
});
//重新计算总价
this.countTotoal();
},
removeGoods: function (index) {
let _this = this;

View File

@@ -57,3 +57,6 @@
.grid-text { font-size: 14px; margin-top: 10px; margin-bottom: 10px; color: $core-type-info; }
.coreshop-bg-green { background-color: #077044; color: #ffffff; }

View File

@@ -35,17 +35,19 @@
<!--已登陆-->
<view v-else>
<view class="coreshop-flex user-box coreshop-padding-left-15 coreshop-padding-right-10 coreshop-padding-bottom-30 coreshop-flex-direction-row">
<view class="coreshop-margin-right-10">
<view class="coreshop-margin-right-10 coreshop-padding-top-20">
<u-avatar :src="userInfo.avatarImage" size="48"></u-avatar>
</view>
<view class="coreshop-flex-1 coreshop-padding-top-10 coreshop-padding-bottom-5 coreshop-padding-right-10">
<view class="coreshop-font-17 coreshop-padding-bottom-10 coreshop-flex-direction-row">
<text class="coreshop-margin-right-10">{{ userInfo.nickName }}</text>
<text class="coreshop-font-12">{{ userInfo.gradeName }}</text>
</view>
<view class="coreshop-font-12 coreshop-padding-bottom-10 coreshop-flex-direction-row">
<text class="coreshop-font-12">等级{{ userInfo.gradeName }}</text>
</view>
<view class="coreshop-font-12 coreshop-flex-direction-row">
<text class="text-border-x">积分 {{ userInfo.point }}</text>
<text>余额 {{ userInfo.balance }}</text>
<text class="text-border-x">积分 {{ userInfo.point }}</text>
<text>余额 {{ userInfo.balance }}</text>
</view>
</view>
<!-- #ifndef MP-WEIXIN -->

View File

@@ -91,6 +91,7 @@
// #ifdef MP-WEIXIN
beforePage.$vm.userShip = data;
beforePage.$vm.params.userShipId = data.id;
beforePage.$vm.params.areaId = data.areaId;
// #endif

View File

@@ -233,7 +233,7 @@
<!--底部操作-->
<view class="coreshop-bg-white coreshop-footer-fixed coreshop-foot-padding-bottom">
<view class="coreshop-flex coreshop-flex-nowrap coreshop-justify-between coreshop-padding-10 coreshop-percent-100">
<view class="coreshop-text-black coreshop-text-bold price-view coreshop-basis-6">
<view class="coreshop-text-black coreshop-text-bold price-view coreshop-basis-6 coreshop-flex coreshop-align-center">
<text class="coreshop-margin-right-10"> {{ productNums}} 件商品</text>
<text>合计<text class="coreshop-text-price coreshop-text-red coreshop-font-lg coreshop-margin-left-10"> {{ cartData.amount}}</text></text>
</view>