Vue使用背景图片
<view class='buttonBuy' :style="buttonImg">
buttonImg: {
backgroundImage:
"url(" +
require("@/static/images/activityTemplate/activityTwo/button.png") +
")",
backgroundRepeat: "no-repeat",
backgroundSize: "cover"
}
注:以上内容仅用于日常学习