Browse Source

首页改版

master
jiazhipeng 11 months ago
parent
commit
8fd17d65c7
  1. 62
      pages/index/index.js
  2. 85
      pages/index/index.wxml
  3. 74
      pages/index/index.wxss
  4. 2
      pages/list/activitynew/index.wxml
  5. 1
      pages/order/components/contact/index.js
  6. 1
      pages/order/scene/index.js
  7. 1
      pages/pbService/aiHelpYou/index.js
  8. 28
      project.private.config.json
  9. 21
      subPackages/feiyiNew/CGCIndex/index.js
  10. 10
      subPackages/feiyiNew/CGCIndex/index.wxml
  11. 2
      subPackages/feiyiNew/CGCIndex/index.wxss
  12. 8
      subPackages/feiyiNew/CGCLetter/index.js
  13. 4
      subPackages/feiyiNew/CGCLetter/index.wxml
  14. 5
      subPackages/feiyiNew/CGCTime/index.js
  15. 8
      subPackages/feiyiNew/CGCTime/index.wxml
  16. 3
      subPackages/feiyiNew/index.js
  17. 1
      subPackages/postSearch/index.js

62
pages/index/index.js

@ -32,12 +32,15 @@ Page({
lon: "",
indexSeason: {}, // 后台UI配置项
func_data: {},
// bannerInterver: 5*1000, // 动态更改banner时间
banner: [],
xiaobanner: [],
ztbanner: [], //苏城环游记banner
activeBannerIndex: 0,
smBannerIndex: 0,
ztBannerIndex: 0,
// banner上的金刚区
bannerDataList: [
@ -108,6 +111,7 @@ Page({
// },
],
mainTypeLeft: 0,
mainNavIndex: 0,
xpth: {}, // 新品特惠
XPathBannerIndex: 0,
@ -317,29 +321,29 @@ Page({
// 长三角文旅平台
otherPlat: [
{
"name":"玉见昆山",
"icon":"https://static.ticket.sz-trip.com/uploads/20250526/c85dbe1b0f8f58014c05a30b3e6f86b5.png",
"type":"mini",
"path":"",
"appid":"wx8888a3fd0862b4c8"
},
{
"name":"智游常熟",
"icon":"https://static.ticket.sz-trip.com/uploads/20250526/98d57e31995b6dc3188f8717201640f1.png",
"type":"mini",
"path":"",
"appid":"wxdaf3d5edd07dc7af"
},
// {
// "name":"玉见昆山",
// "icon":"https://static.ticket.sz-trip.com/uploads/20250526/c85dbe1b0f8f58014c05a30b3e6f86b5.png",
// "type":"mini",
// "path":"",
// "appid":"wx8888a3fd0862b4c8"
// },
// {
// "name":"智游常熟",
// "icon":"https://static.ticket.sz-trip.com/uploads/20250526/98d57e31995b6dc3188f8717201640f1.png",
// "type":"mini",
// "path":"",
// "appid":"wxdaf3d5edd07dc7af"
// },
{
"name":"常享游",
"icon":"https://static.ticket.sz-trip.com/uploads/20250526/abfe0d4d2b02fcfd9bd791b9468bb4f4.png",
"icon":"https://static.ticket.sz-trip.com/uploads/20250604/5112dd50e7c175bf58416ba9d4e4b846.png",
"type":"h5",
"url":"https://tour.wlczy.com/h5/"
},
{
"name":"畅游宿迁",
"icon":"https://static.ticket.sz-trip.com/uploads/20250526/bcfa9789f2d2d52d2da8f11b6a99b002.png",
"icon":"https://static.ticket.sz-trip.com/uploads/20250604/962f331b2319b9759363c3787ca8d088.png",
"type":"mini",
"path":"/pages/index/index",
"appid":"wxcb00a59c4fba136e"
@ -416,8 +420,8 @@ Page({
if (img.indexOf('https://') != -1 || img.indexOf('http://') != -1) {
return img;
} else {
return "https://test.api.cloud.sz-trip.com"+img
// return "https://static.ticket.sz-trip.com" + img;
// return "https://test.api.cloud.sz-trip.com"+img
return "https://static.ticket.sz-trip.com" + img;
}
},
@ -449,6 +453,7 @@ Page({
// indexSeason: imageSource.testImgs.indexSeason,
bannerDataList: (app.globalData.configJson.nav_menu || []),
mainTypeList: (app.globalData.configJson.menu_button || []),
func_data: (app.globalData.configJson.func_data || {}),
})
} else {
commonApi._post("adv/get_home_ui", {type_id: 3}).then(res => {
@ -458,12 +463,15 @@ Page({
});
app.globalData.configJson.indexSeason = obj
app.globalData.loadIndexSeason = true
app.globalData.configJson.nav_menu = (res.data.nav_menu || []).map(v=>{
return {...v, icon:this.showImg(v.icon)}
})
app.globalData.configJson.menu_button = (res.data.menu_button || []).map(v=>{
return {...v, icon:this.showImg(v.icon)}
})
app.globalData.configJson.nav_menu = (res.data.nav_menu || [])
app.globalData.configJson.menu_button = (res.data.menu_button || [])
let func_data = {}
for(let item of (res.data.func_data || [])) {
func_data[item.jump_type] = true
}
app.globalData.configJson.func_data = func_data
console.log('webData', app.globalData.configJson)
this.setData({
@ -473,6 +481,7 @@ Page({
indexSeason: app.globalData.configJson.indexSeason,
bannerDataList: (app.globalData.configJson.nav_menu || []),
mainTypeList: (app.globalData.configJson.menu_button || []),
func_data: (app.globalData.configJson.func_data||{})
})
})
}
@ -530,6 +539,9 @@ Page({
commonApi._post("adv/getAdv", {position: 0,type_id: 3}).then(res => {
this.setData({banner: res.data || []})
})
commonApi._post("adv/getAdv", {position: 6,type_id: 3}).then(res => {
this.setData({ztbanner: res.data || []})
})
commonApi._post("adv/getAdv", {position: 1,type_id: 3}).then(res => {
this.setData({xiaobanner: res.data || []})
})
@ -545,7 +557,7 @@ Page({
},
// 统一的banner change 需要时可以放开
changeBannerIndex: function(e) {
return
// return
let keyname = e.currentTarget.dataset.keyname
this.setData({
[keyname]: e.detail.current,

85
pages/index/index.wxml

@ -33,27 +33,38 @@
<view class="main-content" >
<!-- 金刚区 -->
<view class="no-scrollbar" wx:if="{{mainTypeList.length>0}}">
<scroll-view scroll-x style="height:152rpx" bindscroll="listenScroll" data-keyname="mainTypeLeft" class="no-scrollbar">
<!-- <scroll-view scroll-x style="height:152rpx" bindscroll="listenScroll" data-keyname="mainTypeLeft" class="no-scrollbar">
<view class="top-icons no-scrollbar">
<view bindtap="mainNavClick" class="top-icon-item" wx:for="{{mainTypeList}}" wx:key="index" data-item="{{item}}">
<image src="{{item.icon}}" mode="aspectFill"></image>
<view class="top-icon-text">{{item.title}}</view>
</view>
</view>
</scroll-view>
<view class="scroll-line">
<view class="scroll-line-bg" wx:if="{{mainTypeLeft <= 50}}" style="width:17rpx;"></view>
<view class="scroll-line-bg" wx:else style="width:17rpx;margin-left: 17rpx;"></view>
<view class="top-icon-text">{{item.menu_name}}</view>
</view>
</view>
</scroll-view> -->
<swiper class="top-icons no-scrollbar" autoplay="{{false}}" style="height:160rpx"
bindchange="changeBannerIndex" data-keyname="mainNavIndex"
display-multiple-items="5" circular
current="0">
<block wx:for="{{mainTypeList}}" wx:key="index">
<swiper-item bindtap="mainNavClick" class="top-icon-item {{(mainNavIndex+2)==index || (index==0&&mainNavIndex==6)||(index==1&&mainNavIndex==7)?'active':''}}" data-item="{{item}}">
<image src="{{item.icon}}" mode="aspectFill" class="{{(mainNavIndex+2)==index?'active':''}}"></image>
<view class="top-icon-text">{{item.menu_name}}</view>
</swiper-item>
</block>
</swiper>
<view class="scroll-line" style="width: 0 !important;">
<!-- <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>
</view>
<view class="content-box">
<!-- 苏城环游记 todo-->
<view class="small-swiper-box" wx:if="{{xiaobanner.length>0}}">
<view class="small-swiper-box" wx:if="{{ztbanner.length>0 && func_data.tour_guide}}">
<swiper class="small-swiper" autoplay="{{true}}" interval="{{5000}}" duration="{{300}}"
bindchange="changeBannerIndex" data-keyname="smBannerIndex">
<block wx:for="{{xiaobanner}}" wx:key="index">
bindchange="changeBannerIndex" data-keyname="ztBannerIndex">
<block wx:for="{{ztbanner}}" wx:key="index">
<swiper-item bindtap="bannerClick" data-item="{{item}}">
<!-- 原 圆角77rpx,现改为13rpx -->
<image style="border-radius:13rpx" src="{{item.head_img}}" mode="aspectFill"></image>
@ -66,26 +77,26 @@
</view>
<!-- 限时特惠--新版-->
<view class="sale-road-boxes xpth" style="margin-bottom: 18.67rpx;margin-top: 0;padding-top: 0;" >
<view class="sale-road-boxes xpth" style="margin-bottom: 18.67rpx;margin-top: 0;padding-top: 0;" wx:if="{{func_data.hot_deals}}">
<!-- 上方标题部分 -->
<view class="xsth-title">
<view class="xsth-left" style="display: flex;">
<image wx:if="{{xpthIndex==0}}" mode="heightFix" class="common-header-img" src="https://static.ticket.sz-trip.com/uploads/20250527/f2dc42edee46a79a6ba375ae1a1c24b7.png"></image>
<image wx:if="{{xpthIndex==0}}" mode="heightFix" class="common-header-img" src="https://static.ticket.sz-trip.com/uploads/20250604/9bd8c914b1e47d1856729357da00a7b1.png"></image>
<image wx:else="" bindtap="changeXpthIndex" data-value="{{0}}" mode="heightFix" class="common-header-img" src="https://static.ticket.sz-trip.com/uploads/20250526/2bcce6d179c4abd3fa6cbdec8c8519bf.png"></image>
<image wx:if="{{xpthIndex==0}}" bindtap="changeXpthIndex" data-value="{{1}}" mode="heightFix" class="common-header-img" src="https://static.ticket.sz-trip.com/uploads/20250527/1d1117bf6120fb75159eb8657b15c640.png"></image>
<image wx:else mode="heightFix" class="common-header-img" src="https://static.ticket.sz-trip.com/uploads/20250526/fcab4f467a250c2750c4af53942fa205.png"></image>
<image wx:else mode="heightFix" class="common-header-img" src="https://static.ticket.sz-trip.com/uploads/20250604/13c6feaebe2e2a575a64627502608153.png"></image>
</view>
</view>
<!-- 热门 -->
<view style="width: 100%;" wx:if="{{xpthIndex==0}}">
<scroll-view scroll-x style="height:372rpx">
<scroll-view scroll-x style="height:372rpx;padding-top: 25rpx;">
<view class="season-hot">
<view class="season-item" wx:for="{{list}}" wx:key="index" bind:tap="productGotoDetail" data-item="{{item}}">
<image src="{{item.headimg}}"></image>
<view class="season-content" style="padding:6rpx 12rpx 0;">
<view style="height: 70rpx;" class="textOver2">{{item.title}}</view>
<view class="price" >
<view style="height: 60rpx;" class="textOver2">{{item.title}}</view>
<view class="price" style="padding-top: 8rpx;">
<text>¥</text><text>{{item.price/100}}</text><text>起</text>
</view>
</view>
@ -100,13 +111,14 @@
<!-- 左边的2个产品 -->
<view class="xpth-left">
<view class="xpth-item" wx:for="{{xpth.list}}" bindtap="productGotoDetail" data-item="{{item}}" wx:key="id">
<image src="{{item.headimg}}" mode="" />
<image class="prod-img" src="{{item.headimg}}" mode="" />
<view class="xpth-item-content">
<view class="xpth-item-title textOver2">{{item.title}}</view>
<view class="xpth-item-bottom">
<view class="xpth-item-price">{{item.price/100}}</view>
</view>
</view>
<image class="cover-image" src="https://static.ticket.sz-trip.com/uploads/20250526/ed62e372f9c8874f9b50b40f70982202.png"></image>
</view>
</view>
<!-- 右边的banner -->
@ -115,23 +127,26 @@
bindchange="changeBannerIndex" data-keyname="XPathBannerIndex">
<block wx:for="{{xpth.adv}}" wx:key="index">
<swiper-item bindtap="bannerClick" data-item="{{item}}">
<image style="border-radius:13rpx" src="{{item.head_img}}"></image>
<image src="{{item.head_img}}"></image>
<!-- <view class="xpth-cover textOver2">{{item.title}}</view> -->
<image class="cover-image" src="https://static.ticket.sz-trip.com/uploads/20250526/90645448ce9a82c91916543bc6c4935c.png"></image>
</swiper-item>
</block>
</swiper>
<view class="xpth-banner-dot-list">
<!-- <view class="xpth-banner-dot-list">
<view class="dot{{XPathBannerIndex==index?' active':''}}" wx:for="{{xpth.adv}}" wx:key="index"></view>
</view>
</view> -->
</view>
</view>
</view>
<view class="small-swiper-box" wx:if="{{xiaobanner.length>0}}">
<view class="small-swiper-box" wx:if="{{xiaobanner.length>0 && func_data.banner_mini}}">
<swiper class="small-swiper" autoplay="{{true}}" interval="{{5000}}" duration="{{300}}"
bindchange="changeBannerIndex" data-keyname="smBannerIndex">
<block wx:for="{{xiaobanner}}" wx:key="index">
<swiper-item bindtap="bannerClick" data-item="{{item}}">
<swiper-item bindtap="bannerClick" data-item="{{item}}" style="position: relative;">
<!-- 原 圆角77rpx,现改为13rpx -->
<image style="position: absolute;left: 0;right: 0;top: 0;bottom: 0;" src="https://static.ticket.sz-trip.com/jundaosuzhou/images/index2025/smallBg.png"></image>
<image style="border-radius:13rpx" src="{{item.head_img}}" mode="aspectFill"></image>
</swiper-item>
</block>
@ -142,14 +157,14 @@
</view>
<!-- 公共服务 -->
<view class="sale-road-boxes" style="margin-top:0;">
<view class="sale-road-boxes" style="margin-top:0;" wx:if="{{func_data.service_public}}">
<image class="common-header-img" mode="heightFix" src="{{indexSeason.ggfw}}"></image>
<navigator url="/pages/pbService/index" catchtap="pagePoint" data-event="public_view" class="title-more">
<view style="height: 40rpx;line-height: 40rpx;">更多</view>
<image style="width: 12rpx;height: 20rpx;margin-left: 8rpx;" src="https://static.ticket.sz-trip.com/uploads/20250526/e6b945c42851563e9672c6992057bd91.png" mode="" />
</navigator>
</view>
<view>
<view wx:if="{{func_data.service_public}}">
<view class="ggfw-list" style="width:100%;margin-top: 30rpx;">
<view class="ggfw" wx:for="{{publicSerivce}}" wx:key="index" data-item="{{item}}" bindtap="mainIconClick">
<image src="{{item.img}}"></image>
@ -158,11 +173,11 @@
</view>
<!-- 旅游助手 -->
<view class="sale-road-boxes" style="margin-top:36rpx">
<view class="sale-road-boxes" style="margin-top:36rpx" wx:if="{{func_data.helper_travel}}">
<image mode="heightFix" class="common-header-img" src="{{indexSeason.lyzs}}"></image>
<!-- <image class="rmtj-right" src="{{imageSourceList.CBTP[1]}}" mode="" style="width: 276rpx;height: 100rpx;"/> -->
</view>
<view class="pic-list" style="margin-top:30rpx">
<view class="pic-list" style="margin-top:30rpx" wx:if="{{func_data.helper_travel}}">
<image class="new-pic" wx:for="{{travelData}}" wx:key="index" data-item="{{item}}" bindtap="mainIconClick"
src="{{item.img}}" mode="aspectFill"></image>
</view>
@ -179,11 +194,11 @@
<!-- 数字文旅-->
<view class="sale-road-boxes" style="margin-top:30rpx">
<view class="sale-road-boxes" style="margin-top:30rpx" wx:if="{{func_data.culture_digital}}">
<image mode="heightFix" class="common-header-img" src="{{indexSeason.wlcx}}"></image>
<!-- <image class="rmtj-right" src="{{imageSourceList.CBTP[0]}}" mode="" style="width: 276rpx;height: 100rpx;"/> -->
</view>
<view class="slide-out-box">
<view class="slide-out-box" wx:if="{{func_data.culture_digital}}">
<!-- 元旦修改 .slide-box的原样式 height:360rpx-->
<scroll-view scroll-x style="height:400rpx" bindscroll="listenScroll" data-keyname="scrollLeft" class="slide-box">
<view class="pbservice">
@ -201,20 +216,20 @@
</view>
<!-- 十全十美 -->
<view class="sale-road-boxes">
<view class="sale-road-boxes" wx:if="{{func_data.scenery_ten}}">
<image mode="heightFix" class="common-header-img" src="{{indexSeason.sqj}}"></image>
<!-- <image class="rmtj-right" src="{{imageSourceList.CBTP[2]}}" mode="" /> -->
</view>
<view class="six-box-new">
<view class="six-box-new" wx:if="{{func_data.scenery_ten}}">
<image wx:for="{{SQSM}}" src="{{item.img}}" data-item="{{item}}" bindtap="mainIconClick" mode="widthFix" wx:key="index"></image>
</view>
<!-- 长三角文旅平台 -->
<view class="sale-road-boxes" style="margin-top:0" wx:if="{{otherPlat}}">
<view class="sale-road-boxes" style="margin-top:0" wx:if="{{otherPlat &&func_data.platform_nearby}}">
<image mode="heightFix" class="common-header-img" src="{{indexSeason.csjwlpt}}"></image>
<!-- <image class="rmtj-right" src="{{imageSourceList.CBTP[3]}}" mode="" style="width: 276rpx;height: 100rpx;"/> -->
</view>
<view class="other-plats" wx:if="{{otherPlat}}">
<view class="other-plats" wx:if="{{otherPlat &&func_data.platform_nearby}}">
<view class="other-plat" wx:for="{{otherPlat}}" bindtap="gotoOther" data-item="{{item}}" wx:key="index">
<image src="{{item.icon}}" mode="heightFix"></image>
<!-- <view>{{item.name}}</view> -->
@ -222,11 +237,11 @@
</view>
<!-- 热门推荐 -->
<view class="sale-road-boxes" style="margin-top:0" wx:if="{{repurchaseList.length>0}}">
<view class="sale-road-boxes" style="margin-top:0" wx:if="{{repurchaseList.length>0 &&func_data.repurchase }}">
<image mode="heightFix" class="common-header-img" src="{{indexSeason.rmtj}}"></image>
<!-- <image class="rmtj-right" src="{{imageSourceList.CBTP[4]}}" mode="" style="width: 276rpx;height: 100rpx;"/> -->
</view>
<view class="hot-list">
<view class="hot-list" wx:if="{{func_data.repurchase}}">
<view class="hot-list-item" wx:for="{{2}}" wx:for-index="number" wx:key="number">
<view wx:for="{{repurchaseList}}" wx:if="{{index%2==number}}" bindtap="gotoDetail" data-item="{{item}}" wx:key="id">
<view class="hot-item">

74
pages/index/index.wxss

@ -80,6 +80,7 @@ page {
.top-icons {
display: flex;
padding:0 20rpx;
align-items: center;
}
.top-icon-item {
margin-bottom: 20rpx;
@ -101,9 +102,19 @@ page {
width: 100rpx;
height: 100rpx;
display: block;
transition: all 0.2s;
/* margin: 0 auto; */
/* margin-bottom: 10rpx; */
}
/* 金刚区滚动效果 */
.top-icon-item.active{
height: 160rpx !important;
margin-bottom: 0;
}
.top-icon-item.active image{
height: 130rpx;
width: 130rpx;
}
.content-box {
margin: 0 25rpx;
@ -181,6 +192,7 @@ page {
.season-hot .season-item image{
width: 100%;
height: 200rpx;
border-top-right-radius: 14rpx;
}
.season-hot .season-item .hot-cover-img{
position: absolute;
@ -188,6 +200,7 @@ page {
left: 0;
width: 100%;
height: 100%;
border-radius: 0;
}
.xsth-more {
@ -223,20 +236,20 @@ page {
border-radius: 0rpx;
overflow: hidden;
position: relative;
background-image: url("https://static.ticket.sz-trip.com/uploads/20250526/90645448ce9a82c91916543bc6c4935c.png");
background-size: 100% 100%;
padding: 3rpx;
/* background-image: url("https://static.ticket.sz-trip.com/uploads/20250526/90645448ce9a82c91916543bc6c4935c.png");
background-size: 100% 100%; */
/* padding: 3rpx; */
}
.xpth-banner-swiper{
height: 100%;
border-radius: 20rpx;
/* border-radius: 20rpx; */
overflow: hidden;
}
.xpth-banner image {
flex: 1;
height: 100%;
width: 100%;
border-radius: 20rpx;
/* border-radius: 20rpx; */
}
.xpth-banner-dot-list{
position: absolute;
@ -262,37 +275,42 @@ page {
.xpth-item {
border-radius: 20rpx;
height: 153rpx;
width: 100%;
display: flex;
margin-bottom: 13rpx;
background-image: url("https://static.ticket.sz-trip.com/uploads/20250526/ed62e372f9c8874f9b50b40f70982202.png");
background-size: 100% 100%;
padding: 1rpx;
/* background-image: url("https://static.ticket.sz-trip.com/uploads/20250526/ed62e372f9c8874f9b50b40f70982202.png"); */
background: white;
position: relative;
}
.xpth-product .cover-image{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.xpth-item:last-child {
margin-bottom: 0;
}
/* 元旦修改新增样式 */
.xpth-item image {
/* width: 160rpx;
height: 160rpx;
background: #FFE7C0;
border-radius: 15rpx 0 0 15rpx; */
.xpth-item .prod-img {
width: 157rpx;
height: 154rpx;
/* background: #72707D; */
height: 100%;
border-radius: 20rpx;
/* margin-right: 15.33rpx; */
flex-shrink: 0;
}
/* 元旦修改新增样式 */
.xpth-item-content {
width: 100%;
width: 220rpx;
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-around;
/* background: #FBECDE; */
padding-left: 15.33rpx;
padding:0 14rpx;
border-radius: 0 15rpx 15rpx 0;
background: white;
box-sizing: border-box;
}
/* 元旦修改新增样式 */
.xpth-item-title {
@ -301,7 +319,6 @@ page {
font-family: PingFang SC;
font-weight: 500;
color: #333333;
margin-right: 18rpx;
/* height: 80rpx; */
}
@ -310,7 +327,6 @@ page {
display: flex;
justify-content: space-between;
align-items: center;
padding-right: 13.33rpx;
}
/* 元旦修改新增样式 */
.xpth-item-price {
@ -623,7 +639,7 @@ page {
.other-plats image {
width: 153.33rpx;
display: block;
height: 146.67rpx;
height: 111.33rpx;
margin-bottom: 15rpx;
}
@ -871,3 +887,19 @@ page {
height: 0;
color: transparent;
}
.xpth-cover{
width: 255rpx;
height: 95rpx;
background: rgba(255, 255, 255, 0.8);
font-weight: 500;
font-size: 24rpx;
color: #333333;
position: absolute;
bottom: 8rpx;
left: 9rpx;
right: 9rpx;
border-radius: 13rpx;
padding: 15rpx 10rpx;
box-sizing: border-box;
}

2
pages/list/activitynew/index.wxml

@ -85,7 +85,7 @@
</picker>
</view> -->
</view>
<view class="activity-list activity-list1" style="padding-top: 27rpx;">
<view class="activity-list activity-list1">
<view class="movie-types" wx:if="{{type==4&&false}}">
<view bindtap="changeMovieType" data-type='1' class="movie-type {{movieType==1?'active':''}}">热映</view>
<view bindtap="changeMovieType" data-type='2' class="movie-type {{movieType==2?'active':''}}">影院</view>

1
pages/order/components/contact/index.js

@ -97,6 +97,7 @@ Component({
this.setData({
phone:res.data.mobile
})
console.log('setLinkman',this.properties.is_authentication)
this.triggerEvent("setLinkman",{phone:this.data.phone})
}
})

1
pages/order/scene/index.js

@ -226,6 +226,7 @@ Page({
this.setData({
phone:e.detail.phone
})
console.log('setphone', e.detail.phone)
}else {
console.log(e);
let linkmanList = e.detail;

1
pages/pbService/aiHelpYou/index.js

@ -63,6 +63,7 @@ Page({
},
setUrl (url) {
console.log(url)
this.setData({
webUrl:url
})

28
project.private.config.json

@ -6,6 +6,20 @@
"condition": {
"miniprogram": {
"list": [
{
"name": "subPackages/feiyiNew/CGCIndex/index",
"pathName": "subPackages/feiyiNew/index",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "subPackages/index/index",
"pathName": "subPackages/indexGQ/index",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "subPackages/password/setting/setting",
"pathName": "subPackages/password/setting/setting",
@ -34,13 +48,6 @@
"launchMode": "default",
"scene": null
},
{
"name": "subPackages/feiyiNew/CGCIndex/index",
"pathName": "subPackages/feiyiNew/CGCIndex/index",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "subPackageCheckPoint/pages/index/index",
"pathName": "subPackageCheckPoint/pages/index/index",
@ -62,13 +69,6 @@
"launchMode": "default",
"scene": null
},
{
"name": "subPackages/index/index",
"pathName": "subPackages/index/index",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "首页",
"pathName": "subPackages/indexGQ/index",

21
subPackages/feiyiNew/CGCIndex/index.js

@ -54,11 +54,11 @@ Page({
getBanner: function() {
// 大banner
commonApi._post("adv/getAdv", {position: 0,type_id: 3}).then(res => {
commonApi._post("adv/getAdv", {position: 7,type_id: 3}).then(res => {
this.setData({banner: res.data || []})
})
// 分类旁的广告
commonApi._post("adv/getAdv", { position: 1,type_id: 3}).then(res => {
commonApi._post("adv/getAdv", { position: 8,type_id: 3}).then(res => {
this.setData({xiaobanner: res.data || [] })
})
},
@ -154,8 +154,8 @@ Page({
commonApi._post("travels/getList", {
page_no: 0,
page_num: 4,
// type_key: 'feiyishouzha',
type_key: 'someArt',
type_key: 'feiyishouzha',
// type_key: 'someArt',
}).then(res => {
if (res) {
this.setData({handwrittenList: res.data.rows || [] })
@ -168,8 +168,8 @@ Page({
commonApi._post("multimedia/media_list", {
limit: 1,
page: 1,
class_id: 139,
// class_id: 140,
// class_id: 139,
class_id: 140,
type: 1,
}).then(res => {
if (res) {
@ -194,15 +194,16 @@ Page({
this.setData({hotIndex: index})
let param = {
apiUrl: 'product/get_product_by_tag',
limit: 10,offset: 0,tag_id: 363,
// tag_id: 642
limit: 100,offset: 0,
// tag_id: 363,
tag_id: 642
}
if (index == 1) {
param = {
apiUrl: "multimedia/media_list",
limit: 100,page: 1,type: 1,
class_id: 139,
// class_id: 141,
// class_id: 139,
class_id: 141,
}
}

10
subPackages/feiyiNew/CGCIndex/index.wxml

@ -21,7 +21,7 @@
</view>
<view class="menu-right">
<swiper class="swiper" autoplay="{{true}}" interval="{{3000}}" duration="{{300}}" >
<block wx:for="{{banner}}" wx:key="index">
<block wx:for="{{xiaobanner}}" wx:key="index">
<swiper-item bindtap="bannerClick" data-item="{{item}}">
<image src="{{item.head_img}}" mode="scaleToFill"></image>
</swiper-item>
@ -50,7 +50,7 @@
mode="" style="width: 59rpx;height: 20rpx;"
bind:tap="goMoreList" data-url="{{'/subPackages/feiyiNew/CGCTime/index'}}"></image>
</view>
<view class="time-box" style="background-image: url({{SGVideo.head_img}});"
<view class="time-box" wx:if="{{SGVideo&&SGVideo.head_img}}" style="background-image: url({{SGVideo.head_img}});"
bindtap="goPlayVideo" data-item="{{SGVideo}}">
<image src="https://static.ticket.sz-trip.com/cgc/images/index/play.png" class="play"></image>
</view>
@ -67,8 +67,14 @@
<view class="hot-list-item" wx:for="{{2}}" wx:for-index="number" wx:key="number">
<view wx:if="{{index%2==number}}" data-item="{{item}}" wx:for="{{hotList}}" wx:key="id"
class="hot-data" bindtap="goDetail" data-type="{{hotIndex==0?'post':'video'}}">
<view style="position: relative;height: fit-content;">
<image class="hot-data-image" src="{{item.headimg}}" mode="widthFix"></image>
<image wx:if="{{hotIndex==1}}" src="https://static.ticket.sz-trip.com/cgc/images/index/play.png" class="play"></image>
</view>
<view class="hot-data-title textOver">{{item.title}}</view>
</view>
</view>

2
subPackages/feiyiNew/CGCIndex/index.wxss

@ -81,7 +81,7 @@ page{
position: relative;
margin-top: 20rpx;
}
.time-box .play {
.play {
position: absolute;
top: 0;
bottom: 0;

8
subPackages/feiyiNew/CGCLetter/index.js

@ -45,10 +45,12 @@ Page({
commonApi._post("travels/getList", {
page_no: this.data.page_no,
page_num: 10,
// type_key: 'feiyishouzha',
type_key: 'someArt',
type_key: 'feiyishouzha',
// type_key: 'someArt',
}).then(res => {
if (res) {
this.data.page_no++
this.setData({list:list.concat(res.data.rows||[])})
if (res.data.rows.length<10) {
this.data.haveMore = false
@ -59,7 +61,7 @@ Page({
// 获取头图
getHeaderImg: function () {
commonApi._post("multimedia/detail", {id: 2360}).then(res=>{
if (res) {
if (res &&res.data &&res.data.head_img) {
this.setData({headImg: res.data.head_img})
}
})

4
subPackages/feiyiNew/CGCLetter/index.wxml

@ -13,8 +13,8 @@
<view class="textOver subtitle">{{item.subtitle}}</view>
<view class="letter-user">
<view style="display: flex;align-items: center;">
<image style="width: 48rpx;height: 48rpx;margin-right: 8rpx;" src="{{item.avatar}}" mode="aspectFill"></image>
<text>{{item.nickname}}</text>
<!-- <image style="width: 48rpx;height: 48rpx;margin-right: 8rpx;" src="{{item.avatar || 'https://static.ticket.sz-trip.com/tongli/images/index/user.png'}}" mode="aspectFill"></image>
<text>{{item.nickname}}</text> -->
</view>
<view style="display: flex;align-items: center;color: #848484;">
<text class="iconfont icon-aixin"></text>

5
subPackages/feiyiNew/CGCTime/index.js

@ -39,11 +39,12 @@ Page({
commonApi._post("multimedia/media_list", {
limit: 10,
page: this.data.page_no,
class_id: 139,
// class_id: 140,
// class_id: 139,
class_id: 140,
type: 1,
}).then(res => {
if (res) {
this.data.page_no++
this.setData({list:list.concat(res.data.data||[])})
if (res.data.data.length<10) {
this.data.haveMore = false

8
subPackages/feiyiNew/CGCTime/index.wxml

@ -6,12 +6,12 @@
</view>
<view class="content">
<view bindtap="gotoDetail" data-item="{{item}}" class="item" wx:for="{{list}}">
<view bindtap="gotoDetail" data-item="{{item}}" class="item" wx:for="{{list}}" wx:key="index">
<view style="display: flex;align-items: center;">
<image style="width: 48rpx;height: 48rpx;margin-right: 8rpx;" src="{{item.avatar}}" mode="aspectFill"></image>
<!-- <view style="display: flex;align-items: center;">
<image style="width: 48rpx;height: 48rpx;margin-right: 8rpx;" src="https://static.ticket.sz-trip.com/tongli/images/index/user.png" mode="aspectFill"></image>
<text>君到苏州</text>
</view>
</view> -->
<view class="textOver2 title">{{item.title}}</view>
<view class="video-image">
<image src="{{item.head_img}}" mode="asectFill"></image>

3
subPackages/feiyiNew/index.js

@ -393,7 +393,8 @@ Page({
// 获取左侧二级分类
getType() {
commonApi._post("product/tag_list",{
pid:5, //父标签的ID
// pid:645, //父标签的ID
pid: 5,
}).then(res=>{
this.setData({
typeList:res.data

1
subPackages/postSearch/index.js

@ -40,6 +40,7 @@ Page({
type='1'
} else {
id = '5'
// id = '645'
type='2'
}
this.setData({

Loading…
Cancel
Save