index.wxml 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. <!--pages/index/index.wxml-->
  2. <view class="custom-navigation" style="height: {{navigation.height}};padding-top: {{navigation.paddingTop}}">
  3. <text>排队叫号</text>
  4. <text>{{addressInfo.address}}</text>
  5. </view>
  6. <view class="search-box">
  7. <view class="icon">
  8. <image src="https://smzc-1253299035.cos.ap-nanjing.myqcloud.com/pdjh/miniProgrameYyQh/headimg.png" mode="widthFix" />
  9. </view>
  10. <view class="search-input-box" bind:tap="toSearch">
  11. <view class="input-icon">
  12. <image src="../../images/index/search.png" mode="widthFix" />
  13. </view>
  14. <view class="input">
  15. <input type="text" placeholder="请输入你想办理的业务" value="{{searchValue}}" bindinput="indexSearchInput" />
  16. </view>
  17. <view class="input-icon" catch:tap="startVoice">
  18. <image src="../../images/index/search-voice.png" mode="widthFix" />
  19. </view>
  20. </view>
  21. <view class="icon icon-special" bind:tap="toZnzx">
  22. <image src="https://smzc-1253299035.cos.ap-nanjing.myqcloud.com/pdjh/miniProgrameYyQh/indexSearchA.png" mode="widthFix" />
  23. <!-- <view class="jiaobiao">1</view> -->
  24. </view>
  25. </view>
  26. <scroll-view class="other-container" scroll-y="{{true}}" style="height: calc(100vh - 150rpx - {{navigation.height}} - {{navigation.paddingTop}})" enhanced="{{true}}" show-scrollbar="{{false}}">
  27. <view class="info-card">
  28. <image class="bg" src="https://smzc-1253299035.cos.ap-nanjing.myqcloud.com/pdjh/miniProgrameYyQh/indexCardInfoBg.png" mode="widthFix" />
  29. <view class="shiming" wx:if="{{userInfo.phone && userInfo.phone.length>1}}">
  30. <view class="shiming-icon">
  31. <image src="../../images/index/shiming.png" mode="widthFix" />
  32. </view>
  33. <view class="shiming-name">已实名</view>
  34. </view>
  35. <view class="info-card-container" catch:tap="{{userInfo.phone.length>0 ?'':'startSmrz'}}">
  36. <view class="info-card-list1" hover-class="buttonActive" catch:tap="{{userInfo.phone.length>0 ?'changeType':'startSmrz'}}">
  37. <span class="list1-name">Hi,{{userInfo.name || "请点击这里进行实名认证"}}</span>
  38. <span wx:if="{{userInfo.name}}" class="list1-type">{{userInfo.nsrmc && userInfo.nsrmc.length>1?'企业身份':'个人身份'}}</span>
  39. <span wx:if="{{userInfo.name}}" class="list1-icon">
  40. <image src="../../images/index/chage.png" mode="widthFix" />
  41. </span>
  42. </view>
  43. <!-- <view class="info-card-list1">
  44. <span class="list1-name">Hi,{{userInfo.name || "请点击这里进行实名认证后开始办理预约取号业务"}}</span>
  45. </view> -->
  46. <view class="list2">{{tools.phone(userInfo.phone)}}</view>
  47. <view class="list3">{{tools.idcard(userInfo.idcard)}}</view>
  48. <view wx:if="{{userInfo.nsrmc && userInfo.nsrmc.length>1}}" class="list4" hover-class="buttonActive" bind:tap="changeEnterprice">{{userInfo.nsrmc}}
  49. <image src="../../images/index/down.png" mode="widthFix" />
  50. </view>
  51. </view>
  52. </view>
  53. <view class="hall">
  54. <view class="hall-other-box" wx:if="{{hall.ssswjgDm == '16101980000'}}">
  55. <image class="hall-other-box-image" src="https://smzc-1253299035.cos.ap-nanjing.myqcloud.com/pdjh/miniProgrameYyQh/indexHallLogo.png" mode="heightFix" />
  56. </view>
  57. <view class="hall-info-box">
  58. <view class="hall-map">
  59. <map enable-scroll="{{false}}" enable-zoom="{{false}}" longitude="{{hall.longitude}}" latitude="{{hall.latitude}}" markers="{{markers}}" scale="15" />
  60. </view>
  61. <view class="hall-info">
  62. <view class="hall-info-list1">
  63. <view>我的办税厅</view>
  64. <view hover-class="buttonActive" data-type="0" bind:tap="selectHall">
  65. <span>
  66. <image src="../../images/index/chage1.png" mode="widthFix" />
  67. </span>
  68. <span>切换办税厅</span>
  69. </view>
  70. </view>
  71. <view class="hall-info-list2">{{hall.bsfwtmc}}</view>
  72. <view class="hall-info-list3">距您 {{tools.juli(hall.zxjl)}}</view>
  73. </view>
  74. </view>
  75. </view>
  76. <view class="menu-cards">
  77. <view class="menu-card">
  78. <image class="bg" src="https://smzc-1253299035.cos.ap-nanjing.myqcloud.com/pdjh/miniProgrameYyQh/indexYyqh2.png" mode="widthFix" />
  79. <view class="content yyqh" hover-class="buttonActive" data-type="1" bind:tap="start">
  80. <view class="title">预约取号</view>
  81. <view class="introduce">提前预约,优先办理</view>
  82. </view>
  83. </view>
  84. <view class="menu-card">
  85. <image class="bg" src="https://smzc-1253299035.cos.ap-nanjing.myqcloud.com/pdjh/miniProgrameYyQh/indexWdyy2.png" mode="widthFix" />
  86. <view class="content wdyy" hover-class="buttonActive" data-item="{{myYy}}" bind:tap="{{myYy.yybsrq?'toYyDetail':''}}">
  87. <view class="wdyyTitle">
  88. <view>
  89. <image src="../../images/index/wdyy-icon.png" mode="widthFix" />
  90. </view>
  91. <view>我的预约</view>
  92. </view>
  93. <view class="wdyyIntroduce">
  94. <view wx:if="{{!myYy.yybsrq}}" class="wdyyNone">暂无预约</view>
  95. <view wx:else class="wdyyInfo">
  96. <view class="wdyyDate">{{myYy.yybsrq}}</view>
  97. <view class="wdyyHall">{{myYy.bsfwtmc}}</view>
  98. </view>
  99. </view>
  100. </view>
  101. </view>
  102. <view class="menu-card">
  103. <image class="bg" src="https://smzc-1253299035.cos.ap-nanjing.myqcloud.com/pdjh/miniProgrameYyQh/indexSsqh2.png" mode="widthFix" />
  104. <view class="content ssqh" hover-class="buttonActive" data-type="2" bind:tap="start">
  105. <view class="title">手机取号</view>
  106. <view class="introduce"><text>手机端叫号取号\n同步大厅</text></view>
  107. </view>
  108. </view>
  109. <view class="menu-card">
  110. <image class="bg" src="https://smzc-1253299035.cos.ap-nanjing.myqcloud.com/pdjh/miniProgrameYyQh/indexJdck2.png" mode="widthFix" />
  111. <view class="content jdck" hover-class="buttonActive" bind:tap="toLookSsqh">
  112. <view class="title">进度查看</view>
  113. <view class="introduce">预约记录/取号记录</view>
  114. </view>
  115. </view>
  116. </view>
  117. <view class="carousel-box" style="{{lbList.length>1?'height: 125rpx;':'height: 165rpx;'}}">
  118. <swiper class="swiper" autoplay current="{{lbIndex}}" circular previous-margin="{{lbList.length>1?'150rpx':'0'}}" bindanimationfinish="lbChage" duration="350">
  119. <block class="swiper" wx:for="{{lbList}}" wx:key="*this">
  120. <swiper-item class="swiper-item" data-item="{{item}}" bind:tap="swiperTap">
  121. <view class="swiper-image" style="{{lbList.length>1?'margin-left: 25rpx;width: calc(100% - 25rpx);':'width: 100%;'}}">
  122. <image class="lbImg" src="{{item.url}}" mode="widthFix" />
  123. </view>
  124. </swiper-item>
  125. </block>
  126. </swiper>
  127. </view>
  128. <view class="carousel-docs">
  129. <view class="carousel-doc {{index == lbIndex?'carousel-doc-active':''}}" wx:for="{{lbList}}" wx:key="index"></view>
  130. </view>
  131. <!-- <view class="ywList" wx:for="{{2}}" wx:key="index">
  132. <view class="list-top">
  133. <view class="lt-border"></view>
  134. <view class="lt-name">综合服务(一)</view>
  135. <view class="lt-button" hover-class="buttonActive" data-type="1" bind:tap="start">
  136. <view class="lt-button-span">查看全部</view>
  137. <view class="lt-button-icon">
  138. <image src="../../images/index/type-title.png" mode="widthFix" />
  139. </view>
  140. </view>
  141. </view>
  142. <view class="list-bottom">
  143. <view class="lb-list" wx:for="{{4}}" wx:key="index" hover-class="buttonActive">
  144. <view class="lb-icon">
  145. <image src="../../images/selectBusiness/test.png" mode="widthFix"/>
  146. </view>
  147. <view class="lb-name">财产和行为 税纳税申报</view>
  148. </view>
  149. </view>
  150. </view> -->
  151. </scroll-view>
  152. <authorizeBox id="authorizeBox" bindsuccess="authorizeSuccess"></authorizeBox>
  153. <pop show="{{enterpriceTypeShow}}" bindclose="close">
  154. <view class="pop1-title">选择企业信息</view>
  155. <scroll-view class="pop1Contain" scroll-y="{{true}}" enhanced="{{true}}" show-scrollbar="{{false}}">
  156. <view class="pop1list" wx:for="{{enterPriceList}}" wx:key="index" hover-class="buttonActive" data-item="{{item}}" bind:tap="selectEnterprice">{{item.nsrmc}}</view>
  157. </scroll-view>
  158. </pop>
  159. <speechRecognition show="{{showVoice}}" bindclose="closeVoice" bindresult="resVoice"></speechRecognition>
  160. <wxs module="tools">
  161. var juli = function (e) {
  162. if (e) {
  163. var b = e.split('.')[0]
  164. var a = e.split('.')[1].substring(0, 3) || '00'
  165. return b + '.' + a + 'km'
  166. } else {
  167. return ""
  168. }
  169. }
  170. var phone = function (e) {
  171. if (e) {
  172. return e.substring(0, 3) + '****' + e.substring(7, 11)
  173. } else {
  174. return ""
  175. }
  176. }
  177. var idcard = function (e) {
  178. if (e) {
  179. return e.substring(0, 6) + '********' + e.substring(14, 18)
  180. } else {
  181. return ""
  182. }
  183. }
  184. var tools = {
  185. juli: juli,
  186. phone: phone,
  187. idcard: idcard
  188. }
  189. module.exports = tools;
  190. </wxs>