guidance.wxml 6.3 KB
<!--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>