Commit f5829ce9 authored by LiZongLin's avatar LiZongLin

bug修改

parent 228173ed
...@@ -42,21 +42,13 @@ ...@@ -42,21 +42,13 @@
}, },
methods: { methods: {
goToBack() { goToBack() {
console.log("hehe"); if (uni.getSystemInfoSync('pages') === 'activityDetail') {
console.log("page",this.pages); uni.navigateBack({
if(this.pages === 'activity'){ delta: 1
uni.reLaunch({
url:'/pages/index/index'
// delta: 1
}) })
}else if(this.pages === 'activityDetail'){ } else {
uni.navigateTo({ uni.navigateBack({
url:'/pages_activity/activity/activity' delta: 2
})
}else{
uni.reLaunch({
url:'/pages_activity/activity/activity'
// delta: 1
}) })
} }
} }
......
<template>
<!-- 上传视频或者图片 -->
<view class="up-page">
<!--图片-->
<view class="show-box" v-for="(item,index) in imageList" :key="index">
<view class="delect-icon" @tap="delect(index)">
<image class="full" :src="clearIcon" mode=""></image>
<!--图片或者视频上传成功了,点击右上角叉号-->
</view>
<image class="full" :src="item" :data-src="image" @tap="previewImage(item)">
</image>
</view>
<!--视频-->
<view class="show-box" v-for="(item1, index1) in videoList" :key="index1">
<video class="full" :src="item1"></video>
<view class="delect-icon" @tap="delectVideo(index1)">
<image class="full" :src="clearIcon" mode=""></image>
</view>
</view>
<view v-if="VideoOfImagesShow" @tap="chooseVideoImage" class="box-mode">
<image class="full" :src="selectfile" mode=""></image>
<!-- 上传图标 懒得写,整个的图 -->
</view>
</view>
</template>
<script>
var sourceType = [
['camera'],
['album'],
['camera', 'album']
];
export default {
name: "uploadFile",
data() {
return {
// 图标
clearIcon: 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMCAwaDE2YTQgNCAwIDAgMSA0IDR2MTZINGE0IDQgMCAwIDEtNC00VjB6IiBmaWxsPSJ1cmwoI3BhaW50MF9saW5lYXIpIiBmaWxsLW9wYWNpdHk9Ii45OCIgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfYikiLz48cGF0aCBkPSJNMTAuOTQgOS45OTlsMi44NjMtMi44NTdhLjY2OS42NjkgMCAxIDAtLjk0Ni0uOTQ2TDEwIDkuMDYgNy4xNDMgNi4xOTZhLjY2OS42NjkgMCAwIDAtLjk0Ni45NDZsMi44NjQgMi44NTctMi44NjQgMi44NTdhLjY2Ni42NjYgMCAwIDAgLjIxNyAxLjA5Mi42NjQuNjY0IDAgMCAwIC43MjktLjE0NkwxMCAxMC45MzhsMi44NTcgMi44NjRhLjY2Ny42NjcgMCAwIDAgMS4wOTItLjIxNy42NjYuNjY2IDAgMCAwLS4xNDYtLjcyOUwxMC45MzkgMTB6IiBmaWxsPSIjZmZmIi8+PGRlZnM+PGZpbHRlciBpZD0iZmlsdGVyMF9iIiB4PSItNCIgeT0iLTQiIHdpZHRoPSIyOCIgaGVpZ2h0PSIyOCIgZmlsdGVyVW5pdHM9InVzZXJTcGFjZU9uVXNlIiBjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM9InNSR0IiPjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+PGZlR2F1c3NpYW5CbHVyIGluPSJCYWNrZ3JvdW5kSW1hZ2UiIHN0ZERldmlhdGlvbj0iMiIvPjxmZUNvbXBvc2l0ZSBpbjI9IlNvdXJjZUFscGhhIiBvcGVyYXRvcj0iaW4iIHJlc3VsdD0iZWZmZWN0MV9iYWNrZ3JvdW5kQmx1ciIvPjxmZUJsZW5kIGluPSJTb3VyY2VHcmFwaGljIiBpbjI9ImVmZmVjdDFfYmFja2dyb3VuZEJsdXIiIHJlc3VsdD0ic2hhcGUiLz48L2ZpbHRlcj48bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MF9saW5lYXIiIHgxPSIyMCIgeDI9IjE1LjU4NiIgeTI9IjIyLjk0IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agc3RvcC1jb2xvcj0iIzBEMUUyOCIgc3RvcC1vcGFjaXR5PSIuOCIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzA1MEUxMiIgc3RvcC1vcGFjaXR5PSIuNjUiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=',
clearIcon: '../../static/upload-img-icons/conteng_icon_del.png',
selectfile: 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZpZXdCb3g9IjAgMCA2NCA2NCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB4PSIuMjUiIHk9Ii4yNSIgd2lkdGg9IjYzLjUiIGhlaWdodD0iNjMuNSIgcng9IjMuNzUiIGZpbGw9IiNGMkYyRjIiIHN0cm9rZT0iI0YyRjJGMiIgc3Ryb2tlLXdpZHRoPSIuNSIvPjxyZWN0IHg9IjE2IiB5PSIzMSIgd2lkdGg9IjMyIiBoZWlnaHQ9IjIiIHJ4PSIxIiBmaWxsPSIjQkZCRkJGIi8+PHJlY3QgeD0iMzMiIHk9IjE2IiB3aWR0aD0iMzIiIGhlaWdodD0iMiIgcng9IjEiIHRyYW5zZm9ybT0icm90YXRlKDkwIDMzIDE2KSIgZmlsbD0iI0JGQkZCRiIvPjwvc3ZnPg==',
VideoOfImagesShow: true, // 页面图片或视频数量超出后,拍照按钮隐藏
imageList: [], //存放图片的地址
videoList: [], //视频存放的地址
sourceType: ['拍摄', '相册', '拍摄或相册'],
sourceTypeIndex: 2,
cameraList: [{
value: 'back',
name: '后置摄像头',
checked: 'true'
}, {
value: 'front',
name: '前置摄像头'
}],
cameraIndex: 0, //上传视频时的数量
maxCount: 3 //图片和视频允许上传的总数
}
},
onUnload() {
(this.imageList = []), (this.sourceTypeIndex = 2), (this.sourceType = ['拍摄', '相册', '拍摄或相册']);
},
methods: {
//点击上传图片或视频
chooseVideoImage() {
uni.showActionSheet({
title: '选择上传类型',
itemList: ['图片', '视频'],
success: res => {
console.log(res);
if (res.tapIndex == 0) {
this.chooseImages();
} else {
this.chooseVideo();
}
}
});
},
//上传图片
chooseImages() {
console.log("进入图片上传:", this.imageList)
uni.chooseImage({
count: this.maxCount, //允许选择的数量
sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
sourceType: ['album', 'camera'], //从相册选择
success: res => {
this.imageList = this.imageList.concat(res.tempFilePaths);
console.log("上传的图片:", this.imageList)
if (this.imageList.length + this.videoList.length == this.maxCount) {
this.VideoOfImagesShow = false; //图片上传数量和count一样时,让点击拍照按钮消失
}
}
})
},
//上传视频
chooseVideo(index) {
uni.chooseVideo({
maxDuration: 60, //拍摄视频最长拍摄时间,单位秒。最长支持 60 秒
count: this.maxCount,
camera: this.cameraList[this.cameraIndex].value, //'front'、'back',默认'back'
sourceType: sourceType[this.sourceTypeIndex],
success: res => {
this.videoList = this.videoList.concat(res.tempFilePath);
if (this.imageList.length + this.videoList.length == this.maxCount) {
this.VideoOfImagesShow = false;
}
console.log("上传的视频:", this.videoList);
}
})
},
//预览图片
previewImage: function(e) {
console.log(e)
uni.previewImage({
current: e,
urls: this.imageList
});
},
// 删除图片
delect(index) {
uni.showModal({
title: '提示',
content: '是否要删除该图片',
success: res => {
if (res.confirm) {
this.imageList.splice(index, 1);
}
if (this.imageList.length + this.videoList.length == this.maxCount) {
this.VideoOfImagesShow = false;
} else {
this.VideoOfImagesShow = true;
}
}
});
},
// 删除视频
delectVideo(index) {
uni.showModal({
title: '提示',
content: '是否要删除此视频',
success: res => {
if (res.confirm) {
this.videoList.splice(index, 1);
}
if (this.imageList.length + this.videoList.length == this.maxCount) {
this.VideoOfImagesShow = false;
} else {
this.VideoOfImagesShow = true;
}
}
});
},
}
}
</script>
<style lang="scss">
/* 统一上传后显示的盒子宽高比 */
.box-mode {
width: 176rpx;
height: 176rpx;
border-radius: 8rpx;
overflow: hidden;
}
.full {
width: 100%;
height: 100%;
}
.up-page {
display: flex;
flex-wrap: wrap;
display: flex;
width: 100%;
.show-box:nth-child(3n) {
margin-right: 0;
}
.show-box {
position: relative;
margin-bottom: 4vw;
margin-right: 4vw;
@extend .box-mode;
.delect-icon {
height: 40rpx;
width: 40rpx;
position: absolute;
right: 0rpx;
top: 0rpx;
z-index: 1000;
}
}
}
</style>
...@@ -51,8 +51,8 @@ ...@@ -51,8 +51,8 @@
"path": "tjty_ans_detail/tjty_ans_detail", "path": "tjty_ans_detail/tjty_ans_detail",
"style": { "style": {
"navigationBarTitleText": "赛事活动详情", "navigationBarTitleText": "赛事活动详情",
"enablePullDownRefresh": false, "enablePullDownRefresh": false
"navigationStyle": "custom" // "navigationStyle": "custom"
} }
}, },
{ {
...@@ -79,8 +79,8 @@ ...@@ -79,8 +79,8 @@
"path": "activity/activity", "path": "activity/activity",
"style": { "style": {
"navigationBarTitleText": "赛事活动", "navigationBarTitleText": "赛事活动",
"enablePullDownRefresh": false, "enablePullDownRefresh": false
"navigationStyle": "custom" // "navigationStyle": "custom"
} }
}, },
{ {
...@@ -287,7 +287,8 @@ ...@@ -287,7 +287,8 @@
"path": "tjty_dailyAnswer/tjty_dailyAnswer", "path": "tjty_dailyAnswer/tjty_dailyAnswer",
"style": { "style": {
"navigationBarTitleText": "每日答题", "navigationBarTitleText": "每日答题",
"enablePullDownRefresh": false "enablePullDownRefresh": false,
"navigationStyle": "custom"
} }
}] }]
......
<template> <template>
<view> <view>
<navTop></navTop>
<noData v-if="activityList.length === 0"></noData> <noData v-if="activityList.length === 0"></noData>
<view class="activityContainer" v-if="activityList.length !== 0"> <view class="activityContainer" v-if="activityList.length !== 0">
<view class="activity_item" v-for="(item,index) in activityList" :key="index" @click="gotoDetail(item)"> <view class="activity_item" v-for="(item,index) in activityList" :key="index" @click="gotoDetail(item)">
...@@ -53,7 +52,8 @@ ...@@ -53,7 +52,8 @@
activityList: [], activityList: [],
total: 0, total: 0,
type:'', type:'',
url:'/pages_activity/activity/activity' url:'/pages_activity/activity/activity',
flag:true
}; };
}, },
computed: { computed: {
...@@ -63,18 +63,19 @@ ...@@ -63,18 +63,19 @@
onLoad() { onLoad() {
this.login() this.login()
this.getList() this.getList()
console.log(pages);
}, },
created() { created() {
uni.setStorageSync("title", '赛事活动') // uni.setStorageSync("title", '赛事活动')
}, },
onShow() { onShow() {
uni.setStorageSync('pages','activity') // uni.setStorageSync('pages','activity')
uni.setStorageSync("title", '赛事活动') // uni.setStorageSync("title", '赛事活动')
}, },
// onHide() { onHide() {
// uni.setStorageSync("title", '') // uni.setStorageSync("title", '')
// }, this.flag = true
},
methods: { methods: {
...mapMutations('m_user', ['updateToken']), ...mapMutations('m_user', ['updateToken']),
...mapMutations('m_user', ['updateUserInfo']), ...mapMutations('m_user', ['updateUserInfo']),
...@@ -124,18 +125,21 @@ ...@@ -124,18 +125,21 @@
}); });
}, },
gotoDetail(activity) { gotoDetail(activity) {
if(!this.flag) return
if (activity.type === '1') { console.log("activity",activity);
console.log(activity.type);
if (activity.type == '1') {
uni.navigateTo({ uni.navigateTo({
url: '/pages_activity/activity_detail/activity_detail?activity_id=' + activity.activityId url: '/pages_activity/activity_detail/activity_detail?activity_id=' + activity.activityId
}) })
} else { }
if (activity.type == '2'){
uni.navigateTo({ uni.navigateTo({
url: `/pages_events/tjty_ans_detail/tjty_ans_detail?activityId=${activity.activityId}` url: `/pages_events/tjty_ans_detail/tjty_ans_detail?activityId=${activity.activityId}`
}) })
} }
this.flag = false
} }
}, },
//触底的事件 //触底的事件
...@@ -165,7 +169,7 @@ ...@@ -165,7 +169,7 @@
<style lang="scss"> <style lang="scss">
.activityContainer { .activityContainer {
margin-top: 180rpx; // margin-top: 180rpx;
.activity_item { .activity_item {
margin: 30rpx; margin: 30rpx;
......
<template> <template>
<view class="answer-page"> <view class="answer-page">
<navTop></navTop>
<view style="height: auto;position: relative;padding-bottom: 160rpx;"> <view style="height: auto;position: relative;padding-bottom: 160rpx;">
<view class="answer-top"> <view class="answer-top">
<view class="answer-image"> <view class="answer-image">
...@@ -141,10 +142,19 @@ ...@@ -141,10 +142,19 @@
let flag = this.getDaysBetween(this.flagTime, today) let flag = this.getDaysBetween(this.flagTime, today)
console.log("天数", flag); console.log("天数", flag);
if (flag === 1) { if (flag === 1) {
uni.redirectTo({ if (uni.getSystemInfoSync('pages') === 'activityDetail') {
url: '/pages_events/tjty_ans_detail/tjty_ans_detail?activityId=' + this.activityId uni.navigateBack({
// url: '/pages_events/tjty_ans_detail/tjty_ans_detail?activityId=' + this.activityId
delta: 1
}) })
} else { } else {
uni.navigateBack({
// url: '/pages_events/tjty_ans_detail/tjty_ans_detail?activityId=' + this.activityId
delta: 2
})
}
} else {
// uni.setStorageSync('pages', 'dailyActivity')
console.log(flag); console.log(flag);
this.getFinishSituation() this.getFinishSituation()
this.$refs.popup.close() this.$refs.popup.close()
...@@ -167,14 +177,16 @@ ...@@ -167,14 +177,16 @@
}, },
//改变当前选中的选项字体颜色,显示解析,总分变化 //改变当前选中的选项字体颜色,显示解析,总分变化
selectMe(item, index) { selectMe(item, index) {
if (this.selectColor === 'color: #e02424;') return if (this.selectColor === 'color: #e02424;' || this.selectColor === 'color: #36b25b;') return
this.flag = index this.flag = index
this.selectColor = 'color: #e02424;'
this.selectItem = item.substr(0, 1) this.selectItem = item.substr(0, 1)
if (this.question[this.questionNumber].answer === this.selectItem) { if (this.question[this.questionNumber].answer === this.selectItem) {
this.selectColor = 'color: #36b25b;'
this.score += 10 this.score += 10
this.rightNumber++ this.rightNumber++
this.cumulativeScore += 10 this.cumulativeScore += 10
} else {
this.selectColor = 'color: #e02424;'
} }
this.show = true this.show = true
}, },
...@@ -198,8 +210,10 @@ ...@@ -198,8 +210,10 @@
}, },
// 结束计时,并显示弹出层 // 结束计时,并显示弹出层
pause() { pause() {
if (this.timer) {
this.$refs.popup.open('center') this.$refs.popup.open('center')
console.log("hehe");
if (this.timer) {
clearInterval(this.timer) clearInterval(this.timer)
// this.timer = null // this.timer = null
} }
...@@ -514,10 +528,11 @@ ...@@ -514,10 +528,11 @@
this.begin() this.begin()
this.getFinishSituation() //判断是否完成答题 this.getFinishSituation() //判断是否完成答题
this.getDailyQuestion() this.getDailyQuestion()
uni.setStorageSync('title','每日答题')
// this.getActivityDetail() // this.getActivityDetail()
}, },
onShow() { onShow() {
uni.setStorageSync('pages', 'dailyActivity')
}, },
onHide() { onHide() {
console.log("haha"); console.log("haha");
...@@ -746,14 +761,14 @@ ...@@ -746,14 +761,14 @@
} }
image { image {
margin: 5% 30% 0 30%; margin: 5% 30% 0 25%;
width: 40%; width: 50%;
height: 30%; height: 30%;
border: 1px dashed #009DFF; border: 1px dashed #009DFF;
} }
.popup-scores { .popup-scores {
margin-top: 6%; margin-top: 8%;
margin-left: calc(100%-45px); margin-left: calc(100%-45px);
font-size: 20px; font-size: 20px;
font-family: Source Han Sans CN, Source Han Sans CN-Bold; font-family: Source Han Sans CN, Source Han Sans CN-Bold;
...@@ -767,7 +782,7 @@ ...@@ -767,7 +782,7 @@
height: 15%; height: 15%;
width: 80%; width: 80%;
margin-left: 10%; margin-left: 10%;
margin-top: 6%; margin-top: 8%;
display: flex; display: flex;
.popup-item { .popup-item {
......
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
}) })
return return
} }
uni.reLaunch({ uni.navigateTo({
url:`/pages_daily_answer/tjty_dailyAnswer/tjty_dailyAnswer?signupId=${this.signupId}&activityId=${this.activityId}` url:`/pages_daily_answer/tjty_dailyAnswer/tjty_dailyAnswer?signupId=${this.signupId}&activityId=${this.activityId}`
}) })
}, },
...@@ -88,6 +88,9 @@ ...@@ -88,6 +88,9 @@
this.wechatId = this.userInfo.wechatId this.wechatId = this.userInfo.wechatId
this.activityId = options.activityId this.activityId = options.activityId
this.getRegisterList() this.getRegisterList()
},
onShow() {
uni.setStorageSync('pages','ans_choose')
} }
} }
</script> </script>
......
<template> <template>
<view class="ans_detail-page"> <view class="ans_detail-page">
<navTop></navTop>
<view class="detail-page-content"> <view class="detail-page-content">
<view class="content-image"> <view class="content-image">
<image class="image" :src="activityInfo.bannerImage"></image> <image class="image" :src="activityInfo.bannerImage"></image>
<image class="image-status" src="../../static/oper-icon/content_tag_weikaishi@2x.png" <image class="image-status" src="../../static/oper-icon/content_tag_weikaishi@2x.png"
v-if="activityInfo.activityStatus==='0'"></image> v-if="activityInfo.activityStatus=='0'"></image>
<image class="image-status" src="../../static/oper-icon/content_tag_jinxingzhong@2x.png" <image class="image-status" src="../../static/oper-icon/content_tag_jinxingzhong@2x.png"
v-else-if="activityInfo.activityStatus==='1'"></image> v-else-if="activityInfo.activityStatus=='1'"></image>
<image v-else class="image-status" src="../../static/oper-icon/content_tag_yijieshu@2x.png"></image> <image v-else class="image-status" src="../../static/oper-icon/content_tag_yijieshu@2x.png"></image>
<view class="activity_title"><view style="padding: 2% 4%;">{{activityInfo.activityName}}</view></view>
</view> </view>
<view class="info"> <view class="info">
<view class="item" v-if="activityInfo.signupTime">报名截止:<uni-dateformat format="yyyy-MM-dd" <view class="item" style="height: 75rpx;display: flex;justify-content: space-between;" v-if="activityInfo.signupTime">
:date="activityInfo.signupTime"></uni-dateformat> <view style="width: 25%;">报名截止: </view>
<view style="width: 70%;margin-right: 46rpx;font-size: 30rpx;">{{activityInfo.signupTime}}</view>
</view> </view>
<view class="item" v-if="!activityInfo.signupTime">报名截止: <text
style="margin-left: 34rpx;font-size: 30rpx;"></text></view>
<view class="item" style="height: 75rpx;display: flex;justify-content: space-between;"> <view class="item" style="height: 75rpx;display: flex;justify-content: space-between;">
<view style="width: 25%;">活动时间:</view> <view style="width: 25%;">活动时间:</view>
<view style="width: 70%;margin-right: 46rpx;">{{activityInfo.activityTime}}</view> <view style="width: 70%;margin-right: 46rpx;font-size: 30rpx;">{{activityInfo.activityTime}}</view>
</view> </view>
<view class="item" style="height: 75rpx;display: flex;justify-content: space-between;margin-bottom: 40rpx;"> <view class="item" style="height: 75rpx;display: flex;justify-content: space-between;margin-bottom: 40rpx;">
<view style="width: 25%;">组织机构:</view> <view style="width: 25%;">组织机构:</view>
<view style="width: 70%;margin-right: 46rpx;overflow: hidden;height: 90rpx;">{{activityInfo.mechanismName}}</view> <view style="width: 70%;margin-right: 46rpx;overflow: hidden;height: 90rpx;font-size: 30rpx;">{{activityInfo.mechanismName}}</view>
</view> </view>
</view> </view>
<view style="height: 80rpx;margin-top: 40rpx;"> <view style="height: 80rpx;margin-top: 40rpx;">
...@@ -58,6 +57,7 @@ ...@@ -58,6 +57,7 @@
export default { export default {
data() { data() {
return { return {
activityId:'',
day: -1, //还有几天结束报名 day: -1, //还有几天结束报名
registerFlag: '', //是否报名判断 registerFlag: '', //是否报名判断
activityInfo: {}, activityInfo: {},
...@@ -73,22 +73,22 @@ ...@@ -73,22 +73,22 @@
}, },
onShow() { onShow() {
uni.setStorageSync('pages','activityDetail') uni.setStorageSync('pages','activityDetail')
uni.setStorageSync("title", '赛事活动详情') // uni.setStorageSync("title", '赛事活动详情')
this.getRegister(options.activityId) this.getRegister(this.activityId)
// this.getRegister(+this.activityInfo.activityId)
}, },
onHide() { onHide() {
uni.setStorageSync('pages','activity') // uni.setStorageSync('pages','activity')
uni.setStorageSync("title", '赛事活动') // uni.setStorageSync("title", '赛事活动')
}, },
onLoad(options) { onLoad(options) {
this.activityId = options.activityId
this.getActivityDetial(this.activityId)
this.wechatId = this.userInfo.wechatId this.wechatId = this.userInfo.wechatId
// console.log(options);
this.getActivityDetial(options.activityId)
this.getRegister(options.activityId)
}, },
created() { created() {
uni.setStorageSync("title", '赛事活动详情') // uni.setStorageSync("title", '赛事活动详情')
uni.setStorageSync('pages','activityDetail') // uni.setStorageSync('pages','activityDetail')
}, },
methods: { methods: {
...@@ -184,6 +184,7 @@ ...@@ -184,6 +184,7 @@
console.log(res); console.log(res);
if (res.code === 200) { if (res.code === 200) {
this.activityInfo = res.data this.activityInfo = res.data
console.log(this.activityInfo);
//时间格式处理 //时间格式处理
let index = this.activityInfo.activityEnd.indexOf(' ') let index = this.activityInfo.activityEnd.indexOf(' ')
// this.activityInfo.activityEnd = this.activityInfo.activityEnd.substr(0, index) // this.activityInfo.activityEnd = this.activityInfo.activityEnd.substr(0, index)
...@@ -218,11 +219,11 @@ ...@@ -218,11 +219,11 @@
height: auto; height: auto;
padding-bottom: 75px; padding-bottom: 75px;
position: relative; position: relative;
overflow-x:hidden;
.detail-page-content { .detail-page-content {
margin: 180rpx 20rpx 20rpx 20rpx; margin: 20rpx 20rpx 20rpx 20rpx;
.content-image { .content-image {
border-radius: 30rpx 30rpx 0 0; border-radius: 30rpx 30rpx 0 0;
...@@ -241,16 +242,32 @@ ...@@ -241,16 +242,32 @@
position: absolute; position: absolute;
// padding-left: 84%; // padding-left: 84%;
right: 20rpx; right: 20rpx;
top: 0; top: 20rpx;
width: 120rpx; width: 120rpx;
height: 120rpx; height: 120rpx;
z-index: 9; z-index: 9;
} }
.activity_title{
position: relative;
width: 100%;
height: 72rpx;
opacity: 0.6;
background: #000000;
top: -86rpx;
z-index: 9;
font-size: 18px;
font-family: Source Han Sans CN, Source Han Sans CN-Medium;
font-weight: 500;
text-align: left;
color: #ffffff;
// line-height: 22px;
}
} }
.info { .info {
margin-top: -1%; margin-top: -1%;
min-height: 127px; min-height: 90px;
height: auto; height: auto;
background: #ffffff; background: #ffffff;
border-radius: 0px 0px 16px 16px; border-radius: 0px 0px 16px 16px;
......
...@@ -133,7 +133,7 @@ ...@@ -133,7 +133,7 @@
validateFunction: function(rule, value, data, callback) { validateFunction: function(rule, value, data, callback) {
let nameReg = /^[A-z]{2,16}$|^[\u4E00-\u9FA5]{2,16}$/ let nameReg = /^[A-z]{2,16}$|^[\u4E00-\u9FA5]{2,16}$/
if (!nameReg.test(value)) { if (!nameReg.test(value)) {
callback('名字格式不正确,请重新填写') callback('姓名只能输入汉字或字母,请重新填写')
} }
return true return true
} }
...@@ -147,7 +147,7 @@ ...@@ -147,7 +147,7 @@
validateFunction: function(rule, value, data, callback) { validateFunction: function(rule, value, data, callback) {
let nameReg = /^[A-z]{2,16}$|^[\u4E00-\u9FA5]{2,16}$/ let nameReg = /^[A-z]{2,16}$|^[\u4E00-\u9FA5]{2,16}$/
if (!nameReg.test(value)) { if (!nameReg.test(value)) {
callback('名字格式不正确,请重新填写') callback('姓名只能输入汉字或字母,请重新填写')
} }
return true return true
} }
...@@ -222,6 +222,7 @@ ...@@ -222,6 +222,7 @@
this.getArea() this.getArea()
this.getActivityDetial(options.activityId) this.getActivityDetial(options.activityId)
this.getPerson() this.getPerson()
uni.setStorageSync('pages','ans_info')
}, },
onReady() { onReady() {
this.$refs.form.setRules(this.rules) this.$refs.form.setRules(this.rules)
......
...@@ -77,11 +77,8 @@ ...@@ -77,11 +77,8 @@
getPersonnelListAxios, getPersonnelListAxios,
submitOpusAxios submitOpusAxios
} from '../../api/personnel'; } from '../../api/personnel';
import uploadFile from '@/components/video-or-img-upload/video-or-img-upload.vue';
export default { export default {
components: {
uploadFile
},
data() { data() {
return { return {
......
...@@ -5,9 +5,9 @@ const url_all = { ...@@ -5,9 +5,9 @@ const url_all = {
// 'DEV': 'http://192.168.1.13:8080', // 英伟姐 // 'DEV': 'http://192.168.1.13:8080', // 英伟姐
// DEV: "http://116.205.136.218:8088/api", //线上服务 // DEV: "http://116.205.136.218:8088/api", //线上服务
// 'DEV': 'http://127.0.0.1:8080', // 开发 // 'DEV': 'http://127.0.0.1:8080', // 开发
// 'DEV': 'http://192.168.1.4:8080' 'DEV': 'http://192.168.1.4:8080'
// 'DEV': 'http://192.168.0.72:8080' // 'DEV': 'http://192.168.0.72:8080'
'DEV':'https://www.aiwanyundong.com/api' // 'DEV':'https://www.aiwanyundong.com/api'
}; };
let BASEURL = url_all["DEV"]; let BASEURL = url_all["DEV"];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment