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
| <template>
| <view class="content">
| <u-loading-page :loading="loading"></u-loading-page>
| <view v-html="content"></view>
| </view>
| </template>
|
| <script>
| export default {
| data() {
| return {
| loading:true,
| t:"",
| content:"",
| };
| },
| onLoad(o) {
| if(o.t){
| this.t = o.t
| this.title = o.title
| uni.setNavigationBarTitle({
| title:o.title
| })
| this.getHtml()
| }
| },
| methods:{
| getHtml(){
| if(this.t == 16){
| this.$apis.app.getDescribe({type:this.t,portType:1}).then(res=>{
| this.loading = false
| if(this.title == '充值说明'){
| this.content = res.data.rechargeContent
| }else{
| this.content = res.data.useContent
| }
| })
| return
| }
| this.$apis.app.protocol({type:this.t,portType:1}).then(res=>{
| this.loading = false
| this.content = res.data.content1
| })
| }
| }
| }
| </script>
|
| <style lang="scss">
| .content{
| padding: 26rpx;
| }
| </style>
|
|