inspection-advertising.vue 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <!--
  2. * @Title:
  3. * @Description: 任务确认
  4. * @Author: swp
  5. * @Date: 2022-08-24 10:49:21
  6. * @LastEditors:
  7. * @LastEditTime: 2022-08-24 10:49:21
  8. -->
  9. <template>
  10. <view class="wrap">
  11. <uni-nav-bar dark :fixed="true" backgroundColor="#3F9EFF" statusBar="false" left-icon="left" left-text="关闭"
  12. @clickLeft="toBack">
  13. <view class="nav-title">
  14. <text>{{title}}</text>
  15. </view>
  16. </uni-nav-bar>
  17. <view class="container">
  18. <image src="/static/images/order-ad.png" style="width: 100%;" mode="widthFix"></image>
  19. <view class="view-flex-block-center">
  20. <view style="margin-top: 50px;margin-bottom: 50px;">登录注册可体验更多功能</view>
  21. </view>
  22. <view class="view-flex-inline-center">
  23. <button style="background-color: orangered;" type="default" @click="toLogin()">登录/注册</button>
  24. </view>
  25. </view>
  26. </view>
  27. </template>
  28. <script>
  29. import http from '@/http/api.js';
  30. import {
  31. oss,
  32. } from '@/common/setting';
  33. export default {
  34. components: {
  35. },
  36. data() {
  37. return {
  38. title: '欢迎使用巡检系统',
  39. toUrl:'',
  40. }
  41. },
  42. computed: {},
  43. onLoad(options) {
  44. this.toUrl= options.toUrl;
  45. console.log("url"+this.toUrl)
  46. },
  47. onShow() {},
  48. methods: {
  49. toOss(url) {
  50. return oss + url;
  51. },
  52. toBack() {
  53. uni.navigateBack({
  54. delta: 1
  55. })
  56. },
  57. toLogin() {
  58. let url = '/pages/login/login-account?skipPage=2&toUrl='+this.toUrl;
  59. uni.redirectTo({
  60. url: url
  61. })
  62. },
  63. }
  64. }
  65. </script>
  66. <style>
  67. /* page {
  68. background-color: rgb(240, 242, 244);
  69. } */
  70. </style>
  71. <style lang="scss" scoped>
  72. .view-btn {
  73. margin-top: 20px;
  74. margin-bottom: 20px;
  75. padding-left: 10px;
  76. padding-right: 10px;
  77. }
  78. .line-space {
  79. margin-top: 4px;
  80. }
  81. </style>