Commit 7e08a5b5 by liimin

refactor(order): 优化售后流程相关页面样式

- 修改 IMG_URL 配置,末尾添加斜杠
- 调整售后步骤一页面样式,包括圆角和图片资源
- 重构售后步骤二页面的图片上传组件布局
- 移除未使用的样式文件
1 parent f7cb28d8
......@@ -10,4 +10,4 @@ export const preReleaseAppId = 'wx6e40cfb83ce4ffb1'
export const dsnUrl = 'https://70845376de464a7d9588639fd7c4b5f9@sentry.glsx.com.cn/46'
// cdn图片地址
export const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/miniprogram/points-mall'
export const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/miniprogram/points-mall/'
......@@ -15,7 +15,7 @@
position: relative;
background-color: #fff;
font-size: 28rpx;
border-radius: 8rpx;
border-radius: 12rpx;
overflow: hidden;
}
.section.active{
......
......@@ -3,7 +3,7 @@
<view class="section text-center {{item.active?'active':''}}" bindtap="choose" data-index="{{index}}">
{{afterType[item.value]}}
<view class="icon">
<glsx-image webp src="mine/active.png"></glsx-image>
<glsx-image webp src="mine/select.png"></glsx-image>
</view>
</view>
</block>
......
.upload-box {
min-height: 260rpx;
box-sizing: border-box;
padding: 30rpx 0 0 22rpx;
}
.upload-box .one {
width: 100%;
height: 260rpx;
}
.upload-box.flex {
display: flex;
flex-wrap: wrap;
// min-height: 260rpx;
// box-sizing: border-box;
padding: 30rpx 22rpx;
background: #fff;
border-radius: 16rpx;
&.multiple {
display: grid;
/* 自动根据容器宽度决定列数,每列最小 200rpx,最大 1fr */
grid-template-columns: repeat(auto-fill, minmax(200rpx, 1fr));
gap: 20rpx;
/* 保证最后一行左对齐 */
justify-items: start;
.item {
width: 200rpx;
box-sizing: border-box;
&.camera-box {
border: 1px dashed #c9cacc;
}
&.placeholder{
background: #F5F5F7;
}
}
}
&.flex {
display: flex;
align-items: center;
justify-content: center;
.item {
width: 100%;
&.placeholder{
display: none;
}
}
}
}
.upload-box .icon {
......@@ -20,14 +41,14 @@
}
.upload-box .item {
width: 200rpx;
position: relative;
// width: 200rpx;
height: 200rpx;
background: #F5F5F7;
margin-bottom: 30rpx;
margin-right: 20rpx;
background-color: #fff;
// margin-bottom: 30rpx;
// margin-right: 20rpx;
border-radius: 8px;
position: relative;
padding: 1rpx;
// padding: 1rpx;
}
.upload-box .item .del {
......@@ -56,7 +77,8 @@
position: relative;
}
.box {
background: #ffffff;
border-radius: 16rpx;
}
\ No newline at end of file
.text-center {
display: flex;
align-items: center;
justify-content: center;
}
<view class="upload-box box flex">
<block wx:if="{{imgUrls.length < 1}}">
<view class="upload-box {{imgUrls.length?'multiple':'flex'}}">
<!-- <block wx:if="{{imgUrls.length < 1}}">
<view class="one text-center" bindtap="onUpload">
<view class="icon">
<glsx-image webp src="mine/camera.png"></glsx-image>
<glsx-image webp src="/mine/camera.png"></glsx-image>
</view>
</view>
</block>
<block wx:else>
<block wx:if="{{imgUrls.length < 5}}">
<view class="upload-item item text-center" bindtap="onUpload">
<view class="icon">
<glsx-image webp src="mine/camera.png"></glsx-image>
</view>
</block> -->
<!-- <block wx:else> -->
<!-- <block wx:if="{{imgUrls.length < 5}}"> -->
<view wx:if="{{imgUrls.length<5}}" class="item camera-box text-center" bindtap="onUpload">
<view class="icon">
<glsx-image webp src="/mine/camera.png"></glsx-image>
</view>
</block>
</view>
<!-- </block> -->
<block wx:for="{{imgUrls}}" wx:key="index">
<view class="item" catchtap="previewImage" data-current="{{item}}" data-urls="{{imgUrls}}">
<image webp src="{{item}}" mode="aspectFill" class="image"></image>
......@@ -24,5 +24,7 @@
</view>
</view>
</block>
</block>
<view wx:if="{{imgUrls.length<5}}" class="item placeholder">
</view>
<!-- </block> -->
</view>
\ No newline at end of file
......@@ -30,6 +30,17 @@ const CouponStatus = {
EXPIRED: 3, // 已过期
};
const GoodsSource ={
'YZH':1,
'SELF':2
};
// const ActionMaps = {
// [GoodsSource.SELF]:[
// {text: '核验', type: 'verification', class: 'btn', handler: this.onVerification.bind(this)}
// ]
// };
Component({
/**
* 组件的属性列表
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!