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>