projectIntroduction.vue
1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<template>
<view class="page">
<view class="head">
<view class="logo-title">
<image @click="goBack" src="../../static/left.png"></image>
项目介绍
</view>
<view class="title">
</view>
<view class="setting-mess"></view>
</view>
<view class="main">
<!-- 订单tab -->
<view class="order-tab" :style="'background-color: rgba(255,255,255,'+(scrollTop/50)+');'">
<view class="tab" :class="{'action':OrderType == item.id}" @click="onOrderTab(item.id)" v-for="item in list">
<text>{{item.title}}</text>
<text class="line"></text>
</view>
</view>
<!-- 列表 -->
<view class="order-list" v-if="OrderType=== item.id" v-for="item in list">
<view v-html="item.content"></view>
<view><image src="../../static/img/1.png" mode="widthFix"></image></view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
OrderType: 1,
scrollTop: 0,
list:[]
};
},
onPageScroll(e) {
this.scrollTop = e.scrollTop;
},
onLoad() {
this.xmjs();
},
methods:{
xmjs(){
this.API.xmjs().then(res=>{
console.log("项目介绍",res);
this.list = res.data
})
},
goBack() {
uni.navigateBack({
delta: 1
});
},
onOrderTab(type){
this.OrderType = type;
},
myorderdetail(){
uni.navigateTo({
url: '/pages/myorderdetail/myorderdetail',
})
},
}
}
</script>
<style scoped lang="scss">
@import 'projectIntroduction.scss';
</style>