index.vue 16.7 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
				<text class="login_btn" @click="jumpPhpPage('app=member&act=login')" v-if="!isLogin">登录</text>
王建威's avatar
王建威 committed
14
				<i v-else class="eosfont person_icon" @click="jumpPhpPage('app=member')">&#xe636;</i>
王建威's avatar
王建威 committed
15 16
			</view>
			<view class="flex tab_bar">
王建威's avatar
王建威 committed
17 18 19 20 21 22
				<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>
王建威's avatar
王建威 committed
23
				<text :class="{act: tabIndex === 4}" @cliick="$jump('/pages/financial/financialstage')">采购分期</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(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 116 117 118
		onLoad() {
			uni.showLoading({
			    title: '加载中'
			});
119 120 121 122 123 124 125
			this.getData();
			// #ifdef H5
			//默认请求微信分享
			if (this.$wechat && this.$wechat.isWechat()) {
				this.$wechat.share({titie: this.$getNavigationBarTitle()});
			}
			// #endif
王建威's avatar
王建威 committed
126 127
		},
		components: {
王建威's avatar
王建威 committed
128
			uniIcons,
王建威's avatar
王建威 committed
129 130
			BottomBar,
			Fail
郑秀明's avatar
郑秀明 committed
131 132
		},
		methods: {
王建威's avatar
王建威 committed
133 134 135 136 137 138 139 140 141 142 143
			// 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
144
				    url: `/pages/category/category?cate_id_1=${cate_id}&current=${current}&page_size=${pageSize}`
王建威's avatar
王建威 committed
145 146
				});
			},
王建威's avatar
王建威 committed
147 148
			jumpDetailPage() {
				uni.navigateTo({
王建威's avatar
王建威 committed
149
				    url: `/pages/detail/detail`
王建威's avatar
王建威 committed
150 151
				});
			},
王建威's avatar
王建威 committed
152 153
			getData() {
				uni.request({
郑秀明's avatar
郑秀明 committed
154
					url: '/uni/api/credit_goods/get_credit_index_goods',
王建威's avatar
王建威 committed
155 156 157 158 159
					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
160 161
						this.isLogin  = res.data.login_flg;
						this.credit_flg = res.data.credit_flg;
王建威's avatar
王建威 committed
162
						this.is_city = res.data.city_flg;
王建威's avatar
王建威 committed
163
						if(res.data.data.customer_name) {
王建威's avatar
王建威 committed
164
							this.customer_name = res.data.data.customer_name;
王建威's avatar
王建威 committed
165 166 167 168
						}
						if(res.data.data.portrait) {
							this.portrait = res.data.data.portrait;
						}
王建威's avatar
王建威 committed
169
						uni.hideLoading();
王建威's avatar
王建威 committed
170 171 172 173 174 175 176 177 178 179
					}
				})
			},
			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
180 181
			},
			addCart(spec_id, quantity) {
王建威's avatar
王建威 committed
182
				this.$addCart(spec_id, quantity, this.isLogin);
王建威's avatar
王建威 committed
183
			}
郑秀明's avatar
郑秀明 committed
184
		}
王建威's avatar
王建威 committed
185
	};
郑秀明's avatar
郑秀明 committed
186 187
</script>

王建威's avatar
王建威 committed
188
<style lang="less" scoped>
王建威's avatar
王建威 committed
189 190 191 192
	.person_icon {
		font-size: 48rpx;
		line-height: 60rpx;
	}
王建威's avatar
王建威 committed
193 194
	.flex {
		display: flex;
王建威's avatar
王建威 committed
195 196 197 198 199 200 201
		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
202
	}
王建威's avatar
王建威 committed
203 204 205 206 207 208
	.content {
		height: 180rpx;
		background: #fff;
		justify-content: space-between;
		padding: 24rpx;
		box-sizing: border-box;
王建威's avatar
王建威 committed
209 210 211 212
		position: fixed;
		width: 100%;
		background-color: #fff;
		z-index: 11;
王建威's avatar
王建威 committed
213 214 215 216 217 218 219 220 221 222 223
	}
	.search_view {
		width: 380rpx;
		height: 60rpx;
		background: #F5F5F5;
		border-radius: 30rpx;
	}
	.search_icon {
		display: inline-block;
		width: 56rpx;
		height: 56rpx;
王建威's avatar
王建威 committed
224
		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
225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243
		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
244 245 246 247 248 249 250 251
		.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
252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276
	}
	.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
277 278
		background: url(https://dbc-static.oss-cn-beijing.aliyuncs.com/credit/2611581321921_.pic_hd.png) no-repeat;
		background-size: 100% 100%;
王建威's avatar
王建威 committed
279
		padding-top: 180rpx;
王建威's avatar
王建威 committed
280 281 282
	}
	.main_content {
		width: 93.6%;
王建威's avatar
王建威 committed
283
		margin: 0 auto;
王建威's avatar
王建威 committed
284
		padding-bottom: 98rpx;
王建威's avatar
王建威 committed
285 286 287 288 289
		.banner {
			width: 100%;
			height: 268rpx;
			margin: 20rpx 0;
		}
王建威's avatar
王建威 committed
290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323
	}
	.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
324 325 326
		.class_item {
			flex:0 0 25%;
			margin-bottom: 32rpx;
王建威's avatar
王建威 committed
327
			text-align: center;
王建威's avatar
王建威 committed
328 329 330 331 332 333
		}
		image {
			display: block;
			width: 100rpx;
			height: 96rpx;
			border-radius: 50%;
王建威's avatar
王建威 committed
334
			margin: 0 auto;
王建威's avatar
王建威 committed
335 336 337 338 339
		}
		.class_name {
			font-size: 22rpx;
			line-height: 32rpx;
		}
王建威's avatar
王建威 committed
340
	}
王建威's avatar
王建威 committed
341 342 343
	.classbox:after {
		content: '';
		flex: auto;
王建威's avatar
王建威 committed
344 345 346 347 348 349 350
	}
	.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
351 352 353
		display: flex;
		justify-content: space-between;
		align-items: center;
王建威's avatar
王建威 committed
354 355 356 357 358 359 360 361 362 363 364
	}
	.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
365
		margin: 0 0 0 16rpx;
王建威's avatar
王建威 committed
366 367 368 369 370
		width: 380rpx;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		display: inline-block;
王建威's avatar
王建威 committed
371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388
	}
	.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
389
		background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAUVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////8IN+deAAAAGnRSTlMAFBcjKC40OkFIUFhgZuDk6Ozw8fL2+Pr8/TSg/FgAAABVSURBVDjLY2AYBZiAkZGAvJAIB34FwlKinHhVsAtJiXHhVcEmKCXOjVcFq4CUBA9eFSz8UpK8eFUw80mJM1GigJAVhBxJyJuEAopgUBOMLILRPYIBAHaLBBuaK/qKAAAAAElFTkSuQmCC) no-repeat;
王建威's avatar
王建威 committed
390 391 392 393 394 395 396 397
		background-size: 100% 100%;
		position: relative;
		top: 6rpx;
	}
	.part_three {
		height: 522rpx;
		border-radius:16rpx;
		padding: 0 22rpx;
王建威's avatar
王建威 committed
398 399
		background: url(https://dbc-static.oss-cn-beijing.aliyuncs.com/credit/2521581321090_.pic_hd.png) no-repeat;
		background-size: 100% 100%;
王建威's avatar
王建威 committed
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 469 470 471 472 473 474 475 476 477 478 479 480 481 482
		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
483
			white-space: nowrap;
王建威's avatar
王建威 committed
484 485 486 487 488 489
			> text {
				height: 64rpx;
				line-height: 64rpx;
				text-align: center;
				background: #ECECEC;
				display: inline-block;
王建威's avatar
王建威 committed
490
				width: 200rpx;
王建威's avatar
王建威 committed
491 492 493 494 495 496 497 498
				margin-right: 20rpx;
				position: relative;
				text {
					display: block;
					transform: skew(30deg);
				}
			}
			.tabs_item_first {
王建威's avatar
王建威 committed
499 500
				background: url(../../static/index/2891581574508_.pic.jpg) no-repeat;
				background-size: 100% 100%;
王建威's avatar
王建威 committed
501 502
				font-size: 28rpx;
				color: #6e6e6e;
王建威's avatar
王建威 committed
503 504 505
				text {
					transform: skew(0deg) !important;
				}
王建威's avatar
王建威 committed
506
			}
王建威's avatar
王建威 committed
507 508 509
			.tabs_item_first.act {
				background: url(../../static/index/2811581501256_.pic.jpg) no-repeat;
				background-size: 100% 100%;
王建威's avatar
王建威 committed
510
				color: #fff;
王建威's avatar
王建威 committed
511 512 513 514
			}
			.tabs_item {
				border-radius: 16rpx;
				transform: skew(-30deg);
王建威's avatar
王建威 committed
515 516
				font-size: 28rpx;
				color: #6e6e6e;
王建威's avatar
王建威 committed
517
			}
王建威's avatar
王建威 committed
518 519 520
			.tabs_item.act {
				background: #D6C453;
			}
王建威's avatar
王建威 committed
521
			.tabs_item_last {
王建威's avatar
王建威 committed
522 523
				background: url(../../static/index/2801581501256_.pic.jpg) no-repeat;
				background-size: 100% 100%;
王建威's avatar
王建威 committed
524 525
				font-size: 28rpx;
				color: #6e6e6e;
王建威's avatar
王建威 committed
526 527 528
				text {
					transform: skew(0deg) !important;
				}
王建威's avatar
王建威 committed
529
			}
王建威's avatar
王建威 committed
530 531 532
			.tabs_item_last.act {
				background: url(../../static/index/2841581501334_.pic.jpg) no-repeat;
				background-size: 100% 100%;
王建威's avatar
王建威 committed
533
				color: #fff;
王建威's avatar
王建威 committed
534 535 536 537
			}
		}
		.needs_tabs::-webkit-scrollbar {
			display: none;
王建威's avatar
王建威 committed
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 588 589 590 591 592 593 594 595 596 597 598 599 600 601
		}
		.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
602
					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
603 604 605 606
					background-size: 100% 100%;
				}
			}
		}
王建威's avatar
王建威 committed
607 608 609 610 611
		.cate_goods_view {
			display: flex;
			justify-content: space-between;
			width: 100%;
		}
郑秀明's avatar
郑秀明 committed
612 613
	}
</style>