123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271 |
- <template>
- <view class="box">
- <!-- 自定义导航 -->
- <view class="zdyNavBox">
- <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
- <view class="zdyNav">
- <view class="zdyNavLeft">
- <image src="../../static/img/nav_icon_back.png" mode="aspectFit" class="backImg" @click="goback">
- </image>
- </view>
- <view class="zdyNavTitle">车型件</view>
- <view class="zdyNavRight" @click="goOemSearch">OEM搜索</view>
- <!-- <view style="width: 10rpx;"></view> -->
- </view>
- </view>
- <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
- <view style="height: 44px;"></view>
- <view class="top">{{title}}</view>
- <view class="mainBox">
- <view class="maintitle">总组
- <view class="backBox" @click="blueBack">
- <image src="../../static/img/icon_arrow_blue_l@2x.png" mode="" class="blueBackImg"></image>
- <view class="backTxt">返回总组</view>
- </view>
- </view>
- <!-- 搜索 -->
- <view class="searchBoxBg">
- <searchBox placeholder="快速查找子组" @search='search($event)'></searchBox>
- </view>
- <view @click="gomodelThree()" class="mainLine" v-for="(item,index) in cangList">
- <view class="lineLeft">
- <image class="lineIMg" src="http://dmsimg.66km.com/thFiles/7C057545-E11E-40F5-AD3C-637EF653B417.jpg"
- mode="aspectFit"></image>
- </view>
- <view class="lineRIght">
- <view class="lineName">电气设备,排气和加热</view>
- <view class="lineBm">UH908980</view>
- <view class="linejs">这是备注,没有就不显示该行,长了有就不显示该有就不显示该长了有就不显示该</view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- import searchBox from '@/components/searchBox/searchBox.vue'
- export default {
- components: {
- searchBox
- },
- data() {
- return {
- title: '大众 > 迈腾 > 2022 > 市场一',
- iStatusBarHeight: '',
- cangList: [1,2,3,4,5,6,7,8],
- sonTitle: '发动机',
- searchValue: '',
- }
- },
- onLoad() {
- this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
- },
- methods: {
- search(val) {
- // console.log(val);
- this.searchValue = val
-
- },
- gomodelThree() {
- uni.navigateTo({
- url: 'modelThree'
- })
- },
- goOemSearch() {
- uni.navigateTo({
- url: 'OemSearch'
- })
- },
- blueBack(){
- uni.navigateBack({})
- },
- goback() {
- console.log('返回');
- uni.navigateBack({})
- },
- }
- }
- </script>
- <style>
- .box {
- min-height: 100vh;
- background: #ffffff;
- padding-bottom: constant(safe-area-inset-bottom);
- padding-bottom: env(safe-area-inset-bottom);
- }
- .zdyNavBox {
- width: 100vw;
- background: #FFFFFF;
- position: fixed;
- top: 0;
- left: 0;
- z-index: 9999999;
- }
- .zdyNav {
- height: 44px;
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
- .backImg {
- width: 44rpx;
- height: 44rpx;
- margin-left: 10rpx;
- margin-right: 20rpx;
- }
- .homeImg {
- width: 44rpx;
- height: 44rpx;
- }
- .zdyNavLeft {
- display: flex;
- align-items: center;
- }
- .zdyNavTitle {
- height: 44px;
- background: #FFFFFF;
- text-align: center;
- font-size: 34rpx;
- line-height: 44px;
- }
- .zdyNavRight {
- height: 44px;
- background: #FFFFFF;
- text-align: center;
- font-size: 28rpx;
- line-height: 44px;
- color: #3F90F7;
- margin-right: 24rpx;
- }
- .top {
- color: #FFFFFF;
- font-size: 28rpx;
- padding: 24rpx;
- background: linear-gradient(110deg, #48B9F9 0%, #3F90F7 100%);
- }
- .mainBox {
- background: #FFFFFF;
- }
- .maintitle {
- font-size: 28rpx;
- font-family: PingFangSC-Medium, PingFang SC;
- font-weight: 500;
- color: #333333;
- text-align: center;
- line-height: 88rpx;
- border-bottom: 1px solid #EEEEEE;
- position: relative;
- }
- .blueBackImg {
- width: 25rpx;
- height: 24rpx;
- margin-top: 4rpx;
- }
- .backBox {
- display: flex;
- position: absolute;
- left: 23rpx;
- top: 28rpx;
- }
- .backTxt {
- color: #3F90F7;
-
- font-size: 24rpx;
- line-height: 33rpx;
- }
- .mainLineJt {
- width: 25rpx;
- height: 24rpx;
- margin-top: 8rpx;
- }
- .mainLine {
- display: flex;
- border-bottom: 1px solid #EEEEEE;
- padding: 29rpx 24rpx;
- }
- .lineName {
- font-size: 26rpx;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 500;
- color: #333333;
- line-height: 40rpx;
- width: 570rpx;
- word-wrap: break-word;
- /*强制换行*/
- overflow: hidden;
- /*超出隐藏*/
- text-overflow: ellipsis;
- /*隐藏后添加省略号*/
- white-space: nowrap;
- /*强制不换行*/
- }
- .lineIMg {
- width: 110rpx;
- height: 110rpx;
- }
- .lineRIght {
- padding-left: 20rpx;
- }
- .lineBm {
- font-size: 24rpx;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #999999;
- padding: 10rpx 0;
- }
- .linejs {
- font-size: 24rpx;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #999999;
- width: 570rpx;
- word-wrap: break-word;
- /*强制换行*/
- overflow: hidden;
- /*超出隐藏*/
- text-overflow: ellipsis;
- /*隐藏后添加省略号*/
- white-space: nowrap;
- /*强制不换行*/
- }
- </style>
|