📖 code review:店铺装修逻辑
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
<!-- 首页,支持店铺装修 -->
|
||||
<template>
|
||||
<view v-if="template">
|
||||
<s-layout title="首页" navbar="custom" tabbar="/pages/index/index" :bgStyle="template.page"
|
||||
@@ -20,7 +21,6 @@
|
||||
} from '@dcloudio/uni-app';
|
||||
import sheep from '@/sheep';
|
||||
import $share from '@/sheep/platform/share';
|
||||
import index2Api from '@/sheep/api/index2';
|
||||
// 隐藏原生tabBar
|
||||
uni.hideTabBar();
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
<!-- 自定义页面:支持装修 -->
|
||||
<template>
|
||||
<s-layout
|
||||
:title="page.name"
|
||||
@@ -38,6 +39,7 @@
|
||||
}
|
||||
// #endif
|
||||
|
||||
// TODO @疯狂:貌似这里还没接上哈
|
||||
const { error, data } = await sheep.$api.app.page(id);
|
||||
if (error === 0) {
|
||||
page.name = data.name;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
<!-- 个人中心:支持装修 -->
|
||||
<template>
|
||||
<s-layout
|
||||
title="我的"
|
||||
|
||||
Reference in New Issue
Block a user