样式修改
This commit is contained in:
@@ -31,7 +31,7 @@ const UserApi = {
|
|||||||
// 设置密码
|
// 设置密码
|
||||||
setPassword: (params) => http.post(`${URL_CONFIG}company/changePasswordWithToken`, params),
|
setPassword: (params) => http.post(`${URL_CONFIG}company/changePasswordWithToken`, params),
|
||||||
// 修改密码
|
// 修改密码
|
||||||
updatePassword: (params) => http.post(`${URL_CONFIG}company/verificationChangePassword`, params),
|
updatePassword: (params) => http.post(`${URL_CONFIG}company/changePassword`, params),
|
||||||
// 图片验证码
|
// 图片验证码
|
||||||
sendImage: (params) => http.get(`${URL_CONFIG}sys/randomImage/${params.time}`, params),
|
sendImage: (params) => http.get(`${URL_CONFIG}sys/randomImage/${params.time}`, params),
|
||||||
// 确认签到
|
// 确认签到
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import MeetingApi from '../js/http/meetingApi'
|
import MeetingApi from '../js/http/meetingApi'
|
||||||
|
import { baseUrl } from '../../assets/js/http/api'
|
||||||
/**
|
/**
|
||||||
* 预览文件的方法
|
* 预览文件的方法
|
||||||
* @param fileId 文件id
|
* @param fileId 文件id
|
||||||
@@ -6,13 +7,10 @@ import MeetingApi from '../js/http/meetingApi'
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// 文件下载的地址 后期上线需要修改地址
|
// 文件下载的地址 后期上线需要修改地址
|
||||||
const downFileUrl = `http://localhost:3000/jero-boot/sys/common/download/`
|
const downFileUrl = `${baseUrl}/jero-boot/sys/common/download/`
|
||||||
|
|
||||||
// 预览
|
// 预览
|
||||||
export function previewFile(fileId,fileName) {
|
export function previewFile(fileId,fileName) {
|
||||||
|
|
||||||
// 目前没有在真机调试上试过 不知道要不要改前缀
|
|
||||||
// console.log(that.data.pdfFilePath.replace("wxfile", 'http'));
|
|
||||||
// 文件下载的地址
|
// 文件下载的地址
|
||||||
const url = downFileUrl + fileId
|
const url = downFileUrl + fileId
|
||||||
// 文件类型 目前是通过文件名称去截取
|
// 文件类型 目前是通过文件名称去截取
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
<view>
|
<view>
|
||||||
<text>关联项目</text>
|
<text>关联项目</text>
|
||||||
<view class="ass-project">
|
<view class="ass-project">
|
||||||
<text wx:for="{{form.listProject}}" data-file="{{item}}" wx:key="item">{{item.chargeProject}}</text>
|
<text wx:for="{{form.listProject}}" data-file="{{item}}" wx:key="item">{{item.chargeProject}}撒打算打sadsaasdsadas算阿江河湖海三打算</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -32,10 +32,15 @@ page{
|
|||||||
.basic-info view:last-child{
|
.basic-info view:last-child{
|
||||||
border-bottom: 0;
|
border-bottom: 0;
|
||||||
}
|
}
|
||||||
|
.basic-info view text:nth-child(1){
|
||||||
|
flex-shrink: 0;
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
.email-info text:nth-child(1){
|
.email-info text:nth-child(1){
|
||||||
color: #333;
|
color: #333;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: 25px;
|
line-height: 25px;
|
||||||
|
flex: 1;
|
||||||
}
|
}
|
||||||
.email-info{
|
.email-info{
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
@@ -44,6 +49,7 @@ page{
|
|||||||
color: #069F99;
|
color: #069F99;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
display: block;
|
display: block;
|
||||||
|
width: 70px;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
@@ -55,9 +61,17 @@ page{
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
align-items: flex-end;
|
align-items: flex-end;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
.ass-project text{
|
.ass-project text{
|
||||||
|
width: 100%;
|
||||||
|
display: block;
|
||||||
|
overflow: hidden;
|
||||||
|
text-align: right;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
color: #069F99;
|
color: #069F99;
|
||||||
display: block;
|
display: block;
|
||||||
line-height: 25px;
|
line-height: 25px;
|
||||||
|
margin: 0 !important;
|
||||||
}
|
}
|
||||||
@@ -87,6 +87,10 @@ Page({
|
|||||||
},
|
},
|
||||||
// 微信登录
|
// 微信登录
|
||||||
wxLogin(){
|
wxLogin(){
|
||||||
|
wx.showToast({
|
||||||
|
title: '登录中...',
|
||||||
|
icon: 'loading'
|
||||||
|
})
|
||||||
const that = this
|
const that = this
|
||||||
wxBind((res)=>{
|
wxBind((res)=>{
|
||||||
let params = {
|
let params = {
|
||||||
@@ -144,11 +148,8 @@ Page({
|
|||||||
key: 'X-Access-Token',
|
key: 'X-Access-Token',
|
||||||
data: res.result.token
|
data: res.result.token
|
||||||
})
|
})
|
||||||
// 如果绑定过微信就不再进行绑定
|
// 绑定微信
|
||||||
if(!res.result.userInfo.openId){
|
this.wxBindPhone()
|
||||||
// 绑定微信
|
|
||||||
this.wxBindPhone()
|
|
||||||
}
|
|
||||||
// 跳转首页
|
// 跳转首页
|
||||||
wx.switchTab({
|
wx.switchTab({
|
||||||
url: '../home/home',
|
url: '../home/home',
|
||||||
|
|||||||
@@ -108,11 +108,8 @@ Page({
|
|||||||
if(this.data.flag){
|
if(this.data.flag){
|
||||||
UserApi.passWordLogin(params).then(res => {
|
UserApi.passWordLogin(params).then(res => {
|
||||||
if(res.success){
|
if(res.success){
|
||||||
// 如果绑定过微信就不再进行绑定
|
// 绑定微信
|
||||||
if(!res.result.userInfo.openId){
|
this.wxBindPhone()
|
||||||
// 绑定微信
|
|
||||||
this.wxBindPhone()
|
|
||||||
}
|
|
||||||
// 存token和userInfo
|
// 存token和userInfo
|
||||||
wx.setStorage({
|
wx.setStorage({
|
||||||
key: 'X-Access-Token',
|
key: 'X-Access-Token',
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ Page({
|
|||||||
data: that.data.password
|
data: that.data.password
|
||||||
})
|
})
|
||||||
// 绑定微信
|
// 绑定微信
|
||||||
this.wxBind()
|
this.wxBindPhone()
|
||||||
wx.switchTab({
|
wx.switchTab({
|
||||||
url: '../home/home',
|
url: '../home/home',
|
||||||
})
|
})
|
||||||
@@ -100,10 +100,9 @@ Page({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 绑定微信
|
// 绑定微信
|
||||||
wxBind(){
|
wxBindPhone(){
|
||||||
const that = this
|
const that = this
|
||||||
wxBind((res)=>{
|
wxBind((res)=>{
|
||||||
// 微信和该账号绑定
|
|
||||||
let params = {
|
let params = {
|
||||||
openId: res.data.openid,
|
openId: res.data.openid,
|
||||||
rsaPublicKey: that.data.rsaPublicKey
|
rsaPublicKey: that.data.rsaPublicKey
|
||||||
|
|||||||
@@ -152,8 +152,12 @@ Page({
|
|||||||
if(res.success){
|
if(res.success){
|
||||||
wx.showToast({
|
wx.showToast({
|
||||||
title: res.result,
|
title: res.result,
|
||||||
|
icon: 'none',
|
||||||
|
duration: 2000
|
||||||
})
|
})
|
||||||
wx.navigateBack()
|
setTimeout(() => {
|
||||||
|
wx.navigateBack()
|
||||||
|
}, 2000);
|
||||||
}
|
}
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
wx.hideToast()
|
wx.hideToast()
|
||||||
|
|||||||
Reference in New Issue
Block a user