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

修改

parent 4ae576d7
......@@ -9,12 +9,16 @@ const baseUrl = '/api'
// todo: url
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 h5Url = 'http://depository.fhxmcy.com' // 正式h5线上地址
const wxLogin = '/api/worker/login' // 微信登录获取token、登录状态
window.localStorage.setItem('wxLogin', wxLogin)
const curScope = 'scopes=snsapi_base&type=1'
export default {
// url地址
......
......@@ -159,6 +159,7 @@
.item-title {
// min-width: 1.5rem;
color: #000000;
white-space: nowrap;
}
.item-desc {
......
......@@ -110,7 +110,15 @@
}
.ma-item {
// 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{
margin-bottom: 0.2rem;
......@@ -145,16 +153,25 @@
.blank {
height: 1rem;
}
.van-popup {
.cancel_cont {
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;
}
// .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 {
color: #000000;
font-size: 0.36rem;
......@@ -236,3 +253,40 @@
line-height: 0.78rem;
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'
import selfApi from '@/api/apiList'
Vue.use(VueRouter)
const routes = [
{
const routes = [{
path: '/',
name: 'home',
meta: {
......@@ -15,9 +13,9 @@ const routes = [
keepAlive: true
},
component: Home
},
// 登录
{
},
// 登录
{
path: '/login',
name: 'login',
meta: {
......@@ -25,8 +23,8 @@ const routes = [
hideBack: true
},
component: () => import('@/views/login/login.vue')
},
{
},
{
path: '/mine',
name: 'mine',
meta: {
......@@ -34,8 +32,8 @@ const routes = [
hideBack: true
},
component: () => import('../views/tabbar/mine.vue')
},
{
},
{
path: '/admin_home',
name: 'admin_home',
meta: {
......@@ -43,8 +41,8 @@ const routes = [
hideBack: true
},
component: () => import('../views/tabbar/admin_home.vue')
},
{
},
{
path: '/modifyPhone',
name: 'mesmodifyPhonesage',
meta: {
......@@ -52,9 +50,9 @@ const routes = [
hideBack: true
},
component: () => import('../views/tabbar/modifyPhone.vue')
},
// 个人中心
{
},
// 个人中心
{
path: '/charge',
name: 'charge',
meta: {
......@@ -62,8 +60,8 @@ const routes = [
hideBack: true
},
component: () => import('@/views/my/charge.vue')
},
{
},
{
path: '/lookEvaluate',
name: 'lookEvaluate',
meta: {
......@@ -71,14 +69,14 @@ const routes = [
hideBack: true
},
component: () => import('@/views/my/lookEvaluate.vue')
}
}
]
const router = new VueRouter({
mode: 'history',
base: process.env.BASE_URL,
routes,
scrollBehavior (to, from, savePosition) {
scrollBehavior(to, from, savePosition) {
if (savePosition) {
return savePosition
} else {
......@@ -107,6 +105,8 @@ router.beforeEach((to, from, next) => {
role = to.query.role
window.localStorage.setItem('role', role)
}
console.log('router里的', window.localStorage.getItem('role'));
// console.log(token)
// console.log(status)
window.localStorage.setItem('token', token)
......@@ -114,6 +114,14 @@ router.beforeEach((to, from, next) => {
}
if (token && status === '200') {
console.log('ok-------1', 200)
if (role == 2) {
window.localStorage.setItem('role', '')
setTimeout(() => {
next({
path: '/admin_home'
})
}, 50)
}
next()
} else if (token && status === '100') {
console.log('ok-------2', 100)
......
......@@ -82,7 +82,18 @@ export default {
}
this.$http.post(this.$myApi.BINDLOGIN, curParams)
.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(() => {})
},
......
......@@ -211,8 +211,11 @@ export default {
changeInput(e,index){
this.hc_number = e.target.value
console.log('商品数量',this.hc_number)
this.getMonery()
this.totalCount()
if( this.addList[index].mc){
this.getMonery()
}
},
getMonery(){
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