diff --git a/apis/setting.js b/apis/setting.js new file mode 100644 index 0000000..4ea84ee --- /dev/null +++ b/apis/setting.js @@ -0,0 +1,8 @@ +import http from '../utils/http/index.js' +// 修改员工姓名 +export function employeeName(data) { + return http.post({ + url: '/yyt-uec/update/my/employee-name?userId='+data.userId +'&enterpriseId=' +data.enterpriseId, + data + }) +} diff --git a/pages.json b/pages.json index 37c7963..c043322 100644 --- a/pages.json +++ b/pages.json @@ -258,7 +258,27 @@ "enablePullDownRefresh": false } } - ], + ,{ + "path" : "pages/user-info/index", + "style" : + { + "navigationBarTitleText": "用户名", + "navigationStyle": "custom", + "enablePullDownRefresh": false + } + + } + ,{ + "path" : "pages/about/index", + "style" : + { + "navigationBarTitleText": "关于", + "navigationStyle": "custom", + "enablePullDownRefresh": false + } + + } + ], "globalStyle": { "navigationBarTextStyle": "black", "navigationBarTitleText": "uni-app", diff --git a/pages/about/index.vue b/pages/about/index.vue new file mode 100644 index 0000000..c608e22 --- /dev/null +++ b/pages/about/index.vue @@ -0,0 +1,70 @@ + + + + + diff --git a/pages/add-paper/index.vue b/pages/add-paper/index.vue index d5cddc5..643de8b 100644 --- a/pages/add-paper/index.vue +++ b/pages/add-paper/index.vue @@ -346,19 +346,19 @@ export default { this.title = option.title } this.option = option + this.getCategoryListQuery() this.eidtFor = 0 if (this.title === '编辑纸品') { - this.getDteailList() + setTimeout(()=>{ + this.getDteailList() + },200) + this.eidtFor = 1 } - console.log('this.$store.state.supplierInfo.id', this.$store.state.supplierInfo.id) - this.getCategoryListQuery() + }, watch: { - ['form.name'](val) { - this.form.id = '' - console.log(111) - } + }, methods: { back, diff --git a/pages/mall/index.vue b/pages/mall/index.vue index c01fba0..d5df669 100644 --- a/pages/mall/index.vue +++ b/pages/mall/index.vue @@ -1,6 +1,6 @@