lin
2026-05-08 e36332537a982bb196adf98229aaa5451d2b6922
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<script>
 
export default {
  name: "index",
  data() {
    return {
      list: [],
      $webHost:'https://rbb98765.zrgy-bbg.com',
    }
  },
  created() {
    const _this = this;
    uni.request( {
      url: _this.$webHost + "/api/v2/renpin/H5/getPlatformProtocolNew",
      data: {
        customerId: uni.getStorageSync('ygxLogin').customerId,
        appId: uni.getStorageSync('ygxLogin').appId
      },
      method: 'GET',
      success(res) {
        _this.list = res.data.data;
      }
    })
 
  },
  methods: {
    open() {
      this.$refs.agreement.open();
    },
    toProtocol(e){
      console.log(e);
      let title = e.name;
      let code = e.code;
      uni.navigateTo({
        url: `/pages/web/xieyi?code=${code}&title=${title}`
      });
      console.log('选中该项:',e);
    },
  }
}
</script>
 
<template>
  <uv-popup ref="agreement"  mode="bottom"
            round="24rpx"
            zIndex="3">
    <uv-cell-group>
      <view class="popup-title">
        <view style="margin: auto;text-align: center;padding: 20rpx;">请阅读以下协议</view>
      </view>
      <view class="setting-list-item">
        <view
            class="setting-text"
            style="font-size: 32rpx; font-weight: bold; justify-content: left;padding-left: 30rpx;"
        >平台服务协议</view
        >
      </view>
      <view class="list" style="height: 50vh;overflow: scroll;">
        <view class="li" @click="toProtocol(item)" v-for="(item,index) in list" :key="index" >
 
          <view style="font-size: 30rpx">{{item.name}}</view>
          <view class="arrow"></view>
        </view>
      </view>
    </uv-cell-group>
  </uv-popup>
</template>
 
<style scoped lang="scss">
.list {
  overflow: auto;
}
.popup-title {
  font-size: 36rpx;
  font-weight: 600;
  color: #252938;
  display: flex;
  flex-direction: row;
  justify-content: center;
 
  margin: auto;
  margin-top: 38rpx;
  text-align: center;
}
.setting-list-item {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  border-bottom: solid 1rpx #dcdcdc;
  padding-left: 23rpx;
  padding-right: 8rpx;
  padding-top: 30rpx;
  padding-bottom: 30rpx;
}
.setting-text {
  font-size: 28rpx;
  color: #000000;
}
.li{
  padding: 20rpx 30rpx;
  color:#303133;
  border-bottom: 1rpx solid #dcdcdc;
  position: relative;
  font-size: 30rpx;
  .arrow{
    width: 15rpx;
    height: 15rpx;
    border-top: 1rpx solid #909399;
    border-right: 1rpx solid #909399;
    transform: rotate(45deg);
    position: absolute;
    top: 30rpx;
    right: 40rpx;
  }
}
</style>