Browse Source

feat: 更新API地址和调整UI样式

- 将开发环境API地址更改为http://h5.xzaiyp.top
- 调整companionPetList页面的卡片间距和内边距
- 在serviceNew页面添加下单方式的子标题和样式优化
master
前端-胡立永 3 weeks ago
parent
commit
bd164f4106
3 changed files with 40 additions and 10 deletions
  1. +2
    -2
      pages/companionPetList/companionPetList.vue
  2. +36
    -7
      pages/newOrder/serviceNew.vue
  3. +2
    -1
      utils/getUrl.js

+ 2
- 2
pages/companionPetList/companionPetList.vue View File

@ -92,9 +92,9 @@
</checkbox-group> -->
</view>
<view>
<view v-if="companionList.length > 0">
<view v-if="companionList.length > 0" style="padding: 10rpx 0;">
<uni-row :span="12" v-for="(item,index) in companionList" :key="index">
<uni-card :is-shadow="false" padding=0 margin="10px"
<uni-card :is-shadow="false" padding=0 margin="6rpx 20rpx"
@click="getInfo(item.userId)">
<view class="personal-list-item">
<view class="personal-info">


+ 36
- 7
pages/newOrder/serviceNew.vue View File

@ -30,13 +30,16 @@
</view>
<view class="order-type-select" v-if="buyInfo.teacher">
<view class="order-type-title">
<image style="width: 40rpx; height: 40rpx;margin-right: 10rpx;" slot='cover' src="https://catmdogf.oss-cn-shanghai.aliyuncs.com/CMDF/front/petServiceOrder/OrderIcon.png">
</image>
<!-- <image style="width: 32rpx; height: 32rpx; margin-right: 10rpx;" src="https://catmdogf.oss-cn-shanghai.aliyuncs.com/CMDF/front/petServiceOrder/SystemOrderCircle.png"></image> -->
下单方式指定喂养员 - <text style="color: #999;font-size: 26rpx;">{{buyInfo.teacher.userName}}</text>
<view class="order-type-title order-type-title-custom">
<image style="width: 40rpx; height: 40rpx; margin-right: 10rpx;" src="https://catmdogf.oss-cn-shanghai.aliyuncs.com/CMDF/front/petServiceOrder/OrderIcon.png"></image>
<view class="order-type-title-main">
<view class="main-title">
下单方式指定喂养员 - {{buyInfo.teacher.userName}}
</view>
<view class="sub-title">
若伴宠师1小时内无响应或拒绝单则系统派单
</view>
</view>
</view>
</view>
@ -589,4 +592,30 @@
}
}
}
.order-type-title-custom {
background-color: #FFF9F0;
display: flex;
align-items: flex-start;
font-size: 28rpx;
color: #333;
margin-bottom: 20rpx;
padding: 20rpx;
border-radius: 20rpx;
}
.order-type-title-main {
display: flex;
flex-direction: column;
}
.main-title {
font-size: 28rpx;
font-weight: bold;
line-height: 1.2;
color: #D97B2B;
}
.sub-title {
font-size: 24rpx;
color: #D97B2B;
margin-top: 6rpx;
line-height: 1.2;
}
</style>

+ 2
- 1
utils/getUrl.js View File

@ -5,7 +5,8 @@ current = accountInfo.miniProgram.envVersion;
const api={
develop:"https://api.catmdogd.com/prod-api",
develop:"http://h5.xzaiyp.top",
// develop:"https://api.catmdogd.com/prod-api",
// develop:"https://api-test.catmdogd.com/test-api",
trial:"https://pet-admin.hhlm1688.com/api",
release:"https://api.catmdogd.com/prod-api",


Loading…
Cancel
Save