arms-app 1.0.37 → 1.0.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arms-app",
3
- "version": "1.0.37",
3
+ "version": "1.0.38",
4
4
  "description": "一个基于 Express 的 Web 应用1",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -0,0 +1,101 @@
1
+ <template>
2
+ <div class="page">
3
+ <van-nav-bar title="外呼记录详情" left-arrow @click-left="onBack">
4
+ <template #right>
5
+ <van-icon name="edit" @click="toggleEdit" />
6
+ </template>
7
+ </van-nav-bar>
8
+
9
+ <van-form @submit="onSubmit">
10
+ <van-cell-group inset>
11
+ <van-field v-model="form.customer" label="客户姓名" required :readonly="!isEditing" placeholder="请输入" />
12
+ <van-field
13
+ v-model="form.content"
14
+ label="联系内容"
15
+ required
16
+ type="textarea"
17
+ :rows="4"
18
+ :readonly="!isEditing"
19
+ :maxlength="1000"
20
+ placeholder="请填写"
21
+ />
22
+ <van-cell :border="false" class="content-footer-cell">
23
+ <template #title>
24
+ <div class="limit">{{ (form.content?.length || 0) }}/1000</div>
25
+ </template>
26
+ <template #value>
27
+ <span class="toggle-link" @click="showFull = true">展开</span>
28
+ </template>
29
+ </van-cell>
30
+ </van-cell-group>
31
+ </van-form>
32
+ <van-popup v-model:show="showFull" position="bottom" :style="{ height: '100%', width: '100%' }">
33
+ <div class="full-wrap">
34
+ <van-nav-bar title="联系内容" left-text="收起" left-arrow @click-left="showFull=false" />
35
+ <div class="full-body">
36
+ <van-field v-model="form.content" type="textarea" :rows="12" :readonly="!isEditing" :maxlength="1000" placeholder="请填写" />
37
+ </div>
38
+ <div class="full-footer">
39
+ <div class="limit">{{ (form.content?.length || 0) }}/1000</div>
40
+ <van-button size="small" type="primary" @click="showFull=false">收起</van-button>
41
+ </div>
42
+ </div>
43
+ </van-popup>
44
+ </div>
45
+ </template>
46
+
47
+ <script>
48
+ import { ref } from 'vue'
49
+
50
+ export default {
51
+ name: 'CallRecordDetail',
52
+ setup() {
53
+ const isEditing = ref(false)
54
+ const showFull = ref(false)
55
+ const form = ref({
56
+ customer: '北京银行金融科技部',
57
+ content: ''
58
+ })
59
+
60
+ const toggleEdit = () => {
61
+ isEditing.value = !isEditing.value
62
+ }
63
+ const onBack = () => {}
64
+ const onSubmit = () => {}
65
+
66
+ return { isEditing, form, showFull, toggleEdit, onBack, onSubmit }
67
+ }
68
+ }
69
+ </script>
70
+
71
+ <style scoped>
72
+ .page {
73
+ background-color: #f7f8fa;
74
+ min-height: 100vh;
75
+ }
76
+ .limit {
77
+ color: #969799;
78
+ font-size: 12px;
79
+ }
80
+ .toggle-link {
81
+ color: #1989fa;
82
+ font-size: 14px;
83
+ }
84
+ .full-wrap {
85
+ display: flex;
86
+ flex-direction: column;
87
+ height: 100%;
88
+ background: #fff;
89
+ }
90
+ .full-body {
91
+ padding: 12px 16px;
92
+ flex: 1;
93
+ overflow: auto;
94
+ }
95
+ .full-footer {
96
+ display: flex;
97
+ align-items: center;
98
+ justify-content: space-between;
99
+ padding: 8px 16px 16px;
100
+ }
101
+ </style>