|
@@ -2,10 +2,6 @@
|
|
|
<div class="homePage" ref="homePage">
|
|
<div class="homePage" ref="homePage">
|
|
|
<div class="content">
|
|
<div class="content">
|
|
|
<van-nav-bar class="navBar" left-arrow title="门店拜访" @click-left="onClickLeft">
|
|
<van-nav-bar class="navBar" left-arrow title="门店拜访" @click-left="onClickLeft">
|
|
|
- <template #right>
|
|
|
|
|
- <!-- 原生自带拍照 -->
|
|
|
|
|
- <H5Camera @getImg="getImg" />
|
|
|
|
|
- </template>
|
|
|
|
|
</van-nav-bar>
|
|
</van-nav-bar>
|
|
|
<van-tabs
|
|
<van-tabs
|
|
|
class="myTab"
|
|
class="myTab"
|
|
@@ -50,11 +46,9 @@ import tabBar from '@/components/tabBar';
|
|
|
import ABtarget from './ABtarget.vue';
|
|
import ABtarget from './ABtarget.vue';
|
|
|
import { mapState } from 'vuex';
|
|
import { mapState } from 'vuex';
|
|
|
import bottomBtn from './bottomBtn.vue';
|
|
import bottomBtn from './bottomBtn.vue';
|
|
|
-import uploadAliOss from '@/utils/uploadAliOss';
|
|
|
|
|
-import H5Camera from '@/components/H5Camera';
|
|
|
|
|
export default {
|
|
export default {
|
|
|
name: 'home',
|
|
name: 'home',
|
|
|
- components: { tabBar, hintTabPage, ABtarget, bottomBtn, H5Camera },
|
|
|
|
|
|
|
+ components: { tabBar, hintTabPage, ABtarget, bottomBtn },
|
|
|
computed: {
|
|
computed: {
|
|
|
...mapState({
|
|
...mapState({
|
|
|
userInfo: (state) => state.user.userInfo,
|
|
userInfo: (state) => state.user.userInfo,
|
|
@@ -95,17 +89,6 @@ export default {
|
|
|
},
|
|
},
|
|
|
mounted() {},
|
|
mounted() {},
|
|
|
methods: {
|
|
methods: {
|
|
|
- // 原生H5拍照图片
|
|
|
|
|
- // url: base64
|
|
|
|
|
- getImg(base64) {
|
|
|
|
|
- uploadAliOss(base64, '测试111')
|
|
|
|
|
- .then((res) => {
|
|
|
|
|
- console.log('res:' + res);
|
|
|
|
|
- })
|
|
|
|
|
- .catch((err) => {
|
|
|
|
|
- console.log('err:' + err);
|
|
|
|
|
- });
|
|
|
|
|
- },
|
|
|
|
|
onRefresh() {
|
|
onRefresh() {
|
|
|
this.getDict(true);
|
|
this.getDict(true);
|
|
|
this.isLoading = false;
|
|
this.isLoading = false;
|