index.wxml 10 KB

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