Browse Source

修改图片

master
liaoxinyu 2 years ago
parent
commit
13ce91b111
  1. 2
      pages.json
  2. 88
      pages/category/consulting/detail.vue
  3. 4
      pages/category/consulting/list.vue
  4. 5
      uni_modules/q-previewImage/components/q-previewImage/q-previewImage.vue

2
pages.json

@ -54,6 +54,8 @@
"path": "pages/category/consulting/detail",
"style": {
"navigationBarTitleText": "阅读全文",
"navigationBarBackgroundColor": "#1c223b",
"navigationBarTextStyle": "white",
"enablePullDownRefresh" : false
}
},

88
pages/category/consulting/detail.vue

@ -1,6 +1,20 @@
<template>
<view class="container">
<view class="secondary">
<!-- 搜索 -->
<view class="search">
<view class="search-wrapper">
<view class="index-search">
<view class="index-cont-search t-c">
<text class="search-icon iconfont icon-search"></text>
<text class="search-text">
<input type="text" placeholder="请输入搜索关键字" v-model="searchValue">
</text>
<button class="search-text-bu" @click="onSearch">搜索</button>
</view>
</view>
</view>
</view>
<!-- 二级分类 20 -->
<view class="cate-content">
<!-- 左侧 一级分类 -->
@ -82,8 +96,8 @@ export default {
//
informationList: [],
//
list: [],
// list: readmore.data,
// list: [],
list: readmore.data,
//
setting: {},
//
@ -129,6 +143,15 @@ export default {
this.setListHeight()
},
methods: {
//
async onSearch() {
if (this.searchValue == '') {
this.$error('请输入搜索关键词');
} else {
await this.getGoodsList()
await this.getHomeListImage()
}
},
previewImage(){
//
let richText = this.list.context
@ -306,4 +329,65 @@ page {
overflow: hidden;
}
//
.search {
position: fixed;
float: top;
top: var(--window-top);
left: var(--window-left);
right: var(--window-right);
z-index: 19;
.search-wrapper {
background: #1c223b;
padding: 0rpx 20rpx 20rpx 20rpx;
}
.index-search {
border-bottom: 0;
background: #fff;
border-radius: 50rpx;
overflow: hidden;
font-size: 28rpx;
color: #6d6d6d;
box-sizing: border-box;
height: 74rpx;
line-height: 74rpx;
.index-cont-search {
width: 100%;
font-size: 28rpx;
background: #f7f7f7;
display: flex;
justify-content: center;
align-items: center;
.search-icon {
font-size: 34rpx;
margin-left: 50rpx;
}
.search-text {
text-align: left;
float: left;
margin-left: 20rpx;
width: 100%;
input {
font-size: 20rpx;
}
}
.search-text-bu {
margin-right: 20rpx;
color: #ffffff;
background-color: #1c223b;
font-size: 20rpx;
width: 120rpx;
height: 50rpx;
text-align: center;
border-radius: 50rpx;
}
}
}
}
</style>

4
pages/category/consulting/list.vue

@ -102,8 +102,8 @@
informationList: [],
// informationList: information.data,
//
list: [],
// list: information.data.pageDataList,
// list: [],
list: information.data.pageDataList,
//
setting: {},
//

5
uni_modules/q-previewImage/components/q-previewImage/q-previewImage.vue

@ -96,8 +96,9 @@ export default {
justify-content: center;
height: 100vh;
.image {
width: 100%;
height: auto;
width: 500rpx;
// width: 100%;
// height: auto;
}
}
}

Loading…
Cancel
Save