| | |
| | | <view class="pages-my-log"> |
| | | <view class="top"> |
| | | <view class="input"> |
| | | <input placeholder="请输入查找接口URL" v-model="keyMethod"/> |
| | | <input :placeholder="translate('input_interface_name')" v-model="keyMethod" /> |
| | | <uni-icons class="clear" color="#ccc" type="clear" size="20" v-if="keyMethod" |
| | | @click="clickClearKey"></uni-icons> |
| | | </view> |
| | |
| | | </template> |
| | | <script> |
| | | import { |
| | | Base64 |
| | | } from '@/comm/Base64.js'; |
| | | import { |
| | | session, |
| | | showToast, |
| | | showModal |
| | |
| | | } |
| | | }, |
| | | onLoad() { |
| | | this.list = session.getValue("request_log") || [] |
| | | const list = session.getValue("request_log") || [] |
| | | this.list = list.map((item) => { |
| | | item.url = decodeURI(item.url) |
| | | return item |
| | | }) |
| | | |
| | | }, |
| | | methods: { |
| | | clickDetail(item) { |
| | | |
| | | getApp().globalData.pageBigData = item |
| | | uni.navigateTo({ |
| | | url: `/pages/my/log-detail?info=${JSON.stringify(item)}` |
| | | url: `/pages/my/log-detail` |
| | | }) |
| | | }, |
| | | clickClearLog() { |
| | |
| | | clickClearKey() { |
| | | this.keyMethod = "" |
| | | }, |
| | | |
| | | translate(t) { |
| | | if (typeof this.$t == "function") return this.$t(`page.${t}`) |
| | | else return t; |
| | | }, |
| | | |
| | | } |
| | | } |
| | |
| | | display: flex; |
| | | flex-direction: row; |
| | | background-color: #fff; |
| | | |
| | | input { |
| | | flex: 1; |
| | | } |