fuint-uniapp-master/pages/prestore/components/Popup.vue

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<template>
  <coupon-popup :value="value" @input="onChangeValue" :couponInfo="couponInfo" :storeRule="storeRule" border-radius="20" :maskCloseAble="true"
    @open="openPopup" @close="closePopup"/>
</template>

<script>
  import { setCartTotalNum } from '@/utils/app'
  import * as CartApi from '@/api/cart'
  import CouponPopup from '@/components/prestore-popup'

  export default {
    components: {
      CouponPopup
    },
    props: {
      // true 组件显示 false 组件隐藏
      value: {
        Type: Boolean,
        default: false
      },
      // 卡券详情信息
      couponInfo: {
        type: Object,
        default: {}
      },
	  // 预存规则
	  storeRule: {
		type: Array,
		default: []
	  }
    },

    data() {
      return {}
    },

    created() {
      // empty
    },

    methods: {

      // 监听组件显示隐藏
      onChangeValue(val) {
        this.$emit('input', val)
      },

      /**
       * 获取卡券信息
       */
      findCouponInfo() {
        return new Promise((resolve, reject) => {
          resolve(couponInfo)
        })
      },

      // sku组件 开始-----------------------------------------------------------
      openPopup() {
        // console.log("监听 - 打开sku组件")
      },
后面还有 11 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。