Browse Source

首页fix

master
jiazhipeng 11 months ago
parent
commit
b0329ff893
  1. 8
      pages/index/index.wxml
  2. 8
      pages/index/index.wxss
  3. 8
      pages/pbService/aiHelpYou/index.js

8
pages/index/index.wxml

@ -41,7 +41,7 @@
</view> </view>
</view> </view>
</scroll-view> --> </scroll-view> -->
<swiper class="top-icons no-scrollbar" autoplay="{{false}}" style="height:160rpx" <swiper class="top-icons no-scrollbar" autoplay="{{false}}" style="height:180rpx;padding-top: 43rpx;"
bindchange="changeBannerIndex" data-keyname="mainNavIndex" bindchange="changeBannerIndex" data-keyname="mainNavIndex"
display-multiple-items="5" circular display-multiple-items="5" circular
current="0"> current="0">
@ -52,9 +52,9 @@
</swiper-item> </swiper-item>
</block> </block>
</swiper> </swiper>
<view class="scroll-line" style="width: 0 !important;"> <view class="scroll-line" >
<!-- <view class="scroll-line-bg" wx:if="{{(mainNavIndex+2) < (mainTypeList.length/2)}}" style="width:17rpx;"></view> <view class="scroll-line-bg" wx:if="{{(mainNavIndex+2) < (mainTypeList.length/2)}}" style="width:17rpx;"></view>
<view class="scroll-line-bg" wx:else style="width:17rpx;margin-left: 17rpx;"></view> --> <view class="scroll-line-bg" wx:else style="width:17rpx;margin-left: 17rpx;"></view>
</view> </view>
</view> </view>

8
pages/index/index.wxss

@ -74,7 +74,7 @@ page {
background-image: url("https://static.ticket.sz-trip.com/uploads/20250526/150bd1f9312967bd7d9bedc6dbb8dd48.png"); background-image: url("https://static.ticket.sz-trip.com/uploads/20250526/150bd1f9312967bd7d9bedc6dbb8dd48.png");
background-size: 100% auto; background-size: 100% auto;
background-repeat: repeat-y; background-repeat: repeat-y;
padding-top: 63rpx; /* padding-top: 63rpx; */
} }
.top-icons { .top-icons {
@ -99,8 +99,8 @@ page {
margin-right: 0; margin-right: 0;
} }
.top-icon-item image { .top-icon-item image {
width: 100rpx; width: 80rpx;
height: 100rpx; height: 80rpx;
display: block; display: block;
transition: all 0.2s; transition: all 0.2s;
/* margin: 0 auto; */ /* margin: 0 auto; */
@ -108,7 +108,7 @@ page {
} }
/* 金刚区滚动效果 */ /* 金刚区滚动效果 */
.top-icon-item.active{ .top-icon-item.active{
height: 160rpx !important; height: 170rpx !important;
margin-bottom: 0; margin-bottom: 0;
} }
.top-icon-item.active image{ .top-icon-item.active image{

8
pages/pbService/aiHelpYou/index.js

@ -18,17 +18,17 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function (options) {
let weburl = 'https://m.cloud.sz-trip.com/aiPlay' let weburl = 'https://test.m.cloud.sz-trip.com/aiPlay?noShowHeaderBack=true'
let token = wx.getStorageSync('jstrip_token') let token = wx.getStorageSync('jstrip_token')
if (token) { if (token) {
weburl += '?token='+token weburl += '&token='+token
} }
let _this = this let _this = this
try { try {
let lonAndLat = (wx.getStorageSync('lonAndLat')) let lonAndLat = (wx.getStorageSync('lonAndLat'))
if (lonAndLat && JSON.parse(lonAndLat)) { if (lonAndLat && JSON.parse(lonAndLat)) {
lonAndLat = JSON.parse(lonAndLat) lonAndLat = JSON.parse(lonAndLat)
if (Object.keys(webParam).length>0 || token) { if (token) {
weburl+=`&lon=${lonAndLat.lon}&lat=${lonAndLat.lat}` weburl+=`&lon=${lonAndLat.lon}&lat=${lonAndLat.lat}`
} else { } else {
weburl+=`?lon=${lonAndLat.lon}&lat=${lonAndLat.lat}` weburl+=`?lon=${lonAndLat.lon}&lat=${lonAndLat.lat}`
@ -41,7 +41,7 @@ Page({
success: (res) => { success: (res) => {
let lonAndLat = JSON.stringify({lat: res.latitude,lon: res.longitude}) let lonAndLat = JSON.stringify({lat: res.latitude,lon: res.longitude})
wx.setStorageSync('lonAndLat', lonAndLat) wx.setStorageSync('lonAndLat', lonAndLat)
if (Object.keys(webParam).length>0 || token) { if (token) {
weburl+=`&lon=${lonAndLat.lon}&lat=${lonAndLat.lat}` weburl+=`&lon=${lonAndLat.lon}&lat=${lonAndLat.lat}`
} else { } else {
weburl+=`?lon=${lonAndLat.lon}&lat=${lonAndLat.lat}` weburl+=`?lon=${lonAndLat.lon}&lat=${lonAndLat.lat}`

Loading…
Cancel
Save