Browse Source

四个分类优化

master
wanghongjun 2 years ago
parent
commit
bffe74e9a3
  1. 16
      pages.json
  2. 2
      pages/recommend/index.vue
  3. 129
      pages/targetdata/culturalnumbers.vue
  4. 129
      pages/targetdata/culturalresources.vue
  5. 129
      pages/targetdata/publicdata.vue
  6. 129
      pages/targetdata/supermarket.vue

16
pages.json

@ -325,6 +325,8 @@
"style" : "style" :
{ {
"navigationBarTitleText" : "公共数据专区", "navigationBarTitleText" : "公共数据专区",
"navigationBarTextStyle": "white",
"navigationBarBackgroundColor": "#1c223b",
"enablePullDownRefresh" : false "enablePullDownRefresh" : false
} }
}, },
@ -333,14 +335,8 @@
"style" : "style" :
{ {
"navigationBarTitleText" : "数据超市", "navigationBarTitleText" : "数据超市",
"enablePullDownRefresh" : false "navigationBarTextStyle": "white",
} "navigationBarBackgroundColor": "#1c223b",
},
{
"path" : "pages/targetdata/supermarket",
"style" :
{
"navigationBarTitleText" : "数据超市",
"enablePullDownRefresh" : false "enablePullDownRefresh" : false
} }
}, },
@ -349,6 +345,8 @@
"style" : "style" :
{ {
"navigationBarTitleText" : "文化资源数据", "navigationBarTitleText" : "文化资源数据",
"navigationBarTextStyle": "white",
"navigationBarBackgroundColor": "#1c223b",
"enablePullDownRefresh" : false "enablePullDownRefresh" : false
} }
}, },
@ -357,6 +355,8 @@
"style" : "style" :
{ {
"navigationBarTitleText" : "文化数字内容", "navigationBarTitleText" : "文化数字内容",
"navigationBarTextStyle": "white",
"navigationBarBackgroundColor": "#1c223b",
"enablePullDownRefresh" : false "enablePullDownRefresh" : false
} }
}, },

2
pages/recommend/index.vue

@ -75,7 +75,6 @@ import MescrollCompMixin from '@/components/mescroll-uni/mixins/mescroll-comp'
import {PageCategoryStyleEnum} from '@/common/enum/store/page/category' import {PageCategoryStyleEnum} from '@/common/enum/store/page/category'
import * as GoodsApi from '@/api/goods' import * as GoodsApi from '@/api/goods'
import Empty from '@/components/empty' import Empty from '@/components/empty'
import Secondary from './components/secondary'
import {rpx2px, base64ToUint8Array} from '@/utils/util' import {rpx2px, base64ToUint8Array} from '@/utils/util'
@ -92,7 +91,6 @@ let lastRefreshTime;
export default { export default {
components: { components: {
Empty, Empty,
Secondary,
}, },
mixins: [MescrollCompMixin], mixins: [MescrollCompMixin],
data() { data() {

129
pages/targetdata/culturalnumbers.vue

@ -1,21 +1,15 @@
<template> <template>
<view class="container"> <view class="container">
<!-- 搜索 --> <!-- 搜索 -->
<view class="sozone"> <view class="search">
<view class="sovue"> <view class="search-wrapper">
<view class="search-wrapper"> <view class="index-search">
<view class="search-input"> <view class="index-cont-search t-c">
<view class="search-input-wrapper"> <text class="search-icon iconfont icon-search"></text>
<view class="left"> <text class="search-text">
<text class="search-icon iconfont icon-search"></text> <input type="text" placeholder="请输入搜索关键字" v-model="searchValue">
</view> </text>
<view class="right"> <button class="search-text-bu" @click="onSearch">搜索</button>
<input v-model="searchValue" class="input" focus="true" placeholder="请输入搜索关键词" type="text">
</view>
</view>
</view>
<view class="search-button">
<view class="button" @click="onSearch">搜索</view>
</view> </view>
</view> </view>
</view> </view>
@ -216,89 +210,73 @@ export default {
position: relative; position: relative;
min-height: 100vh; min-height: 100vh;
background-color: #efefef;
// //
.sozone{ .search {
position: relative; position: fixed;
z-index: 70; float: top;
top: var(--window-top);
.sovue{ left: var(--window-left);
padding: 20rpx; right: var(--window-right);
position: absolute; z-index: 19;
top: 20rpx;
left: 4rpx;
width: 100%;
}
.search-wrapper { .search-wrapper {
display: flex; background: #1c223b;
height: 84rpx; padding: 0rpx 20rpx 20rpx 20rpx;
} }
// .index-search {
.search-input { border-bottom: 0;
width: 80%;
background: #fff; background: #fff;
border-radius: 10rpx 0 0 10rpx; border-radius: 50rpx;
box-sizing: border-box;
overflow: hidden; overflow: hidden;
font-size: 28rpx;
color: #6d6d6d;
box-sizing: border-box;
height: 74rpx;
line-height: 74rpx;
.search-input-wrapper { .index-cont-search {
width: 100%;
font-size: 28rpx;
background: #f7f7f7;
display: flex; display: flex;
justify-content: center;
align-items: center;
.left { .search-icon {
display: flex; font-size: 34rpx;
width: 60rpx; margin-left: 50rpx;
justify-content: center;
align-items: center;
.search-icon {
display: block;
color: #b4b4b4;
font-size: 28rpx;
}
} }
.right { .search-text {
flex: 1; text-align: left;
float: left;
margin-left: 20rpx;
width: 100%;
input { input {
font-size: 28rpx; font-size: 20rpx;
height: 84rpx;
display: flex;
align-items: center;
.input-placeholder {
color: #aba9a9;
}
} }
} }
} .search-text-bu {
} margin-right: 20rpx;
color: #ffffff;
// background-color: #1c223b;
.search-button { font-size: 20rpx;
width: 20%; width: 120rpx;
box-sizing: border-box; height: 50rpx;
text-align: center;
.button { border-radius: 50rpx;
height: 84rpx; }
font-size: 28rpx;
border-radius: 0 10rpx 10rpx 0;
background: #4399ff;
color: #fff;
display: flex;
justify-content: center;
align-items: center;
} }
} }
} }
.order { .order {
display: flex; display: flex;
padding: 150rpx 10rpx 20rpx; padding: 110rpx 10rpx 20rpx;
margin-left: -55rpx; margin-left: -55rpx;
z-index: 65; z-index: 65;
@ -323,6 +301,7 @@ export default {
.goods-list { .goods-list {
padding: 4rpx; padding: 4rpx;
box-sizing: border-box; box-sizing: border-box;
margin-top: -20rpx;
.goods-item { .goods-item {
// background-color: #fff; // background-color: #fff;

129
pages/targetdata/culturalresources.vue

@ -1,21 +1,15 @@
<template> <template>
<view class="container"> <view class="container">
<!-- 搜索 --> <!-- 搜索 -->
<view class="sozone"> <view class="search">
<view class="sovue"> <view class="search-wrapper">
<view class="search-wrapper"> <view class="index-search">
<view class="search-input"> <view class="index-cont-search t-c">
<view class="search-input-wrapper"> <text class="search-icon iconfont icon-search"></text>
<view class="left"> <text class="search-text">
<text class="search-icon iconfont icon-search"></text> <input type="text" placeholder="请输入搜索关键字" v-model="searchValue">
</view> </text>
<view class="right"> <button class="search-text-bu" @click="onSearch">搜索</button>
<input v-model="searchValue" class="input" focus="true" placeholder="请输入搜索关键词" type="text">
</view>
</view>
</view>
<view class="search-button">
<view class="button" @click="onSearch">搜索</view>
</view> </view>
</view> </view>
</view> </view>
@ -216,89 +210,73 @@ export default {
position: relative; position: relative;
min-height: 100vh; min-height: 100vh;
background-color: #efefef;
// //
.sozone{ .search {
position: relative; position: fixed;
z-index: 70; float: top;
top: var(--window-top);
.sovue{ left: var(--window-left);
padding: 20rpx; right: var(--window-right);
position: absolute; z-index: 19;
top: 20rpx;
left: 4rpx;
width: 100%;
}
.search-wrapper { .search-wrapper {
display: flex; background: #1c223b;
height: 84rpx; padding: 0rpx 20rpx 20rpx 20rpx;
} }
// .index-search {
.search-input { border-bottom: 0;
width: 80%;
background: #fff; background: #fff;
border-radius: 10rpx 0 0 10rpx; border-radius: 50rpx;
box-sizing: border-box;
overflow: hidden; overflow: hidden;
font-size: 28rpx;
color: #6d6d6d;
box-sizing: border-box;
height: 74rpx;
line-height: 74rpx;
.search-input-wrapper { .index-cont-search {
width: 100%;
font-size: 28rpx;
background: #f7f7f7;
display: flex; display: flex;
justify-content: center;
align-items: center;
.left { .search-icon {
display: flex; font-size: 34rpx;
width: 60rpx; margin-left: 50rpx;
justify-content: center;
align-items: center;
.search-icon {
display: block;
color: #b4b4b4;
font-size: 28rpx;
}
} }
.right { .search-text {
flex: 1; text-align: left;
float: left;
margin-left: 20rpx;
width: 100%;
input { input {
font-size: 28rpx; font-size: 20rpx;
height: 84rpx;
display: flex;
align-items: center;
.input-placeholder {
color: #aba9a9;
}
} }
} }
} .search-text-bu {
} margin-right: 20rpx;
color: #ffffff;
// background-color: #1c223b;
.search-button { font-size: 20rpx;
width: 20%; width: 120rpx;
box-sizing: border-box; height: 50rpx;
text-align: center;
.button { border-radius: 50rpx;
height: 84rpx; }
font-size: 28rpx;
border-radius: 0 10rpx 10rpx 0;
background: #4399ff;
color: #fff;
display: flex;
justify-content: center;
align-items: center;
} }
} }
} }
.order { .order {
display: flex; display: flex;
padding: 150rpx 10rpx 20rpx; padding: 110rpx 10rpx 20rpx;
margin-left: -55rpx; margin-left: -55rpx;
z-index: 65; z-index: 65;
@ -323,6 +301,7 @@ export default {
.goods-list { .goods-list {
padding: 4rpx; padding: 4rpx;
box-sizing: border-box; box-sizing: border-box;
margin-top: -20rpx;
.goods-item { .goods-item {
// background-color: #fff; // background-color: #fff;

129
pages/targetdata/publicdata.vue

@ -1,21 +1,15 @@
<template> <template>
<view class="container"> <view class="container">
<!-- 搜索 --> <!-- 搜索 -->
<view class="sozone"> <view class="search">
<view class="sovue"> <view class="search-wrapper">
<view class="search-wrapper"> <view class="index-search">
<view class="search-input"> <view class="index-cont-search t-c">
<view class="search-input-wrapper"> <text class="search-icon iconfont icon-search"></text>
<view class="left"> <text class="search-text">
<text class="search-icon iconfont icon-search"></text> <input type="text" placeholder="请输入搜索关键字" v-model="searchValue">
</view> </text>
<view class="right"> <button class="search-text-bu" @click="onSearch">搜索</button>
<input v-model="searchValue" class="input" focus="true" placeholder="请输入搜索关键词" type="text">
</view>
</view>
</view>
<view class="search-button">
<view class="button" @click="onSearch">搜索</view>
</view> </view>
</view> </view>
</view> </view>
@ -216,89 +210,73 @@
position: relative; position: relative;
min-height: 100vh; min-height: 100vh;
background-color: #efefef;
// //
.sozone{ .search {
position: relative; position: fixed;
z-index: 70; float: top;
top: var(--window-top);
.sovue{ left: var(--window-left);
padding: 20rpx; right: var(--window-right);
position: absolute; z-index: 19;
top: 20rpx;
left: 4rpx;
width: 100%;
}
.search-wrapper { .search-wrapper {
display: flex; background: #1c223b;
height: 84rpx; padding: 0rpx 20rpx 20rpx 20rpx;
} }
// .index-search {
.search-input { border-bottom: 0;
width: 80%;
background: #fff; background: #fff;
border-radius: 10rpx 0 0 10rpx; border-radius: 50rpx;
box-sizing: border-box;
overflow: hidden; overflow: hidden;
font-size: 28rpx;
color: #6d6d6d;
box-sizing: border-box;
height: 74rpx;
line-height: 74rpx;
.search-input-wrapper { .index-cont-search {
width: 100%;
font-size: 28rpx;
background: #f7f7f7;
display: flex; display: flex;
justify-content: center;
align-items: center;
.left { .search-icon {
display: flex; font-size: 34rpx;
width: 60rpx; margin-left: 50rpx;
justify-content: center;
align-items: center;
.search-icon {
display: block;
color: #b4b4b4;
font-size: 28rpx;
}
} }
.right { .search-text {
flex: 1; text-align: left;
float: left;
margin-left: 20rpx;
width: 100%;
input { input {
font-size: 28rpx; font-size: 20rpx;
height: 84rpx;
display: flex;
align-items: center;
.input-placeholder {
color: #aba9a9;
}
} }
} }
} .search-text-bu {
} margin-right: 20rpx;
color: #ffffff;
// background-color: #1c223b;
.search-button { font-size: 20rpx;
width: 20%; width: 120rpx;
box-sizing: border-box; height: 50rpx;
text-align: center;
.button { border-radius: 50rpx;
height: 84rpx; }
font-size: 28rpx;
border-radius: 0 10rpx 10rpx 0;
background: #4399ff;
color: #fff;
display: flex;
justify-content: center;
align-items: center;
} }
} }
} }
.order { .order {
display: flex; display: flex;
padding: 150rpx 10rpx 20rpx; padding: 110rpx 10rpx 20rpx;
margin-left: -55rpx; margin-left: -55rpx;
z-index: 65; z-index: 65;
@ -323,6 +301,7 @@
.goods-list { .goods-list {
padding: 4rpx; padding: 4rpx;
box-sizing: border-box; box-sizing: border-box;
margin-top: -20rpx;
.goods-item { .goods-item {
// background-color: #fff; // background-color: #fff;

129
pages/targetdata/supermarket.vue

@ -1,21 +1,15 @@
<template> <template>
<view class="container"> <view class="container">
<!-- 搜索 --> <!-- 搜索 -->
<view class="sozone"> <view class="search">
<view class="sovue"> <view class="search-wrapper">
<view class="search-wrapper"> <view class="index-search">
<view class="search-input"> <view class="index-cont-search t-c">
<view class="search-input-wrapper"> <text class="search-icon iconfont icon-search"></text>
<view class="left"> <text class="search-text">
<text class="search-icon iconfont icon-search"></text> <input type="text" placeholder="请输入搜索关键字" v-model="searchValue">
</view> </text>
<view class="right"> <button class="search-text-bu" @click="onSearch">搜索</button>
<input v-model="searchValue" class="input" focus="true" placeholder="请输入搜索关键词" type="text">
</view>
</view>
</view>
<view class="search-button">
<view class="button" @click="onSearch">搜索</view>
</view> </view>
</view> </view>
</view> </view>
@ -216,89 +210,73 @@ export default {
position: relative; position: relative;
min-height: 100vh; min-height: 100vh;
background-color: #efefef;
// //
.sozone{ .search {
position: relative; position: fixed;
z-index: 70; float: top;
top: var(--window-top);
.sovue{ left: var(--window-left);
padding: 20rpx; right: var(--window-right);
position: absolute; z-index: 19;
top: 20rpx;
left: 4rpx;
width: 100%;
}
.search-wrapper { .search-wrapper {
display: flex; background: #1c223b;
height: 84rpx; padding: 0rpx 20rpx 20rpx 20rpx;
} }
// .index-search {
.search-input { border-bottom: 0;
width: 80%;
background: #fff; background: #fff;
border-radius: 10rpx 0 0 10rpx; border-radius: 50rpx;
box-sizing: border-box;
overflow: hidden; overflow: hidden;
font-size: 28rpx;
color: #6d6d6d;
box-sizing: border-box;
height: 74rpx;
line-height: 74rpx;
.search-input-wrapper { .index-cont-search {
width: 100%;
font-size: 28rpx;
background: #f7f7f7;
display: flex; display: flex;
justify-content: center;
align-items: center;
.left { .search-icon {
display: flex; font-size: 34rpx;
width: 60rpx; margin-left: 50rpx;
justify-content: center;
align-items: center;
.search-icon {
display: block;
color: #b4b4b4;
font-size: 28rpx;
}
} }
.right { .search-text {
flex: 1; text-align: left;
float: left;
margin-left: 20rpx;
width: 100%;
input { input {
font-size: 28rpx; font-size: 20rpx;
height: 84rpx;
display: flex;
align-items: center;
.input-placeholder {
color: #aba9a9;
}
} }
} }
} .search-text-bu {
} margin-right: 20rpx;
color: #ffffff;
// background-color: #1c223b;
.search-button { font-size: 20rpx;
width: 20%; width: 120rpx;
box-sizing: border-box; height: 50rpx;
text-align: center;
.button { border-radius: 50rpx;
height: 84rpx; }
font-size: 28rpx;
border-radius: 0 10rpx 10rpx 0;
background: #4399ff;
color: #fff;
display: flex;
justify-content: center;
align-items: center;
} }
} }
} }
.order { .order {
display: flex; display: flex;
padding: 150rpx 10rpx 20rpx; padding: 110rpx 10rpx 20rpx;
margin-left: -55rpx; margin-left: -55rpx;
z-index: 65; z-index: 65;
@ -323,6 +301,7 @@ export default {
.goods-list { .goods-list {
padding: 4rpx; padding: 4rpx;
box-sizing: border-box; box-sizing: border-box;
margin-top: -20rpx;
.goods-item { .goods-item {
// background-color: #fff; // background-color: #fff;

Loading…
Cancel
Save