Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello uni-app x
提交
3977630f
H
hello uni-app x
项目概览
DCloud
/
hello uni-app x
通知
6005
Star
91
Fork
164
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
18
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hello uni-app x
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
18
Issue
18
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
3977630f
编写于
1月 18, 2024
作者:
DCloud-yyl
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
web端与app端截图差异优化:去掉rpx单位
上级
52df0bca
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
17 addition
and
17 deletion
+17
-17
pages/API/request/request.uvue
pages/API/request/request.uvue
+17
-17
未找到文件。
pages/API/request/request.uvue
浏览文件 @
3977630f
<template>
<template>
<view style="flex: 1;">
<view style="flex: 1;">
<view class="uni-padding-wrap uni-common-mt">
<view class="uni-padding-wrap uni-common-mt">
<view class="uni-common-mt" style="border-width: 2
rpx;border-style: solid; border-radius: 4r
px;">
<view class="uni-common-mt" style="border-width: 2
px;border-style: solid; border-radius: 4
px;">
<textarea :value="res" class="uni-textarea"></textarea>
<textarea :value="res" class="uni-textarea"></textarea>
</view>
</view>
<view>
<view>
...
@@ -13,55 +13,55 @@
...
@@ -13,55 +13,55 @@
</view>
</view>
</view>
</view>
<scroll-view style="flex: 1;" show-scrollbar="true">
<scroll-view style="flex: 1;" show-scrollbar="true">
<view style="padding: 20
r
px;">
<view style="padding: 20px;">
<text>设置请求方式</text>
<text>设置请求方式</text>
<view class="uni-common-pb"></view>
<view class="uni-common-pb"></view>
<view style="flex-direction: row;flex-wrap: wrap;">
<view style="flex-direction: row;flex-wrap: wrap;">
<button style="padding: 5
rpx; margin-right: 10r
px;" type="primary" size="mini"
<button style="padding: 5
px; margin-right: 10
px;" type="primary" size="mini"
@click="changeMethod('GET')">GET</button>
@click="changeMethod('GET')">GET</button>
<button style="padding: 5
rpx; margin-right: 10r
px; " type="primary" size="mini"
<button style="padding: 5
px; margin-right: 10
px; " type="primary" size="mini"
@click="changeMethod('POST')">POST</button>
@click="changeMethod('POST')">POST</button>
<button style="padding: 5
rpx; margin-right: 10r
px; " type="primary" size="mini"
<button style="padding: 5
px; margin-right: 10
px; " type="primary" size="mini"
@click="changeMethod('PUT')">PUT</button>
@click="changeMethod('PUT')">PUT</button>
<button style="padding: 5
rpx; margin-right: 10r
px;" type="primary" size="mini"
<button style="padding: 5
px; margin-right: 10
px;" type="primary" size="mini"
@click="changeMethod('DELETE')">DELETE</button>
@click="changeMethod('DELETE')">DELETE</button>
<button style="padding: 5
rpx; margin-right: 10r
px; " type="primary" size="mini"
<button style="padding: 5
px; margin-right: 10
px; " type="primary" size="mini"
@click="changeMethod('PATCH')">PATCH</button>
@click="changeMethod('PATCH')">PATCH</button>
<button style="padding: 5
rpx;margin-right: 10r
px;" type="primary" size="mini"
<button style="padding: 5
px;margin-right: 10
px;" type="primary" size="mini"
@click="changeMethod('OPTIONS')">OPTIONS</button>
@click="changeMethod('OPTIONS')">OPTIONS</button>
<button style="padding: 5
r
px;" type="primary" size="mini" @click="changeMethod('HEAD')">HEAD</button>
<button style="padding: 5px;" type="primary" size="mini" @click="changeMethod('HEAD')">HEAD</button>
</view>
</view>
</view>
</view>
<view style="padding: 20
r
px;">
<view style="padding: 20px;">
<text>请求返回错误码的接口(默认为GET)</text>
<text>请求返回错误码的接口(默认为GET)</text>
<view class="uni-common-pb"></view>
<view class="uni-common-pb"></view>
<view style="flex-direction: row;flex-wrap: wrap;">
<view style="flex-direction: row;flex-wrap: wrap;">
<button style="padding: 5
r
px;" type="primary" size="mini" v-for="(item, index) in errorCodeUrls" :key="index"
<button style="padding: 5px;" type="primary" size="mini" v-for="(item, index) in errorCodeUrls" :key="index"
@click="changeUrl(item)">{{item}}</button>
@click="changeUrl(item)">{{item}}</button>
</view>
</view>
</view>
</view>
<view style="padding: 20
r
px;">
<view style="padding: 20px;">
<text>请求不同header的接口(默认为GET)</text>
<text>请求不同header的接口(默认为GET)</text>
<view class="uni-common-pb"></view>
<view class="uni-common-pb"></view>
<view style="flex-direction: row;flex-wrap: wrap;">
<view style="flex-direction: row;flex-wrap: wrap;">
<button style="padding: 5
r
px;" type="primary" size="mini" v-for="(item, index) in headerUrls" :key="index"
<button style="padding: 5px;" type="primary" size="mini" v-for="(item, index) in headerUrls" :key="index"
@click="changeUrl(item)">{{item}}</button>
@click="changeUrl(item)">{{item}}</button>
</view>
</view>
</view>
</view>
<view style="padding: 20
r
px;">
<view style="padding: 20px;">
<text>请求不同content-type的接口(默认为GET)</text>
<text>请求不同content-type的接口(默认为GET)</text>
<view class="uni-common-pb"></view>
<view class="uni-common-pb"></view>
<view style="flex-direction: row;flex-wrap: wrap;">
<view style="flex-direction: row;flex-wrap: wrap;">
<button style="padding: 5
r
px;" type="primary" size="mini" v-for="(item, index) in contentTypeUrls"
<button style="padding: 5px;" type="primary" size="mini" v-for="(item, index) in contentTypeUrls"
:key="index" @click="changeUrl(item)">{{item}}</button>
:key="index" @click="changeUrl(item)">{{item}}</button>
</view>
</view>
</view>
</view>
<view style="padding: 20
r
px;">
<view style="padding: 20px;">
<text>POST请求(有body)</text>
<text>POST请求(有body)</text>
<view class="uni-common-pb"></view>
<view class="uni-common-pb"></view>
<view style="flex-direction: row;flex-wrap: wrap;">
<view style="flex-direction: row;flex-wrap: wrap;">
<button style="padding: 5
r
px;" type="primary" size="mini" v-for="(item, index) in postUrls" :key="index"
<button style="padding: 5px;" type="primary" size="mini" v-for="(item, index) in postUrls" :key="index"
@click="changeUrlFromPost(item)">{{item}}</button>
@click="changeUrlFromPost(item)">{{item}}</button>
</view>
</view>
</view>
</view>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录