浏览代码

no message

linwenxin 3 月之前
父节点
当前提交
09c94379d0
共有 2 个文件被更改,包括 12 次插入5 次删除
  1. 9 5
      src/packageHome/pages/codeActivity/activityForm.vue
  2. 3 0
      src/pages/index/index.vue

+ 9 - 5
src/packageHome/pages/codeActivity/activityForm.vue

@@ -46,7 +46,7 @@
               :readonly="isDisabled"
             ></u--input>
           </view>
-          <view class="row">
+          <view class="row" v-if="detailData.enablePosition">
             <view class="label"><text>*</text>您的地址</view>
             <u--input
               placeholder="请输入您的地址"
@@ -107,7 +107,7 @@
           <view class="input-container" v-else-if="item.type == 4">
             <view class="label"><text v-if="item.isRequire">*</text>{{ item.question }}</view>
             <view class="images">
-              <view class="img" v-for="(it, idx) in item.fileValue">
+              <view class="img" v-for="(it, idx) in item.fileValue" :key="idx">
                 <image :src="it" mode="aspectFill" @tap="prevImg(it, item.fileValue)"></image>
                 <text class="iconfont icon-guanbi1" @tap="delImage(questionList, index, idx)"></text>
               </view>
@@ -125,7 +125,7 @@
           <view class="input-container" v-else-if="item.type == 5">
             <view class="label"><text v-if="item.isRequire">*</text>{{ item.question }}</view>
             <view class="images">
-              <view v-for="(it, idx) in item.fileValue" class="img" style="width: 100%">
+              <view v-for="(it, idx) in item.fileValue" :key="idx" class="img" style="width: 100%">
                 <video :src="it" style="width: 100%; height: 240px"></video>
                 <text
                   style="z-index: 100000"
@@ -194,11 +194,12 @@ export default {
       name: '',
       phone: '',
       address: '',
-      isNotYetStarted: true
+      isNotYetStarted: true,
+      userInfo: null
     }
   },
 
-  onLoad({ id, websitName }) {
+  async onLoad({ id, websitName }) {
     // if (uni.getStorageSync('activityFormjilu')) {
     //   uni.removeStorageSync('activityFormjilu')
     // } else {
@@ -208,6 +209,9 @@ export default {
     this.id = id
     this.websitName = websitName || ''
     this.getDetail()
+    this.userInfo = await this.$getUserInfo()
+    this.name = this.userInfo.nickName
+    this.phone = this.userInfo.mobile
   },
   onShow() {
     if (uni.getStorageSync('formDataaaa')) {

+ 3 - 0
src/pages/index/index.vue

@@ -89,6 +89,9 @@
 
         <!-- 扫码活动 -->
         <view class="swiper2-container" v-if="codeActivityList.length > 0">
+          <view class="home-title">
+            <view class="left">活动登记</view>
+          </view>
           <u-swiper
             :list="codeActivityList"
             keyName="banner"