shop-list.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <template>
  2. <view>
  3. <view v-if="(data_list || null) != null && data_list.length > 0" class="plugins-shop-data-list oh">
  4. <block v-for="(item, index) in data_list" :key="index">
  5. <view class="item oh border-radius-main padding-main bg-white arrow-right spacing-mb">
  6. <view :data-value="item.url" @tap="url_event">
  7. <image :src="item.logo" mode="aspectFit" class="logo circle fl br"></image>
  8. <view class="right-content fr">
  9. <view class="title single-text">
  10. <!-- 认证信息 -->
  11. <view v-if="(config.is_enable_auth || 0) == 1 && ((item.auth_type != -1 && (item.auth_type_msg || null) != null) || ((item.bond_status || 0) == 1 && (item.bond_status_msg || null) != null))" class="auth-icon dis-inline-block">
  12. <!-- 实名认证 -->
  13. <block v-if="item.auth_type != -1 && (item.auth_type_msg || null) != null">
  14. <block v-if="item.auth_type == 0">
  15. <image :src="config.shop_auth_personal_icon" class="icon va-m" mode="aspectFill"></image>
  16. </block>
  17. <block v-if="item.auth_type == 1">
  18. <image :src="config.shop_auth_company_icon" class="icon va-m" mode="aspectFill"></image>
  19. </block>
  20. </block>
  21. <!-- 保证金认证 -->
  22. <block v-if="(item.bond_status || 0) == 1 && (item.bond_status_msg || null) != null">
  23. <image :src="config.shop_auth_bond_icon" class="icon va-m" mode="aspectFill"></image>
  24. </block>
  25. </view>
  26. <!-- 标题 -->
  27. <text class="fw-b text-size va-m">{{item.name}}</text>
  28. </view>
  29. <view class="desc multi-text cr-base text-size-xs margin-top-sm">{{item.describe}}</view>
  30. </view>
  31. </view>
  32. </view>
  33. </block>
  34. </view>
  35. </view>
  36. </template>
  37. <script>
  38. const app = getApp();
  39. export default {
  40. data() {
  41. return {
  42. config: {},
  43. data_list: []
  44. };
  45. },
  46. components: {},
  47. props: {
  48. propConfig: {
  49. type: [String,Object],
  50. default: null
  51. },
  52. propDataList: {
  53. type: Array,
  54. default: () => []
  55. }
  56. },
  57. // 属性值改变监听
  58. watch: {
  59. },
  60. // 页面被展示
  61. created: function(e) {
  62. var config = ((this.propConfig || null) == null ? app.globalData.get_config('plugins_base.shop.data') : this.propConfig) || {};
  63. this.setData({
  64. config: config,
  65. data_list: this.propDataList
  66. });
  67. },
  68. methods: {
  69. // url事件
  70. url_event(e) {
  71. app.globalData.url_event(e);
  72. }
  73. }
  74. };
  75. </script>
  76. <style>
  77. </style>