Commit 36814f71 by weijiguang

修改状态名称

parent 0c4a9a85
......@@ -58,7 +58,7 @@ export default {
orderStatusText() {
switch (this.orderInfo.state) {
case '2':
return '已支付'
return '待制作'
case '3':
return '制作中'
default:
......
......@@ -10,9 +10,9 @@
<scroll-view class="nav-right" scroll-y :scroll-top="scrollTop" @scroll="scroll" @touchstart="openScroll"
scroll-with-animation>
<view v-for="category in classifyData" :id="category.id" :key="category.id" class="box">
<view v-if="category.goods && category.goods.length>0" :style="loads" class="right-title">{{ category.name }}</view>
<view :style="loads" class="right-title">{{ category.name }}</view>
<view class="nav-right-item" v-for="item in category.goods" :key="item.goodsId">
<image src="../../static/imgs/isRecommend.png" v-if="item.isRecommend == 1" class="isRecommend" />
<image src="/static/imgs/isRecommend.png" v-if="item.isRecommend == 1" class="isRecommend" />
<image @click="cart(item, category)" class="thumbnail" v-if="item.pics.thumbnailApplet" :src="item.pics.thumbnailApplet" />
<image @click="cart(item, category)" class="thumbnail" v-else :src="item.pics.thumbnail" />
<view @click="cart(item, category)" class="info">
......@@ -48,7 +48,6 @@ export default {
scrollLeftTop: 0,
scrollTop: 0,
scrolled: true
}
},
methods: {
......@@ -65,7 +64,20 @@ export default {
},
createList(data) {
this.classifyData = data;
// console.log(this.classifyData)
console.log(this.classifyData);
// 删除没有商品的分类
if(this.classifyData) {
for(var i=this.classifyData.length-1; i>=0; i--) {
var category = this.classifyData[i];
if(!category.goods || category.goods.length<=0) {
this.classifyData.splice(i, 1);
}
}
if(this.classifyData.length>0){
this.categoryId = this.classifyData[0].id;
}
}
this.$nextTick(() => {
const query = uni.createSelectorQuery().in(this);
query.selectAll('.box').boundingClientRect(data => {
......
......@@ -368,7 +368,6 @@ export default {
padding: 0;
line-height: 50rpx;
&.active {
background: #006ECF;
color: #fff;
......
......@@ -74,7 +74,7 @@
<div class="price">总优惠¥{{ reduction }}</div>
</div> -->
</div>
<view class="payment" @click="messageAndSave" v-if="userms">付款</view>
<view v-if="userms" class="payment" @click="messageAndSave">付款</view>
<button v-if="!userms" class="payment" style="border-radius: 0;" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber">付款</button>
</div>
</view>
......@@ -112,12 +112,13 @@ export default {
// 微信扫码进入
this.option = JSON.stringify(option)
const { q } = option;
console.log(q);
if (q) {
User.getLocation((state, params) => {
uni.removeStorageSync('shopCarInfo');
$EventBus.$emit('updateCar');
// this.buyType = '1';
let id = decodeURIComponent(q).split('?')[1].split('=')[1];
// let id = decodeURIComponent(q).split('?')[1].split('=')[1];
let id = q;
Menu.getScreenShopCar(id, params).then(res => {
const data = JSON.parse(res.data.data);
console.log(data);
......
......@@ -5,7 +5,7 @@
<image class="logImg" src="/static/imgs/hooloo.png"></image>
<view class="logText">未 来 咖 啡</view>
</view>
<image src="../../static/imgs/banner.png"></image>
<image src="/static/imgs/banner.png"></image>
</view>
<view v-if="userms" class="mod11 flex-col">
<view class="box16 flex-col"></view>
......@@ -17,47 +17,47 @@
<button class="mod11 flex-col" v-else open-type="getPhoneNumber" @getphonenumber="getPhoneNumber">立刻登录</button>
<view class="contents" v-if="userms">
<view class="myOrder" @click="goToPage('order')">
<view class="order1">我的订单</view>
<view class="order2">点击查看订单</view>
<view><image class="orderImg" src="/static/imgs/myOrder.png"></image></view>
<h3>我的订单</h3>
<view class="desc">点击查看订单</view>
<view><image class="icon" src="/static/imgs/myOrder.png"></image></view>
</view>
<view class="right_box">
<view class="box" @click.stop="goToPage('coupon')">
<view class="left">
<h3>HOOLOO券</h3>
<view class="dec">优惠多多不要错过</view>
<view class="desc">优惠多多不要错过</view>
</view>
<view class="right"><image class="right_img" src="/static/imgs/my3.png"></image></view>
<view class="right"><image class="icon" src="/static/imgs/my3.png"></image></view>
</view>
<view class="box two" @click="goToPage('msg')">
<view class="left">
<h3>我的消息</h3>
<view class="dec">点击查看我的消息</view>
<view class="desc">点击查看我的消息</view>
</view>
<view class="right"><image class="right_img" src="/static/imgs/myMail.png"></image></view>
<view class="right"><image class="icon" src="/static/imgs/myMail.png"></image></view>
</view>
</view>
</view>
<view class="contents" v-if="!userms">
<button class="myOrder" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber">
<view class="order3">我的订单</view>
<view class="order4">点击查看订单</view>
<view><image class="orderImg1" src="/static/imgs/myOrder.png"></image></view>
<button class="myOrder" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber" style="line-height:1.5; margin-left:0rpx; margin-right:0rpx; padding-left:0rpx; padding-right:0rpx;">
<h3>我的订单</h3>
<view class="desc">点击查看订单</view>
<view><image class="icon" src="/static/imgs/myOrder.png"></image></view>
</button>
<view class="right_box">
<button class="box" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber">
<button class="box" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber" style="line-height:1.5; margin-left:0rpx; margin-right:0rpx; padding-left:0rpx; padding-right:0rpx;">
<view class="left">
<h3>HOOLOO券</h3>
<view class="dec">优惠多多不要错过</view>
<view class="desc">优惠多多不要错过</view>
</view>
<view class="right"><image class="right_img" src="/static/imgs/my3.png"></image></view>
<view class="right"><image class="icon" src="/static/imgs/my3.png"></image></view>
</button>
<button class="box two" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber">
<button class="box two" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber" style="line-height:1.5; margin-left:0rpx; margin-right:0rpx; padding-left:0rpx; padding-right:0rpx;">
<view class="left">
<h3>我的消息</h3>
<view class="dec">点击查看我的消息</view>
<view class="desc">点击查看我的消息</view>
</view>
<view class="right"><image class="right_img" src="/static/imgs/myMail.png"></image></view>
<view class="right"><image class="icon" src="/static/imgs/myMail.png"></image></view>
</button>
</view>
</view>
......@@ -198,27 +198,28 @@ button::after {
.contents {
display: flex;
align-items: center;
margin: 34rpx auto;
width: 692rpx;
padding: 34rpx;
width: 100%;
// background: #0000FF;
.myOrder {
width: 270rpx;
height: 272rpx;
width: 36%;
height: 270rpx;
// background: #FF0000;
background: #FFFFFF;
border-radius: 10rpx;
align-items: center;
text-align: center;
padding: 0 36rpx;
.order1 {
h3 {
font-size: 28rpx;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
font-family: Arial-BoldMT, Arial;
font-weight: 700;
color: #000000;
margin-top: 25rpx;
margin-top: 30rpx;
}
.order2 {
.desc {
font-size: 20rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
......@@ -226,78 +227,60 @@ button::after {
margin-top: 10rpx;
}
.orderImg {
.icon {
width: 70rpx;
height: 80rpx;
margin: 0 auto;
margin-top: 50rpx;
}
.order3 {
font-size: 28rpx;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #000000;
margin-top: 10rpx;
}
.order4 {
font-size: 20rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #323232;
margin-top: -20rpx;
}
.orderImg1 {
width: 70rpx;
height: 80rpx;
margin: 0 auto;
margin-top: 20rpx;
}
}
.right_box {
margin-left: 20rpx;
}
.box {
width: 396rpx;
height: 128rpx;
background: #FFFFFF;
border-radius: 10rpx;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 36rpx;
position: relative;
&.two {
// background: #00FF00;
width: 52%;
.two {
margin-top: 15rpx;
}
.left {
text-align: center;
}
h3 {
font-size: 28rpx;
font-family: Arial-BoldMT, Arial;
font-weight: 700;
color: #000000;
}
.dec {
font-size: 20rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #323232;
margin-top: 10rpx
}
.right_img {
width: 80rpx;
height: 55rpx;
.box {
width: 100%;
height: 129rpx;
// background: #FF0000;
background: #FFFFFF;
border-radius: 10rpx;
display: flex;
align-items: center;
justify-content: space-between;
position: relative;
.left {
text-align: center;
padding-left: 30rpx;
h3 {
font-size: 28rpx;
font-family: Arial-BoldMT, Arial;
font-weight: 700;
color: #000000;
}
.desc {
font-size: 20rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #323232;
margin-top: 10rpx
}
}
.right {
padding-right: 30rpx;
.icon {
width: 80rpx;
height: 55rpx;
}
}
}
}
}
......
......@@ -38,8 +38,7 @@
</view>
</view>
</view>
<view v-if="item.state == 2 || item.state == 3 || item.state == 4 || item.state == 5"
class="qr_code">
<view v-if="item.state == 2 || item.state == 3 || item.state == 4 || item.state == 5 || item.state == 7" class="qr_code">
<image class="qr_code_img" src="/static/imgs/icon-barcode.png"></image>
<view class="qr_text">点击二维码取单</view>
</view>
......
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