index.wxml 11 KB

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