index.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. <template>
  2. <view class="content">
  3. <!-- 自定义导航 -->
  4. <view class="zdyNavBox">
  5. <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
  6. <view class="zdyNav">
  7. <view class="zdyNavLeft">
  8. <image src="../../static/img/nav_icon_back.png" mode="aspectFit" class="backImg" @click="goback">
  9. </image>
  10. </view>
  11. <view class="zdyNavTitle">客户提醒</view>
  12. <view style="width: 50px;"></view>
  13. </view>
  14. </view>
  15. <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
  16. <view style="height: 44px;"></view>
  17. <view class="lineBox">
  18. <view class="line" @click="goRouter('maintenance')">
  19. <view class="lineTop">
  20. <view class="title">保养提醒</view>
  21. <view class="genjin">
  22. <span>去跟进</span>
  23. <image src="../../static/img/tixingJt.png" mode="" class="tixingJt"></image>
  24. </view>
  25. </view>
  26. <view class="lineCont">
  27. <view class="lineContView">
  28. <span>待我处理:</span>
  29. <span class="lcNum">10</span>
  30. <span>条</span>
  31. </view>
  32. <view class="lineContView">
  33. <span>所有待处理:</span>
  34. <span class="lcNum">10</span>
  35. <span>条</span>
  36. </view>
  37. </view>
  38. </view>
  39. <view class="line" @click="goRouter('detection')">
  40. <view class="lineTop">
  41. <view class="title">检测异常提醒</view>
  42. <view class="genjin">
  43. <span>去跟进</span>
  44. <image src="../../static/img/tixingJt.png" mode="" class="tixingJt"></image>
  45. </view>
  46. </view>
  47. <view class="lineCont">
  48. <view class="lineContView">
  49. <span>待我处理:</span>
  50. <span class="lcNum">10</span>
  51. <span>条</span>
  52. </view>
  53. <view class="lineContView">
  54. <span>所有待处理:</span
  55. <span class="lcNum">10</span>
  56. <span>条</span>
  57. </view>
  58. </view>
  59. </view>
  60. </view>
  61. </view>
  62. </template>
  63. <script>
  64. export default {
  65. data() {
  66. return {
  67. iStatusBarHeight:'',
  68. token:'',
  69. uid:'',
  70. }
  71. },
  72. onLoad(opt) {
  73. console.log(window.location.origin)
  74. //this.url=window.location.origin
  75. this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
  76. this.token=opt.token;
  77. this.uid=opt.uid
  78. },
  79. methods: {
  80. getList(){
  81. },
  82. goRouter(url){
  83. uni.navigateTo({
  84. url:url
  85. })
  86. },
  87. goback(){
  88. //app交互
  89. var standalone = window.navigator.standalone
  90. var userAgent = window.navigator.userAgent.toLowerCase()
  91. var safari = /safari/.test(userAgent)
  92. var ios = /iphone|ipod|ipad|mac/.test(userAgent)
  93. var android = /android/.test(userAgent)
  94. if (ios) {
  95. if ( true) {//!standalone&& !safari
  96. window.webkit.messageHandlers.goMyNav.postMessage(null)
  97. }
  98. } else if (android) {
  99. window.android.postMessage()
  100. }
  101. },
  102. },
  103. onPullDownRefresh() {
  104. this.page = 1;
  105. this.getList()
  106. setTimeout(function() {
  107. uni.stopPullDownRefresh();
  108. }, 1000);
  109. }
  110. }
  111. </script>
  112. <style scoped>
  113. .lineBox{
  114. padding: 0 24rpx;
  115. }
  116. .line{
  117. background: #FFFFFF;
  118. border-radius: 10rpx;
  119. margin-top: 20rpx;
  120. padding: 30rpx 20rpx;
  121. }
  122. .tixingJt{
  123. width: 10rpx;height: 19rpx;
  124. margin-top: 14rpx;
  125. margin-left: 10rpx;
  126. }
  127. .lineTop{
  128. display: flex;justify-content: space-between;
  129. }
  130. .title{
  131. font-weight: 500;
  132. font-size: 30rpx;
  133. color: #3C3C3C;
  134. line-height: 42rpx;
  135. }
  136. .genjin{
  137. display: flex;
  138. line-height: 42rpx;
  139. font-size: 24rpx;
  140. color: #FF4F00;
  141. }
  142. .lineCont{
  143. display: flex;
  144. justify-content: space-between;
  145. background: #FAFAFA;
  146. border-radius: 10rpx;
  147. padding:14rpx 20rpx ;
  148. font-size: 24rpx;
  149. color: #3C3C3C;
  150. line-height: 33rpx;
  151. margin-top: 20rpx;
  152. }
  153. .lcNum{
  154. font-weight: 500;
  155. font-size: 28rpx;
  156. color: #FF4F00;
  157. }
  158. .lineContView{
  159. width: 50%;
  160. }
  161. .content{
  162. min-height: 100vh;
  163. background: #F6F6F6;
  164. }
  165. .zdyNavBox {
  166. width: 100vw;
  167. background: #FFFFFF;
  168. position: fixed;
  169. top: 0;
  170. left: 0;
  171. z-index: 99;
  172. }
  173. .zdyNav {
  174. height: 44px;
  175. display: flex;
  176. justify-content: space-between;
  177. align-items: center;
  178. }
  179. .backImg {
  180. width: 44rpx;
  181. height: 44rpx;
  182. margin-left: 10rpx;
  183. margin-right: 20rpx;
  184. }
  185. .homeImg {
  186. width: 44rpx;
  187. height: 44rpx;
  188. }
  189. .zdyNavLeft {
  190. display: flex;
  191. align-items: center;
  192. }
  193. .zdyNavTitle {
  194. height: 44px;
  195. background: #FFFFFF;
  196. text-align: center;
  197. font-size: 34rpx;
  198. line-height: 44px;
  199. }
  200. </style>