| | |
| | | 'Content-Type': 'application/json; charset=UTF-8' |
| | | } |
| | | }) |
| | | console.log($http.interceptors) |
| | | // 添加请求拦截器 |
| | | $http.interceptors.request.use(config => { |
| | | if(typeof config.data ==='undefined'){ |
| | |
| | | |
| | | |
| | | |
| | | // 获取地区列表 |
| | | // 获取地区列表/sib/public/cmccAreaList |
| | | // getArea() {获取所有省市区列表 |
| | | // let data = { |
| | | // apploading:1 |
| | | // }; |
| | | // return $http.post('/public/areaList',data); |
| | | // }, |
| | | getArea() { |
| | | let data = { |
| | | apploading:1 |
| | | }; |
| | | return $http.post('/public/areaList',data); |
| | | return $http.post('/public/cmccAreaList',data); |
| | | }, |
| | | |
| | | // 获取机构拥有的地区列表 |
| | |
| | | userAddStoreManager(data){ |
| | | return $http.post('/user/addStoreManager',data) |
| | | },//资料补充 |
| | | |
| | | |
| | | // ===========宁夏移动接入调整借口=============== |
| | | // 查询业务归属省份 |
| | | findProvNo(data){ |
| | | return $http.post('/cmccWxpay/findProvNo',data) |
| | | }, |
| | | //创建订单并且返回二维码/cmccWxpay/nx/create |
| | | nxCreate(data){ |
| | | return $http.post('/cmccWxpay/nx/create',data) |
| | | }, |
| | | // 生成二维码初始化/sib/cmccWxpay/nx/init |
| | | nxInit(data){ |
| | | return $http.post('/cmccWxpay/nx/init',data) |
| | | }, |
| | | // // 授权结果推送/cmccWxpay/nx/pushOrderStatus |
| | | // pushOrderStatus(data){ |
| | | // return $http.post('/cmccWxpay/nx/pushOrderStatus',data) |
| | | // }, |
| | | // // 返销/cmccWxpay/nx/refund |
| | | // nxRefund(data){ |
| | | // return $http.post('/cmccWxpay/nx/refund',data) |
| | | // }, |
| | | // 检验手机号是否可用/cmccWxpay/nx/verifyMblNo |
| | | nxVerifyMblNo(data){ |
| | | return $http.post('/cmccWxpay/nx/verifyMblNo',data) |
| | | }, |
| | | } |
| | | |
| | | export default { |
| | |
| | | mounted(){ |
| | | document.querySelector('.h-list').addEventListener('scroll', this.boxScroll,true) |
| | | //window.addEventListener('scroll', this.boxScroll,true) |
| | | console.log(this.defScroll) |
| | | }, |
| | | methods:{ |
| | | boxScroll(e){ |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | console.log(this.list) |
| | | |
| | | } |
| | | } |
| | | </script> |
| | |
| | | }, |
| | | // 查询参数组合 |
| | | searchParam(){ |
| | | console.log(this.belongArrCode) |
| | | let insTerm = this.periodsArrCode, |
| | | key = this.calcParam.searchKey, |
| | | orderStatus = this.statusArrCode, |
| | |
| | | } |
| | | }, |
| | | setCode(key,code){ |
| | | console.log(key) |
| | | console.log(code) |
| | | this[key] = code; |
| | | }, |
| | | // 重置 |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | console.log(this.list) |
| | | |
| | | } |
| | | } |
| | | </script> |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | console.log(this.list) |
| | | } |
| | | } |
| | | </script> |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | console.log(this.list) |
| | | |
| | | } |
| | | } |
| | | </script> |
| | |
| | | ...mapMutations([SET_APP_LOADING]), |
| | | //删除照片 |
| | | deletPhoto(item, i) { |
| | | //console.log(item); |
| | | this.picList.splice(i, 1); |
| | | }, |
| | | // 处理图片上传的事件(deleteIndex---删除图片的索引) |
| | |
| | | // 将删除索引重置为-1,即当前状态重置为新增,而非删除状态 |
| | | this.deleteIndex = -1; |
| | | } else { |
| | | console.log() |
| | | this.picList.unshift({ |
| | | fileUrl: res.body.fileUrl, |
| | | fileId: res.body.fileId |
| | |
| | | ...mapMutations([SET_APP_LOADING]), |
| | | //删除照片 |
| | | deletPhoto(item, i) { |
| | | //console.log(item); |
| | | this.picList.splice(i, 1); |
| | | }, |
| | | // 处理图片上传的事件(deleteIndex---删除图片的索引) |
| | |
| | | } |
| | | // 图片的路径获取成功后 |
| | | function callback() { |
| | | console.log(img.width,img.height) |
| | | // 压缩后的图片的base64字符串 |
| | | let data = that.compress(img); |
| | | console.log(that.getFile(data)) |
| | | |
| | | // 调取接口上传图片 |
| | | that.submitUploadImg(that.fileType, data, that.deleteIndex); |
| | |
| | | let maxWidthOrHeight = 1024; |
| | | let drawWidth = this.naturalWidth; |
| | | let drawHeight = this.naturalHeight; |
| | | console.log(drawWidth,drawHeight) |
| | | // 以下改变图片大小,控制最大宽度为1024 |
| | | var maxSide = Math.max(drawWidth, drawHeight); |
| | | if (maxSide > maxWidthOrHeight) { |
| | |
| | | ctx.drawImage(this, 0, 0, resultWidth, resultHeight); |
| | | // 返回校正图片 |
| | | next(canvas.toDataURL("image/jpg", 0.8)); |
| | | |
| | | console.log(image.width,image.height) |
| | | }; |
| | | image.src = img; |
| | | |
| | |
| | | Vue.component('f-no-data', FNoData); |
| | | |
| | | arr.forEach(item => { |
| | | // console.log(item); |
| | | // Vue.use(item) |
| | | Vue.component(item.name,item) |
| | | }) |
| | | |
| | |
| | | //判断地址是否带有token参数有就截取存储 |
| | | if(location.href.split('?')[1]){ |
| | | if(location.href.split('?')[1].split('token=')[1]){ |
| | | console.log('qqq:',location.href.split('?')[1]) |
| | | let str = location.href.split('?')[1].split('token=')[1] |
| | | localStorage.hjToken = str |
| | | } |
| | |
| | | }, |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | path:"/main", |
| | | component:()=>import("@/views/main/index.vue"), |
| | |
| | | SET_BCJBCOLORF, |
| | | SET_BCJBCOLORB, |
| | | SET_DEFAULT_BG_COLOR, |
| | | SET_LAST_COLOR |
| | | SET_LAST_COLOR, |
| | | HNORNX_TYPE, |
| | | } from './mutations-types'; |
| | | |
| | | Vue.use(Vuex); |
| | |
| | | }, |
| | | msgCount: {}, |
| | | inviteCode: '', //邀请码 |
| | | |
| | | lastColor:'#423d5d', |
| | | backColor:'#896EDB',//主题色 |
| | | backJbColorF:'#8F6AFF',//主题渐变色 |
| | | backJbColorB:'#9459EC', |
| | | defaultBgColor:'linear-gradient(180deg, #554E7A, #423D5D)', |
| | | lastColor: '#423d5d', |
| | | backColor: '#896EDB',//主题色 |
| | | backJbColorF: '#8F6AFF',//主题渐变色 |
| | | backJbColorB: '#9459EC', |
| | | defaultBgColor: 'linear-gradient(180deg, #554E7A, #423D5D)', |
| | | }, |
| | | getters: { |
| | | orgType(state) { |
| | |
| | | }, |
| | | mutations, |
| | | actions: { |
| | | loginByAppToken({ commit, dispatch }, { vm, appToken, backUrl, next }){ |
| | | loginByAppToken({ commit, dispatch }, { vm, appToken, backUrl, next }) { |
| | | sessionStorage.appToken = appToken; |
| | | sessionStorage.backUrl = backUrl; |
| | | let p = new Promise(function(resolve,reject){ |
| | | Vue.prototype.$api.loginByMerToken({ |
| | | token:appToken |
| | | }).then(res=>{ |
| | | let p = new Promise(function (resolve, reject) { |
| | | Vue.prototype.$api.loginByMerToken({token: appToken }).then(res => { |
| | | sessionStorage.jumpUrl = res.body.clientAccessDomain; |
| | | let lastLoginMgrId = res.body.lastLoginMgrId |
| | | let sessionId = res.body.sessionId |
| | | commit(SET_SESSION_ID, sessionId); |
| | | if(lastLoginMgrId){ |
| | | if (lastLoginMgrId) { |
| | | resolve(lastLoginMgrId) |
| | | }else{ |
| | | } else { |
| | | next('/app/changeMer') |
| | | } |
| | | }) |
| | | }) |
| | | p.then(lastLoginMgrId=>{ |
| | | p.then(lastLoginMgrId => { |
| | | sessionStorage.sid = lastLoginMgrId; |
| | | Vue.prototype.$api.getPowerInfo(lastLoginMgrId).then(res=>{ |
| | | commit(SET_USER_INFO,res.body) |
| | | Vue.prototype.$api.getPowerInfo(lastLoginMgrId).then(res => { |
| | | commit(SET_USER_INFO, res.body) |
| | | next('/app/home') |
| | | }) |
| | | }) |
| | |
| | | Vue.prototype.$api.loginByToken({ |
| | | token: hjToken |
| | | }).then(res => { |
| | | |
| | | sessionStorage.jumpUrl = res.body.clientAccessDomain; |
| | | |
| | | let lastLoginMgrId = res.body.lastLoginMgrId |
| | | let sessionId = res.body.sessionId |
| | | commit(SET_SESSION_ID, sessionId); |
| | | |
| | | |
| | | if (lastLoginMgrId) { |
| | | dispatch('setUserMenu', { vm, lastLoginMgrId, next }) |
| | | } else { |
| | |
| | | } |
| | | }) |
| | | }, |
| | | loginByOpenId({ commit, dispatch },{ vm, loginType, verCode, mblNo,merId,wechatOpenId,userId, next}){ |
| | | loginByOpenId({ commit, dispatch }, { vm, loginType, verCode, mblNo, merId, wechatOpenId, userId, next }) { |
| | | Vue.prototype.$api.loginByOpenId({ |
| | | loginType:loginType, |
| | | verCode:verCode, |
| | | mblNo:mblNo, |
| | | merId:merId, |
| | | wechatOpenId:wechatOpenId, |
| | | userId:userId |
| | | }).then(res=>{ |
| | | if(mblNo){ |
| | | localStorage.sib_wx_mblNo = mblNo |
| | | loginType: loginType, |
| | | verCode: verCode, |
| | | mblNo: mblNo, |
| | | merId: merId, |
| | | wechatOpenId: wechatOpenId, |
| | | userId: userId |
| | | }).then(res => { |
| | | if (mblNo) { |
| | | localStorage.sib_wx_mblNo = mblNo |
| | | } |
| | | sessionStorage.isLoginByOpenId = 1 |
| | | localStorage.sib_wx_openId = wechatOpenId |
| | |
| | | // localStorage.sib_wx_mblNo = res.body.mblNo |
| | | // localStorage.sib_wx_userId = res.body.userId |
| | | commit(SET_SESSION_ID, res.body.sessionId); |
| | | if(res.body.isRegister == 1){ |
| | | if (res.body.isRegister == 1) { |
| | | vm.$router.push({ |
| | | path:'/supplement', |
| | | query:{ |
| | | storeList:JSON.stringify(res.body.storeList) |
| | | path: '/supplement', |
| | | query: { |
| | | storeList: JSON.stringify(res.body.storeList) |
| | | } |
| | | }) |
| | | }else{ |
| | | if(res.body.storeList.length == 1){ |
| | | } else { |
| | | if (res.body.storeList.length == 1) { |
| | | let lastLoginMgrId = res.body.storeList[0].id |
| | | dispatch('setUserMenu', { vm, lastLoginMgrId, next }) |
| | | } |
| | | if(res.body.storeList.length > 1){ |
| | | if (res.body.storeList.length > 1) { |
| | | vm.$router.push({ |
| | | path:'/mine/toggle-identity', |
| | | query:{ |
| | | title:'选择门店', |
| | | storeList:JSON.stringify(res.body.storeList) |
| | | path: '/mine/toggle-identity', |
| | | query: { |
| | | title: '选择门店', |
| | | storeList: JSON.stringify(res.body.storeList) |
| | | } |
| | | }) |
| | | } |
| | |
| | | // } |
| | | // }) |
| | | // } |
| | | }) |
| | | }) |
| | | }, |
| | | login({ commit, dispatch }, { vm, userNo, password, sib_mer_sysPlat, next }) { |
| | | window.localStorage.clear() |
| | | if(sessionStorage.isddxt == 1){ |
| | | if (sessionStorage.isddxt == 1) { |
| | | window.document.title = '叮咚学堂' |
| | | } |
| | | let tmpPassword = md5(userNo + password); |
| | |
| | | }); |
| | | }, |
| | | // 根据不同的权限设置用户拥有的菜单 |
| | | setUserMenu({ commit }, { vm, lastLoginMgrId, next }) { |
| | | async setUserMenu({ commit }, { vm, lastLoginMgrId, next }) { |
| | | |
| | | vm.$api.getPowerInfo(lastLoginMgrId).then(data => { |
| | | let { |
| | | powerInfoVos, |
| | | orgType |
| | | } = data.body; |
| | | |
| | | let { powerInfoVos, orgType } = data.body; |
| | | let inviteCode = data.body.inviteCode; |
| | | let footernav = [] |
| | | let userPage = [] |
| | | let path = '' |
| | | commit(SET_INVITE_CODE, inviteCode); |
| | | |
| | | vm.$api.findProvNo().then(res => { |
| | | // 410000 河南 ,640000宁夏 |
| | | commit(HNORNX_TYPE, res.body); |
| | | let nxOrHn = res.body; |
| | | let footerMenu = [ |
| | | { |
| | | powerId: 100001, |
| | | icon: 'iconshuju_h', |
| | | Aicon: 'iconshuju', |
| | | label: '数据', |
| | | path: '/order/wxScore' |
| | | }, |
| | | { |
| | | powerId: 100003, |
| | | icon: 'iconshenpi_h', |
| | | Aicon: 'iconshenpi', |
| | | label: '审批', |
| | | path: '/main/approve' |
| | | }, |
| | | |
| | | let footerMenu = [ |
| | | { |
| | | powerId: 100001, |
| | | icon: 'iconshuju_h', |
| | | Aicon: 'iconshuju', |
| | | label: '数据', |
| | | path: '/order/wxScore' |
| | | }, |
| | | { |
| | | powerId: 100003, |
| | | icon: 'iconshenpi_h', |
| | | Aicon: 'iconshenpi', |
| | | label: '审批', |
| | | path: '/main/approve' |
| | | }, |
| | | { |
| | | powerId: 100006, |
| | | icon: 'icondingdan', |
| | | Aicon: 'icondingdan1', |
| | | label: '办单', |
| | | path:'/main/product' |
| | | }, |
| | | |
| | | { |
| | | powerId: 100006, |
| | | icon: 'icondingdan', |
| | | Aicon: 'icondingdan1', |
| | | label: '办单', |
| | | path: '/main/product' |
| | | }, |
| | | |
| | | ] |
| | | let userMenu = [ |
| | | ] |
| | | let userMenu = [ |
| | | { |
| | | powerId: 100004, |
| | | icon: 'iconshanghuguanli', |
| | |
| | | path: '/mine/channel' |
| | | } |
| | | ] |
| | | if(!window.localStorage.hjToken && sessionStorage.isLoginByOpenId != 1){ |
| | | if (!window.localStorage.hjToken && sessionStorage.isLoginByOpenId != 1) { |
| | | userMenu.push({ |
| | | powerId: 100005, |
| | | icon: 'iconzhanghaoguanli', |
| | |
| | | path: '/mine/account' |
| | | }) |
| | | } |
| | | |
| | | let footernav = [] |
| | | let userPage = [] |
| | | let path = '' |
| | | |
| | | powerInfoVos.map(item => { |
| | | footerMenu.map(child => { |
| | | if (item.powerId === child.powerId) { |
| | | if (child.powerId === 100001 || child.powerId === 100006) { |
| | | footernav.unshift(child); |
| | | } else { |
| | | footernav.push(child); |
| | | powerInfoVos.map(item => { |
| | | footerMenu.map(child => { |
| | | if (item.powerId === child.powerId) { |
| | | if (child.powerId === 100001 || child.powerId === 100006) { |
| | | footernav.unshift(child); |
| | | } else { |
| | | footernav.push(child); |
| | | } |
| | | } |
| | | }); |
| | | userMenu.map(child => { |
| | | if (item.powerId === child.powerId) { |
| | | userPage.push(child); |
| | | } |
| | | }); |
| | | }); |
| | | footernav.push({ |
| | | powerId: 200000, |
| | | icon: 'iconguanli_h', |
| | | Aicon: 'iconguanli', |
| | | label: '我的', |
| | | path: '/main/mine' |
| | | }) |
| | | // 代理角色一定有商户管理、商户注册的菜单 |
| | | if (orgType === 1 || orgType === 2) { |
| | | userPage.push({ |
| | | icon: 'iconshanghuguanli', |
| | | label: '商户管理', |
| | | path: '/mine/mer-manager' |
| | | }); |
| | | userPage.push({ |
| | | icon: 'iconshanghuzhuce', |
| | | label: '商户注册', |
| | | path: '/user/register' |
| | | }); |
| | | } |
| | | commit(SET_FOOTER_NAV, footernav); |
| | | commit(SET_USER_PAGE, userPage); |
| | | commit(SET_USER_INFO, data.body); |
| | | sessionStorage.sid = lastLoginMgrId; |
| | | // vm.$setItem('sid', mgrId); |
| | | if (orgType === 4) { |
| | | if (sessionStorage.isLoginByOpenId == 1) { |
| | | path = '/main/mine'; |
| | | } |
| | | }); |
| | | userMenu.map(child => { |
| | | if (item.powerId === child.powerId) { |
| | | userPage.push(child); |
| | | else { |
| | | path ='/main/product' |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | console.log(userPage) |
| | | |
| | | |
| | | |
| | | footernav.push({ |
| | | powerId: 200000, |
| | | icon: 'iconguanli_h', |
| | | Aicon: 'iconguanli', |
| | | label: '我的', |
| | | path: '/main/mine' |
| | | }) |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | // 代理角色一定有商户管理、商户注册的菜单 |
| | | if (orgType === 1 || orgType === 2) { |
| | | |
| | | userPage.push({ |
| | | icon: 'iconshanghuguanli', |
| | | label: '商户管理', |
| | | path: '/mine/mer-manager' |
| | | }); |
| | | userPage.push({ |
| | | icon: 'iconshanghuzhuce', |
| | | label: '商户注册', |
| | | path: '/user/register' |
| | | }); |
| | | } |
| | | |
| | | |
| | | commit(SET_FOOTER_NAV, footernav); |
| | | commit(SET_USER_PAGE, userPage); |
| | | commit(SET_USER_INFO, data.body); |
| | | sessionStorage.sid = lastLoginMgrId; |
| | | // vm.$setItem('sid', mgrId); |
| | | if (orgType === 4) { |
| | | if(sessionStorage.isLoginByOpenId == 1){ |
| | | } else { |
| | | path = '/main/mine'; |
| | | } |
| | | else{ |
| | | path = '/main/product'; |
| | | if (next) { |
| | | next(path) |
| | | } else { |
| | | vm.$router.push(path) |
| | | } |
| | | }); |
| | | |
| | | } else { |
| | | path = '/main/mine'; |
| | | } |
| | | if (next) { |
| | | next(path) |
| | | } else { |
| | | vm.$router.push(path) |
| | | } |
| | | }); |
| | | }, |
| | | // 获取地区列表 |
| | |
| | | }) |
| | | }, |
| | | // 设置主题色 |
| | | setColor({commit},{backColor,backJbColorF,backJbColorB,defaultBgColor, lastColor}){ |
| | | console.log('defaultBgColor:',defaultBgColor) |
| | | commit(SET_BCAKCOLOR,backColor) |
| | | commit(SET_BCJBCOLORF,backJbColorF) |
| | | commit(SET_BCJBCOLORB,backJbColorB) |
| | | commit(SET_DEFAULT_BG_COLOR,defaultBgColor) |
| | | commit(SET_LAST_COLOR,lastColor) |
| | | setColor({ commit }, { backColor, backJbColorF, backJbColorB, defaultBgColor, lastColor }) { |
| | | commit(SET_BCAKCOLOR, backColor) |
| | | commit(SET_BCJBCOLORF, backJbColorF) |
| | | commit(SET_BCJBCOLORB, backJbColorB) |
| | | commit(SET_DEFAULT_BG_COLOR, defaultBgColor) |
| | | commit(SET_LAST_COLOR, lastColor) |
| | | } |
| | | }, |
| | | modules: { |
| | |
| | | // 设置用户的权限页面 |
| | | export const SET_USER_PAGE = "SET_USER_PAGE"; |
| | | export const SET_INVITE_CODE = "SET_INVITE_CODE"; |
| | | |
| | | export const HNORNX_TYPE ='HNORNX_TYPE' |
| | | export const SET_BCAKCOLOR = "SET_BCAKCOLOR"; |
| | | export const SET_BCJBCOLORF = "SET_BCJBCOLORF"; |
| | | export const SET_BCJBCOLORB = "SET_BCJBCOLORB"; |
| | |
| | | SET_BCJBCOLORF, |
| | | SET_BCJBCOLORB, |
| | | SET_DEFAULT_BG_COLOR, |
| | | SET_LAST_COLOR |
| | | SET_LAST_COLOR, |
| | | HNORNX_TYPE |
| | | } from "./mutations-types"; |
| | | |
| | | //使用 ES2015 风格的计算属性命名功能来使用一个常量作为函数名 |
| | |
| | | [SET_INVITE_CODE](state, val) { |
| | | state.inviteCode = val; |
| | | }, |
| | | [HNORNX_TYPE](state, val) { |
| | | state.hnOrnxtype = val; |
| | | }, |
| | | [SET_AREA_LIST](state, val) { |
| | | state.areaList = val; |
| | | }, |
| | |
| | | var log = function(...araguments){ |
| | | if(DEBUG){ |
| | | var arr = Array.prototype.slice.call(araguments) |
| | | console.log.apply(console,arr) |
| | | } |
| | | } |
| | | export default { |
| | |
| | | }, |
| | | //打开通讯录 |
| | | openConect(callback) { |
| | | console.log('js打开通讯录'); |
| | | //for iOS |
| | | setupWebViewJavascriptBridge(function(bridge) { |
| | | bridge.callHandler('kJSOpenConect', function responseCallback( |
| | |
| | | }, |
| | | //获取高德地图定位位置信息 |
| | | getAMMapLoactionMsg(callback) { |
| | | console.log('js获取位置信息'); |
| | | setupWebViewJavascriptBridge(function(bridge) { |
| | | bridge.callHandler( |
| | | 'kJSGetAMMapLoactionInfo', |
| | |
| | | if(this.list[this.navIndex].arr.length >= 10){ |
| | | merId = myArr[myArr.length-1].merId |
| | | } |
| | | console.log(this.finished) |
| | | this.$api.getAuditList({ |
| | | auditStatus:this.navIndex, |
| | | searchKey:this.searchKey, |
| | |
| | | this.loading = false |
| | | this.finished = false |
| | | } |
| | | console.log(this.finished) |
| | | }).catch((err) => { |
| | | |
| | | }); |
| | |
| | | // typeId: "210000", |
| | | // typeName: "支付宝拉新" |
| | | // }) |
| | | console.log(this.productList) |
| | | if (this.productList.length) { |
| | | let prodId = this.productList[0].prodId; |
| | | this.toggleProduct(this.productList[0],0,true) |
| | |
| | | }, |
| | | // 显示时间选择组件 |
| | | openTimeModal(isB) { |
| | | console.log(111) |
| | | this.setPickerValue() |
| | | this.$nextTick(()=>{ |
| | | this.isShoTime = true; |
| | |
| | | }, |
| | | // 获取折线图统计数据 |
| | | getAmtReport(id, lx) { |
| | | // console.log(lx == 'zfblx') |
| | | if(lx == 210000) { |
| | | this.$api.zfbLxWeekReport().then(res => { |
| | | console.log('zfbLxWeekReport') |
| | | this.opt.series[0].data = [] |
| | | this.opt.series[1].data = [] |
| | | this.opt.series[2].data = [] |
| | |
| | | this.$forceUpdate(); |
| | | let myChart = echarts.init(this.$refs.lineChart); |
| | | myChart.setOption(this.opt); |
| | | console.log(this.opt.series[0].data) |
| | | console.log(this.opt.series[1].data) |
| | | console.log(this.opt.series[2].data) |
| | | }) |
| | | } else { |
| | | this.$api.getAmtReport(id).then((res) => { |
| | |
| | | }, |
| | | //切换产品 |
| | | toggleProduct(item, index,isGetChartData) { |
| | | console.log(item) |
| | | this.zfblxLabel = '' |
| | | this.opt.series[0].data = [] |
| | | this.opt.series[1].data = [] |
| | |
| | | } |
| | | if(item.typeId == 210000) { |
| | | this.zfblxLabel = 'zfblx' |
| | | // console.log(this.zfblxLabel) |
| | | } |
| | | this.navIndex = index; |
| | | // return |
| | |
| | | prodId:item.prodId |
| | | } |
| | | } |
| | | // console.log(this.jumpParams) |
| | | this.getAmtReport(item.prodId, item.typeId) |
| | | this.getOrderReport(this.prodId,this.startDay,this.endDay, item.typeId) |
| | | if(this.isAgent && isGetChartData){ |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | mapState, mapGetters, mapActions |
| | | } from 'vuex'; |
| | | import { mapState, mapGetters, mapActions } from 'vuex'; |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | msgListInit() { |
| | | this.$api.noticeList().then(res => { |
| | | this.messageList = res.body.noticeInfos; |
| | | console.log(this.messageList) |
| | | // console.log(this.messageList.some(item => { |
| | | // item.needRead === 1 |
| | | // })) |
| | | }) |
| | | } |
| | | } |
| | |
| | | |
| | | //信用卡分期点击 |
| | | Click_XYK() { |
| | | console.log('信用卡分期点击'); |
| | | |
| | | }, |
| | | |
| | | //花呗分期 |
| | | Click_HBFQ() { |
| | | console.log('花呗分期'); |
| | | }, |
| | | |
| | | |
| | |
| | | }, |
| | | created() { |
| | | this.orgType = this.userinfo.orgType; |
| | | console.log("orgType:"+this.orgType); |
| | | this.form.powerInfoVos = this.userinfo.powerInfoVos; |
| | | if (!this.isAdd) { |
| | | this.init(); |
| | |
| | | }, |
| | | methods: { |
| | | saleOrderLoad(){ |
| | | console.log(6767) |
| | | this.finished = true |
| | | }, |
| | | go(id){ |
| | |
| | | }, |
| | | init(){ |
| | | this.$api.getMgrList().then((res) => { |
| | | console.log(res); |
| | | this.list = res.body ||[]; |
| | | }).catch((err) => { |
| | | |
| | |
| | | }, |
| | | methods: { |
| | | saleOrderLoad(){ |
| | | console.log(343434) |
| | | this.finished = true |
| | | }, |
| | | init(){ |
| | |
| | | methods: { |
| | | ShowArea(){ |
| | | this.isShowArea=true |
| | | console.log(this.form.areaLists) |
| | | }, |
| | | handleHide() { |
| | | this.showConfirm = false; |
| | | }, |
| | | setAreaValue(arr){ |
| | | console.log(arr); |
| | | this.areaLists = arr[0].name +arr[1].name + arr[2].name + ''; |
| | | // this.form.provCode= arr[0].code; |
| | | // this.form.cityCode= arr[1].code; |
| | |
| | | this.isShowArea = false; |
| | | // this.$refs.Area.reset() |
| | | this.$forceUpdate(); |
| | | console.log(this.areaLists) |
| | | }, |
| | | //返回上一级按钮 |
| | | onClickLeft() { |
| | |
| | | merInit() { |
| | | this.$api.merchantDetail({merId: this.merId}).then( |
| | | res => { |
| | | console.log(res.body); |
| | | this.contractGoodsName = res.body.merName; |
| | | this.businesslicenseNo = res.body.licenseNo; |
| | | this.contractUserName = res.body.legalName; |
| | |
| | | } |
| | | }) |
| | | this.merZfbInfos = list |
| | | console.log(this.merZfbInfos) |
| | | let arr = []; |
| | | if(res.body.addr.area) { |
| | | arr.push(res.body.addr.province) |
| | |
| | | date.licenseNo = this.businesslicenseNo; |
| | | date.merId = this.merId; |
| | | date.merZfbInfos = this.merZfbInfos; |
| | | console.log(date) |
| | | this.$api.merchantEdit(date).then(() => { |
| | | // console.log('保存商戶資料') |
| | | this.$router.push('/mine/setting') |
| | | }) |
| | | this.showConfirm = false; |
| | |
| | | }, |
| | | methods:{ |
| | | goNext(){ |
| | | console.log(this.info.merZfbInfos) |
| | | |
| | | sessionStorage.setItem('td-mer-photo', JSON.stringify(this.info.merZfbInfos)) |
| | | this.$router.push({ |
| | | path:'/mine/mer-photo-chose', |
| | |
| | | merZfbInfos = this.info.merZfbInfos, |
| | | area = this.info.addr.area ||''; |
| | | this.Addrs = (province.name || '') + (city.name || '') + (area.name || ''); |
| | | console.log(list) |
| | | }); |
| | | }, |
| | | |
| | |
| | | let list = res.body || []; |
| | | this.parseArea(list) |
| | | this.areaList = calcAreaTwo(this.Area) |
| | | console.log(this.areaList) |
| | | }); |
| | | }, |
| | | merInit(){ |
| | |
| | | // this.list = res.body |
| | | // }) |
| | | this.list = JSON.parse(sessionStorage.getItem('td-mer-photo')) |
| | | console.log(this.list) |
| | | }, |
| | | methods:{ |
| | | // 返回上一页 |
| | |
| | | } |
| | | }, |
| | | created(){ |
| | | console.log(this.orgId) |
| | | console.log(this.orgType) |
| | | this.$api.getAuditType().then((res) => { |
| | | this.placeText = res.body.currAuditTypeName; |
| | | }).catch((err) => { |
| | |
| | | }, |
| | | methods: { |
| | | init(){ |
| | | console.log("merId:"+this.merId); |
| | | this.loading = true |
| | | this.$api.storeStoreList({ |
| | | searchKey:this.value, |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | Confirm, |
| | | Icon, |
| | | Cell |
| | | } from 'vux'; |
| | | import {Confirm,Icon, Cell } from 'vux'; |
| | | export default { |
| | | name: 'facepay_details', |
| | | components: { |
| | |
| | | }); |
| | | }, |
| | | handleJump(productItem) { |
| | | console.log('test', productItem) |
| | | let { |
| | | typeId, |
| | | prodId, |
| | |
| | | this.productList1.push(item) |
| | | } |
| | | }) |
| | | console.log(this.productList1) |
| | | localStorage.setItem('hbcp_sh', JSON.stringify(res.body.prodTypeRespVoList2)) |
| | | }); |
| | | } |
| | |
| | | // return item.bannerContent; |
| | | // } |
| | | // }) |
| | | console.log(res.body) |
| | | this.bannerContent = res.body.bannerContent |
| | | }) |
| | | |
| | |
| | | * @Description: |
| | | --> |
| | | <template> |
| | | <div class="hb-gmzf"> |
| | | <div class="head"> |
| | | <div class="head-left"> |
| | | </div> |
| | | <div class="head-mid"> |
| | | 和微分 |
| | | </div> |
| | | <div class="head-right" v-on:click="qrCodePage()"> |
| | | 授权测试 |
| | | </div> |
| | | </div> |
| | | <div class="tab"> |
| | | <van-tabs v-model="active" animated @click="onClick"> |
| | | <van-tab v-for="(item,index) in contTypeList" :title="item.name" :key="index" > |
| | | <div v-for="(childItem,index) in item.childList" :key="index"> |
| | | <div class="tab-head"> |
| | | <div class="tab-head-icon"> |
| | | </div> |
| | | <div class="tab-head-font"> |
| | | {{childItem.name}} |
| | | </div> |
| | | <div class="tab-head-remain"> |
| | | </div> |
| | | </div> |
| | | <div class="tab-index"> |
| | | <div class="tab-index-row"> |
| | | <div class="tab-index-row-main" v-for="(grandchildItem,index) in childItem.childList" :key="index" v-on:click="productPage(grandchildItem)"> |
| | | <div class="tab-index-row-icon"> |
| | | <img class="order-xrw-create-icon-image" :src="getIndexIcon(grandchildItem)"></img> |
| | | </div> |
| | | <div class="tab-index-row-font"> |
| | | {{grandchildItem.name}} |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="hb-gmzf"> |
| | | <div v-if='hnOrnxtype == 410000'> |
| | | <div class="head"> |
| | | <div class="head-left"></div> |
| | | <div class="head-mid">和微分</div> |
| | | <div class="head-right" v-on:click="qrCodePage()">授权测试</div> |
| | | </div> |
| | | <div class="tab"> |
| | | <van-tabs v-model="active" animated @click="onClick"> |
| | | <van-tab |
| | | v-for="(item, index) in contTypeList" |
| | | :title="item.name" |
| | | :key="index" |
| | | > |
| | | <div v-for="(childItem, index) in item.childList" :key="index"> |
| | | <div class="tab-head"> |
| | | <div class="tab-head-icon"></div> |
| | | <div class="tab-head-font"> |
| | | {{ childItem.name }} |
| | | </div> |
| | | <div class="tab-head-remain"></div> |
| | | </div> |
| | | <div class="tab-index"> |
| | | <div class="tab-index-row"> |
| | | <div |
| | | class="tab-index-row-main" |
| | | v-for="(grandchildItem, index) in childItem.childList" |
| | | :key="index" |
| | | v-on:click="productPage(grandchildItem)" |
| | | > |
| | | <div class="tab-index-row-icon"> |
| | | <img |
| | | class="order-xrw-create-icon-image" |
| | | :src="getIndexIcon(grandchildItem)" |
| | | /> |
| | | </div> |
| | | </van-tab> |
| | | </van-tabs> |
| | | </div> |
| | | <div class="tab-index-row-font"> |
| | | {{ grandchildItem.name }} |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </van-tab> |
| | | </van-tabs> |
| | | </div> |
| | | </div> |
| | | <wxPayScore v-else></wxPayScore> |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import { mapState, mapGetters } from 'vuex'; |
| | | import { async } from 'q'; |
| | | import Vue from 'vue'; |
| | | import { Toast } from 'vant'; |
| | | import { Tab, Tabs } from 'vant'; |
| | | Vue.use(Tab); |
| | | Vue.use(Tabs); |
| | | export default { |
| | | components: { |
| | | }, |
| | | data() { |
| | | return { |
| | | active:'', |
| | | contTypeList:[], |
| | | mblNoTypeList:{}, |
| | | showHwfProd:false |
| | | }; |
| | | }, |
| | | computed:{ |
| | | ...mapState(['userinfo', 'msgCount']), |
| | | ...mapGetters(['orgType']), |
| | | }, |
| | | created () { |
| | | if(this.orgType == 4) { |
| | | this.getProdcuctList(); |
| | | this.init(); |
| | | } |
| | | }, |
| | | methods: { |
| | | getIndexIcon(item){ |
| | | let iconSrc = location.origin + location.pathname +"/static/img/"+item.icon+".png"; |
| | | return iconSrc; |
| | | }, |
| | | init(){ |
| | | this.$api.wxScoreCreInit2().then(res => { |
| | | this.contTypeList = res.body.contTypeList|| {}; |
| | | }, err => err); |
| | | }, |
| | | qrCodePage(){ |
| | | this.$router.push({ |
| | | path: "/wx-test-code", |
| | | query: "", |
| | | }) |
| | | }, |
| | | productPage(item){ |
| | | let queryObj = { |
| | | code:item.code, |
| | | mblNoType:item.mblNoType, |
| | | } |
| | | this.$router.push({ |
| | | path: "/wx-pay-score", |
| | | query: queryObj |
| | | }) |
| | | }, |
| | | getProdcuctList(){ |
| | | this.$api.prodIndexTypeList().then(res => { |
| | | let list = res.body.prodTypeRespVoList3 || []; |
| | | list.forEach(item => { |
| | | if(item.prodId ==30000016 && item.openStatus == 2){ |
| | | this.showHwfProd = true; |
| | | } |
| | | }); |
| | | }); |
| | | }, |
| | | } |
| | | import { mapState, mapGetters } from "vuex"; |
| | | import wxPayScore from './wx-pay-score.vue' |
| | | import Vue from "vue"; |
| | | import { Tab, Tabs } from "vant"; |
| | | Vue.use(Tab); |
| | | Vue.use(Tabs); |
| | | export default { |
| | | components: {wxPayScore}, |
| | | data() { |
| | | return { |
| | | active: "", |
| | | contTypeList: [], |
| | | mblNoTypeList: {}, |
| | | showHwfProd: false, |
| | | }; |
| | | }, |
| | | computed: { |
| | | ...mapState(["userinfo", "msgCount","hnOrnxtype"]), |
| | | ...mapGetters(["orgType"]), |
| | | }, |
| | | created() { |
| | | if (this.orgType == 4) { |
| | | this.getProdcuctList(); |
| | | this.init(); |
| | | } |
| | | }, |
| | | methods: { |
| | | getIndexIcon(item) { |
| | | let iconSrc = |
| | | location.origin + |
| | | location.pathname + |
| | | "/static/img/" + |
| | | item.icon + |
| | | ".png"; |
| | | return iconSrc; |
| | | }, |
| | | init() { |
| | | this.$api.wxScoreCreInit2().then( |
| | | (res) => { |
| | | this.contTypeList = res.body.contTypeList || {}; |
| | | }, |
| | | (err) => err |
| | | ); |
| | | }, |
| | | qrCodePage() { |
| | | this.$router.push({ |
| | | path: "/wx-test-code", |
| | | query: "", |
| | | }); |
| | | }, |
| | | productPage(item) { |
| | | let queryObj = { |
| | | code: item.code, |
| | | mblNoType: item.mblNoType, |
| | | }; |
| | | this.$router.push({ |
| | | path: "/wx-pay-score", |
| | | query: queryObj, |
| | | }); |
| | | }, |
| | | getProdcuctList() { |
| | | this.$api.prodIndexTypeList().then((res) => { |
| | | let list = res.body.prodTypeRespVoList3 || []; |
| | | list.forEach((item) => { |
| | | if (item.prodId == 30000016 && item.openStatus == 2) { |
| | | this.showHwfProd = true; |
| | | } |
| | | }); |
| | | }); |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | | <style lang="less" scoped> |
| | | .head { |
| | | width: 100%; |
| | | height: 40px; |
| | | display: flex; |
| | | line-height: 40px; |
| | | background: #FFFFFF;; |
| | | text-align: center; |
| | | &-left{ |
| | | width: 33.3%; |
| | | height: 40px; |
| | | } |
| | | &-mid{ |
| | | width: 33.3%; |
| | | height: 40px; |
| | | font-size: 18px; |
| | | font-family: PingFang SC; |
| | | font-weight: bold; |
| | | color: #333333; |
| | | } |
| | | &-right{ |
| | | width: 33.4%; |
| | | height: 40px; |
| | | font-size: 14px; |
| | | font-family: PingFang SC; |
| | | color: #333333; |
| | | } |
| | | } |
| | | .head { |
| | | width: 100%; |
| | | height: 40px; |
| | | display: flex; |
| | | line-height: 40px; |
| | | background: #ffffff; |
| | | text-align: center; |
| | | &-left { |
| | | width: 33.3%; |
| | | height: 40px; |
| | | } |
| | | &-mid { |
| | | width: 33.3%; |
| | | height: 40px; |
| | | font-size: 18px; |
| | | font-family: PingFang SC; |
| | | font-weight: bold; |
| | | color: #333333; |
| | | } |
| | | &-right { |
| | | width: 33.4%; |
| | | height: 40px; |
| | | font-size: 14px; |
| | | font-family: PingFang SC; |
| | | color: #333333; |
| | | } |
| | | } |
| | | |
| | | .tab { |
| | | width: 100%; |
| | | .tab { |
| | | width: 100%; |
| | | height: 100%; |
| | | &-head { |
| | | margin: 20px 30px 20px 30px; |
| | | width: 100%; |
| | | height: 24px; |
| | | line-height: 24px; |
| | | &-icon { |
| | | width: 3px; |
| | | margin-top: 3px; |
| | | float: left; |
| | | height: 18px; |
| | | background: #6c68ff; |
| | | } |
| | | &-font { |
| | | width: 20%; |
| | | margin-left: 10px; |
| | | height: 20px; |
| | | float: left; |
| | | font-size: 16px; |
| | | font-family: PingFang SC; |
| | | font-weight: bold; |
| | | color: #333333; |
| | | } |
| | | &-remain { |
| | | width: 70%; |
| | | float: left; |
| | | height: 20px; |
| | | } |
| | | } |
| | | .tab-index { |
| | | margin: 20px; |
| | | height: 110px; |
| | | line-height: 110px; |
| | | background: #ffffff; |
| | | box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.04); |
| | | border-radius: 16px; |
| | | &-row { |
| | | width: 100%; |
| | | height: 100px; |
| | | line-height: 100px; |
| | | margin: 0px 20px 0px 20px; |
| | | &-main { |
| | | width: 22.5%; |
| | | height: 100%; |
| | | &-head{ |
| | | margin: 20px 30px 20px 30px; |
| | | width: 100%; |
| | | height: 24px; |
| | | line-height: 24px; |
| | | &-icon{ |
| | | width: 3px; |
| | | margin-top: 3px; |
| | | float: left; |
| | | height: 18px; |
| | | background: #6C68FF; |
| | | } |
| | | &-font{ |
| | | width: 20%; |
| | | margin-left: 10px; |
| | | height: 20px; |
| | | float: left; |
| | | font-size: 16px; |
| | | font-family: PingFang SC; |
| | | font-weight: bold; |
| | | color: #333333; |
| | | } |
| | | &-remain{ |
| | | width: 70%; |
| | | float: left; |
| | | height: 20px; |
| | | } |
| | | float: left; |
| | | text-align: center; |
| | | } |
| | | &-icon { |
| | | width: 100%; |
| | | height: 30%; |
| | | &-image { |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | .tab-index { |
| | | margin: 20px; |
| | | height: 110px; |
| | | line-height: 110px; |
| | | background: #FFFFFF; |
| | | box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.04); |
| | | border-radius: 16px; |
| | | &-row { |
| | | width:100%; |
| | | height: 100px; |
| | | line-height: 100px; |
| | | margin:0px 20px 0px 20px; |
| | | &-main { |
| | | width:22.5%; |
| | | height: 100%; |
| | | float: left; |
| | | text-align: center; |
| | | } |
| | | &-icon { |
| | | width:100%; |
| | | height: 30%; |
| | | &-image { |
| | | width:100%; |
| | | height:100%; |
| | | } |
| | | } |
| | | &-font { |
| | | width: 100%; |
| | | height: 30%; |
| | | font-size: 10px; |
| | | font-family: PingFang SC; |
| | | color: #333333; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | &-font { |
| | | width: 100%; |
| | | height: 30%; |
| | | font-size: 10px; |
| | | font-family: PingFang SC; |
| | | color: #333333; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | .order-xrw { |
| | | margin:-50px 10px 10px 10px; |
| | | padding: 0 10px 0 10px; |
| | | line-height: 100px; |
| | | background: #FFFFFF; |
| | | box-shadow: 0px 0px 26px 0px rgba(0, 0, 0, 0.04); |
| | | border-radius: 16px; |
| | | &-create { |
| | | width: 100%; |
| | | height: 100px; |
| | | margin:0px 10px 0px 10px; |
| | | &-icon { |
| | | width:20%; |
| | | height: 100%; |
| | | float: left; |
| | | text-align: center; |
| | | &-image { |
| | | width:43px; |
| | | height:43px; |
| | | margin-top:25px; |
| | | } |
| | | } |
| | | &-text { |
| | | width: 70%; |
| | | float: left; |
| | | heght:100%; |
| | | font-size: 18px; |
| | | font-family: PingFang SC; |
| | | color: #333333; |
| | | } |
| | | } |
| | | .order-xrw { |
| | | margin: -50px 10px 10px 10px; |
| | | padding: 0 10px 0 10px; |
| | | line-height: 100px; |
| | | background: #ffffff; |
| | | box-shadow: 0px 0px 26px 0px rgba(0, 0, 0, 0.04); |
| | | border-radius: 16px; |
| | | &-create { |
| | | width: 100%; |
| | | height: 100px; |
| | | margin: 0px 10px 0px 10px; |
| | | &-icon { |
| | | width: 20%; |
| | | height: 100%; |
| | | float: left; |
| | | text-align: center; |
| | | &-image { |
| | | width: 43px; |
| | | height: 43px; |
| | | margin-top: 25px; |
| | | } |
| | | } |
| | | |
| | | .button-maintain { |
| | | width:100%; |
| | | height:100%; |
| | | padding: 0 20px 0 20px; |
| | | box-sizing: inherit; |
| | | .button { |
| | | margin: 50px 0 0 0; |
| | | width:100%; |
| | | height:50px; |
| | | text-align: center; |
| | | line-height: 50px; |
| | | background: linear-gradient(90deg, #1C87FD, #219FFD); |
| | | border-radius: 44px; |
| | | .button-txt { |
| | | margin: 8px 0 0 0; |
| | | font-size: 22px; |
| | | color: #FFFFFF; |
| | | } |
| | | } |
| | | &-text { |
| | | width: 70%; |
| | | float: left; |
| | | heght: 100%; |
| | | font-size: 18px; |
| | | font-family: PingFang SC; |
| | | color: #333333; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .button-maintain { |
| | | width: 100%; |
| | | // height: 100%; |
| | | padding: 0 20px 0 20px; |
| | | box-sizing: inherit; |
| | | .button { |
| | | margin: 50px 0 0 0; |
| | | width: 100%; |
| | | height: 50px; |
| | | text-align: center; |
| | | line-height: 50px; |
| | | background: linear-gradient(90deg, #1c87fd, #219ffd); |
| | | border-radius: 44px; |
| | | .button-txt { |
| | | margin: 8px 0 0 0; |
| | | font-size: 22px; |
| | | color: #ffffff; |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | |
| | | if (this.timer) { |
| | | clearInterval(this.timer); |
| | | } |
| | | QRCode.toDataURL( |
| | | url, |
| | | { |
| | | margin: 1, |
| | | width: 400 |
| | | }, |
| | | (err, url) => { |
| | | QRCode.toDataURL(url,{ margin: 1, width: 400}, (err, url) => { |
| | | this.qrCode = url; |
| | | this.orderSts(); |
| | | } |
| | |
| | | }, |
| | | computed:{ |
| | | ...mapState(['userinfo']), |
| | | |
| | | |
| | | |
| | | }, |
| | | methods: { |
| | | goBackPage() { |
| | |
| | | init() { |
| | | this.$api.storeProdList({ |
| | | }).then(res => { |
| | | // console.log(res.body) |
| | | // this.prodTypeList=[] |
| | | this.mgrIsOpen = res.body.mgrIsOpen; |
| | | this.orgType = res.body.orgType; |
| | |
| | | |
| | | <template> |
| | | <div class="hb-credit-installment h-100-g"> |
| | | <!-- <x-header title="办理分期" :left-options="{backText:''}"></x-header> --> |
| | | <!-- <tab :line-width=1 active-color='#bfa073'> |
| | | <tab-item v-for="(item, index) in tabList" :key="index" :selected="activeTab === index" |
| | | @on-item-click="handleTabChange(index)">{{ item }}</tab-item> |
| | | </tab> --> |
| | | <van-nav-bar |
| | | title="和微分" |
| | | left-text="返回" |
| | | left-arrow |
| | | fixed |
| | | @click-left="onClickLeft" |
| | | style="line-height: 43px;" |
| | | > |
| | |
| | | </van-nav-bar> |
| | | <div class="search"> |
| | | <selector |
| | | title="活动编码" |
| | | :title="hnOrnxtype==410000?'活动编码':'活动名称'" |
| | | placeholder="请选择" |
| | | @on-change="handleContIdChange" |
| | | v-model="contSendCode" |
| | |
| | | type="warning" |
| | | size="small" |
| | | @click="mblVertify" |
| | | >可用查询</van-button |
| | | > |
| | | >可用查询</van-button> |
| | | </van-field> |
| | | </div> |
| | | </group> |
| | |
| | | import QRCode from 'qrcode'; |
| | | import FConfirmSimple from '@/components/old/FConfirmSimple.vue'; |
| | | import Vdialog from '@/components/common/v-dialog.vue'; |
| | | import { mapState, mapActions } from 'vuex'; |
| | | import { mapState } from 'vuex'; |
| | | import { Datetime, XAddress } from 'vux'; |
| | | export default { |
| | | name: 'wx-pay-score', |
| | | components: { |
| | | FConfirmSimple, |
| | | Vdialog, |
| | | components: {FConfirmSimple,Vdialog}, |
| | | computed:{ |
| | | ...mapState(['hnOrnxtype']), |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | isClick:false |
| | | }; |
| | | }, |
| | | computed: {}, |
| | | |
| | | created() { |
| | | this.contType = this.$route.query.code; |
| | | this.mblNoType = this.$route.query.mblNoType; |
| | | this.$api.wxScoreInit2({ type: this.contType }).then( |
| | | (res) => { |
| | | this.form = res.body || {}; |
| | | var arr = res.body.terms; |
| | | }, |
| | | (err) => err |
| | | let apiText =''; |
| | | let sendData ={}; |
| | | if(this.hnOrnxtype == 410000){ |
| | | // 河南移动 |
| | | this.contType = this.$route.query.code; |
| | | this.mblNoType = this.$route.query.mblNoType; |
| | | apiText ='wxScoreInit2'; |
| | | sendData ={type: this.contType} |
| | | }else{ |
| | | // 宁夏移动 |
| | | apiText ='nxInit'; |
| | | sendData= {}; |
| | | } |
| | | this.$api[apiText](sendData).then( |
| | | (res) => { |
| | | console.log(res); |
| | | this.form = res.body || {}; |
| | | // var arr = res.body.terms; |
| | | }, |
| | | (err) => err |
| | | ); |
| | | |
| | | }, |
| | | methods: { |
| | | //顶部tabbar返回按钮 |
| | |
| | | }, |
| | | // 套餐类型 |
| | | handleContIdChange(val) { |
| | | let currentEle = JSON.parse( |
| | | JSON.stringify(this.form.cmccWxpayContList) |
| | | ).find((item) => item.contCode === val); |
| | | let currentEle = JSON.parse( JSON.stringify(this.form.cmccWxpayContList) ).find((item) => item.contCode === val); |
| | | this.contId = currentEle.contId; |
| | | this.contSendCode = currentEle.contCode; |
| | | this.contName = currentEle.contName; |
| | |
| | | v.toast('请输入正确的用户手机号'); |
| | | return false; |
| | | } |
| | | this.$api |
| | | .wxScoreVertify({ |
| | | let httpText = ''; |
| | | if(this.hnOrnxtype == 410000){ |
| | | httpText ='wxScoreVertify'; |
| | | }else{ |
| | | httpText ='nxVerifyMblNo'; |
| | | } |
| | | this.$api[httpText]({ |
| | | cardNo: this.idCardNo, |
| | | contCode: this.contSendCode, |
| | | mblNo: this.mblNo, |
| | | mblNoType: this.mblNoType, |
| | | regionCode: this.regionCode, |
| | | }) |
| | | .then( |
| | | (res) => { |
| | | }).then( (res) => { |
| | | this.isClick =true; |
| | | this.creditId = res.body.creditId; |
| | | this.vertifyStatus = res.body.status; |
| | |
| | | return false; |
| | | } |
| | | } |
| | | // console.log('ces', this.vertifyStatus + '你'); |
| | | if (this.vertifyStatus == 0) { |
| | | v.toast('号码不可用'); |
| | | return false; |
| | | } |
| | | this.$api |
| | | .wxScoreCreate({ |
| | | let httpText = ''; |
| | | if(this.hnOrnxtype == 410000){ |
| | | httpText ='wxScoreCreate'; |
| | | }else{ |
| | | httpText ='nxCreate'; |
| | | } |
| | | this.$api[httpText]({ |
| | | contType: this.contType, |
| | | creditId: this.creditId, |
| | | contId: this.contId, |
| | |
| | | |
| | | .hb-credit-installment { |
| | | background-color: #f5f5f7; |
| | | // padding-top: 54px; |
| | | padding:50px 0; |
| | | min-height: 100%; |
| | | box-sizing: border-box; |
| | | .title { |
| | | padding: 14px 0px 14px 12px; |
| | | font-size: 16px; |
| | |
| | | } |
| | | } |
| | | .btn-box { |
| | | margin-top: 40px; |
| | | margin-bottom: 22px; |
| | | display: flex; |
| | | justify-content: space-around; |
| | |
| | | } |
| | | } |
| | | </style> |
| | | <style lang="less"> |
| | | .van-nav-bar{ |
| | | z-index: 10; |
| | | } |
| | | .weui-select{ |
| | | font-size: 14px; |
| | | } |
| | | </style> |
| | |
| | | }, |
| | | // 获取订单列表 |
| | | init(params = this.filter,isClear) { |
| | | console.log("111"); |
| | | this.loading = true; |
| | | this.$api.wxScoreList(params).then(res => { |
| | | this.filter = {...params}; |
| | |
| | | --> |
| | | <template> |
| | | <div class="hb-detail-box h-100-g"> |
| | | <v-navbar title="订单详情" fixed></v-navbar> |
| | | <v-navbar title="订单详情1" fixed></v-navbar> |
| | | <div class="content"> |
| | | <div class="cell-group"> |
| | | <van-cell :value="form.chanNo" title='渠道编码' readonly></van-cell> |
| | |
| | | <van-cell :value="form.mblNo" title='手机号码' readonly></van-cell> |
| | | <van-cell :value="form.merName" title='商户名称' readonly></van-cell> |
| | | </div> |
| | | |
| | | <!-- <div class="cell-group"> |
| | | <van-cell :value="form.rate + '%'" title='费率' readonly></van-cell> |
| | | </div> --> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | mapState |
| | | } from 'vuex'; |
| | | import Vue from 'vue'; |
| | | import { Notify } from 'vant'; |
| | | |
| | |
| | | this.$tool.toast('返销完成'); |
| | | }, err => err); |
| | | }).catch(() => { |
| | | // on cancel |
| | | |
| | | }); |
| | | // this |
| | | |
| | | }, |
| | | //订单推送 |
| | | sendOrder() { |
| | |
| | | //按下标打钩,并且存储选中项,取消打钩的去掉存储项 |
| | | if(this.areaArr[index].selected == 0){ |
| | | this.areaArr[index].selected = 1 |
| | | console.log(this.info,this.areaArr[index]) |
| | | this.info.tempRules.push(this.areaArr[index]) |
| | | }else{ |
| | | this.areaArr[index].selected = 0 |
| | | let num = this.info.tempRules.findIndex(item=>{ |
| | | return item.code == this.areaArr[index].code |
| | | }) |
| | | console.log('num:',num) |
| | | this.info.tempRules.splice(num,1) |
| | | } |
| | | // 有一个未打钩,取消全选,全部勾选则选中全选 |
| | |
| | | }else{ |
| | | this.allpr = true |
| | | } |
| | | console.log(this.info) |
| | | }, |
| | | // 选择渠道 |
| | | choseChan(index){ |
| | |
| | | let num = this.info.tempRules.findIndex(item => { |
| | | return item.code == this.chanArr[index].code |
| | | }) |
| | | console.log('num:',num) |
| | | this.info.tempRules.splice(num,1) |
| | | } |
| | | // 有一个未打钩,取消全选,全部勾选则选中全选 |
| | |
| | | }else{ |
| | | this.allchan = true |
| | | } |
| | | console.log(this.info) |
| | | console.log('this.chanArr:',this.chanArr) |
| | | }, |
| | | // 详情弹出层 |
| | | showDet(){ |
| | |
| | | }) |
| | | this.info.tempRules = [] |
| | | } |
| | | console.log(this.info) |
| | | }, |
| | | // 模板省份全选 |
| | | getAllpr(){ |
| | |
| | | }) |
| | | this.info.tempRules = [] |
| | | } |
| | | console.log(this.info) |
| | | }, |
| | | // 控制模板选择弹出层 |
| | | nextStep(item,index){ |
| | |
| | | } |
| | | }) |
| | | } |
| | | console.log(this.info) |
| | | }, |
| | | // 打开 模板弹窗 |
| | | openTempModal() { |
| | |
| | | return |
| | | } |
| | | if ((issItem.amt === null || issItem.amt === '') && issItem.status) { |
| | | console.log('000') |
| | | this.$notify(`请输入花呗间联${issItem.term}期商户固定收益!`) |
| | | return |
| | | } |
| | |
| | | let list = res.body || []; |
| | | this.parseArea(list) |
| | | this.areaList = calcAreaTwo(this.Area) |
| | | //console.log(this.areaList) |
| | | }); |
| | | }, |
| | | // 全选 取消 |
| | |
| | | }) |
| | | }, |
| | | saleOrderLoad(){ |
| | | console.log(5656) |
| | | this.finished = true |
| | | }, |
| | | init(){ |
| | |
| | | }, |
| | | }, |
| | | created() { |
| | | console.log(this.$route.query.platNo) |
| | | sessionStorage.clear(); |
| | | if (this.$route.query.sysPlat !== undefined) { |
| | | localStorage.sib_mer_sysPlat = this.$route.query.sysPlat // 1 微信 2支付宝 |
| | |
| | | } |
| | | clearTimeout(this.timer); |
| | | this.urlCode = this.getUrlCode("code"); |
| | | console.log(this.urlCode); |
| | | this.init(); |
| | | }, |
| | | methods: { |
| | |
| | | * **/ |
| | | init() { |
| | | this.openId = localStorage.sib_wx_openId; |
| | | console.log(this.openId) |
| | | this.showContent = false; |
| | | // 模拟数据本地调试 |
| | | // this.openId = "oJbj21YwUatdNaYf3iEPwwGtWuUg"; |
| | |
| | | (!this.openId && !this.urlCode) || |
| | | (typeof this.openId == "undefined" && !this.urlCode) |
| | | ) { |
| | | console.log(111); |
| | | let url = location.host; |
| | | // url = "t.finlean.com"; |
| | | var str = encodeURIComponent(`https://${url}/sib_wx_scorei/#/loginByWx`); |
| | |
| | | <van-field v-model.trim="form.licenseNo" clearable maxlength='20' placeholder="请输入营业执照号" /> |
| | | <van-field v-model.trim="form.legalName" clearable maxlength='12' placeholder="请输入法人姓名" /> |
| | | <van-field v-model.trim="form.legalIdNo" clearable maxlength='18' placeholder="请输入法人身份证号" /> |
| | | <van-field v-model.trim="form.addrText" clearable :readonly="true" right-icon="arrow" |
| | | @click="isShowArea = !isShowArea" placeholder="请选择省市区" /> |
| | | <van-field v-model.trim="form.addrText" clearable :readonly="true" right-icon="arrow" @click="isShowArea = !isShowArea" placeholder="请选择省市区" /> |
| | | <van-field v-model.trim="form.dtlAddr" clearable maxlength='64' placeholder="请输入您的详细地址" /> |
| | | <!-- 扫码进入页面的没有邀请码 --> |
| | | <van-button :color="$store.state.backColor" class="btn" @click="nextStep">下一步</van-button> |
| | |
| | | placeholder="邀请码"> |
| | | </van-cell> --> |
| | | </div> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <!-- 步骤二 --> |
| | |
| | | |
| | | <van-button :color="$store.state.backColor" class="btn" @click="nextStep">{{ saveText }}</van-button> |
| | | </div> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | </div> |
| | | |
| | | <van-popup v-model="ShowAgreen"> |
| | |
| | | message: "请输入正确的联系人邮箱", |
| | | type: "isEmail" |
| | | }, |
| | | ], |
| | | |
| | | |
| | | |
| | | ] |
| | | } |
| | | }, |
| | | computed: { |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | console.log(localStorage.sib_mer_sysPlat == 'undefined') |
| | | if(this.$route.query.orgId){ |
| | | this.form.orgId = this.$route.query.orgId || ''; |
| | | this.form.orgType = this.$route.query.orgType || ''; |
| | |
| | | this.isShowArea = false; |
| | | this.$refs.Area.reset() |
| | | }, |
| | | |
| | | |
| | | //保存 地区选择 |
| | | setAreaValue(arr) { |
| | | this.form.addrText = arr[0].name + '-' + arr[1].name + '-' + arr[2].name; |
| | |
| | | this.isShowArea = false; |
| | | this.$refs.Area.reset() |
| | | }, |
| | | |
| | | |
| | | |
| | | nextStep() { |
| | | |
| | | /** |
| | |
| | | // } |
| | | // } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 第二步 |
| | | * */ |
| | |
| | | sysPlat = 2 |
| | | } |
| | | this.form.sysPlat = sysPlat |
| | | console.log(this.form); |
| | | this.$api.merRegist(this.form).then(res => { |
| | | this.$toast.success(`注册成功,请耐心等待审核!`); |
| | | if(sessionStorage.isddxt == 1){ |
| | |
| | | //代理所属渠道 |
| | | getRegIDAndType() { |
| | | let _this = this; |
| | | console.log('js 调用原生android 方法=====》'); |
| | | window.sessionStorage.removeItem('scene_regInfos'); |
| | | if (window.android && window.android.fetchQrCode) { |
| | | _this.SET_APP_LOADING(true); |
| | |
| | | }, |
| | | function (error) { |
| | | if (error.response) { |
| | | console.log(error.response); |
| | | } |
| | | } |
| | | ); |
| | |
| | | const CopyPlugin = require('copy-webpack-plugin'); |
| | | const vuxLoader = require('vux-loader'); |
| | | let env = process.env.NODE_ENV; |
| | | |
| | | //打包地址 |
| | | let srcUrl = '/sib_wx_scorei/' |
| | | module.exports = { |