| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <template>
- <view class="back">
- <view class="operatorList" v-for="item in operators" :key="item.number" @tap="showDetail"
- :data-code="item.code">
- <image class="image1" src="../../static/运营商管理/1@3x.png"></image>
- <text style="margin-top: 38rpx;margin-left: 30rpx; width: 500rpx;">{{item.name}}</text>
- <image class="image2" src="../../static/运营商管理/ico2@3x.png"></image>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- operators: [],
- }
- },
- onLoad() {
- uni.request({
- url: 'http://127.0.0.1:9999/operator/list',
- method: 'GET',
- data: {},
- success: res => {
- this.operators = res.data.data.operators;
- console.log(res.data.data.operators);
- },
- })
- },
- methods: {
- showDetail(e) {
- console.log(e);
- var code = e.currentTarget.dataset.code;
- uni.navigateTo({
- url: '/pages/operator/operatorInfo/operatorInfo?code=' + code,
- });
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .operatorList {
- display: flex;
- flex-direction: row;
- height: 125rpx;
- background-color: white;
- margin-top: 30rpx;
- width: 704rpx;
- margin-left: 23rpx;
- border-radius: 10rpx;
- }
- .image1 {
- width: 90rpx;
- height: 90rpx;
- margin-top: 20rpx;
- margin-left: 20rpx;
- }
- .image2 {
- width: 10px;
- height: 10px;
- margin-top: 50rpx;
- // margin-left: 400rpx;
- }
- .back {
- background-color: aliceblue;
- width: 100%;
- height: 100%;
- }
- </style>
|