@@ -88,7 +88,7 @@ Page({ | |||
dispressEndDate:false, | |||
barTitle:"" | |||
}, | |||
/** | |||
/** | |||
* 显示分享弹框 | |||
*/ | |||
showshare: function() { | |||
@@ -220,8 +220,4 @@ | |||
</view> | |||
</view> | |||
</view> | |||
<!-- 发起砍价 --> | |||
<!-- <button class='goback' bindtap='goback'><image src='{{wmhome}}' mode="widthFix"></image></button> --> | |||
</view> |
@@ -1,4 +1,4 @@ | |||
const navigationBarHeight = (getApp().statusBarHeight + 50) + 'px' | |||
const navigationBarHeight = (getApp().statusBarHeight + 44) + 'px' | |||
var config = require("../../config/config.js"); | |||
const Http = require("../../utils/HttpBasics"); | |||
const imgurl = require("../../utils/imgurl"); | |||
@@ -1,5 +1,5 @@ | |||
<!-- <button class='goback' bindtap='goback'><image src='{{wmhome}}' mode="widthFix"></image></button> --> | |||
<navbar back home text="积分商城" background='#fff'></navbar> | |||
<navbar back home text="积分商城" background='#FD832D' color="#FFF"></navbar> | |||
<view class='content-box' style="padding-top:{{navigationBarHeight}}"> | |||
<view class='topbg'> | |||
<view class='topbg-top'> | |||
@@ -9,6 +9,8 @@ const extConfig = wx.getExtConfigSync ? wx.getExtConfigSync() : {} | |||
let configUrls = extConfig.attr.configUrl; | |||
Page({ | |||
data: { | |||
fenxiang: imgurl.fenxiang.url, | |||
isshowposter: false,//是否显示分享弹框 | |||
navigationBarHeight, | |||
data: {}, | |||
status: 1, | |||
@@ -21,7 +23,7 @@ Page({ | |||
homeSelectedO: imgurl.homeSelectedO.url, | |||
wmhome: imgurl.wmhome.url, | |||
minute: "", | |||
nodes: '' | |||
nodes: '', | |||
}, | |||
onLoad(options) { | |||
let that = this; | |||
@@ -106,5 +108,6 @@ Page({ | |||
wx.navigateTo({ | |||
url: `/pages/actdetail/actdetail?detail=${that.data.data.detail}`, | |||
}) | |||
} | |||
}, | |||
}); |
@@ -10,24 +10,33 @@ | |||
<view class='banner'> | |||
<image src='{{data.coverImg}}' mode='widthFix'></image> | |||
</view> | |||
</view> | |||
<view class='box'> | |||
<view class='act'> | |||
<text class='txt001'>{{data.title}}</text> | |||
<text class='txt002'>{{data.subTitle}}</text> | |||
<view class="proct" wx:if="{{data.type == 1}}"> | |||
<text>活动说明</text> | |||
<view class='detail'>{{data.detail}}</view> | |||
</view> | |||
<view class='num'> | |||
<view class='member'>1、活动人数:{{data.personLimit}}人</view> | |||
<view class='integral' ><text>消耗积分:</text><text class='integralNum'>{{data.credit}}</text> 积分</view> | |||
<view class='box'> | |||
<view class='act'> | |||
<view class='fenxiang' bindtap='showshare'> | |||
<image class="fenxiang" src='{{fenxiang}}' mode="widthFix"></image> | |||
<text class='gift'>分享有礼</text> | |||
</view> | |||
<text class='txt001'>{{data.title}}</text> | |||
<text class='txt002'>{{data.subTitle}}</text> | |||
<view class="proct" > | |||
<text>活动说明</text> | |||
<view class='detail' wx:if="{{data.type == 1}}">{{data.detail}}</view> | |||
</view> | |||
<view class='num'> | |||
<view class='member'>1、活动人数:{{data.personLimit}}人</view> | |||
<view class='integral' ><text>消耗积分:</text><text class='integralNum'>{{data.credit}}</text> 积分</view> | |||
</view> | |||
<view class='time'>2、报名有效日期</view> | |||
<view class='time' style='margin-left:36rpx' >{{startTime}}--{{endTime}}</view> | |||
<view class='time' >3、活动有效日期</view> | |||
<view class='time' style='margin-left:36rpx'>{{activityStartTime}}--{{activityEndTime}}</view> | |||
</view> | |||
<view class='time'>2、报名有效日期</view> | |||
<view class='time' style='margin-left:36rpx' >{{startTime}}--{{endTime}}</view> | |||
<view class='time' >3、活动有效日期</view> | |||
<view class='time' style='margin-left:36rpx'>{{activityStartTime}}--{{activityEndTime}}</view> | |||
</view> | |||
</view> | |||
<!-- 自由图文格式 --> | |||
<view wx:if="{{data.type == 2}}"> | |||
<view class="content"> | |||
<template is="wxParse" data="{{wxParseData:article.nodes}}" /> | |||
</view> | |||
</view> | |||
<!-- 自由图文格式 --> | |||
@@ -35,9 +44,24 @@ | |||
<view class="content"> | |||
<template is="wxParse" data="{{wxParseData:article.nodes}}" /> | |||
</view> | |||
</view> | |||
<button wx:if="{{status == 0}}" disabled class='signUpHr' hover-class='opacity'>报名未开始</button> | |||
<button wx:if="{{status == 1}}" class='signUp' data-activityId="{{activityId}}" bindtap='goSignUp' hover-class='opacity'>我要报名</button> | |||
<button wx:if="{{status == 2}}" disabled class='signUpHr' hover-class='opacity'>活动已结束</button> | |||
<button wx:if="{{status == 3}}" disabled class='signUpHr' hover-class='opacity'>已报名</button> | |||
<button wx:if="{{status == 0}}" disabled class='signUpHr' hover-class='opacity'>报名未开始</button> | |||
<button wx:if="{{status == 1}}" class='signUp' data-activityId="{{activityId}}" bindtap='goSignUp' hover-class='opacity'>我要报名</button> | |||
<button wx:if="{{status == 2}}" disabled class='signUpHr' hover-class='opacity'>活动已结束</button> | |||
<button wx:if="{{status == 3}}" disabled class='signUpHr' hover-class='opacity'>已报名</button> | |||
<!-- 分享弹框 --> | |||
<view class='modal' wx:if="{{isshowposter}}" bindtap='hidemodal'> | |||
<view class='modal-content'> | |||
<view> | |||
<button class='share user-motto' data-id='{{data.id}}' data-couponId='{{data.couponId}}' data-title='{{data.title}}' id="shareBtn" open-type="share" hover-class="other-button-hover"></button> | |||
<image src='../../assets/images/wechat.png' mode='aspectFit'></image> | |||
<text>微信好友</text> | |||
</view> | |||
<view bindtap='showPoster'> | |||
<image src='../../assets/images/picture.png' mode='aspectFit'></image> | |||
<text>生成海报</text> | |||
</view> | |||
</view> | |||
</view> | |||
</view> |
@@ -21,24 +21,9 @@ page{ | |||
.banner image { | |||
width: 750rpx; | |||
/* height: 280rpx; */ | |||
} | |||
.act { | |||
position: relative; | |||
background: #fff; | |||
border-radius: 12rpx; | |||
width: 705rpx; | |||
/* height: 212rpx; */ | |||
margin: 24rpx auto 0; | |||
padding-bottom: 20rpx; | |||
} | |||
/* .act text { | |||
display: block; | |||
padding-left: 4.8%; | |||
padding-right: 4.8%; | |||
} */ | |||
.txt001 { | |||
display: block; | |||
@@ -60,7 +45,6 @@ page{ | |||
.proct { | |||
position: relative; | |||
/* height: 60rpx; */ | |||
margin-top: 20rpx; | |||
} | |||
@@ -71,17 +55,10 @@ page{ | |||
letter-spacing: 0; | |||
line-height: 32rpx; | |||
margin-bottom: 20rpx; | |||
/* width: 60rpx; */ | |||
/* height: 64rpx; */ | |||
} | |||
.proct text:nth-of-type(2) { | |||
display: block; | |||
/* width: 498rpx; */ | |||
/* height: 63rpx; */ | |||
/* overflow: hidden; */ | |||
word-wrap:break-word; | |||
/* text-overflow: ellipsis; */ | |||
font-size: 22rpx; | |||
color: #6f6f6f; | |||
letter-spacing: 0; | |||
@@ -342,15 +319,6 @@ navigator:nth-of-type(2n+1) { | |||
height: 486rpx; | |||
} | |||
/* .coupons1-border { | |||
height: 1rpx; | |||
left: 30rpx; | |||
right: 30rpx; | |||
background: #f5f5f5; | |||
position: absolute; | |||
bottom: 0; | |||
} */ | |||
.coupons1-img { | |||
width: 344rpx; | |||
height: 258rpx; | |||
@@ -575,20 +543,17 @@ button::after{ border: none; } | |||
.coupons-body { | |||
flex: 1; | |||
/* overflow: auto; */ | |||
} | |||
.banner { | |||
position: relative; | |||
width: 750rpx; | |||
/* height: 280rpx; */ | |||
overflow: hidden; | |||
box-shadow:0px 14px 26px 0px rgba(199,203,211,1); | |||
} | |||
.banner image { | |||
width: 750rpx; | |||
/* height: 280rpx; */ | |||
border-radius: 16rpx; | |||
} | |||
.box{ | |||
@@ -599,16 +564,12 @@ button::after{ border: none; } | |||
background: #fff; | |||
border-radius: 12rpx; | |||
width:94%; | |||
/* margin: 44rpx auto 0; */ | |||
padding-bottom: 20rpx; | |||
padding:0 3%; | |||
} | |||
.act text { | |||
display: block; | |||
/* text-align: center; | |||
padding-left: 4.8%; | |||
padding-right: 4.8%; */ | |||
} | |||
.txt001 { | |||
@@ -660,7 +621,6 @@ button::after{ border: none; } | |||
.proct { | |||
position: relative; | |||
/* height: 60rpx; */ | |||
margin-top: 20rpx; | |||
} | |||
@@ -671,17 +631,11 @@ button::after{ border: none; } | |||
letter-spacing: 0; | |||
line-height: 32rpx; | |||
margin-bottom: 20rpx; | |||
/* width: 60rpx; */ | |||
/* height: 64rpx; */ | |||
} | |||
.proct text:nth-of-type(2) { | |||
display: block; | |||
/* width: 498rpx; */ | |||
/* height: 63rpx; */ | |||
/* overflow: hidden; */ | |||
word-wrap:break-word; | |||
/* text-overflow: ellipsis; */ | |||
font-size: 22rpx; | |||
color: #6f6f6f; | |||
letter-spacing: 0; | |||
@@ -808,7 +762,7 @@ navigator:nth-of-type(2n+1) { | |||
line-height: 87rpx; | |||
} | |||
.content{ | |||
padding: 0 20rpx 160rpx; | |||
padding: 0 40rpx 160rpx; | |||
} | |||
.posi>view:nth-child(2) text:nth-child(1) { | |||
font-size: 30rpx; | |||
@@ -1129,8 +1083,7 @@ scroll-view { | |||
.signUp{ | |||
position: fixed; | |||
bottom: 22rpx; | |||
/* left: 0; */ | |||
right: 22rpx; | |||
left: 110rpx; | |||
margin: auto; | |||
width:556rpx; | |||
height: 92rpx; | |||
@@ -1141,13 +1094,11 @@ scroll-view { | |||
font-size: 30rpx; | |||
text-align: center; | |||
border:1rpx solid rgba(227,227,227,1); | |||
/* box-shadow: 0 0 10px 0 rgba(211,211,211,0.50); */ | |||
} | |||
.signUpHr{ | |||
position: fixed; | |||
bottom: 22rpx; | |||
/* left: 0; */ | |||
right: 22rpx; | |||
left: 100rpx; | |||
margin: auto; | |||
width:556rpx; | |||
height: 92rpx; | |||
@@ -1158,7 +1109,6 @@ scroll-view { | |||
font-size: 30rpx; | |||
text-align: center; | |||
border:1rpx solid rgba(227,227,227,1); | |||
/* box-shadow: 0 0 10px 0 rgba(211,211,211,0.50); */ | |||
} | |||
.opacity{ | |||
opacity: .8; | |||
@@ -1185,4 +1135,64 @@ scroll-view { | |||
margin-bottom: 20rpx; | |||
color: #666; | |||
padding-left: 2%; | |||
} | |||
.fenxiang image { | |||
width:48rpx; | |||
height: 48rpx; | |||
position: absolute; | |||
top: 2.5%; | |||
right: 36rpx; | |||
} | |||
.gift{ | |||
color: #3C3C3C; | |||
font-size: 20rpx; | |||
position: absolute; | |||
top: 65rpx; | |||
right: 24rpx; | |||
} | |||
.modal { | |||
width: 100%; | |||
height: 100%; | |||
position: fixed; | |||
top: 0; | |||
left: 0; | |||
background: rgba(0, 0, 0, 0.5); | |||
overflow: hidden; | |||
z-index: 10000; | |||
color: #fff; | |||
} | |||
.modal-content { | |||
width: 540rpx; | |||
height: 233rpx; | |||
line-height: 60rpx; | |||
overflow: hidden; | |||
position: fixed; | |||
top: 50%; | |||
left: 0; | |||
z-index: 11; | |||
background: #f9f9f9; | |||
margin: -130rpx 105rpx; | |||
border-radius: 36rpx; | |||
display: flex; | |||
} | |||
.modal-content view { | |||
display: inline-block; | |||
flex: 1; | |||
text-align: center; | |||
} | |||
.modal-content view>text { | |||
color: #000; | |||
display: block; | |||
font-size: 30rpx; | |||
} | |||
.modal-content view>image { | |||
margin-top: 40rpx; | |||
width: 90rpx; | |||
height: 90rpx; | |||
} |
@@ -1,3 +1,4 @@ | |||
const navigationBarHeight = (getApp().statusBarHeight + 44) + 'px' | |||
const util = require("../../../utils/util.js"); | |||
const Http = require("../../../utils/HttpBasics"); | |||
const config = require("../../../config/config"); | |||
@@ -7,6 +8,7 @@ Page({ | |||
* 页面的初始数据 | |||
*/ | |||
data: { | |||
navigationBarHeight, | |||
date: '1988-03-12', | |||
flag: 1, | |||
answerflag: "", | |||
@@ -1,3 +1,6 @@ | |||
{ | |||
"navigationBarTitleText": "活动调查" | |||
"navigationBarTitleText": "活动调查", | |||
"usingComponents": { | |||
"navbar": "../../../../components/navbar/navbar" | |||
} | |||
} |
@@ -1,46 +1,49 @@ | |||
<form bindsubmit="formSubmit"> | |||
<view style='padding-bottom:100rpx;'> | |||
<view class='section'> | |||
<text>姓名</text> | |||
<input wx:if="{{username}}" name="username" type="text" placeholder='{{username}}' /> | |||
<input wx:if="{{!username}}" name="username" type="text" placeholder='请填写名字' /> | |||
</view> | |||
<view class="section sec"> | |||
<text>生日</text> | |||
<picker mode="date" value="{{date}}" start="1930-09-01" end="2017-09-01" bindchange="bindDateChange"> | |||
<input wx:if="{{flag==1}}" class='input' placeholder='请输入生日' disabled/> | |||
<view wx:if="{{flag==2}}" class="picker"> {{date}}</view> | |||
</picker> | |||
</view> | |||
<view class="section section_gap"> | |||
<text>性别</text> | |||
<radio-group class="radio-group" bindchange="radioChange"> | |||
<radio class="radio" wx:for-items="{{items}}" wx:key="name" value="{{item.name}}" checked="{{item.checked}}"> | |||
<text>{{item.value}}</text> | |||
</radio> | |||
</radio-group> | |||
</view> | |||
<!-- <view class='address' bindtap='address'> | |||
<text>住址</text> | |||
<view class='names' wx:if="{{address}}">{{address}}</view> | |||
<view class='names' wx:if="{{!address}}">请选择地址</view> | |||
</view> --> | |||
<view class='ques' wx:if="{{question&&question.length>0}}"> | |||
<text class='questionTitle'>调查问卷</text> | |||
<view class='answer' wx:for="{{question}}" wx:key="index"> | |||
<text>{{item.ques}}</text> | |||
<textarea name="answer{{index}}" bindinput='change' type="textarea" placeholder='请填写您的回答?'></textarea> | |||
<navbar home back text="活动调查"></navbar> | |||
<view style="padding-top:{{navigationBarHeight}}"> | |||
<form bindsubmit="formSubmit"> | |||
<view style='padding-bottom:100rpx;'> | |||
<view class='section'> | |||
<text>姓名</text> | |||
<input wx:if="{{username}}" name="username" type="text" placeholder='{{username}}' /> | |||
<input wx:if="{{!username}}" name="username" type="text" placeholder='请填写名字' /> | |||
</view> | |||
</view> | |||
<view wx:if="{{useImg==1}}"> | |||
<view class='quesTitle'>{{imgDetail}}</view> | |||
<view class='up-img' wx:if="{{showReceiptUrl}}"> | |||
<image src='{{receiptUrl}}' mode="widthFix"></image> | |||
<view class="section sec"> | |||
<text>生日</text> | |||
<picker mode="date" value="{{date}}" start="1930-09-01" end="2017-09-01" bindchange="bindDateChange"> | |||
<input wx:if="{{flag==1}}" class='input' placeholder='请输入生日' disabled/> | |||
<view wx:if="{{flag==2}}" class="picker"> {{date}}</view> | |||
</picker> | |||
</view> | |||
<view class="section section_gap"> | |||
<text>性别</text> | |||
<radio-group class="radio-group" bindchange="radioChange"> | |||
<radio class="radio" wx:for-items="{{items}}" wx:key="name" value="{{item.name}}" checked="{{item.checked}}"> | |||
<text>{{item.value}}</text> | |||
</radio> | |||
</radio-group> | |||
</view> | |||
<!-- <view class='address' bindtap='address'> | |||
<text>住址</text> | |||
<view class='names' wx:if="{{address}}">{{address}}</view> | |||
<view class='names' wx:if="{{!address}}">请选择地址</view> | |||
</view> --> | |||
<view class='ques' wx:if="{{question&&question.length>0}}"> | |||
<text class='questionTitle'>调查问卷</text> | |||
<view class='answer' wx:for="{{question}}" wx:key="index"> | |||
<text>{{item.ques}}</text> | |||
<textarea name="answer{{index}}" bindinput='change' type="textarea" placeholder='请填写您的回答?'></textarea> | |||
</view> | |||
</view> | |||
<view class='camera' bindtap='uploadImg'> | |||
<text>+</text> | |||
<view wx:if="{{useImg==1}}"> | |||
<view class='quesTitle'>{{imgDetail}}</view> | |||
<view class='up-img' wx:if="{{showReceiptUrl}}"> | |||
<image src='{{receiptUrl}}' mode="widthFix"></image> | |||
</view> | |||
<view class='camera' bindtap='uploadImg'> | |||
<text>+</text> | |||
</view> | |||
</view> | |||
</view> | |||
</view> | |||
<button class='btn' formType="submit" disabled='{{disabled}}' hover-class='active'>提交</button> | |||
</form> | |||
<button class='btn' formType="submit" disabled='{{disabled}}' hover-class='active'>提交</button> | |||
</form> | |||
</view> |
@@ -1,3 +1,4 @@ | |||
const navigationBarHeight = (getApp().statusBarHeight + 44) + 'px' | |||
const util = require("../../../utils/util.js"); | |||
const Http = require("../../../utils/HttpBasics"); | |||
const config = require("../../../config/config"); | |||
@@ -6,6 +7,7 @@ Page({ | |||
* 页面的初始数据 | |||
*/ | |||
data: { | |||
navigationBarHeight, | |||
date: '1988-03-12', | |||
flag: 1, | |||
flagsex: 0, | |||
@@ -1,3 +1,6 @@ | |||
{ | |||
"navigationBarTitleText": "报名成功" | |||
"navigationBarTitleText": "报名成功", | |||
"usingComponents": { | |||
"navbar": "../../../../components/navbar/navbar" | |||
} | |||
} |
@@ -1,14 +1,17 @@ | |||
<view class='title' wx:if="{{credit}}">您已扣除{{credit}}积分</view> | |||
<view class='success'> | |||
<text class='tit'>报名成功</text> | |||
<text class='mess'>请您在我的活动中查看您的报名状态</text> | |||
</view> | |||
<navbar home back text="报名成功"></navbar> | |||
<view style="padding-top:{{navigationBarHeight}}"> | |||
<view class='title' wx:if="{{credit}}">您已扣除{{credit}}积分</view> | |||
<view class='success'> | |||
<text class='tit'>报名成功</text> | |||
<text class='mess'>请您在我的活动中查看您的报名状态</text> | |||
</view> | |||
<view class="btns clearfix" hover-class="none" hover-stop-propagation="false"> | |||
<button class="fl" bindtap='goback'> | |||
返回首页 | |||
</button> | |||
<button class="fr" bindtap='gotomyAc'> | |||
我的活动 | |||
</button> | |||
<view class="btns clearfix" hover-class="none" hover-stop-propagation="false"> | |||
<button class="fl" bindtap='goback'> | |||
返回首页 | |||
</button> | |||
<button class="fr" bindtap='gotomyAc'> | |||
我的活动 | |||
</button> | |||
</view> | |||
</view> |
@@ -1,4 +1,4 @@ | |||
<navbar home back text="我的活动" background="#fff"></navbar> | |||
<navbar home back text="我的活动"></navbar> | |||
<view class="market" style="padding-top:{{navigationBarHeight}}"> | |||
<i-tabs class='tabs' current="{{ current_scroll }}" scroll bindchange="handleChangeScroll" style="top:{{navigationBarHeight}}"> | |||
<i-tab class='i-tab' wx:for="{{tabs}}" wx:key="unique" key="{{item.key}}" title="{{item.name}}"></i-tab> | |||