Browse Source

首页UI、二级页头图

master
chenkainan 6 months ago
parent
commit
353f4a9fdc
  1. BIN
      static/images/index.png
  2. BIN
      static/images/index_HL.png
  3. BIN
      static/images/mall.png
  4. BIN
      static/images/mall_HL.png
  5. BIN
      static/images/map.png
  6. BIN
      static/images/map_HL.png
  7. BIN
      static/images/user.png
  8. BIN
      static/images/user_HL.png
  9. 2
      static/js/CommonFunction.js
  10. 6
      subPackages/food/foodList.vue
  11. 15
      subPackages/hotelHomestay/hotelHomestay.vue
  12. 9
      subPackages/notice/noticeList.vue
  13. 7
      subPackages/techan/techanList.vue
  14. 16
      subPackages/ticketBooking/ticketBooking.vue
  15. 7
      subPackages/travelGuide/travelGuide.vue

BIN
static/images/index.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.5 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB

BIN
static/images/index_HL.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.1 KiB

After

Width:  |  Height:  |  Size: 6.4 KiB

BIN
static/images/mall.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 10 KiB

BIN
static/images/mall_HL.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 18 KiB

BIN
static/images/map.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 12 KiB

BIN
static/images/map_HL.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 14 KiB

BIN
static/images/user.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.2 KiB

After

Width:  |  Height:  |  Size: 7.0 KiB

BIN
static/images/user_HL.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

2
static/js/CommonFunction.js

@ -115,7 +115,7 @@ Vue.prototype.getHeadImg = type => {
{
type,
},
'/api/scene/getKumgangHeadImgList'
'/api/public_service/getKumgangHeadImgList'
).then(res => {
return res.data[0].image
});

6
subPackages/food/foodList.vue

@ -1,7 +1,7 @@
<template>
<view class="bg">
<span class="iconfont topLeft" @click="goBack">&#xe660;</span>
<img :src="showImg('/uploads/20240826/7329f5c692bfee0c3a3acacc0205761d.png')" class="topImg" />
<img :src="showImg(headImg)" class="topImg" />
<view class="item" v-for="item in list" :key="item.id" @click="viewDetail(item)">
<image class="img" :src="showImg(item.image)" mode=""></image>
<view class="content">
@ -39,8 +39,12 @@
// this.headImg = res
// })
this.getList()
this.getTopImg()
},
methods: {
async getTopImg(){
this.headImg = await this.getHeadImg('food')
},
//
getList(){
this.Post({

15
subPackages/hotelHomestay/hotelHomestay.vue

@ -66,7 +66,7 @@
onShow() {
this.headImg = 'https://tongli.sz-trip.com/uploads/20240826/8653c32761e01ee683505eddba1ae22b.png'
this.finished = false
// this.getHeadImg('piaowu')
this.getTopImg()
},
onReady() {
this.getList()
@ -87,17 +87,8 @@
},
methods: {
getHeadImg(type){
this.headImg = null
this.Post(
{
type,
},
'https://yjdtadmin.sz-trip.com/api/public_service/getKumgangHeadImgList'
).then(res => {
this.headImg = res.data[0].image
});
async getTopImg(){
this.headImg = await this.getHeadImg('hotel')
},
//
getList(){

9
subPackages/notice/noticeList.vue

@ -2,7 +2,7 @@
<view class="bg">
<span class="iconfont topLeft" @click="goBack">&#xe660;</span>
<image src="https://static.ticket.sz-trip.com/yandu/images/notice/topImg.png" mode="" class="topImg"></image>
<image :src="showImg(headImg)" mode="" class="topImg"></image>
<view class="type-box">
<view v-for="(item,index) in typeList" :key="index" :class="{'active': index == typeIndex}" @click="typeIndex=index;getList()">{{item.title}}</view>
@ -38,13 +38,18 @@
}
],
typeIndex: 0,
list: []
list: [],
headImg: ''
}
},
onShow() {
this.getList()
this.getTopImg()
},
methods: {
async getTopImg(){
this.headImg = await this.getHeadImg('nitice')
},
getList() {
this.Post({
type_id: this.typeList[this.typeIndex].id

7
subPackages/techan/techanList.vue

@ -1,7 +1,7 @@
<template>
<view class="bg">
<span class="iconfont topLeft" @click="goBack">&#xe660;</span>
<img :src="showImg('/uploads/20240924/4a580d7089dbdb07f830909c25f0f751.jpg')" class="topImg" />
<img :src="showImg(headImg)" class="topImg" />
<view class="box">
<view class="item" v-for="item in list" :key="item.id" @click="viewDetail(item)">
<image class="item-img" :src="showImg(item.image)" mode=""></image>
@ -27,12 +27,17 @@
return {
list:[],
finished: false,
headImg: ''
}
},
onReady() {
this.getList()
this.getTopImg()
},
methods: {
async getTopImg(){
this.headImg = await this.getHeadImg('techan')
},
//
getList(){
this.Post({

16
subPackages/ticketBooking/ticketBooking.vue

@ -48,9 +48,8 @@
}
},
onShow() {
this.headImg = 'https://tongli.sz-trip.com/uploads/20240826/a87488f6225789aa19dbb437671d388d.png'
this.finished = false
// this.getHeadImg('piaowu')
this.getTopImg()
},
onReady() {
this.getList()
@ -69,18 +68,9 @@
}
})
},
methods: {
getHeadImg(type){
this.headImg = null
this.Post(
{
type,
},
'https://yjdtadmin.sz-trip.com/api/public_service/getKumgangHeadImgList'
).then(res => {
this.headImg = res.data[0].image
});
async getTopImg(){
this.headImg = await this.getHeadImg('scenic')
},
//
getList(){

7
subPackages/travelGuide/travelGuide.vue

@ -58,9 +58,7 @@
}
},
onShow() {
// this.showMore = true
// this.list = []
// this.getArticleByType()
this.getTopImg()
},
onReady() {
this.type_id = 42
@ -85,6 +83,9 @@
},
methods: {
async getTopImg(){
this.headImg = await this.getHeadImg('travel')
},
setTag (item) {
this.showMore = true
this.type_id = item.id

Loading…
Cancel
Save