diff --git a/src/api/app.js b/src/api/app.js index 71df0c2..2dc0df5 100644 --- a/src/api/app.js +++ b/src/api/app.js @@ -230,4 +230,36 @@ export function routineStatusApi(id, data) { */ export function routineInfo() { return request.get(`config/setting/routine/config`) -} \ No newline at end of file +} + +/** + * @description 查看app版本详情 + */ +export function appDetail(id) { + return request.get(`app/version/detail/${id}`) +} +/** + * @description 创建app版本 + */ +export function appCreate(data) { + return request.post(`app/version/create`, data) +} +/** + * @description 获取app版本列表 + */ +export function appLst(data) { + return request.get(`app/version/lst`, data) +} +/** + * @description 编辑app版本详情 + */ +export function appEdit(id,data) { + return request.post(`app/version/edit/${id}`,data) +} +/** + * @description 删除app版本 + */ +export function appDelete(id) { + return request.post(`app/version/delete/${id}`) +} + diff --git a/src/components/uploadPicture/index.vue b/src/components/uploadPicture/index.vue index 3324404..f40ed0b 100644 --- a/src/components/uploadPicture/index.vue +++ b/src/components/uploadPicture/index.vue @@ -79,12 +79,12 @@ @click="checkPics" >使用选中图片 点击上传 diff --git a/src/libs/settingMer.js b/src/libs/settingMer.js index 1ef4a20..fa417ca 100644 --- a/src/libs/settingMer.js +++ b/src/libs/settingMer.js @@ -13,6 +13,8 @@ const VUE_APP_API_URL = process.env.VUE_APP_BASE_API || `${location.origin}` const VUE_APP_API_URL_Two = process.env.VUE_APP_BASE_API_Two || `${location.origin}` const VUE_APP_WS_URL = process.env.VUE_APP_WS_URL || (location.protocol === 'https:' ? 'wss' : 'ws') + ':' + location.hostname const login_title = Cookies.get('MerInfo') ? JSON.parse(Cookies.get('MerInfo')).login_title : '' + +console.log(VUE_APP_API_URL,'1111111111') const SettingMer = { // 服务器地址 httpUrl: VUE_APP_API_URL, diff --git a/src/router/index.js b/src/router/index.js index 3a2cd34..62c393b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -75,6 +75,7 @@ export const constantRoutes = [ name: 'Dashboard', meta: { title: '控制台', icon: 'dashboard', affix: true } } + ] }, { @@ -180,6 +181,7 @@ export const constantRoutes = [ }, component: () => import('@/components/uploadVideo/index') }, + { path: '*', redirect: roterPre + '/404', hidden: true } ] diff --git a/src/router/modules/app.js b/src/router/modules/app.js index 7d72cfc..3ee2a19 100644 --- a/src/router/modules/app.js +++ b/src/router/modules/app.js @@ -27,6 +27,13 @@ const appRouter = noCache: true }, component: () => import('@/views/app/wechat/menus/index') + }, { + path: 'version', + name: `appversion`, + meta: { + title: 'app版本管理' + }, + component: () => import('@/views/system/appvison') }, { path: 'wechat/reply', diff --git a/src/views/merchant/application/index.vue b/src/views/merchant/application/index.vue index 0f251a0..efc2309 100644 --- a/src/views/merchant/application/index.vue +++ b/src/views/merchant/application/index.vue @@ -128,13 +128,13 @@ + + + @@ -78,6 +85,13 @@ 单位:元 + + +
+ + 单位:元 +
+
+ + {{ + formDetailValidate.first_margin ? formDetailValidate.first_margin : "暂无数据" + }} @@ -234,7 +252,8 @@ export default { is_allow_apply: "", is_search_display: "", type_code: "", - is_sync_prod: "" + is_sync_prod: "", + first_margin:0 }, ruleValidate: { type_name: [ @@ -311,6 +330,19 @@ export default { }; this.$refs.tree && this.$refs.tree.setCheckedKeys([]); }, + //获取保证金 + + fimargin(e){ + console.log(e,this.formValidate.margin,e>this.formValidate.margin) + if(this.formValidate.is_margin == 1){ + if(Number(e)>Number(this.formValidate.margin)){ + this.$message({ + message: '警告,首次缴纳保证金不能超过店铺保证金', + type: 'warning' + }); + } + } + }, //获取权限 jurisdiction() { storeJurisdictionApi().then((res) => { @@ -361,6 +393,7 @@ export default { type_info: row.type_info, is_margin: row.is_margin || 0, margin: row.margin || 0, + first_margin: row.first_margin || 0, auth: row.auth_ids, description: row.description, is_allow_apply: row.is_allow_apply.toString(),