| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <template>
- <view class="body">
- <view class="content">
- <view class="top">
- <image class="logo" src="/static/logo.webp"></image>
- </view>
- <view class="main">
- <text class="main-text">id: {{id}}</text>
- <text class="main-text">isPlan: {{isPlan}}</text>
- <text class="main-text">isSuccess: {{isSuccess}}</text>
- <text class="main-text">isStart: {{isStart}}</text>
- <text class="main-text">isFinish: {{isFinish}}</text>
- <text class="main-text">isPreload: {{isPreload}}</text>
- <text class="main-text">token: {{token}}</text>
- <text class="main-text">pagetype: {{pagetype}}</text>
- <button class="btnClose" @click="btnClose">关闭</button>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- token: "",
- id: 0, // 检查点ID
- isPlan: false, // 是否为自定义规划路线点
- isSuccess: false, // 是否打点成功
- isStart: false, // 是否为开始点
- isFinish: false, // 是否为结束点
- isPreload: false, // 是否为预加载
- }
- },
- computed: {
- },
- onLoad(event) { // 类型非必填,可自动推导
- console.log('[originality index] onLoad');
- this.token = event["token"] ?? "";
- this.id = event["id"] ?? 0;
- this.isPlan = event["isPlan"] ?? false;
- this.isSuccess = event["isSuccess"] ?? false;
- this.isStart = event["isStart"] ?? false;
- this.isFinish = event["isFinish"] ?? false;
- this.isPreload = event["isPreload"] ?? false;
- },
- methods: {
- btnClose() {
- window.location.href = "action://close";
- }
- }
- }
- </script>
- <style>
- .body {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: flex-start;
- }
- .content {
- width: 390px;
- /* margin: 0 auto; */
- }
- .top {
- width: 100%;
- padding: 36px 36px 0 36px;
- flex-direction: row;
- justify-content: space-between;
- }
- .logo {
- width: 135.66px;
- height: 26.95px;
- }
- .main {
- width: 100%;
- margin-top: 30px;
- margin-left: 30px;
- flex-direction: column;
- align-items: flex-start;
- justify-content: center;
- }
- .main-text {
- color: #ffffff;
- }
-
- .btnClose {
- margin-top: 30px;
- }
-
- </style>
|