diff --git a/src/main.js b/src/main.js index 51dbd5e0..126bd4e8 100644 --- a/src/main.js +++ b/src/main.js @@ -35,8 +35,11 @@ const app = new Vue({ ...App }); let params = {} -if (sessionStorage.getItem("prj")?.indexOf("saas") > -1) { +if (sessionStorage.getItem("prj")?.indexOf("saas") > -1) {//上架版 params = {action: "/app/wxcptp/portal/agentSign", corpId: "ww596787bb70f08288"} } +if (/AppCountryAlbum/.test(location.pathname)) {//乡村相册版 + params = {action: "/app/wxcptp/portal/agentSign", corpId: "wpytYEDgAAcpXjmlYkYwKO60JDGDWrXg", suiteId: "ww0da13777658d1262"} +} store.dispatch("agentSign", params).finally(() => app.$mount()) diff --git a/src/pages/login.vue b/src/pages/login.vue index 87b789de..dc6eeed4 100644 --- a/src/pages/login.vue +++ b/src/pages/login.vue @@ -60,7 +60,7 @@ export default { module = 'wangge' } this.setModule(module) - this.getToken({...this.form, module, corpId}).then(token => { + this.getToken({...this.form, module, corpId: 'wpytYEDgAAcpXjmlYkYwKO60JDGDWrXg'}).then(token => { if (token) { this.login(token) if (module != 'AppCountryAlbum') { diff --git a/src/saas/AppCountryAlbum/AddReport.vue b/src/saas/AppCountryAlbum/AddReport.vue index 043bddda..74e2b660 100644 --- a/src/saas/AppCountryAlbum/AddReport.vue +++ b/src/saas/AppCountryAlbum/AddReport.vue @@ -93,7 +93,7 @@ if (res.code === 0) { const data = this.configList[this.currIndex] uni.navigateTo({ - url: `./ReportImg?albumId=${this.albumId}&img=${res.data.url}&type=${data.watermarkType}&templateId=${data.id}` + url: `./ReportImg?albumId=${this.albumId}&img=${res.data.url}&fileId=${res.data.id}&type=${data.watermarkType}&templateId=${data.id}` }) } diff --git a/src/saas/AppCountryAlbum/AlbumDetail.vue b/src/saas/AppCountryAlbum/AlbumDetail.vue index 64a660af..8eb971d3 100644 --- a/src/saas/AppCountryAlbum/AlbumDetail.vue +++ b/src/saas/AppCountryAlbum/AlbumDetail.vue @@ -6,7 +6,7 @@ class="right" @click="linkTo('./AddAlbum?id=' + id)" hover-class="text-hover" - v-if="info.albumName !== '系统相册' && info.createUserId === user.wxUserId"> + v-if="info.albumName !== '系统相册' && info.createUserId === user.openId"> 相册设置 diff --git a/src/saas/AppCountryAlbum/Photo.vue b/src/saas/AppCountryAlbum/Photo.vue index 3f0833ba..7f648a36 100644 --- a/src/saas/AppCountryAlbum/Photo.vue +++ b/src/saas/AppCountryAlbum/Photo.vue @@ -14,7 +14,7 @@ 返回 -
+
删除
@@ -24,7 +24,7 @@