Myth 5 years ago
parent
commit
7315716335
  1. 3
      app.json
  2. 180
      pages/activity/artfestival/index.js
  3. 3
      pages/activity/artfestival/index.json
  4. 40
      pages/activity/artfestival/index.wxml
  5. 115
      pages/activity/artfestival/index.wxss
  6. 95
      pages/activity/redlist/index.js
  7. 3
      pages/activity/redlist/index.json
  8. 16
      pages/activity/redlist/index.wxml
  9. 78
      pages/activity/redlist/index.wxss
  10. 287
      pages/activity/subway/index.js
  11. 5
      pages/activity/subway/index.json
  12. 33
      pages/activity/subway/index.wxml
  13. 185
      pages/activity/subway/index.wxss
  14. 10
      pages/group/index.js
  15. 9
      pages/group/info/index.js
  16. 14
      pages/list/activitynew/index.wxml
  17. 40
      pages/list/activitynew/index.wxss
  18. 2
      project.config.json
  19. 10
      project.private.config.json
  20. 4
      utils/https.js

3
app.json

@ -122,6 +122,9 @@
"pages/activity/springten/list/index", "pages/activity/springten/list/index",
"pages/activity/springten/index", "pages/activity/springten/index",
"pages/activity/newarrival/index", "pages/activity/newarrival/index",
"pages/activity/artfestival/index",
"pages/activity/redlist/index",
"pages/activity/subway/index",
"pages/kj/index", "pages/kj/index",
"pages/kj/his/index", "pages/kj/his/index",
"pages/kj/info/index", "pages/kj/info/index",

180
pages/activity/artfestival/index.js

@ -0,0 +1,180 @@
// pages/activity/artfestival/index.js
import commonApi from "../../../utils/https/common"
let app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
index:1,
page:1,
total:1,
list:[],
left:[],
right:[],
imgIndex:-1,
leftHeight:0,
rightHeight:0,
ajaxFlag:true
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.getList()
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
getList:function(){
if((this.data.left.length+this.data.right.length)>=this.data.total || !this.data.ajaxFlag) return;
this.setData({
ajaxFlag:false
})
commonApi._post("multimedia/media_list",{
page:this.data.page,
limit:10,
tenscenic_id:0,
class_id:this.data.index,
type:2
}).then(res=>{
wx.showLoading({
title: '加载中',
})
this.setData({
total:res.data.total,
page:this.data.page+1,
list:res.data.data,
imgIndex:0
})
})
},
imageLoad:function(e){
if(this.data.imgIndex==-1) return;
let h = 304 * e.detail.height/e.detail.width + 33 + 26,leftHeight=this.data.leftHeight,rightHeight = this.data.rightHeight,left=this.data.left,right=this.data.right;
let item = this.data.list[this.data.imgIndex];
item.h = h - 33 - 26;
if(leftHeight<=rightHeight){
left.push(item);
leftHeight = leftHeight + h;
}
else {
right.push(item);
rightHeight = rightHeight + h;
}
this.setData({
// imgIndex:this.data.imgIndex+1,
left:left,
right:right,
leftHeight:leftHeight,
rightHeight:rightHeight
})
if(this.data.imgIndex>=this.data.list.length-1){
wx.hideLoading({
});
this.setData({
ajaxFlag:true
})
}
else {
this.setData({
imgIndex:this.data.imgIndex+1
})
}
},
changeType:function(e){
let index = e.currentTarget.dataset.type;
this.setData({
list:[],
total:1,
page:1,
index:index,
left:[],
right:[],
leftHeight:0,
rightHeight:0,
imgIndex:-1,
ajaxFlag:true
})
this.getList()
},
goTop:function(){
wx.pageScrollTo({
duration: 200,
scrollTop:0
})
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
previewImg:function(e){
let item = e.currentTarget.dataset.item;
wx.showLoading({
title: '加载中',
})
wx.downloadFile({
url: item.head_img,
success:function(r){
console.log(r)
wx.previewImage({
urls: [r.tempFilePath],
current:r.tempFilePath
})
},
complete:function(){
wx.hideLoading({
})
}
})
},
goVr:function(){
app.globalData.weburl = "https://video.9jiexia.com/QuanJMY/suzhou/suzhoumeishuguan/index.html"
wx.navigateTo({
url: '/pages/pbService/web/index'
})
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
this.getList()
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})

3
pages/activity/artfestival/index.json

@ -0,0 +1,3 @@
{
"usingComponents": {}
}

40
pages/activity/artfestival/index.wxml

@ -0,0 +1,40 @@
<!--pages/activity/artfestival/index.wxml-->
<image class="main-img" src="https://m.cloud.sz-trip.com/static/images/activity/artfestival/top.png" mode="widthFix"></image>
<image wx:if="{{imgIndex>-1 && imgIndex<list.length}}" src="{{list[imgIndex].head_img}}?x-oss-process=image/resize,w_500,m_lfit" bindload="imageLoad" mode="widthFix" class="testimg"></image>
<view class="vr-box" bindtap="goVr">点击体验VR观展</view>
<view class="menus">
<view bindtap="changeType" data-type="1" class="menu{{index==1?' active':''}}">
<image src="https://m.cloud.sz-trip.com/static/images/activity/artfestival/bg{{index==1?'1':'0'}}.png" mode="aspectFill"></image>
<view>美术作品</view>
</view>
<view bindtap="changeType" data-type="3" class="menu{{index==3?' active':''}}">
<image src="https://m.cloud.sz-trip.com/static/images/activity/artfestival/bg{{index==3?'1':'0'}}.png" mode="aspectFill"></image>
<view>书法篆刻</view>
</view>
<view bindtap="changeType" data-type="2" class="menu{{index==2?' active':''}}">
<image src="https://m.cloud.sz-trip.com/static/images/activity/artfestival/bg{{index==2?'1':'0'}}.png" mode="aspectFill"></image>
<view>评委作品</view>
</view>
<view bindtap="changeType" data-type="4" class="menu{{index==4?' active':''}}">
<image src="https://m.cloud.sz-trip.com/static/images/activity/artfestival/bg{{index==4?'1':'0'}}.png" mode="aspectFill"></image>
<view>特邀作品</view>
</view>
</view>
<view class="list">
<view class="list-left">
<view class="list-item" bindtap="previewImg" data-item="{{item}}" wx:for="{{left}}">
<image style="height:{{item.h}}rpx" src="{{item.head_img}}?x-oss-process=image/resize,w_500,m_lfit" mode="aspectFill"></image>
<view class="img-text textOver">{{item.title}}</view>
</view>
</view>
<view class="list-left">
<view class="list-item" bindtap="previewImg" data-item="{{item}}" wx:for="{{right}}">
<image style="height:{{item.h}}rpx" src="{{item.head_img}}?x-oss-process=image/resize,w_500,m_lfit" mode="aspectFill"></image>
<view class="img-text textOver">{{item.title}}</view>
</view>
</view>
</view>
<view class="nomore" wx:if="{{(left.length+right.length)>=total}}">没有更多数据了</view>
<image src="https://m.cloud.sz-trip.com/static/images/activity/artfestival/text.png" mode="widthFix" class="bottomimg"></image>
<image bindtap="goTop" src="https://m.cloud.sz-trip.com/static/images/activity/artfestival/topbtn.png" mode="widthFix" class="btnimg"></image>
<view style="height:1rpx"></view>

115
pages/activity/artfestival/index.wxss

@ -0,0 +1,115 @@
/* pages/activity/artfestival/index.wxss */
.main-img {
display: block;
width: 100%;
position: absolute;
left: 0;
top: 0;
}
.menus {
display: flex;
margin: 0 30rpx;
margin-top: 354rpx;
margin-bottom: 46rpx;
justify-content: space-between;
}
.menu {
position: relative;
width: 153rpx;
line-height: 53rpx;
font-size: 32rpx;
color: #fff;
text-align: center;
}
.menu image {
position: absolute;
left: 0;
top: 0;
width: 153rpx;
height: 53rpx;
}
.menu.active {
font-weight: 500;
color: #C9161E;
}
.menu view {
position: relative;
z-index: 1;
}
page {
background: url(https://m.cloud.sz-trip.com/static/images/activity/artfestival/bg.png);
background-size: 100%;
background-repeat: repeat-y;
}
.list {
margin: 0 30rpx;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
min-height: 100rpx;
}
.list-left {
width: 330rpx;
}
.list-item {
position: relative;
padding: 13rpx;
background: #FEE5C6;
margin-bottom: 33rpx;
}
.list-item image {
width: 100%;
display: block;
}
.img-text {
line-height: 46rpx;
font-size: 27rpx;
color: #fff;
padding: 0 15rpx;
position: absolute;
left: 13rpx;
right: 13rpx;
bottom: 40rpx;
background: rgba(0, 0, 0, 0.3);
}
.testimg {
position: absolute;
width: 304rpx;
opacity: 0;
z-index: -1;
display: block;
}
.bottomimg {
display: block;
width: 356rpx;
margin: 40rpx auto;
}
.btnimg {
position: fixed;
right: 30rpx;
bottom: 70rpx;
width: 84rpx;
display: block;
z-index: 2;
}
.nomore {
text-align: center;
margin-top: 30rpx;
font-size: 26rpx;
color: #ddd;
}
.vr-box {
width: 240rpx;
text-align: center;
line-height: 56rpx;
font-size: 25rpx;
border-radius: 29rpx;
border: 1px solid #fff;
color: #fff;
position: absolute;
left: 50%;
margin-left: -120rpx;
z-index: 1;
top: 236rpx;
box-sizing: border-box;
}

95
pages/activity/redlist/index.js

@ -0,0 +1,95 @@
// pages/activity/redlist/index.js
import commonApi from "../../../utils/https/common"
import util from "../../../utils/util"
Page({
/**
* 页面的初始数据
*/
data: {
list:[],
isMore:true
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.getList()
},
gotoDetail:function(e){
util.gotoDetail(e.currentTarget.dataset.item)
},
getList:function(){
if(!this.data.isMore) return;
commonApi._post("product/get_product_by_tag",{
tag_id:66,
offset:this.data.list.length,
limit:10
}).then(res=>{
res.data.list.map(item=>{
item.display_tags = item.display_tags?item.display_tags.split(","):[];
item.display_tags = item.display_tags.splice(0,2);
})
this.setData({
isMore:res.data.list.length==10,
list:this.data.list.concat(res.data.list)
})
})
},
goTop:function(){
wx.pageScrollTo({
duration: 200,
scrollTop:0
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
this.getList()
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})

3
pages/activity/redlist/index.json

@ -0,0 +1,3 @@
{
"usingComponents": {}
}

16
pages/activity/redlist/index.wxml

@ -0,0 +1,16 @@
<!--pages/activity/redlist/index.wxml-->
<image src="https://sz-qd.oss-cn-hangzhou.aliyuncs.com/xcxImages/listtop/redlist.png" mode="widthFix" class="mainimg"></image>
<view class="item" wx:for="{{list}}" bindtap="gotoDetail" data-item="{{item}}">
<image src="{{item.headimg}}" mode="aspectFill" class="mainimg"></image>
<view class="item-info">
<view class="item-title textOver">{{item.title}}</view>
<view class="tags">
<view class="tag textOver" wx:for="{{item.display_tags}}">{{item}}</view>
</view>
<view class="product-bottom">
<view class="price"><text>¥</text><text>{{item.price/100}}</text>起</view>
<view class="btn">立即购买</view>
</view>
</view>
</view>
<image bindtap="goTop" mode="widthFix" src="https://m.cloud.sz-trip.com/static/images/activity/redTravel/return.png" class="top"></image>

78
pages/activity/redlist/index.wxss

@ -0,0 +1,78 @@
/* pages/activity/redlist/index.wxss */
.mainimg {
display: block;
width: 100%;
}
page {
background: #b9080e;
}
.item {
margin: 20rpx 30rpx;
border-radius: 20rpx;
overflow: hidden;
background: white;
}
.item image {
height: 300rpx;
border-radius: 20rpx;
}
.item-info {
margin: 20rpx;
margin-top: 10rpx;
}
.title {
font-size: 31rpx;
font-weight: bold;
}
.tags {
display: flex;
align-items: center;
font-size: 21rpx;
margin-top: 10rpx;
margin-bottom: 20rpx;
color: #E40008;
}
.tag {
line-height: 34rpx;
padding: 0 17rpx;
border: 1rpx solid;
border-radius: 6rpx;
margin-right: 10rpx;
}
.product-bottom {
display: flex;
justify-content: space-between;
align-items: center;
}
.product-bottom text {
color: #E40008;
}
.price {
font-size: 27rpx;
color: #666666;
}
.price text:nth-child(2){
font-weight: bold;
font-size: 40rpx;
}
.price text:nth-child(1){
font-size: 30rpx;
}
.btn {
width: 200rpx;
line-height: 60rpx;
background: linear-gradient(0deg, #B9080E, #E83632);
border-radius: 30rpx;
text-align: center;
color: #FFEE8C;
font-size: 28rpx;
font-weight: bold;
}
.top {
position: fixed;
z-index: 2;
width: 120rpx;
display: block;
right: 20rpx;
bottom: 50rpx;
}

287
pages/activity/subway/index.js

@ -0,0 +1,287 @@
// pages/activity/subway/index.js
import commonApi from "../../../utils/https/common"
import util from "../../../utils/util"
Page({
/**
* 页面的初始数据
*/
data: {
line:0,
colors:["#2EAE4F","#00A5AF","#E99A10","#278AE7","#C652A7"],
tagIndex:0,
isFixed:false,
tags:[
[{
id:74,
name:"全部"
},{
id:31,
name:"木渎站"
},{
id:32,
name:"西环路站"
},{
id:33,
name:"养育巷站"
},{
id:34,
name:"乐桥站"
},{
id:35,
name:"临顿路站"
},{
id:36,
name:"相门站"
},{
id:37,
name:"东方之门站"
},{
id:38,
name:"文化博览中心站"
},{
id:39,
name:"时代广场站"
}],[{
id:75,
name:"全部"
},{
id:40,
name:"山塘街站"
},{
id:41,
name:"石路站"
},{
id:42,
name:"桐泾公园站"
},{
id:43,
name:"独墅湖邻里中心站"
},{
id:44,
name:"月亮湾站"
},{
id:45,
name:"桑田岛站"
}],[{
id:76,
name:"全部"
},{
id:46,
name:"文昌路站"
},{
id:47,
name:"索山桥西站"
},{
id:48,
name:"石湖北站"
},{
id:48,
name:"石湖北站"
},{
id:49,
name:"新郭站"
},{
id:50,
name:"迎春路站"
},{
id:51,
name:"李公堤西站"
},{
id:52,
name:"东方之门站"
},{
id:53,
name:"唯亭站"
}],[{
id:77,
name:"全部"
},{
id:54,
name:"龙道浜站"
},{
id:55,
name:"孙武纪念园站"
},{
id:56,
name:"北寺塔站"
},{
id:57,
name:"乐桥站"
},{
id:58,
name:"三元坊站"
},{
id:59,
name:"南门站"
},{
id:60,
name:"苏州湾东站"
},{
id:61,
name:"松陵大道站"
},{
id:62,
name:"同里站"
},{
id:63,
name:"越溪站"
}],[{
id:78,
name:"全部"
},{
id:64,
name:"太湖香山站"
},{
id:65,
name:"胥口站"
},{
id:66,
name:"灵岩山站"
},{
id:67,
name:"索山桥西站"
},{
id:68,
name:"新市桥站"
},{
id:69,
name:"南门站"
},{
id:70,
name:"李公堤南站"
},{
id:71,
name:"斜塘站"
},{
id:72,
name:"苏州奥体中心站"
},{
id:73,
name:"阳澄湖南站"
}]
],
list:[],
total:1
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.getList()
},
changeLine:function(e){
this.setData({
line:e.currentTarget.dataset.index,
tagIndex:0,
list:[],
total:1
})
this.getList();
},
changeTag:function(e){
this.setData({
tagIndex:e.currentTarget.dataset.index,
list:[],
total:1
})
this.getList();
},
getList:function(){
if(this.data.list.length>=this.data.total) return;
commonApi._post('scene/get_scene_by_tag',{
tag_id:this.data.tags[this.data.line][this.data.tagIndex].id,
limit:10,
offset:this.data.list.length
}).then(res=>{
this.setData({
total:res.data.count,
list:this.data.list.concat(res.data.list)
})
})
},
toTop:function(){
wx.pageScrollTo({
duration: 200,
scrollTop:0
})
},
showMap:function(e){
wx.showLoading({
title: '加载中',
})
let src = e.currentTarget.dataset.src;
wx.downloadFile({
url: src,
success:function(e){
wx.previewImage({
urls: [e.tempFilePath],
current:e.tempFilePath
})
},
complete:function(){
wx.hideLoading({
})
}
})
},
gotoDetail:function(e){
let item = e.currentTarget.dataset.item;
util.gotoDetail(item)
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
onPageScroll:function(e){
let sys = wx.getSystemInfoSync(),ratio = sys.screenWidth/750,height = 949 * ratio;
this.setData({
isFixed:e.scrollTop>=height
})
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})

5
pages/activity/subway/index.json

@ -0,0 +1,5 @@
{
"usingComponents": {
"title":"/pages/component/TitleHeader"
}
}

33
pages/activity/subway/index.wxml

@ -0,0 +1,33 @@
<!--pages/activity/subway/index.wxml-->
<title title="坐着地铁游苏州"></title>
<image style="position:absolute;left:0;height:994rpx" class="mainimg" src="https://sz-qd.oss-cn-hangzhou.aliyuncs.com/xcxImages/subway/top.png" mode="aspectFill"></image>
<view style="height:949rpx"></view>
<view class="lines{{isFixed?' fixed-lines':''}}">
<view bindtap="changeLine" data-index="{{index}}" class="line{{index==line?' active':''}}" wx:for="{{5}}">{{index+1}}号线</view>
</view>
<view wx:if="{{isFixed}}" style="height:110rpx"></view>
<view class="content" id="content" style="background:{{colors[line]}}">
<image mode="widthFix" class="mainimg" src="https://sz-qd.oss-cn-hangzhou.aliyuncs.com/xcxImages/subway/title{{line+1}}.png"></image>
<image bindtap="showMap" data-src="https://sz-qd.oss-cn-hangzhou.aliyuncs.com/xcxImages/subway/map{{line+1}}-1.png" class="mapimg" src="https://sz-qd.oss-cn-hangzhou.aliyuncs.com/xcxImages/subway/map{{line+1}}.png"></image>
<view class="tags">
<view bindtap="changeTag" style="color:{{colors[line]}}" data-index="{{index}}" class="tag{{tagIndex==index?' active':''}}" wx:for="{{tags[line]}}"><view class="tagtext">{{item.name}}</view><image wx:if="{{tagIndex==index}}" src="https://sz-qd.oss-cn-hangzhou.aliyuncs.com/xcxImages/subway/arrow.png"></image></view>
<view style="width:1rpx;height:1rpx;flex-shrink:0"></view>
</view>
<view class="item" wx:for="{{list}}" bindtap="gotoDetail" data-item="{{item}}" style="background-image:url('https://sz-qd.oss-cn-hangzhou.aliyuncs.com/xcxImages/subway/bg{{line+1}}.png');background-size:100% 100%;">
<image src="{{item.headimg}}" class="headimg" mode="aspectFill"></image>
<view class="right-info">
<view class="title textOver">{{item.title}}</view>
<view style="color:{{colors[line]}} !important" class="subtitle textOver">{{item.display_tags}}</view>
<view class="right-bottom"><view style="background:{{colors[line]}}">查看详情</view></view>
</view>
</view>
<view wx:if="{{list.length<total}}" class="morebtn" bindtap="getList">点击查看更多 <text>>></text></view>
<view style="height:1rpx"></view>
</view>
<image src="https://sz-qd.oss-cn-hangzhou.aliyuncs.com/xcxImages/subway/text.png" mode="widthFix" class="textimg"></image>
<view style="height:53rpx"></view>
<image src="https://sz-qd.oss-cn-hangzhou.aliyuncs.com/xcxImages/subway/bottom.png" mode="widthFix" class="mainimg bottomimg"></image>
<view class="topbtn" bindtap="toTop">
<image mode="wdithFix" src="https://sz-qd.oss-cn-hangzhou.aliyuncs.com/xcxImages/subway/totop.png"></image>
<view>顶部</view>
</view>

185
pages/activity/subway/index.wxss

@ -0,0 +1,185 @@
/* pages/activity/subway/index.wxss */
.mainimg {
display: block;
width: 100%;
}
page {
background: #D4F0FF;
font-size: 32rpx;
position: relative;
}
.lines {
padding: 0 27rpx;
display: flex;
align-items: center;
background: #5BB7E8;
justify-content: space-between;
color: #fff;
height: 67rpx;
margin-bottom: 43rpx;
position: relative;
z-index: 1;
}
.line {
width: 120rpx;
line-height: 47rpx;
border-radius: 23rpx;
text-align: center;
}
.line.active {
color: #0789D0;
background: white;
font-weight: bold;
}
.content {
margin: 0 27rpx;
margin-bottom: 60rpx;
border-radius: 13rpx;
overflow: hidden;
position: relative;
z-index: 1;
}
.mapimg {
display: block;
width: 665rpx;
margin: 0 auto;
margin-top: 11rpx;
}
.tags {
display: flex;
overflow-x: auto;
height: 110rpx;
margin-left: 16rpx;
}
.tag {
margin-right: 13rpx;
flex-shrink: 0;
position: relative;
color: #2EAE4F;
}
.tagtext {
padding: 0 20rpx;
background: white;
border-radius: 25rpx;
height: 50rpx;
margin-top: 30rpx;
line-height: 50rpx;
}
.tag.active .tagtext{
font-weight: 500;
background: rgba(0, 0, 0, 0.4);
color: #fff;
}
.tag.active image {
position: absolute;
width: 24rpx;
height: 13rpx;
left: 50%;
margin-left: -12rpx;
top: 78rpx;
display: block;
}
.item {
display: flex;
width: 665rpx;
height: 207rpx;
margin: 0 auto;
margin-bottom: 17rpx;
background-color: white;
border-radius: 10rpx;
}
.item .headimg {
width: 266rpx;
height: 207rpx;
display: block;
flex-shrink: 0;
margin-right: 33rpx;
}
.right-info {
width: 236rpx;
margin-right: 30rpx;
flex: 1;
}
.title {
font-size: 36rpx;
font-weight: 500;
color: #2A2A2A;
margin-top: 20rpx;
}
.subtitle {
font-size: 24rpx !important;
color: #00A5AF;
margin-top: 10rpx;
line-height: 32rpx;
height: 32rpx;
}
.right-bottom {
display: flex;
justify-content: flex-end;
}
.right-bottom view {
width: 153rpx;
line-height: 47rpx;
background: #00A5AF;
border-radius: 23rpx;
text-align: center;
color: #FFFFFF;
font-size: 27rpx;
margin-top: 20rpx;
}
.morebtn {
width: 227rpx;
border: 1rpx solid #FFFFFF;
border-radius: 27rpx;
line-height: 52rpx;
text-align: center;
color: #fff;
font-size: 25rpx;
margin: 30rpx auto;
display: flex;
align-items: center;
justify-content: center;
}
.morebtn text {
font-size: 18rpx;
margin-left: 6rpx;
}
.bottomimg {
position: absolute;
left: 0;
bottom: 0;
}
.textimg {
width: 301rpx;
display: block;
margin: 0 auto;
margin-top: 64rpx;
}
.topbtn {
width: 83rpx;
height: 83rpx;
background: #3795FF;
opacity: 0.7;
border-radius: 50%;
position: fixed;
right: 27rpx;
bottom: 171rpx;
display: flex;
justify-content: center;
align-items: center;
font-size: 25rpx;
color: #fff;
flex-direction: column;
z-index: 2;
}
.topbtn image {
width: 25rpx;
height: 25rpx;
}
.fixed-lines {
position: fixed;
left: 0;
right: 0;
z-index: 2;
margin-top: -949rpx;
}

10
pages/group/index.js

@ -21,10 +21,7 @@ Page({
*/ */
onLoad: function (options) { onLoad: function (options) {
commonApi.user_post("activity.groups/product_list",{ commonApi.user_post("activity.groups/product_list?is_hot=1&page=1&limit=100",{
isHot:1,
page:1,
limit:10
}).then(res=>{ }).then(res=>{
this.setData({ this.setData({
hot:res.data.data hot:res.data.data
@ -33,10 +30,7 @@ Page({
this.getList() this.getList()
}, },
getList:function(){ getList:function(){
commonApi.user_post("activity.groups/product_list",{ commonApi.user_post("activity.groups/product_list&is_hot=0&limit=10&page="+this.data.pageNo,{
isHot:0,
page:this.data.pageNo,
limit:10
}).then(res=>{ }).then(res=>{
this.setData({ this.setData({
list:res.data.data list:res.data.data

9
pages/group/info/index.js

@ -25,8 +25,9 @@ Page({
this.setData({ this.setData({
id:options.id id:options.id
}) })
commonApi.user_post('activity.groups/detail?id='+options.id,{ commonApi.user_post('activity.groups/detail?id='+options.id+'&team_id='+options.team_id,{
id:options.id id:options.id,
team_id:options.team_id
}).then(res=>{ }).then(res=>{
this.setData({ this.setData({
info:res.data.detail, info:res.data.detail,
@ -160,7 +161,7 @@ Page({
item.sku.event_price = this.data.info.event_price; item.sku.event_price = this.data.info.event_price;
item.maxNum = this.data.info.purchase_quantity; item.maxNum = this.data.info.purchase_quantity;
}) })
// app.globalData.gp_id = this.data.info.id; app.globalData.gp_id = this.data.info.id;
app.globalData.team_id = item.team_id; app.globalData.team_id = item.team_id;
if(this.data.info.type=='post'){ if(this.data.info.type=='post'){
app.globalData.postProduct = product; app.globalData.postProduct = product;
@ -296,7 +297,7 @@ Page({
if(e.from=='button' || this.data.myIngList.status==1){ if(e.from=='button' || this.data.myIngList.status==1){
return { return {
title: "我正在发起团购,快来参加吧", // 默认是小程序的名称(可以写slogan等) title: "我正在发起团购,快来参加吧", // 默认是小程序的名称(可以写slogan等)
path: "/pages/group/info/index?gpId="+this.data.info.id, // 默认是当前页面,必须是以‘/’开头的完整路径 path: "/pages/group/info/index?id="+this.data.info.id+'&team_id='+this.data.myIngList.team_list[0].team_id, // 默认是当前页面,必须是以‘/’开头的完整路径
imageUrl: this.data.info.headimg, //自定义图片路径,可以是本地文件路径、代码包文件路径或者网络图片路径,支持PNG及JPG,不传入 imageUrl 则使用默认截图。显示图片长宽比是 5:4 imageUrl: this.data.info.headimg, //自定义图片路径,可以是本地文件路径、代码包文件路径或者网络图片路径,支持PNG及JPG,不传入 imageUrl 则使用默认截图。显示图片长宽比是 5:4
} }
} }

14
pages/list/activitynew/index.wxml

@ -14,7 +14,7 @@
<view class="search-btn" bindtap="search">搜索</view> <view class="search-btn" bindtap="search">搜索</view>
</view> </view>
</view> </view>
<view class="types"> <view scroll-x enable-flex class="types">
<view class="type-item" bindtap="changeType" data-type="2"> <view class="type-item" bindtap="changeType" data-type="2">
<image src="https://static.ticket.sz-trip.com/xcxImages/activitynew/icon2{{type==2?'_active':''}}.png" mode="widthFix"></image> <image src="https://static.ticket.sz-trip.com/xcxImages/activitynew/icon2{{type==2?'_active':''}}.png" mode="widthFix"></image>
<view style="{{type==2?'color:#C155E9':''}}">展览</view> <view style="{{type==2?'color:#C155E9':''}}">展览</view>
@ -23,17 +23,17 @@
<image src="https://static.ticket.sz-trip.com/xcxImages/activitynew/icon3{{type==3?'_active':''}}.png" mode="widthFix"></image> <image src="https://static.ticket.sz-trip.com/xcxImages/activitynew/icon3{{type==3?'_active':''}}.png" mode="widthFix"></image>
<view style="{{type==3?'color:#358FE4':''}}">景区</view> <view style="{{type==3?'color:#358FE4':''}}">景区</view>
</view> </view>
<view class="type-item" bindtap="changeType" data-type="4"> <view class="type-item" bindtap="changeType" data-type="1">
<image src="https://static.ticket.sz-trip.com/xcxImages/activitynew/icon4{{type==4?'_active':''}}.png" mode="widthFix"></image> <image src="https://static.ticket.sz-trip.com/xcxImages/activitynew/icon1{{type==1?'_active':''}}.png" mode="widthFix"></image>
<view style="{{type==4?'color:#63B71F':''}}">电影</view> <view style="{{type==1?'color:#FFB423':''}}">演出</view>
</view> </view>
<view class="type-item" bindtap="changeType" data-type="5"> <view class="type-item" bindtap="changeType" data-type="5">
<image src="https://static.ticket.sz-trip.com/xcxImages/activitynew/icon5{{type==5?'_active':''}}.png" mode="widthFix"></image> <image src="https://static.ticket.sz-trip.com/xcxImages/activitynew/icon5{{type==5?'_active':''}}.png" mode="widthFix"></image>
<view style="{{type==5?'color:#0B898E':''}}">讲座</view> <view style="{{type==5?'color:#0B898E':''}}">讲座</view>
</view> </view>
<view class="type-item" bindtap="changeType" data-type="1"> <view class="type-item" bindtap="changeType" data-type="4">
<image src="https://static.ticket.sz-trip.com/xcxImages/activitynew/icon1{{type==1?'_active':''}}.png" mode="widthFix"></image> <image src="https://static.ticket.sz-trip.com/xcxImages/activitynew/icon4{{type==4?'_active':''}}.png" mode="widthFix"></image>
<view style="{{type==1?'color:#FFB423':''}}">演出</view> <view style="{{type==4?'color:#63B71F':''}}">电影</view>
</view> </view>
<view class="type-item" bindtap="changeType" data-type="6" style="margin-right:30rpx"> <view class="type-item" bindtap="changeType" data-type="6" style="margin-right:30rpx">
<image src="https://static.ticket.sz-trip.com/xcxImages/activitynew/icon6{{type==6?'_active':''}}.png" mode="widthFix"></image> <image src="https://static.ticket.sz-trip.com/xcxImages/activitynew/icon6{{type==6?'_active':''}}.png" mode="widthFix"></image>

40
pages/list/activitynew/index.wxss

@ -4,22 +4,50 @@ page {
background: #fff; background: #fff;
} }
.types { .types {
display: flex;
/* justify-content: space-between; */ /* justify-content: space-between; */
align-items: center;
background: #fff; background: #fff;
font-size: 28rpx; display: flex;
color: #666; color: #666;
padding: 30rpx; width: 750rpx;
overflow-x: auto; overflow-x: scroll;
border-bottom: 1rpx solid #d8d8d8; border-bottom: 1rpx solid #d8d8d8;
font-size: 0;
padding-top: 30rpx;
height: 180rpx;
position: relative;
-webkit-overflow-scrolling: auto;
}
/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
.types::-webkit-scrollbar
{
width: 750rpx;
height: 6rpx;
background-color: hsl(0, 0%, 100%);
}
/*定义滑块 内阴影+圆角*/
.types::-webkit-scrollbar-thumb
{
border-radius: 6rpx;
background-color: #0B898E;
border-radius: 3rpx;
}
.types::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 3rpx rgba(0, 0, 0, 0.3);
box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.1);
border-radius: 3rpx;
background-color:#ccc;
} }
.type-item { .type-item {
height: 150rpx;
width: 100rpx; width: 100rpx;
text-align: center; text-align: center;
line-height: 27rpx; line-height: 27rpx;
color: #333; color: #333;
margin-right: 65rpx; font-size: 28rpx;
margin-right: 70rpx;
}
.type-item:nth-child(1){
margin-left: 30rpx;
} }
.type-item image { .type-item image {
display: block; display: block;

2
project.config.json

@ -4,7 +4,7 @@
"ignore": [] "ignore": []
}, },
"setting": { "setting": {
"urlCheck": false, "urlCheck": true,
"es6": true, "es6": true,
"enhance": false, "enhance": false,
"postcss": true, "postcss": true,

10
project.private.config.json

@ -31,9 +31,9 @@
"scene": null "scene": null
}, },
{ {
"name": "pages/list/techan/index", "name": "pages/group/info/index",
"pathName": "pages/list/techan/index", "pathName": "pages/group/info/index",
"query": "", "query": "team_id=32&id=26",
"scene": null "scene": null
}, },
{ {
@ -55,8 +55,8 @@
"scene": null "scene": null
}, },
{ {
"name": "pages/pbService/web/index", "name": "pages/activity/subway/index",
"pathName": "pages/pbService/web/index", "pathName": "pages/activity/subway/index",
"query": "id=10973", "query": "id=10973",
"scene": null "scene": null
} }

4
utils/https.js

@ -1,8 +1,8 @@
var app = getApp(); var app = getApp();
import util from "../utils/util" import util from "../utils/util"
import userApi from "../utils/https/user.js"; import userApi from "../utils/https/user.js";
const baseUrl = "https://test.api.cloud.sz-trip.com/api/"; // const baseUrl = "https://test.api.cloud.sz-trip.com/api/";
// const baseUrl = "https://api.cloud.sz-trip.com/api/"; const baseUrl = "https://api.cloud.sz-trip.com/api/";
const orders = ['','weight','distance','sale_number','sale_price','price']; const orders = ['','weight','distance','sale_number','sale_price','price'];
//封装GET请求 //封装GET请求
function _get(url,data) { function _get(url,data) {

Loading…
Cancel
Save