| | |
| | | version: '2.0.0', |
| | | // 开发环境接口Url |
| | | // devUrl: 'http://z4042833u6.wicp.vip', |
| | | // devUrl: 'http://192.168.2.109:9528', |
| | | devUrl: 'https://srgdjczzxtpt.com:2080/api', |
| | | devUrl: 'http://192.168.2.109:9528', |
| | | // devUrl: 'https://srgdjczzxtpt.com:2080/api', |
| | | // devUrl: 'https://kt39592615.goho.co', |
| | | minioBaseUrl: "https://srgdjczzxtpt.com:2080/gminio/jczz/", |
| | | // minioBaseUrl: "http://192.168.0.101:9528/", |
| | |
| | | } |
| | | if (accessToken) { |
| | | config.header['Blade-Auth'] = 'bearer ' + accessToken; |
| | | config.header['roleName'] = uni.getStorageSync("activeRole").roleAlias || ""; |
| | | config.header['communityCode'] = uni.getStorageSync("siteInfo").id || "" |
| | | } |
| | | if (config.params.tenantId) { |
| | | config.header['Tenant-Id'] = config.params.tenantId; |
| | |
| | | // }) |
| | | |
| | | http.interceptors.response.use((response) => { |
| | | |
| | | |
| | | // 若有数据返回则通过 |
| | | if (response.data.access_token || response.data.key) { |
| | | return response.data |
| | |
| | | }); |
| | | return Promise.reject(response); |
| | | } |
| | | }else { |
| | | if(response.data.error_code !== 200){ |
| | | } else { |
| | | if (response.data.error_code !== 200) { |
| | | uni.showToast({ |
| | | title: response.data.msg, |
| | | icon: 'none' |
| | |
| | | const currentPage = pages[pages.length - 1] |
| | | uni.setStorageSync("responIndex", 0) |
| | | uni.clearStorageSync() |
| | | // uni.redirectTo({ |
| | | // url: `/pages/login/login-account?redirect=/${currentPage.route}` |
| | | // }) |
| | | |
| | | |
| | | // uni.redirectTo({ |
| | | // url: `/pages/login/login-account?redirect=/${currentPage.route}` |
| | | // }) |
| | | |
| | | |
| | | uni.showModal({ |
| | | title: "提示", |
| | | content: "请登录", |
| | | showCancel: false, |
| | | // showCancel: false, |
| | | success: res => { |
| | | if (res.confirm) { |
| | | uni.redirectTo({ |
| | |
| | | } |
| | | } |
| | | }) |
| | | }else { |
| | | } else { |
| | | uni.showToast({ |
| | | title: '系统繁忙,请稍后再试', |
| | | icon: 'none' |
| | |
| | |
|
| | | //表单提交
|
| | | submit() {
|
| | | const that = this
|
| | | this.$refs.form.validate().then(valid => {
|
| | | if (valid) {
|
| | | if (this.form?.images?.length > 0) {
|
| | | let urls = []
|
| | | this.form.images.forEach(e => {
|
| | | urls.push(e.name)
|
| | | })
|
| | | this.form.imageUrls = urls.join(",")
|
| | | if (!this.form.placeName) {
|
| | | this.$showTips("请输入场所名称")
|
| | | return
|
| | | }
|
| | |
|
| | | if (!this.form.label) {
|
| | | this.$showTips("请选择标签")
|
| | | return
|
| | | }
|
| | |
|
| | |
|
| | | // this.$refs.form.validate().then(valid => {
|
| | | // if (valid) {
|
| | | if (this.form?.images?.length > 0) {
|
| | | let urls = []
|
| | | this.form.images.forEach(e => {
|
| | | urls.push(e.name)
|
| | | })
|
| | | this.form.imageUrls = urls.join(",")
|
| | | }
|
| | |
|
| | | this.form.roleName = uni.getStorageSync("activeRole").roleName;
|
| | | if (this.form.isNine == 2 && this.form.nineType) {
|
| | | this.form.nineType = "";
|
| | | }
|
| | | if (this.form.isFront == 2 && this.form.frontType) {
|
| | | this.form.frontType = "";
|
| | | }
|
| | |
|
| | | if (this.form.isNine == 1 && !this.form.nineType) {
|
| | | this.$showTips("请选择九小场所类型")
|
| | | return
|
| | | }
|
| | |
|
| | | if (this.form.isFront == 1 && !this.form.frontType) {
|
| | | this.$showTips("请选择阵地类型")
|
| | | return
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | | delete this.form.images;
|
| | |
|
| | | add(this.form).then(res => {
|
| | | uni.showToast({
|
| | | icon: 'success',
|
| | | title: '提交成功',
|
| | | success() {
|
| | | setTimeout(() => {
|
| | | uni.$emit("refresh")
|
| | | uni.navigateBack()
|
| | | // that.$u.func.globalNavigator(
|
| | | // "/pages/home/index", "switchTab")
|
| | | }, 300)
|
| | | }
|
| | |
|
| | | this.form.roleName = uni.getStorageSync("activeRole").roleName;
|
| | | if (this.form.isNine == 2 && this.form.nineType) {
|
| | | this.form.nineType = "";
|
| | | }
|
| | | if (this.form.isFront == 2 && this.form.frontType) {
|
| | | this.form.frontType = "";
|
| | | }
|
| | |
|
| | | if (this.form.isNine == 1 && !this.form.nineType) {
|
| | | this.$showTips("请选择九小场所类型")
|
| | | return
|
| | | }
|
| | |
|
| | | if (this.form.isFront == 1 && !this.form.frontType) {
|
| | | this.$showTips("请选择阵地类型")
|
| | | return
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | | delete this.form.images;
|
| | |
|
| | | add(this.form).then(res => {
|
| | | uni.showToast({
|
| | | icon: 'success',
|
| | | title: '提交成功',
|
| | | success() {
|
| | | setTimeout(() => {
|
| | | uni.$emit("refresh")
|
| | | uni.navigateBack()
|
| | | // that.$u.func.globalNavigator(
|
| | | // "/pages/home/index", "switchTab")
|
| | | }, 300)
|
| | | }
|
| | | })
|
| | | })
|
| | | }
|
| | | })
|
| | | })
|
| | | // }
|
| | | // })
|
| | | },
|
| | |
|
| | | async buildColumn() {
|
| | |
| | | label: '交易过程', |
| | | name: 'transactionProcess', |
| | | value: '未完善' |
| | | }, |
| | | { |
| | | label: '时间', |
| | | name: 'createTime', |
| | | value: '未完善' |
| | | } |
| | | ], |
| | | form: { |