index.vue 17.1 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
			this.getData();
			// #ifdef H5
			//默认请求微信分享
			if (this.$wechat && this.$wechat.isWechat()) {
				this.$wechat.share({titie: this.$getNavigationBarTitle()});
			}
125
			this.postData();
126
			// #endif
王建威's avatar
王建威 committed
127 128
		},
		components: {
王建威's avatar
王建威 committed
129
			uniIcons,
王建威's avatar
王建威 committed
130 131
			BottomBar,
			Fail
郑秀明's avatar
郑秀明 committed
132 133
		},
		methods: {
王建威's avatar
王建威 committed
134 135 136 137 138 139
			// changeTab(index) {
			// 	this.tabIndex = index;
			// },
			search() {
				window.location.href = `${php}app=search&act=index&keyword=${this.keyword}`
			},
140 141 142 143 144 145 146 147 148 149 150 151 152 153
			// 向小程序发送数据
			postData(){
				jWeixin.miniProgram.getEnv(function (res) {
					//获取当前环境
					if(res.miniprogram){ 
						// this.$wechat.postData('谛宝多多商城-首页');
						const postData = {
							link: window.location.href,
							title: '谛宝多多商城'
						}
						jWeixin.miniProgram.postMessage({ data: JSON.stringify(postData) });
					}
				});
			},
王建威's avatar
王建威 committed
154 155 156 157 158
			changeCurrent(index) {
				this.current = index;
			},
			jumpSecondPage(cate_id, current, pageSize) {
				uni.navigateTo({
王建威's avatar
王建威 committed
159
				    url: `/pages/category/category?cate_id_1=${cate_id}&current=${current}&page_size=${pageSize}`
王建威's avatar
王建威 committed
160 161
				});
			},
王建威's avatar
王建威 committed
162 163
			jumpDetailPage() {
				uni.navigateTo({
王建威's avatar
王建威 committed
164
				    url: `/pages/detail/detail`
王建威's avatar
王建威 committed
165 166
				});
			},
王建威's avatar
王建威 committed
167 168
			getData() {
				uni.request({
郑秀明's avatar
郑秀明 committed
169
					url: '/uni/api/credit_goods/get_credit_index_goods',
王建威's avatar
王建威 committed
170 171 172 173 174
					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
175 176
						this.isLogin  = res.data.login_flg;
						this.credit_flg = res.data.credit_flg;
王建威's avatar
王建威 committed
177
						this.is_city = res.data.city_flg;
王建威's avatar
王建威 committed
178
						if(res.data.data.customer_name) {
王建威's avatar
王建威 committed
179
							this.customer_name = res.data.data.customer_name;
王建威's avatar
王建威 committed
180 181 182 183
						}
						if(res.data.data.portrait) {
							this.portrait = res.data.data.portrait;
						}
王建威's avatar
王建威 committed
184
						uni.hideLoading();
王建威's avatar
王建威 committed
185 186 187 188 189 190 191 192 193 194
					}
				})
			},
			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
195 196
			},
			addCart(spec_id, quantity) {
王建威's avatar
王建威 committed
197
				this.$addCart(spec_id, quantity, this.isLogin);
王建威's avatar
王建威 committed
198
			}
郑秀明's avatar
郑秀明 committed
199
		}
王建威's avatar
王建威 committed
200
	};
郑秀明's avatar
郑秀明 committed
201 202
</script>

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