<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: 'wx6b79d40cb232628e'
        },
        {
          label: '建设银行',
          icon: 'https://img.ggsxiangan.com/建设银行.png',
          appId: 'wx307e11636e7679c6'
        },
        {
          label: '农业银行',
          icon: 'https://img.ggsxiangan.com/农业银行.png',
          appId: 'wxcfa496c3eca687e7'
        },
        {
          label: '交通银行',
          icon: 'https://img.ggsxiangan.com/交通银行.png',
          appId: 'wxd04128eb6f38a0c7'
        },

        {
          label: '招商银行',
          icon: 'https://img.ggsxiangan.com/招商银行.png',
          appId: 'wx4bb4bc501f1da1d7'
        },
      ]
    }
  },
  methods: {
    toMiniApp(appId) {
      uni.navigateToMiniProgram({
        appId
      })
    }
  }
}
</script>