|
|
@@ -6,7 +6,7 @@
|
|
|
<u-icon name="close" color="rgba(56, 58, 63, 1)" size="32"></u-icon>
|
|
|
</view>
|
|
|
<view class="nav-center">
|
|
|
- <text class="nav-title">招呼语</text>
|
|
|
+ <text class="nav-title">常用语</text>
|
|
|
</view>
|
|
|
<view class="nav-right"></view>
|
|
|
</view>
|
|
|
@@ -32,7 +32,7 @@
|
|
|
</view>
|
|
|
-->
|
|
|
|
|
|
- <view class="setting-item setting-item-first">
|
|
|
+ <view v-if="false" class="setting-item setting-item-first">
|
|
|
<view class="setting-left">
|
|
|
<view class="setting-title-row">
|
|
|
<view class="setting-label">自动发送招呼语</view>
|
|
|
@@ -51,7 +51,7 @@
|
|
|
<view class="main-content">
|
|
|
<!-- 左侧导航侧边栏 -->
|
|
|
<view class="sidebar">
|
|
|
- <view class="sidebar-item" :class="{ 'active': tabCurrentIndex === 1 }" @click="tabClicks(1)">
|
|
|
+ <view hidden class="sidebar-item" :class="{ 'active': tabCurrentIndex === 1 }" @click="tabClicks(1)">
|
|
|
<text class="sidebar-text">常规</text>
|
|
|
</view>
|
|
|
<view class="sidebar-item" :class="{ 'active': tabCurrentIndex === 0 }" @click="tabClicks(0)">
|
|
|
@@ -85,7 +85,7 @@
|
|
|
<!--
|
|
|
<u-icon name="plus" color="#fff" size="30" style="margin-right: 10upx;"></u-icon>
|
|
|
-->
|
|
|
- 添加招呼语
|
|
|
+ 添加常用语
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
@@ -234,7 +234,15 @@
|
|
|
uni.navigateTo({
|
|
|
url: '/pages/msg/regular'
|
|
|
});
|
|
|
- }
|
|
|
+ },
|
|
|
+ // 选择模板
|
|
|
+ selectTemplate(template) {
|
|
|
+ console.log('选择的模板:', template);
|
|
|
+ // 这里可以添加使用模板的逻辑,比如跳转到编辑页面
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/msg/add?type=0&type1=0&template=' + encodeURIComponent(template)
|
|
|
+ });
|
|
|
+ },
|
|
|
},
|
|
|
onPageScroll: function(e) {
|
|
|
this.scrollTop = e.scrollTop > 200;
|
|
|
@@ -247,15 +255,7 @@
|
|
|
toggleNotification() {
|
|
|
console.log('自动发送招呼语开关状态:', this.notificationEnabled ? '开启' : '关闭');
|
|
|
// 这里可以添加保存到服务器的逻辑
|
|
|
- },
|
|
|
- // 选择模板
|
|
|
- selectTemplate(template) {
|
|
|
- console.log('选择的模板:', template);
|
|
|
- // 这里可以添加使用模板的逻辑,比如跳转到编辑页面
|
|
|
- uni.navigateTo({
|
|
|
- url: '/pages/msg/add?type=0&type1=0&template=' + encodeURIComponent(template)
|
|
|
- });
|
|
|
- },
|
|
|
+ }
|
|
|
}
|
|
|
</script>
|
|
|
|