price.vue 849 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <template>
  2. <view class="my-content">
  3. <view class="item" >
  4. <image @click="showImg()" :src="imgurl"></image>
  5. </view>
  6. </view>
  7. </template>
  8. <script>
  9. export default {
  10. data() {
  11. return {
  12. imgurl:"https://cos.his.cdwjyyh.com/fs/20240808/86168944af9b47bb870461364f824ca6.jpg"
  13. }
  14. },
  15. onLoad(val) {
  16. },
  17. methods: {
  18. showImg() {
  19. //预览图片
  20. var urls=[];
  21. urls.push(this.imgurl)
  22. uni.previewImage({
  23. urls: urls,
  24. current: 0
  25. });
  26. },
  27. }
  28. }
  29. </script>
  30. <style scoped lang="scss">
  31. page{
  32. height: 100%;
  33. }
  34. .my-content{
  35. width: 100%;
  36. display: flex;
  37. flex-direction: column;
  38. justify-content: center;
  39. align-items: center;
  40. .item{
  41. display: flex;
  42. flex-direction: row;
  43. justify-content: center;
  44. align-items: center;
  45. margin: 30rpx;
  46. width: 100%;
  47. image{
  48. }
  49. }
  50. }
  51. </style>