瀏覽代碼

修复

活动页面图片
RegMs If 4 年之前
父節點
當前提交
1124d8d0b5

+ 1 - 1
miniprogram/pages/activity/activity.wxml

@@ -25,7 +25,7 @@
       <view wx:if="{{activityInfo.details != ''}}" class="activity-detail">
         <rich-text class="sub-title">{{activityInfo.details}}</rich-text>
       </view>
-      <imagePicker wx:if="{{activityInfo.photo.length != 0}}" images="{{activityInfo.photo}}" max="1"
+      <imagePicker wx:if="{{activityInfo.photo.length != 0}}" value="{{activityInfo.photo}}" max="1"
         image-width="{{activityInfo.photo.length == 1 ? 696 : activityInfo.photo.length <= 4 ? 330 : 220}}"
         image-height="{{activityInfo.photo.length == 1 ? 696 : activityInfo.photo.length <= 4 ? 330 : 220}}" readonly />
       <view class="line light-primary-color"></view>

+ 2 - 1
miniprogram/pages/opinion/opinion.json

@@ -1,5 +1,6 @@
 {
   "usingComponents": {
-    "imagePicker": "/components/imagePicker/imagePicker"
+    "imagePicker": "/components/imagePicker/imagePicker",
+    "myButton": "/components/myButton/myButton"
   }
 }

+ 1 - 1
miniprogram/pages/opinion/opinion.wxml

@@ -16,7 +16,7 @@
     <view class="cate">联系方式</view>
     <input class="input" placeholder="解决问题后会及时给您回复" />
   </view>
-  <button class="button primary-background-color white-text-color" bindtap="switch4">提交</button>
+  <myButton class="button" type="primary" bindtap="switch4">提交</myButton>
 </view>