<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: "express",
  data() {
    return {
      list: [
        {
          label: '京东',
          icon: 'https://img.ggsxiangan.com/京东-01.png',
          appId: 'wx73247c7819d61796'
        },
        {
          label: '顺丰',
          icon: 'https://img.ggsxiangan.com/顺丰速递,顺丰快递.png',
          appId: 'wxd4185d00bf7e08ac'
        },
        {
          label: '达达',
          icon: 'https://img.ggsxiangan.com/达达配送.png',
          appId: 'wxcecfde2bc765c661'
        },
        {
          label: '中通',
          icon: 'https://img.ggsxiangan.com/中通.png',
          appId: 'wx7ddec43d9d27276a'
        },

        {
          label: '韵达',
          icon: 'https://img.ggsxiangan.com/韵达.png',
          appId: 'wxdeb5309aa3e93fd1'
        },

        {
          label: '邮政',
          icon: 'https://img.ggsxiangan.com/邮政.png',
          appId: 'wxae1d5ef6ebc12550'
        },

      ]
    }
  },
  methods: {
    toMiniApp(appId) {
      uni.navigateToMiniProgram({
        appId
      })
    }
  }
}
</script>