master
秦子超 2024-07-01 14:27:40 +08:00
parent 9bd7ce6ca9
commit ac8ac04469
4 changed files with 49 additions and 7 deletions

View File

@ -147,7 +147,14 @@
<text class="lf">附件:</text>
<div class="rf">
<text v-if="imgList.length===0">{{getRecord.fileIds || ''}}</text>
<u-image :style="{marginTop:'10px'}" v-for="item in imgList" :src="'http://223.75.53.141:9102/test.by-lyf.tmp'+item.filePath" width="100%" mode="aspectFit" ></u-image>
<u-image
:style="{marginTop:'10px'}"
v-for="item in imgList"
:src="'http://223.75.53.141:9102/test.by-lyf.tmp'+item.filePath"
width="100%"
mode="aspectFit"
@click="previewImage(0,'http://223.75.53.141:9102/test.by-lyf.tmp'+item.filePath)"
></u-image>
</div>
</div>
<div :style="{height:'20vh'}"></div>
@ -208,7 +215,14 @@
this.getState()
}
}
}
},
previewImage(index,url) {
// 使uni.previewImage
uni.previewImage({
current: index,
urls: [url]
});
}
},
onLoad(props){
const record = JSON.parse(props.obj)

View File

@ -157,7 +157,14 @@
<text class="lf">附件:</text>
<div class="rf">
<text v-if="imgList.length===0">{{getRecord.fileIds || ''}}</text>
<u-image :style="{marginTop:'10px'}" v-for="item in imgList" :src="'http://223.75.53.141:9102/test.by-lyf.tmp'+item.filePath" width="100%" mode="aspectFit" ></u-image>
<u-image
:style="{marginTop:'10px'}"
v-for="item in imgList"
:src="'http://223.75.53.141:9102/test.by-lyf.tmp'+item.filePath"
width="100%"
mode="aspectFit"
@click="previewImage(0,'http://223.75.53.141:9102/test.by-lyf.tmp'+item.filePath)"
></u-image>
</div>
</div>
<div :style="{height:'20vh'}"></div>
@ -218,7 +225,14 @@
this.getState()
}
}
}
},
previewImage(index,url) {
// 使uni.previewImage
uni.previewImage({
current: index,
urls: [url]
});
}
},
onLoad(props){
const record = JSON.parse(props.obj)

View File

@ -198,7 +198,14 @@
<text class="lf">附件:</text>
<div class="rf">
<text v-if="imgList.length===0">{{getRecord.fileIds || ''}}</text>
<u-image :style="{marginTop:'10px'}" v-for="item in imgList" :src="'http://223.75.53.141:9102/test.by-lyf.tmp'+item.filePath" width="100%" mode="aspectFit" ></u-image>
<u-image
:style="{marginTop:'10px'}"
v-for="item in imgList"
:src="'http://223.75.53.141:9102/test.by-lyf.tmp'+item.filePath"
width="100%"
mode="aspectFit"
@click="previewImage(0,'http://223.75.53.141:9102/test.by-lyf.tmp'+item.filePath)"
></u-image>
</div>
</div>
<div :style="{height:'20vh'}"></div>
@ -259,7 +266,14 @@
this.getState()
}
}
}
},
previewImage(index,url) {
// 使uni.previewImage
uni.previewImage({
current: index,
urls: [url]
});
}
},
onLoad(props){
const record = JSON.parse(props.obj)

View File

@ -23,7 +23,7 @@
/>
</uni-forms-item>
<uni-forms-item>
<checkbox :checked="false" @click="handleChange(formData)" /><text
<checkbox :checked="formData.checked" @click="handleChange(formData)" /><text
>记住用户名和密码</text
>
</uni-forms-item>