Commit 903f6510 authored by 罗超's avatar 罗超

1

parent e3485307
<template> <template>
<!-- 政策详情 --> <!-- 政策详情 -->
<view class="policyDetail"> <view class="policyDetail">
<u-tabs :list="typeList" :current="active" name="Name" :is-scroll="false" @change="changeHandler" <view class="tab-box">
:active-color="mainColor" bg-color="#FFF" :bar-style="barStyle" height="100"></u-tabs> <u-tabs :list="typeList" :current="active" name="Name" :is-scroll="false" @change="changeHandler"
:active-color="mainColor" bg-color="#FFF" :bar-style="barStyle" height="100"></u-tabs>
</view>
<view class="officialNotice"> <view class="officialNotice">
<view class="title"> <view class="title" id="notice">
官方公告信息 官方公告信息
</view> </view>
<view class="desc"> <view class="desc">
...@@ -49,13 +52,13 @@ ...@@ -49,13 +52,13 @@
</view> </view>
</view> </view>
<view class="title"> <view class="title" id="buyTicket">
购票须知 购票须知
</view> </view>
<view class="desc"> <view class="desc">
<rich-text :nodes="details.BookingInfo"></rich-text> <rich-text :nodes="details.BookingInfo"></rich-text>
</view> </view>
<view class="title"> <view class="title" id="tip">
温馨提示 温馨提示
</view> </view>
<view class="desc"> <view class="desc">
...@@ -94,13 +97,25 @@ ...@@ -94,13 +97,25 @@
}, },
onLoad(options) { onLoad(options) {
console.log(options)
this.ID = options.id this.ID = options.id
this.getDetail() this.getDetail()
}, },
methods: { methods: {
changeHandler(i) { changeHandler(i) {
this.active = i; this.active = i;
let toID=""
if(i===0){
toID="#notice"
}else if(i==1){
toID="#buyTicket"
}else if(i==2){
toID="#tip"
}
uni.pageScrollTo({
// scrollTop: 0,
selector:toID,
duration: 300
});
}, },
//获取详情 //获取详情
getDetail() { getDetail() {
...@@ -124,7 +139,14 @@ ...@@ -124,7 +139,14 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.tab-box{
width: 750rpx;
position: fixed;
top: 0;
left: 0;
}
.policyDetail { .policyDetail {
margin-top: 100rpx;
.officialNotice { .officialNotice {
padding: 0 45rpx 90rpx; padding: 0 45rpx 90rpx;
......
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