1、项目类型跟UI确定样式重画;

2、处理上传图片的方案(采用原商城的上传组件并根据UI调整样式);
3、处理选择标签的数据回显;
This commit is contained in:
wangzimeng 2025-07-30 18:25:58 +08:00
parent 378a31782b
commit 4a333db9a7
6 changed files with 534 additions and 341 deletions

File diff suppressed because it is too large Load Diff

View File

@ -184,6 +184,16 @@
region, region,
}, },
}); });
const getAreaData = () => {
if (_.isEmpty(uni.getStorageSync('areaData'))) {
sheep.$api.data.area().then((res) => {
if (res.code === 1) {
uni.setStorageSync('areaData', res.data);
}
});
}
};
const proCity = ref('') const proCity = ref('')

View File

@ -21,6 +21,7 @@ export default {
showLoading: false, showLoading: false,
}, },
}), }),
//招租详情
rentInfo: (id) => rentInfo: (id) =>
request({ request({
url: 'meal.information/detail', url: 'meal.information/detail',
@ -36,4 +37,19 @@ export default {
method: 'POST', method: 'POST',
data, data,
}), }),
// 项目类型
listType: (params) =>
request({
url: 'meal.information/type_list',
method: 'GET',
params,
}),
//提交发布
addRent: (data)=>
request({
url: 'meal.information/add',
method: 'POST',
data,
})
}; };

View File

@ -21,7 +21,10 @@
> >
<slot> <slot>
<view class="is-add"> <view class="is-add">
<image :src="imgsrc" class="add-icon"></image> <!-- <image :src="imgsrc" class="add-icon"></image> -->
<image src="https://jiangxiaoxian.0rui.cn/fabuAddImg.png" mode="widthFix"
style="width: 44rpx;height: 44rpx;" />
<span class="texts">添加图片</span>
</view> </view>
</slot> </slot>
</upload-image> </upload-image>
@ -659,7 +662,14 @@
display: flex; display: flex;
/* #endif */ /* #endif */
align-items: center; align-items: center;
flex-flow: column;
justify-content: center; justify-content: center;
.texts {
margin-top: 20rpx;
font-size: 24rpx;
color: #3D3D3D;
}
} }
.add-icon { .add-icon {
width: 57rpx; width: 57rpx;

View File

@ -222,7 +222,8 @@ export default {
bottom: 0; bottom: 0;
left: 0; left: 0;
margin: 5px; margin: 5px;
border: 1px #eee solid; // border: 1px #f7f7f7 solid;
background-color: #f7f7f7;
border-radius: 5px; border-radius: 5px;
overflow: hidden; overflow: hidden;
} }

View File

@ -104,7 +104,8 @@
}); });
const emits = defineEmits(['confirm', 'cancel', 'change']); const emits = defineEmits(['confirm', 'cancel', 'change']);
const provinceList = areaData; // const provinceList = areaData;
const provinceList = proFirst.concat(uni.getStorageSync('areaData'))
console.log('province',provinceList.value); console.log('province',provinceList.value);
const cityList = computed(() => { const cityList = computed(() => {