Browse Source

1.规格选择弹框页面调整修改 2.详情页面布局调整修改 3.地址管理页面调整修改

master
dy-hu 3 years ago
parent
commit
09f8d4290c
  1. 7
      components/CashierList/index.vue
  2. 10
      pages/tabbar/user/index.vue
  3. 49
      pages_category_page1/goodsModule/components/GoodSkuSelect.vue
  4. 24
      pages_category_page1/goodsModule/goodsDetails.vue
  5. 174
      pages_category_page1/orderModule/orderConfirm.vue
  6. 2
      pages_category_page2/userModule/addAddress.vue
  7. 40
      pages_category_page2/userModule/address.vue

7
components/CashierList/index.vue

@ -32,7 +32,7 @@
<view class="radio"> <view class="radio">
<u-radio <u-radio
:disabled="payment.disabled" :disabled="payment.disabled"
activeColor="#c5aa7b"
activeColor="#252744"
:name="payment.paymentMode" :name="payment.paymentMode"
/> />
</view> </view>
@ -273,13 +273,14 @@ export default {
padding: 0rpx 15rpx; padding: 0rpx 15rpx;
box-sizing: border-box; box-sizing: border-box;
background: #fff; background: #fff;
border-radius: 30rpx;
.u-radio-group { .u-radio-group {
display: block !important; display: block !important;
} }
.cashier { .cashier {
border-bottom: 2rpx solid #d0d0d0;
border-bottom: 1px solid #BCBDC6;
&:last-child { &:last-child {
border-bottom: none border-bottom: none
@ -297,6 +298,8 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
font-size: 28rpx;
color: #252744;;
image { image {
width: 50rpx; width: 50rpx;

10
pages/tabbar/user/index.vue

@ -335,11 +335,11 @@ page {
border-radius: 50%; border-radius: 50%;
color: #FFFFFF; color: #FFFFFF;
text-align: center; text-align: center;
margin: 0rpx 0 0 30rpx;
margin: -10rpx 0 0 30rpx;
width: 30rpx; width: 30rpx;
height: 30rpx; height: 30rpx;
line-height: 30rpx; line-height: 30rpx;
font-size: 20rpx;
font-size: 14rpx;
} }
} }
@ -432,13 +432,13 @@ page {
.quan { .quan {
position: absolute; position: absolute;
right: 40upx;
top: 10upx;
right: 42rpx;
top: -10rpx;
border: 1px solid red; border: 1px solid red;
color: #FFFFFF; color: #FFFFFF;
background-color: red; background-color: red;
border-radius: 50%; border-radius: 50%;
font-size: 16rpx;
font-size: 14rpx;
width: 30upx; width: 30upx;
height: 30upx; height: 30upx;
line-height: 30upx; line-height: 30upx;

49
pages_category_page1/goodsModule/components/GoodSkuSelect.vue

@ -10,7 +10,7 @@
<u-popup <u-popup
v-model="goodsDetailShowFlag" v-model="goodsDetailShowFlag"
mode="bottom" mode="bottom"
border-radius="14"
border-radius="60"
> >
<view class="goosDetailshow-box"> <view class="goosDetailshow-box">
<view class="detailImg-box flex-row-plus"> <view class="detailImg-box flex-row-plus">
@ -110,51 +110,8 @@
<label class="sku-name">黑色2</label> <label class="sku-name">黑色2</label>
</view> </view>
</view> </view>
</scroll-view> </scroll-view>
<!-- <view class="u-flex" style="margin-top: 30rpx">
<view class="sku-image-item">
<image class="sku-image" :src="imageUrl"/>
<label class="sku-name">浅绿色</label>
</view>
<view class="sku-image-item">
<image class="sku-image" :src="imageUrl"/>
<label class="sku-name">深灰色</label>
</view>
<view class="sku-image-item">
<image class="sku-image" :src="imageUrl"/>
<label class="sku-name">黄色</label>
</view>
<view class="sku-image-item">
<image class="sku-image" :src="imageUrl"/>
<label class="sku-name">蓝色</label>
</view>
<view class="sku-image-item">
<image class="sku-image" :src="imageUrl"/>
<label class="sku-name">军绿色</label>
</view>
<view class="sku-image-item">
<image class="sku-image" :src="imageUrl"/>
<label class="sku-name">黑色</label>
</view>
<view class="sku-image-item">
<image class="sku-image" :src="imageUrl"/>
<label class="sku-name">黑色2</label>
</view>
<view class="sku-image-item">
<image class="sku-image" :src="imageUrl"/>
<label class="sku-name">黑色3</label>
</view>
</view>-->
</view> </view>
</view> </view>
<view class="goodsNumCent"> <view class="goodsNumCent">
@ -849,8 +806,8 @@ export default {
.selectBtn { .selectBtn {
width: 342rpx; width: 342rpx;
height: 98rpx;
line-height: 95rpx;
height: 88rpx;
line-height: 88rpx;
color: #252744; color: #252744;
text-align: center; text-align: center;
border: 1px solid #252744; border: 1px solid #252744;

24
pages_category_page1/goodsModule/goodsDetails.vue

@ -328,7 +328,7 @@
> >
<image <image
class="returnTopImg" class="returnTopImg"
src="https://ceres.zkthink.com/static/images/backTop.png"
src="https://wechat.hnthee.com/ceres-local-file/image/scroll_top.png"
></image> ></image>
</view> </view>
</view> </view>
@ -1287,8 +1287,8 @@ background-color: #F7F7F7;
} }
.joinShopCartBut { .joinShopCartBut {
width: 230rpx;
height: 90rpx;
width: 235rpx;
height: 88rpx;
background-color: #FFFFFF; background-color: #FFFFFF;
color: #333333; color: #333333;
font-size: 32rpx; font-size: 32rpx;
@ -1301,8 +1301,8 @@ background-color: #F7F7F7;
} }
.buyNowBut { .buyNowBut {
width: 230rpx;
height: 90rpx;
width: 235rpx;
height: 88rpx;
//background: #333333; //background: #333333;
background: linear-gradient(-10deg, #252744, #484A66); background: linear-gradient(-10deg, #252744, #484A66);
border-radius: 49rpx; border-radius: 49rpx;
@ -1336,15 +1336,15 @@ background-color: #F7F7F7;
} }
.returnTop-box { .returnTop-box {
width: 88rpx;
height: 88rpx;
border-radius: 50%;
background: #FFFFFF;
opacity: 0.8;
width: 98rpx;
height: 98rpx;
//border-radius: 50%;
//background: #FFFFFF;
//opacity: 0.8;
.returnTopImg { .returnTopImg {
width: 58rpx;
height: 58rpx;
width: 98rpx;
height: 98rpx;
} }
} }

174
pages_category_page1/orderModule/orderConfirm.vue

@ -10,7 +10,7 @@
@click="addAddressTap" @click="addAddressTap"
> >
<image <image
src="https://ceres.zkthink.com/static/images/orderAddress.png"
src="https://wechat.hnthee.com/ceres-local-file/image/address_select.png"
class="address-img" class="address-img"
></image> ></image>
<!-- 有地址的 --> <!-- 有地址的 -->
@ -34,7 +34,7 @@
<text>你还没有收货地址哦,点击这里添加</text> <text>你还没有收货地址哦,点击这里添加</text>
</view> </view>
<image <image
src="https://ceres.zkthink.com/static/images/greyArrow.png"
src="https://wechat.hnthee.com/ceres-local-file/image/address_foward.png"
class="arrow-right-img" class="arrow-right-img"
></image> ></image>
</view> </view>
@ -47,7 +47,7 @@
<view class="order-list-top"> <view class="order-list-top">
<view class="top-l"> <view class="top-l">
<image <image
src="https://ceres.zkthink.com/static/images/orderStoreIcon.png"
src="https://wechat.hnthee.com/ceres-local-file/image/cart_shop.png"
class="shop-img" class="shop-img"
> >
</image> </image>
@ -90,9 +90,9 @@
<view> <view>
<view class="item"> <view class="item">
<view class="flex-items"> <view class="flex-items">
<text>配送方式</text>
<text class="fs26 font-color-252744">配送方式</text>
</view> </view>
<view class="flex-row-plus flex-items">
<view class="flex-row-plus flex-items fs26 font-color-252744">
<text v-if="item.distribution.distributionPrice > 0">{{$t('common.express')}} ¥ <text v-if="item.distribution.distributionPrice > 0">{{$t('common.express')}} ¥
{{ item.distribution.distributionPrice }} {{ item.distribution.distributionPrice }}
</text> </text>
@ -130,7 +130,7 @@
</view> </view>
<image <image
class="discount-img" class="discount-img"
src="https://ceres.zkthink.com/static/images/arrowRight.png"
src="https://wechat.hnthee.com/ceres-local-file/image/address_foward.png"
></image> ></image>
</view> </view>
<!-- <view class="discount-info-box flex-items" v-else>--> <!-- <view class="discount-info-box flex-items" v-else>-->
@ -184,26 +184,26 @@
</view> </view>
<image <image
class="discount-img" class="discount-img"
src="https://ceres.zkthink.com/static/images/arrowRight.png"
src="https://wechat.hnthee.com/ceres-local-file/image/address_foward.png"
></image> ></image>
</view> </view>
</view> </view>
<!-- 积分支付-->
<!-- 积分支付-->
<view <view
class="integralPayBox" class="integralPayBox"
v-if="integralShow" v-if="integralShow"
> >
<view class="integralBg"> <view class="integralBg">
<view class="integralTit fs26">可用{{ integralNum }}积分抵扣{{ integralPrice.toFixed(2) }}元</view>
<view class="fs28 font-color-252744">可用{{ integralNum }}积分抵扣{{ integralPrice.toFixed(2) }}元</view>
<view class="maxIntegral"> <view class="maxIntegral">
<checkbox-group <checkbox-group
@change="changeIntegral" @change="changeIntegral"
style="width: 50rpx" style="width: 50rpx"
> >
<checkbox <checkbox
style="transform:scale(0.7);"
style="transform:scale(0.9);"
class="integralCheckbox" class="integralCheckbox"
color="#C5AA7B"
color="#252744"
value="1" value="1"
:checked="selectIntegral" :checked="selectIntegral"
/> />
@ -236,12 +236,12 @@
<text class="total">合计:</text> <text class="total">合计:</text>
<text <text
v-if="totalPrice>0" v-if="totalPrice>0"
class="price"
class="bottom-total-price"
>¥{{ totalPrice.toFixed(2) }} >¥{{ totalPrice.toFixed(2) }}
</text> </text>
<text <text
v-else v-else
class="price"
class="bottom-total-price"
>¥0.00 >¥0.00
</text> </text>
</view> </view>
@ -1330,7 +1330,7 @@ export default {
<style lang="scss"> <style lang="scss">
page { page {
background-color: #F7F7F7;
background-color: #FAFAFA;
} }
.content { .content {
@ -1340,8 +1340,8 @@ page {
.address-box { .address-box {
margin-top: 20upx; margin-top: 20upx;
background: #fff;
border-radius: 10upx;
background-color: #FFFFFF;
border-radius: 30upx;
width: 100%; width: 100%;
padding: 30upx; padding: 30upx;
box-sizing: border-box; box-sizing: border-box;
@ -1352,8 +1352,8 @@ page {
} }
.address-box .address-img { .address-box .address-img {
width: 71upx;
height: 57upx;
width: 42rpx;
height: 45rpx;
margin-right: 20upx; margin-right: 20upx;
} }
@ -1361,19 +1361,19 @@ page {
flex: 1; flex: 1;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
font-size: 28upx;
color: #333;
font-size: 28rpx;
color: #252744;
} }
.arrow-right-img { .arrow-right-img {
width: 62upx;
height: 62upx;
width: 16rpx;
height: 28rpx;
margin-left: 20upx; margin-left: 20upx;
} }
.address-name-box { .address-name-box {
font-size: 30upx;
color: #333;
font-size: 28rpx;
color: #252744;
} }
.phone { .phone {
@ -1383,15 +1383,20 @@ page {
} }
.address-info { .address-info {
font-size: 28upx;
color: #333;
font-size: 28rpx;
color: #252744;
margin-top: 15upx; margin-top: 15upx;
} }
.order-list-box .item {
background: #fff;
border-radius: 10upx;
.order-list-box{
border-radius: 30upx;
background-color: #FFFFFF;
} }
/*
.order-list-box .item {
border-radius: 30upx;
background-color: #FFFFFF;
}*/
.order-list-top { .order-list-top {
height: 96upx; height: 96upx;
@ -1411,15 +1416,15 @@ page {
} }
.shop-img { .shop-img {
width: 34upx;
height: 34upx;
width: 36rpx;
height: 32rpx;
margin-right: 10upx; margin-right: 10upx;
} }
.shop-name { .shop-name {
font-size: 30upx;
color: #333;
font-weight: bold;
font-size: 28rpx;
color: #252744;
font-weight: 400;
} }
.arrow-img { .arrow-img {
@ -1440,10 +1445,10 @@ page {
} }
.product-img { .product-img {
width: 180upx;
height: 180upx;
border-radius: 10upx;
margin-right: 30upx;
width: 152rpx;
height: 152rpx;
border-radius: 30upx;
margin-right: 12upx;
} }
.info-box { .info-box {
@ -1451,10 +1456,8 @@ page {
} }
.product-name { .product-name {
font-size: 26upx;
color: #333;
height: 68upx;
line-height: 34upx;
font-size: 26rpx;
color: #252744;
display: -webkit-box; display: -webkit-box;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
@ -1471,28 +1474,30 @@ page {
} }
.product-sku { .product-sku {
font-size: 24upx;
font-weight: 500;
color: #999;
font-size: 24rpx;
font-weight: 400;
color: #90919C;
margin-left: -20upx; margin-left: -20upx;
margin-top: 5rpx;
width: 100%; width: 100%;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
} }
.product-price { .product-price {
font-size: 32upx;
color: #C83732;
font-size: 28rpx;
margin-top: 26rpx;
color: #90919C;
font-weight: 400; font-weight: 400;
} }
.product-price .fuhao { .product-price .fuhao {
font-size: 28upx;
font-size: 28rpx;
} }
.product-num { .product-num {
font-size: 28upx;
color: #999;
font-size: 24rpx;
color: #90919C;
font-weight: 400; font-weight: 400;
} }
@ -1504,7 +1509,8 @@ page {
.delivery-way-box { .delivery-way-box {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
border: 2rpx solid #E4E5E6;
border: 1px solid #BCBDC6;
border-radius: 20rpx;
padding: 20rpx; padding: 20rpx;
margin-bottom: 20rpx; margin-bottom: 20rpx;
box-sizing: content-box; box-sizing: content-box;
@ -1539,13 +1545,13 @@ page {
} }
.total-num { .total-num {
font-size: 26upx;
color: #333;
font-size: 28rpx;
color: #252744;
} }
.total-price { .total-price {
font-size: 46rpx;
color: #333333;
font-size: 36rpx;
color: #252744;
} }
.ml10 { .ml10 {
@ -1555,11 +1561,12 @@ page {
.order-flow-box { .order-flow-box {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
margin-top: 40rpx;
} }
.flow-word { .flow-word {
font-size: 24upx;
color: #999;
font-size: 28rpx;
color: #252744;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
@ -1579,42 +1586,49 @@ page {
left: 0; left: 0;
width: 100%; width: 100%;
background: #fff; background: #fff;
border-radius: 40rpx;
padding: 30upx; padding: 30upx;
} }
.num-box { .num-box {
font-size: 30upx;
color: #999;
font-size: 32rpx;
color: #90919C;
} }
.num-box .total {
color: #333;
.total {
font-size: 32rpx;
color: #252744;
font-weight: 400rpx;
} }
.num-box .price {
color: #ff7911;
font-weight: bold;
.bottom-total-price {
font-size: 32rpx;
color: #252744;
font-weight: 400rpx;
} }
.order-confirm-box .btn { .order-confirm-box .btn {
width: 100%; width: 100%;
height: 80rpx;
line-height: 80rpx;
height: 88rpx;
line-height: 88rpx;
background: #eee; background: #eee;
font-size: 28rpx; font-size: 28rpx;
color: #FFEBC4; color: #FFEBC4;
text-align: center; text-align: center;
margin-top: 20rpx; margin-top: 20rpx;
border-radius: 50rpx;
} }
.order-confirm-box .btn.active { .order-confirm-box .btn.active {
background: #333333;
color: #FFEBC4;
background: #252744;
color: #FFFFFF;
border-radius: 50rpx;
} }
.order-confirm-box .btn.unActive { .order-confirm-box .btn.unActive {
background: #333333;
color: #FFEBC4;
background: #252744;
color: #FFFFFF;
border-radius: 50rpx;
opacity: 0.7; opacity: 0.7;
} }
@ -1641,6 +1655,7 @@ page {
justify-content: space-between; justify-content: space-between;
padding: 0 20upx; padding: 0 20upx;
background: white; background: white;
border-radius: 30rpx;
} }
.pay-type-item { .pay-type-item {
@ -1771,17 +1786,17 @@ page {
.discount-label, .discount-label,
.discount-info1 { .discount-info1 {
font-size: 26upx;
color: #333;
font-size: 28rpx;
color: #252744;
} }
.discount-info2 { .discount-info2 {
color: #C5AA7B;
color: #252744;
} }
.discount-img { .discount-img {
width: 30upx;
height: 30upx;
width: 16rpx;
height: 28rpx;
margin-left: 20upx; margin-left: 20upx;
} }
@ -2005,7 +2020,7 @@ page {
height: 291rpx; height: 291rpx;
background: url("https://ceres.zkthink.com/static/images/couponsIcon.png") no-repeat center top; background: url("https://ceres.zkthink.com/static/images/couponsIcon.png") no-repeat center top;
margin-top: 20upx; margin-top: 20upx;
color: #C5AA7B;
color: #252744;
flex-shrink: 0; flex-shrink: 0;
text-align: center; text-align: center;
padding-top: 1rpx; padding-top: 1rpx;
@ -2032,6 +2047,7 @@ page {
align-items: center; align-items: center;
background: #FFFFFF; background: #FFFFFF;
padding: 0 20rpx; padding: 0 20rpx;
border-radius: 30rpx;
.maxDeduction { .maxDeduction {
margin-right: 15rpx; margin-right: 15rpx;
@ -2041,8 +2057,8 @@ page {
</style> </style>
<style> <style>
.pay-type-item /deep/ .uni-radio-input-checked { .pay-type-item /deep/ .uni-radio-input-checked {
background-color: #C5AA7B !important;
border-color: #C5AA7B !important;
background-color: #252744 !important;
border-color: #252744 !important;
} }
.maxIntegral /deep/ .uni-checkbox-input { .maxIntegral /deep/ .uni-checkbox-input {
@ -2055,6 +2071,6 @@ page {
} }
.maxIntegral /deep/ .uni-checkbox-input-checked { .maxIntegral /deep/ .uni-checkbox-input-checked {
border: 2rpx solid #C5AA7B !important;
border: 2rpx solid #252744 !important;
} }
</style> </style>

2
pages_category_page2/userModule/addAddress.vue

@ -39,7 +39,7 @@
</view> </view>
<view class="defaultState-box flex-row-plus flex-sp-between flex-items"> <view class="defaultState-box flex-row-plus flex-sp-between flex-items">
<view class="fs28 defaultState">{{$t('common.addressdefault')}}</view> <view class="fs28 defaultState">{{$t('common.addressdefault')}}</view>
<u-switch v-model="ifDefault" active-color="#C5AA7B" inactive-color="#eee"></u-switch>
<u-switch v-model="ifDefault" active-color="#252744" inactive-color="#bcbdc6"></u-switch>
</view> </view>
</view> </view>
<view class="deleteAddress-box" @click="delAddress" v-if="type == 2"> <view class="deleteAddress-box" @click="delAddress" v-if="type == 2">

40
pages_category_page2/userModule/address.vue

@ -7,8 +7,8 @@
<!-- <view class="address-hesd">{{item.username1}}</view>--> <!-- <view class="address-hesd">{{item.username1}}</view>-->
<view class="address-detail" @click="itemTap(item)"> <view class="address-detail" @click="itemTap(item)">
<view class="userName"> <view class="userName">
<text>{{item.receiveName}}</text>
<text class="font-color-999 mar-left-30">{{item.receivePhone}}</text>
<text class="fs28 font-color-252744">{{item.receiveName}}</text>
<text class="fs28 font-color-90919C mar-left-30">{{item.receivePhone}}</text>
</view> </view>
<view class="defaultAD-box"> <view class="defaultAD-box">
<text class="def" v-if="item.ifDefault">{{$t('common.default')}}</text> <text class="def" v-if="item.ifDefault">{{$t('common.default')}}</text>
@ -217,9 +217,10 @@
.addAddress { .addAddress {
width: 690upx; width: 690upx;
height: 100upx; height: 100upx;
color: #FFEBC4;
color: #FFFFFF;
text-align: center; text-align: center;
background: #333333;
background: #252744;
border-radius: 50rpx;
} }
} }
@ -266,9 +267,10 @@
justify-content: space-between; justify-content: space-between;
padding-bottom: 40rpx; padding-bottom: 40rpx;
margin-bottom: 40rpx; margin-bottom: 40rpx;
border-bottom: 2rpx solid #F3F4F5;
border-bottom: 1rpx solid #D3D4DE;
.address-detail { .address-detail {
flex-grow: 1;
.userName { .userName {
margin-bottom: 15rpx; margin-bottom: 15rpx;
} }
@ -276,25 +278,28 @@
.lable { .lable {
padding: 3rpx 10rpx; padding: 3rpx 10rpx;
background: rgba(153, 153, 153, 0.2);
border-radius: 4rpx;
background-color: #F2F2F6;
border-radius: 6rpx;
font-size: 24rpx; font-size: 24rpx;
font-weight: 500;
color: rgba(102, 102, 102, 1);
font-weight: 400;
//color: rgba(102, 102, 102, 1);
color: #595B6B;
text-align: center;
} }
.def { .def {
padding: 3rpx 10rpx; padding: 3rpx 10rpx;
font-size: 20rpx;
font-size: 24rpx;
font-weight: 400; font-weight: 400;
color: #C5AA7B !important;
background: rgba(197, 170, 123, 0.2) !important;
color: #F54639 !important;
background-color: #FCE4E2 !important;
border-radius: 6rpx;
} }
.user-address { .user-address {
font-size: 28rpx; font-size: 28rpx;
margin-left: 10rpx; margin-left: 10rpx;
color: #90919C;
} }
.address-hesd { .address-hesd {
@ -308,7 +313,7 @@
} }
.defaultAD-box { .defaultAD-box {
width: 455upx;
width: 100%;
.default-textBox { .default-textBox {
padding-right: 20upx; padding-right: 20upx;
@ -330,12 +335,11 @@
line-height: 36upx; line-height: 36upx;
} }
} }
.editIcon { .editIcon {
width: 50rpx;
height: 50rpx;
width: 40rpx;
height: 41rpx;
display: block; display: block;
background: url("https://ceres.zkthink.com/static/images/addEdit.png") no-repeat center center;
background: url("https://wechat.hnthee.com/ceres-local-file/image/address_edit.png") no-repeat center center;
background-size: contain; background-size: contain;
} }
} }

Loading…
Cancel
Save