Skip to content

Commit

Permalink
docs: ✏️ 移除示例demo中手机号等字样方便过审
Browse files Browse the repository at this point in the history
  • Loading branch information
Moonofweisheng committed Jul 19, 2024
1 parent 517b583 commit 7488a7f
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 18 deletions.
14 changes: 7 additions & 7 deletions docs/component/form.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ function handleSubmit1() {
{
required: false,
validator: validatorMessage,
message: '请输入正确的手机号'
message: '请输入正确的玛卡巴卡'
}
]"
/>
Expand Down Expand Up @@ -501,16 +501,16 @@ function handleSubmit() {
<wd-switch v-model="model.switchVal" />
</view>
</wd-cell>
<wd-input label="卡号" label-width="100px" prop="cardId" suffix-icon="camera" placeholder="请输入卡号" clearable v-model="model.cardId" />
<wd-input label="手机号" label-width="100px" prop="phone" placeholder="请输入手机号" clearable v-model="model.phone" />
<wd-input label="歪比巴卜" label-width="100px" prop="cardId" suffix-icon="camera" placeholder="请输入歪比巴卜" clearable v-model="model.cardId" />
<wd-input label="玛卡巴卡" label-width="100px" prop="phone" placeholder="请输入玛卡巴卡" clearable v-model="model.phone" />
<wd-cell title="活动图片" title-width="100px" prop="fileList">
<wd-upload :file-list="model.fileList" action="https://ftf.jd.com/api/uploadImg" @change="handleFileChange"></wd-upload>
</wd-cell>
</wd-cell-group>
<view class="tip">
<wd-checkbox v-model="model.read" prop="read" custom-label-class="label-class">
已阅读并同意
<text style="color: #4d80f0">《借款额度合同及相关授权》</text>
<text style="color: #4d80f0">《巴拉巴拉吧啦协议》</text>
</wd-checkbox>
</view>
<view class="footer">
Expand Down Expand Up @@ -687,20 +687,20 @@ const rules: FormRules = {
cardId: [
{
required: true,
message: '请输入卡号',
message: '请输入歪比巴卜',
validator: (value) => {
if (value) {
return Promise.resolve()
} else {
return Promise.reject('请输入卡号')
return Promise.reject('请输入歪比巴卜')
}
}
}
],
phone: [
{
required: true,
message: '请输入手机号',
message: '请输入玛卡巴卡',
validator: (value) => {
if (value) {
return Promise.resolve()
Expand Down
8 changes: 4 additions & 4 deletions src/pages/configProvider/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,21 +85,21 @@
<wd-switch v-model="switchVal" name="switchVal" @change="handleSwitch" />
</wd-cell>
<wd-input
label="卡号"
label="歪比巴卜"
label-width="100px"
name="cardId"
suffix-icon="camera"
placeholder="请输入卡号"
placeholder="请输入歪比巴卜"
clearable
v-model="cardId"
@change="handleCardId"
/>
<wd-input label="手机号" label-width="100px" name="phone" placeholder="请输入手机号" clearable v-model="phone" @change="handlePhone" />
<wd-input label="玛卡巴卡" label-width="100px" name="phone" placeholder="请输入玛卡巴卡" clearable v-model="phone" @change="handlePhone" />
</wd-cell-group>
<view class="tip">
<wd-checkbox v-model="read" name="read" @change="handleRead" custom-label-class="label-class">
已阅读并同意
<text style="color: #4d80f0">《借款额度合同及相关授权》</text>
<text style="color: #4d80f0">《巴拉巴拉吧啦协议》</text>
</wd-checkbox>
</view>
<view class="footer">
Expand Down
2 changes: 1 addition & 1 deletion src/pages/form/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
{
required: false,
validator: validatorMessage,
message: '请输入正确的手机号'
message: '请输入正确的玛卡巴卡'
}
]"
/>
Expand Down
20 changes: 14 additions & 6 deletions src/pages/form/demo3.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,24 @@
<wd-switch v-model="model.switchVal" />
</view>
</wd-cell>
<wd-input label="卡号" label-width="100px" prop="cardId" suffix-icon="camera" placeholder="请输入卡号" clearable v-model="model.cardId" />
<wd-input label="手机号" label-width="100px" prop="phone" placeholder="请输入手机号" clearable v-model="model.phone" />
<wd-input
label="歪比巴卜"
label-width="100px"
prop="cardId"
suffix-icon="camera"
placeholder="请输入歪比巴卜"
clearable
v-model="model.cardId"
/>
<wd-input label="玛卡巴卡" label-width="100px" prop="phone" placeholder="请输入玛卡巴卡" clearable v-model="model.phone" />
<wd-cell title="活动图片" title-width="100px" prop="fileList">
<wd-upload :file-list="model.fileList" action="https://ftf.jd.com/api/uploadImg" @change="handleFileChange"></wd-upload>
</wd-cell>
</wd-cell-group>
<view class="tip">
<wd-checkbox v-model="model.read" prop="read" custom-label-class="label-class">
已阅读并同意
<text style="color: #4d80f0">《借款额度合同及相关授权》</text>
<text style="color: #4d80f0">《巴拉巴拉吧啦协议》</text>
</wd-checkbox>
</view>
<view class="footer">
Expand Down Expand Up @@ -276,20 +284,20 @@ const rules: FormRules = {
cardId: [
{
required: true,
message: '请输入卡号',
message: '请输入歪比巴卜',
validator: (value) => {
if (value) {
return Promise.resolve()
} else {
return Promise.reject('请输入卡号')
return Promise.reject('请输入歪比巴卜')
}
}
}
],
phone: [
{
required: true,
message: '请输入手机号',
message: '请输入玛卡巴卡',
validator: (value) => {
if (value) {
return Promise.resolve()
Expand Down

0 comments on commit 7488a7f

Please sign in to comment.