Commit be335291 by songbingqi

修改首页部分样式效果

parent 32a113a2
<template> <template>
<view class="page-body"> <view class="page-body">
<scroll-view class="nav-left" scroll-y :scroll-top="scrollLeftTop" scroll-with-animation> <scroll-view class="nav-left" :class="buied?'buiedcss':''" scroll-y :scroll-top="scrollLeftTop" scroll-with-animation>
<view class="nav-left-item" v-for="item in classifyData" @click="categoryClickMain(item.id)" :key="item.id" <view class="nav-left-item" v-for="item in classifyData" @click="categoryClickMain(item.id)" :key="item.id"
:class="item.id == categoryId ? 'active' : ''"> :class="item.id == categoryId ? 'active' : ''">
<span>{{ item.name }}</span> <span>{{ item.name }}</span>
<view :class="item.id == categoryId ? 'active-line' : ''"></view> <view :class="item.id == categoryId ? 'active-line' : ''"></view>
</view> </view>
</scroll-view> </scroll-view>
<scroll-view class="nav-right" scroll-y :scroll-top="scrollTop" @scroll="scroll" @touchstart="openScroll" <scroll-view class="nav-right" :class="buied?'buiedcss':''" scroll-y :scroll-top="scrollTop" @scroll="scroll" @touchstart="openScroll"
scroll-with-animation> scroll-with-animation>
<view v-for="category in classifyData" :id="category.id" :key="category.id" class="box"> <view v-for="category in classifyData" :id="category.id" :key="category.id" class="box">
<view :style="loads" class="right-title">{{ category.name }}</view> <view :style="loads" class="right-title">{{ category.name }}</view>
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<view class="price"><text class="num">{{ getSku(item).price }}</text></view> <view class="price"><text class="num">{{ getSku(item).price }}</text></view>
</view> </view>
</view> </view>
<u-icon v-if="getSku(item).state==1" class="add" name="plus-circle-fill" color="#2979ff" @click.stop="getallNum(item, category)" size="22"></u-icon> <u-icon v-if="getSku(item).state==1" class="add" name="plus-circle-fill" color="#003AE9" @click.stop="getallNum(item, category)" size="22"></u-icon>
<div v-else style="color: orangered;font-size: 22rpx;">已售罄</div> <div v-else style="color: orangered;font-size: 22rpx;">已售罄</div>
</view> </view>
</view> </view>
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<script> <script>
export default { export default {
name: 'menuAssembly', name: 'menuAssembly',
watch: {}, props:['buied'],
data() { data() {
return { return {
classifyData: [], classifyData: [],
...@@ -354,7 +354,7 @@ export default { ...@@ -354,7 +354,7 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
box-shadow: 0px 3px 2px #f4f2f2; font-family: PingFangSC-Regular, PingFang SC;
} }
.nav-left-item:last-child { .nav-left-item:last-child {
...@@ -365,10 +365,12 @@ export default { ...@@ -365,10 +365,12 @@ export default {
height: calc(100vh - 376rpx); height: calc(100vh - 376rpx);
overflow: auto; overflow: auto;
box-sizing: border-box; box-sizing: border-box;
padding-top: 30rpx; padding-top: 60rpx;
width: 596rpx; width: 596rpx;
} }
.buiedcss{
height: calc(100vh - 376rpx - 183rpx);
}
.box { .box {
display: block; display: block;
overflow: hidden; overflow: hidden;
...@@ -382,12 +384,13 @@ export default { ...@@ -382,12 +384,13 @@ export default {
} }
.right-title { .right-title {
font-family: PingFangSC-Medium, PingFang SC;
padding-left: 28rpx; padding-left: 28rpx;
margin-bottom: 40rpx; margin-bottom: 40rpx;
height: 44rpx; height: 44rpx;
font-size: 32rpx; font-size: 28rpx;
font-weight: 600; font-weight: 600;
color: #000000; color: #333333;
line-height: 44rpx; line-height: 44rpx;
} }
...@@ -412,20 +415,22 @@ export default { ...@@ -412,20 +415,22 @@ export default {
flex: 1; flex: 1;
.goods-name { .goods-name {
font-family: PingFangSC-Medium, PingFang SC;
font-size: 28rpx; font-size: 28rpx;
font-weight: 500; font-weight: 500;
color: #000000; color: #333333;
} }
.tags { .tags {
.tag-item { .tag-item {
font-family: Arial, Helvetica SC;
height: 24rpx; height: 24rpx;
border-radius: 4rpx; border-radius: 4rpx;
border: 2rpx solid #006ECF; background-color: #f0edf1;
margin-right: 10rpx; margin-right: 10rpx;
padding: 4rpx 6rpx; padding: 4rpx 6rpx;
font-size: 16rpx; font-size: 20rpx;
color: #006ECF; color: #999999;
line-height: 24rpx; line-height: 24rpx;
display: inline-block; display: inline-block;
} }
...@@ -437,6 +442,7 @@ export default { ...@@ -437,6 +442,7 @@ export default {
font-weight: 400; font-weight: 400;
color: #666666; color: #666666;
line-height: 40rpx; line-height: 40rpx;
font-family: PingFangSC-Regular, PingFang SC;
.desc { .desc {
flex: 1; flex: 1;
...@@ -445,13 +451,14 @@ export default { ...@@ -445,13 +451,14 @@ export default {
.mon { .mon {
.discount { .discount {
font-family: Futura, Arial, sans-serif;
display: inline-block; display: inline-block;
height: 32rpx; height: 32rpx;
font-size: 24rpx; font-size: 28rpx;
color: #EB5F17; color: #333333;
line-height: 32rpx; line-height: 32rpx;
margin-right: 6rpx; margin-right: 6rpx;
font-weight: 800; font-weight: 600;
} }
.price { .price {
...@@ -484,8 +491,11 @@ export default { ...@@ -484,8 +491,11 @@ export default {
} }
.active { .active {
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 600; font-weight: 600;
color: #000000; color: #333333;
font-size: 24rpx;
box-shadow: 0px 2px 3px #f4f2f2;
background: #fff; background: #fff;
} }
......
...@@ -23,18 +23,17 @@ ...@@ -23,18 +23,17 @@
</view> </view>
</view> </view>
<view> <view>
<u-icon name="arrow-right" class="arrow-right-select" color="#717171"></u-icon> <u-icon name="arrow-right" v-if="userms" class="arrow-right-select" color="#717171"></u-icon>
</view>
</view>
<button class="login-btn" v-if="!userms" open-type="getPhoneNumber" <button class="login-btn" v-if="!userms" open-type="getPhoneNumber"
@getphonenumber="getPhoneNumber">立刻登录 @getphonenumber="getPhoneNumber">立刻登录
</button> </button>
</view>
</view>
</view> </view>
</view> </view>
<view class="order-banner" v-if="buied" @click="openQrcode"> <view class="order-banner" v-if="buied" @click="openQrcode">
<view class="info"> <view class="info">
<view class="first">取单码:{{ orderInfo.orderNum }}</view> <view class="first">取单码:<text class="first-code">{{ orderInfo.orderNum }}</text></view>
<view class="second">请您耐心等候,剩余等候时间<text class="time">{{ orderInfo.waitTime }}</text>分钟</view> <view class="second">请您耐心等候,剩余等候时间<text class="time">{{ orderInfo.waitTime }}</text>分钟</view>
</view> </view>
<view class="line"></view> <view class="line"></view>
...@@ -46,7 +45,7 @@ ...@@ -46,7 +45,7 @@
</view> </view>
</view> </view>
<ShopCar ref="shopbar" /> <ShopCar ref="shopbar" />
<MenuAssembly ref="MenuAssembly" @getallNum="getallNum" /> <MenuAssembly ref="MenuAssembly" @getallNum="getallNum" :buied="buied"/>
<u-picker @cancel="show = false" :show="show" :immediateChange="true" ref="uPicker" :columns="columns" <u-picker @cancel="show = false" :show="show" :immediateChange="true" ref="uPicker" :columns="columns"
@confirm="confirm" keyName="name" @change="changeHandler"></u-picker> @confirm="confirm" keyName="name" @change="changeHandler"></u-picker>
<OrderQrCode ref="OrderQrCode" /> <OrderQrCode ref="OrderQrCode" />
...@@ -407,16 +406,15 @@ export default { ...@@ -407,16 +406,15 @@ export default {
} }
.order-banner { .order-banner {
width: 686rpx; width: 710rpx;
height: 179rpx; height: 179rpx;
background: #FFFFFF; background: #FFFFFF;
box-shadow: 0rpx 4rpx 8rpx 0rpx rgba(166, 166, 166, 0.5); box-shadow: 4rpx 2rpx 4rpx 3rpx #f3f1f4;
border-radius: 10rpx;
box-sizing: border-box; box-sizing: border-box;
position: relative; position: relative;
left: 32rpx; left: 20rpx;
top: -8rpx; top: 12rpx;
z-index: 1; z-index: 10;
display: flex; display: flex;
.info { .info {
...@@ -425,12 +423,17 @@ export default { ...@@ -425,12 +423,17 @@ export default {
.first { .first {
height: 44rpx; height: 44rpx;
font-size: 32rpx; font-size: 28rpx;
font-family: PingFangSC-Semibold, PingFang SC; font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600; font-weight: 600;
color: #323232; color: #6d6a6d;
line-height: 44rpx; line-height: 44rpx;
margin-top: 40rpx; margin-top: 40rpx;
.first-code{
font-family: Arial, Helvetica SC;
font-size: 28rpx;
color: #333333;
}
} }
.second { .second {
...@@ -439,14 +442,14 @@ export default { ...@@ -439,14 +442,14 @@ export default {
font-size: 24rpx; font-size: 24rpx;
font-family: PingFangSC-Medium, PingFang SC; font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500; font-weight: 500;
color: #323232; color: #a4a2a5;
line-height: 34rpx; line-height: 34rpx;
letter-spacing: 0rpx;
.time { .time {
font-size: 28rpx; font-size: 32rpx;
font-family: Arial-BoldMT, Arial; font-family: Futura, Arial, sans-serif;
font-weight: normal; font-weight: normal;
color: #006ECF; color: #003ae9;
margin: 0 16rpx; margin: 0 16rpx;
} }
} }
...@@ -455,7 +458,7 @@ export default { ...@@ -455,7 +458,7 @@ export default {
.line { .line {
width: 0; width: 0;
height: 104rpx; height: 104rpx;
border-right: 4rpx solid #006ECF; border-right: 2rpx solid #f8f5f8;
position: absolute; position: absolute;
right: 188rpx; right: 188rpx;
top: 36rpx; top: 36rpx;
...@@ -487,7 +490,7 @@ export default { ...@@ -487,7 +490,7 @@ export default {
font-size: 16rpx; font-size: 16rpx;
font-family: PingFangSC-Medium, PingFang SC; font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500; font-weight: 500;
color: #666666; color: #999999;
line-height: 22rpx; line-height: 22rpx;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment