Commit 09b15219 by 胡悦

提交膜类

1 parent a2efaf69
.sprite-icon { background-image: url(@/assets/images/sprite.png);background-size: 1434rpx 668rpx;}
.icon-arrow-right { width: 32rpx; height: 32rpx; background-position: -1392rpx -464rpx;}
.icon-back { width: 128rpx; height: 50rpx; background-position: -1146rpx -464rpx;}
.icon-change-account { width: 32rpx; height: 32rpx; background-position: -1146rpx -524rpx;}
.icon-face-error-active { width: 96rpx; height: 96rpx; background-position: -722rpx -464rpx;}
.icon-face-error { width: 96rpx; height: 96rpx; background-position: -828rpx -464rpx;}
.icon-face-success-active { width: 96rpx; height: 96rpx; background-position: -934rpx -464rpx;}
.icon-face-success { width: 96rpx; height: 96rpx; background-position: -1040rpx -464rpx;}
.icon-feedback { width: 32rpx; height: 32rpx; background-position: -1188rpx -524rpx;}
.icon-home-active { width: 80rpx; height: 80rpx; background-position: 0rpx -588rpx;}
.icon-home { width: 80rpx; height: 80rpx; background-position: -90rpx -588rpx;}
.icon-icon-addr { width: 32rpx; height: 32rpx; background-position: -1230rpx -524rpx;}
.icon-icon-avatar { width: 112rpx; height: 112rpx; background-position: -1290rpx -294rpx;}
.icon-icon-female { width: 32rpx; height: 32rpx; background-position: -1272rpx -524rpx;}
.icon-icon-handshake { width: 72rpx; height: 72rpx; background-position: -360rpx -588rpx;}
.icon-icon-male { width: 32rpx; height: 32rpx; background-position: -1314rpx -524rpx;}
.icon-icon-shop { width: 32rpx; height: 32rpx; background-position: -1356rpx -524rpx;}
.icon-icon-upload { width: 128rpx; height: 128rpx; background-position: -892rpx -294rpx;}
.icon-icon-weixin { width: 32rpx; height: 32rpx; background-position: -1398rpx -524rpx;}
.icon-kf-0 { width: 32rpx; height: 32rpx; background-position: -652rpx -588rpx;}
.icon-kf-1 { width: 32rpx; height: 32rpx; background-position: -694rpx -588rpx;}
.icon-kf-2 { width: 32rpx; height: 32rpx; background-position: -736rpx -588rpx;}
.icon-kf-3 { width: 32rpx; height: 32rpx; background-position: -778rpx -588rpx;}
.icon-logo { width: 160rpx; height: 160rpx; background-position: -722rpx -294rpx;}
.icon-pen-active { width: 120rpx; height: 120rpx; background-position: -1030rpx -294rpx;}
.icon-pen { width: 120rpx; height: 120rpx; background-position: -1160rpx -294rpx;}
.icon-qw { width: 48rpx; height: 48rpx; background-position: -1284rpx -464rpx;}
.icon-record-active { width: 80rpx; height: 80rpx; background-position: -180rpx -588rpx;}
.sprite-icon { background-image: url(@/assets/images/sprite.png);background-size: 1434rpx 798rpx;}
.icon-arrow-right { width: 32rpx; height: 32rpx; background-position: -1392rpx -480rpx;}
.icon-back { width: 128rpx; height: 50rpx; background-position: -1146rpx -480rpx;}
.icon-change-account { width: 32rpx; height: 32rpx; background-position: -1146rpx -540rpx;}
.icon-face-error-active { width: 96rpx; height: 96rpx; background-position: -722rpx -480rpx;}
.icon-face-error { width: 96rpx; height: 96rpx; background-position: -828rpx -480rpx;}
.icon-face-success-active { width: 96rpx; height: 96rpx; background-position: -934rpx -480rpx;}
.icon-face-success { width: 96rpx; height: 96rpx; background-position: -1040rpx -480rpx;}
.icon-feedback { width: 32rpx; height: 32rpx; background-position: -1188rpx -540rpx;}
.icon-home-active { width: 80rpx; height: 80rpx; background-position: -1010rpx -588rpx;}
.icon-home { width: 80rpx; height: 80rpx; background-position: -1100rpx -588rpx;}
.icon-icon-addr { width: 32rpx; height: 32rpx; background-position: -1230rpx -540rpx;}
.icon-icon-avatar { width: 112rpx; height: 112rpx; background-position: -888rpx -588rpx;}
.icon-icon-female { width: 32rpx; height: 32rpx; background-position: -1272rpx -540rpx;}
.icon-icon-handshake { width: 72rpx; height: 72rpx; background-position: 0rpx -726rpx;}
.icon-icon-male { width: 32rpx; height: 32rpx; background-position: -1314rpx -540rpx;}
.icon-icon-shop { width: 32rpx; height: 32rpx; background-position: -1356rpx -540rpx;}
.icon-icon-upload { width: 128rpx; height: 128rpx; background-position: -490rpx -588rpx;}
.icon-icon-weixin { width: 32rpx; height: 32rpx; background-position: -1398rpx -540rpx;}
.icon-kf-0 { width: 32rpx; height: 32rpx; background-position: -82rpx -726rpx;}
.icon-kf-1 { width: 32rpx; height: 32rpx; background-position: -124rpx -726rpx;}
.icon-kf-2 { width: 32rpx; height: 32rpx; background-position: -166rpx -726rpx;}
.icon-kf-3 { width: 32rpx; height: 32rpx; background-position: -208rpx -726rpx;}
.icon-logo { width: 160rpx; height: 160rpx; background-position: -1196rpx -294rpx;}
.icon-pen-active { width: 120rpx; height: 120rpx; background-position: -628rpx -588rpx;}
.icon-pen { width: 120rpx; height: 120rpx; background-position: -758rpx -588rpx;}
.icon-qw { width: 48rpx; height: 48rpx; background-position: -1284rpx -480rpx;}
.icon-record-active { width: 80rpx; height: 80rpx; background-position: -1190rpx -588rpx;}
.icon-record-day { width: 712rpx; height: 284rpx; background-position: 0rpx 0rpx;}
.icon-record-month { width: 712rpx; height: 284rpx; background-position: 0rpx -294rpx;}
.icon-record-week { width: 712rpx; height: 284rpx; background-position: -722rpx 0rpx;}
.icon-record { width: 80rpx; height: 80rpx; background-position: -270rpx -588rpx;}
.icon-setting { width: 32rpx; height: 32rpx; background-position: -820rpx -588rpx;}
.icon-tool-file { width: 60rpx; height: 60rpx; background-position: -442rpx -588rpx;}
.icon-tool-finish { width: 60rpx; height: 60rpx; background-position: -512rpx -588rpx;}
.icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -582rpx -588rpx;}
.icon-search { width: 40rpx; height: 40rpx; background-position: -1342rpx -464rpx;}
\ No newline at end of file
.icon-record { width: 80rpx; height: 80rpx; background-position: -1280rpx -588rpx;}
.icon-setting { width: 32rpx; height: 32rpx; background-position: -250rpx -726rpx;}
.icon-tool-file { width: 60rpx; height: 60rpx; background-position: -1366rpx -294rpx;}
.icon-tool-finish { width: 60rpx; height: 60rpx; background-position: -1366rpx -364rpx;}
.icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -1370rpx -588rpx;}
.icon-search { width: 40rpx; height: 40rpx; background-position: -1342rpx -480rpx;}
.icon-second-nav { width: 480rpx; height: 128rpx; background-position: 0rpx -588rpx;}
.icon-first-nav { width: 464rpx; height: 176rpx; background-position: -722rpx -294rpx;}
\ No newline at end of file
No preview for this file type

1.03 MB | W: | H:

1.05 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
{
"dependencies": {
"dayjs": "^1.11.11",
"webpack-spritesmith": "^1.1.0"
}
}
......@@ -58,6 +58,13 @@
}
},
{
"path": "pages/boutique/membranes",
"style": {
"navigationStyle": "custom",
"disableSwipeBack": true
}
},
{
"path": "uni_modules/uni-upgrade-center-app/pages/upgrade-popup",
"style": {
"disableScroll": true,
......
<!--
* @Description: 膜类专区
* @Author: huyue
* @Date: 2024-05-30 14:40:39
* @LastEditors: huyue
* @LastEditTime: 2024-05-31 14:56:25
-->
<template>
<view>
<view class="bg"></view>
<view class="nav-bar">
<view class="back" @click="back">
<uni-icons type="left" :size="32"></uni-icons>
</view>
<view class="title">膜类专区</view>
</view>
<view class="wrapper">
<view class="wrapper-content">
<view class="first-tab">
<view class="tab-item" v-for="(i, index) in firstNav" :key="index" @click="changeIndex(index)">
<view class="sprite-icon" :class="[firstIndex == index ? `icon-${i.class} active` : '']" :style="{left: i.left}"></view>
{{i.name}}</view>
</view>
<view class="content">
<view class="second-tab">
<view v-for="(item, ind) in secondNav" :key="ind" class="tab-item" :class="[secondIndex == ind ? 'active':'']">{{item}}</view>
</view>
</view>
</view>
</view>
</view>
</template>
<script type="text/ecmascript-6">
export default {
name: '',
data () {
return {
firstIndex: 0,
firstNav: [
{
name: '问界M5',
left: '0rpx',
class: 'first-nav'
},
{
name: '问界M7',
left: '352rpx',
class: 'second-nav'
},
{
name: '问界M9',
left: '756rpx',
class: 'second-nav'
}
],
secondIndex: 0,
secondNav: ['车窗膜', '改色膜', '车衣', '天窗冰甲']
}
},
mounted () {
},
methods: {
changeIndex(index) {
this.firstIndex = index
}
}
}
</script>
<style scoped lang="scss">
.nav-bar {
position: fixed;
width: 100%;
height: 96rpx;
left: 0;
top: 48rpx;
z-index: 9;
display: flex;
align-items: center;
.back {
height: 100%;
aspect-ratio: 1/1;
display: flex;
align-items: center;
justify-content: center;
position: absolute;
}
.title {
width: 100%;
text-align: center;
}
}
.bg {
position: fixed;
width: 100%;
height: 100%;
left: 0;
top: 0;
background-image: url("../../assets/images/boutique/membranes-bg.webp");
background-size: 100% 100%;
z-index: -1;
}
.wrapper {
padding: 176rpx 64rpx 64rpx;
&-content {
background-color: #fff;
box-shadow: inset 0 0 16rpx 0 #ffffff;
border-radius: 48rpx;
height: 500rpx;
padding: 4rpx;
}
// filter: blur(8rpx);
.first-tab {
position: relative;
display: flex;
width: 100%;
background-color: #eef4fe;
height: 176rpx;
line-height: 128rpx;
border-radius: 48rpx 48rpx 0 0;
z-index: 0;
.tab-item {
width: 400rpx;
text-align: center;
font-weight: 500;
font-size: 40rpx;
color: #1f2133;
.active {
position: absolute;
top: 0;
z-index: -1;
}
}
}
.content {
position: relative;
background-color: #fff;
width: 100%;
height: 200rpx;
padding: 64rpx;
margin-top: -48rpx;
border-radius: 48rpx;
.second-tab {
display: flex;
background: #F2F2F2;
border-radius: 16rpx;
.tab-item {
display: inline-block;
padding: 18rpx 48rpx;
&.active {
background-color: #fff;
margin: 4rpx;
border-radius: 16rpx;
}
}
}
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!