更新六个讯飞AI小程序
This commit is contained in:
parent
922ba1b054
commit
c507002424
@ -1,38 +1,58 @@
|
||||
<template>
|
||||
<view class="gather">
|
||||
|
||||
|
||||
<view v-if="isFshow">
|
||||
<view class="site-box flex_a_c_j_sb" :style="{ 'opacity': backColor,}" @click="selectLocation">
|
||||
<view :class="['place_wrapper', 'flex_a_c', isFshow ? 'sitebox' : '']" @click="selectLocation">
|
||||
<view :class="['iconfont', 'icon-weizhi', isFshow ? 'sitebox' : '']" style=" margin-left: 20rpx">
|
||||
<view
|
||||
class="site-box flex_a_c_j_sb"
|
||||
:style="{ opacity: backColor }"
|
||||
@click="selectLocation"
|
||||
>
|
||||
<view
|
||||
:class="['place_wrapper', 'flex_a_c', isFshow ? 'sitebox' : '']"
|
||||
@click="selectLocation"
|
||||
>
|
||||
<view
|
||||
:class="['iconfont', 'icon-weizhi', isFshow ? 'sitebox' : '']"
|
||||
style="margin-left: 20rpx"
|
||||
>
|
||||
</view>
|
||||
<view class="town_name">{{ street }}</view>
|
||||
</view>
|
||||
<navigator url="/pages/chat/customer_list/index?type=0" hover-class="none">
|
||||
<view :class="['iconfont', 'icon-xiaoxi', isFshow ? 'sitebox' : '']"></view>
|
||||
<navigator
|
||||
url="/pages/chat/customer_list/index?type=0"
|
||||
hover-class="none"
|
||||
>
|
||||
<view
|
||||
:class="['iconfont', 'icon-xiaoxi', isFshow ? 'sitebox' : '']"
|
||||
></view>
|
||||
</navigator>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="" v-if="!isFshow">
|
||||
<view class="site-box1 flex_a_c_j_sb">
|
||||
|
||||
<view class="place_wrapper flex_a_c" @click="selectLocation">
|
||||
<view class="iconfont icon-weizhi"></view>
|
||||
<view class="town_name">{{ street }}</view>
|
||||
</view>
|
||||
<navigator url="/pages/chat/customer_list/index?type=0" hover-class="none">
|
||||
<view class="iconfont icon-xiaoxi" style="color:#fff;"> </view>
|
||||
<navigator
|
||||
url="/pages/chat/customer_list/index?type=0"
|
||||
hover-class="none"
|
||||
>
|
||||
<view class="iconfont icon-xiaoxi" style="color: #fff"> </view>
|
||||
</navigator>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
<zbpSwiper :isSelectPlace="true" :location_Arr="locationArr" :town="street"></zbpSwiper>
|
||||
<u-empty :show="jurisdiction" mode="permission" :text="emptyText"
|
||||
icon="http://cdn.uviewui.com/uview/empty/permission.png"></u-empty>
|
||||
<zbpSwiper
|
||||
:isSelectPlace="true"
|
||||
:location_Arr="locationArr"
|
||||
:town="street"
|
||||
></zbpSwiper>
|
||||
<u-empty
|
||||
:show="jurisdiction"
|
||||
mode="permission"
|
||||
:text="emptyText"
|
||||
icon="http://cdn.uviewui.com/uview/empty/permission.png"
|
||||
></u-empty>
|
||||
<view class="business com special_work" v-if="jurisdiction == false">
|
||||
<view class="title project">
|
||||
<view>更多功能</view>
|
||||
@ -41,19 +61,35 @@
|
||||
</view>
|
||||
<view class="content">
|
||||
<block v-if="nowMenuList.length > 0">
|
||||
<u-transition v-for="(item, index) in nowMenuList" :key="item.name" show>
|
||||
<view class="examine" @click="
|
||||
<u-transition
|
||||
v-for="(item, index) in nowMenuList"
|
||||
:key="item.name"
|
||||
show
|
||||
>
|
||||
<view
|
||||
class="examine"
|
||||
@click="
|
||||
editFlag ? removeMenu(item) : clickMenu(item.type, item.data)
|
||||
">
|
||||
"
|
||||
>
|
||||
<image class="icon_img" :src="item.icon" mode="aspectFit">
|
||||
</image>
|
||||
<u-icon v-if="editFlag" class="icon" name="minus-circle-fill" color="red"></u-icon>
|
||||
<u-icon
|
||||
v-if="editFlag"
|
||||
class="icon"
|
||||
name="minus-circle-fill"
|
||||
color="red"
|
||||
></u-icon>
|
||||
<text class="text">{{ item.name }}</text>
|
||||
</view>
|
||||
</u-transition>
|
||||
</block>
|
||||
<view v-else-if="!editFlag" @click="editFlag = true"
|
||||
style="text-align: center; width: 100%; color: #aaa">还没有应用,点我添加应用</view>
|
||||
<view
|
||||
v-else-if="!editFlag"
|
||||
@click="editFlag = true"
|
||||
style="text-align: center; width: 100%; color: #aaa"
|
||||
>还没有应用,点我添加应用</view
|
||||
>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="editFlag" class="business com special_work edit_card">
|
||||
@ -62,10 +98,13 @@
|
||||
<view class="edit2" @click="editComfirm">完成</view>
|
||||
</view>
|
||||
<view class="content">
|
||||
<u-transition v-for="(item, index) in AllMenuList" :key="item.name" show>
|
||||
<u-transition
|
||||
v-for="(item, index) in AllMenuList"
|
||||
:key="item.name"
|
||||
show
|
||||
>
|
||||
<view class="examine" @click="pushMenu(item)">
|
||||
<image class="icon_img" :src="item.icon" mode="aspectFit">
|
||||
</image>
|
||||
<image class="icon_img" :src="item.icon" mode="aspectFit"> </image>
|
||||
<u-icon class="icon" name="plus-circle-fill"></u-icon>
|
||||
<text class="text">{{ item.name }}</text>
|
||||
</view>
|
||||
@ -73,9 +112,16 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<u-picker :defaultIndex="[0,0]" :show="showPicker" ref="uPicker" :columns="columnData" @confirm="confirm"
|
||||
@cancel="showPicker = false" @change="changeHandler" keyName="name"></u-picker>
|
||||
<u-picker
|
||||
:defaultIndex="[0, 0]"
|
||||
:show="showPicker"
|
||||
ref="uPicker"
|
||||
:columns="columnData"
|
||||
@confirm="confirm"
|
||||
@cancel="showPicker = false"
|
||||
@change="changeHandler"
|
||||
keyName="name"
|
||||
></u-picker>
|
||||
<!-- <m-tabbar native>
|
||||
<template v-slot:tabbar_index_2>
|
||||
<view class="custom_style">
|
||||
@ -146,11 +192,10 @@
|
||||
// 编辑中标记
|
||||
editFlag: false,
|
||||
// 所有菜单的按钮
|
||||
|
||||
AllMenuList: [{
|
||||
name: '商户平台',
|
||||
icon: '/static/applet/shop_app.png',
|
||||
data: '/pages/moreProject/moreProject',
|
||||
data: "__UNI__1EE148C",
|
||||
type: 2,
|
||||
},
|
||||
{
|
||||
@ -164,9 +209,54 @@
|
||||
icon: '/static/applet/ny.png',
|
||||
data: {
|
||||
id: '__UNI__9620511',
|
||||
url: '/static/wgt/__UNI__9620511.wgt',
|
||||
url: 'https://ceshi-worker-task.lihaink.cn/api/common/getMiniProgramInfo?name=nongye',
|
||||
},
|
||||
type: 1,
|
||||
type: 3,
|
||||
},
|
||||
{
|
||||
name: '教育咨询',
|
||||
icon: '/static/applet/jy.png',
|
||||
data: {
|
||||
id: '__UNI__7AA205C',
|
||||
url: 'https://ceshi-worker-task.lihaink.cn/api/common/getMiniProgramInfo?name=jiaoyu',
|
||||
},
|
||||
type: 3,
|
||||
},
|
||||
{
|
||||
name: '法律咨询',
|
||||
icon: '/static/applet/fl.png',
|
||||
data: {
|
||||
id: '__UNI__358D505',
|
||||
url: 'https://ceshi-worker-task.lihaink.cn/api/common/getMiniProgramInfo?name=falv',
|
||||
},
|
||||
type: 3,
|
||||
},
|
||||
{
|
||||
name: '情感咨询',
|
||||
icon: '/static/applet/qg.png',
|
||||
data: {
|
||||
id: '__UNI__8080F14',
|
||||
url: 'https://ceshi-worker-task.lihaink.cn/api/common/getMiniProgramInfo?name=qinggan',
|
||||
},
|
||||
type: 3,
|
||||
},
|
||||
{
|
||||
name: '种植分析',
|
||||
icon: '/static/applet/zz.png',
|
||||
data: {
|
||||
id: '__UNI__9EDFE40',
|
||||
url: 'https://ceshi-worker-task.lihaink.cn/api/common/getMiniProgramInfo?name=zhongzhi',
|
||||
},
|
||||
type: 3,
|
||||
},
|
||||
{
|
||||
name: '养殖分析',
|
||||
icon: '/static/applet/yz.png',
|
||||
data: {
|
||||
id: '__UNI__EEA7DC9',
|
||||
url: 'https://ceshi-worker-task.lihaink.cn/api/common/getMiniProgramInfo?name=yangzhi',
|
||||
},
|
||||
type: 3,
|
||||
}
|
||||
],
|
||||
nowMenuList: [],
|
||||
@ -293,14 +383,7 @@
|
||||
}
|
||||
},
|
||||
clickMenu (e, data) {
|
||||
switch (e) {
|
||||
case 1:
|
||||
this.getUniMp(data);
|
||||
break;
|
||||
case 2:
|
||||
this.navigator(data);
|
||||
break;
|
||||
}
|
||||
this.getUniMp(e, data);
|
||||
},
|
||||
// 添加菜单
|
||||
pushMenu (data) {
|
||||
@ -321,13 +404,13 @@
|
||||
this.editFlag = false;
|
||||
uni.setStorageSync('gatherNowMenuList', JSON.stringify(this.nowMenuList));
|
||||
},
|
||||
getUniMp(data) {
|
||||
getUniMp (type, data) {
|
||||
// #ifdef APP-PLUS
|
||||
console.log(data, typeof data == 'string');
|
||||
if (typeof data == 'string') uniMP.loadMP(data);
|
||||
else uniMP.loadMPurl(data);
|
||||
// uniMP.loadMPurl(data);
|
||||
// uniMP.open(data.id);
|
||||
switch (type) {
|
||||
case 1: uniMP.loadMP(data); break;
|
||||
case 2: uniMP.loadMPx(data); break;
|
||||
case 3: uniMP.loadMPurl(data); break;
|
||||
}
|
||||
return;
|
||||
// #endif
|
||||
uni.showToast({
|
||||
@ -428,6 +511,7 @@
|
||||
let that = this;
|
||||
getUserInfo().then(res => {
|
||||
that.userInfoData = res.data;
|
||||
that.$store.commit('SET_USERINFO', res.data);
|
||||
// console.log(res.data.service);
|
||||
if (res.data.service == null) {
|
||||
// console.log('123');
|
||||
@ -499,7 +583,6 @@
|
||||
.iconfont {
|
||||
font-size: 35.09rpx;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.site-box {
|
||||
@ -522,7 +605,7 @@
|
||||
padding-top: 25rpx;
|
||||
/* #endif */
|
||||
// background-color: #e5e5e5;
|
||||
background: url('@/static/images/bg2.png') no-repeat;
|
||||
background: url("@/static/images/bg2.png") no-repeat;
|
||||
background-size: 100% 100%;
|
||||
padding-right: 20rpx;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user