|
@@ -134,26 +134,38 @@
|
134
|
134
|
<van-loading v-else type="spinner" color="#00b38a" class="pageStyleLoading" />
|
135
|
135
|
</div>
|
136
|
136
|
<!-- 标签 -->
|
137
|
|
- <van-dialog v-if="tag_visible" v-model:show="tag_visible" title="选择标签" show-cancel-button :before-close="onBeforeClose"
|
138
|
|
- @confirm="confirm_tag" confirmButtonColor="#00b38a">
|
139
|
|
- <!-- 标签内容 -->
|
140
|
|
- <tag :labelList="labelList" :configInfo="configInfo" @closeTag="_closeTag"></tag>
|
141
|
|
- </van-dialog>
|
|
137
|
+ <div class="mask" v-if="tag_visible==true">
|
|
138
|
+ <div class="mask_content">
|
|
139
|
+ <div class="mask_title">选择标签</div>
|
|
140
|
+ <!-- 标签内容 -->
|
|
141
|
+ <tag :labelList="labelList" :configInfo="configInfo" @closeTag="_closeTag"></tag>
|
|
142
|
+ <div class="mask_btn">
|
|
143
|
+ <div class="cancel btn" @click="onBeforeClose">取消</div>
|
|
144
|
+ <div class="define btn" @click="confirm_tag">确定</div>
|
|
145
|
+ </div>
|
|
146
|
+ </div>
|
|
147
|
+ </div>
|
|
148
|
+
|
142
|
149
|
<!-- 编辑-客户信息 -->
|
143
|
|
- <van-dialog v-if="attr_visible" v-model:show="attr_visible" title="" show-cancel-button :before-close="onBeforeClose"
|
144
|
|
- @confirm="confirm_edit_attr" confirmButtonColor="#00b38a">
|
145
|
|
- <div class="attrEditBox">
|
146
|
|
- <template v-for="(item, index) in attrEditData" :key="index+'field_edit'">
|
147
|
|
- <van-field v-model="item.val" :label="item.name" :placeholder="`请输入${item.name}`" />
|
148
|
|
- </template>
|
|
150
|
+ <div class="mask" v-if="attr_visible==true">
|
|
151
|
+ <div class="mask_content">
|
|
152
|
+ <div class="attrEditBox">
|
|
153
|
+ <template v-for="(item, index) in attrEditData" :key="index+'field_edit'">
|
|
154
|
+ <van-field v-model="item.val" :label="item.name" :placeholder="`请输入${item.name}`" />
|
|
155
|
+ </template>
|
|
156
|
+ </div>
|
|
157
|
+ <div class="mask_btn">
|
|
158
|
+ <div class="cancel btn" @click="onBeforeClose">取消</div>
|
|
159
|
+ <div class="define btn" @click="confirm_edit_attr">确定</div>
|
|
160
|
+ </div>
|
149
|
161
|
</div>
|
150
|
|
- </van-dialog>
|
|
162
|
+ </div>
|
151
|
163
|
</div>
|
152
|
164
|
</template>
|
153
|
165
|
<script lang="ts">
|
154
|
166
|
import tag from '@/components/tag.vue'
|
155
|
167
|
import noData from '@/components/noData.vue'
|
156
|
|
-import { Dialog, Toast } from 'vant';
|
|
168
|
+import { Toast } from 'vant';
|
157
|
169
|
import getWxConfig from '@/utils/getWxConfig';
|
158
|
170
|
import { ref, reactive, onBeforeMount, getCurrentInstance } from "vue";
|
159
|
171
|
import { getQueryString } from '@/utils/common'
|
|
@@ -161,7 +173,6 @@ export default {
|
161
|
173
|
components: {
|
162
|
174
|
noData,
|
163
|
175
|
tag,
|
164
|
|
- [Dialog.Component.name]: Dialog.Component,
|
165
|
176
|
},
|
166
|
177
|
setup() {
|
167
|
178
|
const { proxy } = getCurrentInstance();
|
|
@@ -189,9 +200,9 @@ export default {
|
189
|
200
|
corpid: '',
|
190
|
201
|
external_userid: '',
|
191
|
202
|
user_id: '',
|
192
|
|
- // corpid: 'ww27940915d8fbfbe6',
|
193
|
|
- // external_userid: 'wm5xsRBwAAC_qqbdzn-IVkN5ojRwM1qQ',
|
194
|
|
- // user_id: '8a82d12ae22e0cedd81ae297a2e7c1fa'
|
|
203
|
+ // corpid: 'wpezvKNwAA9d7LlcuOOAhvlx5ikwJjHg',
|
|
204
|
+ // external_userid: 'wmezvKNwAA-GC-Qo3KDnbZoi5bhSZ_cw',
|
|
205
|
+ // user_id: 'woezvKNwAA8QJvr4GUHVuIYqYmBqkOBg'
|
195
|
206
|
})
|
196
|
207
|
onBeforeMount(() => {//组件挂载之前
|
197
|
208
|
// pageLoading.value = true;
|
|
@@ -217,13 +228,9 @@ export default {
|
217
|
228
|
function _closeTag(arr) {//回调
|
218
|
229
|
updataTag.value = arr
|
219
|
230
|
}
|
220
|
|
- function onBeforeClose(action, done) {
|
221
|
|
- if (action === "confirm") {
|
222
|
|
- return false;
|
223
|
|
- } else {
|
224
|
|
- tag_visible.value = false;
|
225
|
|
- attr_visible.value = false;
|
226
|
|
- }
|
|
231
|
+ function onBeforeClose() {
|
|
232
|
+ tag_visible.value = false;
|
|
233
|
+ attr_visible.value = false;
|
227
|
234
|
}
|
228
|
235
|
function confirm_tag() {//标签更改确认
|
229
|
236
|
h5CustomerTagUpdate()
|
|
@@ -424,6 +431,53 @@ export default {
|
424
|
431
|
}
|
425
|
432
|
</script>
|
426
|
433
|
<style lang="scss" scoped>
|
|
434
|
+.mask{
|
|
435
|
+ width: 100vw;
|
|
436
|
+ height: 100vh;
|
|
437
|
+ background: rgba(0,0,0,0.5);
|
|
438
|
+ position: fixed;
|
|
439
|
+ top: 0;
|
|
440
|
+ left: 0;
|
|
441
|
+ display: flex;
|
|
442
|
+ flex-direction: column;
|
|
443
|
+ align-items: center;
|
|
444
|
+ justify-content: center;
|
|
445
|
+ .mask_content{
|
|
446
|
+ width: 80vw;
|
|
447
|
+ height: auto;
|
|
448
|
+ max-height: 80vh;
|
|
449
|
+ background-color: #ffffff;
|
|
450
|
+ border-radius: 8px;
|
|
451
|
+ padding-bottom: 50px;
|
|
452
|
+ position: relative;
|
|
453
|
+ .mask_title{
|
|
454
|
+ font-size: 16px;
|
|
455
|
+ text-align: center;
|
|
456
|
+ font-weight: bold;
|
|
457
|
+ padding: 20px;
|
|
458
|
+ }
|
|
459
|
+ .mask_btn{
|
|
460
|
+ display: flex;
|
|
461
|
+ border-top: 1px solid #f4f4f4;
|
|
462
|
+ position: absolute;
|
|
463
|
+ bottom: 0;
|
|
464
|
+ left: 0;
|
|
465
|
+ width: 100%;
|
|
466
|
+ .btn{
|
|
467
|
+ height: 50px;
|
|
468
|
+ width: 50%;
|
|
469
|
+ text-align: center;
|
|
470
|
+ line-height: 50px;
|
|
471
|
+ font-size: 15px;
|
|
472
|
+ color: #222222;
|
|
473
|
+ &.define{
|
|
474
|
+ border-left: 1px solid #f4f4f4;
|
|
475
|
+ color: #00b38a;
|
|
476
|
+ }
|
|
477
|
+ }
|
|
478
|
+ }
|
|
479
|
+ }
|
|
480
|
+}
|
427
|
481
|
.reset_get_info {
|
428
|
482
|
height: 300px;
|
429
|
483
|
position: fixed;
|