reservationFeedback.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. <template>
  2. <view>
  3. <ujp-navbar title="预约反馈" :is-back="false" ></ujp-navbar>
  4. <view class="background">
  5. <view class="img-box">
  6. <image class="img" src="@/assets/img/success2@3x.png" mode=""></image>
  7. </view>
  8. <view class="text">
  9. 恭喜您,预约成功!
  10. </view>
  11. <view class="main">
  12. <p class="title">尊敬的用户:</p>
  13. <p>您预约的“<text class="emphasis">凭话费领年卡</text>”活动已通过,
  14. 平台定于<text class="emphasis underline">2024年3月4日</text>(下周一)
  15. 至<text class="emphasis underline">2024年3月8日</text>(下周五)集中办理,
  16. 请携带个人<text class="red" >身份证</text>、<text class="red">车辆行驶证</text>前往<text class="emphasis underline">荆鹏软件园一楼</text>柜台办理。</p>
  17. <view class="map" @click="navigate" >
  18. <image class="map-img" src="@/assets/img/map@3x.png" mode=""></image>
  19. </view>
  20. <view class="hint" @click="navigate" >
  21. 点击查看地图导航
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. </template>
  27. <script>
  28. import wx from 'weixin-js-sdk'
  29. import * as API from '@/apis/temporary.js'
  30. import * as WxJsApi from '@/utils/wxJsApi.js'
  31. import * as API_weixin from '@/apis/weixin.js'
  32. export default {
  33. data() {
  34. return {
  35. }
  36. },
  37. onLoad() {
  38. this.get_wx_config();
  39. },
  40. onReady() {
  41. this.looked()
  42. },
  43. methods: {
  44. //获取微信jssdk配置信息
  45. get_wx_config() {
  46. //
  47. var _this = this
  48. API_weixin.getConfig().then(response => {
  49. var wxconfig = response.data.wxConfig;
  50. wx.config({
  51. debug: false, // 开启调试模式,
  52. appId: wxconfig.appId, // 必填,企业号的唯一标识,此处填写企业号corpid
  53. timestamp: wxconfig.timestamp, // 必填,生成签名的时间戳
  54. nonceStr: wxconfig.nonceStr, // 必填,生成签名的随机串
  55. signature: wxconfig.signature, // 必填,签名,见附录1
  56. jsApiList: [
  57. 'openLocation'
  58. ], // 必填,需要使用的JS接口列表,所有JS接口列表见附录2
  59. });
  60. wx.error(function(res) {
  61. //('微信api配置出错');
  62. });
  63. }).catch(error => {
  64. //(error);
  65. })
  66. },
  67. looked(){
  68. API.looked({
  69. event:1,
  70. openId: this.carhelp.getOpenId()
  71. }).then((res) => {
  72. //setGzDate
  73. }).catch(error => {
  74. })
  75. },
  76. navigate() {
  77. // x
  78. // :
  79. // "112.276527"
  80. // y
  81. // :
  82. // "30.306427"
  83. //console.log(item)
  84. uni.showLoading({
  85. })
  86. WxJsApi.openLocation({
  87. latitude: parseFloat(30.306427), //目的地latitude
  88. longitude: parseFloat(112.276527), //目的地longitude
  89. name: "江津东路附155号荆鹏软件园",
  90. address: "携带本人身份证、车辆行驶证前往江津东路附155号荆鹏软件园一楼柜台办理",
  91. scale: 15, //地图缩放大小,可根据情况具体调整
  92. success(res) {
  93. uni.hideLoading()
  94. },
  95. complete() {
  96. // uni.hideLoading()
  97. }
  98. });
  99. // //('station'+JSON.stringify(_self.stationDetail.station))
  100. // window.location.href = "https://uri.amap.com/marker?position=" + _self.stationDetail.station.longitude +
  101. // "," + _self.stationDetail.station.latitude + "&name=" + _self.stationDetail.station.name;
  102. },
  103. }
  104. }
  105. </script>
  106. <style lang="scss" scoped>
  107. .background{
  108. height: 360px;
  109. background: linear-gradient(180deg, rgba(0,185,98,1) 41%,rgba(0,185,98,0) 100%);
  110. position: relative;
  111. .img-box{
  112. text-align: center;
  113. .img{
  114. width: 144rpx;
  115. height: 144rpx;
  116. margin: 56rpx 0 8rpx;
  117. }
  118. }
  119. .text{
  120. color: rgba(255, 255, 255, 1);
  121. font-size: 40rpx;
  122. font-weight: bold;
  123. text-align: center;
  124. }
  125. .main{
  126. border-radius: 16px;
  127. background: linear-gradient(180deg, rgba(218,251,235,1) 0%,rgba(255,255,255,1) 8%);
  128. border: 1px solid rgba(255, 255, 255, 1);
  129. padding: 40rpx;
  130. position: absolute;
  131. top:320rpx;
  132. left:48rpx;
  133. right: 48rpx;
  134. color: rgba(51, 51, 51, 1);
  135. font-size: 32rpx;
  136. line-height: 64rpx;
  137. text-align: justify;
  138. .title{
  139. font-weight: bold;
  140. margin-bottom: 32rpx;
  141. }
  142. .emphasis{
  143. display: inline-block;
  144. font-weight: bold;
  145. }
  146. .underline{
  147. text-decoration: underline;
  148. }
  149. .red{
  150. display: inline-block;
  151. font-weight: bold;
  152. text-decoration: underline;
  153. color: #FF6923 ;
  154. }
  155. .map-img{
  156. width: 574rpx;
  157. height: 200rpx;
  158. margin-top: 40rpx;
  159. }
  160. .hint{
  161. color: rgba(153, 153, 153, 1);
  162. font-size: 24rpx;
  163. text-align: center;
  164. }
  165. }
  166. }
  167. </style>