ticket.vue 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. <template>
  2. <view>
  3. <service-widget @btnClick="btn_click"></service-widget>
  4. <view class="headers"></view>
  5. <view class="wab">
  6. <view class="wab_query shu">
  7. <view class="heng">
  8. <view>处罚决定书编号<u-icon name="info-circle" @click="show=true" color="#2979ff" size="36"
  9. style="margin-left: 10rpx;cursor: pointer;">
  10. </u-icon>
  11. </view>
  12. <text style="color:#FE9A0E;font-size: 24rpx;">现在下单,四小时内办结</text>
  13. </view>
  14. <view class="heng" style="position: relative;">
  15. <u-input v-model="value" type="text" height="90" :border="border" placeholder="请输入15-16位处罚决定书编号"
  16. placeholder-style="font-weight:bold" style="2px solid #dcdfe6;"></u-input>
  17. <u-icon name="camera" color="#2979ff" size="50" class="icon_photo" @tap="chooseImage()">
  18. </u-icon>
  19. </view>
  20. <u-button type="primary" shape="square" style="border-radius: 50px;font-weight: bold;"
  21. @click="inquire()">立即查询</u-button>
  22. <view style="text-align: center;">
  23. <view>点击查询即同意 <text style="color:#2682E7">用户服务协议</text>及<text style="color: #2682E7">平台隐私政策</text>
  24. </view>
  25. </view>
  26. </view>
  27. <view class="shu web_tell">
  28. <view style="color:#5D5F6C;">告知单编号≠处罚决定书编号<u-icon name="info-circle" @click="show1=true" color="#2979ff"
  29. size="36" style="margin-left: 10rpx;cursor: pointer;">
  30. </u-icon>
  31. </view>
  32. <image src="../../static/ticket/shili1.png" mode=""
  33. style="width: 100%;height: 260rpx;margin: 40rpx 0;cursor: pointer;" @click="show1=true">
  34. </image>
  35. <text style="color:#ABAAAF;font-size: 24rpx;">以实际现场单或处罚决定书为准</text>
  36. </view>
  37. </view>
  38. <view class="shu flexd color">
  39. <view class="heng1 " style="margin: 30px 0;font-size: 16px;">
  40. <text @click="issue()" style="cursor: pointer;">常见问题</text>
  41. <view style="width: 2rpx;height: 40rpx;margin: 0 50rpx;background-color: #E9EAEE;"></view>
  42. <text @click="order()" style="cursor: pointer;">我的订单</text>
  43. </view>
  44. <view class="shu">
  45. <view class="heng1">
  46. <view class="logo"></view>
  47. <view>本服务由晋掌柜提供</view>
  48. </view>
  49. <text>客服电话:020-62936789</text>
  50. </view>
  51. </view>
  52. <!-- 弹出示例 -->
  53. <u-popup v-model="show" border-radius="14" mode="center">
  54. <view class="shu shili">
  55. <text>处罚决定书示例</text>
  56. <image src="../../static/ticket/shili4.png" mode="" style="width: 400rpx;"></image>
  57. </view>
  58. <view class="shili_btn" @click="show=false">
  59. <text>我知道了</text>
  60. </view>
  61. </u-popup>
  62. <u-popup v-model="show1" border-radius="14" mode="center" width="80%">
  63. <view class="shili">
  64. <image src="../../static/ticket/shili3.png" mode="" style="width:100%;height:550px;"></image>
  65. </view>
  66. </u-popup>
  67. <u-popup v-model="show2" border-radius="14" mode="bottom" height="auto">
  68. <view class="shu ping">
  69. <view class="shu">
  70. <text style="color: #5e5e5e;">处罚决定书编号</text>
  71. <text style="font-weight: 700;color: #000000;">1232323232333333</text>
  72. </view>
  73. <u-form :model="form" ref="uForm" label-width="230">
  74. <u-form-item label="车牌号码">
  75. <u-input placeholder="车牌号码" v-model="form.name" type="text"></u-input>
  76. </u-form-item>
  77. <u-form-item label="认罚日期">
  78. <u-input v-model="form.time" type="select" placeholder="罚单签字日期,不是违法日期" @click="showtime=true">
  79. </u-input>
  80. <u-picker v-model="showtime" mode="time" @confirm="confirm"></u-picker>
  81. </u-form-item>
  82. <u-form-item label="金额">
  83. <u-input placeholder="请如实填写罚金,填错将无法办理" v-model="form.name" type="text"></u-input>
  84. </u-form-item>
  85. <u-form-item label="手机号码">
  86. <u-input placeholder="手机号码" v-model="form.name" type="text"></u-input>
  87. </u-form-item>
  88. </u-form>
  89. <u-notice-bar :autoplay="autoplay" :playState="playState" :speed="speed" :mode="mode" :show="noticeshow"
  90. :type="type" :list="list" :moreIcon="moreIcon" :volumeIcon="volumeIcon" :duration="duration"
  91. bgColor="" padding="8rpx 24rpx" :isCircular="isCircular" style="margin: 60rpx 0;"></u-notice-bar>
  92. <u-button type="primary" shape="square" style="border-radius: 50px;font-weight: bold;"
  93. @click="banli()">立即办理</u-button>
  94. </view>
  95. </u-popup>
  96. </view>
  97. </template>
  98. <script>
  99. export default {
  100. data() {
  101. return {
  102. value: '',
  103. type: 'text',
  104. border: true,
  105. show: false,
  106. show1: false,
  107. show2: false,
  108. showtime: false,
  109. form: {
  110. name: '',
  111. intro: '',
  112. sex: '',
  113. goodsType: "",
  114. time: "",
  115. },
  116. noticeshow: true,
  117. autoplay: true,
  118. type: 'warning',
  119. list: ['交管局规定,如逾期滞纳金按每日3%累计,请尽快办理。'],
  120. mode: 'horizontal',
  121. playState: 'play',
  122. speed: 160,
  123. duration: 1000,
  124. moreIcon: true,
  125. volumeIcon: true,
  126. isCircular: true,
  127. }
  128. },
  129. onLoad() {
  130. },
  131. methods: {
  132. btn_click() {
  133. uni.navigateTo({
  134. url: '/pages/chat/chat'
  135. })
  136. },
  137. chooseImage() {
  138. uni.chooseImage({
  139. count: 1,
  140. sizeType: "compressed",
  141. success(res) {}
  142. });
  143. },
  144. //跳转优惠券
  145. issue() {
  146. uni.navigateTo({
  147. url: "/pages/ticket/issue"
  148. })
  149. },
  150. //跳转订单
  151. order() {
  152. uni.navigateTo({
  153. url: "/pages/ticket/order"
  154. })
  155. },
  156. //根据编号查询接口
  157. inquire() {
  158. this.show2 = true;
  159. },
  160. banli() {
  161. this.show2 = false;
  162. uni.navigateTo({
  163. url: "/pages/ticket/confirmorder"
  164. })
  165. },
  166. //认罚日期
  167. confirm(e) {
  168. console.log(e);
  169. this.form.time = e.year + "-" + e.month + "-" + e.day;
  170. },
  171. }
  172. }
  173. </script>
  174. <style>
  175. page {
  176. background-color: #F3F4F8;
  177. }
  178. .headers {
  179. width: 100%;
  180. height: 240rpx;
  181. background-image: url(../../static/image/claim/claimtop.png);
  182. background-size: 100% 100%;
  183. }
  184. .wab {
  185. width: 100%;
  186. height: auto;
  187. padding: 0 36rpx;
  188. box-sizing: border-box;
  189. }
  190. .wab_query {
  191. width: 100%;
  192. height: 400rpx;
  193. border-radius: 15rpx;
  194. background-color: #FFFFFF;
  195. box-shadow: 0 0 10px 0 #a8bbca;
  196. margin-top: -40px;
  197. padding: 20rpx 20rpx;
  198. }
  199. .heng {
  200. display: flex;
  201. justify-content: space-between;
  202. align-items: center;
  203. }
  204. .heng1 {
  205. display: flex;
  206. align-items: center;
  207. justify-content: center;
  208. }
  209. .shu {
  210. display: flex;
  211. flex-direction: column;
  212. justify-content: space-between;
  213. text-align: center;
  214. }
  215. .icon_photo {
  216. position: absolute;
  217. right: 20rpx;
  218. top: 0;
  219. bottom: 0;
  220. margin: auto;
  221. }
  222. .web_tell {
  223. padding: 36rpx;
  224. box-sizing: border-box;
  225. margin-top: 10px;
  226. }
  227. .flexd {
  228. margin: 60rpx 0;
  229. }
  230. .color {
  231. color: #696A6E;
  232. }
  233. .logo {
  234. width: 40rpx;
  235. height: 40rpx;
  236. border-radius: 50%;
  237. background-image: url(../../static/bigLogo.png);
  238. background-size: 100% 100%;
  239. }
  240. .shili {
  241. padding: 30rpx;
  242. box-sizing: border-box;
  243. }
  244. .shili>text {
  245. font-weight: bold;
  246. margin-bottom: 10rpx;
  247. }
  248. .shili_btn {
  249. height: 52px;
  250. border-top: 1px solid #F2F2F2;
  251. text-align: center;
  252. cursor: pointer;
  253. }
  254. .shili_btn>text {
  255. line-height: 50px;
  256. color: #007BFF;
  257. }
  258. .ping {
  259. padding: 60rpx 40rpx;
  260. box-sizing: border-box;
  261. }
  262. </style>