<template>
  <view class="min-height bg-gray-light">
<!--    <image src="https://img.ggsxiangan.com/pay_banner.png" style="width: 100%" mode="widthFix"></image>-->
    <view class="p-20">
      <view class="card mb-20 flex justify-between items-center" style="border-radius: 10rpx"
            @click="toMiniApp(item.appId)"
            v-for="(item, index) in list" :key="index">
        <view class="flex justify-start items-center">
          <u-icon :name="item.icon" size="80rpx"/>
          <view class="ml-20 flex flex-col justify-start items-start">
            <text class="text-26">{{ item.label }}</text>
            <text class="tips mt-20">点击查看详情</text>
          </view>
        </view>
        <u-button color="#E7624B" custom-style="width: 200rpx; margin: 0" size="small">查看详情</u-button>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  name: "bank",
  data() {
    return {
      list: [
        {
          label: '滴滴出行',
          icon: 'https://img.ggsxiangan.com/滴滴出行.png',
          appId: 'wxaf35009675aa0b2a'
        },
        {
          label: '滴答出租车',
          icon: 'https://img.ggsxiangan.com/嘀嗒.png',
          appId: 'wxcee6d1cec9466b88'
        },
        {
          label: 'ETC助手',
          icon: 'https://img.ggsxiangan.com/ETC.png',
          appId: 'wxb17f5d5d01db8949'
        },
        {
          label: '易捷加油',
          icon: 'https://img.ggsxiangan.com/易捷.png',
          appId: 'wxbfe24664b9cf5b3b'
        },
        {
          label: '一嗨租车',
          icon: 'https://img.ggsxiangan.com/一嗨租车.png',
          appId: 'wx8b35f9f8192dd805'
        },
        {
          label: '车来了',
          icon: 'https://img.ggsxiangan.com/车来了.png',
          appId: 'wx71d589ea01ce3321'
        },
      ]
    }
  },
  methods: {
    toMiniApp(appId) {
      uni.navigateToMiniProgram({
        appId
      })
    }
  }
}
</script>