作者 lihongjuan

1

... ... @@ -8,10 +8,10 @@
<view v-for="(item,index) in cardlist" :key="index">
<swiper-item>
<view class="title">城市畅读卡</view>
<view class="title">{{item.name}}</view>
<view class="money">{{item.money}}/月</view>
<view class="time" v-if="item.vip_endtime">到期日期:{{item.vip_endtime}}</view>
<view class="btn" v-if="item.vip_endtime==''" @click="buycard" :data-id="item.vip_level">立即购买<image class="icon" src="../../static/dizhi_btn@2x2.png"></image></view>
<view class="btn" @click="buycard" :data-id="item.id">立即购买<image class="icon" src="../../static/dizhi_btn@2x2.png"></image></view>
<!-- <image class="big" src="../../static/juxing.png"></image>
<image class="small" src="../../static/tuoyuan.png"></image> -->
... ... @@ -111,9 +111,10 @@ export default {
paySign: res.paySign,
success: function(res) {
console.log(res)
wx.navigateTo({
url: '/pages/orderbox/orderbox?index=' + 0
})
that.getcardmsg()
// wx.navigateTo({
// url: '/pages/orderbox/orderbox?index=' + 0
// })
},
fail: function(res) {
console.log(123);
... ... @@ -150,7 +151,7 @@ export default {
top: 26rpx;
left: 50%;
transform: translate(-50%);
padding: 62rpx 40rpx;
padding: 30rpx 40rpx;
box-sizing: border-box;
z-index: 777;
.title{
... ... @@ -166,6 +167,9 @@ export default {
color:rgba(130,75,59,1);
font-size: 24rpx;
margin-top: 70rpx;
position: absolute;
left:26rpx;
bottom:68rpx
}
.btn{
width:206rpx;
... ... @@ -188,7 +192,7 @@ export default {
}
.dots{
position: absolute;
bottom: 10rpx;
bottom: 36rpx;
left: 50%;
transform: translate(-50%);
width: 50rpx;
... ...
... ... @@ -136,7 +136,7 @@ export default {
<style lang="less">
.content{
background-color: #F9F9F9;
// background-color: #F9F9F9;
.nodata{
font-size: 28rpx;
text-align: center;
... ...
... ... @@ -60,7 +60,8 @@ data(){
footersel:3,
type:"",
userinfolist:{},
token:''
token:'',
user_id:""
}
},
methods:{
... ... @@ -78,7 +79,8 @@ methods:{
}
app.post(url,params,"get").then((res)=>{
console.log(res)
that.userinfolist=res
that.userinfolist=res;
that.user_id=res.user_id
}).catch((err)=>{
console.log(err)
})
... ... @@ -173,7 +175,7 @@ methods:{
}, 1500);
}else{
wx.navigateTo({
url:'./mycomment'
url:'./mycomment?user_id='+this.user_id
})
}
}
... ... @@ -206,6 +208,7 @@ onLoad(options){
top: 52rpx;
left: 50%;
transform: translate(-50%);
border-radius: 50%;
}
.title{
margin-top: 66rpx;
... ...
... ... @@ -23,7 +23,7 @@
<!-- <input type="text" class="cont" placeholder="爱学习的王笑笑" placeholder-style="text-align: right;font-size:28rpx;color:#BDC4CE" style="width:200rpx"> -->
<view class="cont">
{{userinfolist.school_info.name}}
<image class="icon" src="../../static/dizhi_btn@2x2.png"></image>
<!-- <image class="icon" src="../../static/dizhi_btn@2x2.png"></image> -->
</view>
</view>
<view class="item">
... ... @@ -31,23 +31,24 @@
<!-- <input type="text" class="cont" placeholder="爱学习的王笑笑" placeholder-style="text-align: right;font-size:28rpx;color:#BDC4CE" style="width:200rpx"> -->
<view class="cont">
{{userinfolist.endtime}}
<image class="icon" src="../../static/dizhi_btn@2x2.png"></image>
<!-- <image class="icon" src="../../static/dizhi_btn@2x2.png"></image> -->
</view>
</view>
<view class="item">
<!-- <view class="item">
<view class="name">高考学科</view>
<!-- <input type="text" class="cont" placeholder="爱学习的王笑笑" placeholder-style="text-align: right;font-size:28rpx;color:#BDC4CE" style="width:200rpx"> -->
<input type="text" class="cont" placeholder="爱学习的王笑笑" placeholder-style="text-align: right;font-size:28rpx;color:#BDC4CE" style="width:200rpx">
<view class="cont">
语数外
<image class="icon" src="../../static/dizhi_btn@2x2.png"></image>
</view>
</view>
</view> -->
<view class="item">
<view class="name">选考科目</view>
<!-- <input type="text" class="cont" placeholder="爱学习的王笑笑" placeholder-style="text-align: right;font-size:28rpx;color:#BDC4CE" style="width:200rpx"> -->
<view class="cont">
{{userinfolist.subject_list[0].name}}
<image class="icon" src="../../static/dizhi_btn@2x2.png"></image>
<view class="cont" >
<text v-for="(item,index) in userinfolist.subject_list" :key="index">{{item.name}}</text>
<!-- {{userinfolist.subject_list[0].name}} -->
<!-- <image class="icon" src="../../static/dizhi_btn@2x2.png"></image> -->
</view>
</view>
<view class="item">
... ... @@ -55,7 +56,7 @@
<!-- <input type="text" class="cont" placeholder="爱学习的王笑笑" placeholder-style="text-align: right;font-size:28rpx;color:#BDC4CE" style="width:200rpx"> -->
<view class="cont">
{{userinfolist.up_info.name}}
<image class="icon" src="../../static/dizhi_btn@2x2.png"></image>
<!-- <image class="icon" src="../../static/dizhi_btn@2x2.png"></image> -->
</view>
</view>
</view>
... ... @@ -66,7 +67,7 @@
<!-- <input type="text" class="cont" placeholder="爱学习的王笑笑" placeholder-style="text-align: right;font-size:28rpx;color:#BDC4CE" style="width:200rpx"> -->
<view class="cont">
{{userinfolist.university_info.name}}
<image class="icon" src="../../static/dizhi_btn@2x2.png"></image>
<!-- <image class="icon" src="../../static/dizhi_btn@2x2.png"></image> -->
</view>
</view>
<view class="item">
... ... @@ -74,7 +75,7 @@
<!-- <input type="text" class="cont" placeholder="爱学习的王笑笑" placeholder-style="text-align: right;font-size:28rpx;color:#BDC4CE" style="width:200rpx"> -->
<view class="cont">
{{userinfolist.college_info.name}}
<image class="icon" src="../../static/dizhi_btn@2x2.png"></image>
<!-- <image class="icon" src="../../static/dizhi_btn@2x2.png"></image> -->
</view>
</view>
<view class="item">
... ... @@ -82,7 +83,7 @@
<!-- <input type="text" class="cont" placeholder="爱学习的王笑笑" placeholder-style="text-align: right;font-size:28rpx;color:#BDC4CE" style="width:200rpx"> -->
<view class="cont">
{{userinfolist.graduated_info.name}}
<image class="icon" src="../../static/dizhi_btn@2x2.png"></image>
<!-- <image class="icon" src="../../static/dizhi_btn@2x2.png"></image> -->
</view>
</view>
... ...
<template>
<view class="content">
<view class="title">
<image class="photo" :src="image"></image>
<image class="photo" :src="image" style="border-radius: 50%;"></image>
<view class="name">{{nickname}}</view>
</view>
<view class="contentBox">
<view class="comment" :style="{'margin-left:246rpx;': user_id==item.usera_id}" v-for="(item,index) in meslist" :key="index">
<scroll-view class="contentBox" :scroll-anchoring="true" :scroll-y="true" style="height: 81vh;" @scrolltoupper="end_fn" :scroll-top="top" :scroll-into-view="top" @scroll="scroll">
<view class="contentbox" v-for="(item,index) in meslist" :key="index">
<view class="comment" v-if="item.userb_id==user_id">
<span>{{item.des_content}}</span>
<view class="time">{{item.createtime}}</view>
</view>
<view class="comment" :style="{'margin-left:246rpx;': user_id==item.usera_id}" v-if="item.usera_id==user_id">
<span>{{item.des_content}}</span>
<view class="time">{{item.createtime}}</view>
</view>
</view>
</scroll-view>
<view class="inputBox">
<input type="text" class="input" v-model="des_content">
<view class="btn" @click="sendmsg">发送</view>
... ... @@ -22,6 +32,7 @@
<script>
import app from "../../App.vue";
export default {
data(){
return{
des_content:'',
... ... @@ -31,21 +42,93 @@ export default {
meslist:[],
image:'',
nickname:'',
user_id:''
user_id:'',
usera_id:'',
chuanuserid:'',
top:200
}
},
methods:{
// 触底事件
end_fn(){
console.log(34734478)
let newpage=this.page;
newpage++;
this.page=newpage;
this.getmeslist()
},
scroll(e){
console.log(e);
this.top=e.detail.scrollTop;
},
// 获取个人信息
getmyinfo(){
let that=this;
var url = "student/getMyInfo"
var params={
token:uni.getStorageSync('token')
}
app.post(url,params,"get").then((res)=>{
console.log(res)
// this.user_id
}).catch((err)=>{
console.log(err)
})
},
sendmsg(){
var that = this
var url = "mes/sendMes"
var params = {
token:uni.getStorageSync('token'),
userb_id:that.userb_id,
userb_id:that.chuanuserid,
des_content:that.des_content
}
app.post(url,params,"post").then((res)=>{
console.log(res)
that.des_content=''
var date=new Date();
var year=date.getFullYear();
var month=date.getMonth()+1;
var day=date.getDate();
var datek=year+'-'+month+'-'+day
let obj={}
if(that.user_id==that.usera_id){
console.log(43839438489)
obj={
usera_id:that.usera_id,
userb_id:that.userb_id,
des_content:that.des_content,
createtime:datek
}
}else{
console.log(2222888888)
obj={
usera_id:that.userb_id,
userb_id:that.usera_id,
des_content:that.des_content,
createtime:datek
}
}
that.meslist.push(obj);
that.meslist=that.meslist;
console.log(that.meslist)
that.des_content='';
wx.getSystemInfo({
success: function (res) {
wx.createSelectorQuery().select('.contentbox').boundingClientRect(function (rect) {
console.log('777666554432',rect)
var is_1_height = Number(rect.height) // 节点的宽度
that.top=that.top+is_1_height*2;
console.log(that.top)
}).exec();
}
});
}).catch((err)=>{
console.log(err)
})
... ... @@ -57,11 +140,39 @@ export default {
token:uni.getStorageSync('token'),
page:that.page,
size:that.size,
userb_id:that.userb_id
userb_id:that.chuanuserid
}
app.post(url,params,"get").then((res)=>{
console.log(res)
that.meslist=res
// res.forEach(function(value,index,array){
// arr.unshift(value)
// })
let new_arr = [];
new_arr = res.concat(that.meslist);
that.meslist = new_arr;
// that.meslist=that.meslist.concat(res);
// that.meslist=that.meslist.reverse();
// that.meslist=that.meslist
console.log('3478834984',that.meslist)
if(that.page==1){
setTimeout(function(){
wx.getSystemInfo({
success: function (res) {
wx.createSelectorQuery().select('.contentbox').boundingClientRect(function (rect) {
console.log('777666554432kkkkkk',rect)
var is_1_height =that.meslist.length*Number(rect.height) // 节点的宽度
that.top=is_1_height;
}).exec();
}
});
},500)
}
}).catch((err)=>{
console.log(err)
})
... ... @@ -69,25 +180,46 @@ export default {
},
onLoad(options){
console.log(options)
this.userb_id=options.userb_id
this.user_id=options.user_id
this.nickname=options.nickname
this.image=options.head_image
this.getmeslist()
this.usera_id=options.usera_id;
if(this.user_id==this.usera_id){
this.chuanuserid=this.userb_id
}else{
this.chuanuserid=this.usera_id
}
console.log('11222',this.userb_id,this.user_id)
this.getmeslist();
// 获取个人信息
this.getmyinfo();
},
onReachBottom(){
}
}
</script>
<style lang="less">
.content{
page{
background-color: #F9F9F9;
height:100%;
}
.content{
height:100%;
// background-color: #F9F9F9;
.title{
display: flex;
align-items: center;
background-color: #fff;
padding: 16rpx 32rpx;
margin-bottom:20rpx;
.photo{
width: 68rpx;
height: 68rpx;
... ... @@ -100,6 +232,7 @@ export default {
.contentBox{
// height: 100vh;
background-color: #F9F9F9;
margin-bottom:120rpx;
.right{
margin-left:246rpx;
}
... ... @@ -132,6 +265,10 @@ export default {
background:rgba(238,238,238,1);
opacity:1;
border-radius:8rpx;
padding:0 20rpx;
box-sizing: border-box;
color:#8C9198;
font-size: 28rpx;
}
.btn{
width:150rpx;
... ...
... ... @@ -2,10 +2,10 @@
<view class="content">
<view class="item" v-for="(item,index) in mingxilist" :key="index">
<view class="left">
<view class="title">xx收益</view>
<view class="time">2020-2-19</view>
<view class="title">{{item.memo}}</view>
<view class="time">{{item.createtime}}</view>
</view>
<view class="right">¥800.00</view>
<view class="right">{{item.money}}</view>
</view>
<!-- <view class="item">
<view class="left">
... ...
... ... @@ -14,7 +14,7 @@
<view class="item">
<view class="name">高中</view>
<view class="cont">{{userinfolist.school_info.name}}
<image class="icon" src="../../static/dizhi_btn@2x.png"></image>
<!-- <image class="icon" src="../../static/dizhi_btn@2x.png"></image> -->
</view>
</view>
<!-- <picker mode="date" :value="date" :start="startDate" :end="endDate" @change="bindDateChange">
... ... @@ -23,7 +23,7 @@
<view class="item" style="border-bottom:none">
<view class="name">入学年份</view>
<view class="cont">{{userinfolist.starttime}}
<image class="icon" src="../../static/dizhi_btn@2x.png"></image>
<!-- <image class="icon" src="../../static/dizhi_btn@2x.png"></image> -->
</view>
</view>
</view>
... ...
<template>
<view class="content">
<image class="bg" src="../../static/bg_img2.png"></image>
<image class="photo" :src="token=='' ? '../../static/touxiang_img@2x.png' :head_image"></image>
<image class="photo" :src="token=='' ? '../../static/touxiang_img@2x.png' :head_image" style="border-radius:50%;"></image>
<view class="title">{{userinfolist.nickname}}</view>
<image class="banner" src="../../static/banner_img@2x.png" @click="toBuyCard"></image>
<view class="item" @click="togeren">
... ...
<template>
<view class="content">
<view class="item" @click="tocommentlist(item)" v-for="(item,index) in commentlist" :key="index">
<view class="toprow">
<image class="photo" src="../../static/logo_img@2x.png"></image>
<view class="toprow" style="display:flex;justify-content: space-between;">
<view style="display:flex;">
<image class="photo" :src="item.head_image" style="border-radius: 50%;"></image>
<view class="msg">
<view class="name">{{item.nickname}}</view>
<view class="time">{{item.createtime}}</view>
</view>
</view>
<view class="right" v-if="item.readtime==null">未读</view>
<view class="right" style="color:#BDC4CE" v-else>已读</view>
</view>
... ... @@ -43,21 +46,30 @@ export default {
}
app.post(url,params,"get").then((res)=>{
console.log(res)
that.commentlist=res
res.forEach(function(value,index,array){
value.head_image=app.globalData.imageBaseUrl+value.head_image
})
that.commentlist=that.commentlist.concat(res)
}).catch((err)=>{
console.log(err)
})
},
tocommentlist(item){
uni.navigateTo({
url:'./commentContent?userb_id='+item.userb_id+"&nickname="+item.nickname+"&head_image="+item.head_image+"&user_id="+this.user_id
url:'./commentContent?userb_id='+item.userb_id+"&nickname="+item.nickname+"&head_image="+item.head_image+"&user_id="+this.user_id+'&usera_id='+item.usera_id
})
let chuanid='';
if(this.user_id==item.userb_id){
chuanid=item.usera_id
}else{
chuanid=item.userb_id
}
var that = this
var url = "mes/isReadMes"
var token = uni.getStorageSync('token')
var params = {
token:token,
usera_id:item.userb_id
usera_id:chuanid
}
app.post(url,params,"post").then((res)=>{
console.log(res)
... ... @@ -67,7 +79,19 @@ export default {
}
},
onLoad(options){
console.log(options)
this.user_id=options.user_id
},
onShow(){
this.page=1;
this.commentlist=[];
this.getcommentlist()
},
onReachBottom(){
let newpage=this.page;
newpage++;
this.page=newpage;
this.getcommentlist()
}
... ... @@ -87,7 +111,7 @@ export default {
width: 686rpx;
margin: 0 auto;
background-color: #fff;
padding: 32rpx;
padding: 32rpx 0;
box-sizing: border-box;
margin-bottom: 28rpx;
}
... ... @@ -112,7 +136,7 @@ export default {
.right{
color:rgba(235,128,121,1);
font-size: 24rpx;
margin-left: 324rpx;
// margin-left: 324rpx;
// float: right;
width: 60rpx;
}
... ...
... ... @@ -109,12 +109,11 @@ export default {
app.upload('image',res.tempFilePaths[0],"post").then((res)=>{
console.log(res)
// let newimage=that.image
var url= res.url
var url= app.globalData.imageBaseUrl+res.kurl
// that.image=app.globalData.imageBaseUrl+res.url
console.log(res)
console.log(res.url)
console.log(that.image)
that.image.push(url)
that.image2.push(res.kurl)
console.log(that.image)
... ...
... ... @@ -5,7 +5,7 @@
<view class="title">提现到微信余额(元)</view>
<!-- <view class="money">100.00</view> -->
<input type="text" v-model="money" class="money" placeholder="100.00" placeholder-style="padding-bottom: 10rpx;color:rgba(189,196,206,1);font-size: 80rpx;margin-top: 16rpx;border-bottom: 1rpx solid rgba(112,112,112,1);">
<view class="text">最多可提100.00元,<text>全部提现</text></view>
<view class="text">最多可提{{yue}}元,<text>全部提现</text></view>
<view class="btn" @click="tixian">提现</view>
</view>
<view class="textBox">
... ...
... ... @@ -20,7 +20,7 @@
</view>
<view class="colum" style="overflow: auto;height: 540rpx;">
<view class="title" @click="selectcity" :data-id="''">全部市</view>
<!-- <view class="title" @click="selectcity" :data-id="''">全部市</view> -->
<view class="item" @click="selectcity" v-for="(item,index) in cityList" :key="index" :data-id="item.code" :data-city="item.name">{{item.name}}</view>
</view>
... ... @@ -106,12 +106,12 @@ export default {
var url ="city/getAllProvince"
var params ={}
app.post(url,params,"get").then((res)=>{
var nullData = {
code:'',
name:"全部省"
}
res.unshift(nullData)
console.log(res)
// var nullData = {
// code:'',
// name:"全部省"
// }
// res.unshift(nullData)
// console.log(res)
this.provinceList=res
}).catch((err)=>{
console.log(err)
... ...
... ... @@ -44,11 +44,10 @@
url:'../school/school'
})
}
this.get_code()
},
methods: {
// 获取个人信息
getusermsg(){
var url = "student/getMyInfo"
... ... @@ -67,6 +66,9 @@
}
}).catch((err)=>{
console.log(err)
wx.redirectTo({
url:'../school/school'
})
})
},
... ... @@ -134,7 +136,7 @@
}
app.post(url, param, "get").then(r => {
uni.setStorageSync('token', r.userInfo.token);
// 判断是否注册过
this.isuserlogin()
}).catch(err => {
... ...
... ... @@ -109,7 +109,10 @@ export default {
.item{
width:220rpx;
height:112rpx;
line-height: 112rpx;
display:flex;
align-items: center;
justify-content: center;
// line-height: 112rpx;
background:rgba(255,255,255,1);
box-shadow:0rpx 2rpx 4rpx rgba(0,0,0,0.06);
opacity:1;
... ... @@ -121,9 +124,9 @@ export default {
text-align: center;
margin-right: 14rpx;
margin-bottom: 16rpx;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
// overflow: hidden;
// white-space: nowrap;
// text-overflow: ellipsis;
}
}
}
... ...
... ... @@ -17,7 +17,7 @@
</view>
<view class="colum" style="overflow: auto;height: 600rpx;">
<view class="title" @click="selectcity" :data-id="''">全部市</view>
<!-- <view class="title" @click="selectcity" :data-id='""'>全部市</view> -->
<view class="item" @click="selectcity" v-for="(item,index) in cityList" :key="index" :data-id="item.code">{{item.name}}</view>
</view>
... ... @@ -92,11 +92,11 @@ export default {
var url ="city/getAllProvince"
var params ={}
app.post(url,params,"get").then((res)=>{
var nullData = {
code:'',
name:"全部省"
}
res.unshift(nullData)
// var nullData = {
// code:'',
// name:"全部省"
// }
// res.unshift(nullData)
console.log(res)
this.provinceList=res
}).catch((err)=>{
... ... @@ -112,6 +112,8 @@ export default {
}
app.post(url,params,"get").then((res)=>{
console.log(res)
this.cityList=res
}).catch((err)=>{
console.log(err)
... ... @@ -143,7 +145,8 @@ export default {
},
//点击选中的市
selectcity(e){
this.city_id=e.currentTarget.dataset.id
this.city_id=e.currentTarget.dataset.id;
console.log(this.city_id,'我是城市ID')
this.getAllSchool()
this.isDiquShow=false
},
... ...
... ... @@ -17,7 +17,7 @@
</view>
<view class="colum" style="overflow: auto;height: 600rpx;">
<view class="title" @click="selectcity" :data-id="''">全部市</view>
<!-- <view class="title" @click="selectcity" :data-id="''">全部市</view> -->
<view class="item" @click="selectcity" v-for="(item,index) in cityList" :key="index" :data-id="item.code">{{item.name}}</view>
</view>
... ... @@ -92,11 +92,11 @@ export default {
var url ="city/getAllProvince"
var params ={}
app.post(url,params,"get").then((res)=>{
var nullData = {
code:'',
name:"全部省"
}
res.unshift(nullData)
// var nullData = {
// code:'',
// name:"全部省"
// }
// res.unshift(nullData)
console.log(res)
this.provinceList=res
}).catch((err)=>{
... ...
... ... @@ -39,7 +39,7 @@ methods:{
})
},
tocollegepage(item){
let id = item.id
let id = item.university_id
let name = item.name
uni.navigateTo({
url:'./academyDetails?university_id='+id+'&name='+name
... ... @@ -55,8 +55,11 @@ onLoad(options){
</script>
<style lang="less">
.content{
page{
background-color: rgba(249,249,249,1);
}
.content{
font-size: 28rpx;
.top{
padding: 18rpx 32rpx;
... ...
<template>
<view class="content">
<image class="background" :src="university.des_image"></image>
<image class="background" :src="university.des_image=='http://school.t.brotop.cn'?'../../static/bg_img@2x.png':university.des_image"></image>
<view class="titleBox">
<view class="title">{{university.name}}</view>
... ... @@ -34,7 +34,8 @@
</view>
</view>
<view class="articl">
<view class="nodata" v-if="articleList.length==0">暂无数据</view>
<view class="articl" v-else>
<block v-for="(item,index) in articleList" :key="index">
<view class="articltitle">
<image class="photo" :src="item.head_image"></image>
... ... @@ -50,7 +51,7 @@
<!-- <image src="../../static/bg_img@2x.png"></image> -->
</view>
</block>
<view class="nodata" v-if="articleList.length==0">暂无数据</view>
</view>
... ... @@ -135,7 +136,7 @@ export default {
var that=this
var url="article/getArticleList"
var params = {
university_id:that.uni_id,
university_id:that.university_id,
page:that.page,
size:that.size,
type_id:that.type_id,
... ... @@ -204,7 +205,7 @@ export default {
font-size: 32rpx;
text-align: center;
color:rgba(45,85,117,1);
border-right: 1rpx solid rgba(213,234,227,1);
// border-right: 1rpx solid rgba(213,234,227,1);
.num{
}
... ...
... ... @@ -26,7 +26,6 @@
<image class="icon" src="../../static/xuexiao_icon@2x.png"></image>
</view> -->
</view>
<view class="weiguanzhu" v-if="isnulldata==true||token==''">
<view class="title">请关注更多学校</view>
<view class="btn" @click="tosearchpage">立即关注</view>
... ... @@ -215,7 +214,7 @@
let newpage=this.page;
newpage++;
this. page=newpage
this.getschoollist()
this.getlikeschool()
},
// isuserlogin(){
... ...
<template>
<view class="content">
<image class="background" :src="university.des_image"></image>
<image class="background" :src="university.des_image=='http://school.t.brotop.cn'?'../../static/bg_img@2x.png':university.des_image"></image>
<view class="contentBox">
<image class="photo" :src="university.icon_image"></image>
<image class="photo" :src="university.icon_image=='http://school.t.brotop.cn'?'../../static/logo_img@2x.png':university.icon_image"></image>
<view class="title">{{university.name}}</view>
<view class="cellectBtn" @click="cellectScool" v-if="university.is_like==0">
<image class="icon" src="../../static/shoucang_icon@2x.png"></image>
... ... @@ -12,7 +13,8 @@
<view class="text" style="text-align: center;">已收藏</view>
</view>
<view class="msg" @click="tomsgpage">
{{university.des_content}}
<text v-if="university.des_content!=undefined">{{university.des_content==''?'暂无简介':university.des_content}}</text>
<text style="color:#81C3BF">[更多]</text>
</view>
... ... @@ -51,7 +53,7 @@
</view>
<view class="card">
<view class="item" style="width: 188rpx;" v-for="(item,index) in collegeList" :key="index"><view class="bor">{{item.name}}</view></view>
<view class="item" style="width: 188rpx;" v-for="(item,index) in collegeList" :key="index" @click="tocollegepage(item)"><view class="bor">{{item.name}}</view></view>
</view>
... ... @@ -147,6 +149,13 @@ export default {
},
methods:{
tocollegepage(item){
let id = item.university_id
let name = item.name
uni.navigateTo({
url:'./academyDetails?university_id='+id+'&name='+name
})
},
popupShow(){
this.isPopupShow=true
... ... @@ -326,7 +335,7 @@ export default {
opacity:1;
border-radius:28rpx;
position: absolute;
top: -66rpx;
top: -130rpx;
right: 32rpx;
padding:0 30rpx;
box-sizing: border-box;
... ...
... ... @@ -24,7 +24,7 @@
</view>
<view class="nodata" v-if="articleList.length==0">暂无数据</view>
<view class="articl" v-else>
<block v-for="(item,index) in articleList" :key="index" @click="toarticlemsg(item)">
<view v-for="(item,index) in articleList" :key="index" @click="toarticlemsg(item)">
<view class="articltitle">
<image class="photo" :src="item.head_image"></image>
<view class="msg">
... ... @@ -38,7 +38,7 @@
<image :src="item" v-for="(item,index) in item.des_images" :key="index"></image>
<!-- <image src="../../static/bg_img@2x.png"></image> -->
</view>
</block>
</view>
</view>
... ... @@ -69,8 +69,8 @@
</view>
<view class="popup2" v-if="isdaxieBoxShow">
<view class="card">
<view class="title">我要答谢</view>
<view v-if="money">
<view class="title">我要答谢{{moneyshow}}</view>
<view v-if="moneyshow">
<view class="box" :class="{'active':isactive==1}" @click="picked" data-id=1 data-money=1>¥1</view>
<view class="box" :class="{'active':isactive==2}" @click="picked" data-id=2 data-money=6>¥6</view>
<view class="box" :class="{'active':isactive==3}" @click="picked" data-id=3 data-money=10>¥10</view>
... ... @@ -82,7 +82,7 @@
<view v-else>
<view class="input">
<view class="txt">¥</view>
<input type="text" placeholder="请输入答谢金额" placeholder-style="color:rgba(189,196,206,1);font-size:28rpx;">
<input type="text" placeholder="请输入答谢金额" placeholder-style="color:rgba(189,196,206,1);font-size:28rpx;" @input="entermoney">
</view>
<view class="btn" @click="moneyHide">确定</view>
</view>
... ... @@ -102,7 +102,7 @@ data(){
return{
isliuyanBoxShow:false,
isdaxieBoxShow:false,
money:true,
moneyshow:true,
id:'',
matemsg:{},
articletypelist:[],
... ... @@ -131,6 +131,13 @@ onLoad(options){
},
methods:{
// 进入文章详情
toarticl(e) {
var id = e.currentTarget.dataset.id
uni.navigateTo({
url: '../school/article?article_id=' + id
})
},
liuyanBoxShow(){
this.isliuyanBoxShow=true
},
... ... @@ -138,19 +145,58 @@ methods:{
this.isliuyanBoxShow=false
},
daxieShow(){
this.isdaxieBoxShow=true
this.isdaxieBoxShow=true;
},
daxieHide(){
this.isdaxieBoxShow=false
this.money=true
this.moneyshow=true
this.isactive=1
},
moneyShow(){
this.money=false
this.moneyshow=false
this.isactive=7
},
//输入其他金额
entermoney(e){
this.money=e.detail.value
},
moneyHide(){
this.money=true
// this.isactive=e.currentTarget.dataset.id
// this.money=e.currentTarget.dataset.money
var that = this
var url = "thank/pay"
var token = uni.getStorageSync('token')
var params = {
token:token,
money:that.money,
userb_id:that.user_id
}
app.post(url,params,"post").then((res)=>{
console.log(res)
var timeStamp = res.timeStamp.toString();
// console.log(timeStamp);
wx.requestPayment({
timeStamp: timeStamp,
nonceStr: res.nonceStr,
package: res.package,
signType: res.signType,
paySign: res.paySign,
success: function(res) {
console.log(res)
wx.navigateTo({
url: '/pages/orderbox/orderbox?index=' + 0
})
},
fail: function(res) {
console.log(123);
console.log(res);
}
})
}).catch((err)=>{
console.log(err)
})
// this.moneyshow=true
},
getmatemsg(){
let token = uni.getStorageSync('token')
... ... @@ -259,6 +305,7 @@ methods:{
})
},
toarticlemsg(item){
console.log('文章详情',item)
uni.navigateTo({
url:'../school/article?article_id='+item.id
})
... ... @@ -520,6 +567,7 @@ methods:{
width: 136rpx;
height: 136rpx;
margin-top: 50rpx;
border-radius: 50%;
}
.title{
font-size: 32rpx;
... ...
... ... @@ -18,17 +18,17 @@
<view class="cont">
<view class="colum" style="overflow: auto;height: 600rpx;">
<view class="title" @click="selectallprovince" :data-id="null">全部省</view>
<view class="title" @click="selectallprovince">全部</view>
<view class="item" @click="selectprovince" v-for="(item,index) in provinceList" :key="index" :data-id="item.code">{{item.name}}</view>
</view>
<view class="colum" style="overflow: auto;height: 600rpx;">
<view class="title" @click="selectallcity" :data-id="null">这个省的市</view>
<!-- <view class="title" @click="selectallcity" :data-id="null">这个省的市</view> -->
<view class="item" @click="selectcity" v-for="(item,index) in cityList" :key="index" :data-id="item.code">{{item.name}}</view>
</view>
<view class="colum" style="overflow: auto;height: 600rpx;">
<view class="title" @click="selectschool" :data-id="null">全部学校</view>
<!-- <view class="title" @click="selectschool" :data-id="null">全部学校</view> -->
<view class="item" @click="selectschool" v-for="(item,index) in schoolList" :key="index" :data-id="item.id">{{item.name}}</view>
</view>
... ... @@ -45,7 +45,7 @@
</view> -->
<view class="majorPopup" v-if="isMajorShow">
<view class="cont" style="display:flex;flex-direction: column;overflow: auto;height: 600rpx;">
<view class="title" @click="selectgraduated" :data-id="null">全部</view>
<!-- <view class="title" @click="selectgraduated" :data-id="null">全部</view> -->
<view class="item" style="width:330rpx" @click="selectgraduated" v-for="(item,index) in graduatedList" :key="index"
:data-id="item.id">{{item.name}}</view>
</view>
... ... @@ -328,6 +328,11 @@
var url = "city/getAllProvince"
var params = {}
app.post(url, params, "get").then((res) => {
// let obj={
// code:'',
// name:'全部省'
// }
// res.unshift(obj)
this.provinceList = res
}).catch((err) => {
console.log(err)
... ... @@ -342,6 +347,12 @@
}
app.post(url, params, "get").then((res) => {
console.log(res)
// let obj={
// code:'',
// name:'全部市'
// }
// res.unshift(obj)
this.cityList = res
}).catch((err) => {
console.log(err)
... ... @@ -356,6 +367,11 @@
}
app.post(url, params, "get").then((res) => {
console.log(res)
// let obj={
// id:'',
// name:'全部学校'
// }
// res.unshift(obj)
this.schoolList = res
}).catch((err) => {
console.log(err)
... ... @@ -372,7 +388,8 @@
//点击选中的专业
selectgraduated(e) {
this.schoolmate.graduated_id = e.currentTarget.dataset.id
this.schoolmate.graduated_id = e.currentTarget.dataset.id;
console.log('选择的id',this.schoolmate.graduated_id)
this.isMajorShow = false
this.getmatelist()
... ... @@ -398,6 +415,12 @@
},
//点击全部省
selectallprovince() {
this.schoolmate.page=1,
this.schoolmate.university_id=''
this.schoolmate.graduated_id=''
this.schoolmate.up_id=''
this.word=''
this.getmatelist()
this.isDiquShow = false
},
... ... @@ -577,6 +600,7 @@
height: 112rpx;
margin-right: 26rpx;
margin-top: 6rpx;
border-radius: 50%;
}
... ...