Commit b2e98371 by test

客户H5状态调整

1 parent ebdeb462
...@@ -2,7 +2,15 @@ import request from '@/utils/request' ...@@ -2,7 +2,15 @@ import request from '@/utils/request'
export function getTypeList (data) { export function getTypeList (data) {
return request({ return request({
url: '/wecom/seas/findEmployeeCustomer', url: "/wecom/seas/findEmployeeCustomer",
params: data params: data
}) })
} }
export function setState (data) {
return request({
url: "/wecom/seas/setState",
method: "post",
data: data
})
}
\ No newline at end of file \ No newline at end of file
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
</van-cell> </van-cell>
</van-cell-group> </van-cell-group>
</van-tab> </van-tab>
<van-tab :title="'待通过(' + total2 + ')'"> <!-- <van-tab :title="'待通过(' + total2 + ')'">
<van-cell-group> <van-cell-group>
<van-cell> <van-cell>
<template v-for="(unit, key) in list2"> <template v-for="(unit, key) in list2">
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
</template> </template>
</van-cell> </van-cell>
</van-cell-group> </van-cell-group>
</van-tab> </van-tab> -->
<van-tab :title="'已添加(' + total2 + ')'"> <van-tab :title="'已添加(' + total2 + ')'">
<van-cell-group> <van-cell-group>
<van-cell> <van-cell>
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
<script src="https://open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js"></script> <script src="https://open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js"></script>
<script> <script>
import ClipboardJS from 'clipboard' import ClipboardJS from 'clipboard'
import { getTypeList } from '@/api/seas.js' import { getTypeList, setState } from '@/api/seas.js'
export default { export default {
name: 'highSeas-index', name: 'highSeas-index',
...@@ -114,10 +114,12 @@ ...@@ -114,10 +114,12 @@
const clipboard = new ClipboardJS(e.target, { text: () => text }) const clipboard = new ClipboardJS(e.target, { text: () => text })
clipboard.on('success', e => { clipboard.on('success', e => {
this.$toast({ type: 'success', message: '复制成功' }) this.$toast({ type: 'success', message: '复制成功' })
setState({ phone: text }).then(res => {
wx.invoke('navigateToAddCustomer', wx.invoke('navigateToAddCustomer',
{}, {},
function (res) { function (res) {
}) })
})
// 释放内存 // 释放内存
clipboard.off('error') clipboard.off('error')
clipboard.off('success') clipboard.off('success')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!