Commit 9714b31a authored by 石盼盼's avatar 石盼盼

修改

parent 4ae576d7
...@@ -9,12 +9,16 @@ const baseUrl = '/api' ...@@ -9,12 +9,16 @@ const baseUrl = '/api'
// todo: url // todo: url
const httpUrl = 'https://repairtest.zeruiedu.com' // 测试接口 const httpUrl = 'https://repairtest.zeruiedu.com' // 测试接口
const h5Url = 'http://localhost:8080/' // 测试h5线上地址 const h5Url ='http://localhost:8080/' // 测试h5线上地址
window.localStorage.setItem('httpUrl', httpUrl)
window.localStorage.setItem('h5Url', h5Url)
// const httpUrl = 'https://fenghexm.xueyoubangedu.com' // 正式接口 // const httpUrl = 'https://fenghexm.xueyoubangedu.com' // 正式接口
// const h5Url = 'http://depository.fhxmcy.com' // 正式h5线上地址 // const h5Url = 'http://depository.fhxmcy.com' // 正式h5线上地址
const wxLogin = '/api/worker/login' // 微信登录获取token、登录状态 const wxLogin = '/api/worker/login' // 微信登录获取token、登录状态
window.localStorage.setItem('wxLogin', wxLogin)
const curScope = 'scopes=snsapi_base&type=1' const curScope = 'scopes=snsapi_base&type=1'
export default { export default {
// url地址 // url地址
......
...@@ -159,6 +159,7 @@ ...@@ -159,6 +159,7 @@
.item-title { .item-title {
// min-width: 1.5rem; // min-width: 1.5rem;
color: #000000; color: #000000;
white-space: nowrap;
} }
.item-desc { .item-desc {
......
...@@ -110,7 +110,15 @@ ...@@ -110,7 +110,15 @@
} }
.ma-item { .ma-item {
// margin-top: 0.3rem; // margin-top: 0.3rem;
height: 0.6rem; height: 0.4rem;
margin-top: 0.2rem;
}
.item_line{
width: 6.28rem;
height: 0.01rem;
background: #f1f1f1;
margin-bottom: 0.4rem;
margin-top: 0.4rem;
} }
.bz-title{ .bz-title{
margin-bottom: 0.2rem; margin-bottom: 0.2rem;
...@@ -145,16 +153,25 @@ ...@@ -145,16 +153,25 @@
.blank { .blank {
height: 1rem; height: 1rem;
} }
.van-popup { .cancel_cont {
width: 6.9rem; width: 6.9rem;
max-height: 7rem; max-height: 7rem;
// height: 5.9rem;
background: #fff; background: #fff;
border-radius: 0.12rem; border-radius: 0.12rem;
padding-top: 0.4rem; padding-top: 0.4rem;
padding-bottom: 0.2rem; padding-bottom: 0.2rem;
text-align: center; text-align: center;
} }
// .van-popup {
// width: 6.9rem;
// max-height: 7rem;
// // height: 5.9rem;
// background: #fff;
// border-radius: 0.12rem;
// padding-top: 0.4rem;
// padding-bottom: 0.2rem;
// text-align: center;
// }
.pop_title { .pop_title {
color: #000000; color: #000000;
font-size: 0.36rem; font-size: 0.36rem;
...@@ -236,3 +253,40 @@ ...@@ -236,3 +253,40 @@
line-height: 0.78rem; line-height: 0.78rem;
margin: 1.2rem auto; margin: 1.2rem auto;
} }
// 日期选择样式
.date {
width: 92%;
height: 0.58rem;
margin: 0.36rem auto 0.4rem;
}
.date .start {
width: 3.08rem;
height: 0.58rem;
background: #FFFFFF;
border: 0.02rem solid #0054FF;
border-radius: 0.12rem;
text-align: center;
line-height: 0.58rem;
color: #000000;
font-size: 0.28rem;
}
.date .end {
width: 3.08rem;
height: 0.58rem;
background: #FFFFFF;
border: 0.02rem solid #0054FF;
border-radius: 0.12rem;
text-align: center;
line-height: 0.58rem;
color: #000000;
font-size: 0.28rem;
}
.date .blue {
width: 0.31rem;
height: 0.03rem;
background: #0054FF;
}
\ No newline at end of file
...@@ -4,9 +4,7 @@ import Home from '../views/tabbar/Home.vue' ...@@ -4,9 +4,7 @@ import Home from '../views/tabbar/Home.vue'
import selfApi from '@/api/apiList' import selfApi from '@/api/apiList'
Vue.use(VueRouter) Vue.use(VueRouter)
const routes = [{
const routes = [
{
path: '/', path: '/',
name: 'home', name: 'home',
meta: { meta: {
...@@ -15,9 +13,9 @@ const routes = [ ...@@ -15,9 +13,9 @@ const routes = [
keepAlive: true keepAlive: true
}, },
component: Home component: Home
}, },
// 登录 // 登录
{ {
path: '/login', path: '/login',
name: 'login', name: 'login',
meta: { meta: {
...@@ -25,8 +23,8 @@ const routes = [ ...@@ -25,8 +23,8 @@ const routes = [
hideBack: true hideBack: true
}, },
component: () => import('@/views/login/login.vue') component: () => import('@/views/login/login.vue')
}, },
{ {
path: '/mine', path: '/mine',
name: 'mine', name: 'mine',
meta: { meta: {
...@@ -34,8 +32,8 @@ const routes = [ ...@@ -34,8 +32,8 @@ const routes = [
hideBack: true hideBack: true
}, },
component: () => import('../views/tabbar/mine.vue') component: () => import('../views/tabbar/mine.vue')
}, },
{ {
path: '/admin_home', path: '/admin_home',
name: 'admin_home', name: 'admin_home',
meta: { meta: {
...@@ -43,8 +41,8 @@ const routes = [ ...@@ -43,8 +41,8 @@ const routes = [
hideBack: true hideBack: true
}, },
component: () => import('../views/tabbar/admin_home.vue') component: () => import('../views/tabbar/admin_home.vue')
}, },
{ {
path: '/modifyPhone', path: '/modifyPhone',
name: 'mesmodifyPhonesage', name: 'mesmodifyPhonesage',
meta: { meta: {
...@@ -52,9 +50,9 @@ const routes = [ ...@@ -52,9 +50,9 @@ const routes = [
hideBack: true hideBack: true
}, },
component: () => import('../views/tabbar/modifyPhone.vue') component: () => import('../views/tabbar/modifyPhone.vue')
}, },
// 个人中心 // 个人中心
{ {
path: '/charge', path: '/charge',
name: 'charge', name: 'charge',
meta: { meta: {
...@@ -62,8 +60,8 @@ const routes = [ ...@@ -62,8 +60,8 @@ const routes = [
hideBack: true hideBack: true
}, },
component: () => import('@/views/my/charge.vue') component: () => import('@/views/my/charge.vue')
}, },
{ {
path: '/lookEvaluate', path: '/lookEvaluate',
name: 'lookEvaluate', name: 'lookEvaluate',
meta: { meta: {
...@@ -71,14 +69,14 @@ const routes = [ ...@@ -71,14 +69,14 @@ const routes = [
hideBack: true hideBack: true
}, },
component: () => import('@/views/my/lookEvaluate.vue') component: () => import('@/views/my/lookEvaluate.vue')
} }
] ]
const router = new VueRouter({ const router = new VueRouter({
mode: 'history', mode: 'history',
base: process.env.BASE_URL, base: process.env.BASE_URL,
routes, routes,
scrollBehavior (to, from, savePosition) { scrollBehavior(to, from, savePosition) {
if (savePosition) { if (savePosition) {
return savePosition return savePosition
} else { } else {
...@@ -107,6 +105,8 @@ router.beforeEach((to, from, next) => { ...@@ -107,6 +105,8 @@ router.beforeEach((to, from, next) => {
role = to.query.role role = to.query.role
window.localStorage.setItem('role', role) window.localStorage.setItem('role', role)
} }
console.log('router里的', window.localStorage.getItem('role'));
// console.log(token) // console.log(token)
// console.log(status) // console.log(status)
window.localStorage.setItem('token', token) window.localStorage.setItem('token', token)
...@@ -114,6 +114,14 @@ router.beforeEach((to, from, next) => { ...@@ -114,6 +114,14 @@ router.beforeEach((to, from, next) => {
} }
if (token && status === '200') { if (token && status === '200') {
console.log('ok-------1', 200) console.log('ok-------1', 200)
if (role == 2) {
window.localStorage.setItem('role', '')
setTimeout(() => {
next({
path: '/admin_home'
})
}, 50)
}
next() next()
} else if (token && status === '100') { } else if (token && status === '100') {
console.log('ok-------2', 100) console.log('ok-------2', 100)
......
...@@ -82,7 +82,18 @@ export default { ...@@ -82,7 +82,18 @@ export default {
} }
this.$http.post(this.$myApi.BINDLOGIN, curParams) this.$http.post(this.$myApi.BINDLOGIN, curParams)
.then(res => { .then(res => {
window.document.location = this.$myApi.WINDOWHREF_ASK // url- const httpUrl = window.localStorage.getItem('httpUrl')
console.log('httpUrl',httpUrl)
const h5Url = window.localStorage.getItem('h5Url')
console.log('h5Url',h5Url)
const wxLogin = window.localStorage.getItem('wxLogin')
console.log('wxLogin',wxLogin)
const t = res.role == 3 ? h5Url : `${h5Url}admin_home` // 测试h5线上地址
console.log('的数据傅雷家书蝶恋蜂狂',res,'链接',httpUrl,'h5Url',h5Url, 'role',t)
let url = `${httpUrl}${wxLogin}?callBack=${t}&scopes=snsapi_userinfo&type=1`
console.log('1111111111111111111111111111111链接',url)
window.document.location = url // url-
}) })
.catch(() => {}) .catch(() => {})
}, },
......
...@@ -211,8 +211,11 @@ export default { ...@@ -211,8 +211,11 @@ export default {
changeInput(e,index){ changeInput(e,index){
this.hc_number = e.target.value this.hc_number = e.target.value
console.log('商品数量',this.hc_number) console.log('商品数量',this.hc_number)
this.getMonery()
this.totalCount() this.totalCount()
if( this.addList[index].mc){
this.getMonery()
}
}, },
getMonery(){ getMonery(){
console.log('addlist',this.addList); console.log('addlist',this.addList);
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment