更新
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view>
|
||||
<view >
|
||||
<uni-popup @change="change" ref="popup" type="bottom" background-color="#fff">
|
||||
<view style="height:35vh; display: flex;flex-direction: column;">
|
||||
<view style="height:35vh; display: flex;flex-direction: column;padding-top: 40rpx;">
|
||||
<view style="display: flex;">
|
||||
<uni-easyinput @input="iconClick" @confirm="confirmFn" style="width: 90%; margin: 0 auto;"
|
||||
prefixIcon="search" v-model="nameOrPhone" placeholder="请输入内容" />
|
||||
|
||||
@@ -61,7 +61,8 @@
|
||||
currentPage: 1,
|
||||
pageSize: 10,
|
||||
sorted: {
|
||||
createTime: 'desc'
|
||||
// createTime: 'desc'
|
||||
balance:'asc'
|
||||
},
|
||||
params: {
|
||||
accountName: ''
|
||||
@@ -95,7 +96,7 @@
|
||||
// },
|
||||
methods: {
|
||||
chargeChange(item) {
|
||||
this.paramter.params.businessLeader = item.id
|
||||
this.paramter.params.operateUser = item.id
|
||||
this.paramter.params.name = item.userName
|
||||
this.seachFn()
|
||||
},
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
阅读并同意 <text style="color: #2A67FE;">《用户隐私政策》</text> 和 <text
|
||||
style="color: #2A67FE;">《星油能源注册服务协议》</text>
|
||||
</view>
|
||||
<button @tap="sumit" style="margin-top:26rpx; " class="form_body_butten">一键登录</button>
|
||||
<button @tap="sumit" style="margin-top:26rpx; " class="form_body_butten">登录</button>
|
||||
</view>
|
||||
</view>
|
||||
<uni-popup ref="popup" type="center">
|
||||
|
||||
@@ -13,8 +13,11 @@
|
||||
<view class="xian" style="flex: 1;"></view>
|
||||
</view>
|
||||
<view style="text-align: center;margin-top: 32rpx;">
|
||||
<button class="wxlogin" open-type="getPhoneNumber" @getphonenumber="decryptPhoneNumber">
|
||||
<image class="wx" style="" src="@/static/wxlogo.png"></image>
|
||||
<!-- class="wxlogin" -->
|
||||
<button type="primary" plain="true" size="mini" open-type="getPhoneNumber"
|
||||
@getphonenumber="decryptPhoneNumber">
|
||||
手机号快捷登录
|
||||
<!-- <image class="wx" style="" src="@/static/wxlogo.png"></image> -->
|
||||
</button>
|
||||
</view>
|
||||
</view>
|
||||
@@ -50,7 +53,7 @@
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
type:0,
|
||||
type: 0,
|
||||
sessionKey: '',
|
||||
ishow: {
|
||||
state: 0
|
||||
@@ -66,9 +69,9 @@
|
||||
that.ishow.state = e.state
|
||||
that.phone = e.phone
|
||||
})
|
||||
if(e.type){
|
||||
if (e.type) {
|
||||
this.type = JSON.parse(e.type)
|
||||
console.log(this.type,e.type,'*-*-')
|
||||
console.log(this.type, e.type, '*-*-')
|
||||
}
|
||||
this.loginFn()
|
||||
|
||||
@@ -112,7 +115,7 @@
|
||||
complete: (err) => {
|
||||
setTimeout(() => {
|
||||
uni.redirectTo({
|
||||
url:'../index/newindex'
|
||||
url: '../index/newindex'
|
||||
})
|
||||
}, 1000);
|
||||
// console.log(err)
|
||||
@@ -122,8 +125,8 @@
|
||||
},
|
||||
loginFn() {
|
||||
uni.clearStorageSync()
|
||||
if(this.type==1){
|
||||
uni.setStorageSync('logintype',this.type)
|
||||
if (this.type == 1) {
|
||||
uni.setStorageSync('logintype', this.type)
|
||||
}
|
||||
uni.login({
|
||||
provider: 'weixin',
|
||||
@@ -135,7 +138,7 @@
|
||||
code: code
|
||||
}).then(res => {
|
||||
if (res.code === 20000) {
|
||||
console.log(res.data,'--------------')
|
||||
console.log(res.data, '--------------')
|
||||
uni.setStorageSync('openid', res.data.openId)
|
||||
uni.setStorageSync('unionid', res.data.unionId)
|
||||
this.sessionKey = res.data.sessionKey
|
||||
@@ -150,8 +153,7 @@
|
||||
console.log('res', res.code)
|
||||
}
|
||||
|
||||
}).catch(err => {
|
||||
})
|
||||
}).catch(err => {})
|
||||
|
||||
},
|
||||
fail: err => {},
|
||||
|
||||
Reference in New Issue
Block a user