This commit is contained in:
2023-11-09 17:28:25 +08:00
parent 3bbc77b95a
commit 3d7dbddefd

View File

@ -29,7 +29,6 @@
<view class="placeholder" id="placeholder"></view> <view class="placeholder" id="placeholder"></view>
</view> </view>
</scroll-view> </scroll-view>
<view class="background" @tap="information"> <view class="background" @tap="information">
<image src="/static/huanzhe.png" mode=""></image> <image src="/static/huanzhe.png" mode=""></image>
@ -57,8 +56,8 @@
<!-- 弹出拍照--> <!-- 弹出拍照-->
<view class="fun-box" :class="{'show-fun-box':showFunBtn}"> <view class="fun-box" :class="{'show-fun-box':showFunBtn}">
<u-grid :col="4" hover-class="contentType2-hover-class" :border="false"> <u-grid :col="4" hover-class="contentType2-hover-class" :border="false">
<u-grid-item v-for="(item, index) in funList" @tap.stop="tapGrid(index)" :index="index" :key="index" <u-grid-item v-for="(item, index) in funList" @click.native.stop="tapGrid(index)" :index="index"
bg-color="#f3f3f3"> :key="index" bg-color="#f3f3f3">
<u-icon :name="item.icon" :size="52"></u-icon> <u-icon :name="item.icon" :size="52"></u-icon>
<uni-icons style="opacity: 0.7;width: 52rpx;height: 52rpx; " v-if="index==2" <uni-icons style="opacity: 0.7;width: 52rpx;height: 52rpx; " v-if="index==2"
:type="index==2?'folder-add-filled':''" size="26"></uni-icons> :type="index==2?'folder-add-filled':''" size="26"></uni-icons>
@ -122,10 +121,10 @@
title: "拍摄", title: "拍摄",
uploadType: ["camera"] uploadType: ["camera"]
}, },
{ // {
icon: "", // icon: "",
title: "文件", // title: "",
}, // },
], ],
emojisList: [ emojisList: [
'😄', '😃', '😀', '😊', '😉', '😍', '😘', '😚', '😗', '😄', '😃', '😀', '😊', '😉', '😍', '😘', '😚', '😗',
@ -368,6 +367,7 @@
// }, // },
// //
tapGrid(index) { tapGrid(index) {
console.log(index)
if (index == 0) { if (index == 0) {
this.chooseImage(["album"]); this.chooseImage(["album"]);
} else if (index == 1) { } else if (index == 1) {
@ -381,11 +381,11 @@
// console.log(JSON.stringify(res.tempFilePaths)); // console.log(JSON.stringify(res.tempFilePaths));
} }
}); });
} }
}, },
// //
chooseImage(sourceType) { chooseImage(sourceType) {
console.log(sourceType)
var that = this var that = this
if (this.socketOpen == false) { if (this.socketOpen == false) {
return return