feat(f增模特ittingRoom): 新选择与上传功能- 添加模特列表状态管理与当前模特选中逻辑- 实现获取模特列表及切换模特功能
- 新增上传模特图片接口及调用逻辑- 更新模特展示组件,支持动态显示模特缩略图 - 添加获取衣服分类接口及初始化调用- 配置.editorconfig统一代码风格 - 移除调试用的console.log及token写死逻辑 - 修复部分组件引用及生命周期调用问题
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { computed, reactive, ref } from 'vue';
|
||||
import { computed, reactive, onMounted } from 'vue';
|
||||
import { onLoad, onPageScroll, onPullDownRefresh } from '@dcloudio/uni-app';
|
||||
import sheep from '@/sheep';
|
||||
import SSelectMote from './components/s-select-mote.vue';
|
||||
@@ -39,7 +39,7 @@
|
||||
import FittingRoomApi from '../../sheep/api/fittingRoom'; // 隐藏原生tabBar
|
||||
|
||||
const fittingRoomStore = sheep.$store('fittingRoom');
|
||||
|
||||
uni.setStorageSync('token', '42be01f1a6c54ea591c991b5da0977c0');
|
||||
sheep.$helper.toast('请选择是否同意协议');
|
||||
// 隐藏原生tabBar
|
||||
uni.hideTabBar({
|
||||
@@ -50,10 +50,11 @@
|
||||
console.log(index, item, '12');
|
||||
}
|
||||
|
||||
fittingRoomStore.getCloths().then((res) => {
|
||||
console.log(res, 'res');
|
||||
onMounted(() => {
|
||||
fittingRoomStore.getCategory();
|
||||
fittingRoomStore.getCloths();
|
||||
fittingRoomStore.getModelList();
|
||||
});
|
||||
|
||||
const state = reactive({
|
||||
info: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user