Browse Source

fix: 修复多个页面中的UI和逻辑问题

- 在upload.vue中添加背景色条
- 在myLevel/index.vue中修复baseInfo的初始化逻辑
- 在questionCard.vue中为textarea添加最大长度限制
- 更新getUrl.js中的开发环境API地址
- 在userManage/index.vue中注释掉部分不必要的信息展示
- 在authentication/list/index.vue中添加表单验证逻辑
- 调整sharing.vue中的画布尺寸和样式
- 在detail.vue中优化地址输入框的样式和高度
master
前端-胡立永 3 weeks ago
parent
commit
23619ec961
9 changed files with 53 additions and 14 deletions
  1. +1
    -1
      otherPages/authentication/components/questionCard.vue
  2. +7
    -3
      otherPages/authentication/connectAddress/detail.vue
  3. +27
    -0
      otherPages/authentication/list/index.vue
  4. +4
    -0
      otherPages/authentication/serve/upload.vue
  5. +4
    -3
      otherPages/workbenchManage/bindUser/sharing.vue
  6. +4
    -1
      otherPages/workbenchManage/myLevel/index.vue
  7. +2
    -2
      pages/userManage/index.vue
  8. +2
    -2
      pages/workbenchManage/index.vue
  9. +2
    -2
      utils/getUrl.js

+ 1
- 1
otherPages/authentication/components/questionCard.vue View File

@ -15,7 +15,7 @@
<template v-else>
<view class="textarea">
<textarea v-model="value" :placeholder="`请输入您的答案,不得低于${min}个字`" :rows="10"
@blur="onChange($event.detail.value)"></textarea>
@blur="onChange($event.detail.value)" :maxlength="2000"></textarea>
</view>
</template>
</template>


+ 7
- 3
otherPages/authentication/connectAddress/detail.vue View File

@ -14,7 +14,7 @@
</up-form-item>
<up-form-item label="接单地址" prop="address" labelPosition="top">
<view class="textarea">
<textarea v-model="form.address" placeholder="如街道、门牌号、小区、乡镇、村等" :row="3"></textarea>
<textarea v-model="form.address" placeholder="如街道、门牌号、小区、乡镇、村等" :row="2"></textarea>
</view>
</up-form-item>
</view>
@ -39,12 +39,11 @@
</up-form-item>
<up-form-item @click="toNoOrderDate"
v-if="eidtItem"
label="不接单日期(选填)" prop="disabledDate" labelWidth="300rpx">
<view class="" style="display: flex;width: 380rpx;">
<view class="text-ellipsis"
style="margin-left: auto;"
v-if="eidtItem.appletOutDate && eidtItem.appletOutDate.length">
v-if="eidtItem && eidtItem.appletOutDate && eidtItem.appletOutDate.length">
{{ getDisabledDateDesc(eidtItem.appletOutDate) }}
</view>
@ -247,6 +246,11 @@
background-color: #F3F3F3;
padding: 26rpx 8rpx;
border-radius: 15rpx;
height: 200rpx;
overflow: scroll;
textarea{
height: 200rpx;
}
}
:deep(.u-form-item__body__left__content__label) {


+ 27
- 0
otherPages/authentication/list/index.vue View File

@ -325,6 +325,33 @@
return
}
//
if (!/^1[3-9]\d{9}$/.test(data.phone)) {
uni.showToast({
title: '请输入正确的手机号',
icon: 'none'
})
return
}
//
if (!/^\d{17}[\dXx]$/.test(data.idCard)) {
uni.showToast({
title: '请输入正确的身份证号',
icon: 'none'
})
return
}
//
if (isNaN(data.age) || data.age < 18 || data.age > 70) {
uni.showToast({
title: '请输入有效的年龄(18-70岁)',
icon: 'none'
})
return
}
if (petType.value.length === 0) {
uni.showToast({
title: '请选择宠物类型',


+ 4
- 0
otherPages/authentication/serve/upload.vue View File

@ -1,5 +1,9 @@
<template>
<view class="page">
<view class="" style="background-color: #FFBF60;width: 100%;height: 20rpx;">
</view>
<view class="tips color-ffb size-22">
注意:这段内容将会在您的喂养员个人主页做为"服务案例展示并开放给其他铲屎官查看请认真编辑哟
</view>


+ 4
- 3
otherPages/workbenchManage/bindUser/sharing.vue View File

@ -2,7 +2,7 @@
<view class="page">
<view class="flex content">
<view style="width: 598rpx; height: 1063rpx;">
<view style="width: 698rpx; height: 1163rpx;">
<canvas id="myCanvas" canvas-id="firstCanvas1" type="2d" style="width: 100%; height: 100%;"></canvas>
</view>
@ -114,7 +114,8 @@
coderImage.src = this.data.url
coderImage.onload = () => {
const x = 197 * Ratio / dpr
const y = 562 * Ratio / dpr
const y = 572 * Ratio / dpr
// const y = 562 * Ratio / dpr
const size = 206 * Ratio / dpr
ctx.drawImage(coderImage, x, y, size, size)
@ -176,7 +177,7 @@
<style scoped lang="scss">
.page {
height: 100vh;
// height: 100vh;
}
.content {


+ 4
- 1
otherPages/workbenchManage/myLevel/index.vue View File

@ -103,10 +103,13 @@
// const url = ref('https://uview-plus.jiangruyi.com/components/button.html')
const state = reactive({
info: {},
baseInfo: {}
baseInfo: {
info: {},
}
})
onMounted(() => {
state.info = JSON.parse(uni.getStorageSync("baseInfo"))
state.baseInfo.info = state.info
getBaseInfo()
})


+ 2
- 2
pages/userManage/index.vue View File

@ -11,13 +11,13 @@
<view class="base-leavel">
<text>{{getIsLogin()?userInfo.userName:"欢迎来到版宠师"}}</text>
</view>
<view>
<!-- <view>
<image v-if="petMaster" class="role-tag" :src="petMaster" mode="aspectFill"></image>
<image v-if="partnerMaster" class="role-tag" :src="partnerMaster" mode="aspectFill"></image>
</view>
<view>
手机号:{{ userInfo?.userTelephone }}
</view>
</view> -->
</view>
<!-- <view style="width: 140rpx">


+ 2
- 2
pages/workbenchManage/index.vue View File

@ -10,8 +10,8 @@
<view class="container">
<view class="container-list">
<view class="mb28 col3 font32">合伙人工作台</view>
<!-- 申请加入 -->
<view class="container-list-but font28" >
<!-- 申请加入 v-if="userInfo.userHh != 1" -->
<view class="container-list-but font28">
<view class="explain">
<view class="explain-text">
<text>{{ configList?.partner_work_statement?.paramValueText }}</text>


+ 2
- 2
utils/getUrl.js View File

@ -3,9 +3,9 @@ const accountInfo = wx.getAccountInfoSync();
current = accountInfo.miniProgram.envVersion;
const api = {
develop:"http://h5.xzaiyp.top",
// develop:"http://h5.xzaiyp.top",
// develop:"https://api.catmdogd.com/prod-api",
// develop:"http://pet-admin.hhlm1688.com/api",
develop:"http://pet-admin.hhlm1688.com/api",
// develop: "http://youyi-test.natapp1.cc/prod-api", // 开发
trial: "https://api.catmdogd.com/prod-api", //测试
release: "https://api.catmdogd.com/prod-api",


Loading…
Cancel
Save