diff --git a/bin/serve.js b/bin/serve.js index 16450075..fa8cd113 100644 --- a/bin/serve.js +++ b/bin/serve.js @@ -28,9 +28,7 @@ const saveApps = app => { if (app.list.length > 0) { axios.post("http://192.168.1.87:12525/node/wechatapps/addOrUpdate", app, {timeout: 1000}).then(res => { if (res.data.code == 0) chalkTag.done("产品库目录已同步至后台数据库...") - }).catch(err => { - console.log(err) - }) + }).catch(() => 0) } } diff --git a/src/project/beta/AppGridManagement/SelectGird.vue b/src/project/beta/AppGridManagement/SelectGird.vue index 317915d7..3b379800 100644 --- a/src/project/beta/AppGridManagement/SelectGird.vue +++ b/src/project/beta/AppGridManagement/SelectGird.vue @@ -25,8 +25,9 @@ -
-
确定选择
+
+
清空
+
确定选择
@@ -56,6 +57,7 @@ export default { }, //是否是网格员申报 isApply: v => v.$route.query.formType == 2, + clearable: v => v.$route.query.clearable, selected: v => [v.$route.query.selected].flat() }, onLoad(option) { @@ -117,6 +119,7 @@ export default { getGridsByGridMemberAndParent(row) { let {id: parentGirdId} = row this.treeList = this.allData.filter(e => e.parentGirdId == parentGirdId) + this.treeList.map((item) => item.isChecked = this.selected.includes(item.id)) }, girdNameClick(row, index) { if (!index) { //第一级别 @@ -151,6 +154,14 @@ export default { } else { return this.$u.toast('请选择网格') } + }, + cancel() { + this.SelectGird = {} + uni.navigateBack({ + success: () => { + uni.$emit("pagePicker:custom", this.SelectGird) + } + }) } } } @@ -234,18 +245,25 @@ export default { width: 100%; height: 118px; background: #f4f8fb; + justify-content: flex-end; div { width: 192px; height: 80px; line-height: 80px; text-align: center; + border: 2px solid #1365dd; background: #1365dd; border-radius: 4px; font-size: 32px; color: #fff; - margin: 20px 34px 0 0; - float: right; + margin-right: 32px; + + &.cancel { + color: #333; + background: #fff; + border-color: #ddd; + } } } diff --git a/src/project/beta/AppHandSnapshot/AppHandSnapshot.vue b/src/project/beta/AppHandSnapshot/AppHandSnapshot.vue index 69122920..f79257c3 100644 --- a/src/project/beta/AppHandSnapshot/AppHandSnapshot.vue +++ b/src/project/beta/AppHandSnapshot/AppHandSnapshot.vue @@ -1,15 +1,15 @@ @@ -18,11 +18,11 @@ import List from './List.vue' import Statistics from './Statistics.vue' import Set from './Set.vue' +import {mapState} from 'vuex' export default { name: 'AppHandSnapshot', appName: '随手拍', - data() { return { component: 'List', @@ -50,10 +50,14 @@ export default { // } ], isTab: true, - isAdmin: false } }, - + computed: { + ...mapState(['user']), + isGridMember() { + return this.user.girdCheckType > 0 + } + }, components: { List, Statistics, @@ -72,20 +76,7 @@ export default { this.$nextTick(() => { this.refresh = true }) - }, - isGirdUser() { - this.isAdmin = false - this.$http.post('/app/appgirdmemberinfo/checkLogOnUser').then((res) => { - if (res.code == 0) { - if (res.data.checkType != '0') { - this.isAdmin = true - } - } - }) - }, - }, - onLoad() { - this.isGirdUser() + } }, onShow() { document.title = '随手拍' @@ -98,7 +89,7 @@ export default { }, onReachBottom() { - if(!this.tabIndex) { + if (!this.tabIndex) { uni.$emit('nextList') } }, @@ -109,6 +100,7 @@ export default { .AppHandSnapshot { height: 100%; } + .tabs { width: 100%; height: 98px; @@ -118,14 +110,17 @@ export default { bottom: 0; left: 0; display: flex; + .item { flex: 1; text-align: center; + img { width: 56px; height: 56px; margin-top: 8px; } + p { font-size: 22px; font-family: PingFangSC-Medium, PingFang SC; @@ -133,19 +128,23 @@ export default { color: #c4cad4; line-height: 8px; } + .color-3267F0 { color: #3267f0; } } } -.empty{ + +.empty { text-align: center; - img{ + + img { width: 282px; height: 306px; margin: 136px auto 0; } - p{ + + p { font-size: 28px; font-family: PingFangSC-Regular, PingFang SC; color: #999; diff --git a/src/project/beta/AppHandSnapshot/List.vue b/src/project/beta/AppHandSnapshot/List.vue index 82a31199..78b2b3e6 100644 --- a/src/project/beta/AppHandSnapshot/List.vue +++ b/src/project/beta/AppHandSnapshot/List.vue @@ -1,25 +1,22 @@