index.vue 16.3 KB
Newer Older
王建威's avatar
王建威 committed
1
<template>
王建威's avatar
王建威 committed
2 3 4 5
	<view v-if="isLogin && !is_city">
		<Fail />
	</view>
	<view v-else>
王建威's avatar
王建威 committed
6 7
		<view class="content">
			<view class="flex">
王建威's avatar
王建威 committed
8
				<i class="logo"></i>
王建威's avatar
王建威 committed
9
				<view class="search_view flex">
王建威's avatar
王建威 committed
10 11
					<i class="search_icon" @click="search"></i>
					<input type="text" class="search_input" v-model="keyword" @confirm="search">
王建威's avatar
王建威 committed
12
				</view>
王建威's avatar
王建威 committed
13 14
				<text class="login_btn" @click="jumpPhpPage('app=member&act=login')" v-if="!isLogin">登录</text>
				<uni-icons v-else  type="person" size="30" @click="jumpPhpPage('app=member')"></uni-icons>
王建威's avatar
王建威 committed
15 16
			</view>
			<view class="flex tab_bar">
王建威's avatar
王建威 committed
17 18 19 20 21 22 23
				<text :class="{act: tabIndex === 1}" @click="jumpPhpPage()">首页</text>
				<text :class="{act: tabIndex === 2}" @click="jumpPhpPage('app=promotion')">精彩活动</text>
				<text :class="{act: tabIndex === 3}">
					<i class="credit_icon"></i>
					谛宝白条
				</text>
				<!-- <text :class="{act: tabIndex === 4}">采购分期</text> -->
王建威's avatar
王建威 committed
24 25 26 27
			</view>
		</view>
		<view class="backimg">
			<view class="main_content">
王建威's avatar
王建威 committed
28 29
				<view class="banner" style="display: none;"></view>
				<view class="part_one" style="margin-top: 20px;">
王建威's avatar
王建威 committed
30 31 32
					<view>
						<text class="text">白条商品</text>
						<i></i>
王建威's avatar
王建威 committed
33
						<text class="text">信用支付 账期无忧</text>
王建威's avatar
王建威 committed
34 35
					</view>
					<view class="flex classbox">
王建威's avatar
王建威 committed
36
						<view class="class_item" v-for="(item, index) in credit_cates_list" :key="index" @click="jumpSecondPage(item.cate_id, 1, 10)">
王建威's avatar
王建威 committed
37
							<image :src="item.goods_list[0]['default_image'] || $defaultClassImg"></image>
王建威's avatar
王建威 committed
38
							<text class="class_name">{{item.cate_name}}</text>
王建威's avatar
王建威 committed
39 40 41 42
						</view>
					</view>
				</view>
				<view class="part_two">
王建威's avatar
王建威 committed
43
					<view>
王建威's avatar
王建威 committed
44
						<image class="portrait" :src="portrait || $defaultPortrait"></image>
王建威's avatar
王建威 committed
45
						<p class="user_name">{{customer_name}}</p>
王建威's avatar
王建威 committed
46
					</view>
王建威's avatar
王建威 committed
47
					<text class="go_credit" @click="isLogin ? (credit_flg ? jumpGoPage() : jumpGoPage('/introduce')) : jumpPhpPage('app=member&act=login')"><text>我的白条</text><i class="go_credit_icon"></i></text>
王建威's avatar
王建威 committed
48 49 50 51
				</view>
				<view class="part_three">
					<view class="part_three_top">
						<view>
王建威's avatar
王建威 committed
52
							<p>谛宝多多 账期无忧</p>
王建威's avatar
王建威 committed
53 54
							<p>最高可享12期免息</p>
						</view>
王建威's avatar
王建威 committed
55
						<text class="go_detail" @click="isLogin ? (credit_flg ? jumpDetailPage() : jumpGoPage('/introduce')) : jumpPhpPage('app=member&act=login')">查看详情<i class="go_credit_icon"></i></text>
王建威's avatar
王建威 committed
56 57
					</view>
					<view class="part_three_bottom">
王建威's avatar
王建威 committed
58
						<view class="hot_goods"  v-for="(item, index) in credit_goods_list" :key="index">
王建威's avatar
王建威 committed
59
							<image :src="item.default_image || $noGoodsImg" @click="jumpPhpPage(`app=goods&id=${item.goods_id}`)"></image>
王建威's avatar
王建威 committed
60
							<p>{{item.goods_name}}</p>
王建威's avatar
王建威 committed
61
							<!-- <text>9个月账期</text> -->
王建威's avatar
王建威 committed
62 63 64 65 66 67
						</view>
					</view>
				</view>
				<view class="part_four">
					<p>白条精品 猜你需要</p>
					<view class="needs_tabs">
王建威's avatar
王建威 committed
68
						<text v-for="(item, index) in credit_cates_list" :key="index" :class="[index == 0 ? 'tabs_item_first' : (index == credit_cates_list.length-1 ? 'tabs_item_last' : 'tabs_item'), current === index ? 'act' : '']" @click="changeCurrent(index)"><text>{{item.cate_name}}</text></text>
王建威's avatar
王建威 committed
69 70
					</view>
					<view>
王建威's avatar
王建威 committed
71 72
						<view v-for="(item, index) in credit_cates_list" :key="index" class="cate_goods_view" v-show="index == current">
							<view class="goods_info" v-for="(val, key ) in item.goods_list" :key="key">
王建威's avatar
王建威 committed
73
								<image :src="val.default_image || $noGoodsImg" @click="jumpPhpPage(`app=goods&id=${val.goods_id}`)"></image>
王建威's avatar
王建威 committed
74 75 76
								<text class="goods_name">{{val.goods_name}}</text>
								<view class="goods_tag">
									<text>限时免息</text>
王建威's avatar
王建威 committed
77
									<!-- <text>9个月账期</text> -->
王建威's avatar
王建威 committed
78 79 80
								</view>
								<text class="goods_des">{{val.goods_subname}}</text>
								<view class="price_view">
王建威's avatar
王建威 committed
81 82
									<text>{{isLogin ? `¥${val.price}` : '登录显示价格'}}</text>
									<i @click="addCart(val.spec_id, 1)"></i>
王建威's avatar
王建威 committed
83
								</view>
王建威's avatar
王建威 committed
84 85 86 87 88
							</view>
						</view>
					</view>
				</view>
			</view>
王建威's avatar
王建威 committed
89
			<BottomBar />
王建威's avatar
王建威 committed
90
		</view>
郑秀明's avatar
郑秀明 committed
91
	</view>
王建威's avatar
王建威 committed
92

郑秀明's avatar
郑秀明 committed
93 94
</template>

王建威's avatar
王建威 committed
95
<script>
王建威's avatar
王建威 committed
96
	import { php, go } from '../../common/host.js';
王建威's avatar
王建威 committed
97
	import uniIcons from "@/components/uni-icons/uni-icons.vue";
王建威's avatar
王建威 committed
98 99
	import BottomBar from "@/components/BottomBar/BottomBar.vue";
	import Fail from '../fail.vue';
郑秀明's avatar
郑秀明 committed
100 101 102
	export default {
		data() {
			return {
王建威's avatar
王建威 committed
103 104 105
				tabIndex: 3, // 1:首页 2:精彩活动 3:谛宝白条 4:采购分期
				credit_cates_list: [], // 分类
				credit_goods_list: [],  // 商品
王建威's avatar
王建威 committed
106
				customer_name: 'Hi, 谛宝多多',
王建威's avatar
王建威 committed
107
				portrait: '',
王建威's avatar
王建威 committed
108
				current: 0,
王建威's avatar
王建威 committed
109
				keyword: '',
王建威's avatar
王建威 committed
110
				isLogin: 0,
王建威's avatar
王建威 committed
111 112
				credit_flg: 0,
				is_city: 0
郑秀明's avatar
郑秀明 committed
113 114
			}
		},
王建威's avatar
王建威 committed
115
		onLoad() {
王建威's avatar
王建威 committed
116
			this.getData();
王建威's avatar
王建威 committed
117 118
		},
		components: {
王建威's avatar
王建威 committed
119
			uniIcons,
王建威's avatar
王建威 committed
120 121
			BottomBar,
			Fail
郑秀明's avatar
郑秀明 committed
122 123
		},
		methods: {
王建威's avatar
王建威 committed
124 125 126 127 128 129 130 131 132 133 134
			// changeTab(index) {
			// 	this.tabIndex = index;
			// },
			search() {
				window.location.href = `${php}app=search&act=index&keyword=${this.keyword}`
			},
			changeCurrent(index) {
				this.current = index;
			},
			jumpSecondPage(cate_id, current, pageSize) {
				uni.navigateTo({
王建威's avatar
王建威 committed
135
				    url: `/pages/category/category?cate_id_1=${cate_id}&current=${current}&page_size=${pageSize}`
王建威's avatar
王建威 committed
136 137
				});
			},
王建威's avatar
王建威 committed
138 139
			jumpDetailPage() {
				uni.navigateTo({
王建威's avatar
王建威 committed
140
				    url: `/pages/detail/detail`
王建威's avatar
王建威 committed
141 142
				});
			},
王建威's avatar
王建威 committed
143 144
			getData() {
				uni.request({
郑秀明's avatar
郑秀明 committed
145
					url: '/uni/api/credit_goods/get_credit_index_goods',
王建威's avatar
王建威 committed
146 147 148 149 150
					method: 'GET',
					dataType: 'json',
					success: (res) => {
						this.credit_cates_list = res.data.data.credit_cates_list;
						this.credit_goods_list = res.data.data.credit_goods_list;
王建威's avatar
王建威 committed
151 152
						this.isLogin  = res.data.login_flg;
						this.credit_flg = res.data.credit_flg;
王建威's avatar
王建威 committed
153
						this.is_city = res.data.city_flg;
王建威's avatar
王建威 committed
154
						if(res.data.data.customer_name) {
王建威's avatar
王建威 committed
155
							this.customer_name = res.data.data.customer_name;
王建威's avatar
王建威 committed
156 157 158 159
						}
						if(res.data.data.portrait) {
							this.portrait = res.data.data.portrait;
						}
王建威's avatar
王建威 committed
160 161 162 163 164 165 166 167 168 169
					}
				})
			},
			jumpPhpPage(url) {
				let link = url ? `${php}${url}` : php;
				window.location.href =  link;
			},
			jumpGoPage(url) {
				let link = url ? `${go}${url}` : go;
				window.location.href =  link;
王建威's avatar
王建威 committed
170 171
			},
			addCart(spec_id, quantity) {
王建威's avatar
王建威 committed
172
				this.$addCart(spec_id, quantity, this.isLogin);
王建威's avatar
王建威 committed
173
			}
郑秀明's avatar
郑秀明 committed
174
		}
王建威's avatar
王建威 committed
175
	};
郑秀明's avatar
郑秀明 committed
176 177
</script>

王建威's avatar
王建威 committed
178
<style lang="less" scoped>
王建威's avatar
王建威 committed
179 180
	.flex {
		display: flex;
王建威's avatar
王建威 committed
181 182 183 184 185 186 187
		justify-content: space-between;
		.logo {
			width: 192rpx;
			height: 60rpx;
			background: url(../../static/index/2931581575297_.pic.jpg) no-repeat;
			background-size: 100% 100%;
		}
郑秀明's avatar
郑秀明 committed
188
	}
王建威's avatar
王建威 committed
189 190 191 192 193 194
	.content {
		height: 180rpx;
		background: #fff;
		justify-content: space-between;
		padding: 24rpx;
		box-sizing: border-box;
王建威's avatar
王建威 committed
195 196 197 198
		position: fixed;
		width: 100%;
		background-color: #fff;
		z-index: 11;
王建威's avatar
王建威 committed
199 200 201 202 203 204 205 206 207 208 209
	}
	.search_view {
		width: 380rpx;
		height: 60rpx;
		background: #F5F5F5;
		border-radius: 30rpx;
	}
	.search_icon {
		display: inline-block;
		width: 56rpx;
		height: 56rpx;
王建威's avatar
王建威 committed
210
		background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAAAAAA5AE8dAAACh0lEQVRYw83ZMW/aQBTAcb7K3xaGDcQUIUWtEFKmMKRbVT5AEBOV+gFgZmEh6tatH4HIK8qUISGIFgllyFQhaqlyLjRpIR1I0jTCl9p5r81t9sk/2Xe+u3fvUtdryvLH3DylpNaQV08j16DLqwtjhNHF3BhhdHFpjDT688JIoxKt+RBdfjdGGl3OjTi6EDRvUVHzBl2KmitU2DQp2X7/jV4ZeVRqHN1HF+KmSV1fGnl0YRTQuQZq/hc6nYyGJ8PRZCqGBvudWimX9bK5Uq2zH0igYbecd7ktbr7cDZ+KBv2Kw5/FqfQfe9svVvS05d1Z7p3utU7t6AcbelZNr5hi0x8MBn6zuLpMV8+s6HsLelYCoFAf390a1wsAlKzqx2j0tArgNfz7PRP6DQ+gamuBb5Fo0EoDmfbswf1ZOwOkW0GS3u97QGZvTc1eBvD6CdCwAnjttXVtD6iE8dGuAzRma+tmDcDpxkaDMlDwIx7yC0A5iIv28kA96gvDOpDvxUU7LjCOfGoMuJ2Y6HQXKFr6twjUpvHQSQloWtAmUJrEQ0c5wLegPpAbxUOHWXAGFnTgQHYYDz3xwLWiLngnz+BNVdpUpfenNYX/VGVE/dXY338Ws5TKfKoz86usUY+sprxLtJra1312hskCNEuEAs6LSbKoLyqWWpXNo/NEoWRE1Pd2C4DtQ8n49OvBxuoDjkUj6eNVQ2wchElj/l5n9ybm3+30bv6kw20Atg4kdyfnR5sAvJTdR01eOIAjvDkbvnLgjTB6/mnHef35H24jVTa8KltzlSSCTrpDJTGjk0LSSXappOV0Eog6qU6dpKxO+lgn0a2Tktc5PFA65tA5kFE6OtI55JI4jvsF01XE0L1M7eEAAAAASUVORK5CYII=) no-repeat;
王建威's avatar
王建威 committed
211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229
		background-size: 100% 100%;
	}	
	.search_input {
		height: 60rpx;
	}
	.login_btn {
		width: 92rpx;
		height: 60rpx;
		line-height: 60rpx;
		background: #FFCD00;
		border-radius: 16rpx;
		color: #212121;
		font-size: 28rpx;
		text-align: center;
	}
	.tab_bar {
		padding: 0 24rpx;
		justify-content: space-between;
		margin-top: 34rpx;
王建威's avatar
王建威 committed
230 231 232 233 234 235 236 237
		.credit_icon {
			display: inline-block;
			width: 36rpx;
			height: 36rpx;
			background: url(../../static/index/2821581501269_.pic.jpg) no-repeat;
			background-size: 100% 100%;
			vertical-align: bottom;
		}
王建威's avatar
王建威 committed
238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262
	}
	.tab_bar text {
		font-size: 28rpx;
		color: #212121;
		line-height: 40rpx;
	}
	.tab_bar .act {
		font-family:PingFangSC-Medium,PingFang SC;
		font-weight:500;
		font-size: 32rpx;
		position: relative;
	}
	.tab_bar .act:after {
		position: absolute;
		width: 60rpx;
		height: 4rpx;
		background: #FFCD00;
		border-radius: 0 2rpx 2rpx 2rpx;
		content: '';
		left: 50%;
		margin-left: -30rpx;
		top: 48rpx;
	}
	.backimg {
		height: 678rpx;
王建威's avatar
王建威 committed
263 264
		background: url(https://dbc-static.oss-cn-beijing.aliyuncs.com/credit/2611581321921_.pic_hd.png) no-repeat;
		background-size: 100% 100%;
王建威's avatar
王建威 committed
265
		padding-top: 180rpx;
王建威's avatar
王建威 committed
266 267 268
	}
	.main_content {
		width: 93.6%;
王建威's avatar
王建威 committed
269
		margin: 0 auto;
王建威's avatar
王建威 committed
270
		padding-bottom: 98rpx;
王建威's avatar
王建威 committed
271 272 273 274 275
		.banner {
			width: 100%;
			height: 268rpx;
			margin: 20rpx 0;
		}
王建威's avatar
王建威 committed
276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309
	}
	.part_one {
		padding: 36rpx 40rpx 0;
		border-radius: 16rpx;
		background: #fff;
	}
	.part_one .text:nth-of-type(1) {
		font-size: 36rpx;
		font-family:PingFangSC-Medium,PingFang SC;
		font-weight:500;
		line-height: 50rpx;
		vertical-align: middle;
	}
	.part_one .text:nth-of-type(2) {
		color: #7c7c7c;
		font-size:24rpx;
		font-family:PingFangSC-Regular,PingFang SC;
		font-weight:400;
		line-height: 34rpx;
		vertical-align: middle;
	}
	.part_one i {
		display: inline-block;
		width: 2rpx;
		height: 20rpx;
		background: #979797;
		margin: 0 12rpx;
		vertical-align: middle;
	}
	.classbox {
		justify-content: space-between;
		flex-wrap: wrap;
		margin-top: 22rpx;
		box-shadow:0px 4px 16px 0px rgba(0,0,0,0.03);
王建威's avatar
王建威 committed
310 311 312
		.class_item {
			flex:0 0 25%;
			margin-bottom: 32rpx;
王建威's avatar
王建威 committed
313
			text-align: center;
王建威's avatar
王建威 committed
314 315 316 317 318 319
		}
		image {
			display: block;
			width: 100rpx;
			height: 96rpx;
			border-radius: 50%;
王建威's avatar
王建威 committed
320
			margin: 0 auto;
王建威's avatar
王建威 committed
321 322 323 324 325
		}
		.class_name {
			font-size: 22rpx;
			line-height: 32rpx;
		}
王建威's avatar
王建威 committed
326
	}
王建威's avatar
王建威 committed
327 328 329
	.classbox:after {
		content: '';
		flex: auto;
王建威's avatar
王建威 committed
330 331 332 333 334 335 336
	}
	.part_two {
		box-shadow:0px 4px 10px 0px rgba(0,0,0,0.05);
		border-radius:16rpx;
		padding: 26rpx;
		background: #fff;
		margin-top: 20rpx;
王建威's avatar
王建威 committed
337 338 339
		display: flex;
		justify-content: space-between;
		align-items: center;
王建威's avatar
王建威 committed
340 341 342 343 344 345 346 347 348 349 350
	}
	.part_two .portrait {
		width: 80rpx;
		height: 80rpx;
		border-radius: 50%;
		vertical-align: middle;
	}
	.part_two .user_name {
		font-size: 32rpx;
		font-weight: 600;
		vertical-align: middle;
王建威's avatar
王建威 committed
351
		margin: 0 0 0 16rpx;
王建威's avatar
王建威 committed
352 353 354 355 356
		width: 380rpx;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		display: inline-block;
王建威's avatar
王建威 committed
357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374
	}
	.go_credit {
		display: inline-block;
		width: 160rpx;
		height: 56rpx;
		border-radius: 28rpx;
		background: #D6C453;
		color: #fff;
		text-align: center;
		line-height: 56rpx;
		font-size: 26rpx;
		vertical-align: middle;
		padding-left: 10rpx;
	}
	.go_credit_icon {
		display: inline-block;
		width: 32rpx;
		height: 32rpx;
王建威's avatar
王建威 committed
375
		background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAUVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////8IN+deAAAAGnRSTlMAFBcjKC40OkFIUFhgZuDk6Ozw8fL2+Pr8/TSg/FgAAABVSURBVDjLY2AYBZiAkZGAvJAIB34FwlKinHhVsAtJiXHhVcEmKCXOjVcFq4CUBA9eFSz8UpK8eFUw80mJM1GigJAVhBxJyJuEAopgUBOMLILRPYIBAHaLBBuaK/qKAAAAAElFTkSuQmCC) no-repeat;
王建威's avatar
王建威 committed
376 377 378 379 380 381 382 383
		background-size: 100% 100%;
		position: relative;
		top: 6rpx;
	}
	.part_three {
		height: 522rpx;
		border-radius:16rpx;
		padding: 0 22rpx;
王建威's avatar
王建威 committed
384 385
		background: url(https://dbc-static.oss-cn-beijing.aliyuncs.com/credit/2521581321090_.pic_hd.png) no-repeat;
		background-size: 100% 100%;
王建威's avatar
王建威 committed
386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468
		box-shadow:0px 12rpx 20rpx 0px rgba(0,0,0,0.05);
		margin-top: 20rpx;
		padding-top: 0.5px;
		.part_three_top {
			display: flex;
			justify-content: space-between;
			margin-top: 32rpx;
			align-items: center;
			p:nth-of-type(1) {
				color: #2E344C;
				font-size: 36rpx;
				font-family:AlibabaPuHuiTiB;
				line-height: 50rpx;
				font-weight: bold;
			}
			p:nth-of-type(2) {
				font-size: 32rpx;
				line-height: 44rpx;
				color: #2E344C;
			}
			.go_detail {
				background:rgba(0,0,0,0.5);
				width: 148rpx;
				height: 46rpx;
				border-radius: 23rpx;
				color: #fff;
				font-size: 24rpx;
				line-height: 46rpx;
				text-align: center;
				padding-left: 10rpx;
			}
		}
		.part_three_bottom {
			display: flex;
			justify-content: space-between;
			.hot_goods {
				width: 212rpx;
				height: 332rpx;
				background: #fff;
				border-radius: 16rpx;
				margin-top: 44rpx;
				text-align: center;
				image {
					width: 212rpx;
					height: 212rpx;
				}
			}
			p {
				font-size: 26rpx;
				line-height: 36rpx;
				width: 80%;
				overflow: hidden;
				text-overflow: ellipsis;
				white-space: nowrap;
				margin: 8rpx auto 0;
			}
			text {
				border: 1px solid #C7B64E;
				height: 36rpx;
				line-height: 36rpx;
				border-radius: 18rpx;
				padding: 0 12rpx;
				font-size: 22rpx;
				color: #C7B64E;
				position: relative;
				top: -10rpx;
			}
		}
	}
	.part_four {
		margin-top: 40rpx;
		> p {
			font-size: 32rpx;
			height: 44rpx;
			line-height: 44rpx;
			font-family:PingFangSC-Medium,PingFang SC;
			font-weight:500;
			margin-bottom: 24rpx;
		}
		.needs_tabs {
			height: 64rpx;
			overflow: auto;
			margin-bottom: 20rpx;
王建威's avatar
王建威 committed
469
			white-space: nowrap;
王建威's avatar
王建威 committed
470 471 472 473 474 475
			> text {
				height: 64rpx;
				line-height: 64rpx;
				text-align: center;
				background: #ECECEC;
				display: inline-block;
王建威's avatar
王建威 committed
476
				width: 200rpx;
王建威's avatar
王建威 committed
477 478 479 480 481 482 483 484
				margin-right: 20rpx;
				position: relative;
				text {
					display: block;
					transform: skew(30deg);
				}
			}
			.tabs_item_first {
王建威's avatar
王建威 committed
485 486
				background: url(../../static/index/2891581574508_.pic.jpg) no-repeat;
				background-size: 100% 100%;
王建威's avatar
王建威 committed
487 488
				font-size: 28rpx;
				color: #6e6e6e;
王建威's avatar
王建威 committed
489 490 491
				text {
					transform: skew(0deg) !important;
				}
王建威's avatar
王建威 committed
492
			}
王建威's avatar
王建威 committed
493 494 495
			.tabs_item_first.act {
				background: url(../../static/index/2811581501256_.pic.jpg) no-repeat;
				background-size: 100% 100%;
王建威's avatar
王建威 committed
496
				color: #fff;
王建威's avatar
王建威 committed
497 498 499 500
			}
			.tabs_item {
				border-radius: 16rpx;
				transform: skew(-30deg);
王建威's avatar
王建威 committed
501 502
				font-size: 28rpx;
				color: #6e6e6e;
王建威's avatar
王建威 committed
503
			}
王建威's avatar
王建威 committed
504 505 506
			.tabs_item.act {
				background: #D6C453;
			}
王建威's avatar
王建威 committed
507
			.tabs_item_last {
王建威's avatar
王建威 committed
508 509
				background: url(../../static/index/2801581501256_.pic.jpg) no-repeat;
				background-size: 100% 100%;
王建威's avatar
王建威 committed
510 511
				font-size: 28rpx;
				color: #6e6e6e;
王建威's avatar
王建威 committed
512 513 514
				text {
					transform: skew(0deg) !important;
				}
王建威's avatar
王建威 committed
515
			}
王建威's avatar
王建威 committed
516 517 518
			.tabs_item_last.act {
				background: url(../../static/index/2841581501334_.pic.jpg) no-repeat;
				background-size: 100% 100%;
王建威's avatar
王建威 committed
519
				color: #fff;
王建威's avatar
王建威 committed
520 521 522 523
			}
		}
		.needs_tabs::-webkit-scrollbar {
			display: none;
王建威's avatar
王建威 committed
524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587
		}
		.goods_info {
			width: 346rpx;
			height: 600rpx;
			padding: 32rpx;
			box-sizing: border-box;
			image {
				width: 280rpx;
				height: 280rpx;
			}
			.goods_name {
				width: 100%;
				overflow: hidden;
				text-overflow: ellipsis;
				white-space: nowrap;
				font-size: 26rpx;
				color: #212121;
				line-height: 38rpx;
				display: block;
			}
			.goods_tag {
				display: block;
				text {
					display: inline-block;
					vertical-align: middle;
					border: 1px solid #C7B64E;
					color: #C7B64E;
					height: 36rpx;
					line-height: 36rpx;
					padding: 0 12rpx;
					border-radius: 18rpx;
					font-size: 22rpx;
					margin-right: 8rpx;
				}
			}
			.goods_des {
				height: 64rpx;
				font-size: 22rpx;
				line-height: 32rpx;
				color: #7C7C7C;
				display: -webkit-box;
				-webkit-line-clamp: 2;
				-webkit-box-orient: vertical;
				overflow: hidden;
				text-overflow: ellipsis;
				margin-top: 12rpx;
			}
			.price_view {
				display: flex;
				justify-content: space-between;
				align-items: center;
				height: 56rpx;
				margin-top: 10rpx;
				text {
					font-family:PingFangSC-Medium,PingFang SC;
					font-weight:500;
					color: #000;
					font-size: 32rpx;
					line-height: 44rpx;
				}
				i {
					display: inline-block;
					width: 56rpx;
					height: 56rpx;
王建威's avatar
王建威 committed
588
					background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAAAAACN7WTCAAABfElEQVRIx2P4TyZgGNU4qnFUIxEafx87+eYvORqvVFRUbiTLxstTSktW/yHHj7/2FRa9ICtw/kzM2wa2/MTmzZs2gTAEbL3yi0Co7sye/A9IfcpGBVlZU/7i1/g4o/gryObzEJtgdm4uyliDX+PXgpQn2Ly0LaUNv8Z/PYl7sGlcnTiRQMpZETsXm8aJccsJaDwTXfULU9/3ouiDBDS+j4z5jKnxU3T4IwIaf+SFXMXUeCsk+jOh3NEfuBpT4+bAwl+ENK7x68bUOMOvl2B+vOmd8h1d7F+F9xKCGj/5e75DF/sc6X6MoMbfOS7oiv6/dnF5SbjomODYhV4O7HIM+ExY4z5b+1lr1gPBurVr16xZs3rVipnetpV/CWv8XmiFAbzuElPKfd4wpb8PCPr7+yeAwMRJK14Mt5L822ZQmJ6FhOOHTSDOub/EaFwVCwYfwJxFYHbcR2I03stJTk5OgqaC6xkgTjdRNv7//R0I/sEKaWTOaI08qnHoaQQAAyi97TBEkioAAAAASUVORK5CYII=) no-repeat;
王建威's avatar
王建威 committed
589 590 591 592
					background-size: 100% 100%;
				}
			}
		}
王建威's avatar
王建威 committed
593 594 595 596 597
		.cate_goods_view {
			display: flex;
			justify-content: space-between;
			width: 100%;
		}
郑秀明's avatar
郑秀明 committed
598 599
	}
</style>