uni-app 引用

// 引用组件
import uniDrawer from "@../../components/uni-drawer/uni-drawer.vue"
export default {
        components: {
            uniDrawer
        }
             }

// 引用图片
import weixin from '../../static/kaika_xuanren/jiezhang-icon-wxzf@2x.png'

payStype: [{
                        name: "微信支付",
                        image: weixin
                    },
                    {
                        name: "支付宝支付",
                        image: require('@../../static/kaika_xuanren/jiezhang-icon-zfbzf@2x.png')
                    },
                    {
                        name: "现金支付",
                        image: '../../static/kaika_xuanren/jiezhang-icon-xjzf@3x.png'
                    }
                ]     

// 引用css
 @import url("align-items.css");
原文地址:https://www.cnblogs.com/wo1ow1ow1/p/11205751.html