Commit e4074924 authored by 张娇(东信)'s avatar 张娇(东信)

页面优化

parent 7e76ee5b
...@@ -46,6 +46,14 @@ ...@@ -46,6 +46,14 @@
"navigationBarBackgroundColor": "#ffffff", "navigationBarBackgroundColor": "#ffffff",
"navigationStyle":"" "navigationStyle":""
} }
},
{
"path": "pages/cart/ConfirmOrder",
"style": {
"navigationBarTitleText": "确认订单",
"navigationBarBackgroundColor": "#ffffff",
"navigationStyle":""
}
} }
], ],
"globalStyle": { "globalStyle": {
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
<span>{{ totalPrice }}</span> <span>{{ totalPrice }}</span>
</div> </div>
</div> </div>
<div class="submit">去结算({{ totalPrice }})</div> <div class="submit" @tap="toSettle">去结算({{ totalPrice }})</div>
</div> </div>
</div> </div>
</template> </template>
...@@ -140,6 +140,12 @@ const changeCheckedAll = () => { ...@@ -140,6 +140,12 @@ const changeCheckedAll = () => {
changeShopChecked(v); changeShopChecked(v);
}); });
}; };
function toSettle() {
// TODO: 跳转到筑农严选
xma.navigateTo({
url: '/pages/cart/cart',
});
}
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
......
...@@ -91,6 +91,10 @@ ...@@ -91,6 +91,10 @@
</view> </view>
</view> </view>
</view> </view>
<!-- 购物车悬浮按钮 -->
<view class="cart-floating">
<img class="cart" @tap="toCart" src="/static/presale/cart.png" />
</view>
</view> </view>
</template> </template>
...@@ -142,6 +146,12 @@ function toDetail() { ...@@ -142,6 +146,12 @@ function toDetail() {
url: '/pages/detail/detail', url: '/pages/detail/detail',
}); });
} }
function toCart() {
// TODO: 跳转到筑农严选
xma.navigateTo({
url: '/pages/cart/cart',
});
}
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
...@@ -319,4 +329,21 @@ page { ...@@ -319,4 +329,21 @@ page {
margin-top: -15px; margin-top: -15px;
display: block; display: block;
} }
.cart-floating {
position: fixed;
right: 20rpx;
bottom: 100rpx;
width: 80rpx;
height: 80rpx;
z-index: 99;
background-color: #ffffff;
border-radius: 50%;
}
.cart {
position: relative;
top: 20rpx;
left: 16rpx;
width: 48rpx;
height: 46rpx;
}
</style> </style>
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
</view> </view>
</view> </view>
</view> </view>
<view class="product-page" @tap="toDetail" v-for="(item, index) in list" :key="index"> <view class="product-page" v-for="(item, index) in list" :key="index">
<view> <view>
<view class="page-title">{{ item.text }}</view> <view class="page-title">{{ item.text }}</view>
<img :src="item.img" class="main-img" /> <img :src="item.img" class="main-img" />
......
...@@ -135,7 +135,7 @@ ...@@ -135,7 +135,7 @@
</view> </view>
<!-- 购物车悬浮按钮 --> <!-- 购物车悬浮按钮 -->
<view class="cart-floating"> <view class="cart-floating">
<img @tap="toCart" src="/static/presale/cart.png" style="width: 48rpx; height: 46rpx" /> <img class="cart" @tap="toCart" src="/static/presale/cart.png" />
</view> </view>
</template> </template>
...@@ -481,5 +481,14 @@ page { ...@@ -481,5 +481,14 @@ page {
width: 80rpx; width: 80rpx;
height: 80rpx; height: 80rpx;
z-index: 99; z-index: 99;
background-color: #ffffff;
border-radius: 50%;
}
.cart {
position: relative;
top: 20rpx;
left: 16rpx;
width: 48rpx;
height: 46rpx;
} }
</style> </style>
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