|
@@ -0,0 +1,639 @@
|
|
|
+<template>
|
|
|
+ <view>
|
|
|
+ <ujp-navbar title="517KW交流充电桩4G共享版"></ujp-navbar>
|
|
|
+ <!--轮播图 -->
|
|
|
+ <u-swiper :list="list" height="750"></u-swiper>
|
|
|
+ <!-- 详情 -->
|
|
|
+ <view class="main">
|
|
|
+ <!-- 价格 已售 -->
|
|
|
+ <view class="price-sold">
|
|
|
+ <view class="price">
|
|
|
+ <text>¥</text>1088<text style="margin-left: 4rpx;">起</text>
|
|
|
+ </view>
|
|
|
+ <view class="sold">
|
|
|
+ 已售 10
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <!-- 标题 -->
|
|
|
+ <view class="title">
|
|
|
+ <view class="tag">
|
|
|
+ <img src="../../assets/img/commodityTag.png" alt="">
|
|
|
+ </view>7KW交流充电桩4G共享版
|
|
|
+ </view>
|
|
|
+ <!-- 详细信息 -->
|
|
|
+ <view class="infos" @click="show=true">
|
|
|
+ <view class="item">
|
|
|
+ <view class="item-title">
|
|
|
+ 品牌
|
|
|
+ </view>
|
|
|
+ <view class="item-value">
|
|
|
+ 51充电联盟
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <view class="item-title">
|
|
|
+ 安装方式
|
|
|
+ </view>
|
|
|
+ <view class="item-value">
|
|
|
+ 壁挂式
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <view class="item-title">
|
|
|
+ 输出功率
|
|
|
+ </view>
|
|
|
+ <view class="item-value">
|
|
|
+ 7kW
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <view class="item-title">
|
|
|
+ 输入电压
|
|
|
+ </view>
|
|
|
+ <view class="item-value">
|
|
|
+ 220V
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <u-icon name="arrow-right" color="#333333"></u-icon>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ <u-divider color="#aaaaaa">商品详情</u-divider>
|
|
|
+ <!-- 商品详情图片 -->
|
|
|
+ <view class="details-picture">
|
|
|
+ <img src="../../assets/img/detailsPic.png" alt="">
|
|
|
+ <img src="../../assets/img/detailsPic1.png" alt="">
|
|
|
+ <img src="../../assets/img/detailsPic2.png" alt="">
|
|
|
+ <img src="../../assets/img/detailsPic3.png" alt="">
|
|
|
+ <img src="../../assets/img/detailsPic4.png" alt="">
|
|
|
+ <img src="../../assets/img/detailsPic5.png" alt="">
|
|
|
+ <img src="../../assets/img/detailsPic6.png" alt="">
|
|
|
+ <img src="../../assets/img/detailsPic7.png" alt="">
|
|
|
+ <img src="../../assets/img/detailsPic8.png" alt="">
|
|
|
+ <img src="../../assets/img/detailsPic9.png" alt="">
|
|
|
+ </view>
|
|
|
+ <!-- 底部 -->
|
|
|
+ <view class="bottom">
|
|
|
+ <view class="service">
|
|
|
+ <view class="icon">
|
|
|
+ <img src="../../assets/img/riLine-customer-service-2-line@3x.png" alt="">
|
|
|
+ </view>
|
|
|
+ <view class="text">
|
|
|
+ 联系客服
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="order">
|
|
|
+ <view class="icon">
|
|
|
+ <img src="../../assets/img/riLine-todo-line@3x.png" alt="">
|
|
|
+ </view>
|
|
|
+ <view class="text">
|
|
|
+ 我的订单
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="buy-btn" @click="show2=true">
|
|
|
+ <view class="buy">
|
|
|
+ 立即购买
|
|
|
+ </view>
|
|
|
+ <view class="price">
|
|
|
+ 白金会员价 ¥499
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ <!-- 产品参数 -->
|
|
|
+ <u-popup v-model="show" mode="bottom">
|
|
|
+ <view class="product-parameter">
|
|
|
+ <view class="headline">
|
|
|
+ 产品参数
|
|
|
+ </view>
|
|
|
+ <view class="infos">
|
|
|
+ <view class="item">
|
|
|
+ <view class="title">
|
|
|
+ 品牌
|
|
|
+ </view>
|
|
|
+ <view class="value">
|
|
|
+ 51充电联盟
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <view class="title">
|
|
|
+ 型号
|
|
|
+ </view>
|
|
|
+ <view class="value">
|
|
|
+ JP—ACB007A
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <view class="title">
|
|
|
+ 安装方式
|
|
|
+ </view>
|
|
|
+ <view class="value">
|
|
|
+ 壁挂式/立柱式
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <view class="title">
|
|
|
+ 输出功率
|
|
|
+ </view>
|
|
|
+ <view class="value">
|
|
|
+ 7kW
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <view class="title">
|
|
|
+ 输出电流
|
|
|
+ </view>
|
|
|
+ <view class="value">
|
|
|
+ 31A
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <view class="title">
|
|
|
+ 输出电压
|
|
|
+ </view>
|
|
|
+ <view class="value">
|
|
|
+ 220V
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <view class="title">
|
|
|
+ 使用场景
|
|
|
+ </view>
|
|
|
+ <view class="value">
|
|
|
+ 家用
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <view class="title">
|
|
|
+ 电流类型
|
|
|
+ </view>
|
|
|
+ <view class="value">
|
|
|
+ 交流电
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <view class="title">
|
|
|
+ 外观尺寸
|
|
|
+ </view>
|
|
|
+ <view class="value">
|
|
|
+ 高310MM 宽210MM 厚70MM
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <view class="title">
|
|
|
+ 屏幕类型
|
|
|
+ </view>
|
|
|
+ <view class="value">
|
|
|
+ 无屏幕
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <view class="title">
|
|
|
+ 配件
|
|
|
+ </view>
|
|
|
+ <view class="value">
|
|
|
+ 挂线架、背板
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <view class="title">
|
|
|
+ 枪线
|
|
|
+ </view>
|
|
|
+ <view class="value">
|
|
|
+ 3.5米
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="btn" @click="show=false">
|
|
|
+ <button class="finish">完成</button>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </u-popup>
|
|
|
+
|
|
|
+ <!-- 选择规格 -->
|
|
|
+
|
|
|
+ <u-popup v-model="show2" mode="bottom" closeable="true">
|
|
|
+ <view class="specification">
|
|
|
+ <view class="specification-infos">
|
|
|
+ <view class="picture">
|
|
|
+ <img src="../../assets/img/commodity1.png" alt="">
|
|
|
+ </view>
|
|
|
+ <view class="else-infos">
|
|
|
+ <view class="name">
|
|
|
+ 7KW交流充电桩4G共享版
|
|
|
+ </view>
|
|
|
+ <view class="price">
|
|
|
+ 1088元 起
|
|
|
+ </view>
|
|
|
+ <view class="choose">
|
|
|
+ 请先选择商品规格
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <!-- 选项 -->
|
|
|
+ <view class="optopns-content">
|
|
|
+
|
|
|
+
|
|
|
+ <view class="options">
|
|
|
+ <view class="options-name">
|
|
|
+ 线枪规格
|
|
|
+ </view>
|
|
|
+ <view class="options-item">
|
|
|
+ <view class="item item-chosen" >
|
|
|
+ 包3.5米线枪
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ 包5米线枪
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="options">
|
|
|
+ <view class="options-name">
|
|
|
+ 安装配件
|
|
|
+ </view>
|
|
|
+ <view class="options-item">
|
|
|
+ <view class="item">
|
|
|
+ 立柱 800元
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ 防水罩 88元
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="options">
|
|
|
+ <view class="options-name">
|
|
|
+ 安装费用
|
|
|
+ </view>
|
|
|
+ <view class="options-item">
|
|
|
+ <view class="item">
|
|
|
+ 安装费 800元
|
|
|
+ </view>
|
|
|
+
|
|
|
+
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="options">
|
|
|
+ <view class="options-name">
|
|
|
+ 流量卡
|
|
|
+ </view>
|
|
|
+ <view class="options-item">
|
|
|
+ <view class="item">
|
|
|
+ 99元/年
|
|
|
+ </view>
|
|
|
+
|
|
|
+
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="bottom">
|
|
|
+ <view class="service">
|
|
|
+ <view class="icon">
|
|
|
+ <img src="../../assets/img/riLine-customer-service-2-line@3x.png" alt="">
|
|
|
+ </view>
|
|
|
+ <view class="text">
|
|
|
+ 联系客服
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="order">
|
|
|
+ <view class="icon">
|
|
|
+ <img src="../../assets/img/riLine-todo-line@3x.png" alt="">
|
|
|
+ </view>
|
|
|
+ <view class="text">
|
|
|
+ 我的订单
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="buy-btn" @click="show2=true">
|
|
|
+ <view class="buy">
|
|
|
+ 立即购买
|
|
|
+ </view>
|
|
|
+ <view class="price">
|
|
|
+ 白金会员价 ¥499
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </u-popup>
|
|
|
+
|
|
|
+
|
|
|
+ </view>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+ export default {
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ show: false,
|
|
|
+ show2: false,
|
|
|
+ list: [{
|
|
|
+ image: 'https://cdn.uviewui.com/uview/swiper/1.jpg',
|
|
|
+
|
|
|
+ },
|
|
|
+ {
|
|
|
+ image: 'https://cdn.uviewui.com/uview/swiper/2.jpg',
|
|
|
+
|
|
|
+ },
|
|
|
+ {
|
|
|
+ image: 'https://cdn.uviewui.com/uview/swiper/3.jpg',
|
|
|
+
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ }
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+ page {
|
|
|
+ padding-bottom: 50px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .main {
|
|
|
+ background-color: #fff;
|
|
|
+ padding: 32rpx 24rpx;
|
|
|
+
|
|
|
+ // 价格 已售
|
|
|
+ .price-sold {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+
|
|
|
+ .price {
|
|
|
+ color: rgba(255, 40, 0, 1);
|
|
|
+ font-size: 48rpx;
|
|
|
+
|
|
|
+ text {
|
|
|
+ font-size: 24rpx
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .sold {
|
|
|
+ color: rgba(119, 119, 119, 1);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // 标题
|
|
|
+ .title {
|
|
|
+ color: rgba(16, 16, 16, 1);
|
|
|
+ margin-top: 40rpx;
|
|
|
+ font-size: 40rpx;
|
|
|
+ font-weight: 600;
|
|
|
+
|
|
|
+ .tag {
|
|
|
+ display: inline-block;
|
|
|
+ margin-right: 8rpx;
|
|
|
+
|
|
|
+ img {
|
|
|
+ width: 118rpx;
|
|
|
+ height: 36rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // 详细信息
|
|
|
+ .infos {
|
|
|
+ margin: 32rpx 0rpx;
|
|
|
+ padding: 32rpx 16rpx;
|
|
|
+ border-radius: 8px;
|
|
|
+ background-color: rgba(244, 246, 248, 1);
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: space-between;
|
|
|
+
|
|
|
+ .item {
|
|
|
+ // margin-left: 16rpx;
|
|
|
+ text-align: center;
|
|
|
+
|
|
|
+ .item-title {
|
|
|
+ color: rgba(119, 119, 119, 1);
|
|
|
+ }
|
|
|
+
|
|
|
+ .item-value {
|
|
|
+ color: rgba(51, 51, 51, 1);
|
|
|
+ font-size: 32rpx;
|
|
|
+ margin-top: 16rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ // 商品详情图片
|
|
|
+ .details-picture {
|
|
|
+ background-color: #fff;
|
|
|
+ padding-bottom: 100px;
|
|
|
+
|
|
|
+ img {
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // 底部
|
|
|
+ .bottom {
|
|
|
+ position: fixed;
|
|
|
+ bottom: 0;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
+ background-color: #fff;
|
|
|
+ box-shadow: 0px -6px 6px 0px rgba(0, 0, 0, 0.05);
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ padding: 30rpx 40rpx;
|
|
|
+ .service,
|
|
|
+ .order {
|
|
|
+ text-align: center;
|
|
|
+ margin-right: 32rpx;
|
|
|
+
|
|
|
+ img {
|
|
|
+ width: 40rpx;
|
|
|
+ height: 40rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .text {
|
|
|
+ color: rgba(16, 16, 16, 1);
|
|
|
+ font-size: 24rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .buy-btn{
|
|
|
+ width: 400rpx;
|
|
|
+ height: 96rpx;
|
|
|
+ border-radius: 50px;
|
|
|
+ background-color: rgba(0, 185, 98, 1);
|
|
|
+ text-align: center;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ justify-content: center;
|
|
|
+ margin-left: auto;
|
|
|
+ color: #fff;
|
|
|
+
|
|
|
+ .buy {
|
|
|
+ font-size: 32rpx
|
|
|
+ }
|
|
|
+
|
|
|
+ .price {
|
|
|
+ font-size: 24rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // 产品参数
|
|
|
+ .product-parameter {
|
|
|
+ padding: 40rpx 32rpx ;
|
|
|
+ border-radius: 8px;
|
|
|
+
|
|
|
+ .headline {
|
|
|
+ font-size: 32rpx;
|
|
|
+ color: #111111;
|
|
|
+ text-align: center;
|
|
|
+ height: 20px;
|
|
|
+ position: fixed;
|
|
|
+ top: 20px;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /deep/.u-drawer-content {
|
|
|
+ border-radius: 12px 12px 0 0;
|
|
|
+
|
|
|
+ .infos {
|
|
|
+ margin: 44rpx 0;
|
|
|
+ height: 800rpx;
|
|
|
+
|
|
|
+ overflow: auto;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ .item {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ font-size: 32rpx;
|
|
|
+ padding: 28rpx 0;
|
|
|
+ border-bottom: 1px solid #e6e6e6;
|
|
|
+
|
|
|
+ .title {
|
|
|
+ color: rgba(51, 51, 51, 1);
|
|
|
+ width: 128rpx;
|
|
|
+ text-align: left;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ .value {
|
|
|
+ color: rgba(51, 51, 51, 1);
|
|
|
+ margin-left: 48rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // 按钮
|
|
|
+ .btn {
|
|
|
+ padding: 16rpx 32rpx;
|
|
|
+ position: fixed;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
+ bottom: 0;
|
|
|
+
|
|
|
+ .finish {
|
|
|
+ width: 100%;
|
|
|
+ height: 80rpx;
|
|
|
+ background-color: rgba(0, 185, 98, 1);
|
|
|
+ color: rgba(255, 255, 255, 1);
|
|
|
+ font-size: 16px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+// 选择规格
|
|
|
+.specification{
|
|
|
+ padding: 104rpx 48rpx ;
|
|
|
+ .specification-infos{
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ position: fixed;
|
|
|
+ top: 104rpx;
|
|
|
+ left: 48rpx;
|
|
|
+ right: 48rpx;
|
|
|
+ height: 120rpx;
|
|
|
+ z-index: 999;
|
|
|
+ .picture{
|
|
|
+ width: 152rpx;
|
|
|
+ height: 152rpx;
|
|
|
+ img{
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .else-infos{
|
|
|
+ .name{
|
|
|
+ color: rgba(51, 51, 51, 1);
|
|
|
+ font-weight: bold;
|
|
|
+ font-size: 40rpx;
|
|
|
+ }
|
|
|
+ .price{
|
|
|
+ color: rgba(16, 16, 16, 1);
|
|
|
+ font-size: 32rpx;
|
|
|
+ margin-top: 12rpx;
|
|
|
+ font-weight: bold;
|
|
|
+ }
|
|
|
+ .choose{
|
|
|
+ color: rgba(153, 153, 153, 1);
|
|
|
+ margin-top: 12rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // 选项
|
|
|
+ .optopns-content{
|
|
|
+ margin: 200rpx 0 40rpx;
|
|
|
+ height: 800rpx;
|
|
|
+ overflow: auto;
|
|
|
+ }
|
|
|
+ .options{
|
|
|
+ .options-name{
|
|
|
+ color: rgba(119, 119, 119, 1);
|
|
|
+ }
|
|
|
+ .options-item{
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ margin-top: 24rpx;
|
|
|
+ margin-bottom: 40rpx;
|
|
|
+ .item{
|
|
|
+ width: 312rpx;
|
|
|
+ line-height: 64rpx;
|
|
|
+ border: 1px solid rgba(221, 221, 221, 1);
|
|
|
+ text-align: center;
|
|
|
+ color: rgba(51, 51, 51, 1);
|
|
|
+ font-size: 32rpx;
|
|
|
+ border-radius: 50px;
|
|
|
+ margin-bottom: 24rpx;
|
|
|
+ }
|
|
|
+ // 被选中的
|
|
|
+ .item-chosen{
|
|
|
+ border: 1px solid #8D8072;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ .bottom{
|
|
|
+ box-shadow: none;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+</style>
|