소스 검색

修复活动背景图未全部展示

DESKTOP-SVI9JE1\muzen 2 년 전
부모
커밋
26ba05dc54
1개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  1. 5 4
      src/pages/activity/index.vue

+ 5 - 4
src/pages/activity/index.vue

@@ -1,6 +1,6 @@
 <template>
   <view class='app-container'>
-    <image :src="pic" mode="aspectFill" />
+    <img :src="pic" />
     <button class="submit" type="submit" circle @click="getSubmit">立即兑换</button>
 
     <!-- 弹窗 -->
@@ -86,18 +86,19 @@ export default {
 <style lang="scss" scoped>
 .app-container {
   padding: 0;
-  height: 100%;
   overflow: hidden;
+  position: relative;
 }
 
-uni-image {
+img {
   width: 100%;
   height: 100%;
+  display: block;
 }
 
 .submit {
   position: absolute;
-  bottom: 40rpx;
+  bottom: 20rpx;
   left: 50%;
   transform: translate(-50%);
   width: calc(100% - 120rpx);