作者 吴孟雨

Merge remote-tracking branch 'origin/master' into wumengyu

# Conflicts:
#	pages/index/confirm-appointment-info/add-student/add-student.js
#	pages/index/index.js
#	pages/my/buyCard/buyCard.js
{
"pages": [
"pages/start/start",
"pages/my/shareGroupBuy/shareGroupBuy",
"pages/my/takeGroupBuy/takeGroupBuy",
"pages/index/index",
"pages/index/confirm-appointment-info/confirm-appointment-info",
"pages/my/order-detail/order-detail",
... ...
// pages/appointmentRecord/appointmentRecord.js
const app=getApp()
Page({
/**
* 页面的初始数据
*/
data: {
student_id:'',
page:1
},
recordList(){
let url ='/user/Student/student_reservation_list'
let params={
student_id:this.data.student_id,
page:this.data.page
}
let header={
"XX-Token":wx.getStorageSync('token')
}
app.post(url,params,header).then((res)=>{
console.log(res)
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.recordList()
},
/**
... ...
... ... @@ -2,21 +2,22 @@
const app = getApp();
Page({
/**
* 页面的初始数据
*/
data: {
card_info: {},
student_list: {},
picker_list: {},
is_agree: true,
userlist: ['张三', '里斯'],
index: -1,
pay_success: false,
},
//选择成员
changeStudent(e) {
if(this.data.student_list.length === 0) {
/**
* 页面的初始数据
*/
data: {
card_info: {},
student_list: {},
picker_list: {},
is_agree: true,
userlist: ['张三', '里斯'],
index: 0,
pay_success: false,
},
//选择成员
changeStudent(e) {
if (this.data.student_list.length === 0) {
}
this.setData({
... ... @@ -164,54 +165,54 @@ Page({
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function() {
},
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
const self =this;
self.getStudentList();
/**
* 生命周期函数--监听页面显示
*/
onShow: function() {
const self = this;
self.getStudentList();
},
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function() {
},
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function() {
},
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function() {
},
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function() {
},
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
/**
* 用户点击右上角分享
*/
onShareAppMessage: function() {
}
}
})
\ No newline at end of file
... ...
// pages/cardIntroduction/cardIntroduction.js
const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
info:[],
thumb:''
},
//畅玩卡介绍
cardInfo() {
let url = '/wxapp/public/arc_card'
let params = {}
app.post(url, params).then((res) => {
console.log(res)
// if(res.data.code==20000){
this.setData({
thumb: res.thumb
})
// }
})
},
//前往团购
goBuy(){
wx.navigateTo({
url: '/pages/my/groupBuy/groupBuy',
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
onLoad: function(options) {
this.cardInfo()
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
onReady: function() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
onShow: function() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
onHide: function() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
onUnload: function() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
onPullDownRefresh: function() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
onReachBottom: function() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
onShareAppMessage: function() {
}
})
\ No newline at end of file
... ...
<!--pages/cardIntroduction/cardIntroduction.wxml-->
<view class='content_box'>
这是一个可以滑动的长图
<image src='{{thumb}}'></image>
</view>
<view class='bottom_box'>
<view class='share_btn'>分享好友</view>
<view class='groupBuy_btn'>前往团购</view>
<button open-type='share' class='share_btn'>分享好友</button>
<view class='groupBuy_btn' bindtap='goBuy'>前往团购</view>
</view>
\ No newline at end of file
... ...
... ... @@ -36,6 +36,12 @@
justify-content: center;
font-size: 36rpx;
color: #fff;
border-radius: 0;
}
.share_btn::after {
border: 0;
border-radius: 0;
}
.groupBuy_btn {
... ...
// pages/groupBuy/groupBuy.js
Page({
/**
* 页面的初始数据
*/
data: {
current: 0,
chargenum: "2059788797",
},
//tab切换
tabCharge(e) {
var index = e.currentTarget.dataset.current
var current = this.data.current
if (index == current) {
return false
} else {
this.setData({
current: index
})
}
},
//服务协议
serviceProtocol() {
wx.navigateTo({
url: '../protocol/protocol',
})
},
//查看详情
listDetail() {
wx.navigateTo({
url: '../groupBuyDetail/groupBuyDetail',
})
},
// 长按复制
copy: function(e) {
var that = this;
wx.setClipboardData({
data: that.data.chargenum,
success: function(res) {
wx.showToast({
title: '复制成功',
});
// pages/groupBuy/groupBuy.js
const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
current: 0,
chargenum: "2059788797",
page: 0,
groupList: [],
recordList: []
},
//tab切换
tabCharge(e) {
var index = e.currentTarget.dataset.current
var current = this.data.current
if (index == current) {
return false
} else {
this.setData({
current: index
})
}
});
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function() {
},
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function() {
//服务协议
serviceProtocol() {
wx.navigateTo({
url: '../protocol/protocol',
})
},
//查看详情
listDetail(e) {
var id = e.currentTarget.dataset.id
wx.setStorageSync('id', id)
wx.navigateTo({
url: '../groupBuyDetail/groupBuyDetail?id=' + id,
})
},
},
//畅玩卡介绍
cardInfo() {
wx.navigateTo({
url: '/pages/my/cardIntroduction/cardIntroduction',
})
},
// 长按复制
copy: function(e) {
var that = this;
wx.setClipboardData({
data: that.data.chargenum,
success: function(res) {
wx.showToast({
title: '复制成功',
});
}
});
},
//参与的组团
takeGroup() {
let url = '/portal/Group/group_list'
let params = {
page: this.data.page
}
let header = {
"XX-Token": wx.getStorageSync('token')
}
app.post(url, params, header).then((res) => {
console.log(res)
this.setData({
groupList: res.list
})
})
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function() {
//成交记录
record() {
let url = '/portal/Group/group_complete'
let params = {
page: this.data.page
}
let header = {
"XX-Token": wx.getStorageSync('token')
}
app.post(url, params, header).then((res) => {
console.log(res)
this.setData({
recordList: res.list
})
})
},
//发起团购
goPay() {
let url = '/portal/Group/group_create'
let params = {}
let header = {
"XX-Token": wx.getStorageSync('token')
}
app.post(url, params, header).then((res) => {
this.setData({
group_info: res.pay
})
this.wxPay(res.pay)
})
},
//发起团购支付
wxPay(data) {
wx.requestPayment({
'timeStamp': data.timeStamp,
'nonceStr': data.nonceStr,
'package': data.package,
'signType': 'MD5',
'paySign': data.paySign,
'success': function(res) {
console.log(res)
wx.showToast({
title: '支付成功',
icon: 'success',
success: function() {
setTimeout(function() {
wx.navigateTo({
url: '/pages/my/shareGroupBuy/shareGroupBuy',
})
}, 500)
}
});
},
'fail': function(res) {}
})
}
})
\ No newline at end of file
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
this.takeGroup()
this.record()
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function() {
let that = this;
// 设置菜单中的转发按钮触发转发事件时的转发内容
var shareObj = {
title: '科学队长', // 默认是小程序的名称(可以写slogan等)
path: '/pages/eyeTest/articleDetail/articleDetail?doctorid=' + app.globalData.doctorid + '&id=' + this.data.id, // 默认是当前页面,必须是以‘/’开头的完整路径
imageUrl: '', //自定义图片路径,可以是本地文件路径、代码包文件路径或者网络图片路径,支持PNG及JPG,不传入 imageUrl 则使用默认截图。显示图片长宽比是 5:4
success: function(res) {
if (res.errMsg == 'shareAppMessage:ok') {}
},
fail: function() {
// 转发失败之后的回调
if (res.errMsg == 'shareAppMessage:fail cancel') {
// 用户取消转发
} else if (res.errMsg == 'shareAppMessage:fail') {
// 转发失败,其中 detail message 为详细失败信息
}
},
complete: function() {
// 转发结束之后的回调(转发成不成功都会执行)
}
}  
// 来自页面内的按钮的转发
// if (option.from == 'button') {
// // 此处可以修改 shareObj 中的内容
// // shareObj.imageUrl = '/pages/shareimg/share.png'
// }   // 返回shareObj
return shareObj;
}
})
\ No newline at end of file
... ...
... ... @@ -2,7 +2,7 @@
<view class='banner_img'>
<image src='../../../images/banner.jpg'></image>
</view>
<view class='title_box'>
<view class='title_box' bindtap='cardInfo'>
<view class='title_content'>畅玩卡介绍</view>
</view>
<view class='tab_box'>
... ... @@ -12,72 +12,80 @@
</view>
<block wx:if='{{current==0}}'>
<view class='content_box'>
<view class='item_list' wx:for='{{[1,2,3]}}' wx:key=''>
<view class='list_title_box' bindtap='listDetail'>
<view>查看详情</view>
<view class='iconfont icon-fanhui'></view>
</view>
<view class='list_info_box'>
<view class='info_item'>
<view class='info_box'>
<image src='../../../images/logo.png'></image>
<view class='info_label'>发起人</view>
</view>
<view class='info_time'>
<view>2018.10.10</view>
<view> 00:00:00</view>
</view>
<view>
<view class='item_list' wx:for='{{groupList}}' wx:key=''>
<view class='list_title_box' data-id='{{item.id}}' bindtap='listDetail'>
<view>查看详情</view>
<view class='iconfont icon-fanhui'></view>
</view>
<view class='info_item'>
<view class='info_box'>
<image src='../../../images/logo.png'></image>
<view class='info_label'>发起人</view>
</view>
<view class='info_time'>
<view>2018.10.10</view>
<view> 00:00:00</view>
<view class='list_info_box'>
<block wx:for='{{item.group_detail}}' wx:for-item='sub_item' wx:key=''>
<view class='info_item'>
<view class='info_box'>
<block>
<image src='{{sub_item.avatar}}'></image>
<view class='info_label' wx:if='{{sub_item.is_start==1}}'>发起人</view>
</block>
</view>
<view class='info_time'>
<view>{{sub_item.date}}</view>
<view>{{sub_item.time}}</view>
</view>
</view>
</block>
<!-- <view class='info_item' >
<view class='info_box'>
<image src='{{sub_item.avatar}}'></image>
<view class='info_label'>发起人</view>
</view>
<view class='info_time'>
<view>{{sub_item.date}}</view>
<view> {{sub_item.time}}</view>
</view>
</view>
</view>
<view class='info_item'>
<view class='info_box'>
<view class='info_item'>
<view class='info_box'>
</view>
</view>
</view>
<view class='info_item'>
<view class='info_box'>
<view class='info_item'>
<view class='info_box'>
</view>
</view>
<view class='info_item'>
<view class='info_box'>
</view>
</view> -->
</view>
<view class='info_item'>
<view class='info_box'>
</view>
<view class='list_info'>成团人数:最低
<text>{{item.num}}</text>人,已参与:
<text>{{item.count}}</text> 人,快呼唤伙伴参与吧!</view>
<view class='list_info'>
<view class='list_info_item'>剩余
<text>{{item.surplus_time}}</text> 结束</view>
</view>
</view>
<view class='list_info'>成团人数:最低
<text>3</text>人,已参与:
<text>2</text> 人,快呼唤伙伴参与吧!</view>
<view class='list_info'>
<view class='list_info_item'>剩余
<text>00:02:00 </text> 结束</view>
</view>
<view>
<view class='user_info_box'>
<view class='user_info'>
<view class='info_box'>
<image src='../../../images/logo.png'></image>
<view class='info_label'>发起人</view>
<view>
<view class='user_info_box'>
<view class='user_info'>
<view class='info_box'>
<image src='{{item.avatar}}'></image>
<view class='info_label'>发起人</view>
</view>
<view>{{item.user_nickname}}</view>
</view>
<view class='state_box'>
<view>{{item.start_time}}开团</view>
<view class='info_state' wx:if='{{item.group_status==1}}'>团购中</view>
<view class='info_state' wx:if='{{item.group_status==2}}'>团购失败</view>
<view class='info_state' wx:if='{{item.group_status==3}}'>团购成功</view>
</view>
<view>发起人姓名</view>
</view>
<view class='state_box'>
<view>2018.10.10 00:00:00开团</view>
<view class='info_state'>团购中</view>
</view>
</view>
</view>
</view>
</view>
<view class='null_box'></view>
<view class='bottom_box'>
<text class='iconfont icon-fenxiang'></text> 分享的文案,50汉字以内提示分享的文案,50汉字以内提示分 享的文案,50汉字以内
<view class='null_box'></view>
<view class='bottom_box'>
<text class='iconfont icon-fenxiang'></text> 分享的文案,50汉字以内提示分享的文案,50汉字以内提示分 享的文案,50汉字以内
</view>
</view>
</block>
<block wx:elif='{{current==1}}'>
... ... @@ -94,7 +102,9 @@
<view class='list_tab list_content' wx:for='{{[1,2,3]}}' wx:key=''>
<view class='list_tab_item'>2018.10.10</view>
<view class='list_tab_item'>未兑换</view>
<view class='list_tab_item'><text selectable='true' bindlongtap='copy'>{{chargenum}}</text></view>
<view class='list_tab_item'>
<text selectable='true' bindlongtap='copy'>{{chargenum}}</text>
</view>
</view>
</view>
</view>
... ... @@ -124,7 +134,7 @@
</view>
<view class='service_btn_box'>
<view>单价:¥188.00</view>
<view class='pay_btn'>支付</view>
<view class='pay_btn' bindtap='goPay'>支付</view>
</view>
</view>
</view>
... ...
... ... @@ -2,7 +2,7 @@
page {
background: #f5f5f5;
overflow: hidden;
overflow: scroll;
}
.banner_img {
... ... @@ -79,6 +79,8 @@ page {
.content_box {
margin-top: 20rpx;
/* height: 550rpx;
overflow: scroll; */
}
.null_box {
... ... @@ -145,7 +147,7 @@ page {
position: relative;
}
.info_box img {
.info_box image {
width: 100%;
height: 100%;
}
... ... @@ -358,6 +360,12 @@ page {
display: flex;
align-items: center;
justify-content: center;
border-radius: 0;
}
.pay_btn::after {
border: 0;
border-radius: 0;
}
.list_label_box {
... ...
// pages/groupBuyDetail/groupBuyDetail.js
const app=getApp()
Page({
/**
... ... @@ -6,21 +7,41 @@ Page({
*/
data: {
isFolded: true,
imgUrls: ['../../../images/img1.png', '../../../images/img1.png', '../../../images/img1.png', '../../../images/img1.png', '../../../images/img1.png', '../../../images/img1.png', '../../../images/img1.png', '../../../images/img1.png', '../../../images/img1.png'],
id:'',
list_info:{}
},
//查看全部
listMore(e) {
console.log(e)
this.setData({
isFolded: !this.data.isFolded,
})
},
listDetail(){
let url ='/portal/Group/group_detail'
let params={
id:this.data.id
}
let header={
"XX-Token":wx.getStorageSync('token')
}
app.post(url,params,header).then((res)=>{
console.log(res)
this.setData({
list_info: res.info
})
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
this.setData({
id:options.id
})
this.listDetail()
},
/**
... ...
... ... @@ -4,42 +4,44 @@
<image src='../../../images/banner.jpg'></image>
</view>
<view class='content_box'>
<view class='item_list' wx:for='{{[1]}}' wx:key=''>
<view class="item_list">
<view class='list_title_box' bindtap='listMore'>
<view>查看全部</view>
<view class='iconfont icon-fanhui'></view>
<view class="iconfont {{isFolded?'icon-fanhui':'icon-xiala'}}"></view>
</view>
<view class="list_info_box {{isFolded?'hide':'show'}}" >
<view class='info_item' wx:for='{{[1,1,1,1,1]}}' wx:key=''>
<view class="list_info_box {{isFolded?'img_list':'list_info_box'}}">
<view class="info_item" wx:for='{{list_info.group_detail}}' wx:key=''>
<view class='info_box'>
<image src='../../../images/img1.png'></image>
<view class='info_label'>发起人</view>
<image src='{{item.avatar}}'></image>
<view class='info_label' wx:if='{{item.is_start==1}}'>发起人</view>
</view>
<view class='info_time'>
<view>2018.10.10</view>
<view> 00:00:00</view>
<view>{{item.date}}</view>
<view> {{item.time}}</view>
</view>
</view>
</view>
<view class='list_info'>成团人数:最低
<text>3</text>人,已参与:
<text>2</text> 人,快呼唤伙伴参与吧!</view>
<text>{{list_info.num}}</text>人,已参与:
<text>{{list_info.count}}</text> 人,快呼唤伙伴参与吧!</view>
<view class='list_info'>
<view class='list_info_item'>剩余
<text>00:02:00 </text> 结束</view>
<text>{{list_info.surplus_time}} </text> 结束</view>
</view>
<view>
<view class='user_info_box'>
<view class='user_info'>
<view class='info_box'>
<image src='../../../images/img1.png'></image>
<image src='{{list_info.avatar}}'></image>
<view class='info_label'>发起人</view>
</view>
<view>发起人姓名</view>
<view>{{list_info.user_nickname}}</view>
</view>
<view class='state_box'>
<view>2018.10.10 00:00:00开团</view>
<view class='info_state'>团购中</view>
<view>{{list_info.start_time}}开团</view>
<view class='info_state' wx:if='{{list_info.group_status==1}}'>团购中</view>
<view class='info_state' wx:if='{{list_info.group_status==2}}'>团购失败</view>
<view class='info_state' wx:if='{{list_info.group_status==3}}'>团购成功</view>
</view>
</view>
</view>
... ... @@ -53,4 +55,4 @@
</view>
</view>
<view class='null_box'></view>
<view class='service_btn_box'>分享好友</view>
\ No newline at end of file
<button open-type='share' class='service_btn_box'>分享好友</button>
\ No newline at end of file
... ...
... ... @@ -15,4 +15,25 @@
position: fixed !important;
bottom: 0;
left: 0;
border-radius: 0;
}
.service_btn_box::after {
border: 0;
border-radius: 0;
}
.list_info_box {
transition: 1s ease all;
}
.img_list {
height: 200rpx;
overflow: hidden;
transition: 1s ease all;
}
.icon-xiala {
margin-left: 20rpx;
color: #6f6f6f;
}
... ...
// pages/myCard/myCard.js
const app = getApp()
Page({
/**
... ... @@ -15,6 +16,18 @@ Page({
swipercurrent: e.detail.current
})
},
myCardList(){
let url ='/user/Student/student_card'
let params={}
let header={
"XX-Token":wx.getStorageSync('token')
}
app.post(url,params,header).then((res)=>{
console.log(res)
})
},
//跳转预约记录
record() {
wx.navigateTo({
... ... @@ -22,13 +35,13 @@ Page({
})
},
//立即购买
buyCard(){
buyCard() {
wx.navigateTo({
url: '../buyCard/buyCard',
})
},
//团购畅玩卡
groupBuy(){
groupBuy() {
wx.navigateTo({
url: '../groupBuy/groupBuy',
})
... ... @@ -37,7 +50,7 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
this.myCardList()
},
/**
... ...
// pages/my/shareGroupBuy/shareGroupBuy.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
let that = this;
var id=wx.getStorageSync('id')
// 设置菜单中的转发按钮触发转发事件时的转发内容
var shareObj = {
title: '科学队长', // 默认是小程序的名称(可以写slogan等)
path: '/pages/my/takeGroupBuy/takeGroupBuy?id=' + id, // 默认是当前页面,必须是以‘/’开头的完整路径
imageUrl: '', //自定义图片路径,可以是本地文件路径、代码包文件路径或者网络图片路径,支持PNG及JPG,不传入 imageUrl 则使用默认截图。显示图片长宽比是 5:4
success: function (res) {
if (res.errMsg == 'shareAppMessage:ok') { }
},
fail: function () {
// 转发失败之后的回调
if (res.errMsg == 'shareAppMessage:fail cancel') {
// 用户取消转发
} else if (res.errMsg == 'shareAppMessage:fail') {
// 转发失败,其中 detail message 为详细失败信息
}
},
complete: function () {
// 转发结束之后的回调(转发成不成功都会执行)
}
}
// 来自页面内的按钮的转发
// if (option.from == 'button') {
// // 此处可以修改 shareObj 中的内容
// // shareObj.imageUrl = '/pages/shareimg/share.png'
// }   // 返回shareObj
return shareObj;
}
})
\ No newline at end of file
... ...
{
"navigationBarTitleText": "畅玩卡团购"
}
\ No newline at end of file
... ...
<!--pages/groupBuy/groupBuy.wxml-->
<view class='banner_box'>
<view>
<text>团购人数:</text>
<text class='banner_num'>3人</text>
</view>
<view>
<text>发布倒计时:</text>
<text class='banner_num'>3小时</text>
</view>
</view>
<view class='content_box'>
<view class='list_title_info'>
<view class='iconfont icon-zhongdian'> </view>
<view>
<view>团购规则说明</view>
<view class='content_info'>如果因为环境网络问题或者其他原因导致无法打卡,请上传照 片及文字申诉内容,证明您已到场并已经参与活动。</view>
</view>
</view>
<view class='service_box'>
<view class='service_info_box'>
<text class='iconfont icon-xuanzhong'></text>
<text>畅玩卡服务协议</text>
<!-- <text class='service_info' bindtap='serviceProtocol'>服务协议</text> -->
</view>
<view class='service_btn_box'>
<view>参与团购单价:¥188.00</view>
<button open-type='share' class='pay_btn' bindtap='goPay'>分享好友</button>
</view>
</view>
<view class='null_box'></view>
<!-- <view class='bottom_box'>
<text class='iconfont icon-fenxiang'></text> 分享的文案,50汉字以内提示分享的文案,50汉字以内提示分 享的文案,50汉字以内
</view> -->
</view>
\ No newline at end of file
... ...
/* pages/my/takeGroupBuy/takeGroupBuy.wxss */
@import '/pages/my/groupBuy/groupBuy.wxss';
.banner_box{
width: 95%;
border-radius:15rpx;
background: #fff;
margin: 20rpx auto;
font-size: 28rpx;
color: #464646;
padding: 30rpx 230rpx;
box-sizing: border-box;
line-height: 60rpx;
}
.banner_num{
color: #FC5B63;
}
.pay_btn::after{
border: 0;
}
\ No newline at end of file
... ...
// pages/my/takeGroupBuy/takeGroupBuy.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})
\ No newline at end of file
... ...
{
"navigationBarTitleText": "畅玩卡团购"
}
\ No newline at end of file
... ...
<!--pages/groupBuy/groupBuy.wxml-->
<view class='banner_img'>
<image src='../../../images/banner.jpg'></image>
</view>
<view class='content_box'>
<view>
<view class='item_list' wx:for='{{groupList}}' wx:key=''>
<view class='list_title_box' data-id='{{item.id}}' bindtap='listDetail'>
<view>查看详情</view>
<view class='iconfont icon-fanhui'></view>
</view>
<view class='list_info_box'>
<block wx:for='{{item.group_detail}}' wx:for-item='sub_item' wx:key=''>
<view class='info_item'>
<view class='info_box'>
<block>
<image src='{{sub_item.avatar}}'></image>
<view class='info_label' wx:if='{{sub_item.is_start==1}}'>发起人</view>
</block>
</view>
<view class='info_time'>
<view>{{sub_item.date}}</view>
<view>{{sub_item.time}}</view>
</view>
</view>
</block>
<!-- <view class='info_item' >
<view class='info_box'>
<image src='{{sub_item.avatar}}'></image>
<view class='info_label'>发起人</view>
</view>
<view class='info_time'>
<view>{{sub_item.date}}</view>
<view> {{sub_item.time}}</view>
</view>
</view>
<view class='info_item'>
<view class='info_box'>
</view>
</view>
<view class='info_item'>
<view class='info_box'>
</view>
</view>
<view class='info_item'>
<view class='info_box'>
</view>
</view> -->
</view>
<view class='list_info'>成团人数:最低
<text>{{item.num}}</text>人,已参与:
<text>{{item.count}}</text> 人,快呼唤伙伴参与吧!</view>
<view class='list_info'>
<view class='list_info_item'>剩余
<text>{{item.surplus_time}}</text> 结束</view>
</view>
<view>
<view class='user_info_box'>
<view class='user_info'>
<view class='info_box'>
<image src='{{item.avatar}}'></image>
<view class='info_label'>发起人</view>
</view>
<view>{{item.user_nickname}}</view>
</view>
<view class='state_box'>
<view>{{item.start_time}}开团</view>
<view class='info_state' wx:if='{{item.group_status==1}}'>团购中</view>
<view class='info_state' wx:if='{{item.group_status==2}}'>团购失败</view>
<view class='info_state' wx:if='{{item.group_status==3}}'>团购成功</view>
</view>
</view>
</view>
</view>
</view>
<view class='list_title_info'>
<view class='iconfont icon-zhongdian'> </view>
<view>
<view>团购规则说明</view>
<view class='content_info'>如果因为环境网络问题或者其他原因导致无法打卡,请上传照 片及文字申诉内容,证明您已到场并已经参与活动。</view>
</view>
</view>
<view class='service_box'>
<view class='service_info_box'>
<text class='iconfont icon-xuanzhong'></text>
<text>服务协议</text>
<!-- <text class='service_info' bindtap='serviceProtocol'>服务协议</text> -->
</view>
<view class='service_btn_box'>
<view>单价:¥188.00</view>
<view class='pay_btn' bindtap='goPay'>参与并支付</view>
</view>
</view>
<view class='null_box'></view>
<!-- <view class='bottom_box'>
<text class='iconfont icon-fenxiang'></text> 分享的文案,50汉字以内提示分享的文案,50汉字以内提示分 享的文案,50汉字以内
</view> -->
</view>
... ...
/* pages/my/takeGroupBuy/takeGroupBuy.wxss */
@import '/pages/my/groupBuy/groupBuy.wxss';
\ No newline at end of file
... ...