瀏覽代碼

修改背景图

DESKTOP-SVI9JE1\muzen 2 年之前
父節點
當前提交
ee8633ad2c
共有 1 個文件被更改,包括 5 次插入2 次删除
  1. 5 2
      src/pages/activity/index.vue

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

@@ -1,6 +1,6 @@
 <template>
   <view class='app-container'>
-    <img :src="pic" />
+    <image :src="pic" mode="aspectFill"  />
     <button class="submit" type="submit" circle @click="getSubmit">立即兑换</button>
 
     <!-- 弹窗 -->
@@ -82,10 +82,13 @@ export default {
 <style lang="scss" scoped>
 .app-container {
   padding: 0;
+  height: 100%;
+  overflow: hidden;
 }
 
-img {
+uni-image {
   width: 100%;
+  height: 100%;
 }
 
 .submit {