Browse Source

文档修改

master
nige 3 years ago
parent
commit
001146847b
  1. 2
      app.js
  2. 12
      pages/index/index.wxml
  3. 4
      pages/list/activitynew/index.wxml
  4. 3
      pages/list/activitynew/index.wxss
  5. 2
      pages/list/movieticket/index.js
  6. 2
      pages/list/movieticket/list/ticket/index.js
  7. 4
      pages/list/movieticket/list/ticket/index.wxml
  8. 2
      pages/list/scene/index.wxml
  9. 2
      pages/map/index.js
  10. 47
      pages/map/index.wxml
  11. 21
      pages/map/index.wxss
  12. 2
      pages/order/coupon/index.wxml
  13. 34
      pages/order/movie/index.js
  14. 93
      pages/order/movie/index.wxml
  15. 63
      pages/order/movie/index.wxss
  16. 10
      pages/pbService/sceneComfort/index.js
  17. 22
      pages/pbService/sceneComfort/index.wxml
  18. 60
      pages/pbService/sceneComfort/index.wxss
  19. 43
      pages/user/coupon/index.wxml
  20. 38
      pages/user/coupon/index.wxss
  21. 2
      pages/user/user.wxml

2
app.js

@ -21,7 +21,7 @@ App({
unique_key: "wechatxcx"
}).then(res => {
let data = JSON.parse(res.data);
data.isTest = data.isTest76? true : false;
data.isTest = data.isTest78? true : false;
this.globalData.configJson = data
}).then(() => {
// 获取ui配置文件

12
pages/index/index.wxml

@ -211,11 +211,12 @@
<image src="https://static.ticket.sz-trip.com/xcxImages/index/newpb10.png" mode="widthFix"></image>
<view>廉洁地图</view>
</view> -->
<view bindtap="gotoPath" data-event="book_click" data-title="书香借阅" data-path="/pages/pbService/library/index"
<view bindtap="gotoPath" data-event="book_click" data-title="苏影通" data-path="/pages/list/movieticket/index"
class="pbservice-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/newpb5.png" mode="widthFix"></image>
<view>书香借阅</view>
<image src="https://static.ticket.sz-trip.com/jundaosuzhou/images/syt.png" mode="widthFix"></image>
<view>苏影通</view>
</view>
<!-- <view bindtap="gotoPath" data-event="book_click" data-title="文化配送" data-path="/pages/culture/index"
class="pbservice-item">
<image src="https://static.ticket.sz-trip.com/uploads/20220818/e02af6e8bf9170060ed7295d367d72c1.png" mode="widthFix"></image>
@ -236,6 +237,11 @@
<image src="https://static.ticket.sz-trip.com/xcxImages/index/newpb4.png" mode="widthFix"></image>
<view>视觉中心</view>
</view>
<view bindtap="gotoPath" data-event="book_click" data-title="书香借阅" data-path="/pages/pbService/library/index"
class="pbservice-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/newpb5.png" mode="widthFix"></image>
<view>书香借阅</view>
</view>
<view bindtap="gotoUrl" data-event="book_click" data-title="公共文化资源库" data-url="https://m.cloud.sz-trip.com/PublicCulture2022"
class="pbservice-item">

4
pages/list/activitynew/index.wxml

@ -21,7 +21,7 @@
</view>
<view class="type-item" bindtap="changeType" data-type="3">
<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 class="type-item" bindtap="changeType" data-type="1">
<image src="https://static.ticket.sz-trip.com/xcxImages/activitynew/icon1{{type==1?'_active':''}}.png" mode="widthFix"></image>
@ -102,7 +102,7 @@
<view class="textOver2" wx:if="{{item.leading_role}}">主演:{{item.leading_role}}</view>
</view>
<view class="btn">
{{movieType==1?'购':'查看'}}
{{movieType==1?'购':'查看'}}
</view>
</view>
</view>

3
pages/list/activitynew/index.wxss

@ -43,7 +43,7 @@ border-radius: 3rpx;
text-align: center;
line-height: 27rpx;
color: #333;
font-size: 28rpx;
font-size: 24rpx;
margin-right: 70rpx;
}
.type-item:nth-child(1){
@ -125,6 +125,7 @@ background: rgba(11, 137, 142, .1);
.activity-list {
padding: 0 24rpx;
background: #0B898E;
min-height:1300rpx;
}
.acitivity-search-box {
display: flex;

2
pages/list/movieticket/index.js

@ -9,7 +9,7 @@ Page({
type:1,
areas:[],
areaIndex:0,
sort:null,
sort:'distance',
lat:null,
lon:null,
page:1,

2
pages/list/movieticket/list/ticket/index.js

@ -16,7 +16,7 @@ Page({
areaIndex:0,
lat:"",
lon:"",
sort:null,
sort:'distance',
list:[],
title:"",
page:1,

4
pages/list/movieticket/list/ticket/index.wxml

@ -20,11 +20,11 @@
<view class="cinema" wx:for="{{list}}" bindtap="gotoDetail2">
<view class="cinema-title">
<view class="textOver">{{item.title}}</view>
<view class="cinema-price">
<!-- <view class="cinema-price">
<text>¥</text>
<text>{{item.min_price/100}}</text>
<text>起</text>
</view>
</view> -->
</view>
<view class="ciname-location textOver">
<view class="iconfont icon-location"></view>

2
pages/list/scene/index.wxml

@ -8,7 +8,7 @@
<view style="height:30rpx"></view>
<view bindtap="gotoDetail" data-item="{{item}}" wx:for="{{list}}" url="/pages/info/sceneProductInfo/index?id={{item.id}}" class="item">
<image src="{{item.headimg}}" mode="aspectFill"></image>
<view class="no-text" wx:if="{{index<3 && keywords==''}}">NO.{{index+1}}</view>
<!-- <view class="no-text" wx:if="{{index<3 && keywords==''}}">NO.{{index+1}}</view> -->
<view class="status-text" wx:if="{{item.garden_flag_text && item.garden_flag!=1}}">{{item.garden_flag_text}}</view>
<view class="right-info">
<view class="title textOver2">{{item.title}}</view>

2
pages/map/index.js

@ -450,7 +450,7 @@ Page({
mapItem.id = index;
mapItem.info = item;
if(item.type=='red_map'){
mapItem.iconPath = "https://static.ticket.sz-trip.com/uploads/20211022/4bb3b753c625e89e1214105c03390e54.png";
mapItem.iconPath = "https://static.ticket.sz-trip.com/uploads/20230506/054cea53a068545e9e27fa9cd3acbdec.png";
}
else {
mapItem.iconPath = "https://static.ticket.sz-trip.com/xcxImages/map/"+item.type+".png";

47
pages/map/index.wxml

@ -12,40 +12,55 @@
</picker>
<view class="right-menus" style="top:{{seachHeight}}px">
<view class="right-menu-item{{type==1?' active':''}}" bindtap="changeType" data-title="景点" data-type="1">
<text style="color:#0A9947" class="iconfont icon-location"></text>
<text>景点</text>
<!-- <text style="color:#0A9947" class="iconfont icon-location"></text> -->
<image src="{{type==1?'https://static.ticket.sz-trip.com/uploads/20230506/575180365a27f3060e6a15e796229ce9.png':'https://static.ticket.sz-trip.com/uploads/20230506/5ec907e6ff03f558b1f6a3bf96894ccb.png'}}" mode="aspectFill"/>
<text class="text">景点</text>
</view>
<view class="right-menu-item{{type==2?' active':''}}" bindtap="changeType" data-title="场馆" data-type="2">
<text style="color:#3D77D8" class="iconfont icon-location"></text>
<text>场馆</text>
<image src="{{type==2?'https://static.ticket.sz-trip.com/uploads/20230506/575180365a27f3060e6a15e796229ce9.png':'https://static.ticket.sz-trip.com/uploads/20230506/4019480777583c7efcf18943b21b1ba3.png'}}" mode="aspectFill"/>
<!-- <text style="color:#3D77D8" class="iconfont icon-location"></text> -->
<text class="text">场馆</text>
</view>
<view wx:if="{{isTest==false}}" class="right-menu-item{{type==3?' active':''}}" data-title="特产" bindtap="changeType" data-type="3">
<text style="color:#C02C2C" class="iconfont icon-location"></text>
<text>特产</text>
<!-- <text style="color:#C02C2C" class="iconfont icon-location"></text> -->
<image src="{{type==3?'https://static.ticket.sz-trip.com/uploads/20230506/575180365a27f3060e6a15e796229ce9.png':'https://static.ticket.sz-trip.com/uploads/20230506/054cea53a068545e9e27fa9cd3acbdec.png'}}" mode="aspectFill"/>
<text class="text">特产</text>
</view>
<view wx:if="{{isTest==false}}" class="right-menu-item{{type==4?' active':''}}" data-title="美食" bindtap="changeType" data-type="4">
<text style="color:#EE641B" class="iconfont icon-location"></text>
<text>美食</text>
<!-- <text style="color:#EE641B" class="iconfont icon-location"></text> -->
<image src="{{type==4?'https://static.ticket.sz-trip.com/uploads/20230506/575180365a27f3060e6a15e796229ce9.png':'https://static.ticket.sz-trip.com/uploads/20230506/04c558efe2650ca21f4612d60cc02a32.png'}}" mode="aspectFill"/>
<text class="text">美食</text>
</view>
<view class="right-menu-item{{type==5?' active':''}}" bindtap="changeType" data-title="文物" data-type="5">
<text style="color:#00B3C8" class="iconfont icon-location"></text>
<text>文保单位</text>
<!-- <text style="color:#00B3C8" class="iconfont icon-location"></text> -->
<image src="{{type==5?'https://static.ticket.sz-trip.com/uploads/20230506/575180365a27f3060e6a15e796229ce9.png':'https://static.ticket.sz-trip.com/uploads/20230506/be9f147b71b30acb0cd210b973787a31.png'}}" mode="aspectFill"/>
<text class="text">文保单位</text>
</view>
<!-- <view class="right-menu-item{{type==7?' active':''}}" bindtap="changeType" data-title="影院" data-type="7">
<text style="color:#9342CB" class="iconfont icon-location"></text>
<text>影院</text>
</view> -->
<view class="right-menu-item{{type==6?' active':''}}" bindtap="changeType" data-title="运河十景" data-type="6">
<text style="color:#EB3C70" class="iconfont icon-location"></text>
<text>运河十景</text>
<!-- <text style="color:#EB3C70" class="iconfont icon-location"></text> -->
<image src="{{type==6?'https://static.ticket.sz-trip.com/uploads/20230506/575180365a27f3060e6a15e796229ce9.png':'https://static.ticket.sz-trip.com/uploads/20230506/848919fa7df7d7a2cac6c671ff36c28c.png'}}" mode="aspectFill"/>
<text class="text">运河十景</text>
</view>
<view class="right-menu-item{{type==8?' active':''}}" bindtap="changeType" data-title="江南小书场" data-type="8">
<text style="color:#9d6b00" class="iconfont icon-location"></text>
<text>江南小书场</text>
<!-- <text style="color:#9d6b00" class="iconfont icon-location"></text> -->
<image src="{{type==8?'https://static.ticket.sz-trip.com/uploads/20230506/575180365a27f3060e6a15e796229ce9.png':'https://static.ticket.sz-trip.com/uploads/20230506/825ba0d2c4879e5609ecd1f585e48df8.png'}}" mode="aspectFill"/>
<text class="text">江南小书场</text>
</view>
<view class="right-menu-item{{type==9?' active':''}}" bindtap="changeType" data-title="江南小书场" data-type="9">
<text style="color:#F60C1C" class="iconfont icon-location"></text>
<text>红色地图</text>
<!-- <text style="color:#F60C1C" class="iconfont icon-location"></text> -->
<image src="{{type==9?'https://static.ticket.sz-trip.com/uploads/20230506/575180365a27f3060e6a15e796229ce9.png':'https://static.ticket.sz-trip.com/uploads/20230506/054cea53a068545e9e27fa9cd3acbdec.png'}}" mode="aspectFill"/>
<text class="text">红色地图</text>
</view>
<!-- <view class="right-menu-item{{type==9?' active':''}}" bindtap="changeType" data-title="文化单位" data-type="9">
<text style="color:rgb(160, 248, 248)" class="iconfont icon-location"></text>

21
pages/map/index.wxss

@ -42,16 +42,18 @@
overflow: hidden;
}
.right-menu-item {
margin: 0 10rpx;
margin: 0 18rpx;
border-top: 3px solid #E0E0E0;
text-align: active;
text-align: center;
display: flex;
align-items: center;
/* text-align: center; */
}
.right-menu-item.active {
background: #0A9947;
color: #fff;
margin: 0;
padding: 0 10rpx;
padding: 0 18rpx;
border-color: #0A9947;
}
.right-menu-item.active+view {
@ -73,11 +75,11 @@
background: #00B3C8;
border-color: #00B3C8;
}
.right-menus .right-menu-item:nth-child(7).active {
.right-menus .right-menu-item:nth-child(6).active {
background: #EB3C70;
border-color: #EB3C70;
}
.right-menus .right-menu-item:nth-child(6).active {
.right-menus .right-menu-item:nth-child(7).active {
background: #9342CB;
border-color: #9342CB;
}
@ -470,4 +472,13 @@
}
.video-bottom .iconfont {
margin-right: 10rpx;
}
.text{
display: inline-block;
width: 138rpx;
text-align: center;
}
.right-menu-item image{
width:21.33rpx;
height:25.33rpx;
}

2
pages/order/coupon/index.wxml

@ -4,7 +4,7 @@
<view class="coupon-item" wx:for="{{list}}">
<view class="money">{{item.activity.money/100}}</view>
<view class="coupon-info">
<view>满{{item.activity.mini_money/100}}元可用</view>
<view>{{item.activity.name}}</view>
<view class="couon-date" wx:if="{{item.end_time}}">{{item.end_time}}到期</view>
</view>
<view class="iconfont icon-{{item.selected?'gou':'quan'}}" bindtap="selectIt" data-index="{{index}}"></view>

34
pages/order/movie/index.js

@ -15,6 +15,9 @@ Page({
price:0,
coupon:null,
prizeId:null,
num:0,
sPrice:0,
hideMx:false
},
/**
@ -25,17 +28,22 @@ Page({
this.setData({
prizeId:wx.getStorageSync('prizeId')
})
let product = app.globalData.product,price=0;
let product = app.globalData.product,price=0,num=0,sPrice=0;
product.info.selectSeatInfo = JSON.parse(options.selectSeatInfo)
product.info.selectSeatInfo.seatPriceInfo.map(item=>{
price =price +Math.ceil(Number(item.split('-')[1])*1.006 * 100) / 100
price =price +Math.ceil(Number(item.split('-')[1])*1.006 * 100) / 100
num = num + 1
sPrice = Math.ceil(Number(item.split('-')[1])*1.006 * 100) / 100
})
console.log(product);
console.log(price);
console.log(price*100);
this.setData({
product:product,
price:price*100
})
price:(price*100).toFixed(2),
num:num,
sPrice:sPrice
})
console.log(this.data.price);
userApi.user_post("user/getMyInfo").then(res=>{
this.setData({
tel:res.data.mobile
@ -110,16 +118,20 @@ Page({
console.log(res)
})
},
},
mingxi(){
this.setData({
hideMx:!this.data.hideMx
})
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
this.setData({
coupon:app.globalData.couponInfo
})
console.log(this.coupon);
this.setData({
coupon:app.globalData.couponInfo,
})
},
/**

93
pages/order/movie/index.wxml

@ -1,28 +1,79 @@
<!--pages/order/movie/index.wxml-->
<title title="订单填写"></title>
<view class="info-box" wx:if="{{product}}">
<view class="info-top">
<image src="{{product.product.headimg}}" mode="aspectFill"></image>
<view class="info">
<view class="title">{{product.info.movieName}}</view>
<view>{{product.info.show_date}} {{product.info.show_time}}-{{product.info.close_time}} {{'('+product.info.show_version+')'}}</view>
<!-- <view>{{product.info.cinema_title}}</view> -->
<view>{{product.info.cinemaName}}</view>
<view>{{product.info.hallName}} <text wx:if="{{product.info.selectSeatInfo}}">{{product.info.selectSeatInfo.seatInfo}}</text></view>
</view>
</view>
<view class="tel-box">
<text>手机号码:</text>
<input value="{{tel}}" type="number" bindinput="changeTel" placeholder="输入您的手机号"></input>
</view>
<view class="info-top">
<image src="{{product.product.headimg}}" mode="aspectFill"></image>
<view class="info">
<view class="title">{{product.info.movieName}}</view>
<view>{{product.info.show_date}} {{product.info.show_time}}-{{product.info.close_time}} {{'('+product.info.show_version+')'}}</view>
<!-- <view>{{product.info.cinema_title}}</view> -->
<view>{{product.info.cinemaName}}</view>
<view>{{product.info.hallName}} <text wx:if="{{product.info.selectSeatInfo}}">{{product.info.selectSeatInfo.seatInfo}}</text></view>
</view>
</view>
<view class="tel-box">
<text>手机号码:</text>
<input value="{{tel}}" type="number" bindinput="changeTel" placeholder="输入您的手机号"></input>
</view>
</view>
<view class="tips">
<view class="tips-box">
<image src="https://static.ticket.sz-trip.com/jundaosuzhou/images/cha.png" mode="aspectFit" />
<view>
不支持退票
</view>
</view>
<view class="tips-box">
<image src="https://static.ticket.sz-trip.com/jundaosuzhou/images/cha.png" mode="aspectFit" alt="" />
<view>
不支持改签
</view>
</view>
</view>
<coupon money="{{price}}" sku="{{product.product.sku_info.id}}"></coupon>
<view class="fix-info {{!hideMx?'hide':''}}">
<view class="info-item">
<view>
费用明细
</view>
<view>
¥{{price/100}}
</view>
</view>
<view class="info-item">
<view>
票价
</view>
<view>
¥{{sPrice}} x {{num}}
</view>
</view>
<view class="info-item">
<view>
优惠券
</view>
<view>
- ¥{{coupon?coupon.activity.money/100:0}}
</view>
</view>
<view class="info-item">
<view>
</view>
<view>
订单总额:<text style="color: #D62828; font-weight: bold;">¥{{((price - (coupon?coupon.activity.money:0))>0?(price - (coupon?coupon.activity.money:0)):0)/100}}</text>
</view>
</view>
</view>
<view class="fixed-bottom">
<view class="money-box">
<view class="price" wx:if="{{prizeId}}">¥0</view>
<view class="price" wx:else>¥{{((price - (coupon?coupon.activity.money:0))>0?(price - (coupon?coupon.activity.money:0)):0)/100}}</view>
<view wx:if="{{coupon}}">总计优惠{{coupon?coupon.activity.money/100:0}}元</view>
</view>
<!-- <view class="tip">明细</view> -->
<view class="btn" bindtap="order">立即付款</view>
<view class="money-box">
<view class="price" wx:if="{{prizeId}}">¥0</view>
<view class="price" wx:else>¥{{((price - (coupon?coupon.activity.money:0))>0?(price - (coupon?coupon.activity.money:0)):0)/100}}</view>
<view>总计优惠{{coupon?coupon.activity.money/100:0}}元</view>
</view>
<view class="tip" bindtap="mingxi">明细</view>
<view class="btn" bindtap="order">立即付款</view>
</view>

63
pages/order/movie/index.wxss

@ -104,4 +104,67 @@ page {
background: #D62828;
font-size: 36rpx;
font-weight: 500;
}
.tips{
display: flex;
margin-left: 25.3rpx;
}
.tips-box{
display: flex;
align-items: center;
margin-right: 27rpx;
font-size: 27rpx;
font-family: PingFang SC;
font-weight: 500;
color: #111111;
}
.tips-box image{
width: 26.6rpx;
height: 26.6rpx;
}
.fix-info{
width: 750rpx;
min-height: 305rpx;
background: #FFFFFF;
padding: 36rpx 46rpx 36rpx 46rpx;
box-sizing: border-box;
position: fixed;
bottom:113rpx;
}
.info-item{
display: flex;
align-items: center;
justify-content: space-between;
}
.info-item:first-child{
font-size: 31rpx;
font-family: PingFang SC;
font-weight: bold;
color: #000000;
}
.info-item:nth-child(2){
margin-top: 40rpx;
font-size: 31rpx;
font-family: PingFang SC;
font-weight: 500;
color: #999999;
}
.info-item:nth-child(3){
margin-top: 31rpx;
font-size: 31rpx;
font-family: PingFang SC;
font-weight: 500;
color: #999999;
}
.info-item:nth-child(4){
margin-top: 40rpx;
font-size: 31rpx;
font-family: PingFang SC;
font-weight: 500;
color: #999999;
}
.fix-info.hide{
bottom:-300rpx;
}

10
pages/pbService/sceneComfort/index.js

@ -121,6 +121,16 @@ Page({
list:this.data.list.concat(res.data.rows),
total:res.data.total
})
console.log(this.data.list.length);
console.log(res.data.total);
if (this.data.list.length<res.data.total) {
console.log(111);
this.setData({
pageNo:this.data.pageNo+1
})
}
})
},
search:function(){

22
pages/pbService/sceneComfort/index.wxml

@ -40,12 +40,26 @@
<image src="https://static.ticket.sz-trip.com/xcxImages/pbservice/comfort2.png" mode="widthFix"></image>
<text>{{sceneLevelObj[item.scene_level]}}</text>
</view>
<view class="progress-item">
<!-- <view class="progress-item">
<progress percent="{{item.in_count/item.ins_carry_capacity * 100}}" color="{{comfortObj[item.comfort_level].color}}" stroke-width="{{40 * radio}}" border-radius="{{20 * radio}}"></progress>
<view class="progress-text">{{comfortObj[item.comfort_level].name}}/{{item.ins_carry_capacity}}人</view>
</view>
<view class="other-tip">
</view> -->
<view class="'info'{{item.comfort_level==5?'shushi':''}}{{item.comfort_level==4?'jiaoshushi':''}}{{item.comfort_level==3?'yiban':''}}{{item.comfort_level==2?'jiaoyongji':''}}{{item.comfort_level==1?'yongji':''}}">
<view class="top-info">
<view class="comft">
<view>
当前舒适度:
</view>
<view wx:if="{{item.comfort_level===itemY.level}}" wx:for-item="itemY" style="color:{{itemY.color}}" wx:for="{{comfortLevel}}" class="two">{{itemY.desc}}</view>
</view>
<view class="num">
瞬时承载量:{{item.ins_carry_capacity}}人
</view>
</view>
<view class="other-tip">
<text>更新时间:{{item.status_time}}</text>
<text>当前舒适度/瞬时承载量</text>
</view>
</view>
</view>

60
pages/pbService/sceneComfort/index.wxss

@ -118,4 +118,64 @@ page {
line-height: 38rpx;
border: 1rpx solid;
margin-right: 20rpx;
}
.two {
padding: 0 12rpx;
border-radius: 20rpx;
line-height: 38rpx;
border: 1rpx solid;
margin-left: 10rpx;
font-size: 24rpx;
font-family: PingFang SC;
font-weight: 500;
color: #83D851;
}
.info{
width: 650rpx;
min-height: 134rpx;
border-radius: 10rpx;
padding: 28rpx 20rpx;
box-sizing: border-box;
}
.yongji{
background: rgba(204, 25, 25, .08);
}
.jiaoyongji{
background: rgba(252, 133, 58, .08);
}
.yiban{
background: rgba(255, 198, 41, .08);
}
.info.jiaoshushi{
background: rgba(66, 146, 201, .08);
}
.shushi{
background: rgba(131, 216, 81, .08);
}
.top-info{
display: flex;
align-items: center;
justify-content: space-between;
}
.comft{
display: flex;
font-size: 26rpx;
font-family: PingFang SC;
font-weight: 500;
color: #333333;
align-items: center;
}
.num{
border-left: 1rpx solid #D8D8D8;
padding-left: 50rpx;
font-size: 26rpx;
font-family: PingFang SC;
font-weight: 500;
color: #333333;
}

43
pages/user/coupon/index.wxml

@ -1,22 +1,35 @@
<!--pages/user/coupon/index.wxml-->
<title title="我的优惠券"></title>
<view class="types">
<view class="type-item{{index==0?' active':''}}" bindtap="changeType" data-index="0">可使用</view>
<view class="type-item{{index==1?' active':''}}" bindtap="changeType" data-index="1">已使用</view>
<view class="type-item{{index==2?' active':''}}" bindtap="changeType" data-index="2">已失效</view>
<view class="type-item{{index==0?' active':''}}" bindtap="changeType" data-index="0">可使用</view>
<view class="type-item{{index==1?' active':''}}" bindtap="changeType" data-index="1">已使用</view>
<view class="type-item{{index==2?' active':''}}" bindtap="changeType" data-index="2">已失效</view>
</view>
<view style="height:100rpx"></view>
<view class="coupon-item{{index==0?' active':''}}" wx:for="{{list}}" wx:for-index="i">
<view class="title-box">
<view class="title textOver">{{item.activity.name}}</view>
<view class="coupon-money">¥<text>{{item.activity.money/100}}</text></view>
</view>
<view class="coupon-tip"><text>使用条件:</text>满{{item.activity.mini_money/100}}元</view>
<view class="coupon-tip"><text>有效期:</text>{{item.end_time}}</view>
<view class="coupon-tip"><text>优惠码:</text>{{item.key}}</view>
<view class="coupon-rule">
<view bindtap="showRule" data-item="{{item}}">使用规则 <text class="iconfont icon-xia"></text></view>
</view>
<view class="title-box">
<view class="title textOver">{{item.activity.name}}</view>
<view class="coupon-money">¥<text>{{item.activity.money/100}}</text></view>
</view>
<view class="coupon-tip"><text>使用条件:</text>满{{item.activity.mini_money/100}}元</view>
<view class="coupon-tip"><text>有效期:</text>{{item.end_time}} 前使用</view>
<view class="coupon-tip"><text>优惠码:</text>{{item.key}}</view>
<view class="line-box">
<view class="yuan l">
</view>
<view class="line">
---------------------------------------------
</view>
<view class="yuan r">
</view>
</view>
<view class="coupon-rule">
<!-- <view bindtap="showRule" data-item="{{item}}">使用规则 <text class="iconfont icon-xia"></text></view> -->
<view>使用规则</view>
<view class="rule-text">
{{item.note}}
</view>
</view>
</view>
<!-- <view class="coupon-item">
<view class="title-box">
@ -31,6 +44,6 @@
<view style="height:110rpx"></view>
<navigator url="../couponCenter/index" class="fixed-btn">前往<text>领券中心</text></navigator>
<view wx:if="{{list.length==0}}" class="common-empty" style="z-index:-1">
<image mode="widthFix" src="https://static.ticket.sz-trip.com/xcxImages/other/nodata.png"></image>
<view>暂无内容</view>
<image mode="widthFix" src="https://static.ticket.sz-trip.com/xcxImages/other/nodata.png"></image>
<view>暂无内容</view>
</view>

38
pages/user/coupon/index.wxss

@ -38,11 +38,31 @@ page {
}
.coupon-item {
margin: 20rpx 30rpx;
background: url(https://static.ticket.sz-trip.com/xcxImages/user/coupon.png) no-repeat;
background-size: 100% 100%;
height: 300rpx;
position: relative;
color: #999;
/* background: url(https://static.ticket.sz-trip.com/xcxImages/user/coupon.png) no-repeat;
background-size: 100% 100%; */
background: white;
min-height: 320rpx;
position: relative;
border-radius: 20rpx;
color: #999;
padding-bottom:10rpx ;
}
.yuan{
width: 50rpx;
height: 50rpx;
background: #f6f6f6;
position: absolute;
border-radius: 50%;
}
.yuan.l{
left: -25rpx;
}
.yuan.r{
right:-25rpx;
top: 0;
}
.line-box{
position: relative;
}
.coupon-item>view {
padding: 0 30rpx;
@ -75,18 +95,24 @@ page {
.coupon-tip {
line-height: 45rpx;
font-size: 26rpx;
height: 50rpx;
}
.coupon-item.active .coupon-tip {
color: #333;
}
.coupon-tip text {
color: #999999;
display: inline-block;
width: 160rpx;
}
.coupon-rule {
line-height: 100rpx;
font-size: 26rpx;
}
.rule-text{
margin-top:10rpx;
color: #333;
}
.coupon-rule .iconfont {
font-size: 28rpx;
}

2
pages/user/user.wxml

@ -67,7 +67,7 @@
团体预约订单
</navigator>
<navigator url="videoCoupon/index" class="user-box-line">
中奖纪
中奖记
</navigator>
<!-- <navigator url="service/index" class="user-box-line" catchtap="pagePoint" data-event="mine_customerservice">
在线客服

Loading…
Cancel
Save