diff --git a/pages.json b/pages.json index cc00068..e04a1af 100644 --- a/pages.json +++ b/pages.json @@ -16,155 +16,176 @@ "navigationBarTitleText": "若依移动端框架", "navigationStyle": "custom" } - }, { - "path": "pages/work/index", + }, {"path": "pages/work/index", "style": { "navigationBarTitleText": "工作台" } - }, { - "path": "pages/mine/index", + }, {"path": "pages/mine/index", "style": { "navigationBarTitleText": "我的" } - }, { - "path": "pages/mine/avatar/index", - "style": { - "navigationBarTitleText": "修改头像" - } - }, { - "path": "pages/mine/info/index", - "style": { - "navigationBarTitleText": "个人信息" - } - }, { - "path": "pages/mine/info/edit", - "style": { - "navigationBarTitleText": "编辑资料" - } - }, { - "path": "pages/mine/pwd/index", - "style": { - "navigationBarTitleText": "修改密码" - } - }, { - "path": "pages/mine/setting/index", - "style": { - "navigationBarTitleText": "应用设置" - } - }, { - "path": "pages/mine/help/index", - "style": { - "navigationBarTitleText": "常见问题" - } - }, { - "path": "pages/mine/about/index", - "style": { - "navigationBarTitleText": "关于我们" - } - }, { - "path": "pages/common/webview/index", - "style": { - "navigationBarTitleText": "浏览网页" - } - }, { - "path": "pages/common/textview/index", - "style": { - "navigationBarTitleText": "浏览文本" - } -}, -{ - "path": "pages/user/user", + }, {"path": "pages/product/product", "style": { "navigationBarTitleText": "" } -}, -{ - "path": "pages/settings/settings", - "style": { - "navigationBarTitleText": "" - } -}, -{ - "path": "pages/product/product", - "style": { - "navigationBarTitleText": "" - } -}, -{ - "path": "pages/asset/asset", - "style": { - "navigationBarTitleText": "" - } -}, -{ - "path": "pages/enter/enter", - "style": { - "navigationBarTitleText": "" - } -}, -{ - "path": "pages/addProduct/addProduct", - "style": { - "navigationBarTitleText": "" - } -}, -{ - "path": "pages/storeSelect/storeSelect", - "style": { - "navigationBarTitleText": "选择门店" - } -}, -{ - "path": "pages/edit/edit", - "style": { - "navigationBarTitleText": "" - } -}, -{ - "path": "pages/import/import", - "style": { - "navigationBarTitleText": "" - } -}, - { - "path": "pages/userStores/userStores", +} +], + "subPackages": [ + { + "root": "pages/mine", + "pages": [ + {"path": "avatar/index", + "style": { + "navigationBarTitleText": "修改头像" + } + }, + {"path": "info/index", + "style": { + "navigationBarTitleText": "个人信息" + } + }, + {"path": "info/edit", + "style": { + "navigationBarTitleText": "编辑资料" + } + }, + {"path": "pwd/index", + "style": { + "navigationBarTitleText": "修改密码" + } + }, + {"path": "setting/index", + "style": { + "navigationBarTitleText": "应用设置" + } + }, + {"path": "help/index", + "style": { + "navigationBarTitleText": "常见问题" + } + }, + {"path": "about/index", + "style": { + "navigationBarTitleText": "关于我们" + } + } + ] + }, + { + "root": "pages/common", + "pages": [ + {"path": "webview/index", + "style": { + "navigationBarTitleText": "浏览网页" + } + }, + { + "path": "textview/index", + "style": { + "navigationBarTitleText": "浏览文本" + } + } + ] + }, + { + "root": "pages/product", + "pages": [ + {"path": "../addProduct/addProduct", "style": { "navigationBarTitleText": "" } - }, - - { - "path": "pages/batchDeleteProduct/batchDeleteProduct", + }, + { + "path": "../batchDeleteProduct/batchDeleteProduct", "style": { "navigationBarTitleText": "" } - }, - { - "path": "pages/addBrand/addBrand", + }, + { + "path": "../edit/edit", "style": { "navigationBarTitleText": "" } - }, - { - "path": "pages/BrandSelector/BrandSelector", + } + ] + }, + { + "root": "pages/brand", + "pages": [ + { + "path": "../addBrand/addBrand", + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "../BrandSelector/BrandSelector", "style": { "navigationBarTitleText": "选择品牌" } - }, - { - "path": "pages/category/category", + } + ] + }, + { + "root": "pages/other", + "pages": [ + { + "path": "../menu", "style": { "navigationBarTitleText": "" } - }, - { - "path": "pages/back/back", + }, + {"path": "../user/user", "style": { "navigationBarTitleText": "" } - } - -], + }, + {"path": "../settings/settings", + "style": { + "navigationBarTitleText": "" + } + }, + {"path": "../asset/asset", + "style": { + "navigationBarTitleText": "" + } + }, + {"path": "../enter/enter", + "style": { + "navigationBarTitleText": "" + } + }, + {"path": "../storeSelect/storeSelect", + "style": { + "navigationBarTitleText": "选择门店" + } + }, + {"path": "../import/import", + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "../userStores/userStores", + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "../category/category", + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "../back/back", + "style": { + "navigationBarTitleText": "" + } + } + ] + } + ], "tabBar": { "color": "#000000", "selectedColor": "#000000", diff --git a/pages/product/product.vue b/pages/product/product.vue index 82461ff..63d2300 100644 --- a/pages/product/product.vue +++ b/pages/product/product.vue @@ -404,6 +404,7 @@ addNewGoods() { uni.navigateTo({ url: '/pages/addProduct/addProduct' + // url: '/pages/enter/enter' }); }, diff --git a/pages/updateUserName/updateUserName.vue b/pages/updateUserName/updateUserName.vue new file mode 100644 index 0000000..f051575 --- /dev/null +++ b/pages/updateUserName/updateUserName.vue @@ -0,0 +1,160 @@ + + + + + \ No newline at end of file diff --git a/pages/user/user.vue b/pages/user/user.vue index d4e1320..b91b9e4 100644 --- a/pages/user/user.vue +++ b/pages/user/user.vue @@ -13,7 +13,7 @@ - + 昵称 名称 @@ -103,6 +103,11 @@ icon: 'none' }) }, + goUpdateUserName(){ + uni.navigateTo({ + url: '/pages/updateUserName/updateUserName' + }); + }, // 注销账号 handleCancelAccount() { uni.showModal({ @@ -202,7 +207,7 @@ /* ========== 标题模块 ========== */ .header-module { - background-color: cornflowerblue; + background-color: firebrick; padding: 40rpx 40rpx 60rpx; border-bottom: 2rpx solid #f5f5f5; text-align: center;