整合企微token变量
This commit is contained in:
@@ -91,7 +91,7 @@
|
||||
import {mapState} from 'vuex'
|
||||
|
||||
export default {
|
||||
name:"AppThreeSessions",
|
||||
name: "AppThreeSessions",
|
||||
appName: "三会一课",
|
||||
data() {
|
||||
const currentDate = this.getDate({
|
||||
@@ -248,7 +248,7 @@ export default {
|
||||
},
|
||||
toSessionDetail(id, signStatus) {
|
||||
uni.navigateTo({
|
||||
url: `../threeSessions/threeSessionsDetail?id=${id}&signStatus=${signStatus}&token=${uni.getStorageSync("token")}`
|
||||
url: `../threeSessions/threeSessionsDetail?id=${id}&signStatus=${signStatus}&token=${this.user.token}`
|
||||
})
|
||||
},
|
||||
leave() {
|
||||
|
||||
@@ -13,6 +13,8 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import {mapState} from "vuex"
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -24,10 +26,12 @@ export default {
|
||||
isSign: true
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
...mapState(['user'])
|
||||
},
|
||||
onShow() {
|
||||
if (uni.getStorageSync('token')) {
|
||||
if (this.user.token) {
|
||||
this.meetingId = this.$mp.query.scene
|
||||
// this.meetingId = 'c29aacb54f074c14ab93532e384a6daa'
|
||||
this.getUserInfo()
|
||||
} else {
|
||||
uni.showModal({
|
||||
|
||||
@@ -54,6 +54,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {mapState} from "vuex"
|
||||
export default {
|
||||
name: "fillLog",
|
||||
data() {
|
||||
@@ -78,6 +79,7 @@ export default {
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
...mapState(['user']),
|
||||
user() {
|
||||
return uni.getStorageSync("userInfo");
|
||||
},
|
||||
@@ -133,6 +135,7 @@ export default {
|
||||
return;
|
||||
}
|
||||
}
|
||||
const {token} = this.user
|
||||
uni.chooseImage({
|
||||
// 从相册选择或相机拍摄
|
||||
sourceType: that.sourceType[that.sourceTypeIndex],
|
||||
@@ -144,11 +147,6 @@ export default {
|
||||
// console.log(res.tempFilePaths)
|
||||
for (let i = 0; i < that.tempFilePaths.length; i++) {
|
||||
let str = "";
|
||||
let token = uni.getStorageSync("token");
|
||||
// console.log('token',token)
|
||||
let params = {
|
||||
token: token,
|
||||
};
|
||||
// url String 是 开发者服务器 url
|
||||
// files Aarry 否 需要上传的文件列表。使用 files 时,filePath 和 name 不生效。 5+App
|
||||
// filePath String 是 要上传文件资源的路径。
|
||||
|
||||
@@ -101,6 +101,8 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import {mapState} from "vuex"
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -122,10 +124,10 @@ export default {
|
||||
user: {}
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
...mapState(['user'])
|
||||
},
|
||||
onLoad(options) {
|
||||
if (!uni.getStorageSync("token")) {
|
||||
uni.setStorageSync("token", options.token)
|
||||
}
|
||||
this.$dict.load('postStatus', 'meetingClassification', 'topicClassification').then(() => {
|
||||
this.id = options.id
|
||||
this.signStatus = options.signStatus
|
||||
@@ -147,8 +149,7 @@ export default {
|
||||
uni.navigateTo({url: `./ylinkMeetingRoom?meetingNum=${this.data.onlineNum}&pwd=${this.data.onlinePwd}`})
|
||||
},
|
||||
copy() {
|
||||
var token = uni.getStorageSync('token')
|
||||
uni.setClipboardData({data: `https://gdpartyh5.cunwuyun.cn/pages/party/threeSessions/threeSessionsDetail?id=${this.id}&signStatus=${this.signStatus}&token=${token}`});
|
||||
uni.setClipboardData({data: `https://gdpartyh5.cunwuyun.cn/pages/party/threeSessions/threeSessionsDetail?id=${this.id}&signStatus=${this.signStatus}&token=${this.user.token}`});
|
||||
},
|
||||
signMeeting() {
|
||||
this.$http.post(`/app/appthreemeetinguser/signByMeetingIdAndUserIdForWX?meetingId=${this.data.id}&userId=${this.user.id}`, null, {}).then(res => {
|
||||
@@ -333,7 +334,7 @@ export default {
|
||||
}
|
||||
|
||||
.sign-end {
|
||||
padding-left: 150 rpx;
|
||||
padding-left: 150px;
|
||||
}
|
||||
|
||||
.btn-bottom {
|
||||
@@ -360,10 +361,9 @@ export default {
|
||||
}
|
||||
|
||||
.detail-info {
|
||||
padding: 16px 0 8px 32px;
|
||||
border-bottom: 2px solid #D8DDE6;
|
||||
background-color: #D40A05;
|
||||
padding-bottom: 80px;
|
||||
padding: 16px 0 80px 32px;
|
||||
position: relative;
|
||||
|
||||
.info-title {
|
||||
|
||||
Reference in New Issue
Block a user