<template>
|
|
<view class="page">
|
|
<navbar
|
|
bgColor="transparent"
|
|
style="position: absolute;"
|
|
leftClick @leftClick="$utils.navigateBack" />
|
|
|
|
<view class="swipe">
|
|
<uv-swiper
|
|
:list="productDetail.image.split(',')"
|
|
indicator
|
|
height="520rpx"></uv-swiper>
|
|
</view>
|
|
|
|
<view class="info">
|
|
<view class="">
|
|
<view class="title">
|
|
三只青蛙低GI大米
|
|
</view>
|
|
<view class="desc">
|
|
三只青蛙低GI大米500g每罐
|
|
</view>
|
|
</view>
|
|
<view class="">
|
|
<view class="price">
|
|
¥<text>9.9</text>起
|
|
</view>
|
|
<view class="oldPrice">
|
|
¥<text>45.9</text>起
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<uv-parse :content="productDetail.content"></uv-parse>
|
|
|
|
<!-- 分享和租赁按钮 -->
|
|
<submit
|
|
@submit="$refs.submitUnitSelect.open()"
|
|
@share="share"/>
|
|
|
|
<!-- 选择规格 -->
|
|
<submitUnitSelect ref="submitUnitSelect"/>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import submit from '../components/product/submit.vue'
|
|
import submitUnitSelect from '../components/product/submitUnitSelect.vue'
|
|
export default {
|
|
components : {
|
|
submit,
|
|
submitUnitSelect
|
|
},
|
|
data() {
|
|
return {
|
|
productDetail : {
|
|
image : 'https://cdn.uviewui.com/uview/swiper/swiper3.png,https://cdn.uviewui.com/uview/swiper/swiper2.png',
|
|
content : '',
|
|
}
|
|
}
|
|
},
|
|
onLoad(args) {
|
|
console.log(args);
|
|
},
|
|
methods: {
|
|
// 分享商品
|
|
share(){
|
|
|
|
},
|
|
// 选择完成规格立即租赁下单
|
|
submit(){
|
|
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.page{
|
|
.swipe{
|
|
|
|
}
|
|
.info{
|
|
padding: 30rpx;
|
|
background-color: #fff;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
.title{
|
|
font-size: 34rpx;
|
|
font-weight: 900;
|
|
}
|
|
.price{
|
|
font-size: 34rpx;
|
|
color: $uni-color;
|
|
font-weight: 900;
|
|
text-align: right;
|
|
}
|
|
.oldPrice{
|
|
font-size: 26rpx;
|
|
color: #999;
|
|
text-align: right;
|
|
text-decoration: line-through;
|
|
}
|
|
.desc{
|
|
font-size: 26rpx;
|
|
color: #777;
|
|
}
|
|
}
|
|
.info-unit{
|
|
margin-top: 20rpx;
|
|
padding: 30rpx;
|
|
background-color: #fff;
|
|
/deep/ text{
|
|
font-size: 26rpx;
|
|
}
|
|
/deep/ .text{
|
|
color: #7C7C7C;
|
|
margin-right: 20rpx;
|
|
font-size: 26rpx;
|
|
}
|
|
}
|
|
}
|
|
</style>
|