guidance.wxml
6.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<!--pages/guidance/guidance.wxml-->
<view style="{{ok==true?'overflow: hidden; position: fixed;top:0;width:100%;height: 100%;':''}}">
<view class="rich">
{{allTopic.part1}}
</view>
<view class="topic">
<view class="title">
<view class="num">1</view>
<view class="name">{{allTopic.part2[0].title}}</view>
</view>
<view class="gName">{{allTopic.part2[0].content}}</view>
<view class="List">
<view class="list" style="{{issue == '胡辣汤'?'background:#FFCC00;':''}}" bindtap='issue' data-id='胡辣汤'>胡辣汤</view>
<view class="list" style="{{issue == '豆浆'?'background:#FFCC00;':''}}" bindtap='issue' data-id='豆浆'>豆浆</view>
<view class="list" style="{{issue == '粥类'?'background:#FFCC00;':''}}" bindtap='issue' data-id='粥类'>粥类</view>
</view>
</view>
<view class="topic">
<view class="title">
<view class="num">2</view>
<view class="name">{{allTopic.part2[1].title}}</view>
</view>
<view class="gName">{{allTopic.part2[1].content}}</view>
<picker bindchange="bindPickerChange" value="{{index}}" range="{{array}}">
<view class="section">
<view class="picker">
{{array[index]}}次
</view>
<text class="icon icon-icon-test3"></text>
</view>
</picker>
</view>
<view class="topic">
<view class="title">
<view class="num">3</view>
<view class="name">{{allTopic.part2[2].title}}</view>
</view>
<view class="gName" style="text-align:left;">{{allTopic.part2[2].content}}</view>
<view class="location">
<picker bindchange="bindPickerChange2" value="{{provinceIndex}}" range="{{provinceStr}}">
<view class="section">
<view class="picker">
{{provinceStr[provinceIndex]}}
</view>
<text class="icon icon-icon-test3"></text>
</view>
</picker>
<picker bindchange="bindPickerChange3" value="{{cityIndex}}" range="{{cityStr}}">
<view class="section">
<view class="picker">
{{cityStr[cityIndex]}}
</view>
<text class="icon icon-icon-test3"></text>
</view>
</picker>
<picker bindchange="bindPickerChange4" value="{{districtIndex}}" range="{{districtStr}}">
<view class="section">
<view class="picker">
{{districtStr[districtIndex]}}
</view>
<text class="icon icon-icon-test3"></text>
</view>
</picker>
</view>
<picker bindchange="bindPickerChange5" value="{{streetIndex}}" range="{{streetStr}}">
<view class="section" style="width:544rpx;margin:0 auto;margin-top:20rpx;">
<view class="picker" style="font-size:28rpx;color:#999;">
{{streetStr[streetIndex]}}
</view>
<text class="icon icon-icon-test3"></text>
</view>
</picker>
<view class="section" style="width:544rpx;margin:0 auto;margin-top:20rpx;">
<input placeholder='详细地址' bindinput='detailedAddress' style="margin-left:21rpx;color:#999;"></input>
</view>
</view>
<view class="topic">
<view class="title">
<view class="num">4</view>
<view class="name">第四问</view>
</view>
<view class="question">
<text>我为故乡</text>
<view bindtap='fourMoudel' style="display: flex;align-items: center;width:169rpx;height:64rpx;background:#F7F7F7; justify-content: space-between;margin-left:22rpx;">
<view class="picker" style="color:#999;margin-left:27rpx;font-size:28rpx;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">
{{fourSheng}}{{fourcity}}
</view>
<text class="icon icon-icon-test3" style="color:#999;font-size:28rpx;margin-right:16rpx;margin-right:18rpx;"></text>
</view>
<picker bindchange="bindPickerChange7" value="{{fourDistrictIndex}}" range="{{fourDistrictStr}}">
<view style="display: flex;align-items: center;width:169rpx;height:64rpx;background:#F7F7F7; justify-content: space-between;margin-left:22rpx;">
<view class="picker" style="color:#999;margin-left:27rpx;font-size:28rpx;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">
{{fourDistrictStr[fourDistrictIndex]}}
</view>
<text class="icon icon-icon-test3" style="color:#999;font-size:28rpx;margin-right:16rpx;margin-right:18rpx;"></text>
</view>
</picker>
<text style="margin-left:18rpx;">代言</text>
</view>
<view class="question">
<text>我最爱的家乡美味:</text>
<input wx:if="{{fourMoudel == false}}" bindinput='fourFood' style="width:297rpx;height:64rpx;background:#F7F7F7;"></input>
</view>
</view>
<view class="ok" bindtap='ok'>挑战完成</view>
</view>
<!-- -->
<view class="onMoudel" wx:if="{{ok}}">
<view class="moudel">
<view class="title">
• 挑战成功 •
</view>
<view class="hit">{{discountCoupon.textarea}}</view>
<view class="moneyP">
<view class="money">¥
<text>{{discountCoupon.discount_coupon_price}}</text> </view>
<view class="font">{{discountCoupon.discount_coupon_name}}</view>
</view>
<view class="thisGet" bindtap='thisGet' data-discount_coupon_name='{{discountCoupon.discount_coupon_name}}' data-discount_coupon_price="{{discountCoupon.discount_coupon_price}}">立即领取</view>
</view>
</view>
<view class="fourMoudel" bindtap='fourMoudel' wx:if="{{fourMoudel}}">
<view class="fourMoudelC">确定</view>
<picker-view catchtap='fourMoudelNull' class="moudelsss" indicator-style="height: 50px;" style="width: 100%; height: 300px;" value="{{value}}" bindchange="bindChange">
<picker-view-column>
<view wx:for="{{Forprovince}}" style="line-height: 50px;text-align:center;">{{item.province_name}}</view>
</picker-view-column>
<picker-view-column>
<view wx:for="{{Fordistrict}}" style="line-height: 50px;text-align:center;">{{item.city_name}}</view>
</picker-view-column>
</picker-view>
</view>