Commit 5d6200770a061398e95377f8a27f548b025ef18a

Authored by BigBoss
1 parent e7121c7107
Exists in master

改冲突

src/components/Wuc-tab/Wuc-tab.vue
1 <template> File was deleted
2 <scroll-view class="wuc-tab" :class="tabClass" :style="tabStyle" scroll-with-animation scroll-x :scroll-left="scrollLeft">
3 <div v-if="!textFlex" class="wuc-tab-wrap">
4 <div class="wuc-tab-item" :class="[index === tabCur ? selectClass + ' cur':'']" v-for="(item,index) in tabList" :key="index" :id="index" @tap="tabSelect(index,$event)">
5 <text :class="item.icon"></text>
6 <span>{{item.name}}</span>
7 </div>
8 </div>
9
10 <div class="flex text-center" v-if="textFlex">
11 <div class="wuc-tab-item flex-sub" :class="index === tabCur ? selectClass + ' cur':''" v-for="(item,index) in tabList" :key="index" :id="index" @tap="tabSelect(index,$event)">
12 <text :class="item.icon"></text>
13 <span>{{item.name}}</span>
14 </div>
15 </div>
16 </scroll-view>
17 </template>
18 <script>
19 export default {
20 name: 'Wuc-tab',
21 data() {
22 return {};
23 },
24 props: {
25 tabList: {
26 type: Array,
27 default() {
28 return [];
29 }
30 },
31 tabCur: {
32 type: Number,
33 default() {
34 return 0;
35 }
36 },
37 tabClass: {
38 type: String,
39 default() {
40 return '';
41 }
42 },
43 tabStyle: {
44 type: String,
45 default() {
46 return '';
47 }
48 },
49 textFlex: {
50 type: Boolean,
51 default() {
52 return false;
53 }
54 },
55 selectClass: {
56 type: String,
57 default() {
58 return 'text-blue';
59 }
60 }
61 },
62 methods: {
63 tabSelect(index, e) {
64 if (this.currentTab === index) return false;
65 this.$emit('update:tabCur', index);
66 this.$emit('change', index);
67 }
68 },
69 computed: {
70 scrollLeft() {
71 return (this.tabCur - 1) * 60;
72 }
73 }
74 };
75 </script>
76 <style>
77 div,
78 scroll-view,
79 swiper {
80 box-sizing: border-box;
81 }
82 .wuc-tab {
83 white-space: nowrap;
84 margin-bottom: 24rpx;
85 }
86 .wuc-tab-wrap{
87 display: flex;
88 justify-content: space-between;
89 }
90 .wuc-tab-item {
91 height: 48rpx;
92 display: inline-block;
93 line-height: 48rpx;
94 font-size: 14px;
95 color: #333333;
96 }
97
98 .wuc-tab-item.cur {
99 border-bottom: 4rpx solid #FF6B4A;
100 }
101
102 .wuc-tab.fixed {
103 position: fixed;
104 width: 100%;
105 top: 0;
106 z-index: 1024;
107 box-shadow: 0 1upx 6upx rgba(0, 0, 0, 0.1);
108 }
109
110 .flex {
111 display: flex;
112 }
113 .text-center {
114 text-align: center;
115 }
116 .flex-sub {
117 flex: 1;
118 }
119 .text-blue{
120 color:#333333;
121 }
122 .text-white{
123 color:#ffffff;
124 }
125 .bg-white{
126 background-color: #ffffff;
127 }
128 .bg-blue{
129 background-color: #333333;
130 }
131 .text-orange{
132 color: #f37b1d
133 }
134
135 .text-xl {
136 font-size: 36upx;
137 }
138 </style>
139 1 <template>
1 { 1 {
2 "pages": [ 2 "pages": [
3 { 3 {
4 "path": "pages/detail/detail", 4 "path": "pages/index/index",
5 "style": { 5 "style": {
6 "navigationBarTitleText": "产品详情" 6 "navigationBarTitleText": "商城一览"
7 } 7 }
8 }, 8 },
9 { 9 {
10 "path": "pages/index/index", 10 "path": "pages/detail/detail",
11 "style": { 11 "style": {
12 "navigationBarTitleText": "商城一览" 12 "navigationBarTitleText": "产品详情"
13 } 13 }
14 }, 14 },
15 { 15 {
16 "path": "pages/details-3/details-3", 16 "path": "pages/details-3/details-3",
17 "style": { 17 "style": {
18 "navigationBarTitleText": "产品详情" 18 "navigationBarTitleText": "产品详情"
19 } 19 }
20 }, 20 },
21 { 21 {
22 "path" : "pages/refundProgress/refundProgress", 22 "path" : "pages/refundProgress/refundProgress",
23 "style": { 23 "style": {
24 "navigationBarTitleText": "申请退款" 24 "navigationBarTitleText": "申请退款"
25 } 25 }
26 }, 26 },
27 { 27 {
28 "path" : "pages/myOrder/myOrder", 28 "path" : "pages/myOrder/myOrder",
29 "style" : { 29 "style" : {
30 "navigationBarTitleText": "我的订单"} 30 "navigationBarTitleText": "我的订单"}
31 }, 31 },
32 { 32 {
33 "path": "pages/addArddess/addArddess", 33 "path": "pages/addArddess/addArddess",
34 "style": { 34 "style": {
35 "navigationBarTitleText": "新增地址" 35 "navigationBarTitleText": "新增地址"
36 } 36 }
37 }, 37 },
38 { 38 {
39 "path" : "pages/confirmOrder/confirmOrder", 39 "path" : "pages/confirmOrder/confirmOrder",
40 "style" : { 40 "style" : {
41 "navigationBarTitleText": "确认订单"} 41 "navigationBarTitleText": "确认订单"}
42 }, 42 },
43 { 43 {
44 "path": "pages/cart/cart", 44 "path": "pages/cart/cart",
45 "style": { 45 "style": {
46 "navigationBarTitleText": "购物车" 46 "navigationBarTitleText": "购物车"
47 } 47 }
48 }, 48 },
49 { 49 {
50 "path": "pages/user/user", 50 "path": "pages/user/user",
51 "style": { 51 "style": {
52 "navigationBarTitleText": "我的" 52 "navigationBarTitleText": "我的"
53 } 53 }
54 }, 54 },
55 { 55 {
56 "path": "pages/refundment/Refundways" 56 "path": "pages/refundment/Refundways"
57 }, 57 },
58 { 58 {
59 "path": "pages/refundment/refundment" 59 "path": "pages/refundment/refundment"
60 }, 60 },
61 { 61 {
62 "path": "pages/Predelivery/Predelivery" 62 "path": "pages/Predelivery/Predelivery"
63 }, 63 },
64 { 64 {
65 "path": "pages/customerService/customerService" 65 "path": "pages/customerService/customerService"
66 }, 66 },
67 { 67 {
68 "path": "pages/myorder-paying/myorder-paying" 68 "path": "pages/myorder-paying/myorder-paying"
69 } 69 }
70 70
71 ], 71 ],
72 "globalStyle": { 72 "globalStyle": {
73 "navigationBarTextStyle": "black", 73 "navigationBarTextStyle": "black",
74 "navigationBarTitleText": "uni-app", 74 "navigationBarTitleText": "uni-app",
75 "navigationBarBackgroundColor": "#F8F8F8", 75 "navigationBarBackgroundColor": "#F8F8F8",
76 "backgroundColor": "#F8F8F8" 76 "backgroundColor": "#F8F8F8"
77 }, 77 },
78 "tabBar": { 78 "tabBar": {
79 "color": "#C0C4CC", 79 "color": "#C0C4CC",
80 "selectedColor": "#fa436a", 80 "selectedColor": "#fa436a",
81 "borderStyle": "black", 81 "borderStyle": "black",
82 "backgroundColor": "#ffffff", 82 "backgroundColor": "#ffffff",
83 "list": [{ 83 "list": [{
84 "pagePath": "pages/index/index", 84 "pagePath": "pages/index/index",
85 "iconPath": "static/tab-home.png", 85 "iconPath": "static/tab-home.png",
86 "selectedIconPath": "static/tab-home-current.png", 86 "selectedIconPath": "static/tab-home-current.png",
87 "text": "首页" 87 "text": "首页"
88 }, 88 },
89 { 89 {
90 "pagePath": "pages/cart/cart", 90 "pagePath": "pages/cart/cart",
91 "iconPath": "static/tab-cart.png", 91 "iconPath": "static/tab-cart.png",
92 "selectedIconPath": "static/tab-cart-current.png", 92 "selectedIconPath": "static/tab-cart-current.png",
93 "text": "购物车" 93 "text": "购物车"
94 }, 94 },
95 { 95 {
96 "pagePath": "pages/user/user", 96 "pagePath": "pages/user/user",
97 "iconPath": "static/tab-my.png", 97 "iconPath": "static/tab-my.png",
98 "selectedIconPath": "static/tab-my-current.png", 98 "selectedIconPath": "static/tab-my-current.png",
99 "text": "我的" 99 "text": "我的"
100 } 100 }
101 ] 101 ]
102 } 102 }
103 } 103 }
104 104
src/pages/detail/detail.vue
1 <template> 1 <template>
2 <view class="container"> 2 <view class="container">
3 <view class="D1"> 3 <view class="D1">
4 <!-- 轮播图 --> 4 <!-- 轮播图 -->
5 <swiper class="swiperImage" :indicator-dots="true" :autoplay="true" :interval="4000" :duration="500" > 5 <swiper class="swiperImage" :indicator-dots="true" :autoplay="true" :interval="4000" :duration="500" >
6 <swiper-item v-for="(item) in infos" :key="item.goods_id"> 6 <swiper-item v-for="(item) in infos" :key="item.goods_id">
7 <image :src="item.img" mode="scaleToFill"></image> 7 <image :src="item.img" mode="scaleToFill"></image>
8 </swiper-item> 8 </swiper-item>
9 </swiper> 9 </swiper>
10 <view class="D1_price">¥{{price}}</view> 10 <view class="D1_price">¥{{price}}</view>
11 <view class="D1_name"><span class="D1_name1">{{name}}</span><span class="D1_number">{{number}}购买过</span></view> 11 <view class="D1_name"><span class="D1_name1">{{name}}</span><span class="D1_number">{{number}}购买过</span></view>
12 <view class="D1_spans"><span>支持7天无理由退货</span><span>顺丰发货</span><span>30天质量保证</span></view> 12 <view class="D1_spans"><span>支持7天无理由退货</span><span>顺丰发货</span><span>30天质量保证</span></view>
13 </view> 13 </view>
14 <view class="D2" v-if="goodType === 0 || goodType === 3"> 14 <view class="D2" v-if="goodType === 0 || goodType === 3">
15 <view><span class="D2_span1">框架材质:</span><span class="D2_span2">{{introduction.material}}</span></view> 15 <view><span class="D2_span1">框架材质:</span><span class="D2_span2">{{introduction.material}}</span></view>
16 <view><span class="D2_span1">风格:</span><span class="D2_span2">{{introduction.func}}</span></view> 16 <view><span class="D2_span1">风格:</span><span class="D2_span2">{{introduction.func}}</span></view>
17 <view><span class="D2_span1">适用性别:</span><span class="D2_span2">{{introduction.rate}}</span></view> 17 <view><span class="D2_span1">适用性别:</span><span class="D2_span2">{{introduction.rate}}</span></view>
18 </view> 18 </view>
19 <view class="D2" v-if="goodType === 1"> 19 <view class="D2" v-if="goodType === 1">
20 <view><span class="D2_span1">镜片材质:</span><span class="D2_span2">{{introduction.material}}</span></view> 20 <view><span class="D2_span1">镜片材质:</span><span class="D2_span2">{{introduction.material}}</span></view>
21 <view><span class="D2_span1">功能:</span><span class="D2_span2">{{introduction.func}}</span></view> 21 <view><span class="D2_span1">功能:</span><span class="D2_span2">{{introduction.func}}</span></view>
22 <view><span class="D2_span1">使用场景:</span><span class="D2_span2">{{introduction.rate}}</span></view> 22 <view><span class="D2_span1">使用场景:</span><span class="D2_span2">{{introduction.rate}}</span></view>
23 </view> 23 </view>
24 <view class="D2" v-if="goodType === 2"> 24 <view class="D2" v-if="goodType === 2">
25 <view><span class="D2_span1">材质:</span><span class="D2_span2">{{introduction.material}}</span></view> 25 <view><span class="D2_span1">材质:</span><span class="D2_span2">{{introduction.material}}</span></view>
26 <view><span class="D2_span1">直径/基弧:</span><span class="D2_span2">{{introduction.func}}</span></view> 26 <view><span class="D2_span1">直径/基弧:</span><span class="D2_span2">{{introduction.func}}</span></view>
27 <view><span class="D2_span1">适用性别:</span><span class="D2_span2">{{introduction.rate}}</span></view> 27 <view><span class="D2_span1">适用性别:</span><span class="D2_span2">{{introduction.rate}}</span></view>
28 </view> 28 </view>
29 29
30 <view class="D3"> 30 <view class="D3">
31 <view class="screenBar"> 31 <view class="screenBar">
32 <view v-for="item in screenItems" :key="item.current" @click="tabChange(item.current)" > 32 <view v-for="item in screenItems" :key="item.current" @click="tabChange(item.current)" >
33 <view class="screenItem" v-bind:class="{ active: current === item.current }">{{ item.text }}</view> 33 <view class="screenItem" v-bind:class="{ active: current === item.current }">{{ item.text }}</view>
34 </view> 34 </view>
35 </view> 35 </view>
36 <view class="screen-item " v-if="current ===0"> 36 <view class="screen-item " v-if="current ===0">
37 <view class="D3_list"> 37 <view class="D3_list">
38 <view v-for="(item) in parameter" :key="item.key"> 38 <view v-for="(item) in parameter" :key="item.key">
39 <image class="D3_image" v-bind:src = "item.img"></image> 39 <image class="D3_image" v-bind:src = "item.img"></image>
40 <span>{{item.standard}}</span> 40 <span>{{item.standard}}</span>
41 <span>{{item.slength}}</span> 41 <span>{{item.slength}}</span>
42 </view> 42 </view>
43 </view> 43 </view>
44 </view > 44 </view >
45 <view class="screen-item " v-if="current ===1"> 45 <view class="screen-item " v-if="current ===1">
46 <view class="D3_list"> 46 <view class="D3_list">
47 <view>主体</view> 47 <view>主体</view>
48 <view>商品产地:韩国</view> 48 <view>商品产地:韩国</view>
49 <view>包装清单:彩色隐形 * 1</view> 49 <view>包装清单:彩色隐形 * 1</view>
50 </view> 50 </view>
51 </view > 51 </view >
52 <view class="screen-item " v-if="current ===2"> 52 <view class="screen-item " v-if="current ===2">
53 <view class="customerService"> 53 <view class="customerService">
54 <view class="serviceItem" > 54 <view class="serviceItem" >
55 <view class="title"> 55 <view class="title">
56 <view style="width: 6rpx;height: 6rpx;border-radius: 3rpx;background-color: #FF6B4A;margin-right: 12rpx;"></view> 56 <view style="width: 6rpx;height: 6rpx;border-radius: 3rpx;background-color: #FF6B4A;margin-right: 12rpx;"></view>
57 <text class="titleText">卖家服务</text> 57 <text class="titleText">卖家服务</text>
58 </view> 58 </view>
59 <view class="itemContent">平台卖家服务,为您在平台获得最优的购买体验</view> 59 <view class="itemContent">平台卖家服务,为您在平台获得最优的购买体验</view>
60 </view> 60 </view>
61 <view class="serviceItem" > 61 <view class="serviceItem" >
62 <view class="title"> 62 <view class="title">
63 <view style="width: 6rpx;height: 6rpx;border-radius: 3rpx;background-color: #FF6B4A;margin-right: 12rpx;"></view> 63 <view style="width: 6rpx;height: 6rpx;border-radius: 3rpx;background-color: #FF6B4A;margin-right: 12rpx;"></view>
64 <text class="titleText">平台承诺</text> 64 <text class="titleText">平台承诺</text>
65 </view> 65 </view>
66 <view class="itemContent">平台卖家服务,为您在平台获得最优的购买体验阿斯蒂芬的发射点发射点发生的房贷首付的发护法国会国家和国际会更加和</view> 66 <view class="itemContent">平台卖家服务,为您在平台获得最优的购买体验阿斯蒂芬的发射点发射点发生的房贷首付的发护法国会国家和国际会更加和</view>
67 </view> 67 </view>
68 <view class="serviceItem"> 68 <view class="serviceItem">
69 <view class="title"> 69 <view class="title">
70 <view style="width: 6rpx;height: 6rpx;border-radius: 3rpx;background-color: #FF6B4A;margin-right: 12rpx;"></view> 70 <view style="width: 6rpx;height: 6rpx;border-radius: 3rpx;background-color: #FF6B4A;margin-right: 12rpx;"></view>
71 <text class="titleText">正品保证</text> 71 <text class="titleText">正品保证</text>
72 </view> 72 </view>
73 <view class="itemContent">向您保证所售商品均为正品行货</view> 73 <view class="itemContent">向您保证所售商品均为正品行货</view>
74 </view> 74 </view>
75 <view class="serviceItem2"> 75 <view class="serviceItem2">
76 <view class="title"> 76 <view class="title">
77 <text class="titleText">权利申明</text> 77 <text class="titleText">权利申明</text>
78 </view> 78 </view>
79 <view class="itemContent">任何个人或单位如果同时符合以下两个条件:1. 权利人发现网络用户利用网络服务侵害其合法权益;2. 百度的搜索引擎系统以自动检索方式而链接到第三方网站的内容侵犯了上述权利人的合法权益。请上述个人或单位务必以书面的通讯方式向百度提交权利通知。</view> 79 <view class="itemContent">任何个人或单位如果同时符合以下两个条件:1. 权利人发现网络用户利用网络服务侵害其合法权益;2. 百度的搜索引擎系统以自动检索方式而链接到第三方网站的内容侵犯了上述权利人的合法权益。请上述个人或单位务必以书面的通讯方式向百度提交权利通知。</view>
80 </view> 80 </view>
81 <view class="serviceItem2"> 81 <view class="serviceItem2">
82 <view class="title"> 82 <view class="title">
83 <text class="titleText">价格保证</text> 83 <text class="titleText">价格保证</text>
84 </view> 84 </view>
85 <view class="itemContent"> 85 <view class="itemContent">
86 <view class="itemContent-child"> 86 <view class="itemContent-child">
87 <text class="contentTitle">平台价:</text> 87 <text class="contentTitle">平台价:</text>
88 <text>任何个人或单位如果同时符合以下两个条件:1. 权利人发现网络用户利用网络服务侵害其合法权益;2. 百度的搜索引擎系统以自动检索方式而链接到第三方网站的内容侵犯了上述权利人的合法权益。请上述个人或单位务必以书面的通讯方式向百度提交权利通知</text> 88 <text>任何个人或单位如果同时符合以下两个条件:1. 权利人发现网络用户利用网络服务侵害其合法权益;2. 百度的搜索引擎系统以自动检索方式而链接到第三方网站的内容侵犯了上述权利人的合法权益。请上述个人或单位务必以书面的通讯方式向百度提交权利通知</text>
89 </view> 89 </view>
90 <view class="itemContent-child"> 90 <view class="itemContent-child">
91 <text class="contentTitle">划线价:</text> 91 <text class="contentTitle">划线价:</text>
92 <text>任何个人或单位如果同时符合以下两个条件:1. 权利人发现网络用户利用网络服务侵害其合法权益;2. 百度的搜索引擎系统以自动检索方式而链接到第三方网站的内容侵犯了上述权利人的合法权益。请上述个人或单位务必以书面的通讯方式向百度提交权利通知</text> 92 <text>任何个人或单位如果同时符合以下两个条件:1. 权利人发现网络用户利用网络服务侵害其合法权益;2. 百度的搜索引擎系统以自动检索方式而链接到第三方网站的内容侵犯了上述权利人的合法权益。请上述个人或单位务必以书面的通讯方式向百度提交权利通知</text>
93 </view> 93 </view>
94 <view class="itemContent-child"> 94 <view class="itemContent-child">
95 <text class="contentTitle">平折扣:</text> 95 <text class="contentTitle">平折扣:</text>
96 <text>任何个人或单位如果同时符合以下两个条件:1. 权利人发现网络用户利用网络服务侵害其合法权益;2. 百度的搜索引擎系统以自动检索方式而链接到第三方网站的内容侵犯了上述权利人的合法权益。请上述个人或单位务必以书面的通讯方式向百度提交权利通知</text> 96 <text>任何个人或单位如果同时符合以下两个条件:1. 权利人发现网络用户利用网络服务侵害其合法权益;2. 百度的搜索引擎系统以自动检索方式而链接到第三方网站的内容侵犯了上述权利人的合法权益。请上述个人或单位务必以书面的通讯方式向百度提交权利通知</text>
97 </view> 97 </view>
98 <view class="itemContent-child"> 98 <view class="itemContent-child">
99 <text class="contentTitle">异常问题:</text> 99 <text class="contentTitle">异常问题:</text>
100 <text>任何个人或单位如果同时符合以下两个条件:1. 权利人发现网络用户利用网络服务侵害其合法权益;2. 百度的搜索引擎系统以自动检索方式而链接到第三方网站的内容侵犯了上述权利人的合法权益。请上述个人或单位务必以书面的通讯方式向百度提交权利通知</text> 100 <text>任何个人或单位如果同时符合以下两个条件:1. 权利人发现网络用户利用网络服务侵害其合法权益;2. 百度的搜索引擎系统以自动检索方式而链接到第三方网站的内容侵犯了上述权利人的合法权益。请上述个人或单位务必以书面的通讯方式向百度提交权利通知</text>
101 </view> 101 </view>
102 102
103 </view> 103 </view>
104 </view> 104 </view>
105 </view> 105 </view>
106 </view > 106 </view >
107 </view> 107 </view>
108 <view class="D4" v-if="current !==2"> 108 <view class="D4" v-if="current !==2">
109 <view class="D4_esvalue"> 109 <view class="D4_esvalue">
110 <view>{{esvalue}}</view> 110 <view>{{esvalue}}</view>
111 <view class="D4_2"> 111 <view class="D4_2">
112 <view class="star" v-for="o in starCount" :key="o"> 112 <view class="star" v-for="o in starCount" :key="o">
113 <image src="../../static/img/detail/d_star.png" mode="aspectFill" style="height: 26rpx; width: 28rpx;"></image> 113 <image src="../../static/img/detail/d_star.png" mode="aspectFill" style="height: 26rpx; width: 28rpx;"></image>
114 </view> 114 </view>
115 </view> 115 </view>
116 </view> 116 </view>
117 <view class="D4_list"> 117 <view class="D4_list">
118 <view v-for="(assess) in assess" :key="assess.key">{{assess.Iassess}}</view> 118 <view v-for="(assess) in assess" :key="assess.key">{{assess.Iassess}}</view>
119 </view> 119 </view>
120 </view> 120 </view>
121 <view class="D5" v-if="current !==2"> 121 <view class="D5" v-if="current !==2">
122 <view class="D5_fixed1"> 122 <view class="D5_fixed1">
123 <image src="/static/img/detail/hr.png"></image> 123 <image src="/static/img/detail/hr.png"></image>
124 <view>商品详细</view> 124 <view>商品详细</view>
125 <image src="/static/img/detail/hr.png"></image> 125 <image src="/static/img/detail/hr.png"></image>
126 </view> 126 </view>
127 <view class="D5_all"> 127 <view class="D5_all">
128 <image v-bind:src="imgAll"></image> 128 <image v-bind:src="imgAll"></image>
129 </view> 129 </view>
130 <view class="D5_photoes"> 130 <view class="D5_photoes">
131 <view class="D5_photoes1"> 131 <view class="D5_photoes1">
132 <view v-for="(photoes) in photoes" :key="photoes.value"> 132 <view v-for="(photoes) in photoes" :key="photoes.value">
133 <image v-bind:src = "photoes.img"></image> 133 <image v-bind:src = "photoes.img"></image>
134 <view>{{photoes.value}}</view> 134 <view>{{photoes.value}}</view>
135 </view> 135 </view>
136 </view> 136 </view>
137 <view class="D5_logo1">帕森防蓝光镜片</view> 137 <view class="D5_logo1">帕森防蓝光镜片</view>
138 <view class="D5_logo2">健康护眼,我们是认真的!</view> 138 <view class="D5_logo2">健康护眼,我们是认真的!</view>
139 <view class="D5_logo3"><image src='/static/img/detail/logo.png'></image></view> 139 <view class="D5_logo3"><image src='/static/img/detail/logo.png'></image></view>
140 </view> 140 </view>
141 </view> 141 </view>
142 <view class="D6" v-if="current !==2"> 142 <view class="D6" v-if="current !==2">
143 <view class="D6_v1">CHARM DETAIL</view> 143 <view class="D6_v1">CHARM DETAIL</view>
144 <view class="D6_v2">细节展示</view> 144 <view class="D6_v2">细节展示</view>
145 <view ><image v-bind:src="imgDetail"></image></view> 145 <view ><image v-bind:src="imgDetail"></image></view>
146 <view>........................................................................</view> 146 <view>........................................................................</view>
147 <view class="D6_v5"><span class="D6_v5_s1">优质选材 </span><span class="D6_v5_s2"> / 金属材质 光泽饱满</span></view> 147 <view class="D6_v5"><span class="D6_v5_s1">优质选材 </span><span class="D6_v5_s2"> / 金属材质 光泽饱满</span></view>
148 </view> 148 </view>
149 149
150 <!-- 底部菜单 --> 150 <!-- 底部菜单 -->
151 <view class="botton"> 151 <view class="botton">
152 <view class="botton_1"><image v-bind:src="imgShop.img"></image><view class="botton_image">购物车</view></view> 152 <view class="botton_1"><image v-bind:src="imgShop.img"></image><view class="botton_image">购物车</view></view>
153 <view class="botton_2"> 153 <view class="botton_2">
154 <view class="botton_input">加入购物车</view> 154 <view class="botton_input">加入购物车</view>
155 <view class="botton_now" @click="goConfirmOder">立即购买</view> 155 <view class="botton_now" @click="goConfirmOder">立即购买</view>
156 </view> 156 </view>
157 </view> 157 </view>
158 </view> 158 </view>
159 </template> 159 </template>
160 160
161 <script> 161 <script>
162 import WucTab from '@/components/Wuc-tab/Wuc-tab.vue';
163 export default { 162 export default {
164 components: {WucTab},
165 data(){ 163 data(){
166 return { 164 return {
167 name:'商品名称', 165 name:'商品名称',
168 goodType:1, 166 goodType:1,
169 price: 120, 167 price: 120,
170 number: 391, 168 number: 391,
171 screenItems: [ 169 screenItems: [
172 {current:0,text:'商品保障'}, 170 {current:0,text:'商品保障'},
173 {current:1,text:'规格参数'}, 171 {current:1,text:'规格参数'},
174 {current:2,text:'售后保障'}, 172 {current:2,text:'售后保障'},
175 ], 173 ],
176 current: 0, 174 current: 0,
177 starCount:5, 175 starCount:5,
178 infos: [ 176 infos: [
179 { goods_id: 0, img: '/static/img/goods/p11.png', name: '商品名称', price: '¥168', slogan:'1235人付款' }, 177 { goods_id: 0, img: '/static/img/goods/p11.png', name: '商品名称', price: '¥168', slogan:'1235人付款' },
180 { goods_id: 1, img: '/static/img/goods/p12.png', name: '商品名称', price: '¥168', slogan:'1235人付款' }, 178 { goods_id: 1, img: '/static/img/goods/p12.png', name: '商品名称', price: '¥168', slogan:'1235人付款' },
181 { goods_id: 2, img: '/static/img/goods/p12.png', name: '商品名称', price: '¥168', slogan:'1235人付款' }, 179 { goods_id: 2, img: '/static/img/goods/p12.png', name: '商品名称', price: '¥168', slogan:'1235人付款' },
182 { goods_id: 3, img: '/static/img/goods/p11.png', name: '商品名称', price: '¥168', slogan:'1235人付款' }, 180 { goods_id: 3, img: '/static/img/goods/p11.png', name: '商品名称', price: '¥168', slogan:'1235人付款' },
183 ], 181 ],
184 parameter:[ 182 parameter:[
185 {key: 0,img:'/static/img/detail/d2.png', standard:'框架宽', slength:'139mm'}, 183 {key: 0,img:'/static/img/detail/d2.png', standard:'框架宽', slength:'139mm'},
186 {key: 1,img:'/static/img/detail/d3.png', standard:'镜片宽', slength:'51mm'}, 184 {key: 1,img:'/static/img/detail/d3.png', standard:'镜片宽', slength:'51mm'},
187 {key: 2,img:'/static/img/detail/d4.png', standard:'镜片高', slength:'45mm'}, 185 {key: 2,img:'/static/img/detail/d4.png', standard:'镜片高', slength:'45mm'},
188 {key: 3,img:'/static/img/detail/d5.png', standard:'鼻架宽', slength:'19mm'}, 186 {key: 3,img:'/static/img/detail/d5.png', standard:'鼻架宽', slength:'19mm'},
189 {key: 4,img:'/static/img/detail/d6.png', standard:'框架耳长', slength:'138mm'}, 187 {key: 4,img:'/static/img/detail/d6.png', standard:'框架耳长', slength:'138mm'},
190 {key: 5,img:'/static/img/detail/d7.png', standard:'框架重', slength:'19mm'} 188 {key: 5,img:'/static/img/detail/d7.png', standard:'框架重', slength:'19mm'}
191 ], 189 ],
192 assess:[ 190 assess:[
193 {key: 0, Iassess: '价格实惠'}, 191 {key: 0, Iassess: '价格实惠'},
194 {key: 1, Iassess: '美观大方'}, 192 {key: 1, Iassess: '美观大方'},
195 {key: 2, Iassess: '易搭配'} 193 {key: 2, Iassess: '易搭配'}
196 ], 194 ],
197 esvalue:'宝贝好评率 100%', 195 esvalue:'宝贝好评率 100%',
198 introduction:{ 196 introduction:{
199 material:'钛合金', 197 material:'钛合金',
200 func:'抗疲劳/防辐射', 198 func:'抗疲劳/防辐射',
201 rate: 1.6 199 rate: 1.6
202 }, 200 },
203 imgAll:'/static/img/detail/d8.png' , 201 imgAll:'/static/img/detail/d8.png' ,
204 photoes:[ 202 photoes:[
205 {value:'日常办公', img:'/static/img/detail/d9.png'}, 203 {value:'日常办公', img:'/static/img/detail/d9.png'},
206 {value:'上网', img:'/static/img/detail/d10.png'}, 204 {value:'上网', img:'/static/img/detail/d10.png'},
207 {value:'追剧', img:'/static/img/detail/d11.png'}, 205 {value:'追剧', img:'/static/img/detail/d11.png'},
208 {value:'玩游戏', img:'/static/img/detail/d12.png'}, 206 {value:'玩游戏', img:'/static/img/detail/d12.png'},
209 ], 207 ],
210 imgDetail:'/static/img/detail/d13.png', 208 imgDetail:'/static/img/detail/d13.png',
211 imgShop:{ 209 imgShop:{
212 img:'/static/tab-cart.png', 210 img:'/static/tab-cart.png',
213 IsShown: false 211 IsShown: false
214 } 212 }
215 } 213 }
216 }, 214 },
217 methods:{ 215 methods:{
218 goConfirmOder(){ 216 goConfirmOder(){
219 uni.navigateTo({ 217 uni.navigateTo({
220 url: '../confirmOrder/confirmOrder', 218 url: '../confirmOrder/confirmOrder',
221 success: res => {}, 219 success: res => {},
222 fail: () => {}, 220 fail: () => {},
223 complete: () => {} 221 complete: () => {}
224 }); 222 });
225 }, 223 },
226 tabChange(e) { 224 tabChange(e) {
227 if (this.current !== e) { 225 if (this.current !== e) {
228 this.current = e; 226 this.current = e;
229 } 227 }
230 } 228 }
231 } 229 }
232 } 230 }
233 </script> 231 </script>
234 <style lang='scss'> 232 <style lang='scss'>
235 .container{ 233 .container{
236 background-color:#f8f8f8 ; 234 background-color:#f8f8f8 ;
237 } 235 }
238 .D1,.D2,.D3,.D4,.D6{ 236 .D1,.D2,.D3,.D4,.D6{
239 background: #ffffff; 237 background: #ffffff;
240 margin-bottom: 10px; 238 margin-bottom: 10px;
241 padding:8px 20px 8px 20px; 239 padding:8px 20px 8px 20px;
242 box-sizing: border-box; 240 box-sizing: border-box;
243 .swiperImage { 241 .swiperImage {
244 width: 684rpx; 242 width: 684rpx;
245 height: 512rpx; 243 height: 512rpx;
246 image { 244 image {
247 width: 100%; 245 width: 100%;
248 height: 100%; 246 height: 100%;
249 border-radius: 16rpx; 247 border-radius: 16rpx;
250 } 248 }
251 } 249 }
252 } 250 }
253 .D5{ 251 .D5{
254 background: #ffffff; 252 background: #ffffff;
255 padding:8px 20px 8px 20px; 253 padding:8px 20px 8px 20px;
256 box-sizing: border-box; 254 box-sizing: border-box;
257 } 255 }
258 .swiperImage{ 256 .swiperImage{
259 width: 100%; 257 width: 100%;
260 height: 560rpx; 258 height: 560rpx;
261 .swiper-item{ 259 .swiper-item{
262 width: 100%; 260 width: 100%;
263 image{ 261 image{
264 width: 100%; 262 width: 100%;
265 } 263 }
266 } 264 }
267 } 265 }
268 .D1{ 266 .D1{
269 .D1_price{ 267 .D1_price{
270 color: #EB5D3B; 268 color: #EB5D3B;
271 font-size: 18px; 269 font-size: 18px;
272 margin-top: 5px; 270 margin-top: 5px;
273 font-family: 'PingFangSC-Semibold'; 271 font-family: 'PingFangSC-Semibold';
274 } 272 }
275 .D1_name{ 273 .D1_name{
276 font-size: 16px; 274 font-size: 16px;
277 font-family: 'PingFangSC-Semibold'; 275 font-family: 'PingFangSC-Semibold';
278 margin-top: 5px; 276 margin-top: 5px;
279 display: flex; 277 display: flex;
280 justify-content: space-between; 278 justify-content: space-between;
281 .D1_name1{ 279 .D1_name1{
282 font-weight: bold; 280 font-weight: bold;
283 font-size: 16px; 281 font-size: 16px;
284 color: #333333; 282 color: #333333;
285 } 283 }
286 .D1_number{ 284 .D1_number{
287 color: #999999 ; 285 color: #999999 ;
288 font-size: 14px; 286 font-size: 14px;
289 font-family: 'PingFangSC-Regular'; 287 font-family: 'PingFangSC-Regular';
290 } 288 }
291 } 289 }
292 .D1_spans{ 290 .D1_spans{
293 font-size: 10px; 291 font-size: 10px;
294 color:#999999; 292 color:#999999;
295 margin-top: 5px; 293 margin-top: 5px;
296 span{ 294 span{
297 height: 14px; 295 height: 14px;
298 margin-right: 10px; 296 margin-right: 10px;
299 } 297 }
300 } 298 }
301 299
302 } 300 }
303 .D2{ 301 .D2{
304 font-size: 14px; 302 font-size: 14px;
305 font-family: 'PingFangSC-Regular'; 303 font-family: 'PingFangSC-Regular';
306 view{ 304 view{
307 height: 24px; 305 height: 24px;
308 } 306 }
309 .D2_span1{ 307 .D2_span1{
310 color: #999999; 308 color: #999999;
311 } 309 }
312 .D2_span2{ 310 .D2_span2{
313 color: #333333; 311 color: #333333;
314 } 312 }
315 } 313 }
316 .D3{ 314 .D3{
317 .screenBar{ 315 .screenBar{
318 width: 670rpx; 316 width: 670rpx;
319 margin-top: 20rpx; 317 margin-top: 20rpx;
320 margin-bottom: 24rpx; 318 margin-bottom: 24rpx;
321 display: flex; 319 display: flex;
322 flex-direction: row; 320 flex-direction: row;
323 justify-content: space-between; 321 justify-content: space-between;
324 align-items: center; 322 align-items: center;
325 font-size: 14px; 323 font-size: 14px;
326 color: #333333; 324 color: #333333;
327 transition:all 0.2s; 325 transition:all 0.2s;
328 } 326 }
329 .screen-item{ 327 .screen-item{
330 font-size: 32rpx; 328 font-size: 32rpx;
331 color: #333333; 329 color: #333333;
332 display: flex; 330 display: flex;
333 transition:all 0.2s; 331 transition:all 0.2s;
334 .D3_list{ 332 .D3_list{
335 margin-bottom: 4px; 333 margin-bottom: 4px;
336 } 334 }
337 .D3_list view{ 335 .D3_list view{
338 display: flex; 336 display: flex;
339 align-content: center; 337 align-content: center;
340 font-size: 14px; 338 font-size: 14px;
341 color: #333333; 339 color: #333333;
342 } 340 }
343 .D3_list image{ 341 .D3_list image{
344 width: 50px; 342 width: 50px;
345 height: 25px; 343 height: 25px;
346 margin-right: 6px; 344 margin-right: 6px;
347 } 345 }
348 .D3_list span{ 346 .D3_list span{
349 margin-left: 6px; 347 margin-left: 6px;
350 margin-right: 5px; 348 margin-right: 5px;
351 font-family: 'PingFangSC-Regular'; 349 font-family: 'PingFangSC-Regular';
352 } 350 }
353 } 351 }
354 .active{ 352 .active{
355 border-bottom: 4rpx solid #FF6B4A; 353 border-bottom: 4rpx solid #FF6B4A;
356 } 354 }
357 .customerService{ 355 .customerService{
358 margin-bottom: 90rpx; 356 margin-bottom: 90rpx;
359 .serviceItem{ 357 .serviceItem{
360 margin-bottom: 32rpx; 358 margin-bottom: 32rpx;
361 .title{ 359 .title{
362 display: flex;flex-direction: row; 360 display: flex;flex-direction: row;
363 align-items: center; 361 align-items: center;
364 .titleText{ 362 .titleText{
365 font-size: 14px; 363 font-size: 14px;
366 color: #333333; 364 color: #333333;
367 margin-bottom: 12rpx; 365 margin-bottom: 12rpx;
368 } 366 }
369 } 367 }
370 .itemContent{ 368 .itemContent{
371 font-size: 14px; 369 font-size: 14px;
372 color: #999999; 370 color: #999999;
373 margin-left: 18rpx; 371 margin-left: 18rpx;
374 } 372 }
375 } 373 }
376 .serviceItem2{ 374 .serviceItem2{
377 margin-left: 18rpx; 375 margin-left: 18rpx;
378 margin-bottom: 32rpx; 376 margin-bottom: 32rpx;
379 .titleText{ 377 .titleText{
380 font-size: 14px; 378 font-size: 14px;
381 color: #FF6B4A; 379 color: #FF6B4A;
382 } 380 }
383 .itemContent{ 381 .itemContent{
384 font-size: 14px; 382 font-size: 14px;
385 color: #999999; 383 color: #999999;
386 .itemContent-child{ 384 .itemContent-child{
387 margin-bottom: 40rpx; 385 margin-bottom: 40rpx;
388 .contentTitle{ 386 .contentTitle{
389 border-bottom: 1px solid #FF6B4A; 387 border-bottom: 1px solid #FF6B4A;
390 } 388 }
391 } 389 }
392 } 390 }
393 } 391 }
394 } 392 }
395 } 393 }
396 .D4{ 394 .D4{
397 .D4_esvalue{ 395 .D4_esvalue{
398 font-size: 14px; 396 font-size: 14px;
399 color: #333333; 397 color: #333333;
400 display: flex; 398 display: flex;
401 justify-content: space-between; 399 justify-content: space-between;
402 margin-bottom: 10px; 400 margin-bottom: 10px;
403 .D4_2{ 401 .D4_2{
404 width: 90px; 402 width: 90px;
405 display: flex; 403 display: flex;
406 align-items: center; 404 align-items: center;
407 justify-content: space-between; 405 justify-content: space-between;
408 } 406 }
409 } 407 }
410 .D4_esvalue view{ 408 .D4_esvalue view{
411 font-size: 14px; 409 font-size: 14px;
412 color: #333333; 410 color: #333333;
413 font-weight: bold; 411 font-weight: bold;
414 } 412 }
415 .D4_list view{ 413 .D4_list view{
416 display: inline-block; 414 display: inline-block;
417 font-size: 12px; 415 font-size: 12px;
418 text-align: center; 416 text-align: center;
419 margin-right: 12px; 417 margin-right: 12px;
420 width: 90px; 418 width: 90px;
421 height: 24px; 419 height: 24px;
422 line-height: 24px; 420 line-height: 24px;
423 background: #F2F2F2; 421 background: #F2F2F2;
424 color: #666666 ; 422 color: #666666 ;
425 } 423 }
426 } 424 }
427 .D5{ 425 .D5{
428 .D5_fixed1{ 426 .D5_fixed1{
429 display: flex; 427 display: flex;
430 justify-content: space-between; 428 justify-content: space-between;
431 align-content: center; 429 align-content: center;
432 margin-bottom: 12px; 430 margin-bottom: 12px;
433 view{ 431 view{
434 font-size: 14px; 432 font-size: 14px;
435 color: #333333; 433 color: #333333;
436 font-weight: bold; 434 font-weight: bold;
437 font-family: 'PingFangSC-Medium'; 435 font-family: 'PingFangSC-Medium';
438 line-height: 24px; 436 line-height: 24px;
439 } 437 }
440 image{ 438 image{
441 width: 240rpx; 439 width: 240rpx;
442 height: 3px; 440 height: 3px;
443 margin-top: 10px; 441 margin-top: 10px;
444 } 442 }
445 } 443 }
446 .D5_all { 444 .D5_all {
447 width: 100%; 445 width: 100%;
448 height: 380px; 446 height: 380px;
449 margin-bottom: 30px; 447 margin-bottom: 30px;
450 font-family: 'PingFangSC-Regular'; 448 font-family: 'PingFangSC-Regular';
451 border: #999999 solid 1.5px; 449 border: #999999 solid 1.5px;
452 image{ 450 image{
453 width: 100%; 451 width: 100%;
454 height: 380px; 452 height: 380px;
455 }} 453 }}
456 .D5_photoes1{ 454 .D5_photoes1{
457 display: grid; 455 display: grid;
458 grid-template-columns: 48% 48%; 456 grid-template-columns: 48% 48%;
459 grid-row-gap: 10px; 457 grid-row-gap: 10px;
460 grid-column-gap: 4%; 458 grid-column-gap: 4%;
461 image{ 459 image{
462 width: 100%; 460 width: 100%;
463 height: 70px; 461 height: 70px;
464 } 462 }
465 view{ 463 view{
466 width: 100%; 464 width: 100%;
467 font-size: 14px; 465 font-size: 14px;
468 text-align: center; 466 text-align: center;
469 background: #949494; 467 background: #949494;
470 font-family: 'PingFangSC-Regular'; 468 font-family: 'PingFangSC-Regular';
471 color: #ffffff; 469 color: #ffffff;
472 view{ 470 view{
473 height: 24px; 471 height: 24px;
474 line-height: 24px; 472 line-height: 24px;
475 } 473 }
476 } 474 }
477 } 475 }
478 .D5_logo1,.D5_logo2{ 476 .D5_logo1,.D5_logo2{
479 text-align: center; 477 text-align: center;
480 } 478 }
481 .D5_logo1{ 479 .D5_logo1{
482 margin-top: 40px; 480 margin-top: 40px;
483 font-size: 24px; 481 font-size: 24px;
484 font-weight: bold; 482 font-weight: bold;
485 font-family: 'PingFangSC-Semibold'; 483 font-family: 'PingFangSC-Semibold';
486 } 484 }
487 .D5_logo2{ 485 .D5_logo2{
488 font-size: 12px; 486 font-size: 12px;
489 } 487 }
490 .D5_logo3{ 488 .D5_logo3{
491 width: 100%; 489 width: 100%;
492 text-align: center; 490 text-align: center;
493 image{ 491 image{
494 width: 50px; 492 width: 50px;
495 height: 24px; 493 height: 24px;
496 } 494 }
497 } 495 }
498 } 496 }
499 .D6{ 497 .D6{
500 width: 100%; 498 width: 100%;
501 height: 430px; 499 height: 430px;
502 background: #F9F6ED; 500 background: #F9F6ED;
503 margin-bottom: 74px; 501 margin-bottom: 74px;
504 view{ 502 view{
505 text-align: center; 503 text-align: center;
506 } 504 }
507 .D6_v1{ 505 .D6_v1{
508 font-weight: bold; 506 font-weight: bold;
509 } 507 }
510 .D6_v2{ 508 .D6_v2{
511 font-size: 14px; 509 font-size: 14px;
512 margin-bottom: 30px; 510 margin-bottom: 30px;
513 } 511 }
514 .D6_v5{ 512 .D6_v5{
515 .D6_v5_s1{ 513 .D6_v5_s1{
516 font-weight: bold; 514 font-weight: bold;
517 } 515 }
518 .D6_v5_s2{ 516 .D6_v5_s2{
519 font-size: 14px; 517 font-size: 14px;
520 } 518 }
521 } 519 }
522 } 520 }
523 .botton{ 521 .botton{
524 position: fixed; 522 position: fixed;
525 bottom: 0; 523 bottom: 0;
526 height: 74px; 524 height: 74px;
527 width: 100%; 525 width: 100%;
528 background: #FFFFFF; 526 background: #FFFFFF;
529 padding: 20px 20px 8px 20px; 527 padding: 20px 20px 8px 20px;
530 font-family: 'PingFangSC-Regular'; 528 font-family: 'PingFangSC-Regular';
531 box-sizing: border-box; 529 box-sizing: border-box;
532 display: flex; 530 display: flex;
533 justify-content: space-between; 531 justify-content: space-between;
534 align-content: center; 532 align-content: center;
535 .botton_1{ 533 .botton_1{
536 width: 20%; 534 width: 20%;
537 height: 100%; 535 height: 100%;
538 text-align: center; 536 text-align: center;
539 color: #989898; 537 color: #989898;
540 } 538 }
541 image{ 539 image{
542 width: 60%; 540 width: 60%;
543 height: 30px; 541 height: 30px;
544 } 542 }
545 .botton_image{ 543 .botton_image{
546 font-size: 12px; 544 font-size: 12px;
547 text-align: center; 545 text-align: center;
548 } 546 }
549 .botton_2{ 547 .botton_2{
550 width: 74%; 548 width: 74%;
551 height: 86%; 549 height: 86%;
552 display: grid; 550 display: grid;
553 grid-template-columns: 50% 50%; 551 grid-template-columns: 50% 50%;
554 } 552 }
555 .botton_input{ 553 .botton_input{
556 display: inline-flex; 554 display: inline-flex;
557 align-items: center; 555 align-items: center;
558 justify-content: space-around; 556 justify-content: space-around;
559 background: #FFF0EC; 557 background: #FFF0EC;
560 font-size: 16px; 558 font-size: 16px;
561 color: #FF6B4A; 559 color: #FF6B4A;
562 border-radius: 20px 0 0 20px; 560 border-radius: 20px 0 0 20px;
563 } 561 }
564 .botton_now{ 562 .botton_now{
565 display: inline-flex; 563 display: inline-flex;
566 align-items: center; 564 align-items: center;
567 justify-content: space-around; 565 justify-content: space-around;
568 background: #FF6B4A; 566 background: #FF6B4A;
569 font-size: 16px; 567 font-size: 16px;
570 color: #FFFFFF; 568 color: #FFFFFF;
571 border-radius:0 20px 20px 0; 569 border-radius:0 20px 20px 0;
572 } 570 }
573 } 571 }
574 </style> 572 </style>