更换手机号,修改密码,新老手机号验证 #3

Merged
luochao merged 1 commits from lc into master 2 years ago
  1. 2
      api/oli-user.js
  2. 2
      packageSecurity/setPassword/setPassword.vue
  3. 12
      pages/index/index.vue

@ -1,5 +1,5 @@
import request from '@/utils/request' import request from '@/utils/request'
const service_name ='oil-user' const service_name ='xkhl-user'
const group_name ='oilCustomerChannelRelation' const group_name ='oilCustomerChannelRelation'
const change_phone ='sysCustomerInfo' const change_phone ='sysCustomerInfo'
export default{ export default{

@ -53,6 +53,8 @@
frozen: false, // frozen: false, //
auth: {}, auth: {},
verifyCodeToken:'', verifyCodeToken:'',
pwd:"",
authpwd:"",
loginUser: uni.getStorageSync('loginUser') loginUser: uni.getStorageSync('loginUser')
} }
}, },

@ -1,7 +1,7 @@
<template> <template>
<view class="page-content " :class="(PageCur=='home'||PageCur=='scan')?'my-bg':''"> <view class="page-content " :class="(PageCur=='home'||PageCur=='scan')?'my-bg':''">
<!-- <uni-nav-bar left-icon="back" left-text="返回" right-text="菜单" title="导航栏组件"></uni-nav-bar> --> <!-- <uni-nav-bar left-icon="back" left-text="返回" right-text="菜单" title="导航栏组件"></uni-nav-bar> -->
<home ref='homecheck' v-if="PageCur=='home'||PageCur=='scan'" :user-account="userAccount" @changMenus='changMenus' :site="userAccount" :menusList = 'menusList' :checkUser = 'checkUser'></home> <home ref='homecheck' v-if="PageCur==='home'||PageCur==='scan'" :user-account="userAccount" @changMenus='changMenus' :site="userAccount" :menusList = 'menusList' :checkUser = 'checkUser'></home>
<setup v-if="PageCur=='setup'"></setup> <setup v-if="PageCur=='setup'"></setup>
<view class="bottom-view"> <view class="bottom-view">
<view class="padding-top radius shadow bottom-bar-fixed"> <view class="padding-top radius shadow bottom-bar-fixed">
@ -134,23 +134,23 @@
this.menusList =data this.menusList =data
}, },
longiCheck(){ longiCheck(){
let userInfo = uni.getStorageSync('loginUser'), let userInfo = uni.getStorageSync('loginUser')
_that =this const _that = this
//console.log(userInfo) //console.log(userInfo)
oliUserApi.getByPhone(userInfo.userPhone).then((res)=>{ oliUserApi.getByPhone(userInfo.userPhone).then((res)=>{
//console.log('') //console.log('')
if(res.code == 20000){ if(res.code == 20000){
_that.checkList = 'show' _that.oliList = res.data
_that.oliList = res.data _that.checkList = 'show'
_that.changeChannel.username = _that.loginUser.userPhone _that.changeChannel.username = _that.loginUser.userPhone
_that.changeChannel.unionId = uni.getStorageSync('unionId') _that.changeChannel.unionId = uni.getStorageSync('unionId')
this.$refs.homecheck.oliList = res.data
}else{ }else{
uni.showToast({ uni.showToast({
title:'请求失败,请稍后再试', title:'请求失败,请稍后再试',
icon:'none' icon:'none'
}) })
} }
}) })
}, },
Splicing(list){ Splicing(list){

Loading…
Cancel
Save