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