|
|
@@ -62,19 +62,13 @@
|
|
|
<!-- 右侧内容区域 -->
|
|
|
<view class="content-area">
|
|
|
<view v-if="tabCurrentIndex == 0">
|
|
|
- <view v-for="item in list" :key="item.id" @click="goAdd(1,0,item.id)">
|
|
|
- <view
|
|
|
- style="margin-top: 20rpx;color: #000000;display: flex;align-items: center;background: #FFFFFF;padding: 0rpx 40rpx;">
|
|
|
- <view style="height: 80rpx;width: 80%;">
|
|
|
- {{item.content}}
|
|
|
- </view>
|
|
|
-
|
|
|
- <!--
|
|
|
- <view style="width: 20%;display: flex;justify-content: flex-end;">
|
|
|
- <image src="../../static/images/my/right_icon.png" style="width: 15rpx;height: 30rpx;"></image>
|
|
|
+ <view v-for="item in list" :key="item.id">
|
|
|
+ <view class="content-area-box flex justify-between">
|
|
|
+ <view @click="copyContent(item.content)">{{item.content}}</view>
|
|
|
+ <view class="content-area-edit" @click="goAdd(1, 0, item.id)">
|
|
|
+ <view>编辑<u-icon name="arrow-right"></u-icon></view>
|
|
|
</view>
|
|
|
- -->
|
|
|
- </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
|
|
|
<!-- 空状态显示 -->
|
|
|
@@ -82,9 +76,6 @@
|
|
|
|
|
|
<!-- 自定义标签下的添加按钮 -->
|
|
|
<view class="custom-add-button" @click="goAdd(0,0,0)">
|
|
|
- <!--
|
|
|
- <u-icon name="plus" color="#fff" size="30" style="margin-right: 10upx;"></u-icon>
|
|
|
- -->
|
|
|
添加常用语
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -169,6 +160,11 @@
|
|
|
this.loadData();
|
|
|
},
|
|
|
methods: {
|
|
|
+ copyContent(content){
|
|
|
+ const eventChannel = this.getOpenerEventChannel();
|
|
|
+ eventChannel.emit('selectData', content);
|
|
|
+ uni.navigateBack();
|
|
|
+ },
|
|
|
// 返回上一页
|
|
|
goBack() {
|
|
|
uni.navigateBack()
|
|
|
@@ -259,7 +255,21 @@
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
-<style lang="scss">
|
|
|
+<style lang="scss" scoped>
|
|
|
+ .content-area-box{
|
|
|
+ margin: 40rpx 0;
|
|
|
+ color: #000000;
|
|
|
+ background: #FFFFFF;
|
|
|
+ }
|
|
|
+ .content-area-edit{
|
|
|
+ color: rgba(153, 153, 153, 1);
|
|
|
+ font-family: DM Sans;
|
|
|
+ font-style: Regular;
|
|
|
+ font-size: 24rpx;
|
|
|
+ font-weight: 400;
|
|
|
+ flex-shrink: 0;
|
|
|
+ margin-left: 20rpx;
|
|
|
+ }
|
|
|
page {
|
|
|
padding-top: 80rpx;
|
|
|
}
|
|
|
@@ -486,6 +496,7 @@
|
|
|
|
|
|
// 自定义添加按钮样式
|
|
|
.custom-add-button {
|
|
|
+ margin-top: 80rpx;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|