细节修改
This commit is contained in:
parent
1a5234a9f8
commit
0dbc55ce51
|
@ -42,7 +42,7 @@ const install = (Vue, vm) => {
|
|||
// 所以哪怕您重新登录修改了Storage,下一次的请求将会是最新值
|
||||
// const token = uni.getStorageSync('token');
|
||||
|
||||
const token = " Bearer 4f18711e2c1341b296090ee715d3f4fa"
|
||||
const token = " Bearer 830608e02a9e4209bffbde69b66f1315"
|
||||
|
||||
// console.log("我是token", token)
|
||||
config.header.Authorization = token;
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<input type="text" v-model="searchKeyword" placeholder="搜索相关内容..." class="input"
|
||||
placeholder-style="color:#C7CDD3" @input="search()">
|
||||
</view>
|
||||
<view class="checkbox">
|
||||
<!-- <view class="checkbox">
|
||||
<view class="chekcont">
|
||||
时间排序
|
||||
<view class="iconfont icon-arow_down"></view>
|
||||
|
@ -24,7 +24,7 @@
|
|||
状态
|
||||
<view class="iconfont icon-arow_down"></view>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="card_bigbox">
|
||||
<view class="work_card" v-for="(item,index ) in workinfo" :key="index" @click="toworkdetail(item.id)"
|
||||
:class="item.status === 1 ? 'act1' : (item.status === '2' ? 'act3' : 'default')">
|
||||
|
@ -149,7 +149,7 @@
|
|||
// console.log(option);
|
||||
// this.classid = option.classId
|
||||
// this.classid=15
|
||||
this.getworklist()
|
||||
// this.getworklist()
|
||||
},
|
||||
onShow() {
|
||||
this.getworklist()
|
||||
|
|
|
@ -151,6 +151,9 @@
|
|||
// this.classid=15
|
||||
this.getworklist()
|
||||
},
|
||||
onShow() {
|
||||
this.getworklist()
|
||||
},
|
||||
methods: {
|
||||
addwork(){
|
||||
|
||||
|
|
|
@ -129,6 +129,7 @@
|
|||
},
|
||||
methods: {
|
||||
getPhoneNumber(e) {
|
||||
let that = this
|
||||
console.log("eeeeeeee", e)
|
||||
wx.login({
|
||||
success(res) {
|
||||
|
@ -136,18 +137,28 @@
|
|||
console.log('登录!', res)
|
||||
|
||||
//发起网络请求
|
||||
wx.request({
|
||||
url: 'https://api.admin-v2.langsi.online/admin-api/system/auth/mini-login',
|
||||
header: {
|
||||
"Tenant-Id": 1
|
||||
},
|
||||
method: "POST",
|
||||
data: {
|
||||
loginCode: res.code,
|
||||
phoneCode: e.detail.code,
|
||||
encryptedData: e.detail.encryptedData,
|
||||
iv: e.detail.iv
|
||||
}
|
||||
// wx.request({
|
||||
// url: 'https://api.admin-v2.langsi.online/admin-api/system/auth/mini-login',
|
||||
// header: {
|
||||
// "Tenant-Id": 1
|
||||
// },
|
||||
// method: "POST",
|
||||
// data: {
|
||||
// loginCode: res.code,
|
||||
// phoneCode: e.detail.code,
|
||||
// encryptedData: e.detail.encryptedData,
|
||||
// iv: e.detail.iv
|
||||
// }
|
||||
// })
|
||||
let data ={
|
||||
loginCode: res.code,
|
||||
phoneCode: e.detail.code,
|
||||
encryptedData: e.detail.encryptedData,
|
||||
iv: e.detail.iv
|
||||
}
|
||||
that.$u.post('https://api.admin-v2.langsi.online/admin-api/system/auth/mini-login',data).then(res => {
|
||||
uni.setStorageSync('token','Bearer '+ res.data.accessToken);
|
||||
|
||||
})
|
||||
|
||||
} else {
|
||||
|
@ -160,6 +171,7 @@
|
|||
})
|
||||
},
|
||||
getUserInfo(e) {
|
||||
let that = this
|
||||
wx.login({
|
||||
success(res) {
|
||||
if (res.code) {
|
||||
|
@ -168,20 +180,33 @@
|
|||
wx.getUserInfo({
|
||||
success(rrr) {
|
||||
console.log("xxxxx", rrr)
|
||||
|
||||
//发起网络请求
|
||||
wx.request({
|
||||
url: 'https://api.admin-v2.langsi.online/admin-api/system/auth/mini-login',
|
||||
header: {
|
||||
"Tenant-Id": 1
|
||||
},
|
||||
method: "POST",
|
||||
data: {
|
||||
loginCode: res.code,
|
||||
encryptedData: rrr.encryptedData,
|
||||
iv: rrr.iv
|
||||
let data ={
|
||||
loginCode: res.code,
|
||||
encryptedData: rrr.encryptedData,
|
||||
iv: rrr.iv
|
||||
}
|
||||
that.$u.post('https://api.admin-v2.langsi.online/admin-api/system/auth/mini-login',data).then(res => {
|
||||
if (res.code == 200) {
|
||||
|
||||
uni.setStorageSync('token','Bearer '+ res.data.accessToken);
|
||||
} else {
|
||||
|
||||
}
|
||||
|
||||
})
|
||||
//发起网络请求
|
||||
// wx.request({
|
||||
// url: 'https://api.admin-v2.langsi.online/admin-api/system/auth/mini-login',
|
||||
// header: {
|
||||
// "Tenant-Id": 1
|
||||
// },
|
||||
// method: "POST",
|
||||
// data: {
|
||||
// loginCode: res.code,
|
||||
// encryptedData: rrr.encryptedData,
|
||||
// iv: rrr.iv
|
||||
// }
|
||||
// })
|
||||
|
||||
}
|
||||
})
|
||||
|
|
|
@ -98,8 +98,17 @@
|
|||
</view>
|
||||
|
||||
</view>
|
||||
<view class="noting" v-if="selectlistenlist.length <= 0&&selectreadlist.length <= 0&&selectspeak.length <= 0&&selectwritelist.length <= 0">
|
||||
<image src="https://file.langsi.online/yasiimg/web/static/ulqScWZvBYd22CW5uV0H"></image>
|
||||
<view class="text1">
|
||||
暂未安排哦!
|
||||
</view>
|
||||
<!-- <view class="text2" @click="toaddstu()">
|
||||
去安排
|
||||
</view> -->
|
||||
</view>
|
||||
<view>
|
||||
<view v-for="(item,index) in selectreadlist" :key="index">
|
||||
<view v-for="(item,index) in selectreadlist" :key="index" v-if="selectreadlist.length>0">
|
||||
<view class="Ielts">{{item.papername}}</view>
|
||||
<view
|
||||
style="background-color: #fff; padding: 32rpx 40rpx;border-radius: 20rpx 20rpx 20rpx 20rpx;">
|
||||
|
@ -127,7 +136,7 @@
|
|||
</view>
|
||||
</view>
|
||||
<view>
|
||||
<view v-for="(item,index) in selectlistenlist" :key="index">
|
||||
<view v-for="(item,index) in selectlistenlist" :key="index" v-if="selectlistenlist.length>0">
|
||||
<view class="Ielts">{{item.papername}}</view>
|
||||
<view
|
||||
style="background-color: #fff; padding: 32rpx 40rpx;border-radius: 20rpx 20rpx 20rpx 20rpx;">
|
||||
|
@ -155,7 +164,7 @@
|
|||
</view>
|
||||
</view>
|
||||
<view>
|
||||
<view v-for="(item,index) in selectwritelist" :key="index">
|
||||
<view v-for="(item,index) in selectwritelist" :key="index" v-if="selectwritelist.length>00">
|
||||
<view class="Ielts">{{item.examName}}</view>
|
||||
<view
|
||||
style="background-color: #fff; padding: 32rpx 40rpx;border-radius: 20rpx 20rpx 20rpx 20rpx;">
|
||||
|
@ -184,12 +193,12 @@
|
|||
</view>
|
||||
</view>
|
||||
<view>
|
||||
<view>
|
||||
<view v-if="selectspeak.length>0">
|
||||
<view class="Ielts"></view>
|
||||
<view
|
||||
style="background-color: #fff; padding: 32rpx 40rpx;border-radius: 20rpx 20rpx 20rpx 20rpx;">
|
||||
style="background-color: #fff; padding: 32rpx 40rpx;border-radius: 20rpx 20rpx 20rpx 20rpx;" >
|
||||
<u-time-line>
|
||||
<u-time-line-item nodeTop="2" v-for="(item, index) in selectspeak" :key="index">
|
||||
<u-time-line-item nodeTop="2" v-for="(item, index) in selectspeak" :key="index" >
|
||||
<template v-slot:content>
|
||||
<view>
|
||||
<view style="display: flex;flex-wrap: nowrap;">
|
||||
|
@ -258,7 +267,7 @@
|
|||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<u-toast ref="uToast" />
|
||||
<!-- 按钮 -->
|
||||
<view class="zhanwei" style="width: 100%;height: 230rpx;">
|
||||
|
||||
|
@ -575,7 +584,10 @@
|
|||
position:'top'
|
||||
})
|
||||
this.selectedIds=[]
|
||||
this.fuwei()
|
||||
// this.fuwei()
|
||||
uni.navigateBack({
|
||||
delta: 1 // 返回的页面数,这里设置为1表示返回上一个页面
|
||||
});
|
||||
}else{
|
||||
this.$refs.uToast.show({
|
||||
title: '添加失败',
|
||||
|
@ -584,7 +596,7 @@
|
|||
|
||||
})
|
||||
this.selectedIds=[]
|
||||
this.fuwei()
|
||||
// this.fuwei()
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -28,10 +28,10 @@
|
|||
bg-color="0"></u-tabs>
|
||||
</view>
|
||||
<!-- 轮播图 -->
|
||||
<swiper :interval="5000" :duration="1000" is-scroll="true" :current="current" @change="updateCurrent"
|
||||
<swiper :interval="5000" :duration="1000" is-scroll="true" :autoplay='false' :current="current" @change="updateCurrent" next-margin="-10rpx"
|
||||
class="swiper">
|
||||
<!-- 口语 -->
|
||||
<swiper-item style="height: 300rpx;">
|
||||
<swiper-item style="margin-right: 30rpx;">
|
||||
<view>
|
||||
<view class="view_left">
|
||||
<view class="view_left_pd" @click="arrow_xl">
|
||||
|
@ -819,6 +819,9 @@
|
|||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.swiper-with-spacing swiper-item {
|
||||
margin-right: 10px; /* Adjust the spacing as needed */
|
||||
}
|
||||
.view_template {
|
||||
width: 100%;
|
||||
background: linear-gradient(183deg, #F0F6FF 0%, #FAFAFA 100%);
|
||||
|
@ -1016,7 +1019,7 @@
|
|||
}
|
||||
|
||||
.swiper {
|
||||
height: 80%;
|
||||
height: 90%;
|
||||
}
|
||||
|
||||
swiper-item {
|
||||
|
|
Loading…
Reference in New Issue
Block a user