整合上架版进入标准流程
10
bin/serve.js
@@ -68,16 +68,6 @@ const start = () => {
|
|||||||
return json.pages.push(app)
|
return json.pages.push(app)
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
findPages('src/saas', file => {
|
|
||||||
if (/.+\\App[^\\]+\\[^\\]+\.vue/g.test(file)) {
|
|
||||||
let app = {
|
|
||||||
name: file.replace(/.*\\([^\\]+).vue/g, '$1'),
|
|
||||||
path: file.replace(/^src\\(.*).vue/g, '$1').replace(/\\/g, '/')
|
|
||||||
}
|
|
||||||
getFileInfo(app, file)
|
|
||||||
return json.pages.push(app)
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
findPages('src/project', file => {
|
findPages('src/project', file => {
|
||||||
if (/.+\\App[^\\]+\\[^\\]+\.vue/g.test(file)) {
|
if (/.+\\App[^\\]+\\[^\\]+\.vue/g.test(file)) {
|
||||||
let app = {
|
let app = {
|
||||||
|
|||||||
@@ -18,8 +18,7 @@
|
|||||||
"src/common/modules.js",
|
"src/common/modules.js",
|
||||||
"src/common/http.js",
|
"src/common/http.js",
|
||||||
"src/common/crypto-js.js",
|
"src/common/crypto-js.js",
|
||||||
"src/apps",
|
"src/apps"
|
||||||
"src/saas"
|
|
||||||
],
|
],
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"src/project/*"
|
"src/project/*"
|
||||||
|
|||||||
@@ -19,8 +19,6 @@ instance.interceptors.request.use(config => {
|
|||||||
if (['xaxc'].includes(module)) {
|
if (['xaxc'].includes(module)) {
|
||||||
config.url = config.url.replace(/(app|auth|admin)\//, "api/")
|
config.url = config.url.replace(/(app|auth|admin)\//, "api/")
|
||||||
}
|
}
|
||||||
} else if (sessionStorage.getItem("prj") == "saas" || module == "saas") {
|
|
||||||
config.baseURL = '/online'
|
|
||||||
} else config.baseURL = "/lan"
|
} else config.baseURL = "/lan"
|
||||||
return config
|
return config
|
||||||
}, err => {
|
}, err => {
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ const app = new Vue({
|
|||||||
...App
|
...App
|
||||||
});
|
});
|
||||||
let params = {}
|
let params = {}
|
||||||
if (sessionStorage.getItem("prj")?.indexOf("saas") > -1) {//上架版
|
if (/saas/.test(location.pathname) > -1) {//上架版
|
||||||
params = {action: "/app/wxcptp/portal/agentSign", corpId: "ww596787bb70f08288"}
|
params = {action: "/app/wxcptp/portal/agentSign", corpId: "ww596787bb70f08288"}
|
||||||
}
|
}
|
||||||
if (/AppCountryAlbum/.test(location.pathname)) {//乡村相册版
|
if (/AppCountryAlbum/.test(location.pathname)) {//乡村相册版
|
||||||
|
|||||||
@@ -5,23 +5,19 @@
|
|||||||
<!-- <div class="iconfont iconfont-iconLogo"/>-->
|
<!-- <div class="iconfont iconfont-iconLogo"/>-->
|
||||||
<ai-result v-if="result.tips" v-bind="result"/>
|
<ai-result v-if="result.tips" v-bind="result"/>
|
||||||
<input v-if="!!$route.query.code" class="codeText" :value="$route.query.code"/>
|
<input v-if="!!$route.query.code" class="codeText" :value="$route.query.code"/>
|
||||||
<u-radio-group v-model="currentLib" @change="handleSwitchSystem">
|
|
||||||
<u-radio v-for="(op,i) in libs" :key="i" :name="op.dir">{{ op.label }}</u-radio>
|
|
||||||
</u-radio-group>
|
|
||||||
<input class="codeText" v-model="search" placeholder="搜索要查找的应用"/>
|
<input class="codeText" v-model="search" placeholder="搜索要查找的应用"/>
|
||||||
<div flex class="appsPane wrap">
|
<div flex class="appsPane wrap">
|
||||||
<div class="item" flex v-for="app in appsList" :key="app.id" @tap="handleGotoApp(app)">
|
<div class="item" flex v-for="app in appsList" :key="app.id" @tap="handleGotoApp(app)">
|
||||||
<b v-text="app.label"/>
|
<b v-text="app.label"/>
|
||||||
<u-tag v-if="app.project" :text="app.project" mode="dark" shape="circle" size="mini"/>
|
<u-tag v-if="app.project" :text="app.project" mode="dark" shape="circle" size="mini"/>
|
||||||
<div class="appName fill" v-text="app.name"/>
|
<div class="appName fill" v-text="app.name"/>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {mapActions, mapMutations, mapState} from 'vuex'
|
import {mapActions, mapState} from 'vuex'
|
||||||
import AiResult from "../components/AiResult";
|
import AiResult from "../components/AiResult";
|
||||||
import AiSelect from "../components/AiSelect";
|
import AiSelect from "../components/AiSelect";
|
||||||
|
|
||||||
@@ -30,14 +26,14 @@ export default {
|
|||||||
components: {AiSelect, AiResult},
|
components: {AiSelect, AiResult},
|
||||||
inject: ['root'],
|
inject: ['root'],
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(['token', 'openUser', 'user', 'apps']),
|
...mapState(['apps']),
|
||||||
appsList() {
|
appsList() {
|
||||||
let {search, currentLib} = this
|
let {search} = this
|
||||||
return this.apps.filter(e => {
|
return this.apps.filter(e => {
|
||||||
if (/\/project\//.test(e.libPath)) {
|
if (/\/project\//.test(e.libPath)) {
|
||||||
e.project = e.libPath.replace(/.*project\/([^\/]+)\/.+/, '$1')
|
e.project = e.libPath.replace(/.*project\/([^\/]+)\/.+/, '$1')
|
||||||
}
|
}
|
||||||
return (currentLib == "apps" && e.libPath.indexOf("project") > -1) || e.libPath.indexOf(currentLib) > -1
|
return e
|
||||||
}).filter(e => !!search ? e.label?.indexOf(search) > -1 : true) || []
|
}).filter(e => !!search ? e.label?.indexOf(search) > -1 : true) || []
|
||||||
},
|
},
|
||||||
currentApp() {
|
currentApp() {
|
||||||
@@ -47,27 +43,16 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
result: {},
|
result: {},
|
||||||
libs: [
|
|
||||||
{label: "通用版", dir: "apps"},
|
|
||||||
{label: "上架版", dir: "saas"},
|
|
||||||
],
|
|
||||||
currentLib: "apps",
|
|
||||||
search: ""
|
search: ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapMutations(['logout', 'setApps']),
|
|
||||||
...mapActions(['agentSign']),
|
...mapActions(['agentSign']),
|
||||||
handleGotoApp(app) {
|
handleGotoApp(app) {
|
||||||
uni.navigateTo({url: `${app.libPath}`})
|
uni.navigateTo({url: `${app.libPath}`})
|
||||||
},
|
},
|
||||||
handleSwitchSystem() {
|
|
||||||
sessionStorage.setItem("prj", this.currentLib)
|
|
||||||
this.logout()
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
this.currentLib = sessionStorage.getItem("prj") || "apps"
|
|
||||||
this.agentSign(this.$route.query)
|
this.agentSign(this.$route.query)
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
|||||||
@@ -55,6 +55,8 @@ export default {
|
|||||||
corpId = 'ww596787bb70f08288'
|
corpId = 'ww596787bb70f08288'
|
||||||
if (/\/project\/police\//.test(libPath)) {
|
if (/\/project\/police\//.test(libPath)) {
|
||||||
module = 'hnjc'
|
module = 'hnjc'
|
||||||
|
} else if (/\/project\/saas\//.test(libPath)) {
|
||||||
|
module = 'online'
|
||||||
} else if (/\/project\/xicheng\//.test(libPath)) {
|
} else if (/\/project\/xicheng\//.test(libPath)) {
|
||||||
module = 'xaxc'
|
module = 'xaxc'
|
||||||
} else if (/\/project\/beta\//.test(libPath)) {
|
} else if (/\/project\/beta\//.test(libPath)) {
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 282 B After Width: | Height: | Size: 282 B |
|
Before Width: | Height: | Size: 314 B After Width: | Height: | Size: 314 B |
|
Before Width: | Height: | Size: 625 B After Width: | Height: | Size: 625 B |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 161 KiB After Width: | Height: | Size: 161 KiB |
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 277 B After Width: | Height: | Size: 277 B |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 978 B After Width: | Height: | Size: 978 B |
|
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 7.7 KiB |
|
Before Width: | Height: | Size: 373 B After Width: | Height: | Size: 373 B |
|
Before Width: | Height: | Size: 766 B After Width: | Height: | Size: 766 B |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 545 B After Width: | Height: | Size: 545 B |
|
Before Width: | Height: | Size: 866 B After Width: | Height: | Size: 866 B |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 757 B After Width: | Height: | Size: 757 B |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 892 B After Width: | Height: | Size: 892 B |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 623 B After Width: | Height: | Size: 623 B |
|
Before Width: | Height: | Size: 810 B After Width: | Height: | Size: 810 B |
|
Before Width: | Height: | Size: 815 B After Width: | Height: | Size: 815 B |
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 314 B After Width: | Height: | Size: 314 B |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 803 B After Width: | Height: | Size: 803 B |
|
Before Width: | Height: | Size: 373 B After Width: | Height: | Size: 373 B |