| | |
| | | <view class="item"> |
| | | <view class="title">接口地址</view> |
| | | <view class="line"> |
| | | <input type="text" v-model="param.addr" /> |
| | | <input type="text" v-model="param.baseUrl" /> |
| | | <image src="../../static/icon/right.svg" class="icon"></image> |
| | | </view> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="title">接口调用间隔(秒)</view> |
| | | <view class="line"> |
| | | <input type="text" v-model="param.time" /> |
| | | <input type="text" placeholder="60" v-model="param.time" /> |
| | | <image src="../../static/icon/right.svg" class="icon"></image> |
| | | </view> |
| | | </view> |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | param: {} |
| | | param: { |
| | | baseUrl: 'http://192.168.5.13/gateway_interface/' |
| | | } |
| | | }; |
| | | }, |
| | | onLoad(){ |
| | | const param = uni.getStorageSync('param') || {} |
| | | const param = uni.getStorageSync('param') || { |
| | | baseUrl: 'http://192.168.5.13/gateway_interface/' |
| | | } |
| | | this.param = { ...param } |
| | | }, |
| | | methods: { |
| | |
| | | }) |
| | | }) |
| | | setTimeout(()=>{ |
| | | uni.navigateBack() |
| | | uni.redirectTo({ |
| | | url:'/pages/index/index' |
| | | }) |
| | | }, 400) |
| | | } |
| | | } |