From a1c569d40b5d1d6571a197467a41fd3421c393ce Mon Sep 17 00:00:00 2001 From: doum <doum> Date: 星期一, 15 九月 2025 09:10:49 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- small-program/pages/using-workers/using-workers.vue | 18 ++++++++++++------ 1 files changed, 12 insertions(+), 6 deletions(-) diff --git a/small-program/pages/using-workers/using-workers.vue b/small-program/pages/using-workers/using-workers.vue index 3a0d54b..e87979b 100644 --- a/small-program/pages/using-workers/using-workers.vue +++ b/small-program/pages/using-workers/using-workers.vue @@ -49,7 +49,7 @@ <view class="list-item-row"> <view class="list-item-row-label">閲囨憳閲嶉噺<b>*</b></view> <view class="list-item-row-val"> - <input type="number" v-model="form.priceNum1" @blur="getPrice" placeholder="璇疯緭鍏�" /> + <input type="digit" v-model="form.priceNum1" @blur="getPrice" placeholder="璇疯緭鍏�" /> <text>鏂�</text> </view> </view> @@ -62,14 +62,15 @@ <view class="list-item-row" > <view class="list-item-row-label">鍥剧墖</view> <view class="list-item-row-upload"> - <view class="upload-item" v-for="(item, index) in form.multifileList" :key="index"> + <view class="upload-item" v-for="(item, index) in form.multifileList" :key="index" @click="preview(index, form.multifileList)"> <image :src="item.url || item.fileurlFull" mode="widthFix"></image> - <image class="upload-item-dele" @click="form.multifileList.splice(index, 1)" src="/static/icon/ic_delete1@2x.png" mode="widthFix"></image> + <image class="upload-item-dele" @click.stop="form.multifileList.splice(index, 1)" src="/static/icon/ic_delete1@2x.png" mode="widthFix"></image> </view> <view class="upload-item" @click="uploadImg"> <u-icon name="plus" color="#999999" size="24"></u-icon> <text>鐐瑰嚮涓婁紶</text> </view> + <view style="width: 215rpx; height: 0;"></view> </view> </view> <!-- <view class="list-item-zk" @click="viewStatus = !viewStatus"> @@ -226,6 +227,10 @@ this.getCateList() }, methods: { + preview(current, arr) { + let urls = arr.map(item => item.url || item.fileurlFull) + uni.previewImage({ current, urls }) + }, // 鎻愪氦璁㈠崟 submit() { var that = this; @@ -629,21 +634,22 @@ width: 100%; display: flex; align-items: center; + justify-content: space-between; flex-wrap: wrap; padding: 30rpx 0; box-sizing: border-box; .upload-item { - width: 156rpx; - height: 156rpx; + width: 215rpx; + height: 215rpx; display: flex; align-items: center; flex-direction: column; justify-content: center; background: #F8F9FB; border-radius: 8rpx; - margin-right: 20rpx; border: 2rpx solid #EEEEEE; position: relative; + margin-bottom: 15rpx; &:last-child { margin: 0 !important; } -- Gitblit v1.9.3