This commit is contained in:
haomingming
2023-03-23 15:52:15 +08:00
parent cfa69efd15
commit 12e4984a95
53 changed files with 661 additions and 193 deletions
@@ -1,7 +1,7 @@
.text-message {
max-width: 60vw;
min-height: 80rpx;
line-height: 80rpx;
min-height: 50rpx;
line-height: 50rpx;
padding: 10rpx 24rpx;
background: #F8F8F8;
border: 1rpx solid #D9D9D9;
@@ -20,7 +20,7 @@
.my-text::after{
content:'';
position: absolute;
top: 45rpx;
top: 35rpx;
right: -19rpx;
transform: translate(-50%,-50%) rotate(-135deg);
width: 16rpx;
@@ -38,7 +38,7 @@
.your-text::after{
content:'';
position: absolute;
top: 45rpx;
top: 35rpx;
left: 0;
transform: translate(-50%,-50%) rotate(45deg);
width: 16rpx;
@@ -75,6 +75,8 @@ Component({
isEmoji: false,
fileList: [],
hasCallKit: false,
showChangYongYu: false,
ChangYongYu: []
},
lifetimes: {
@@ -111,6 +113,21 @@ Component({
});
});
},
},
pageLifetimes:{
show(){
//获得常用语
let words = wx.getStorageSync('words');
console.log("words from chat: ", words);
if(words){
this.setData({
message: words,
sendMessageBtn: true
})
wx.setStorageSync('words', "");
}
}
},
/**
@@ -730,5 +747,10 @@ Component({
displayServiceEvaluation: true,
});
},
showChangYongYu(){
app.go("/Pages/yishi/quickreply/index?from=chat")
},
},
});
@@ -45,7 +45,7 @@
<image mode="widthFix" class="TUI-Extension-icon MY-TUI-Extension-icon" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/chat/picture.png" />
<view class="TUI-Extension-slot-name MY-TUI-Extension-slot-name">照片</view>
</view>
<view class="TUI-Extension-slot MY-TUI-Extension-slot" bindtap="handleSendImage">
<view class="TUI-Extension-slot MY-TUI-Extension-slot" bindtap="showChangYongYu">
<image mode="widthFix" class="TUI-Extension-icon MY-TUI-Extension-icon" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/chat/wenzi.png" />
<view class="TUI-Extension-slot-name MY-TUI-Extension-slot-name">常用语</view>
</view>
@@ -101,3 +101,4 @@
{{title}}
</view>
</view>
+12
View File
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 61.2 (89653) - https://sketch.com -->
<title>ic_back_white</title>
<desc>Created with Sketch.</desc>
<g id="ic_back_white" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="ic_back_black">
<rect id="Rectangle" x="0" y="0" width="24" height="24"></rect>
<polygon id="Path-2" fill="#000000" fill-rule="nonzero" points="4.75615536 12 12 19.616973 10.5591221 21 2 12 10.5591221 3 12 4.38302701"></polygon>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 706 B