Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
严立
/
mini-shimao
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
df0e4417
authored
Sep 23, 2020
by
zqm
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
我的主题活动。
预约列表
parent
233f35af
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
14 deletions
pages/mine/appointment/appointment.js
pages/mine/appointment/appointment.wxml
pages/pay/order-detail/order-detail.wxml
pages/mine/appointment/appointment.js
View file @
df0e4417
...
@@ -136,9 +136,16 @@ Page({
...
@@ -136,9 +136,16 @@ Page({
onOrderPay
:
function
(
event
)
{
onOrderPay
:
function
(
event
)
{
// 数据校验不通过
// 数据校验不通过
let
that
=
this
let
that
=
this
console
.
log
(
);
let
funcItem
=
event
.
currentTarget
.
dataset
.
item
let
funcItem
=
event
.
currentTarget
.
dataset
.
item
console
.
log
(
funcItem
,
'jjjj'
);
let
wxRequest
=
funcItem
.
wxRequest
let
wxRequest
=
funcItem
.
wxRequest
// 待支付返回的wx支付参数
// 待支付返回的wx支付参数
if
(
wxRequest
)
{
if
(
wxRequest
)
{
wx
.
requestPayment
({
wx
.
requestPayment
({
...
@@ -286,7 +293,8 @@ Page({
...
@@ -286,7 +293,8 @@ Page({
date
:
item
.
activeTime
,
date
:
item
.
activeTime
,
address
:
item
.
address
,
address
:
item
.
address
,
num
:
item
.
number
,
num
:
item
.
number
,
amount
:
item
.
totalMoney
.
toFixed
(
2
)
amount
:
item
.
totalMoney
.
toFixed
(
2
),
wxRequest
:
item
.
wxRequest
}
}
tmpArr
.
push
(
obj
)
tmpArr
.
push
(
obj
)
})
})
...
...
pages/mine/appointment/appointment.wxml
View file @
df0e4417
<!--pages/myAppointment/myAppointment.wxml-->
<!--pages/myAppointment/myAppointment.wxml-->
<navigation class="navigation" titleText="我的预约" backIcon="/image/back.png" scrollStyle="{{navigationStyle}}" scrollHeight="{{navigationScroll}}" bind:navBack="onNavBack"></navigation>
<navigation class="navigation" titleText="我的预约" backIcon="/image/back.png" scrollStyle="{{navigationStyle}}"
scrollHeight="{{navigationScroll}}" bind:navBack="onNavBack"></navigation>
<view class="container all">
<view class="container all">
<view class="myActivity-container" style="min-height:{{height}}px;">
<view class="myActivity-container" style="min-height:{{height}}px;">
<view class="myAppointment-nav">
<view class="myAppointment-nav">
...
@@ -45,7 +46,8 @@
...
@@ -45,7 +46,8 @@
</view>
</view>
</view>
</view>
<!-- 未开始 -->
<!-- 未开始 -->
<view class="appointment-wrapper" wx:if="{{activity.status === '2' && activity.activeState === '0'}}">
<view class="appointment-wrapper" wx:if="{{activity.status === '2' && activity.activeState === '0'}}"
bindtap="onOrderDetail" data-item="{{activity}}">
<view class="appointment-time">{{activity.date}}</view>
<view class="appointment-time">{{activity.date}}</view>
<view class="appintment-activity-status">
<view class="appintment-activity-status">
<text>未开始</text>
<text>未开始</text>
...
@@ -77,7 +79,8 @@
...
@@ -77,7 +79,8 @@
</view>
</view>
</view>
</view>
<!-- 进行中 -->
<!-- 进行中 -->
<view class="appointment-wrapper" wx:if="{{activity.status === '2' && activity.activeState === '1'}}">
<view class="appointment-wrapper" wx:if="{{activity.status === '2' && activity.activeState === '1'}}"
bindtap="onOrderDetail" data-item="{{activity}}">
<view class="appointment-time">{{activity.date}}</view>
<view class="appointment-time">{{activity.date}}</view>
<view class="appintment-activity-status">
<view class="appintment-activity-status">
<text>进行中</text>
<text>进行中</text>
...
@@ -109,7 +112,8 @@
...
@@ -109,7 +112,8 @@
</view>
</view>
</view>
</view>
<!-- 待评价 -->
<!-- 待评价 -->
<view class="appointment-wrapper" wx:if="{{activity.status === '3' && activity.activeState === '2'}}">
<view class="appointment-wrapper" wx:if="{{activity.status === '3' && activity.activeState === '2'}}"
bindtap="onOrderDetail" data-item="{{activity}}">
<view class="appointment-time">{{activity.date}}</view>
<view class="appointment-time">{{activity.date}}</view>
<view class="appintment-activity-status">
<view class="appintment-activity-status">
<text>待评价</text>
<text>待评价</text>
...
@@ -136,13 +140,13 @@
...
@@ -136,13 +140,13 @@
<text>{{activity.amount}}</text>
<text>{{activity.amount}}</text>
</view>
</view>
<view class="appointment-activity-btn row">
<view class="appointment-activity-btn row">
<view
data-item="{{activity}}" catchtap="onOrderEvaluate" class="confirm-btn">去评价</view>
<view data-item="{{activity}}" catchtap="onOrderEvaluate" class="confirm-btn">去评价</view>
</view>
</view>
</view>
</view>
</view>
</view>
<!-- 已过期 -->
<!-- 已过期 -->
<view class="appointment-wrapper" wx:if="{{activity.status === '4'}}">
<view class="appointment-wrapper" wx:if="{{activity.status === '4'}}">
<view class="mask-cancel"></view>
<view class="mask-cancel"
bindtap="onOrderDetail" data-item="{{activity}}"
></view>
<view class="appointment-time mask-cancel-time">{{activity.date}}</view>
<view class="appointment-time mask-cancel-time">{{activity.date}}</view>
<view class="appintment-activity-status-cancel">
<view class="appintment-activity-status-cancel">
<text>已过期</text>
<text>已过期</text>
...
@@ -169,14 +173,14 @@
...
@@ -169,14 +173,14 @@
<text>{{activity.amount}}</text>
<text>{{activity.amount}}</text>
</view>
</view>
<view class="appointment-activity-btn row">
<view class="appointment-activity-btn row">
<view data-item="{{activity}}" catchtap="doCancel"
class="cancel-btn cancel
">删除报名</view>
<view data-item="{{activity}}" catchtap="doCancel"
class="cancel-btn
">删除报名</view>
</view>
</view>
</view>
</view>
</view>
</view>
<!-- 已取消 -->
<!-- 已取消 -->
<view class="appointment-wrapper" wx:if="{{activity.status === '-1'}}">
<view class="appointment-wrapper" wx:if="{{activity.status === '-1'}}">
<view class="mask-cancel" bindtap="onOrderDetail" data-item="{{activity}}"></view>
<view class="mask-cancel" bindtap="onOrderDetail" data-item="{{activity}}"></view>
<view class="appointment-time mask-cancel-time">
7月15日 10:00-12:00
</view>
<view class="appointment-time mask-cancel-time">
{{activity.date}}
</view>
<view class="appintment-activity-status-cancel">
<view class="appintment-activity-status-cancel">
<text>已取消</text>
<text>已取消</text>
</view>
</view>
...
@@ -202,7 +206,7 @@
...
@@ -202,7 +206,7 @@
<text>{{activity.amount}}</text>
<text>{{activity.amount}}</text>
</view>
</view>
<view class="appointment-activity-btn row">
<view class="appointment-activity-btn row">
<view data-item="{{activity}}" catchtap="doCancel"
class="cancel-btn cancel">删除报名</view>
<view data-item="{{activity}}" catchtap="doCancel" class="cancel-btn cancel">删除报名</view>
<view data-index="0" catchtap="goAppoint" class="confirm-btn confirm-once">再次报名</view>
<view data-index="0" catchtap="goAppoint" class="confirm-btn confirm-once">再次报名</view>
</view>
</view>
</view>
</view>
...
@@ -211,14 +215,14 @@
...
@@ -211,14 +215,14 @@
</view>
</view>
<!-- 夜间入园预约、看房预约 -->
<!-- 夜间入园预约、看房预约 -->
<view class="myAppointment-body" wx:if="{{data.length > 0 && active !== 0}}">
<view class="myAppointment-body" wx:if="{{data.length > 0 && active !== 0}}">
<view class="myAppointment-item" wx:for="{{data}}" wx:key="index">
<view class="myAppointment-item" wx:for="{{data}}" wx:key="index"
data-item="{{item}}" bindtap="gohotelAccommodation"
>
<image src="{{item.url}}" class="item-img"></image>
<image src="{{item.url}}" class="item-img"></image>
<view class="item-content">
<view class="item-content">
<view class="item-title {{item.type == 0 ?'item-num-1' : ''}}">{{item.title}}</view>
<view class="item-title {{item.type == 0 ?'item-num-1' : ''}}">{{item.title}}</view>
<view class="item-time {{item.type == 1 ?'item-time-1' : ''}}">预约时间 {{item.time}}</view>
<view class="item-time {{item.type == 1 ?'item-time-1' : ''}}">预约时间 {{item.time}}</view>
<view wx:if="{{item.type == 0}}" class="item-num">预约人数 {{item.num}}人</view>
<view wx:if="{{item.type == 0}}" class="item-num">预约人数 {{item.num}}人</view>
</view>
</view>
<view class="button"
data-item="{{item}}" bindtap="gohotelAccommodation"
>预约凭证</view>
<view class="button" >预约凭证</view>
</view>
</view>
</view>
</view>
</view>
</view>
...
...
pages/pay/order-detail/order-detail.wxml
View file @
df0e4417
...
@@ -91,7 +91,7 @@
...
@@ -91,7 +91,7 @@
<image class="seal-long" src="{{resourcesBase+orderInfo.shopInfo.printUse}}"></image>
<image class="seal-long" src="{{resourcesBase+orderInfo.shopInfo.printUse}}"></image>
</view>
</view>
<view class="info-code col con-c align-c">
<view class="info-code col con-c align-c">
<text>{{
'件商品可用'}}
</text>
<text>{{
orderInfo.commodity.length}}件商品可用
</text>
<button bindtap="onFastScan" class="row con-c align-c">一键扫码</button>
<button bindtap="onFastScan" class="row con-c align-c">一键扫码</button>
<text>{{orderInfo.expireTime}}</text>
<text>{{orderInfo.expireTime}}</text>
</view>
</view>
...
@@ -210,7 +210,7 @@
...
@@ -210,7 +210,7 @@
<image class="seal-long" src="{{resourcesBase+orderInfo.shopInfo.printUse}}"></image>
<image class="seal-long" src="{{resourcesBase+orderInfo.shopInfo.printUse}}"></image>
</view>
</view>
<view class="info-code col con-c align-c">
<view class="info-code col con-c align-c">
<text>{{
'张电影票可用'}}
</text>
<text>{{
orderInfo.commodity.length}}张电影票可用
</text>
<button bindtap="onFastScan" class="row con-c align-c">一键扫码</button>
<button bindtap="onFastScan" class="row con-c align-c">一键扫码</button>
<text>{{orderInfo.expireTime}}</text>
<text>{{orderInfo.expireTime}}</text>
</view>
</view>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment