| | |
| | | </view> |
| | | |
| | | <view class="buttom"> |
| | | <button type="primary" size="mini">模式切换</button> |
| | | |
| | | <button type="primary" size="mini" @click="change()">模式切换</button> |
| | | </view> |
| | | </view> |
| | | </template> |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | modeText: '默认' |
| | | baseUrl: '', |
| | | token: '', |
| | | modeText: '默认', |
| | | sign: true, |
| | | } |
| | | }, |
| | | onShow() { |
| | | this.baseUrl = uni.getStorageSync('baseUrl'); |
| | | this.token = uni.getStorageSync('token'); |
| | | }, |
| | | methods: { |
| | | |
| | | getInfo() { |
| | | let _this = this |
| | | uni.request({ |
| | | url: `${_this.baseUrl}/search/sign/auth/v2`, |
| | | data: {}, |
| | | header: { 'token': uni.getStorageSync('token') }, |
| | | method: 'POST', |
| | | success(res) { |
| | | res = res.data |
| | | if (res.code === 200) { |
| | | |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | change() { |
| | | |
| | | } |
| | | } |
| | | } |
| | | </script> |