Commit d01d92b9 by 宋冰琦

调整页面样式

parent 3b34e803
...@@ -28,12 +28,44 @@ export default { ...@@ -28,12 +28,44 @@ export default {
} }
</script> </script>
<style> <style lang="scss">
/*每个页面公共css */ /*每个页面公共css */
.pages { .pages {
background: #F2F2F2; background: #F2F2F2;
min-height: 100vh; min-height: 100vh;
} }
.uni-tabbar {
// tab 样式
// 背景色
background-color: rgba(57, 181, 74, 0.1) !important;
// tabBar 样式
// 上边框
.uni-tabbar-border {
background-color: #e54d42 !important; // tabBar 上边框的颜色
}
.uni-tabbar__item {
// tabBar 单项样式
height: 100rpx !important;
&:not(:last-child) {
border-right: 4rpx solid #eee;
}
.uni-tabbar__icon {
// tabBar 图标样式
width: 40rpx !important;
height: 40rpx !important;
}
.uni-tabbar__label {
// tabBar 文字样式
// color:yellow !important
}
}
}
* { * {
box-sizing: border-box; box-sizing: border-box;
......
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
</div> </div>
<div class="qr_code" v-else> <div class="qr_code" v-else>
<image mode="aspectFit" :src="'/static/imgs/erweimazhedang.png'" class="qr"></image> <image mode="aspectFit" :src="'/static/imgs/erweimazhedang.png'" class="qr"></image>
<view class="status_text">——制作完成后才能扫哦——</view>
</div> </div>
<view class="status_text">——制作完成后才能扫哦——</view>
<div class="flow_describe"> <div class="flow_describe">
<view class="title">扫码流程</view> <view class="title">扫码流程</view>
<image :mode="'aspectFit'" class="flow_img" :src="'/static/imgs/saomaliucheng.png'"></image> <image :mode="'aspectFit'" class="flow_img" :src="'/static/imgs/saomaliucheng.png'"></image>
...@@ -87,7 +87,7 @@ export default { ...@@ -87,7 +87,7 @@ export default {
// console.log("order:"+JSON.stringify(this.orderInfo)); // console.log("order:"+JSON.stringify(this.orderInfo));
if(this.showMask) { if(this.showMask) {
this.qrCode = '/static/imgs/noQr.png'; this.qrCode = '';
} else { } else {
this.qrCode = path; this.qrCode = path;
} }
...@@ -118,13 +118,6 @@ export default { ...@@ -118,13 +118,6 @@ export default {
margin: 32rpx 32rpx; margin: 32rpx 32rpx;
padding: 24rpx 0rpx 30rpx 0rpx; padding: 24rpx 0rpx 30rpx 0rpx;
.status_text {
font-size: 28rpx;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #333333;
text-align: center;
}
.btns { .btns {
text-align: center; text-align: center;
...@@ -160,7 +153,13 @@ export default { ...@@ -160,7 +153,13 @@ export default {
margin: 32rpx; margin: 32rpx;
padding-top: 40rpx; padding-top: 40rpx;
padding-bottom: 25rpx; padding-bottom: 25rpx;
.status_text {
font-size: 28rpx;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #333333;
text-align: center;
}
.code { .code {
font-size: 36rpx; font-size: 36rpx;
font-family: PingFangSC-Semibold, PingFang SC; font-family: PingFangSC-Semibold, PingFang SC;
...@@ -174,11 +173,14 @@ export default { ...@@ -174,11 +173,14 @@ export default {
height: 510rpx; height: 510rpx;
} }
.qr_code { .qr_code {
height: 314rpx; height: 347rpx;
width: 353rpx;
display: block; display: block;
margin: 70rpx auto; margin: 70rpx auto;
position: relative; position: relative;
padding-bottom: 30rpx; padding-bottom: 40rpx;
margin-bottom: 0rpx;
margin-left: 150rpx;
.status_text { .status_text {
font-size: 28rpx; font-size: 28rpx;
...@@ -210,8 +212,8 @@ export default { ...@@ -210,8 +212,8 @@ export default {
.flow_img { .flow_img {
padding:36rpx 32rpx 0rpx 32rpx; padding:36rpx 32rpx 0rpx 32rpx;
width: 586rpx; width: 590rpx;
height: 223rpx; height: 244rpx;
display: block; display: block;
} }
} }
......
...@@ -23,6 +23,23 @@ Vue.use(uView); ...@@ -23,6 +23,23 @@ Vue.use(uView);
Vue.prototype.$utils = utils; Vue.prototype.$utils = utils;
Vue.prototype.setPrice = (price) => price && Number(price).toFixed(2); Vue.prototype.setPrice = (price) => price && Number(price).toFixed(2);
// #ifdef MP-WEIXIN
Vue.mixin({
methods:{
setTabBarIndex(index) {
if (typeof this.$mp.page.getTabBar === 'function' &&
this.$mp.page.getTabBar()) {
this.$mp.page.getTabBar().setData({
selected: index
})
}
}
}
})
// #endif
Vue.prototype.loginByPhoneNumber = (e) => { Vue.prototype.loginByPhoneNumber = (e) => {
if (e.detail.errMsg == 'getPhoneNumber:ok') { if (e.detail.errMsg == 'getPhoneNumber:ok') {
User.getPhoneNumber(e); User.getPhoneNumber(e);
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<view class="line"></view> <view class="line"></view>
<div class="dec"> <div class="dec">
<view :style="{'height':'34rpx'}" v-show="item.distance && item.distance!=-1"></view> <view :style="{'height':'34rpx'}" v-show="item.distance && item.distance!=-1"></view>
<view class="goshop"></view> <view class="goshop">去品尝</view>
<view :style="{'height':'34rpx'}" class="distance" v-show="item.distance && item.distance!=-1">距离 {{ item.distance }}</view> <view :style="{'height':'34rpx'}" class="distance" v-show="item.distance && item.distance!=-1">距离 {{ item.distance }}</view>
</div> </div>
</div> </div>
...@@ -153,7 +153,14 @@ export default { ...@@ -153,7 +153,14 @@ export default {
.goshop { .goshop {
width: 167rpx; width: 167rpx;
height: 64rpx; height: 64rpx;
background: url('@/static/imgs/qupinchang.png') center center no-repeat; background: #003AE9;
border-radius: 2rpx;
font-size: 24rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #FFFFFF;
text-align: center;
line-height: 64rpx;
} }
.distance { .distance {
......
...@@ -137,7 +137,6 @@ export default { ...@@ -137,7 +137,6 @@ export default {
this.goodInfo = goodsInfo; this.goodInfo = goodsInfo;
console.log(JSON.parse(JSON.stringify(this.goodInfo))); console.log(JSON.parse(JSON.stringify(this.goodInfo)));
this.initInfo(this.goodInfo) this.initInfo(this.goodInfo)
}, },
// watch:{ // watch:{
...@@ -439,7 +438,6 @@ export default { ...@@ -439,7 +438,6 @@ export default {
.div_item { .div_item {
position: relative; position: relative;
width: 120rpx;
height: 48rpx; height: 48rpx;
margin-right: 32rpx; margin-right: 32rpx;
line-height: 48rpx; line-height: 48rpx;
...@@ -465,6 +463,7 @@ export default { ...@@ -465,6 +463,7 @@ export default {
} }
.good-spec-rule-item { .good-spec-rule-item {
padding: 0rpx 20rpx;
width: 100%; width: 100%;
height: 100%; height: 100%;
font-size: 24rpx; font-size: 24rpx;
...@@ -474,7 +473,6 @@ export default { ...@@ -474,7 +473,6 @@ export default {
display: inline-block; display: inline-block;
margin: 0; margin: 0;
margin: 0; margin: 0;
padding: 0;
line-height: 50rpx; line-height: 50rpx;
border-radius: 0rpx; border-radius: 0rpx;
border: none; border: none;
...@@ -483,6 +481,7 @@ export default { ...@@ -483,6 +481,7 @@ export default {
&.active { &.active {
font-weight: 400; font-weight: 400;
padding: 0rpx 20rpx;
background: #003AE9; background: #003AE9;
color: #fff; color: #fff;
border-radius: 0rpx; border-radius: 0rpx;
......
...@@ -69,8 +69,8 @@ export default { ...@@ -69,8 +69,8 @@ export default {
margin-top: 311rpx; margin-top: 311rpx;
.empty_icon { .empty_icon {
width: 322rpx; width: 324rpx;
height: 234rpx; height: 236rpx;
} }
.empty_text { .empty_text {
......
<template> <template>
<div class="pages"> <div class="pages">
<div class="order_status"> <div class="order_status">
<view class="status_text">{{ orderStatusText }}</view> <view class="status_text">订单状态:{{ orderStatusText }}</view>
<view class="tips"> <view class="tips">
<view v-if="orderInfo.state == 7">为保持口感,请尽快引用哦~</view> <view v-if="orderInfo.state == 7">为保持口感,请尽快引用哦~</view>
<view v-if="orderInfo.state == 4">订单已制作完成,请尽快取餐~</view> <view v-if="orderInfo.state == 4">订单已制作完成,请尽快取餐~</view>
<view v-if="orderInfo.state == 2 || orderInfo.state == 3">请您耐心等候,预计<text class="time">3</text>分钟后可取</view>
</view> </view>
<div class="btns"> <div class="btns">
<a type="primary" @click="cancelOrder" v-if="orderInfo.state == 1" class="btn_cancel">取消订单</a> <a type="primary" @click="cancelOrder" v-if="orderInfo.state == 1" class="btn_cancel">取消订单</a>
...@@ -20,8 +21,8 @@ ...@@ -20,8 +21,8 @@
</div> </div>
<div v-if="qrShow&&!isBuild" class="qr_code" > <div v-if="qrShow&&!isBuild" class="qr_code" >
<image mode="aspectFit" :src="'/static/imgs/erweimazhedang.png'" class="qr"></image> <image mode="aspectFit" :src="'/static/imgs/erweimazhedang.png'" class="qr"></image>
<view class="status_text">——制作完成后才能扫哦——</view>
</div> </div>
<view class="status_text">——制作完成后才能扫哦——</view>
<canvas v-if="qrShow" class="canvas-code" canvas-id="myQrcode" <canvas v-if="qrShow" class="canvas-code" canvas-id="myQrcode"
style="background:#fff;width: 200px;height: 200px; display:block; left:-800rpx;position:absolute;" /> style="background:#fff;width: 200px;height: 200px; display:block; left:-800rpx;position:absolute;" />
<div v-if="qrShow" class="flow_describe"> <div v-if="qrShow" class="flow_describe">
...@@ -311,10 +312,19 @@ export default { ...@@ -311,10 +312,19 @@ export default {
font-family: PingFangSC-Regular, PingFang SC; font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400; font-weight: 400;
color: #999999; color: #999999;
.time {
font-size: 32rpx;
font-family: Futura Medium, Arial, sans-serif;
font-weight: normal;
color: #003AE9;
margin: 0 16rpx;
}
} }
.btns { .btns {
margin-top: 26rpx; padding-top: 26rpx;
text-align: center; text-align: center;
width: 428rpx; width: 428rpx;
display: flex; display: flex;
...@@ -355,6 +365,14 @@ export default { ...@@ -355,6 +365,14 @@ export default {
margin: 32rpx; margin: 32rpx;
padding-top: 55rpx; padding-top: 55rpx;
.status_text {
font-size: 32rpx;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #333333;
text-align: center;
}
.code { .code {
text-align: center; text-align: center;
font-size: 32rpx; font-size: 32rpx;
...@@ -364,21 +382,15 @@ export default { ...@@ -364,21 +382,15 @@ export default {
} }
.qr_code { .qr_code {
height: 314rpx; height: 347rpx;
width: 353rpx;
display: block; display: block;
margin: 92rpx auto; margin: 92rpx auto;
position: relative; position: relative;
padding-bottom: 40rpx;
margin-bottom: 0rpx;
margin-left: 150rpx;
.status_text {
margin-top: 40rpx;
text-align: center;
font-size: 28rpx;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #666666;
line-height: 40rpx;
letter-spacing: 1rpx;
}
.qr { .qr {
width: 100%; width: 100%;
height: 100%; height: 100%;
...@@ -395,7 +407,6 @@ export default { ...@@ -395,7 +407,6 @@ export default {
} }
.flow_describe { .flow_describe {
width: 100%;
height: 300rpx; height: 300rpx;
padding-left: 32rpx; padding-left: 32rpx;
background: #FFFFFF; background: #FFFFFF;
...@@ -412,8 +423,8 @@ export default { ...@@ -412,8 +423,8 @@ export default {
.flow_img { .flow_img {
padding:36rpx 32rpx 0rpx 32rpx; padding:36rpx 32rpx 0rpx 32rpx;
width: 586rpx; width: 590rpx;
height: 223rpx; height: 244rpx;
display: block; display: block;
} }
} }
......
...@@ -296,22 +296,6 @@ export default { ...@@ -296,22 +296,6 @@ export default {
Utils.getallNum(itemCopy); Utils.getallNum(itemCopy);
} }
return return
// if (!sku) {
// this.showToast({ title: '本商品已经售罄', icon: 'none' });
// return;
// } else {
// if(sku.isDefault != 1){
// this.showToast({ title: '默认规格已售罄,已添加其他规格', icon: 'none' });
// }
// itemCopy.skus = [sku];
// itemCopy.sku = sku
// itemCopy.skuId = sku?.skuId
// itemCopy.num = 1;
// itemCopy.flag = true;
// itemCopy.categoryId = category.id;
// itemCopy.goodsName = category.name;
// Utils.getallNum(itemCopy);
// }
}, },
goToMyPage(logined) { goToMyPage(logined) {
logined && uni.switchTab({ url: '/pages/mine/mine' }) logined && uni.switchTab({ url: '/pages/mine/mine' })
......
...@@ -202,7 +202,7 @@ button::after { ...@@ -202,7 +202,7 @@ button::after {
.contents { .contents {
display: flex; display: flex;
padding: 40rpx; padding: 52rpx 52rpx 52rpx 70rpx;
margin: 16rpx 32rpx 26rpx 32rpx; margin: 16rpx 32rpx 26rpx 32rpx;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
...@@ -210,15 +210,15 @@ button::after { ...@@ -210,15 +210,15 @@ button::after {
// background: #0000FF; // background: #0000FF;
.myOrder { .myOrder {
width: 36%; width: 30%;
height: 197rpx; height: 197rpx;
// background: #FF0000; // background: #FF0000;
background: #FFFFFF; background: #FFFFFF;
align-items: center; align-items: center;
text-align: center; text-align: left;
.text { .text {
margin-top: 16rpx; margin-top: 5rpx;
font-size: 28rpx; font-size: 28rpx;
font-family: PingFangSC-Medium, PingFang SC; font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500; font-weight: 500;
...@@ -234,10 +234,10 @@ button::after { ...@@ -234,10 +234,10 @@ button::after {
} }
.icon { .icon {
width: 72rpx; width: 94rpx;
height: 80rpx; height:110rpx;
margin: 0 auto; margin: 0 auto;
margin-top: 50rpx; margin-top: 38rpx;
} }
} }
...@@ -262,7 +262,7 @@ button::after { ...@@ -262,7 +262,7 @@ button::after {
.box_two { .box_two {
width: 100%; width: 100%;
overflow: initial; overflow: initial;
height: 129rpx; height: 69rpx;
// background: #FF0000; // background: #FF0000;
background: #FFFFFF; background: #FFFFFF;
display: flex; display: flex;
...@@ -291,8 +291,8 @@ button::after { ...@@ -291,8 +291,8 @@ button::after {
.right { .right {
.icon { .icon {
width: 80rpx; width: 91rpx;
height: 72rpx; height: 69rpx;
} }
} }
} }
...@@ -300,7 +300,7 @@ button::after { ...@@ -300,7 +300,7 @@ button::after {
width: 306rpx; width: 306rpx;
height: 2rpx; height: 2rpx;
border: 1rpx solid #E4E4E4; border: 1rpx solid #E4E4E4;
margin: 30rpx 0rpx; margin: 34rpx 0rpx;
} }
.box { .box {
overflow: initial; overflow: initial;
...@@ -335,8 +335,8 @@ button::after { ...@@ -335,8 +335,8 @@ button::after {
.right { .right {
.icon { .icon {
width: 80rpx; width: 91rpx;
height: 72rpx; height: 61rpx;
} }
} }
} }
......
...@@ -236,8 +236,8 @@ export default { ...@@ -236,8 +236,8 @@ export default {
margin-top: 311rpx; margin-top: 311rpx;
.empty_icon { .empty_icon {
width: 322rpx; width: 324rpx;
height: 234rpx; height: 236rpx;
} }
.empty_text { .empty_text {
...@@ -277,8 +277,8 @@ export default { ...@@ -277,8 +277,8 @@ export default {
transform: translate(-50%); transform: translate(-50%);
margin-top: 311rpx; margin-top: 311rpx;
.empty_icon { .empty_icon {
width: 322rpx; width: 324rpx;
height: 234rpx; height: 236rpx;
} }
.empty_text { .empty_text {
......
static/imgs/caidanweixuanzhong.png

2.94 KB | W: | H:

static/imgs/caidanweixuanzhong.png

7.09 KB | W: | H:

static/imgs/caidanweixuanzhong.png
static/imgs/caidanweixuanzhong.png
static/imgs/caidanweixuanzhong.png
static/imgs/caidanweixuanzhong.png
  • 2-up
  • Swipe
  • Onion skin
static/imgs/caidanxuanzhong.png

4.62 KB | W: | H:

static/imgs/caidanxuanzhong.png

11.1 KB | W: | H:

static/imgs/caidanxuanzhong.png
static/imgs/caidanxuanzhong.png
static/imgs/caidanxuanzhong.png
static/imgs/caidanxuanzhong.png
  • 2-up
  • Swipe
  • Onion skin
static/imgs/dingdan.png

1.13 KB | W: | H:

static/imgs/dingdan.png

7.22 KB | W: | H:

static/imgs/dingdan.png
static/imgs/dingdan.png
static/imgs/dingdan.png
static/imgs/dingdan.png
  • 2-up
  • Swipe
  • Onion skin
static/imgs/dingdanweixuanzhong.png

1.32 KB | W: | H:

static/imgs/dingdanweixuanzhong.png

2.33 KB | W: | H:

static/imgs/dingdanweixuanzhong.png
static/imgs/dingdanweixuanzhong.png
static/imgs/dingdanweixuanzhong.png
static/imgs/dingdanweixuanzhong.png
  • 2-up
  • Swipe
  • Onion skin
static/imgs/dingdanxuanzhong.png

3.6 KB | W: | H:

static/imgs/dingdanxuanzhong.png

8.13 KB | W: | H:

static/imgs/dingdanxuanzhong.png
static/imgs/dingdanxuanzhong.png
static/imgs/dingdanxuanzhong.png
static/imgs/dingdanxuanzhong.png
  • 2-up
  • Swipe
  • Onion skin
static/imgs/erweimazhedang.png

51.7 KB | W: | H:

static/imgs/erweimazhedang.png

129 KB | W: | H:

static/imgs/erweimazhedang.png
static/imgs/erweimazhedang.png
static/imgs/erweimazhedang.png
static/imgs/erweimazhedang.png
  • 2-up
  • Swipe
  • Onion skin
static/imgs/saomaliucheng.png

75.8 KB | W: | H:

static/imgs/saomaliucheng.png

103 KB | W: | H:

static/imgs/saomaliucheng.png
static/imgs/saomaliucheng.png
static/imgs/saomaliucheng.png
static/imgs/saomaliucheng.png
  • 2-up
  • Swipe
  • Onion skin
static/imgs/weidengluzhanweitu.png

79.5 KB | W: | H:

static/imgs/weidengluzhanweitu.png

118 KB | W: | H:

static/imgs/weidengluzhanweitu.png
static/imgs/weidengluzhanweitu.png
static/imgs/weidengluzhanweitu.png
static/imgs/weidengluzhanweitu.png
  • 2-up
  • Swipe
  • Onion skin
static/imgs/wodeweixuanzhong.png

3.13 KB | W: | H:

static/imgs/wodeweixuanzhong.png

7.58 KB | W: | H:

static/imgs/wodeweixuanzhong.png
static/imgs/wodeweixuanzhong.png
static/imgs/wodeweixuanzhong.png
static/imgs/wodeweixuanzhong.png
  • 2-up
  • Swipe
  • Onion skin
static/imgs/wodexuanzhong.png

4.33 KB | W: | H:

static/imgs/wodexuanzhong.png

11.5 KB | W: | H:

static/imgs/wodexuanzhong.png
static/imgs/wodexuanzhong.png
static/imgs/wodexuanzhong.png
static/imgs/wodexuanzhong.png
  • 2-up
  • Swipe
  • Onion skin
static/imgs/wudingdanzhanweitu.png

77.4 KB | W: | H:

static/imgs/wudingdanzhanweitu.png

115 KB | W: | H:

static/imgs/wudingdanzhanweitu.png
static/imgs/wudingdanzhanweitu.png
static/imgs/wudingdanzhanweitu.png
static/imgs/wudingdanzhanweitu.png
  • 2-up
  • Swipe
  • Onion skin
static/imgs/wuxiaoxizhanweitu.png

81.2 KB | W: | H:

static/imgs/wuxiaoxizhanweitu.png

119 KB | W: | H:

static/imgs/wuxiaoxizhanweitu.png
static/imgs/wuxiaoxizhanweitu.png
static/imgs/wuxiaoxizhanweitu.png
static/imgs/wuxiaoxizhanweitu.png
  • 2-up
  • Swipe
  • Onion skin
static/imgs/xiaoxi.png

1.23 KB | W: | H:

static/imgs/xiaoxi.png

4.89 KB | W: | H:

static/imgs/xiaoxi.png
static/imgs/xiaoxi.png
static/imgs/xiaoxi.png
static/imgs/xiaoxi.png
  • 2-up
  • Swipe
  • Onion skin
static/imgs/youhuijuan.png

5.65 KB | W: | H:

static/imgs/youhuijuan.png

12.2 KB | W: | H:

static/imgs/youhuijuan.png
static/imgs/youhuijuan.png
static/imgs/youhuijuan.png
static/imgs/youhuijuan.png
  • 2-up
  • Swipe
  • Onion skin
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