Commit 8b958f6e authored by mengcuiguang's avatar mengcuiguang

1.2.0小书改版

parent 3f5ee58b
<template> <template>
<view class="cover-box" @click.stop="tapItem" @longpress.stop="longClick"> <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 v-if="!last" class="cover" :src="item.avatar" mode="aspectFill">
</image> </image>
<image v-else class="cover" src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_book_more.png" <image v-else class="cover" src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_book_more.png"
......
...@@ -2,9 +2,7 @@ ...@@ -2,9 +2,7 @@
<view class="detail-buy"> <view class="detail-buy">
<view class="book-card"> <view class="book-card">
<view class="cover-box"> <view class="cover-box">
<image v-show="imageError" class="cover" src="/static/images/image_error.png" mode="aspectFill"></image> <image class="cover" :src="detail.avatar" mode="aspectFill"></image>
<image V-show="!imageError" class="cover" :src="detail.avatar" mode="aspectFill" @load="loadImage"
@error="errorImage"></image>
</view> </view>
<view class="info-box"> <view class="info-box">
<view class="row"> <view class="row">
...@@ -161,12 +159,6 @@ ...@@ -161,12 +159,6 @@
this.refreshPackData(); this.refreshPackData();
}, },
methods: { methods: {
loadImage() {
this.imageError = false
},
errorImage() {
this.imageError = true
},
refreshPackData() { refreshPackData() {
// getPackData((success, data) => { // getPackData((success, data) => {
// if (success) { // if (success) {
......
...@@ -2,9 +2,7 @@ ...@@ -2,9 +2,7 @@
<view class="detail-thumb" @click="tapThumb"> <view class="detail-thumb" @click="tapThumb">
<view class="content"> <view class="content">
<view class="cover-box item"> <view class="cover-box item">
<image v-show="imageError" class="cover" src="/static/images/image_error.png" mode="aspectFill"></image> <image class="cover" :src="detail.avatar" mode="aspectFill"></image>
<image V-show="!imageError" class="cover" :src="detail.avatar" mode="aspectFill" @load="loadImage"
@error="errorImage"></image>
</view> </view>
<view class="info-box item"> <view class="info-box item">
<view class="row"> <view class="row">
...@@ -53,12 +51,6 @@ ...@@ -53,12 +51,6 @@
data: this.detail data: this.detail
} }
}) })
},
loadImage() {
this.imageError = false
},
errorImage() {
this.imageError = true
} }
} }
} }
......
export const PAKEAGE_NAME = 'com.duben.dybookyx' 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 const PAKEAGE_NAME = 'com.test.test'
export function trim(str) { 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