bug修复
This commit is contained in:
parent
9fc851abfc
commit
2128c68570
@ -68,13 +68,15 @@
|
|||||||
.navigationBar {
|
.navigationBar {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: var(--status-bar-height);
|
top: var(--status-bar-height);
|
||||||
height: 90rpx;
|
height: 110rpx;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
z-index: 9;
|
z-index: 9;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding-top: 20rpx;
|
||||||
|
|
||||||
.navigationBarBack {
|
.navigationBarBack {
|
||||||
padding-left: 20rpx;
|
padding-left: 20rpx;
|
||||||
|
@ -22,21 +22,22 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="text-item" style="border-bottom: 1rpx solid #F4F4F4;padding-bottom: 10rpx;">
|
<view class="text-item" style="border-bottom: 1rpx solid #F4F4F4;padding-bottom: 10rpx;">
|
||||||
<image class="dl-icon" src="@/static/index/xing.png" mode="aspectFit"></image>
|
<image class="dl-icon" src="@/static/index/xing.png" mode="aspectFit"></image>
|
||||||
<view class="dl-content">类型:{{item.bloggerTypesText||'无限制'}}</view>
|
<view class="dl-content">类型:{{item.bloggerTypes||'无限制'}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="text-item" style="padding-top: 16rpx;">
|
<view class="text-item" style="padding-top: 16rpx;">
|
||||||
<view class="item-box" style="flex: 1;">
|
<view class="item-box" style="flex: 1;">
|
||||||
<image class="dl-icon2" :src="imageUrl+item.avatar" mode="scaleToFill"></image>
|
<image class="dl-icon2" :src="imageUrl+item.avatar" mode="scaleToFill"></image>
|
||||||
<view class="dl-item-right">{{item.userNickName}}</view>
|
<view class="dl-item-right" style="color: #929292;font-size: 20rpx;">{{item.userNickName}}
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="item-box" style="width: 28%;">
|
<!-- <view class="item-box" style="width: 28%;">
|
||||||
<image class="dl-icon3" src="@/static/index/person.png" mode="aspectFit"></image>
|
<image class="dl-icon3" src="@/static/index/person.png" mode="aspectFit"></image>
|
||||||
<view class="dl-item-right dl-number">{{item.reportNum}}</view>
|
<view class="dl-item-right dl-number">{{item.reportNum}}</view>
|
||||||
</view> -->
|
</view> -->
|
||||||
<view class="item-box" style="width: 35%;">
|
<!-- <view class="item-box" style="width: 35%;">
|
||||||
<image class="dl-icon3" src="@/static/index/eye.png" mode="aspectFit"></image>
|
<image class="dl-icon3" src="@/static/index/eye.png" mode="aspectFit"></image>
|
||||||
<view class="dl-item-right dl-number">{{item.viewNum}}</view>
|
<view class="dl-item-right dl-number">{{item.viewNum}}</view>
|
||||||
</view>
|
</view> -->
|
||||||
<!-- <view class="item-box" style="width: 25%;">
|
<!-- <view class="item-box" style="width: 25%;">
|
||||||
|
|
||||||
<view>
|
<view>
|
||||||
@ -70,21 +71,23 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="text-item" style="border-bottom: 1rpx solid #F4F4F4;padding-bottom: 10rpx;">
|
<view class="text-item" style="border-bottom: 1rpx solid #F4F4F4;padding-bottom: 10rpx;">
|
||||||
<image class="dl-icon" src="@/static/index/xing.png" mode="aspectFit"></image>
|
<image class="dl-icon" src="@/static/index/xing.png" mode="aspectFit"></image>
|
||||||
<view class="dl-content">类型:{{dataObj.bloggerTypesText||'无限制'}}</view>
|
<view class="dl-content">类型:{{dataObj.bloggerTypes||'无限制'}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="text-item" style="padding-top: 10rpx;">
|
<view class="text-item" style="padding-top: 10rpx;">
|
||||||
<view class="item-box">
|
<view class="item-box">
|
||||||
<image class="dl-icon2" :src="imageUrl+dataObj.avatar" mode="aspectFit"></image>
|
<image class="dl-icon2" :src="imageUrl+dataObj.avatar" mode="aspectFit"></image>
|
||||||
<view class="dl-item-right">{{dataObj.userNickName}}</view>
|
<view class="dl-item-right" style="color: #929292;font-size: 16rpx;">
|
||||||
|
{{dataObj.userNickName}}
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="item-box" style="width: 25%;">
|
<!-- <view class="item-box" style="width: 25%;">
|
||||||
<image class="dl-icon3" src="@/static/index/person.png" mode="aspectFit"></image>
|
<image class="dl-icon3" src="@/static/index/person.png" mode="aspectFit"></image>
|
||||||
<view class="dl-item-right dl-number">{{dataObj.reportNum}}</view>
|
<view class="dl-item-right dl-number">{{dataObj.reportNum}}</view>
|
||||||
</view> -->
|
</view> -->
|
||||||
<view class="item-box" style="width: 25%;">
|
<!-- <view class="item-box" style="width: 25%;">
|
||||||
<image class="dl-icon3" src="@/static/index/eye.png" mode="aspectFit"></image>
|
<image class="dl-icon3" src="@/static/index/eye.png" mode="aspectFit"></image>
|
||||||
<view class="dl-item-right dl-number">{{dataObj.viewNum}}</view>
|
<view class="dl-item-right dl-number">{{dataObj.viewNum}}</view>
|
||||||
</view>
|
</view> -->
|
||||||
|
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="normal-login-container">
|
<view class="normal-login-container">
|
||||||
|
<view class="navigationBarBack" @click="back">
|
||||||
|
<uni-icons size="24" type="left" :color="titleColor"></uni-icons>
|
||||||
|
</view>
|
||||||
<view class="logo-content align-center justify-center flex">
|
<view class="logo-content align-center justify-center flex">
|
||||||
<image style="width: 260rpx;height: 260rpx;" src="@/static/logo.png" mode="widthFix">
|
<image style="width: 260rpx;height: 260rpx;" src="@/static/logo.png" mode="widthFix">
|
||||||
</image>
|
</image>
|
||||||
@ -87,6 +90,10 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
back() {
|
||||||
|
uni.navigateBack()
|
||||||
|
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
* 同意
|
* 同意
|
||||||
* @param {Object} e
|
* @param {Object} e
|
||||||
@ -139,6 +146,10 @@
|
|||||||
toast("请先阅读并同意《隐私协议》《用户服务协议》")
|
toast("请先阅读并同意《隐私协议》《用户服务协议》")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if (uni.getStorageSync("inviteId")) {
|
||||||
|
this.wxLoginForm.inviteId = uni.getStorageSync("inviteId")
|
||||||
|
}
|
||||||
|
console.log(this.wxLoginForm, 145);
|
||||||
let ok = await this.wxLogin()
|
let ok = await this.wxLogin()
|
||||||
console.log("微信小程序发起授权登录")
|
console.log("微信小程序发起授权登录")
|
||||||
this.$modal.loading("登录中...")
|
this.$modal.loading("登录中...")
|
||||||
@ -159,9 +170,7 @@
|
|||||||
},
|
},
|
||||||
//向后端发起登录请求
|
//向后端发起登录请求
|
||||||
sendWxLoginFormToLocalService() {
|
sendWxLoginFormToLocalService() {
|
||||||
if (uni.getStorageSync("inviteId")) {
|
|
||||||
this.wxLoginForm.inviteId = uni.getStorageSync("inviteId")
|
|
||||||
}
|
|
||||||
this.$store.dispatch('WxLogin', this.wxLoginForm).then(() => {
|
this.$store.dispatch('WxLogin', this.wxLoginForm).then(() => {
|
||||||
this.$modal.closeLoading()
|
this.$modal.closeLoading()
|
||||||
this.loginSuccess()
|
this.loginSuccess()
|
||||||
@ -220,6 +229,12 @@
|
|||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.navigationBarBack {
|
||||||
|
position: fixed;
|
||||||
|
left: 30rpx;
|
||||||
|
top: 98rpx;
|
||||||
|
}
|
||||||
|
|
||||||
.checklist-box {
|
.checklist-box {
|
||||||
margin-right: 0rpx !important;
|
margin-right: 0rpx !important;
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
title-color="#000000"></navigation-bar-vue>
|
title-color="#000000"></navigation-bar-vue>
|
||||||
<view class="notice-detail-last-box">
|
<view class="notice-detail-last-box">
|
||||||
<!-- 报名列表 -->
|
<!-- 报名列表 -->
|
||||||
<view class="info-box notice-detail" v-if="viewMy">
|
<view class="info-box notice-detail" v-if="viewMy&&!ifBz">
|
||||||
<view class="detail-title">已报名:{{allImgNum||0}}人</view>
|
<view class="detail-title">已报名:{{allImgNum||0}}人</view>
|
||||||
<view class="image-box" v-if="imageArray.length>0"
|
<view class="image-box" v-if="imageArray.length>0"
|
||||||
:style="{height:(imageArray.length*((imageWidth-15)*2))+'rpx'}">
|
:style="{height:(imageArray.length*((imageWidth-15)*2))+'rpx'}">
|
||||||
@ -129,7 +129,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="bottom-box">
|
<view class="bottom-box">
|
||||||
<text class="update-text">{{calculateTimeDifference(noticeDetail.updateTime)||''}}更新</text>
|
<text class="update-text">{{calculateTimeDifference(noticeDetail.updateTime)||''}}更新</text>
|
||||||
<text class="view-text">{{noticeDetail.viewNum||''}} 阅读</text>
|
<!-- <text class="view-text">{{noticeDetail.viewNum||''}} 阅读</text> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 通告详情 -->
|
<!-- 通告详情 -->
|
||||||
@ -390,8 +390,9 @@
|
|||||||
onShow() {
|
onShow() {
|
||||||
if (null != getJSONData(constant.userInfo)) {
|
if (null != getJSONData(constant.userInfo)) {
|
||||||
this.userInfo = getJSONData(constant.userInfo)
|
this.userInfo = getJSONData(constant.userInfo)
|
||||||
|
this.getRole()
|
||||||
}
|
}
|
||||||
this.getRole()
|
|
||||||
this.getDetail()
|
this.getDetail()
|
||||||
this.viewNotice()
|
this.viewNotice()
|
||||||
},
|
},
|
||||||
|
@ -48,8 +48,8 @@
|
|||||||
截止时间
|
截止时间
|
||||||
</view>
|
</view>
|
||||||
<view class="item-value">
|
<view class="item-value">
|
||||||
<uni-datetime-picker type="date" :clear-icon="false" v-model="dataObj.endDate"
|
<uni-datetime-picker :start="nowDate" type="date" :clear-icon="false"
|
||||||
@maskClick="maskClick" />
|
v-model="dataObj.endDate" @maskClick="maskClick" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="item-field">
|
<view class="item-field">
|
||||||
@ -292,6 +292,7 @@
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
nowDate: new Date(),
|
||||||
//城市树结构
|
//城市树结构
|
||||||
dataTree: [],
|
dataTree: [],
|
||||||
//一行显示几个
|
//一行显示几个
|
||||||
@ -1138,4 +1139,4 @@
|
|||||||
.checklist-box {
|
.checklist-box {
|
||||||
margin-right: 0 !important;
|
margin-right: 0 !important;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
@ -62,8 +62,9 @@ const user = {
|
|||||||
const code = wxUserInfo.code
|
const code = wxUserInfo.code
|
||||||
const encryptedIv = wxUserInfo.encryptedIv
|
const encryptedIv = wxUserInfo.encryptedIv
|
||||||
const encryptedData = wxUserInfo.encryptedData
|
const encryptedData = wxUserInfo.encryptedData
|
||||||
|
const inviteId = wxUserInfo.inviteId
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
wxLogin(code, encryptedIv, encryptedData).then(res => {
|
wxLogin(code, encryptedIv, encryptedData, inviteId).then(res => {
|
||||||
setToken(res.token)
|
setToken(res.token)
|
||||||
commit('SET_TOKEN', res.token)
|
commit('SET_TOKEN', res.token)
|
||||||
resolve()
|
resolve()
|
||||||
@ -161,4 +162,4 @@ const user = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default user
|
export default user
|
Loading…
Reference in New Issue
Block a user