lu_quan_dev
han 10 months ago
parent b06a49f812
commit c1ea54bcb6
  1. 347
      common/config.js
  2. 1
      common/httpRequest.js
  3. 3
      pages/fuwu/fuwu.vue
  4. 4
      pages/index/index.vue
  5. 1
      subPageA/food/fooddetial/fooddetial.vue
  6. 564
      subPageB/jiqiren/jiqiren/zhinengjiqiren.vue
  7. 1
      subPageC/Ai/index.vue
  8. 26
      subPageC/flower/index.vue
  9. 54
      subPageC/translate/index.vue
  10. 16
      subPageC/weather/index.vue

@ -22,189 +22,194 @@ const PWPATH = "https://eluyou.ailuquan.cn";
//手绘图项目名称 //手绘图项目名称
const HANDDRAWNNAME = ""; const HANDDRAWNNAME = "";
module.exports = { module.exports = {
REAUEST_ROOTPATH : REAUEST_ROOTPATH, REAUEST_ROOTPATH: REAUEST_ROOTPATH,
ROOTPATH: ROOTPATH, ROOTPATH: ROOTPATH,
HANDDRAWNNAME:HANDDRAWNNAME, HANDDRAWNNAME: HANDDRAWNNAME,
PWPATH:PWPATH, PWPATH: PWPATH,
ARER_CODE:"131401", ARER_CODE: "131401",
ARER_CODE_FOUR:"131401", ARER_CODE_FOUR: "131401",
lunbo_url: REAUEST_ROOTPATH + "/mobile/index/getLoopPic.do", lunbo_url: REAUEST_ROOTPATH + "/mobile/index/getLoopPic.do",
messagelist: REAUEST_ROOTPATH + "/mobile/messageInfo/messagelist", //目的地 messagelist: REAUEST_ROOTPATH + "/mobile/messageInfo/messagelist", //目的地
sceniclist: REAUEST_ROOTPATH + "/mobile/scenic/sceniclist", //景区 sceniclist: REAUEST_ROOTPATH + "/mobile/scenic/sceniclist", //景区
scenicDetial:REAUEST_ROOTPATH + "/mobile/scenic/getDetailes.do", //景区详情 scenicDetial: REAUEST_ROOTPATH + "/mobile/scenic/getDetailes.do", //景区详情
techanlist: REAUEST_ROOTPATH + "/mobile/shopping/getSpecialList", //特产 techanlist: REAUEST_ROOTPATH + "/mobile/shopping/getSpecialList", //特产
getProposalFood: REAUEST_ROOTPATH + "/mobile/food/delicacyFood/getProposalFood", //推荐美食 getProposalFood: REAUEST_ROOTPATH + "/mobile/food/delicacyFood/getProposalFood", //推荐美食
getFoodList: REAUEST_ROOTPATH + "/mobile/food/delicacyFood/getFood", //美食列表 getFoodList: REAUEST_ROOTPATH + "/mobile/food/delicacyFood/getFood", //美食列表
getFoodDetail: REAUEST_ROOTPATH + "/mobile/food/delicacyFood/getFood", //美食详情(方法一样,参数多一个id) getFoodDetail: REAUEST_ROOTPATH + "/mobile/food/delicacyFood/getFood", //美食详情(方法一样,参数多一个id)
getRestaurantList: REAUEST_ROOTPATH + "/mobile/food/restaurant/getRestaurant" ,//商家列表 getRestaurantList: REAUEST_ROOTPATH + "/mobile/food/restaurant/getRestaurant", //商家列表
getSpecialGoodDetail: REAUEST_ROOTPATH + "/mobile/shopping/getShoppingById", //特产详情 getSpecialGoodDetail: REAUEST_ROOTPATH + "/mobile/shopping/getShoppingById", //特产详情
getMessageDetail: REAUEST_ROOTPATH + "/mobile/messageInfo/messages", //目的地详情 getMessageDetail: REAUEST_ROOTPATH + "/mobile/messageInfo/messages", //目的地详情
getscenicList: REAUEST_ROOTPATH + "/mobile/scenic/getScenicList.do", //景区列表 getscenicList: REAUEST_ROOTPATH + "/mobile/scenic/getScenicList.do", //景区列表
getAmuseList: REAUEST_ROOTPATH + "/mobile/amuse/getAmuseList.do", //娱乐列表 getAmuseList: REAUEST_ROOTPATH + "/mobile/amuse/getAmuseList.do", //娱乐列表
getLineList: REAUEST_ROOTPATH + "/mobile/line/getLineList.do", //线路列表 getLineList: REAUEST_ROOTPATH + "/mobile/line/getLineList.do", //线路列表
getHotelList: REAUEST_ROOTPATH + "/mobile/gyhotel/getgyHotel.do",//酒店列表 getHotelList: REAUEST_ROOTPATH + "/mobile/gyhotel/getgyHotel.do", //酒店列表
getHomestayList: REAUEST_ROOTPATH + "/admin-api/homestay/HotelApp/pageListHotel",//民宿列表 getHomestayList: REAUEST_ROOTPATH + "/admin-api/homestay/HotelApp/pageListHotel", //民宿列表
getHomestayDetail: REAUEST_ROOTPATH + "/admin-api/homestay/HotelApp/getHotelInfoVo",//民宿详情 getHomestayDetail: REAUEST_ROOTPATH + "/admin-api/homestay/HotelApp/getHotelInfoVo", //民宿详情
createHotelOrder: REAUEST_ROOTPATH + "/admin-api/homestay/HotelOrder/createHotelOrder",//民宿订单提交 createHotelOrder: REAUEST_ROOTPATH + "/admin-api/homestay/HotelOrder/createHotelOrder", //民宿订单提交
userCancelUpdateOrder: REAUEST_ROOTPATH + "/admin-api/homestay/HotelOrder/userCancelUpdateOrder",//民宿订单取消 userCancelUpdateOrder: REAUEST_ROOTPATH + "/admin-api/homestay/HotelOrder/userCancelUpdateOrder", //民宿订单取消
getDictDataList: REAUEST_ROOTPATH + "/admin-api/homestay/HotelOrder/getDictDataList",//民宿订单原因 getDictDataList: REAUEST_ROOTPATH + "/admin-api/homestay/HotelOrder/getDictDataList", //民宿订单原因
aiSendMsg: REAUEST_ROOTPATH + "/app-api/wechatshop/ai/sendMsg",//Ai发送 aiSendMsg: REAUEST_ROOTPATH + "/app-api/wechatshop/ai/sendMsg", //Ai发送
getWeatherForecast: REAUEST_ROOTPATH + "/app-api/wechatshop/weather/getWeatherForecast",//天气预报 getWeatherForecast: REAUEST_ROOTPATH + "/app-api/wechatshop/weather/getWeatherForecast", //天气预报
getRealTimeWeather: REAUEST_ROOTPATH + "/app-api/wechatshop/weather/getRealTimeWeather",//Ai发送 getRealTimeWeather: REAUEST_ROOTPATH + "/app-api/wechatshop/weather/getRealTimeWeather", //Ai发送
getTtranslate: REAUEST_ROOTPATH + "/app-api/wechatshop/toolTranslate/translate", //翻译
// getMethodList: REAUEST_ROOTPATH + "/mobile/method/getMethodList", //原攻略列表 // getMethodList: REAUEST_ROOTPATH + "/mobile/method/getMethodList", //原攻略列表
getMethodList: REAUEST_ROOTPATH + "/mobile/WalkthroughType/selectWalkthroughType",//攻略列表 getMethodList: REAUEST_ROOTPATH + "/mobile/WalkthroughType/selectWalkthroughType", //攻略列表
getMethodRecommendList: REAUEST_ROOTPATH + "/mobile/WalkthroughType/selectMessageRecommend",//攻略推荐列表 getMethodRecommendList: REAUEST_ROOTPATH + "/mobile/WalkthroughType/selectMessageRecommend", //攻略推荐列表
selectMessageWalkthroughType: REAUEST_ROOTPATH + "/mobile/WalkthroughType/selectMessageWalkthroughType",//攻略分类查询攻略列表 selectMessageWalkthroughType: REAUEST_ROOTPATH +
"/mobile/WalkthroughType/selectMessageWalkthroughType", //攻略分类查询攻略列表
getVideoList: REAUEST_ROOTPATH + "/mobile/WalkthroughType/selectVideoSoundList",//影音列表
getVideoList: REAUEST_ROOTPATH + "/mobile/WalkthroughType/selectVideoSoundList", //影音列表
getHotevenList: REAUEST_ROOTPATH + "/mobile/hotevent/getHoteventList.do" ,//活动列表
getHotevenDetail: REAUEST_ROOTPATH + "/mobile/hotevent/getDetailes.do" ,//活动详情 getHotevenList: REAUEST_ROOTPATH + "/mobile/hotevent/getHoteventList.do", //活动列表
getScenicLiveTvList: REAUEST_ROOTPATH + "/mobile/index/getScenicLiveTv.do" ,//首页直播列表 getHotevenDetail: REAUEST_ROOTPATH + "/mobile/hotevent/getDetailes.do", //活动详情
getScenicLiveTvList: REAUEST_ROOTPATH + "/mobile/index/getScenicLiveTv.do", //首页直播列表
getnear: REAUEST_ROOTPATH + "/mobile/appnear/getnear.do", //附近资源接口 (周边) getnear: REAUEST_ROOTPATH + "/mobile/appnear/getnear.do", //附近资源接口 (周边)
scenicgoodlist:REAUEST_ROOTPATH+"/mobile/scenic/scenicgoodlist" ,//景区评论-产监 scenicgoodlist: REAUEST_ROOTPATH + "/mobile/scenic/scenicgoodlist", //景区评论-产监
getCommentFromMobile:REAUEST_ROOTPATH+"/mobile/scenic/getCommentFromMobile" ,//景区评论-本库 getCommentFromMobile: REAUEST_ROOTPATH + "/mobile/scenic/getCommentFromMobile", //景区评论-本库
totalnumAndPj:REAUEST_ROOTPATH+"/mobile/scenic/totalnumAndPj" ,//评价人数和平均评分 totalnumAndPj: REAUEST_ROOTPATH + "/mobile/scenic/totalnumAndPj", //评价人数和平均评分
hotelgoodlist:REAUEST_ROOTPATH+"/mobile/gyhotel/hotelgoodlist" ,//景区评论 hotelgoodlist: REAUEST_ROOTPATH + "/mobile/gyhotel/hotelgoodlist", //景区评论
hoteltotalnumAndPj:REAUEST_ROOTPATH+"/mobile/gyhotel/hoteltotalnumAndPj" ,//评价人数和平均评分 hoteltotalnumAndPj: REAUEST_ROOTPATH + "/mobile/gyhotel/hoteltotalnumAndPj", //评价人数和平均评分
//wisdomGuide:REAUEST_ROOTPATH+"/sjz_qyly/map/index.html", //wisdomGuide:REAUEST_ROOTPATH+"/sjz_qyly/map/index.html",
wisdomGuide:ROOTPATH+"/sjz_qyly/map/index.html", wisdomGuide: ROOTPATH + "/sjz_qyly/map/index.html",
searchList:REAUEST_ROOTPATH + "/mobile/conlumnInfo/getAllDataByBcode", searchList: REAUEST_ROOTPATH + "/mobile/conlumnInfo/getAllDataByBcode",
getAllConlumn: REAUEST_ROOTPATH + "/mobile/conlumnInfo/getAllConlumn" ,//智能机器人栏目列表 getAllConlumn: REAUEST_ROOTPATH + "/mobile/conlumnInfo/getAllConlumn", //智能机器人栏目列表
getCircumData:REAUEST_ROOTPATH + "/mobile/messageInfo/getCircumData.do", //生态走廊中周边推荐 getCircumData: REAUEST_ROOTPATH + "/mobile/messageInfo/getCircumData.do", //生态走廊中周边推荐
jilu: REAUEST_ROOTPATH + "/mobile/messageInfo/messageInfoBrowsenum", //信息阅读接口 jilu: REAUEST_ROOTPATH + "/mobile/messageInfo/messageInfoBrowsenum", //信息阅读接口
dianzan: REAUEST_ROOTPATH + "/mobile/messageInfo/messageInfoEventLike", //信息点赞接口 dianzan: REAUEST_ROOTPATH + "/mobile/messageInfo/messageInfoEventLike", //信息点赞接口
hotevenJilu: REAUEST_ROOTPATH + "/mobile/hotevent/hoteventRead.do", //活动阅读接口 hotevenJilu: REAUEST_ROOTPATH + "/mobile/hotevent/hoteventRead.do", //活动阅读接口
hotevenDianzan: REAUEST_ROOTPATH + "/mobile/hotevent/hoteventLike.do" ,//活动点赞接口 hotevenDianzan: REAUEST_ROOTPATH + "/mobile/hotevent/hoteventLike.do", //活动点赞接口
realTimeCar: REAUEST_ROOTPATH + "/mobile/cyjcstat/realTimeCar" ,//实时车流量接口 realTimeCar: REAUEST_ROOTPATH + "/mobile/cyjcstat/realTimeCar", //实时车流量接口
getYbsjSysParam: REAUEST_ROOTPATH + "/mobile/system/getYbsjSysParam.do" ,//查询是否显示车流量与天气 getYbsjSysParam: REAUEST_ROOTPATH + "/mobile/system/getYbsjSysParam.do", //查询是否显示车流量与天气
campsitedetail: REAUEST_ROOTPATH + "/mobile/messageInfo/messages" ,//驿站营地详情 campsitedetail: REAUEST_ROOTPATH + "/mobile/messageInfo/messages", //驿站营地详情
quyuList: REAUEST_ROOTPATH + "/mobile/sort/getCondition.do" ,//驿站营地列表区域 quyuList: REAUEST_ROOTPATH + "/mobile/sort/getCondition.do", //驿站营地列表区域
getgyHoteldetails : REAUEST_ROOTPATH + "/mobile/gyhotel/getgyHoteldetails.do" ,//住宿详情 getgyHoteldetails: REAUEST_ROOTPATH + "/mobile/gyhotel/getgyHoteldetails.do", //住宿详情
getAllDataByBcode: REAUEST_ROOTPATH+"/mobile/conlumnInfo/getAllDataByBcode" ,//智能机器人 getAllDataByBcode: REAUEST_ROOTPATH + "/mobile/conlumnInfo/getAllDataByBcode", //智能机器人
methodDetail : REAUEST_ROOTPATH + "/mobile/method/getDetailes" ,//活动详情 methodDetail: REAUEST_ROOTPATH + "/mobile/method/getDetailes", //活动详情
tousuList: REAUEST_ROOTPATH+"/mobile/messageInfo/getAreaFromType.do" ,//投诉列表 tousuList: REAUEST_ROOTPATH + "/mobile/messageInfo/getAreaFromType.do", //投诉列表
travelroutedetail: REAUEST_ROOTPATH + "/mobile/line/getDetail.do" ,//线路详情 travelroutedetail: REAUEST_ROOTPATH + "/mobile/line/getDetail.do", //线路详情
huanjing: REAUEST_ROOTPATH + "/mobile/cyjcstat/envMonitoring", //环境监测 huanjing: REAUEST_ROOTPATH + "/mobile/cyjcstat/envMonitoring", //环境监测
getAittoData: REAUEST_ROOTPATH + "/mobile/h5/getAittoData.do" ,//获取爱淘数据 getAittoData: REAUEST_ROOTPATH + "/mobile/h5/getAittoData.do", //获取爱淘数据
getOauthWxUser: ROOTPATH + "/weixin/get", //微信调用授权 getOauthWxUser: ROOTPATH + "/weixin/get", //微信调用授权
getUserOrderCount: "/phone/api/getUserOrderCount" ,//获取订单记录数量 getUserOrderCount: "/phone/api/getUserOrderCount", //获取订单记录数量
getLogin: "/phone/api/getLogin" ,//账号密码登陆 getLogin: "/phone/api/getLogin", //账号密码登陆
getUserOrder: "/phone/api/getUserOrder" ,//获取订单列表 getUserOrder: "/phone/api/getUserOrder", //获取订单列表
getUserOrderInfo: "/phone/api/getUserOrderInfo" ,//获取订单详情 getUserOrderInfo: "/phone/api/getUserOrderInfo", //获取订单详情
uploadPicture: "/phone/api/uploadPicture" ,//上传图片 uploadPicture: "/phone/api/uploadPicture", //上传图片
commentSave: "/phone/api/commentSave" ,//提交评论 commentSave: "/phone/api/commentSave", //提交评论
getSpotInfo: "/phone/api/getSpotInfo" ,//获取景区详情 getSpotInfo: "/phone/api/getSpotInfo", //获取景区详情
getSpotSuitVilTime: "/phone/api/getSpotSuitVilTime" ,//获取景区门票套餐时间 getSpotSuitVilTime: "/phone/api/getSpotSuitVilTime", //获取景区门票套餐时间
getSpotSuitInfo: "/phone/api/getSpotSuitInfo" ,//门票预订 获取 套餐信息 getSpotSuitInfo: "/phone/api/getSpotSuitInfo", //门票预订 获取 套餐信息
spotCreate: "/phone/api/spotCreate" ,//创建订单 spotCreate: "/phone/api/spotCreate", //创建订单
paymentJSAPI: "/phone/api/paymentJSAPI", //支付接口 paymentJSAPI: "/phone/api/paymentJSAPI", //支付接口
userCancelOrder: "/phone/api/userCancelOrder" ,//退款接口 userCancelOrder: "/phone/api/userCancelOrder", //退款接口
LoginUN: "/phone/api/LoginUN" ,//登陆 LoginUN: "/phone/api/LoginUN", //登陆
paymentH5: "/phone/api/paymentH5", //支付接口(h5) paymentH5: "/phone/api/paymentH5", //支付接口(h5)
insertScinceGoodComment : REAUEST_ROOTPATH + "/mobile/scenic/insertScinceGoodComment" ,//保存评论(产监平台) insertScinceGoodComment: REAUEST_ROOTPATH + "/mobile/scenic/insertScinceGoodComment", //保存评论(产监平台)
imgPushFun: REAUEST_ROOTPATH + "/mobile/jpush/imgPush.do" ,//推送消息(带图片) imgPushFun: REAUEST_ROOTPATH + "/mobile/jpush/imgPush.do", //推送消息(带图片)
getMessageInfoFormFilter: REAUEST_ROOTPATH + "/mobile/messageInfo/getMessageInfoFormFilter" ,//信息管理列表数据查询 getMessageInfoFormFilter: REAUEST_ROOTPATH + "/mobile/messageInfo/getMessageInfoFormFilter", //信息管理列表数据查询
getMessageInfoFormFilter_two: REAUEST_ROOTPATH + "/mobile/messageInfo/getMessageInfoFormFilter_two" ,//信息管理列表数据查询-导游页面测试 getMessageInfoFormFilter_two: REAUEST_ROOTPATH +
getMessageInfoFormFilter_food: REAUEST_ROOTPATH + "/mobile/messageInfo/getMessageInfoFormFilter_food" ,//信息管理列表数据查询-美食页面 "/mobile/messageInfo/getMessageInfoFormFilter_two", //信息管理列表数据查询-导游页面测试
getMessgeInfoDetailFormId: REAUEST_ROOTPATH + "/mobile/messageInfo/getMessgeInfoDetailFormId" ,//信息详情接口查询 getMessageInfoFormFilter_food: REAUEST_ROOTPATH +
getSysParamFormRegion: REAUEST_ROOTPATH + "/mobile/sysParam/getSysParamFormRegion" ,//系统参数查询 "/mobile/messageInfo/getMessageInfoFormFilter_food", //信息管理列表数据查询-美食页面
getCondition: REAUEST_ROOTPATH + "/mobile/sort/getCondition.do" ,//排序、分类筛选条件查询 getMessgeInfoDetailFormId: REAUEST_ROOTPATH + "/mobile/messageInfo/getMessgeInfoDetailFormId", //信息详情接口查询
getLineInfoFormFilterByPage: REAUEST_ROOTPATH + "/mobile/lineInfo/getLineInfoFormFilterByPage" ,//查询线路列表接口 getSysParamFormRegion: REAUEST_ROOTPATH + "/mobile/sysParam/getSysParamFormRegion", //系统参数查询
getLineDetailFormId: REAUEST_ROOTPATH + "/mobile/lineInfo/getLineDetailFormId" ,//线路详情接口 getCondition: REAUEST_ROOTPATH + "/mobile/sort/getCondition.do", //排序、分类筛选条件查询
updateMessageInfoUBFeildFormId: REAUEST_ROOTPATH + "/mobile/messageInfo/updateMessageInfoUBFeildFormId" ,//更改信息的浏览量和点赞量 getLineInfoFormFilterByPage: REAUEST_ROOTPATH + "/mobile/lineInfo/getLineInfoFormFilterByPage", //查询线路列表接口
getMapData : REAUEST_ROOTPATH + "/mobile/h5/getTenXData",//获取地图上的数据 getLineDetailFormId: REAUEST_ROOTPATH + "/mobile/lineInfo/getLineDetailFormId", //线路详情接口
getRedisData: REAUEST_ROOTPATH + "/mobile/messageInfo/getRedisData.do" ,//从redis中获取数据 updateMessageInfoUBFeildFormId: REAUEST_ROOTPATH +
getScenicListToMap: REAUEST_ROOTPATH + "/mobile/scenic/getScenicListToMap" ,//查询景区信息显示到地图 "/mobile/messageInfo/updateMessageInfoUBFeildFormId", //更改信息的浏览量和点赞量
getHotelListToMap: REAUEST_ROOTPATH + "/mobile/gyhotel/getHotelListToMap" ,//查询酒店信息显示到地图 getMapData: REAUEST_ROOTPATH + "/mobile/h5/getTenXData", //获取地图上的数据
getScenicListFormFilter: REAUEST_ROOTPATH + "/mobile/scenic/getScenicListFormFilter" ,//查询景区列表(暂用在热门景区,所返回字段只有目的地详情中热门景区字段) getRedisData: REAUEST_ROOTPATH + "/mobile/messageInfo/getRedisData.do", //从redis中获取数据
getWeather: REAUEST_ROOTPATH + "/mobile/weather/getweather",//天气 getScenicListToMap: REAUEST_ROOTPATH + "/mobile/scenic/getScenicListToMap", //查询景区信息显示到地图
saveUser: REAUEST_ROOTPATH + "/mobile/weixin/saveUserInfo" ,//APP保存微信用户信息 getHotelListToMap: REAUEST_ROOTPATH + "/mobile/gyhotel/getHotelListToMap", //查询酒店信息显示到地图
getUserInterest: REAUEST_ROOTPATH + "/mobile/interest/getUserInterest.do" ,//根据用户uniid查询用户关注选择的推送数据 getScenicListFormFilter: REAUEST_ROOTPATH +
addUserInterest: REAUEST_ROOTPATH + "/mobile/interest/addUserInterest.do" ,//保存用户关注选择的推送数据 "/mobile/scenic/getScenicListFormFilter", //查询景区列表(暂用在热门景区,所返回字段只有目的地详情中热门景区字段)
selectControlListFormFilter : REAUEST_ROOTPATH + "/mobile/complaint/selectControlListFormFilter" ,//投诉列表 getWeather: REAUEST_ROOTPATH + "/mobile/weather/getweather", //天气
getAddressByLatLng: REAUEST_ROOTPATH + "/mobile/h5/getAddressByLatLng" ,//逆地址解析 saveUser: REAUEST_ROOTPATH + "/mobile/weixin/saveUserInfo", //APP保存微信用户信息
fileUpload: REAUEST_ROOTPATH + "/mobile/file/upload" ,//上传文件 getUserInterest: REAUEST_ROOTPATH + "/mobile/interest/getUserInterest.do", //根据用户uniid查询用户关注选择的推送数据
base64Upload: REAUEST_ROOTPATH + "/mobile/file/base64Upload" ,//上传文件-base64 addUserInterest: REAUEST_ROOTPATH + "/mobile/interest/addUserInterest.do", //保存用户关注选择的推送数据
addFeedback : REAUEST_ROOTPATH + "/mobile/complaint/addFeedback" ,//新增投诉 selectControlListFormFilter: REAUEST_ROOTPATH + "/mobile/complaint/selectControlListFormFilter", //投诉列表
getMapScenicList:REAUEST_ROOTPATH+"/mobile/mapScenic/getMapScenicList",//全域景区列表 getAddressByLatLng: REAUEST_ROOTPATH + "/mobile/h5/getAddressByLatLng", //逆地址解析
getAllDataListPage:REAUEST_ROOTPATH+"/mobile/allDataList/getAllDataList",//ybsjAllData列表 fileUpload: REAUEST_ROOTPATH + "/mobile/file/upload", //上传文件
wxLiveAdd: REAUEST_ROOTPATH + "/mobile/wxLive/liveAdd.do",//添加域名 base64Upload: REAUEST_ROOTPATH + "/mobile/file/base64Upload", //上传文件-base64
wxQueryLive: REAUEST_ROOTPATH + "/mobile/wxLive/queryLive.do",//查询直播中的流 addFeedback: REAUEST_ROOTPATH + "/mobile/complaint/addFeedback", //新增投诉
wxGetLiveUrl: REAUEST_ROOTPATH + "/mobile/wxLive/getLiveUrl.do",//生成推流及播放地址 getMapScenicList: REAUEST_ROOTPATH + "/mobile/mapScenic/getMapScenicList", //全域景区列表
getAllDataListPage: REAUEST_ROOTPATH + "/mobile/allDataList/getAllDataList", //ybsjAllData列表
wxLiveAdd: REAUEST_ROOTPATH + "/mobile/wxLive/liveAdd.do", //添加域名
wxQueryLive: REAUEST_ROOTPATH + "/mobile/wxLive/queryLive.do", //查询直播中的流
wxGetLiveUrl: REAUEST_ROOTPATH + "/mobile/wxLive/getLiveUrl.do", //生成推流及播放地址
generalTranslation: REAUEST_ROOTPATH + "/mobile/translate/generalTranslation", //照片翻译 generalTranslation: REAUEST_ROOTPATH + "/mobile/translate/generalTranslation", //照片翻译
photoTranslation: REAUEST_ROOTPATH + "/mobile/translate/photoTranslation" ,//文字翻译 photoTranslation: REAUEST_ROOTPATH + "/mobile/translate/photoTranslation", //文字翻译
objectDistinguish: REAUEST_ROOTPATH + "/mobile/translate/objectDistinguish", //通用物识别 objectDistinguish: REAUEST_ROOTPATH + "/mobile/translate/objectDistinguish", //通用物识别
insertLoginLog: REAUEST_ROOTPATH + "/mobile/ybsjLoginLogInfo/insertLoginLog" ,//登陆日志 insertLoginLog: REAUEST_ROOTPATH + "/mobile/ybsjLoginLogInfo/insertLoginLog", //登陆日志
saveOperatorLog: REAUEST_ROOTPATH + "/mobile/ybsjLoginLogInfo/saveOperatorLog" ,//操作日志 saveOperatorLog: REAUEST_ROOTPATH + "/mobile/ybsjLoginLogInfo/saveOperatorLog", //操作日志
getDicByDicnum: REAUEST_ROOTPATH + "/mobile/dictionary/getDicByDicnum" ,//根据dicnum获取字典表子级 getDicByDicnum: REAUEST_ROOTPATH + "/mobile/dictionary/getDicByDicnum", //根据dicnum获取字典表子级
getScenic: REAUEST_ROOTPATH + "/mobile/reserve/subscribeScenic" ,//查询需要预约的景区 getScenic: REAUEST_ROOTPATH + "/mobile/reserve/subscribeScenic", //查询需要预约的景区
scenicState: REAUEST_ROOTPATH + "/mobile/reserve/scenicState" ,//查询需要预约的景区的状况 scenicState: REAUEST_ROOTPATH + "/mobile/reserve/scenicState", //查询需要预约的景区的状况
reserveScenic:REAUEST_ROOTPATH + "/mobile/reserve/scenic" ,//预约景区 reserveScenic: REAUEST_ROOTPATH + "/mobile/reserve/scenic", //预约景区
myReserve:REAUEST_ROOTPATH + "/mobile/reserve/myReserve" ,// 我的预约信息 myReserve: REAUEST_ROOTPATH + "/mobile/reserve/myReserve", // 我的预约信息
cancelReserve:REAUEST_ROOTPATH + "/mobile/reserve/cancelReserve" ,// 取消预约 cancelReserve: REAUEST_ROOTPATH + "/mobile/reserve/cancelReserve", // 取消预约
scanQrCode:REAUEST_ROOTPATH + "/mobile/reserve/scanQrCode" ,// 扫码 scanQrCode: REAUEST_ROOTPATH + "/mobile/reserve/scanQrCode", // 扫码
confirmReserve:REAUEST_ROOTPATH + "/mobile/reserve/confirmReserve" ,// 确认通过 confirmReserve: REAUEST_ROOTPATH + "/mobile/reserve/confirmReserve", // 确认通过
scanRecored:REAUEST_ROOTPATH + "/mobile/reserve/scanRecored" ,// 扫码记录 scanRecored: REAUEST_ROOTPATH + "/mobile/reserve/scanRecored", // 扫码记录
scenicAdminLogin:REAUEST_ROOTPATH + "/mobile/weixin/scenicAdminLogin" ,// 管理员登陆 scenicAdminLogin: REAUEST_ROOTPATH + "/mobile/weixin/scenicAdminLogin", // 管理员登陆
getCommentList: REAUEST_ROOTPATH + "/mobile/comment/getCommentList" ,//获取用户下的所有评论 getCommentList: REAUEST_ROOTPATH + "/mobile/comment/getCommentList", //获取用户下的所有评论
getCommentDetail: REAUEST_ROOTPATH + "/mobile/comment/getCommentDetail" ,//获取评论详情 getCommentDetail: REAUEST_ROOTPATH + "/mobile/comment/getCommentDetail", //获取评论详情
saveCommentInteract: REAUEST_ROOTPATH + "/mobile/comment/saveCommentInteract" ,//保存用户回复 saveCommentInteract: REAUEST_ROOTPATH + "/mobile/comment/saveCommentInteract", //保存用户回复
saveCommentDetail: REAUEST_ROOTPATH + "/mobile/comment/saveCommentDetail" ,//保存用户评论 saveCommentDetail: REAUEST_ROOTPATH + "/mobile/comment/saveCommentDetail", //保存用户评论
getDimensionList: REAUEST_ROOTPATH + "/mobile/comment/getDimensionList" ,//获取评论页面网评维度 getDimensionList: REAUEST_ROOTPATH + "/mobile/comment/getDimensionList", //获取评论页面网评维度
getScenicVolume: REAUEST_ROOTPATH + "/mobile/scenic/getScenicVolume" ,//从产监获取客流量 getScenicVolume: REAUEST_ROOTPATH + "/mobile/scenic/getScenicVolume", //从产监获取客流量
subscribeScenic: REAUEST_ROOTPATH + "/mobile/reserve/subscribeScenic" ,//获取可预约的景区 subscribeScenic: REAUEST_ROOTPATH + "/mobile/reserve/subscribeScenic", //获取可预约的景区
scenicDetail: REAUEST_ROOTPATH + "/mobile/reserve/scenicDetail" ,//预约的景区详情 scenicDetail: REAUEST_ROOTPATH + "/mobile/reserve/scenicDetail", //预约的景区详情
scenicTimeList: REAUEST_ROOTPATH + "/mobile/reserve/scenicTimeList" ,//景区时间段 scenicTimeList: REAUEST_ROOTPATH + "/mobile/reserve/scenicTimeList", //景区时间段
saveReserveInfo: REAUEST_ROOTPATH + "/mobile/reserve/saveReserveInfo" ,//保存景区预约信息 saveReserveInfo: REAUEST_ROOTPATH + "/mobile/reserve/saveReserveInfo", //保存景区预约信息
reserveDetail: REAUEST_ROOTPATH + "/mobile/reserve/reserveDetail" ,//预约详情 reserveDetail: REAUEST_ROOTPATH + "/mobile/reserve/reserveDetail", //预约详情
loginApp:REAUEST_ROOTPATH + "/mobile/weixin/loginApp" ,// app登录 loginApp: REAUEST_ROOTPATH + "/mobile/weixin/loginApp", // app登录
registerUserApp:REAUEST_ROOTPATH + "/mobile/weixin/registerUserApp" ,//app注册 registerUserApp: REAUEST_ROOTPATH + "/mobile/weixin/registerUserApp", //app注册
getScenicListByGuids:REAUEST_ROOTPATH + "/mobile/scenic/getScenicListByGuids" ,//获取热门景点列表 getScenicListByGuids: REAUEST_ROOTPATH + "/mobile/scenic/getScenicListByGuids", //获取热门景点列表
deleteUserApp:REAUEST_ROOTPATH + "/mobile/weixin/deleteUserApp" ,//注销账号 deleteUserApp: REAUEST_ROOTPATH + "/mobile/weixin/deleteUserApp", //注销账号
//票务这边的 //票务这边的
pageComplaintinfo:PWPATH+"/app-api/wechatshop/complaintinfo/pageComplaintinfo",//获得投诉建议分页 pageComplaintinfo: PWPATH + "/app-api/wechatshop/complaintinfo/pageComplaintinfo", //获得投诉建议分页
createComplaintinfo: PWPATH +"/app-api/wechatshop/complaintinfo/createComplaintinfo",//创建投诉建议 createComplaintinfo: PWPATH + "/app-api/wechatshop/complaintinfo/createComplaintinfo", //创建投诉建议
getComplaintinfo: PWPATH +"/app-api/wechatshop/complaintinfo/getComplaintinfo",//投诉建议详情 getComplaintinfo: PWPATH + "/app-api/wechatshop/complaintinfo/getComplaintinfo", //投诉建议详情
getTicketSortList: PWPATH + "/app-api/wechatshop/ticket/getTicketSortList",//获取门票分类 getTicketSortList: PWPATH + "/app-api/wechatshop/ticket/getTicketSortList", //获取门票分类
getTicketList: PWPATH + "/app-api/wechatshop/ticket/getTicketList",//获取门票列表分页 getTicketList: PWPATH + "/app-api/wechatshop/ticket/getTicketList", //获取门票列表分页
isQuota: PWPATH + "/app-api/wechatshop/ticket/isQuota",//查询是否限购 isQuota: PWPATH + "/app-api/wechatshop/ticket/isQuota", //查询是否限购
getTicketInfo: PWPATH + "/app-api/wechatshop/ticket/getTicketInfo",//获取门票信息 getTicketInfo: PWPATH + "/app-api/wechatshop/ticket/getTicketInfo", //获取门票信息
getScencAndTicketInfo: PWPATH + "/app-api/wechatshop/ticket/getScencAndTicketInfo",//获取景区门票相关信息 getScencAndTicketInfo: PWPATH + "/app-api/wechatshop/ticket/getScencAndTicketInfo", //获取景区门票相关信息
getTicketDateInventory: PWPATH + "/app-api/wechatshop/ticket/getTicketDateInventory",//获得门票日期库存 getTicketDateInventory: PWPATH + "/app-api/wechatshop/ticket/getTicketDateInventory", //获得门票日期库存
verifyAndCreateOrder: PWPATH + "/app-api/wechatshop/ticket/verifyAndCreateOrder",//验证门票库存,生成订单 verifyAndCreateOrder: PWPATH + "/app-api/wechatshop/ticket/verifyAndCreateOrder", //验证门票库存,生成订单
isHaveOrder: PWPATH + "/app-api/wechatshop/ticket/isHaveOrder",//获取当前用户是否存在待支付订单 isHaveOrder: PWPATH + "/app-api/wechatshop/ticket/isHaveOrder", //获取当前用户是否存在待支付订单
getOrderList: PWPATH + "/app-api/wechatshop/order/getOrderList",//获取订单分页 getOrderList: PWPATH + "/app-api/wechatshop/order/getOrderList", //获取订单分页
cancelOrder: PWPATH + "/app-api/wechatshop/order/cancelOrder",//取消订单 cancelOrder: PWPATH + "/app-api/wechatshop/order/cancelOrder", //取消订单
delectOrder: PWPATH + "/app-api/wechatshop/order/delectOrder",//删除订单(目前逻辑是只能删除已取消的订单) delectOrder: PWPATH + "/app-api/wechatshop/order/delectOrder", //删除订单(目前逻辑是只能删除已取消的订单)
getOrderDetails: PWPATH + "/app-api/wechatshop/order/getOrderDetails",//获取订单详情 getOrderDetails: PWPATH + "/app-api/wechatshop/order/getOrderDetails", //获取订单详情
payOrder: PWPATH + "/app-api/pay/order/submit",//微信支付 payOrder: PWPATH + "/app-api/pay/order/submit", //微信支付
refund: PWPATH + "/app-api/pay/refund/refund",//发起退款 refund: PWPATH + "/app-api/pay/refund/refund", //发起退款
refundWeChat: PWPATH + "/app-api/pay/refund/refundWeChat",//发起退款-启明芯 refundWeChat: PWPATH + "/app-api/pay/refund/refundWeChat", //发起退款-启明芯
getQmxTicketDoc: PWPATH + "/app-api/wechatshop/ticket/getQmxTicketDoc",//获取启明芯门票证件信息 getQmxTicketDoc: PWPATH + "/app-api/wechatshop/ticket/getQmxTicketDoc", //获取启明芯门票证件信息
getOrderExpireTime: PWPATH + "/app-api/wechatshop/order/getOrderExpireTime",//获取订单自动取消时长配置 getOrderExpireTime: PWPATH + "/app-api/wechatshop/order/getOrderExpireTime", //获取订单自动取消时长配置
getPhone: PWPATH+"/app-api/wechatshop/auth/getWeChatUserMobile",//获取手机号 getPhone: PWPATH + "/app-api/wechatshop/auth/getWeChatUserMobile", //获取手机号
weChatLogin: PWPATH+"/app-api/wechatshop/auth/weChatLogin",//登陆获取token weChatLogin: PWPATH + "/app-api/wechatshop/auth/weChatLogin", //登陆获取token
refreshToken: PWPATH +"/admin-api/system/auth/refresh-token",//登陆获取token refreshToken: PWPATH + "/admin-api/system/auth/refresh-token", //登陆获取token
// 民宿客栈 // 民宿客栈
getHomestayOrderDetail: PWPATH +"/admin-api/homestay/HotelOrder/selectUserOrderOne", // 获取民宿订单详情信息 getHomestayOrderDetail: PWPATH + "/admin-api/homestay/HotelOrder/selectUserOrderOne", // 获取民宿订单详情信息
getHomestayOrderList: PWPATH + "/admin-api/homestay/HotelOrder/selectPageUser", // 获取用户全部民宿订单列表 getHomestayOrderList: PWPATH + "/admin-api/homestay/HotelOrder/selectPageUser", // 获取用户全部民宿订单列表
getHomestayOrderRefund: PWPATH + "/admin-api/homestay/HotelOrder/getHotelRefundLog", // 获取用户民宿退款信息 getHomestayOrderRefund: PWPATH + "/admin-api/homestay/HotelOrder/getHotelRefundLog", // 获取用户民宿退款信息
} }

@ -283,6 +283,7 @@ module.exports = {
method: "GET", method: "GET",
header: headers header: headers
}; };
console.log('config'.config)
config = requestInterceptor(config); config = requestInterceptor(config);
uni.request(config).then(result => { uni.request(config).then(result => {
const response = responseInterceptor(result, config); const response = responseInterceptor(result, config);

@ -96,8 +96,7 @@
class="at_size_2" mode="aspectFill"></image> class="at_size_2" mode="aspectFill"></image>
<view class="at_t">附近</view> <view class="at_t">附近</view>
</view> </view>
<view class="w_20" @click="goQuanyi"> <view class="w_20" @click="goToPages('jiqiren')">
<!-- <view class="w_20" @click="goToPages('jiqiren')"> -->
<image src="https://eluyou.ailuquan.cn/upload/image/2024/mapIcon/daolan/lefu2x.png" <image src="https://eluyou.ailuquan.cn/upload/image/2024/mapIcon/daolan/lefu2x.png"
class="at_size_2" mode="aspectFill"></image> class="at_size_2" mode="aspectFill"></image>
<view class="at_t">AI管家</view> <view class="at_t">AI管家</view>

@ -49,7 +49,7 @@
</view> </view>
</view> </view>
<view class="w_20" hover-class="checkActive"> <view class="w_20" hover-class="checkActive">
<view class="kua_nav" @click="goQuanyi"> <view class="kua_nav" @click="goToPages('Ai')">
<image src="https://eluyou.ailuquan.cn/upload/image/2024/mapIcon/daolan/icon-nav-04.png" <image src="https://eluyou.ailuquan.cn/upload/image/2024/mapIcon/daolan/icon-nav-04.png"
class="at_size_1"></image> class="at_size_1"></image>
<view class="at_t">行程规划</view> <view class="at_t">行程规划</view>
@ -79,7 +79,7 @@
</view> </view>
</view> </view>
<view class="w_20" hover-class="checkActive"> <view class="w_20" hover-class="checkActive">
<view class="kua_nav" @click="goToPages('Ai')"> <view class="kua_nav" @click="goToPages('jiqiren')">
<image src="https://eluyou.ailuquan.cn/upload/image/2024/mapIcon/daolan/icon-nav-13.png" <image src="https://eluyou.ailuquan.cn/upload/image/2024/mapIcon/daolan/icon-nav-13.png"
class="at_size_2"></image> class="at_size_2"></image>
<view class="at_t">AI管家</view> <view class="at_t">AI管家</view>

@ -137,6 +137,7 @@
if (!that.$util.isSuccess(res)) { if (!that.$util.isSuccess(res)) {
return; return;
} }
console.log("========")
var data = res.data; var data = res.data;
data.logo = this.$config.ROOTPATH + data.logo; data.logo = this.$config.ROOTPATH + data.logo;
var shangjia = data[that.$param.shangjiakey]; var shangjia = data[that.$param.shangjiakey];

@ -1,11 +1,11 @@
<template> <template>
<view class="jqr_dig_warp"> <view class="jqr_dig_warp">
<uni-nav-bar dark statusBar :fixed="true" background-color="transparent" :border="false" left-icon="left" <uni-nav-bar dark statusBar :fixed="true" background-color="transparent" :border="false" left-icon="left"
title="智能客服" @clickLeft="back" /> title="智能客服" @clickLeft="back" />
<!-- --> <!-- -->
<scroll-view id="scrollview" class="jqr_dig_scroll" scroll-y="true" :style="{height:style.contentViewHeight+'px'}" <scroll-view id="scrollview" class="jqr_dig_scroll" scroll-y="true"
:scroll-with-animation="true" :scroll-top="scrollTop"> :style="{height:style.contentViewHeight+'px'}" :scroll-with-animation="true" :scroll-top="scrollTop">
<view id="msgview" class="user-box" :class="item.typestyle" v-for="(item,index) in messages" :key="index"> <view id="msgview" class="user-box" :class="item.typestyle" v-for="(item,index) in messages" :key="index">
<view class="quanbao"> <view class="quanbao">
<image :src="item.headurl" class="jqr_dig_pic"></image> <image :src="item.headurl" class="jqr_dig_pic"></image>
@ -13,13 +13,13 @@
<span>泉宝</span> <span>泉宝</span>
<span>{{ item.time }}</span> <span>{{ item.time }}</span>
</view> </view>
</view> </view>
<view class="dig_column "> <view class="dig_column ">
<view :class="item.contentstyle" > <view :class="item.contentstyle">
<view class="janw_link" v-for="(items,index) in item.content" :key="index"> <navigator class="janw_link" @tap="goToMsgDetail(items)" v-for="(items,i) in item.content"
:key="i">
{{items.text}} {{items.text}}
</view> </navigator>
<navigator @tap="getSelectMsg(item.search,item.bcode,item.page+1)" <navigator @tap="getSelectMsg(item.search,item.bcode,item.page+1)"
v-if="item.type == 'jiqiren' && item.content.length >= 7" class="dig_more"> v-if="item.type == 'jiqiren' && item.content.length >= 7" class="dig_more">
查看更多 查看更多
@ -45,8 +45,6 @@
<view class="w_33 half" @tap="showText()"> <view class="w_33 half" @tap="showText()">
<image src="/subPageB/static/img/jqr_jpan.png" class="jqr_tol_pic"></image> <image src="/subPageB/static/img/jqr_jpan.png" class="jqr_tol_pic"></image>
</view> </view>
<view class="w_33 half" @tap="goToIndex()"> <view class="w_33 half" @tap="goToIndex()">
<image src="/subPageB/static/img/jqr_home.png" class="jqr_tol_pic"></image> <image src="/subPageB/static/img/jqr_home.png" class="jqr_tol_pic"></image>
</view> </view>
@ -61,9 +59,7 @@
</text> </text>
</scroll-view> </scroll-view>
<view class="dly_flex jpan_mode"> <view class="dly_flex jpan_mode">
<view class="b_tol_ipt"> <view class="b_tol_ipt">
<input v-model="inputValue" type="text" focus placeholder="请输入" <input v-model="inputValue" type="text" focus placeholder="请输入"
placeholder-style="color:#999; font-size:24rpx" class="ipt_jqr" /> placeholder-style="color:#999; font-size:24rpx" class="ipt_jqr" />
@ -74,88 +70,94 @@
</view> </view>
</view> </view>
<!-- 语音模式 --> <!-- 语音模式 -->
<!-- <view class="yuyin_mode"> <view class="yuyin_mode">
<view class="dly_flex_c jqr_tol_box"> <view class="dly_flex_c jqr_tol_box" @touchstart="touchstart" @touchend="touchend">
<image src="/subPageB/static/img/jqr_yuy.png" class="jqr_tol_pic_l"></image>
<image src="/subPageB/static/img/jqr_yuy.png" class="jqr_tol_pic_l"></image>
</view> </view>
</view> --> </view>
<view v-if="recordStart" class="audio-animation">
<view class="audio-wave">
<text class="audio-wave-text" v-for="item in 10" :style="{'animation-delay': `${item/10}s`}"></text>
<view class="text">松开 发送</view>
</view>
</view>
</view> </view>
</view> </view>
</template> </template>
<script> <script>
import uniNavBar from '@/uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar.vue' import uniNavBar from '@/uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar.vue'
const recorderManager = uni.getRecorderManager(); const recorderManager = uni.getRecorderManager();
const innerAudioContext = uni.createInnerAudioContext(); const innerAudioContext = uni.createInnerAudioContext();
innerAudioContext.autoplay = true; innerAudioContext.autoplay = true;
export default { export default {
components:{ components: {
uniNavBar uniNavBar
}, },
data() { data() {
return { return {
threebut:true, //
textbut:false, rootPath: this.$config.ROOTPATH,
allConList:[], threebut: true,
style:{ textbut: false,
allConList: [],
style: {
pageHeight: 0, pageHeight: 0,
contentViewHeight: 0, contentViewHeight: 0,
footViewHeight: 90, footViewHeight: 90,
mitemHeight: 0 mitemHeight: 0
}, },
scrollTop:0, scrollTop: 0,
messages: [{ messages: [{
type:"jiqiren", type: "jiqiren",
typestyle:"dly_flex left_dig m-item", typestyle: "dly_flex left_dig m-item",
time: this.$util.getCurrentTime3(), time: this.$util.getCurrentTime3(),
headurl:"/subPageB/static/img/jqr_jxw.png", headurl: "/subPageB/static/img/jqr_jxw.png",
content:[{text:"您好,我是您的智能小助手"}], content: [{
contentstyle:"jqr_box_txt dig_gd" text: "您好,我是您的智能小助手"
}],
contentstyle: "jqr_box_txt dig_gd"
}], }],
inputValue:"", inputValue: "",
luyinstart:true, luyinstart: true,
voicePath:"", voicePath: "",
max: 5000, // messageType: 'voice', // text voice
frame: 50, // recordStart: false,
longTag: false, //
maxTiming: false, //
draw: undefined, draw: undefined,
seconds: '00', seconds: '00',
ms: '00', ms: '00',
yuyintype:true yuyintype: true
} }
}, },
created: function () { created: function() {
const res = uni.getSystemInfoSync(); const res = uni.getSystemInfoSync();
this.style.pageHeight = res.windowHeight; this.style.pageHeight = res.windowHeight;
this.style.contentViewHeight = res.windowHeight - uni.getSystemInfoSync().screenWidth / 350 * (100); // this.style.contentViewHeight = res.windowHeight - uni.getSystemInfoSync().screenWidth / 350 * (100); //
}, },
onLoad:function(){ onLoad: function() {
this.getAllConlumn(); this.getAllConlumn();
}, },
methods: { methods: {
back(){ back() {
uni.navigateBack({ uni.navigateBack({
delta:1, delta: 1,
}) })
}, },
showText:function(){ showText: function() {
this.threebut = false; this.threebut = false;
this.textbut = true; this.textbut = true;
}, },
showThreeBut:function(){ showThreeBut: function() {
this.threebut = true; this.threebut = true;
this.textbut = false; this.textbut = false;
}, },
goToIndex:function(){ goToIndex: function() {
uni.reLaunch({ uni.reLaunch({
url: "/pages/index/index" url: "/pages/index/index"
}) })
}, },
getAllConlumn:function(){ getAllConlumn: function() {
var data = { var data = {
"pageno": "1", "pageno": "1",
"pagesize": "10", "pagesize": "10",
@ -164,39 +166,41 @@ innerAudioContext.autoplay = true;
this.allConList = res.data; this.allConList = res.data;
}) })
}, },
getMsg:function(title,baseinfo,page){ getMsg: function(title, baseinfo, page) {
if(title == ""){ if (title == "") {
title = this.inputValue; title = this.inputValue;
if(this.inputValue.replace(/^\s+|\s+$/g, '') == ""){ if (this.inputValue.replace(/^\s+|\s+$/g, '') == "") {
return; return;
} }
} }
this.getSelectMsg(title,baseinfo,page); this.getSelectMsg(title, baseinfo, page);
this.messages.push({ this.messages.push({
type:"user", type: "user",
typestyle:"dly_flex_c2 right_dig m-item me", typestyle: "dly_flex_c2 right_dig m-item me",
time: this.$util.getCurrentTime3(), time: this.$util.getCurrentTime3(),
headurl:"", headurl: "",
content:[{text:title}], content: [{
contentstyle:"jqr_box" text: title
}],
contentstyle: "jqr_box"
}) })
this.scrollToBottom(); this.scrollToBottom();
this.inputValue = ""; this.inputValue = "";
}, },
getSelectMsg:function(search,baseinfo,page){ getSelectMsg: function(search, baseinfo, page) {
var data = {} var data = {}
if(baseinfo != ""){ if (baseinfo != "") {
data = { data = {
"pageno": page, "pageno": page,
"pagesize": "7", "pagesize": "7",
"bcode":baseinfo, "bcode": baseinfo,
"userkey": this.$param.userkey, "userkey": this.$param.userkey,
} }
}else if(search != ""){ } else if (search != "") {
data = { data = {
"pageno": page, "pageno": page,
"pagesize": "7", "pagesize": "7",
"search":search, "search": search,
"userkey": this.$param.userkey, "userkey": this.$param.userkey,
} }
} }
@ -205,167 +209,235 @@ innerAudioContext.autoplay = true;
var data = res.data.data var data = res.data.data
for (var i = 0; i < data.length; i++) { for (var i = 0; i < data.length; i++) {
var item = { var item = {
'text':data[i].title, 'text': data[i].title,
'dataid':data[i].dataid, 'dataid': data[i].dataid,
'bcode':data[i].bcode, 'bcode': data[i].bcode,
'region':data[i].region, 'region': data[i].region,
} }
content.push(item); content.push(item);
} }
this.messages.push({ this.$nextTick(()=>{
type:"jiqiren", this.messages.push({
typestyle:"dly_flex left_dig m-item", type: "jiqiren",
time: this.$util.getCurrentTime3(), typestyle: "dly_flex left_dig m-item",
headurl:"/subPageB/static/img/jqr_jxw.png", time: this.$util.getCurrentTime3(),
content:content, headurl: "/subPageB/static/img/jqr_jxw.png",
page:page, content: content,
search:search, page: page,
bcode:baseinfo, search: search,
contentstyle:"jqr_box dig_gd" bcode: baseinfo,
contentstyle: "jqr_box dig_gd"
})
}) })
this.scrollToBottom(); this.scrollToBottom();
}) })
}, },
goToMsgDetail:function(items){ goToMsgDetail: function(items) {
if(items.type == "user"){
console.log(items)
if (items.type == "user") {
return; return;
} }
if(items.bcode == "3301"){ if (items.bcode == "3301") {
uni.navigateTo({ uni.navigateTo({
url: `/subPageA/scenic/scenicdetial/scenicdetial?guid=`+items.dataid url: `/subPageA/scenic/scenicdetial/scenicdetial?guid=` + items.dataid
}); });
} }
if(items.bcode == "3302"){ if (items.bcode == "3302") {
uni.navigateTo({ uni.navigateTo({
url: "/subPageA/food/fooddetial/fooddetial?fid=" + items.dataid + "&fareacode=" + items.region url: "/subPageA/food/fooddetial/fooddetial?fid=" + items.dataid + "&fareacode=" + items
.region
}) })
} }
if(items.bcode == "3303"){ if (items.bcode == "3303") {
uni.navigateTo({ uni.navigateTo({
url: "/subPageA/method/methoddetail/methoddetail?guid="+items.dataid url: "/subPageA/method/methodDetail/methodDetail?guid=" + items.dataid
}) })
} }
if(items.bcode == "3304"){ if (items.bcode == "3304") {
uni.navigateTo({ uni.navigateTo({
url: "/pagesA/travelroute/travelroutedetail/travelroutedetail?id="+items.dataid url: "/subPageB/hotel/hoteldetail/hoteldetail?id=" + items.dataid + '&region=' + items
.region
}) })
} }
if(items.bcode == "3305"){ if (items.bcode == "3305") {
uni.navigateTo({ uni.navigateTo({
url: "/subPageB/hotel/hoteldetail/hoteldetail?id="+items.dataid url: "/subPageA/travelroute/travelroutedetail/travelroutedetail?id=" + items.dataid
}) })
} }
},
/* start: function() {
this.longTag = setTimeout(this.recording, 500); // 500ms
}, },
move: function() {
clearTimeout(this.longTag);
clearTimeout(this.maxTiming);
clearInterval(this.draw);
this.longTag = false;
},
end: function() {
clearTimeout(this.longTag);
clearTimeout(this.maxTiming);
clearInterval(this.draw);
if (this.longTag) { // timeoutfalserecordingtouchmove
console.log('按住时间少于500ms会执行这里并return');
return
}
this.longTag = false;
this.draw = false;
if(this.yuyintype){
this.stopRecord();
}
this.yuyintype = true;
}, */
recording: function() {
if(this.luyinstart){
uni.showLoading({
title: '录音中,再次点击结束录音'
});
this.startRecord();
this.luyinstart = false;
}else{
uni.hideLoading();
uni.showToast({
title: '结束录音',
duration: 2000
});
this.stopRecord();
this.luyinstart = true;
}
/* // 开始录音
this.longTag = false;
this.startRecord();
// 10
this.maxTiming = setTimeout(function() {
//clearInterval(this.draw);
self.stopRecord();
self.yuyintype = false;
//
// self.send();
}, self.max); */
//
/*let angle = -0.5;
let context = uni.createCanvasContext('canvas');
this.draw = setInterval(function() {
context.beginPath();
context.setStrokeStyle("#11C966");
context.setLineWidth(3);
context.arc(61,40, 35, -0.5 * Math.PI, (angle += 2 / (self.max / self.frame)) * Math.PI, false);
context.stroke();
context.draw();
}, self.frame); */
},
//
startRecord:function() {
let that = this;
that.$wechat.startRecord(
function(res){
console.log("开始录音")
},function(res){
})
},
//
stopRecord:function(){
let that = this;
that.$wechat.stopRecord(
function(res){
var str = res.translateResult.replace(/[\ |\~|\`|\!|\@|\#|\$|\%|\^|\&|\*|\(|\)|\-|\_|\+|\=|\||\\|\[|\]|\{|\}|\;|\:|\"|\'|\,|\,|\.|\<|\。|\>|\/|\?]/g,"");
that.getMsg(str,'',1)
},function(res){
} /**
) * @author gongliying
}, * @date 2019-07-26
   /** * @information 跳转页面底部
* @author gongliying */
* @date 2019-07-26 scrollToBottom: function() {
* @information 跳转页面底部
*/
scrollToBottom: function () {
let that = this; let that = this;
let query = uni.createSelectorQuery(); let query = uni.createSelectorQuery();
query.selectAll('.m-item').boundingClientRect(); query.selectAll('.m-item').boundingClientRect();
query.select('#scrollview').boundingClientRect(); query.select('#scrollview').boundingClientRect();
query.exec((res) => { query.exec((res) => {
that.style.mitemHeight = 0; that.style.mitemHeight = 0;
res[0].forEach((rect) => that.style.mitemHeight = that.style.mitemHeight + rect.height + 200) // res[0].forEach((rect) => that.style.mitemHeight = that.style.mitemHeight + rect.height +
           // vueDOM setTimeout    200) //
           setTimeout(() => { // vueDOM setTimeout   
setTimeout(() => {
if (that.style.mitemHeight > (that.style.contentViewHeight -
100)) { //
that.scrollTop = that.style.mitemHeight - that.style
.contentViewHeight //
}
}, 100)
})
},
//
authTips() {
uni.showModal({
title: '提示',
content: '您拒绝了麦克风权限,将导致功能不能正常使用,去设置权限?',
confirmText: '去设置',
cancelText: '取消',
success: (res) => {
if (res.confirm) {
uni.openSetting({
success: (res) => {
if (res.authSetting['scope.record']) {
console.log("已授权麦克风");
this._recordAuth = true
} else {
//
wx.showModal({
title: '提示',
content: '您未授权麦克风,功能将无法使用',
showCancel: false,
confirmText: '知道了'
})
}
}
})
}
}
})
},
//
touchstart() {
this.threebut = false;
this.textbut = true;
//
const _permission = 'scope.record'
uni.getSetting({
success: (res) => {
//
if (res.authSetting.hasOwnProperty(_permission)) {
// false
if (!res.authSetting[_permission]) {
this.authTips()
} else {
//
this._recordAuth = true
//
recorderManager.start({
format: 'pcm',
})
recorderManager.onStart(() => {
this.recordStart = true
})
//
recorderManager.onError((res) => {
console.log('recorder error', res)
uni.showToast({
icon: 'none',
title: '系统出错,请重试'
})
this.recordStart = false
})
}
} else {
//
uni.authorize({
scope: _permission,
success: () => {
//
this._recordAuth = true
},
fail: (res) => {
/**
* 104 未授权隐私协议
* 用户可能拒绝官方隐私授权弹窗为了避免过度弹窗打扰用户开发者再次调用隐私相关接口时
* 若距上次用户拒绝不足10秒将不再触发弹窗直接给到开发者用户拒绝隐私授权弹窗的报错
*/
if (res.errno == 104) {
uni.showModal({
title: '温馨提示',
content: '您拒绝了隐私协议,请稍后再试',
confirmText: '知道了',
showCancel: false,
success: () => {}
})
} else {
//
this.authTips()
}
}
})
}
}
})
},
//
touchend() {
const $this = this
if (!this._recordAuth || !this.recordStart) return
//
recorderManager.stop();
recorderManager.onStop((res) => {
const {
duration,
tempFilePath
} = res
this.recordStart = false
wx.uploadFile({
url: $this.rootPath + '/app-api/wechatshop/toolIdentify/identifySpeech',
filePath: tempFilePath,
name: 'file',
formData: {
'file': tempFilePath
},
success: function(res) {
let data = JSON.parse(res.data)
$this.messages.push({
type: "user",
typestyle: "dly_flex_c2 right_dig m-item me",
time: $this.$util.getCurrentTime3(),
headurl: "",
content: [{
text: data.data
}],
contentstyle: "jqr_box"
})
$this.getSelectMsg(data.data, "", 1);
$this.scrollToBottom();
},
fail: function(res) {
UTIL.log(res);
wx.showModal({
title: '提示',
content: "网络请求失败,请确保网络是否正常",
showCancel: false,
success: function(res) {}
});
wx.hideToast();
}
});
})
},
  if (that.style.mitemHeight > (that.style.contentViewHeight - 100)) { //
  that.scrollTop = that.style.mitemHeight - that.style.contentViewHeight //
  }
         }, 100)
        })
}
} }
} }
</script> </script>
@ -374,17 +446,17 @@ innerAudioContext.autoplay = true;
@import url("/static/css/common.css"); @import url("/static/css/common.css");
@import url("/pages/index/index.css"); @import url("/pages/index/index.css");
.half{ .half {
width: 50%; width: 50%;
} }
.jqr_dig_warp{ .jqr_dig_warp {
background-image: url('https://eluyou.ailuquan.cn/upload/image/2024/mapIcon/daolan/jiqirenbg.png'); background-image: url('https://eluyou.ailuquan.cn/upload/image/2024/mapIcon/daolan/jiqirenbg.png');
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: 100% auto; background-size: 100% auto;
} }
.user-box{ .user-box {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -393,7 +465,7 @@ innerAudioContext.autoplay = true;
align-items: center; align-items: center;
justify-content: start; justify-content: start;
.j_dig_time{ .j_dig_time {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding: 0; padding: 0;
@ -401,64 +473,116 @@ innerAudioContext.autoplay = true;
} }
} }
.dig_column{ .dig_column {
margin-left: 50rpx; margin-left: 50rpx;
margin-top: 20rpx; margin-top: 20rpx;
} }
} }
.me{ .me {
align-items: flex-end; align-items: flex-end;
} }
.b_tol_ipt{ .b_tol_ipt {
margin-left: 50rpx; margin-left: 50rpx;
background: #F8F9FD; background: #F8F9FD;
border-radius: 44rpx; border-radius: 44rpx;
.ipt_jqr{ .ipt_jqr {
border: none; border: none;
padding-left: 20rpx padding-left: 20rpx
} }
} }
.lazy_sech{
.lazy_sech {
background-color: #fff; background-color: #fff;
} }
.jqr_tol{
.jqr_tol {
height: fit-content; height: fit-content;
padding:20rpx 0 50rpx 0 ; padding: 20rpx 0 50rpx 0;
} }
.jpan_mode{
.jpan_mode {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-around; justify-content: space-around;
.b_tol_box{ .b_tol_box {
font-family: Source Han Sans SC; font-family: Source Han Sans SC;
font-weight: 500; font-weight: 500;
font-size: 30rpx; font-size: 30rpx;
color: #0983FF; color: #0983FF;
width: fit-content; width: fit-content;
height: fit-content; height: fit-content;
} }
} }
.jqr_dig_scroll{ .jqr_dig_scroll {
padding-bottom: 300rpx; padding-bottom: 300rpx;
} }
.jqr_tol_box{ .jqr_tol_box {
height: fit-content; height: fit-content;
} }
.jqr_box{ .jqr_box {
max-height: unset; max-height: unset;
} }
.dig_more{ .dig_more {
bottom: 0; bottom: 0;
} }
.noPadding{
padding-bottom: 20rpx!important; .noPadding {
padding-bottom: 20rpx !important;
} }
</style> .audio-animation {
position: fixed;
// width: 100vw;
// height: 100vh;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
z-index: 202410;
display: flex;
justify-content: center;
align-items: center;
.text {
text-align: center;
font-size: 28rpx;
color: #333;
margin-top: 60rpx;
}
.audio-wave {
padding: 50rpx;
.audio-wave-text {
background-color: #0983ff;
width: 7rpx;
height: 12rpx;
margin: 0 6rpx;
border-radius: 5rpx;
display: inline-block;
border: none;
animation: wave 0.25s ease-in-out;
animation-iteration-count: infinite;
animation-direction: alternate;
}
/* 声波动画 */
@keyframes wave {
from {
transform: scaleY(1);
}
to {
transform: scaleY(4);
}
}
}
}
</style>

@ -202,7 +202,6 @@
.then(res => { .then(res => {
console.log("---", res) console.log("---", res)
}); });
this.content = '' this.content = ''
this.scrollToBottom() this.scrollToBottom()
// // // //

@ -1,5 +1,9 @@
<template> <template>
<view class="v-pages-flower"> <view class="v-pages-flower">
<view class="bg">
<image src="https://eluyou.ailuquan.cn/upload/image/2024/mapIcon/daolan/flower-bg.png" class="img">
</image>
</view>
<view class="icon" @click="chooseImage"> <view class="icon" @click="chooseImage">
<image src="https://eluyou.ailuquan.cn/upload/image/2024/mapIcon/daolan/icon-camera.png" class="img"> <image src="https://eluyou.ailuquan.cn/upload/image/2024/mapIcon/daolan/icon-camera.png" class="img">
</image> </image>
@ -42,6 +46,8 @@
export default { export default {
data() { data() {
return { return {
//
rootPath: this.$config.ROOTPATH,
imageSrc: "", imageSrc: "",
imageTitle: "", imageTitle: "",
search_result: [] search_result: []
@ -57,13 +63,13 @@
mediaType: ['image'], mediaType: ['image'],
sourceType: [sourceType], sourceType: [sourceType],
success: (res) => { success: (res) => {
console.log(res)
$this.imageSrc = res.tempFiles[0].tempFilePath $this.imageSrc = res.tempFiles[0].tempFilePath
uni.showLoading({ uni.showLoading({
title: '图片识别中...' title: '图片识别中...'
}) })
this.task = uni.uploadFile({ this.task = uni.uploadFile({
url: 'http://192.168.130.157:48080/app-api/wechatshop/toolIdentify/identifyPlant', // url: this.rootPath +
'/app-api/wechatshop/toolIdentify/identifyPlant', //
filePath: $this.imageSrc, filePath: $this.imageSrc,
name: 'file', name: 'file',
formData: { formData: {
@ -115,19 +121,21 @@
overflow: hidden; overflow: hidden;
&:after { .bg {
content: ''; content: '';
width: 100%; width: 100vw;
height: 60vh; height: 60vh;
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
z-index: 0; z-index: 0;
background: url('@/static/test/flower-bg.png');
background-repeat: no-repeat; image {
background-size: cover; width: 100vw;
height: 100%;
}
} }
&:before { &:before {
content: ''; content: '';
width: 160%; width: 160%;
@ -136,7 +144,7 @@
left: -30%; left: -30%;
top: 0; top: 0;
z-index: 0; z-index: 0;
background: linear-gradient(to bottom, #0983ff, rgba(#0983ff,.8)); background: linear-gradient(to bottom, #0983ff, rgba(#0983ff, .8));
border-radius: 0 0 50% 50%; border-radius: 0 0 50% 50%;
} }

@ -49,6 +49,8 @@
}, },
data() { data() {
return { return {
//
rootPath: this.$config.ROOTPATH,
imageSrc: "", imageSrc: "",
imageTitle: "", imageTitle: "",
search_result: [], search_result: [],
@ -160,28 +162,24 @@
mediaType: ['image'], mediaType: ['image'],
sourceType: ['camera', 'album'], sourceType: ['camera', 'album'],
success: (res) => { success: (res) => {
console.log(res)
$this.imageSrc = res.tempFiles[0].tempFilePath $this.imageSrc = res.tempFiles[0].tempFilePath
uni.showLoading({ uni.showLoading({
title: '识别中...' title: '识别中...'
}) })
console.log("bbb")
this.task = uni.uploadFile({ this.task = uni.uploadFile({
url: 'http://192.168.130.157:48080/app-api/wechatshop/toolIdentify/identifyText', url: this.rootPath + '/app-api/wechatshop/toolIdentify/identifyText',
filePath: $this.imageSrc, filePath: $this.imageSrc,
name: 'file', name: 'file',
formData: { formData: {
'file': $this.imageSrc 'file': $this.imageSrc
}, },
success: (res) => { success: (res) => {
console.log('uploadImage success, res is:', res)
let data = JSON.parse(res.data) let data = JSON.parse(res.data)
uni.showToast({ uni.showToast({
title: '识别成功', title: '识别成功',
icon: 'success', icon: 'success',
duration: 1000 duration: 1000
})
})
if (data.data.words !== null) { if (data.data.words !== null) {
this.ActiveText = data.data.words this.ActiveText = data.data.words
} else { } else {
@ -190,7 +188,6 @@
this.gotoTranslate() this.gotoTranslate()
}, },
fail: (err) => { fail: (err) => {
console.log('uploadImage fail', err);
uni.showModal({ uni.showModal({
content: err.errMsg, content: err.errMsg,
showCancel: false showCancel: false
@ -207,30 +204,45 @@
} }
}) })
}, },
// from
changeFrom(val) { changeFrom(val) {
this.fromShow = false this.fromShow = false
this.ActiveFrom = val.value[0] this.ActiveFrom = val.value[0]
}, },
// to
changeTo(val) { changeTo(val) {
this.toShow = false this.toShow = false
this.ActiveTo = val.value[0] this.ActiveTo = val.value[0]
}, },
//
gotoTranslate() { gotoTranslate() {
let queryParams if (this.ActiveFrom.value == this.ActiveTo.value) {
if (!this.exchange) { this.resultText = this.ActiveText
queryParams = `query=${this.ActiveText}&from=${this.ActiveFrom.value}&to=${this.ActiveTo.value}`
} else { } else {
queryParams = `query=${this.ActiveText}&from=${this.ActiveTo.value}&to=${this.ActiveFrom.value}` let queryParams
} if (!this.exchange) {
queryParams = {
query: this.ActiveText,
from: this.ActiveFrom.value,
to: this.ActiveTo.value
}
uni.request({ } else {
url: 'http://192.168.130.157:48080/app-api/wechatshop/toolTranslate/translate?' + queryParams, queryParams = {
success: (res) => { query: this.ActiveText,
this.resultText = res.data.data from: this.ActiveTo.value,
console.log(this.resultText) to: this.ActiveFrom.value,
} }
}); }
this.$Request.get(this.$config.getTtranslate, queryParams, "", "", false, true)
.then(res => {
if (res.data !== null) {
this.resultText = res.data
} else {
this.resultText = this.ActiveText
}
})
}
}, },
} }
} }

@ -1,10 +1,8 @@
<template> <template>
<view class="v-pages-bg" v-if="today_data" :class="TodayClass"> <view class="v-pages-bg" v-if="today_data" :class="TodayClass">
<view class="v-weather-bg" :class="TodayClass"></view> <view class="v-weather-bg" :class="TodayClass"></view>
<view class="v-weather-bar row flex-align-center"> <uni-nav-bar dark statusBar :fixed="true" background-color="transparent" :border="false" left-icon="left"
<image src="@/static/test/icon-back.png" class="img" mode="widthFix" @click="gotoBack()"></image> title="鹿泉天气" @clickLeft="gotoBack" />
<view class="col">鹿泉天气</view>
</view>
<!-- 今日天气 --> <!-- 今日天气 -->
<view class="v-pages-weather_top container-fluid" v-if="today_data"> <view class="v-pages-weather_top container-fluid" v-if="today_data">
<view class="today-temp">{{today_data.temp}}°</view> <view class="today-temp">{{today_data.temp}}°</view>
@ -50,7 +48,11 @@
data data
} from '../../uni_modules/uview-ui/libs/mixin/mixin'; } from '../../uni_modules/uview-ui/libs/mixin/mixin';
import uniNavBar from '@/uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar.vue'
export default { export default {
components: {
uniNavBar
},
data() { data() {
return { return {
today_data: undefined, today_data: undefined,
@ -93,7 +95,7 @@
methods: { methods: {
initPages() { initPages() {
this.$Request.get(this.$config.getWeatherForecast, null, null, null, false, true) this.$Request.get(this.$config.getWeatherForecast, null, null, null, false, true)
.then(res => { .then(res => {
let data = res.data let data = res.data
this.tempMax = Math.max.apply(Math, data.map(item => { this.tempMax = Math.max.apply(Math, data.map(item => {
return item.tempMax return item.tempMax
@ -130,8 +132,8 @@
}, },
gotoBack() { gotoBack() {
uni.navigateBack({ uni.navigateBack({
delta: 1 // 1 delta: 1,
}); })
}, },
getWeekday(day) { getWeekday(day) {
const date = new Date(day); // const date = new Date(day); //

Loading…
Cancel
Save