提交 e0166109 authored 作者: huaxinzhu's avatar huaxinzhu

云仓一期,二期,并作为云仓基础版

上级 ce2551c5
import request from '@/utils/request';
// 获取品牌列表
export function getBrandsInf(query) {
return request({
url: '/local/brands',
method: 'get',
params: query
});
}
// 新增品牌
export function addBrand(data) {
return request({
url: '/local/brands',
method: 'post',
data: data
});
}
// 获取品牌详情
export function getDetails (id) {
return request({
url: '/local/brandsInfo?id='+id,
method: 'get'
})
}
// 修改品牌信息
export function upBrand(data) {
return request({
url: '/local/upbrands',
method: 'post',
data: data
});
}
// 上传图片
export function upLoadImg (data) {
return request({
url: '/system/goods/uploadImg',
method: 'post',
data: data
});
}
import request from '@/utils/request';
import request from '@/utils/request';
// 获取主体信息
export function getMainInf(query) {
return request({
url: '/local/getOrganization',
method: 'get',
params: query
});
}
// 新建主体信息
export function addMain(data) {
return request({
url: '/local/organization',
method: 'post',
data: data
})
}
// 获取品牌信息
export function getBrandsInf(query) {
return request({
url: '/local/brands',
method: 'get',
params: query
});
}
// 新建品牌信息
export function addBrands(data) {
return request({
url: '/local/brands',
method: 'post',
data: data
});
}
// 修改品牌信息
export function upBrands(data) {
return request({
url: '/local/upbrands',
method: 'post',
data: data
});
}
// 获取店铺信息
export function getShopInf(query) {
return request({
url: '/local/getShopInfo',
method: 'get',
params: query
});
}
// 提交店铺信息
export function addShopInf(data) {
return request({
url: '/local/addShopInfo',
method: 'post',
data: data
});
}
// 上传图片
export function upLoadImg (data) {
return request({
url: '/system/goods/uploadImg',
method: 'post',
data: data
});
}
// 获取商品类目
export function getGoodsType(query) {
return request({
url: '/local/cate',
method: 'get',
params: query
});
}
...@@ -34,6 +34,15 @@ export function getExpressInfo(data){ ...@@ -34,6 +34,15 @@ export function getExpressInfo(data){
}) })
} }
// 获取 所有物流信息
export function getExpressList(query) {
return request({
url: '/system/order/expressList',
method: 'get',
params: query
})
}
// 新增order // 新增order
export function addOrder(data) { export function addOrder(data) {
return request({ return request({
......
...@@ -44,3 +44,4 @@ export function retreatSubmit(data) { ...@@ -44,3 +44,4 @@ export function retreatSubmit(data) {
// data:{ids:ids} // data:{ids:ids}
// }) // })
// } // }
import request from '@/utils/request';
// 获取 售后地址列表
export function getAddressList(query) {
return request({
url: '/local/shopRefundAddress/list',
method: 'get',
params: query
});
}
// 新增/修改售后地址
export function addAddress(data) {
return request({
url: '/local/shopRefundAddress/add',
method: 'post',
data: data
})
}
// 获取售后地址详情
export function getAddressDetails (id) {
return request({
url: '/local/getRefundAddressInfo?id='+id,
method: 'get'
})
}
// 删除售后地址
export function deleteAddress (id) {
return request({
url: '/local/delRefundAddress?id='+id,
method: 'get'
})
}
// 获取省市区地址
export function getAreaList(query) {
return request({
url: '/local/provinceCity/list',
method: 'get',
params: query
});
}
//
...@@ -4,6 +4,9 @@ ...@@ -4,6 +4,9 @@
<breadcrumb id="breadcrumb-container" class="breadcrumb-container" /> <breadcrumb id="breadcrumb-container" class="breadcrumb-container" />
<div style="position:fixed;height: 100%;line-height: 50px;font-size:16px; right: 100px;">
<el-button type="text"><a href="http://oldpop.jxhh.com/" >切换老版本</a></el-button>
</div>
<div class="right-menu"> <div class="right-menu">
<!-- <template v-if="device!=='mobile'"> <!-- <template v-if="device!=='mobile'">
<search id="header-search" class="right-menu-item" /> <search id="header-search" class="right-menu-item" />
...@@ -24,6 +27,7 @@ ...@@ -24,6 +27,7 @@
</template> --> </template> -->
<el-dropdown class="avatar-container right-menu-item hover-effect" trigger="click"> <el-dropdown class="avatar-container right-menu-item hover-effect" trigger="click">
<div class="avatar-wrapper"> <div class="avatar-wrapper">
<img :src="avatar" class="user-avatar"> <img :src="avatar" class="user-avatar">
......
...@@ -15,7 +15,6 @@ router.beforeEach((to, from, next) => { ...@@ -15,7 +15,6 @@ router.beforeEach((to, from, next) => {
if (getToken()) { if (getToken()) {
/* has token*/ /* has token*/
if (to.path === '/login') { if (to.path === '/login') {
// console.log(555)
return false return false
next({ path: '/' }) next({ path: '/' })
NProgress.done() NProgress.done()
...@@ -36,17 +35,13 @@ router.beforeEach((to, from, next) => { ...@@ -36,17 +35,13 @@ router.beforeEach((to, from, next) => {
router.addRoutes(accessRoutes) // 动态添加可访问路由表 router.addRoutes(accessRoutes) // 动态添加可访问路由表
next({ ...to, replace: true }) // hack方法 确保addRoutes已完成 next({ ...to, replace: true }) // hack方法 确保addRoutes已完成
}) })
}) }).catch(err => {
// console.log(666)
.catch(err => {
// console.log(5555)
store.dispatch('FedLogOut').then(() => { store.dispatch('FedLogOut').then(() => {
Message.error(err) Message.error(err)
next({ path: '/' }) next({ path: '/' })
}) })
}) })
} else { } else {
// console.log(222)
next() next()
// 没有动态改变权限的需求可直接next() 删除下方权限判断 ↓ // 没有动态改变权限的需求可直接next() 删除下方权限判断 ↓
// if (hasPermission(store.getters.roles, to.meta.roles)) { // if (hasPermission(store.getters.roles, to.meta.roles)) {
......
...@@ -5,7 +5,7 @@ Vue.use(Router) ...@@ -5,7 +5,7 @@ Vue.use(Router)
/* Layout */ /* Layout */
import Layout from '@/layout'; import Layout from '@/layout';
import Entry from '@/views/entry'; // import Entry from '@/views/entry';
...@@ -60,6 +60,12 @@ export const constantRoutes = [ ...@@ -60,6 +60,12 @@ export const constantRoutes = [
component: (resolve) => require(['@/views/error/401'], resolve), component: (resolve) => require(['@/views/error/401'], resolve),
hidden: true hidden: true
}, },
// 总体流程
{
path: '/process',
component: (resolve) => require(['@/views/entry/process'], resolve),
hidden: true
},
// 阅读协议 // 阅读协议
{ {
path: '/agreement', path: '/agreement',
...@@ -93,25 +99,13 @@ export const constantRoutes = [ ...@@ -93,25 +99,13 @@ export const constantRoutes = [
// 审核失败 // 审核失败
{ {
path: '/reviewFail', path: '/reviewFail',
name: 'reviewFail',
component: (resolve) => require(['@/views/entry/reviewFail'], resolve), component: (resolve) => require(['@/views/entry/reviewFail'], resolve),
hidden: true hidden: true
}, },
/*{
path: '',
component: Layout,
redirect: 'index',
children: [
{
path: 'index',
component: (resolve) => require(['@/views/index'], resolve),
name: '首页',
meta: { title: '首页', icon: 'dashboard', noCache: true, affix: true }
}
]
},*/
{ {
path: '', path: '',
component: Entry, component: Layout,
redirect: 'index', redirect: 'index',
children: [ children: [
{ {
...@@ -188,6 +182,34 @@ export const constantRoutes = [ ...@@ -188,6 +182,34 @@ export const constantRoutes = [
} }
] ]
}, },
/* 正式上线需要 注释 */
{
path: '/brand',
component: Layout,
hidden: true,
children: [
{
path: 'fields',
component: (resolve) => require(['@/views/system/shop/brand'], resolve),
name: 'modelFields',
meta: { title: '品牌管理' }
}
]
},
{
path: '/address',
component: Layout,
hidden: true,
children: [
{
path: 'fields',
component: (resolve) => require(['@/views/system/retreat/address'], resolve),
name: 'modelFields',
meta: { title: '售后地址' }
}
]
},
/**/
] ]
export default new Router({ export default new Router({
......
...@@ -6,6 +6,7 @@ import tagsView from './modules/tagsView' ...@@ -6,6 +6,7 @@ import tagsView from './modules/tagsView'
import permission from './modules/permission' import permission from './modules/permission'
import settings from './modules/settings' import settings from './modules/settings'
import getters from './getters' import getters from './getters'
import entryState from './modules/entryState'
Vue.use(Vuex) Vue.use(Vuex)
...@@ -15,7 +16,8 @@ const store = new Vuex.Store({ ...@@ -15,7 +16,8 @@ const store = new Vuex.Store({
user, user,
tagsView, tagsView,
permission, permission,
settings settings,
entryState
}, },
getters getters
}) })
......
const entryState = {
state: {
type: 0
}
}
export default entryState;
...@@ -53,9 +53,7 @@ const user = { ...@@ -53,9 +53,7 @@ const user = {
Login({ commit }, tickets) { Login({ commit }, tickets) {
const ticket = tickets.ticket const ticket = tickets.ticket
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
console.log("Promise")
login2(tickets).then(res => { login2(tickets).then(res => {
console.log("res.data.token",res.data.token)
setToken(res.data.token) setToken(res.data.token)
commit('SET_TOKEN', res.data.token) commit('SET_TOKEN', res.data.token)
resolve(res.data) resolve(res.data)
...@@ -69,12 +67,9 @@ const user = { ...@@ -69,12 +67,9 @@ const user = {
GetInfo({ commit, state }) { GetInfo({ commit, state }) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
getInfo().then(res => { getInfo().then(res => {
// console.log("res.data",res.data)
const user = res.data.user const user = res.data.user
// const avatar = user.avatar == "" ? require("@/assets/image/login-background.jpg") : process.env.VUE_APP_BASE_API +"/"+ user.avatar; // const avatar = user.avatar == "" ? require("@/assets/image/login-background.jpg") : process.env.VUE_APP_BASE_API +"/"+ user.avatar;
const avatar = require("@/assets/image/login-background.jpg") const avatar = require("@/assets/image/login-background.jpg")
console.log("user111",user)
// return false
if (res.data.Role && res.data.Role.length > 0) { // 验证返回的roles是否是一个非空数组 if (res.data.Role && res.data.Role.length > 0) { // 验证返回的roles是否是一个非空数组
commit('SET_ROLES', res.data.roles) commit('SET_ROLES', res.data.roles)
commit('SET_PERMISSIONS', res.data.permissions) commit('SET_PERMISSIONS', res.data.permissions)
...@@ -82,7 +77,6 @@ const user = { ...@@ -82,7 +77,6 @@ const user = {
commit('SET_ROLES', ['ROLE_DEFAULT']) commit('SET_ROLES', ['ROLE_DEFAULT'])
} }
commit('SET_NAME', user.Username) commit('SET_NAME', user.Username)
commit('SET_SELLERID', user.SellerId) commit('SET_SELLERID', user.SellerId)
commit('SET_AVATAR', avatar) commit('SET_AVATAR', avatar)
resolve(res) resolve(res)
...@@ -94,7 +88,6 @@ const user = { ...@@ -94,7 +88,6 @@ const user = {
// 退出系统 // 退出系统
LogOut({ commit, state }) { LogOut({ commit, state }) {
console.log("LogOut")
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
logout().then(() => { logout().then(() => {
commit('SET_TOKEN', '') commit('SET_TOKEN', '')
...@@ -110,7 +103,6 @@ const user = { ...@@ -110,7 +103,6 @@ const user = {
} }
// }, 1000) // }, 1000)
resolve() resolve()
}).catch(error => { }).catch(error => {
reject(error) reject(error)
......
import axios from 'axios' import axios from 'axios'
import { Notification, MessageBox, Message } from 'element-ui' import {Notification, MessageBox, Message} from 'element-ui'
import store from '@/store' import store from '@/store'
import { getToken } from '@/utils/auth' import {getToken} from '@/utils/auth'
import errorCode from '@/utils/errorCode' import errorCode from '@/utils/errorCode'
axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8' axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'
...@@ -19,10 +19,11 @@ service.interceptors.request.use(config => { ...@@ -19,10 +19,11 @@ service.interceptors.request.use(config => {
if (getToken() && !isToken) { if (getToken() && !isToken) {
config.headers['Authorization'] = 'Bearer ' + getToken() // 让每个请求携带自定义token 请根据实际情况自行修改 config.headers['Authorization'] = 'Bearer ' + getToken() // 让每个请求携带自定义token 请根据实际情况自行修改
} }
//config.headers['Authorization'] = 'Bearer ' + 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJsb2dpbk5hbWUiOiIxNTcxMTEzOTg5NSIsInVpZCI6NTI4MjgsImNoYW5uZWxJZCI6MCwiZXhwIjoxNjE5NTEyMzI0LCJpc3MiOiJnaW4tYmxvZyJ9.1I74xBUHyu_XIc7BggNMpxRUGGZnGJEEvElD85xxIPY'
return config return config
}, error => { }, error => {
console.log(error) console.log("25reject");
Promise.reject(error) Promise.reject(error);
}) })
// 响应拦截器 // 响应拦截器
...@@ -31,6 +32,7 @@ service.interceptors.response.use(res => { ...@@ -31,6 +32,7 @@ service.interceptors.response.use(res => {
const code = res.data.code || 200; const code = res.data.code || 200;
// 获取错误信息 // 获取错误信息
const message = errorCode[code] || res.data.msg || errorCode['default'] const message = errorCode[code] || res.data.msg || errorCode['default']
if (code === 401 || code == 99999) { if (code === 401 || code == 99999) {
MessageBox.confirm( MessageBox.confirm(
'登录状态已过期,您可以继续留在该页面,或者重新登录', '登录状态已过期,您可以继续留在该页面,或者重新登录',
...@@ -45,49 +47,62 @@ service.interceptors.response.use(res => { ...@@ -45,49 +47,62 @@ service.interceptors.response.use(res => {
location.reload() // 为了重新实例化vue-router对象 避免bug location.reload() // 为了重新实例化vue-router对象 避免bug
}) })
}) })
}else if (code === 500) { } else if (code === 500) {
Message({ Message({
message: message, message: "状态吗500",
// message: message,
type: 'error' type: 'error'
}) })
console.log("q500")
return Promise.reject(new Error(message)) return Promise.reject(new Error(message))
} else if (code !== 200) { } else if (code !== 200 && code !== 1) {
console.log("q200")
Notification.error({ Notification.error({
title: message title: message
}) })
return Promise.reject('error') return Promise.reject('error')
store.dispatch('LogOut').then(() => { store.dispatch('LogOut').then(() => {
var ssa = window.location.host var ssa = window.location.host;
// setTimeout(function (){ // setTimeout(function (){
if(ssa =='localhost:1024'){ if (ssa == 'localhost:1024') {
window.location.href='http://sso.jxhh.com/logout?redirect=http://'+ssa window.location.href = 'http://sso.jxhh.com/logout?redirect=http://' + ssa
}else{ } else {
window.location.href='http://sso.jxhh.com/logout?redirect=http://'+ssa window.location.href = 'http://sso.jxhh.com/logout?redirect=http://' + ssa
} }
// }, 1000) // }, 1000)
// location.reload() // 为了重新实例化vue-router对象 避免bug // location.reload() // 为了重新实例化vue-router对象 避免bug
}) })
}else { } else if (code === 200) {
return res.data return res.data
} }
}, }, error => {
error => { // --- start ---- 开发时候用这段,把错误彻底抛出来 --- start ---
var ssa = window.location.host // let {message} = error;
setTimeout(function (){ // if (message == 'Network Error') {
if(ssa =='localhost:1024'){ // message = "后端接口连接异常";
window.location.href='http://sso.jxhh.com/logout?redirect=http://'+ssa // } else if (message.includes('timeout')) {
}else{ // message = '系统接口请求超时';
window.location.href='http://sso.jxhh.com/logout?redirect=http://'+ssa // } else if (message.includes("Request failed with status code")) {
} // message = "系统接口" + message.substr(message.length - 3) + "异常";
}, 1000) // }
// Message({ // Message({
// message: error.message, // message: message,
// type: 'error', // type: "error"
// duration: 5 * 1000 // });
// }) // console.log(message);
// return Promise.reject(error) // --- end ---- 开发时候用这段,把错误彻底抛出来 --- end ---
// --- start --- 正式上线,隐藏报错信息 ----- start ----
let ssa = window.location.host;
setTimeout(function () {
if (ssa == 'localhost:1024') {
window.location.href = 'http://sso.jxhh.com/logout?redirect=http://' + ssa
} else {
window.location.href = 'http://sso.jxhh.com/logout?redirect=http://' + ssa
}
}, 1000);
// --- end --- 正式上线,隐藏报错信息 ----- end ----
return Promise.reject(error)
} }
) )
......
...@@ -131,4 +131,3 @@ export function handleTree(data, id, parentId, children, rootId) { ...@@ -131,4 +131,3 @@ export function handleTree(data, id, parentId, children, rootId) {
}); });
return treeData != '' ? treeData : data; return treeData != '' ? treeData : data;
} }
\ No newline at end of file
...@@ -3,26 +3,32 @@ ...@@ -3,26 +3,32 @@
<div class="logo-bg"> <div class="logo-bg">
<img src="../../../public/images/logo_white_sm.png" alt=""> <img src="../../../public/images/logo_white_sm.png" alt="">
</div> </div>
<div class="steps"> <el-card class="box-card">
<div slot="header" class="clearfix steps">
<el-steps :active="4" align-center finish-status="success" process-status="error"> <el-steps :active="4" align-center finish-status="success" process-status="error">
<el-step title="仔细阅读并同意入驻协议"></el-step> <el-step title="签署入驻协议"></el-step>
<el-step title="填写主体信息"></el-step> <el-step title="填写主体信息"></el-step>
<el-step title="填写品牌信息"></el-step> <el-step title="填写品牌信息"></el-step>
<el-step title="填写店铺信息"></el-step> <el-step title="填写店铺信息"></el-step>
<el-step title="提交审核,等待结果"></el-step> <el-step title="提交入驻审核"></el-step>
</el-steps> </el-steps>
</div> </div>
<div class="main"> <div class="main">
<div class="fuck"> <div class="main-con">
<p> <p>
<img src="../../../public/images/entry/reviewFail.png" alt=""> <img src="../../../public/images/entry/reviewFail.png" alt="">
</p> </p>
<p>非常抱歉,您的资料审核不通过!</p> <p>非常抱歉,您的资料审核不通过!</p>
<p>不通过原因:企业主体信息与事实不符合。请您重新提交认证资料!</p> <p>不通过原因:{{ msg }}请您重新提交认证资料!</p>
<p>如果您有其它的问题,可以拔打我们的服务电话与我们联系</p> <p>如果您有其它的问题,可以拔打我们的服务电话与我们联系</p>
<p>服务电话:010-31415689</p> <p>服务电话:4000-188-199</p>
<p style="padding-top: 40px;"><el-button type="primary" @click="reSubmit">重新提交</el-button></p>
</div> </div>
</div> </div>
</el-card>
</div> </div>
</template> </template>
...@@ -30,7 +36,20 @@ ...@@ -30,7 +36,20 @@
export default { export default {
name: "ReviewFail", name: "ReviewFail",
data() { data() {
return {} return {
msg: '具体原因,请联系售后'
}
},
mounted() {
if(this.$route.params.msg) {
this.msg = this.$route.params.msg;
}
},
methods: {
// 重新提交审核
reSubmit() {
this.$router.push({path: '/process'});
}
} }
} }
</script> </script>
...@@ -48,14 +67,21 @@ ...@@ -48,14 +67,21 @@
margin: 8px 0 8px 20px; margin: 8px 0 8px 20px;
} }
} }
.box-card {
width: 80%;
margin: 30px auto 30px;
height: calc(100% - 120px);
}
.steps { .steps {
height: 70px; height: 70px;
width: 60%; width: 60%;
margin: 40px auto 0; margin: 20px auto 20px;
} }
.el-step >>> .el-step__title { .el-step >>> .el-step__title {
font-size: 16px; font-size: 16px;
line-height: 58px; line-height: 18px;
padding-top: 20px;
color: #333; color: #333;
} }
//#13ce66 //#13ce66
...@@ -93,7 +119,7 @@ ...@@ -93,7 +119,7 @@
width: 100%; width: 100%;
height: calc(66% - 120px); height: calc(66% - 120px);
display:table; display:table;
.fuck { .main-con {
display:table-cell; display:table-cell;
vertical-align:middle; vertical-align:middle;
p { p {
......
...@@ -3,13 +3,14 @@ ...@@ -3,13 +3,14 @@
<div class="logo-bg"> <div class="logo-bg">
<img src="../../../public/images/logo_white_sm.png" alt=""> <img src="../../../public/images/logo_white_sm.png" alt="">
</div> </div>
<div class="steps"> <el-card class="box-card">
<div slot="header" class="clearfix steps">
<el-steps :active="4" align-center finish-status="success"> <el-steps :active="4" align-center finish-status="success">
<el-step title="仔细阅读并同意入驻协议" ></el-step> <el-step title="签署入驻协议" ></el-step>
<el-step title="填写主体信息" ></el-step> <el-step title="填写主体信息" ></el-step>
<el-step title="填写品牌信息" ></el-step> <el-step title="填写品牌信息" ></el-step>
<el-step title="填写店铺信息" ></el-step> <el-step title="填写店铺信息" ></el-step>
<el-step title="提交审核,等待结果" ></el-step> <el-step title="提交入驻审核" ></el-step>
</el-steps> </el-steps>
</div> </div>
<div class="main"> <div class="main">
...@@ -21,9 +22,10 @@ ...@@ -21,9 +22,10 @@
<p>感谢您使用云仓!</p> <p>感谢您使用云仓!</p>
<p>您的资料已经提交审核,审核周期为1-3个工作日,请您耐心等待审核结果。</p> <p>您的资料已经提交审核,审核周期为1-3个工作日,请您耐心等待审核结果。</p>
<p>如果您有其它的问题,可以拔打我们的服务电话与我们联系!</p> <p>如果您有其它的问题,可以拔打我们的服务电话与我们联系!</p>
<p>服务电话:010-31415689</p> <p>服务电话:4000-188-199</p>
</div> </div>
</div> </div>
</el-card>
</div> </div>
</template> </template>
...@@ -49,6 +51,11 @@ ...@@ -49,6 +51,11 @@
margin: 8px 0 8px 20px; margin: 8px 0 8px 20px;
} }
} }
.box-card {
width: 80%;
margin: 30px auto 30px;
height: calc(100% - 120px);
}
.steps { .steps {
height: 70px; height: 70px;
width: 60%; width: 60%;
...@@ -56,7 +63,8 @@ ...@@ -56,7 +63,8 @@
} }
.steps >>> .el-step__title { .steps >>> .el-step__title {
font-size: 16px; font-size: 16px;
line-height: 58px; line-height: 18px;
padding-top: 20px;
color: #333; color: #333;
} }
......
...@@ -92,6 +92,7 @@ const lineChartData = { ...@@ -92,6 +92,7 @@ const lineChartData = {
newVisitis: { newVisitis: {
expectedData: [100, 120, 161, 134, 105, 160, 161], expectedData: [100, 120, 161, 134, 105, 160, 161],
actualData: [120, 82, 91, 154, 162, 140, 145] actualData: [120, 82, 91, 154, 162, 140, 145]
// 退出登录
}, },
// messages: { // messages: {
// expectedData: [200, 192, 120, 144, 160, 130, 140], // expectedData: [200, 192, 120, 144, 160, 130, 140],
......
<template> <template>
</template> </template>
<script> <script>
import { Notification } from 'element-ui';
import { getShopInf } from '@/api/module/entry';
import request from '@/utils/request'
export default { export default {
name: "Login2", name: "Login2",
created() { created() {
this.gotosso() this.gotosso();
}, },
methods: { methods: {
getCookie() {
var de = this.$store.commit("SET_TOKEN")
},
gotosso() { gotosso() {
var ticket = this.$route.query.ticket var ticket = this.$route.query.ticket;
this.$store.dispatch('Login', {"ticket": ticket}).then((res) => { this.$store.dispatch('Login', {"ticket": ticket}).then((res) => {
if (res.token != "") { if (res.token != "") {
this.$router.push({path: '/'}) // 获取客户是否有审核信息
getShopInf().then(res => {
if(res.code === 1) {
switch(res.data.state) {
case 0:
switch(res.data.status){
case(0):
this.$router.push({path: '/process'});
break;
case(1):
this.$router.push({path: '/fillBrandInf'});
break;
case(2):
this.$router.push({path: '/fillShopInf',});
break;
}
break;
case 1: // 审核成功,要跳转到首页
this.$router.push({path: '/'});
break;
case 2: // 审核中
this.$router.push({path: '/reviewing'});
break;
case 3: // 审核失败
let msg = res.data.Apply.content;
this.$router.push({
name: 'reviewFail',
params: { msg: msg }
});
break;
}
}else {
if(res && res.msg) {
Notification.error({
title: '提示:',
message: res.msg
})
}else {
Notification.error({
title: '提示:',
message: '刷新浏览器后,再次登录,若仍不行,请联系我们!'
})
}
}
});
} else { } else {
this.$store.dispatch('Statistic') this.$store.dispatch('Statistic')
this.$store.dispatch('FedLogOut') this.$store.dispatch('FedLogOut')
var ssa = window.location.host var ssa = window.location.host;
setTimeout(function () { setTimeout(function () {
if (ssa == 'localhost:1024') { if (ssa == 'localhost:1024') {
window.location.href = 'http://sso.jxhh.com/logout?redirect=http://' + ssa + '/login' window.location.href = 'http://sso.jxhh.com/logout?redirect=http://' + ssa + '/login'
......
...@@ -3,19 +3,18 @@ ...@@ -3,19 +3,18 @@
<el-card class="box-card"> <el-card class="box-card">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>结算流水</span> <span>结算流水</span>
</div> </div>
<el-table v-loading="loading" :height="tableHeight" :data="assetList"> <el-table v-loading="loading" :height="tableHeight" :data="assetList">
<el-table-column label="ID" align="center" prop="Id" /> <el-table-column label="ID" align="center" prop="Id"/>
<el-table-column label="流水订单号" align="center" prop="BalanceSn" /> <el-table-column label="流水订单号" align="center" prop="BalanceSn"/>
<el-table-column label="变动金额" align="center" :formatter="formatMoney" prop="ChangeMoney" /> <el-table-column label="变动金额" align="center" :formatter="formatMoney" prop="ChangeMoney"/>
<el-table-column label="变动类型" align="center" :formatter="formatType" prop="ChangeType" /> <el-table-column label="变动类型" align="center" :formatter="formatType" prop="ChangeType"/>
<el-table-column label="时间" align="center" :formatter="formatTime" prop="AddTime" /> <el-table-column label="时间" align="center" :formatter="formatTime" prop="AddTime"/>
<el-table-column label="描述" align="center" prop="Des" /> <el-table-column label="描述" align="center" prop="Des"/>
</el-table> </el-table>
<pagination v-show="total>0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" <pagination v-show="total>0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
@pagination="getList" /> @pagination="getList"/>
</el-card> </el-card>
</div> </div>
</template> </template>
<script> <script>
...@@ -29,13 +28,12 @@ ...@@ -29,13 +28,12 @@
import { import {
dateFormat dateFormat
} from '@/utils' } from '@/utils'
export default { export default {
name: "asset", name: "asset",
data() { data() {
return { return {
fullHeight: '', fullHeight: '',
tableHeight:null, tableHeight: null,
loading: true, // 遮罩层 loading: true, // 遮罩层
ids: [], // 选中数组 ids: [], // 选中数组
total: 0, // 总条数 total: 0, // 总条数
...@@ -47,28 +45,24 @@ ...@@ -47,28 +45,24 @@
pageSize: 10, pageSize: 10,
sellerId: 0 sellerId: 0
}, },
form: {}, // 表单参数 form: {}, // 表单参数
rules: {} // 表单校验 rules: {} // 表单校验
}; };
}, },
created() { created() {
this.queryParams.sellerId = this.$store.state.user.sellerid this.queryParams.sellerId = this.$store.state.user.sellerid
this.getList(); this.getList();
this.$nextTick(()=>{ this.$nextTick(() => {
this.fullHeight = document.getElementsByClassName('box-card')[0].clientHeight this.fullHeight = document.getElementsByClassName('box-card')[0].clientHeight
}) })
}, },
watch:{ watch: {
fullHeight(val,oldval){ fullHeight(val, oldval) {
console.log(val) console.log(val)
this.tableHeight = val - 130 this.tableHeight = val - 130
} }
}, },
methods: { methods: {
//
formatType(row) { formatType(row) {
var types = row.ChangeType var types = row.ChangeType
var optDes = '' var optDes = ''
...@@ -81,8 +75,8 @@ ...@@ -81,8 +75,8 @@
}, },
//格式化时间 //格式化时间
formatTime(row) { formatTime(row) {
var Time = row.AddTime let Time = row.AddTime;
var newtime = "" let newtime = "";
if (Time > 0) { if (Time > 0) {
newtime = dateFormat(Time * 1000, "Y-m-d H:i:s"); newtime = dateFormat(Time * 1000, "Y-m-d H:i:s");
} }
...@@ -90,18 +84,17 @@ ...@@ -90,18 +84,17 @@
}, },
//格式化价格 //格式化价格
formatMoney(row) { formatMoney(row) {
var nm = 0 var nm = 0;
var money = row.ChangeMoney var money = row.ChangeMoney;
if (money > 0) { if (money > 0) {
nm = money / 1000 nm = money / 1000
} }
return nm return nm
}, },
/** 查询商户余额变动日志列表 */ /** 查询商户余额变动日志列表 */
getList() { getList() {
this.loading = true; this.loading = true;
console.log("this.queryParams", this.queryParams) //console.log("重点注意shopid", this.queryParams)
listAsset(this.queryParams).then(response => { listAsset(this.queryParams).then(response => {
this.assetList = response.data.list; this.assetList = response.data.list;
this.total = response.data.total; this.total = response.data.total;
...@@ -117,18 +110,20 @@ ...@@ -117,18 +110,20 @@
}; };
</script> </script>
<style scoped> <style scoped>
.app-container{ .app-container {
height:100%; height: 100%;
} }
.box-card{ .box-card {
height:100% ; height: 100%;
} }
.box-card /deep/ .el-card__body{
height:100%; .box-card /deep/ .el-card__body {
height: 100%;
overflow: hidden; overflow: hidden;
} }
.el-table{
height:calc(100% - 120px); .el-table {
height: calc(100% - 120px);
} }
</style> </style>
<template> <template>
<div class="app-container"> <div class="app-container">
<el-card class="box-card"> <el-card class="box-card">
...@@ -9,25 +9,29 @@ ...@@ -9,25 +9,29 @@
<el-col :span="24" class="card-box"> <el-col :span="24" class="card-box">
<!-- <span>商户信息</span> --> <!-- <span>商户信息</span> -->
<el-form ref="form" :model="form" :rules="rules" label-width="120px" class="ruleFormshop"> <el-form ref="form" :model="form" :rules="rules" label-width="120px" class="ruleFormshop">
<el-form-item label="当前余额" > <el-form-item label="当前余额">
{{sellerinfo.Balance}} {{sellerinfo.Balance}}
</el-form-item> </el-form-item>
<el-form-item label="提现中的金额" > <el-form-item label="提现中的金额">
{{sellerinfo.FrozenMoney}} {{sellerinfo.FrozenMoney}}
</el-form-item> </el-form-item>
<el-form-item label="可提现金额" > <el-form-item label="可提现金额">
{{sellerinfo.Balance}} {{drawableCash}}
<!--drawableCash-->
</el-form-item> </el-form-item>
<el-form-item label="手续费" > <el-form-item label="手续费">
当前手续费为{{newFee}} 当前手续费为{{newFee}}
</el-form-item> </el-form-item>
<el-form-item label="银行卡" > <el-form-item label="银行卡">
<el-select v-model="form.bankId" placeholder="选择到账银行卡" style="width:260px;"> <el-select v-model="form.bankId" placeholder="选择到账银行卡" style="width:260px;">
<el-option v-for="item in banklist" :key="item.Id" :label="item.BankAccountName?item.BankAccountName:item.ZfbAccountName" :value="item.Id?item.Id:item.Id"></el-option> <el-option v-for="item in banklist" :key="item.Id"
:label="item.BankAccountName?item.BankAccountName:item.ZfbAccountName"
:value="item.Id?item.Id:item.Id"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="提现金额" prop="money"> <el-form-item label="提现金额" prop="money">
<el-input v-model="form.money" @blur="onInputBlur($event)" placeholder="提现金额大于等于100" style="width:260px;"/> <el-input v-model="form.money" @blur="onInputBlur($event)" placeholder="提现金额大于等于100"
style="width:260px;"/>
</el-form-item> </el-form-item>
<el-form-item label="短信验证码" prop="verifycode"> <el-form-item label="短信验证码" prop="verifycode">
<el-input v-model="form.verifycode" placeholder="验证码" style="width:260px;"> <el-input v-model="form.verifycode" placeholder="验证码" style="width:260px;">
...@@ -40,7 +44,7 @@ ...@@ -40,7 +44,7 @@
<el-form-item label="支付密码" prop="pwd"> <el-form-item label="支付密码" prop="pwd">
<el-input v-model="form.pwd" type="password" placeholder="请输入提现密码" style="width:260px;"/> <el-input v-model="form.pwd" type="password" placeholder="请输入提现密码" style="width:260px;"/>
</el-form-item> </el-form-item>
<el-form-item label="" > <el-form-item label="">
<el-button type="primary" @click="submitForm">确 定</el-button> <el-button type="primary" @click="submitForm">确 定</el-button>
<el-button @click="cancel">取 消</el-button> <el-button @click="cancel">取 消</el-button>
</el-form-item> </el-form-item>
...@@ -53,8 +57,9 @@ ...@@ -53,8 +57,9 @@
</div> </div>
</template> </template>
<script> <script>
import { getSellerInfo,getBankcardList,addWithdrawlog,getCheckCode } from '@/api/module/withdrawlog' import {getSellerInfo, getBankcardList, addWithdrawlog, getCheckCode} from '@/api/module/withdrawlog'
export default {
export default {
name: "withdrawlog", name: "withdrawlog",
data() { data() {
return { return {
...@@ -63,37 +68,59 @@ export default { ...@@ -63,37 +68,59 @@ export default {
count: '', count: '',
timer: null, timer: null,
//提现金额 //提现金额
money:0, money: 0,
// 遮罩层 // 遮罩层
loading: true, loading: true,
// 选中数组 // 选中数组
sellerId: 0, sellerId: 0,
sellerinfo:[], sellerinfo: {},
banklist: [], banklist: [],
//手续费 //手续费
newFee:0, newFee: 0,
// 可提现金额
drawableCash: 0,
// 弹出层标题 // 弹出层标题
title: "", title: "",
// 是否显示弹出层 // 是否显示弹出层
open: true, open: true,
// 表单参数 // 表单参数
form: {}, form: {},
// 表单校验 // 表单校验
rules: { rules: {
status: [ status: [
{ required: true, message: "提现状态 0申请提现 1提现成功 2提现失败不能为空", trigger: "blur" } {required: true, message: "提现状态 0申请提现 1提现成功 2提现失败不能为空", trigger: "blur"}
], ],
} }
}; };
}, },
created() { created() {
this.sellerId = this.$store.state.user.sellerid this.sellerId = this.$store.state.user.sellerid;
this.getList(); this.getList();
}, },
methods: { methods: {
//-----------
// 自定义高精度浮点数运算
add(arg1, arg2) {
var r1, r2, m;
try {
//取小数位长度
r1 = arg1.toString().split(".")[1].length;
r2 = arg2.toString().split(".")[1].length;
} catch (e) {
r1 = 0;
r2 = 0;
}
m = Math.pow(10, Math.max(r1, r2)); //计算因子
return (arg1 * m + arg2 * m) / m;
},
minus(arg1, arg2) {
return this.add(arg1, -arg2);
},
//-----------
//倒计时 //倒计时
getCode(){ getCode() {
const TIME_COUNT = 60; const TIME_COUNT = 60;
if (!this.timer) { if (!this.timer) {
this.count = TIME_COUNT; this.count = TIME_COUNT;
...@@ -108,24 +135,24 @@ export default { ...@@ -108,24 +135,24 @@ export default {
} }
}, 1000) }, 1000)
} }
} , },
getCheckCode(){ getCheckCode() {
if(this.money<=0){ if (this.money <= 0) {
this.msgError("填写提现金额"); this.msgError("填写提现金额");
return false return false
}else if(this.money< 100){ } else if (this.money < 100) {
this.msgError("提现金额必须大于等于100"); this.msgError("提现金额必须大于等于100");
return false return false
} }
// 倒计时 // 倒计时
this.getCode() this.getCode()
//发送验证码 //发送验证码
if(this.sellerId<=0){ if (this.sellerId <= 0) {
this.msgError("商户信息错误"); this.msgError("商户信息错误");
return false return false
} }
getCheckCode({sellerId:this.sellerId}).then(response => { getCheckCode({sellerId: this.sellerId}).then(response => {
if(response.code==0){ if (response.code == 0) {
this.msgSuccess(response.msg); this.msgSuccess(response.msg);
} }
//console.log(response.data) //console.log(response.data)
...@@ -133,34 +160,39 @@ export default { ...@@ -133,34 +160,39 @@ export default {
}, },
onInputBlur(event){ onInputBlur(event) {
var fee = 0.06 let fee = 0.006;
this.money = event.target.value this.money = event.target.value;
var yue = this.sellerinfo.Balance let numRegExp = /^[0-9]+(.[0-9]{2})?$/;
if (this.money > yue){ let yue = this.drawableCash;
this.$message.error('提现金额不足'); if (this.money > yue) {
this.$message({type: 'warning',message:'提现金额不足'});
return false return false
} }
this.newFee = (this.money * fee).toFixed(2) if(!numRegExp.test(this.money)) {
this.$message({ type: 'warning',message: '提现金额只能输入大于 0 的数字'});
return;
}else {
this.newFee = (this.money * fee + 1).toFixed(2);
}
}, },
//获取商户的信息 //获取商户的信息
getSellerInfo(){ getSellerInfo() {
const sellerid = this.sellerId const sellerid = this.sellerId
// if(sellerid <= 0){ // if(sellerid <= 0){
// this.$message.error('请重新登录或刷新页面'); // this.$message.error('请重新登录或刷新页面');
// } // }
getSellerInfo({sellerId:sellerid}).then(response => { getSellerInfo({sellerId: sellerid}).then(response => {
this.sellerinfo = response.data this.sellerinfo = response.data
console.log("this.sellerinfo",this.sellerinfo) console.log("this.sellerinfo", this.sellerinfo)
this.sellerinfo.Balance = response.data.Balance/100 this.sellerinfo.Balance = response.data.Balance / 100
this.sellerinfo.FrozenMoney = response.data.FrozenMoney/100 this.sellerinfo.FrozenMoney = response.data.FrozenMoney / 100
this.drawableCash = this.minus(this.sellerinfo.Balance, this.sellerinfo.FrozenMoney);
}); });
}, },
//获取商户的银行卡列表 //获取商户的银行卡列表
getBankcardList(){ getBankcardList() {
getBankcardList({sellerId:this.sellerId}).then(response => { getBankcardList({sellerId: this.sellerId}).then(response => {
this.banklist = response.data.list this.banklist = response.data.list
}); });
}, },
...@@ -177,9 +209,7 @@ export default { ...@@ -177,9 +209,7 @@ export default {
}, },
// 表单重置 // 表单重置
reset() { reset() {
this.form = { this.form = {};
};
this.resetForm("form"); this.resetForm("form");
}, },
...@@ -189,10 +219,10 @@ export default { ...@@ -189,10 +219,10 @@ export default {
if (valid) { if (valid) {
this.form.sellerId = this.sellerId this.form.sellerId = this.sellerId
addWithdrawlog(this.form).then(response => { addWithdrawlog(this.form).then(response => {
if(response.code == 0){ if (response.code == 0) {
this.msgSuccess(response.msg); this.msgSuccess(response.msg);
this.getList(); this.getList();
}else{ } else {
this.msgError(response.msg); this.msgError(response.msg);
} }
...@@ -202,25 +232,28 @@ export default { ...@@ -202,25 +232,28 @@ export default {
}); });
}, },
} //methods结束 } //methods结束
}; };
</script> </script>
<style scoped> <style scoped>
.app-container{ .app-container {
height:100%; height: 100%;
} }
.box-card{ .box-card {
height:100% ; height: 100%;
} }
.box-card /deep/ .el-card__body{
height:100%; .box-card /deep/ .el-card__body {
height: 100%;
overflow: hidden; overflow: hidden;
} }
.el-table{
height:calc(100% - 120px); .el-table {
height: calc(100% - 120px);
} }
.ruleFormshop{
width:500px; .ruleFormshop {
margin:0 0 0 180px; width: 500px;
margin: 0 0 0 180px;
} }
</style> </style>
<template> <template>
<div class="app-container"> <div class="app-container">
<el-card class="box-card"> <el-card class="box-card">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>提现记录</span> <span>提现记录</span>
</div> </div>
<el-table v-loading="loading" :data="withdrawlogList" :height="tableHeight" > <el-table v-loading="loading" :data="withdrawlogList" :height="tableHeight">
<el-table-column label="提现流水单号" align="center" prop="ReflectSn" /> <el-table-column label="提现流水单号" align="center" prop="ReflectSn"/>
<el-table-column label="提现账号" align="center" prop="BankName" /> <el-table-column label="提现账号" align="center" prop="BankName"/>
<el-table-column label="提现金额" :formatter="formatFee" align="center" prop="ReflectMoney"/>
<el-table-column label="提现金额" :formatter="formatFee" align="center" prop="ReflectMoney" /> <el-table-column label="提现状态" align="center" :formatter="formatType" prop="Status"/>
<el-table-column label="提现状态" align="center" :formatter="formatType" prop="Status" /> <el-table-column label="提现审核说明" align="center" prop="Des"/>
<el-table-column label="提现审核说明" align="center" prop="Des" /> <el-table-column label="提现时间" :formatter="formatTime" align="center" prop="AddTime"/>
<el-table-column label="提现时间" :formatter="formatTime" align="center" prop="AddTime" /> <el-table-column label="手续费" :formatter="formatFee" align="center" prop="Fee"/>
<el-table-column label="手续费" :formatter="formatFee" align="center" prop="Fee" /> <el-table-column label="实际到账金额" :formatter="formatFee" align="center" prop="AfterReflectMoney"/>
<el-table-column label="实际到账金额" :formatter="formatFee" align="center" prop="AfterReflectMoney" />
</el-table> </el-table>
<pagination <pagination
v-show="total>0" v-show="total>0"
...@@ -29,14 +25,22 @@ ...@@ -29,14 +25,22 @@
</div> </div>
</template> </template>
<script> <script>
import { listWithdrawlog, getWithdrawlog, delWithdrawlog, addWithdrawlog, updateWithdrawlog } from '@/api/module/withdrawlog' import {
import {dateFormat} from '@/utils' listWithdrawlog,
export default { getWithdrawlog,
delWithdrawlog,
addWithdrawlog,
updateWithdrawlog
} from '@/api/module/withdrawlog'
import {dateFormat} from '@/utils'
export default {
name: "withdrawlog", name: "withdrawlog",
data() { data() {
return { return {
sellerId: 0,
fullHeight: '', fullHeight: '',
tableHeight:null, tableHeight: null,
// 遮罩层 // 遮罩层
loading: true, loading: true,
// 选中数组 // 选中数组
...@@ -59,69 +63,75 @@ export default { ...@@ -59,69 +63,75 @@ export default {
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
sellerId: 52828, sellerId: 0,
}, },
// 表单参数 // 表单参数
form: {}, form: {},
// 表单校验 // 表单校验
rules: { rules: {
status: [ status: [
{ required: true, message: "提现状态 0申请提现 1提现成功 2提现失败不能为空", trigger: "blur" } {required: true, message: "提现状态 0申请提现 1提现成功 2提现失败不能为空", trigger: "blur"}
], ],
} }
}; };
}, },
created() { created() {
this.sellerId = this.$store.state.user.sellerid;
this.getList(); this.getList();
this.$nextTick(()=>{ this.$nextTick(() => {
this.fullHeight = document.getElementsByClassName('box-card')[0].clientHeight this.fullHeight = document.getElementsByClassName('box-card')[0].clientHeight
}) })
}, },
watch:{ watch: {
fullHeight(val,oldval){ fullHeight(val, oldval) {
console.log(val) this.tableHeight = val - 130;
this.tableHeight = val - 130
} }
}, },
methods: { methods: {
//格式化状态 //格式化状态
formatType(row){ formatType(row) {
var types = row.Status var types = row.Status
var optDes = '' var optDes = ''
if(types==1){ if (types == 1) {
optDes = "提现成功" optDes = "提现成功"
}else if(types==2){ } else if (types == 2) {
optDes = "提现失败" optDes = "提现失败"
}else if(types==0){ } else if (types == 0) {
optDes = "提现申请中" optDes = "提现申请中"
} }
return optDes return optDes
}, },
//格式化价格 //格式化价格
formatFee(row,s,value,i){ formatFee(row, s, value, i) {
var nm =0 var nm = 0
var money = value var money = value
if (money>0){ if (money > 0) {
nm = money/100 nm = money / 100
} }
return nm return nm
}, },
//格式化时间 //格式化时间
formatTime(row){ formatTime(row) {
var Time = row.AddTime var Time = row.AddTime
var newtime = "" var newtime = ""
if(Time>0){ if (Time > 0) {
newtime = dateFormat(Time*1000,"Y-m-d H:i:s"); newtime = dateFormat(Time * 1000, "Y-m-d H:i:s");
} }
return newtime return newtime
}, },
/** 查询商户提现列表 */ /** 查询商户提现列表 */
getList() { getList() {
this.loading = true; this.loading = true;
this.queryParams.sellerId = this.sellerId;
//console.log(127, this.queryParams);
listWithdrawlog(this.queryParams).then(response => { listWithdrawlog(this.queryParams).then(response => {
if (response) {
this.withdrawlogList = response.data.list; this.withdrawlogList = response.data.list;
this.total = response.data.total; this.total = response.data.total;
} else {
this.$message({message: '数据出错啦!', type: 'error'});
}
this.loading = false; this.loading = false;
}); });
}, },
...@@ -136,7 +146,7 @@ export default { ...@@ -136,7 +146,7 @@ export default {
id: null, id: null,
reflect_sn: null, reflect_sn: null,
reflect_money: null, reflect_money: null,
status: 0 , status: 0,
des: null, des: null,
seller_bank_id: null, seller_bank_id: null,
add_time: null, add_time: null,
...@@ -148,21 +158,23 @@ export default { ...@@ -148,21 +158,23 @@ export default {
}, },
} //methods结束 } //methods结束
}; };
</script> </script>
<style scoped> <style scoped>
.app-container{ .app-container {
height:100%; height: 100%;
} }
.box-card{ .box-card {
height:100%; height: 100%;
} }
.box-card /deep/ .el-card__body{
height:100%; .box-card /deep/ .el-card__body {
height: 100%;
overflow: hidden; overflow: hidden;
} }
.el-table{
height:calc(100% - 120px); .el-table {
height: calc(100% - 120px);
} }
</style> </style>
...@@ -391,3 +391,10 @@ export default { ...@@ -391,3 +391,10 @@ export default {
} }
}; };
</script> </script>
<style lang="scss" type="text/stylus" scoped>
.app-container {
height: 100%;
overflow-x: hidden;
overflow-y: scroll;
}
</style>
...@@ -23,8 +23,8 @@ ...@@ -23,8 +23,8 @@
</el-form-item> </el-form-item>
<el-form-item label="计费方式"> <el-form-item label="计费方式">
<el-radio-group v-model="goodsDate.ChargeType"> <el-radio-group v-model="goodsDate.ChargeType">
<el-radio :label="1"></el-radio> <el-radio :label="1"></el-radio>
<el-radio :label="2">个数</el-radio> <el-radio :label="2">数量</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="配送区域"> <el-form-item label="配送区域">
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
</el-col> </el-col>
</el-row> </el-row>
<el-button type="primary" @click="handleinfomationclick('ruleForm')">下一步</el-button> <!-- <el-button type="primary" @click="handleinfomationclick('ruleForm')">下一步</el-button>-->
<el-button >重置</el-button> <el-button >重置</el-button>
</div> </div>
</template> </template>
......
...@@ -241,7 +241,7 @@ ...@@ -241,7 +241,7 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-button type="primary" @click="handleinfomationclick('ruleForm')">下一步</el-button> <!-- <el-button type="primary" @click="handleinfomationclick('ruleForm')">下一步</el-button>-->
<el-button >重置</el-button> <el-button >重置</el-button>
</div> </div>
</div> </div>
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<el-tab-pane label="商品信息"> <el-tab-pane label="商品信息">
<Goodsinfomation :infomationdatas='infomationdata' @infomationclick='infomationclick' /> <Goodsinfomation :infomationdatas='infomationdata' @infomationclick='infomationclick' />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="商品图片" > <el-tab-pane label="商品图片">
<Goodsimg :imgdata='imgdate' @imgclicks='imgclick' /> <Goodsimg :imgdata='imgdate' @imgclicks='imgclick' />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="商品规格"> <el-tab-pane label="商品规格">
...@@ -171,11 +171,6 @@ export default { ...@@ -171,11 +171,6 @@ export default {
}); });
}, },
} }
} }
</script> </script>
...@@ -210,7 +205,8 @@ ul,li{ ...@@ -210,7 +205,8 @@ ul,li{
} }
.box-card /deep/ .el-card__body{ .box-card /deep/ .el-card__body{
height:100%; height:100%;
overflow: hidden; overflow-x: hidden;
overflow-y: scroll;
} }
.el-tabs{ .el-tabs{
height:calc(100% - 35px); height:calc(100% - 35px);
......
...@@ -272,6 +272,14 @@ export default { ...@@ -272,6 +272,14 @@ export default {
height:100%; height:100%;
} }
/deep/ .el-dialog {
height: 100%;
}
/deep/.el-dialog__body {
height: 80%;
overflow-y: scroll ;
}
.box-card{ .box-card{
height:100% ; height:100% ;
} }
......
差异被折叠。
差异被折叠。
差异被折叠。
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论