From 4a9955330070cf8abd78d95aaa2067d9a06a88c3 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期二, 07 五月 2024 10:05:59 +0800 Subject: [PATCH] 各页面bug修改 --- packageDomain/pages/resourceDetails/document/index.wxml | 54 +++++++++++++++++++++++++++++++++++------------------- 1 files changed, 35 insertions(+), 19 deletions(-) diff --git a/packageDomain/pages/resourceDetails/document/index.wxml b/packageDomain/pages/resourceDetails/document/index.wxml index 0d962cc..a16d7be 100644 --- a/packageDomain/pages/resourceDetails/document/index.wxml +++ b/packageDomain/pages/resourceDetails/document/index.wxml @@ -1,4 +1,4 @@ -<view style="width: 100%; height: {{barHeight}}px; "></view> +<!-- <view style="width: 100%; height: {{barHeight}}px; "></view> <view class="nacigationBar" style="width: 70%; height: {{navBarHeight}}px;"> <view> <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" /> @@ -6,14 +6,20 @@ <view class="navbar-title">璧勬簮璇︽儏</view> </view> +--> + <view class="titleNameBox" wx:if="{{selectType != 'webpage'}}"> {{titleName}} </view> - - - +<!-- bind:tap="onClick" --> <view class="pictureBox" wx:if="{{selectType == 'picture'}}"> - <image src="{{showData}}" mode="aspectFit" /> + <!-- style="width: {{(newScale <= 5 ? newScale: 5) * 100}}%;" --> + <image + src="{{showData}}" + mode="widthFix" + data-src="{{showData}}" + bindtap="preview" + /> </view> <view wx:if="{{selectType == 'zip'}}"> @@ -21,28 +27,38 @@ <image src="/static/images/document/zip200px.png" mode="aspectFill" /> </view> - <view class="button-example"> - <t-button size="large" bind:tap="onDownloadButton"> - <view class="text"> - 涓嬭浇 - </view> + <t-button size="large" bind:tap="onDownloadButton" class="download-btn"> + <view class="text"> 涓嬭浇 </view> </t-button> </view> </view> - <view wx:if="{{selectType == 'pdf' || selectType == 'document'}}"> - <view wx:for="{{naturalResources}}" wx:key="index" wx:for-item="item" wx:for-index="index"> - - <image src="{{item}}" alt="" style="min-height: 550px;"></image> + <view + wx:for="{{naturalResources}}" + wx:key="index" + wx:for-item="item" + wx:for-index="index" + > + <image src="{{item}}" alt="" style="min-height: 550px"></image> <view class="divider">绗� {{index + 1}} 椤�</view> </view> - </view> - - - <web-view wx:if="{{selectType == 'webpage'}}" src="{{webpageSrc}}"></web-view> -<!-- <button bind:tap="handleTap">鐐逛綅</button> --> \ No newline at end of file +<!-- <button bind:tap="handleTap">鐐逛綅</button> --> + +<!-- <t-button theme="primary" size="large" variant="outline" block>鍩虹鍥剧墖棰勮</t-button> --> +<t-toast id="t-toast" /> +<t-image-viewer + usingCustomNavbar + deleteBtn="{{deleteBtn}}" + closeBtn="{{closeBtn}}" + showIndex="{{showIndex}}" + visible="{{visible}}" + images="{{images}}" + bind:change="onChange" + bind:delete="onDelete" + bind:close="onClose" +></t-image-viewer> -- Gitblit v1.9.1