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 @@
+
+
+
+
+ 关于纸掌柜
+
+
+
+
+
+
+ 纸掌柜
+ 帮你卖好每一吨纸
+ 版本号: 纸掌柜 V1.0.0
+
+
+
+
+
+
+
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 @@
-
+
纸商城
分享
@@ -24,15 +24,18 @@
-
+
{{ item.brandName }}
-
+
{{ item.categoryName }}/{{ item.name }}/{{ item.manufacturerName }}
- 克重(价格):200(3900) 235(3900) 255(390 0)255(390
+
+ 克重(价格):
+ {{sku.weight}}({{sku.listPrice}})
+
@@ -40,7 +43,7 @@
编辑
- {{ item.status === '30111' ? '下架' : '上架' }}
+ {{ item.status === 30111 ? '下架' : '上架' }}
@@ -98,6 +101,7 @@ export default {
supplierId: this.$store.state.supplierInfo.supplierId,
name: this.$store.state.supplierInfo.name
}
+ this.quertData()
},
onLoad() {
this.quertData()
@@ -179,7 +183,7 @@ export default {
productStatusChange(item) {
var params = {
id: item.id,
- status: item.status === '30111' ? '30112' : '30111'
+ status: item.status === 30111 ? 30112 : 30111
}
productStatus(params).then(res => {
if (res) {
@@ -187,8 +191,11 @@ export default {
title: '状态修改成功',
icon: 'success'
})
- this.orderPagination.pageNum = 1
- this.quertData()
+ setTimeout(()=>{
+ this.orderPagination.pageNum = 1
+ this.quertData()
+ },500)
+
}
})
diff --git a/pages/paper-detail/index.vue b/pages/paper-detail/index.vue
index 63aba38..0090934 100644
--- a/pages/paper-detail/index.vue
+++ b/pages/paper-detail/index.vue
@@ -4,7 +4,7 @@
纸品详情
- 分享
+ 分享
@@ -88,11 +88,13 @@ export default {
return {
form:{},
skuList:[],
- imgList:[]
+ imgList:[],
+ option:''
}
},
onLoad(option) {
this.getDteailList(option)
+ this.option = option
},
methods: {
back,
@@ -107,9 +109,28 @@ export default {
this.form = res
this.skuList = res.skuList
this.imgList = res.imgList
+ this.$set(this.form,'categoryName',this.option.categoryName)
}
})
},
+ // 分享
+ shareTap() {
+ uni.share({
+ provider: "weixin",
+ scene: "WXSceneSession",
+ type: 0,
+ href: "http://uniapp.dcloud.io/",
+ title: "uni-app分享",
+ summary: "我正在使用HBuilderX开发uni-app,赶紧跟我一起来体验!",
+ imageUrl: "https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/d8590190-4f28-11eb-b680-7980c8a877b8.png",
+ success: function (res) {
+ console.log("success:" + JSON.stringify(res));
+ },
+ fail: function (err) {
+ console.log("fail:" + JSON.stringify(err));
+ }
+ });
+ }
}
}
diff --git a/pages/setting/index.vue b/pages/setting/index.vue
index 41a80ac..ed871ec 100644
--- a/pages/setting/index.vue
+++ b/pages/setting/index.vue
@@ -1,9 +1,78 @@
- 设置
+
+
+
+ 系统设置
+
+
+
+
+
+
+ {{item}}
+
+
+
+
+
+
-
+
diff --git a/pages/trade/quotationList.vue b/pages/trade/quotationList.vue
index 8a83da8..91e730f 100644
--- a/pages/trade/quotationList.vue
+++ b/pages/trade/quotationList.vue
@@ -98,6 +98,9 @@ export default {
list: []
}
},
+ onShow() {
+ this.getQuotationQurty()
+ },
onLoad(option) {},
filters: {
replyStatusName(status) {
diff --git a/pages/user-info/index.vue b/pages/user-info/index.vue
new file mode 100644
index 0000000..33c32b3
--- /dev/null
+++ b/pages/user-info/index.vue
@@ -0,0 +1,104 @@
+
+
+
+
+ 用户名
+
+
+
+
+
+
+
+
+ 请输入新的用户名
+
+
+
+
+
+
+
+
+