oil-station/gasStation-uni/pagesHome/goodsDetails/goodsDetails.vue
2023-11-27 09:24:16 +08:00

155 lines
2.7 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<view class="content">
<view class="container">
<view class="my-header">
<view class="my-icons" @click="goback"> <uni-icons type="left" size="16"></uni-icons> </view>
<view class="my-text">商品详情</view>
<view class="my-icons"></view>
</view>
<!-- 顶部区域 -->
<view class="">
<u-swiper :list="list1" height="390" @change="change" @click="click"></u-swiper>
</view>
<view class="bai-box">
<view class="box-title">保养套餐</view>
<view class="box-jg">268积分</view>
<view class="dt-box">
<view class=""><u-tag text="自提" type="error" shape="circle"></u-tag></view>
<view class="hui-time">市场价89.00</view>
</view>
</view>
<view class="bai-box">
<view style="margin-bottom: 10px;">商品详情</view>
<u-line></u-line>
<!-- <view class="" v-html="html" ></view> -->
</view>
<view class="bottom-d">
<view class="anniux" @click="goorder()">
<text>立即兑换</text>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
title: '',
list1: [
'https://cdn.uviewui.com/uview/swiper/swiper1.png',
'https://cdn.uviewui.com/uview/swiper/swiper2.png',
'https://cdn.uviewui.com/uview/swiper/swiper3.png',
]
}
},
components: {
},
methods: {
change() {},
click() {},
goorder() {
uni.navigateTo({
url: '/pagesHome/order/order'
})
},
goback() {
uni.navigateBack()
}
}
}
</script>
<style scoped lang="scss">
.content {
background: #f4f5f6;
}
.container {
width: 100%;
height: 100vh;
box-sizing: border-box;
padding-top: 88px;
}
.my-header {
width: 100%;
height: 88px;
background: #ffffff;
display: flex;
align-items: center;
justify-content: space-between;
color: #000;
box-sizing: border-box;
padding: 0px 15px;
padding-top: 40px;
.my-icons {
width: 20px;
}
position: fixed;
top: 0px;
}
.bai-box {
width: 100%;
background-color: #ffffff;
padding: 10px;
margin: 10px auto;
}
.dt-box {
width: 92%;
display: flex;
align-items: center;
justify-content: space-between;
}
.box-title {
font-weight: bold;
font-size: 18px;
}
.box-jg {
font-size: 20px;
color: red;
margin: 10px auto;
}
.hui-time {
color: #999999;
}
.bottom-d {
display: flex;
align-items: center;
justify-content: center;
background-color: #ffffff;
width: 100%;
height: 88px;
position: fixed;
bottom: 0px;
z-index: 99999;
}
.anniux {
width: 90%;
background: #1678ff;
color: white;
display: flex;
align-items: center;
justify-content: center;
color: white;
border-radius: 50px;
height: 50px;
}
</style>