头像压缩
This commit is contained in:
parent
bb183e89fc
commit
7fe55a5c6f
|
|
@ -48,3 +48,45 @@
|
||||||
- 已检查相关 diff,未做全文件重构。
|
- 已检查相关 diff,未做全文件重构。
|
||||||
- `pages/home/home.vue` 原文件为 CRLF 行尾;为避免整文件行尾改造造成大面积 diff,本次保留原行尾。
|
- `pages/home/home.vue` 原文件为 CRLF 行尾;为避免整文件行尾改造造成大面积 diff,本次保留原行尾。
|
||||||
- 项目 `package.json` 未配置 build/lint 脚本,未执行完整构建校验。
|
- 项目 `package.json` 未配置 build/lint 脚本,未执行完整构建校验。
|
||||||
|
|
||||||
|
### 订单详情顾客头像被挤压
|
||||||
|
|
||||||
|
问题现象:
|
||||||
|
|
||||||
|
- `pages/shop/SellerDetail` 页面“顾客信息”一栏中,客户头像在部分图片比例下显示被拉伸或挤压。
|
||||||
|
|
||||||
|
涉及文件:
|
||||||
|
|
||||||
|
- `pages/shop/SellerDetail.vue`
|
||||||
|
|
||||||
|
改动内容:
|
||||||
|
|
||||||
|
- 给顾客头像 `<image>` 增加 `mode="aspectFill"`,按头像容器比例裁剪填充,避免原图比例不一致时被拉伸。
|
||||||
|
- 为 `.shop_photo` 增加 `min-width` 和 `min-height`,在 flex 布局中进一步锁定头像为固定正方形尺寸。
|
||||||
|
|
||||||
|
验证情况:
|
||||||
|
|
||||||
|
- 已执行 `pages/shop/SellerDetail.vue` 与 `CHANGE_RECORD.md` 的空白格式检查。
|
||||||
|
|
||||||
|
### 核销成功后工时/工位订单详情跳转错误
|
||||||
|
|
||||||
|
问题现象:
|
||||||
|
|
||||||
|
- 商家扫码核销或输入核销码核销成功后,工时订单和工位订单跳转到详情页时参数或页面类型不正确。
|
||||||
|
- 工时订单会进入工位详情链路,工位订单会落到普通订单详情链路。
|
||||||
|
|
||||||
|
涉及文件:
|
||||||
|
|
||||||
|
- `pages/shop/verify/verify-order-detail.vue`
|
||||||
|
|
||||||
|
改动内容:
|
||||||
|
|
||||||
|
- 新增 `getOrderDetailUrl`,统一按 `order_type` 生成核销成功后的详情页地址。
|
||||||
|
- `order_type=3` 工时订单跳转到 `/pages/shop/SellerDetail?order_id=...&identity=1`,使用手艺人工时订单详情链路。
|
||||||
|
- `order_type=4` 工位订单跳转到 `/pages/shop/SellerDetail?order_id=...`,使用商家工位订单详情链路。
|
||||||
|
- `order_type=6` 自营订单跳转普通订单详情并携带 `serviceType=2`。
|
||||||
|
- 其他普通订单跳转普通订单详情,不再误携带自营参数。
|
||||||
|
|
||||||
|
验证情况:
|
||||||
|
|
||||||
|
- 已执行 `pages/shop/verify/verify-order-detail.vue` 与 `CHANGE_RECORD.md` 的空白格式检查。
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
"name" : "美融融商家",
|
"name" : "美融融商家",
|
||||||
"appid" : "__UNI__BBE6285",
|
"appid" : "__UNI__BBE6285",
|
||||||
"description" : "同城便捷到家美业“技术外卖”服务、同城预约到店服务平台美融融为同城爱美人群提供更优质的更全面的服务。",
|
"description" : "同城便捷到家美业“技术外卖”服务、同城预约到店服务平台美融融为同城爱美人群提供更优质的更全面的服务。",
|
||||||
"versionName" : "1.0.16",
|
"versionName" : "1.0.17",
|
||||||
"versionCode" : 1016,
|
"versionCode" : 1017,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@
|
||||||
<view class="card_title" v-if="identity==0">顾客信息</view>
|
<view class="card_title" v-if="identity==0">顾客信息</view>
|
||||||
<view class="card_title" v-if="identity==1">店铺信息</view>
|
<view class="card_title" v-if="identity==1">店铺信息</view>
|
||||||
<view class="shop_title_box">
|
<view class="shop_title_box">
|
||||||
<image class="shop_photo" :src="orderInfo.head_photo" />
|
<image class="shop_photo" :src="orderInfo.head_photo" mode="aspectFill" />
|
||||||
<view class="left-section">
|
<view class="left-section">
|
||||||
<view class="shop_title">{{ orderInfo.name }}</view>
|
<view class="shop_title">{{ orderInfo.name }}</view>
|
||||||
<text class="shop_phone" @click="contactService(orderInfo.phone)">
|
<text class="shop_phone" @click="contactService(orderInfo.phone)">
|
||||||
|
|
@ -906,6 +906,8 @@
|
||||||
.shop_photo {
|
.shop_photo {
|
||||||
width: 70rpx;
|
width: 70rpx;
|
||||||
height: 70rpx;
|
height: 70rpx;
|
||||||
|
min-width: 70rpx;
|
||||||
|
min-height: 70rpx;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
@ -1073,4 +1075,4 @@
|
||||||
.mt_10 {
|
.mt_10 {
|
||||||
margin-top: 10rpx;
|
margin-top: 10rpx;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -214,6 +214,21 @@ export default {
|
||||||
url: '/pages/home/home'
|
url: '/pages/home/home'
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
getOrderDetailUrl() {
|
||||||
|
const orderId = this.orderData.orderId;
|
||||||
|
const orderType = this.orderData.orderType;
|
||||||
|
|
||||||
|
if (orderType == 3) {
|
||||||
|
return `/pages/shop/SellerDetail?order_id=${orderId}&identity=1`;
|
||||||
|
}
|
||||||
|
if (orderType == 4) {
|
||||||
|
return `/pages/shop/SellerDetail?order_id=${orderId}`;
|
||||||
|
}
|
||||||
|
if (orderType == 6) {
|
||||||
|
return `/pages/shop/userorder-detail?order_id=${orderId}&serviceType=2`;
|
||||||
|
}
|
||||||
|
return `/pages/shop/userorder-detail?order_id=${orderId}`;
|
||||||
|
},
|
||||||
confirmVerify() {
|
confirmVerify() {
|
||||||
if (this.isVerifying) return;
|
if (this.isVerifying) return;
|
||||||
if (!this.orderData.orderId) {
|
if (!this.orderData.orderId) {
|
||||||
|
|
@ -247,16 +262,7 @@ export default {
|
||||||
this.isVerified = true;
|
this.isVerified = true;
|
||||||
this.isVerifying = false;
|
this.isVerifying = false;
|
||||||
// 核销成功后跳转到订单详情
|
// 核销成功后跳转到订单详情
|
||||||
const orderId = this.orderData.orderId;
|
const url = this.getOrderDetailUrl();
|
||||||
const orderType = this.orderData.orderType;
|
|
||||||
let url = '';
|
|
||||||
if (orderType == 3) {
|
|
||||||
url = `/pages/shop/SellerDetail?order_id=${orderId}`;
|
|
||||||
} else if (orderType == 2 || orderType == 5 || orderType == 6) {
|
|
||||||
url = `/pages/shop/userorder-detail?order_id=${orderId}&serviceType=2`;
|
|
||||||
} else {
|
|
||||||
url = `/pages/shop/userorder-detail?order_id=${orderId}`;
|
|
||||||
}
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
uni.navigateTo({ url });
|
uni.navigateTo({ url });
|
||||||
}, 1500);
|
}, 1500);
|
||||||
|
|
@ -564,4 +570,4 @@ export default {
|
||||||
.btn-disabled {
|
.btn-disabled {
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue