<input @confirm="confirm" v-model.trim="couponCode" placeholder="请输入劵号" placeholder-class="place-font"/>
.border { position: relative; border: 4px solid transparent; border-radius: 16px; background: linear-gradient(orange, violet); background-clip: padding-box; padding: 10px; } .border::after { position: absolute; top: -4px; bottom: -4px; left: -4px; right: -4px; background: linear-gradient(red, blue); content: ''; z-index: -1; border-radius: 16px; }
方法二:在当前div外面包裹一层divcss
.one { width: 300px; height: 100px; border-radius: 25px; overflow: hidden; } .box { border: 30px solid; border-image: linear-gradient(red, yellow) 10; }
button::after{ border:none; }
static uploadFile (filePath) { if (this.isWx) { return new Promise((resolve, reject) => { wx.uploadFile({ url: config.baseURL + 'bc/v1/storage', filePath, header: { authorization: this.getStorageSync(`token`) }, name: 'file', success (res) { resolve(JSON.parse(res.data)) }, fail (err) { reject(err) } }) }) } }