Commit 8b958f6e authored by mengcuiguang's avatar mengcuiguang

1.2.0小书改版

parent 3f5ee58b
<template>
<view class="cover-box" @click.stop="tapItem" @longpress.stop="longClick">
<!-- <image v-show="imageError" class="cover" src="/static/images/image_error.png" mode="aspectFill"></image> -->
<image v-if="!last" class="cover" :src="item.avatar" mode="aspectFill">
</image>
<image v-else class="cover" src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_book_more.png"
......
......@@ -2,9 +2,7 @@
<view class="detail-buy">
<view class="book-card">
<view class="cover-box">
<image v-show="imageError" class="cover" src="/static/images/image_error.png" mode="aspectFill"></image>
<image V-show="!imageError" class="cover" :src="detail.avatar" mode="aspectFill" @load="loadImage"
@error="errorImage"></image>
<image class="cover" :src="detail.avatar" mode="aspectFill"></image>
</view>
<view class="info-box">
<view class="row">
......@@ -161,12 +159,6 @@
this.refreshPackData();
},
methods: {
loadImage() {
this.imageError = false
},
errorImage() {
this.imageError = true
},
refreshPackData() {
// getPackData((success, data) => {
// if (success) {
......
......@@ -2,9 +2,7 @@
<view class="detail-thumb" @click="tapThumb">
<view class="content">
<view class="cover-box item">
<image v-show="imageError" class="cover" src="/static/images/image_error.png" mode="aspectFill"></image>
<image V-show="!imageError" class="cover" :src="detail.avatar" mode="aspectFill" @load="loadImage"
@error="errorImage"></image>
<image class="cover" :src="detail.avatar" mode="aspectFill"></image>
</view>
<view class="info-box item">
<view class="row">
......@@ -53,12 +51,6 @@
data: this.detail
}
})
},
loadImage() {
this.imageError = false
},
errorImage() {
this.imageError = true
}
}
}
......
export const PAKEAGE_NAME = 'com.duben.dybookyx'
export const VERSION_CODE = '1.0.5'
export const VERSION_CODE = '1.2.0'
// export const PAKEAGE_NAME = 'com.test.test'
export function trim(str) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment