@@ -0,0 +1,27 @@ | |||||
const Http = require("../../utils/HttpBasics"); | |||||
var config = require("../../config/config.js"); | |||||
Component({ | |||||
properties: { | |||||
questionnaire: { | |||||
type: Object, | |||||
value: {} | |||||
} | |||||
}, | |||||
data: { | |||||
flag: false, | |||||
}, | |||||
methods:{ | |||||
close:function(){ | |||||
this.setData({ flag: true }) | |||||
} | |||||
}, | |||||
onReady: function () { | |||||
console.log(this.questionnaire, 999999999) | |||||
}, | |||||
onLoad: function (options) { | |||||
console.log(this.questionnaire, 999999999) | |||||
}, | |||||
onShow: function () { | |||||
console.log(this.questionnaire, 999999999) | |||||
} | |||||
}); |
@@ -0,0 +1,6 @@ | |||||
{ | |||||
"component": true, | |||||
"usingComponents": { | |||||
} | |||||
} |
@@ -0,0 +1,13 @@ | |||||
<view class="b1" hidden="{{flag}}"> | |||||
<view class='con'> | |||||
<image class='close' mode='widthFix' src="./../../assets/img/closed.png" bindtap="close"></image> | |||||
<image class='image' src="./../../assets/img/headbg.png" mode='widthFix'></image> | |||||
<image class='img image' src="./../../assets/img/ques_bg.png" mode='widthFix'></image> | |||||
<form class='question' bindsubmit="formSubmit" bindreset="formReset"> | |||||
<text class='title'>{{questionnaire.title}}</text> | |||||
<view class='quessss'> | |||||
<view class='ques' wx:for="{{questionnaire.questions}}" wx:key="{{index}}">{{item.ques}}</view> | |||||
</view> | |||||
</form> | |||||
</view> | |||||
</view> |
@@ -0,0 +1,73 @@ | |||||
.b1 { | |||||
position: fixed; | |||||
top: 0px; | |||||
bottom: 0px; | |||||
left: 0px; | |||||
right: 0px; | |||||
background: rgba(0, 0, 0, 0.8); | |||||
overflow: hidden; | |||||
z-index: 1000000000000; | |||||
} | |||||
.con { | |||||
position: absolute; | |||||
top: 120rpx; | |||||
right: 0; | |||||
bottom: 0; | |||||
left: 0; | |||||
margin: auto; | |||||
width: 587rpx; | |||||
} | |||||
.con .image { | |||||
display: block; | |||||
width: 100%; | |||||
} | |||||
.img { | |||||
margin-top: -48rpx; | |||||
} | |||||
.question { | |||||
display: block; | |||||
width: 587rpx; | |||||
background: #fff; | |||||
border-bottom-left-radius: 22rpx; | |||||
border-bottom-right-radius: 22rpx; | |||||
overflow: hidden; | |||||
} | |||||
.ques { | |||||
width: 511rpx; | |||||
margin: 0 auto; | |||||
height: 86rpx; | |||||
line-height: 86rpx; | |||||
text-align: center; | |||||
font-size: 30rpx; | |||||
color: #333; | |||||
border-bottom: 1rpx solid #eee; | |||||
} | |||||
.title { | |||||
width: 511rpx; | |||||
display: block; | |||||
text-align: center; | |||||
height: 50rpx; | |||||
margin: 0 auto; | |||||
padding-top:10rpx; | |||||
padding-bottom:20rpx; | |||||
font-size: 32rpx; | |||||
font-weight: bold; | |||||
line-height: 41rpx; | |||||
border-bottom: 1rpx solid #eee; | |||||
} | |||||
.quessss >view:last-child{ | |||||
border-bottom:0; | |||||
} | |||||
.close{ | |||||
position: relative; | |||||
z-index: 1000000000000000; | |||||
display: block; | |||||
width: 70rpx; | |||||
} |
@@ -53,7 +53,7 @@ var config = { | |||||
* 订单列表 | * 订单列表 | ||||
*/ | */ | ||||
orderList: "/order/list", | orderList: "/order/list", | ||||
getWeRunData: '/user/getWeRunData', | |||||
/** | /** | ||||
* 订单详情 | * 订单详情 | ||||
*/ | */ | ||||
@@ -77,6 +77,7 @@ var config = { | |||||
/** | /** | ||||
* 车场信息获取 | * 车场信息获取 | ||||
*/ | */ | ||||
scoreLevelInfo: '/mall/scoreLevelInfo', | |||||
getParkInfo: "/wxPark/info", | getParkInfo: "/wxPark/info", | ||||
/** | /** | ||||
* 用户所绑车牌获取 | * 用户所绑车牌获取 | ||||
@@ -20,6 +20,12 @@ Page({ | |||||
result: [], | result: [], | ||||
end_time: '', | end_time: '', | ||||
clock: "已经截止", | clock: "已经截止", | ||||
questionnaire: { | |||||
title: "问题1" , | |||||
questions: [ | |||||
{ ques: "小主,您有喜欢的小鲜肉吗?" }, | |||||
{ ques: "小主,您有娃吗?" }] | |||||
}, | |||||
}, | }, | ||||
phone: function () { | phone: function () { | ||||
@@ -1,6 +1,6 @@ | |||||
{ | { | ||||
"usingComponents": { | "usingComponents": { | ||||
"questionnaire": "../../../components/questionnaire/questionnaire" | |||||
}, | }, | ||||
"navigationBarTitleText": "券详情" | "navigationBarTitleText": "券详情" | ||||
} | } |
@@ -88,4 +88,6 @@ | |||||
<button class='buy' wx:if="{{endtime=='活动已结束'}}" style="background:#999;color: #fff;">活动已结束</button> | <button class='buy' wx:if="{{endtime=='活动已结束'}}" style="background:#999;color: #fff;">活动已结束</button> | ||||
<button class='buy' wx:if="{{total_micro_second<=0}}" style="background:#999;color: #fff;">活动已结束</button> | <button class='buy' wx:if="{{total_micro_second<=0}}" style="background:#999;color: #fff;">活动已结束</button> | ||||
</view> | </view> | ||||
</view> | |||||
</view> | |||||
<!-- 问卷调查 --> | |||||
<questionnaire questionnaire="{{questionnaire}}" bind:myevent="" /> |
@@ -22,7 +22,7 @@ | |||||
<view class='address' bindtap='address'> | <view class='address' bindtap='address'> | ||||
<text>住址</text> | <text>住址</text> | ||||
<view class='names' wx:if="{{name}}">{{name}}</view> | <view class='names' wx:if="{{name}}">{{name}}</view> | ||||
<view class='names' wx:if="{{!name}}">请输入地址</view> | |||||
<view class='names' wx:if="{{!name}}">请选择地址</view> | |||||
</view> | </view> | ||||
<button class='btn' formType="submit" hover-class='active'>修改会员资料</button> | <button class='btn' formType="submit" hover-class='active'>修改会员资料</button> | ||||
</form> | </form> |