You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1104 lines
40 KiB
1104 lines
40 KiB
<template>
|
|
<view>
|
|
<!-- 头部 -->
|
|
<view class="dzhi_top" >
|
|
<!-- <image src="/static/images/img2/dzhi_topbg.png" class="dzhi_t_bg" mode="aspectFill"></image> -->
|
|
<view class="mode_com">
|
|
<view class="dly_flex person_inf">
|
|
<view class="pers_box" @tap="oauthUser()">
|
|
<view class="pes_img">
|
|
<!-- 默认头像 -->
|
|
<button class="btn_dzhi">
|
|
<!--授权按钮-->
|
|
<image :src="headimgurl" mode="aspectFill" class="pers_box"></image>
|
|
</button>
|
|
</view>
|
|
</view>
|
|
<view class="pes_inf aml_30">
|
|
<!-- 用户昵称 -->
|
|
<view class="t_adm_box">
|
|
<text class="t_hi">Hi</text>
|
|
<!-- <text class="t_nic">{{nickname}}阳光夏~小葵</text> -- 已登录状态 显示用户昵称 -->
|
|
<text class="t_nic">{{ nickname }}</text>
|
|
<!--登录后 退出按钮-->
|
|
<text v-if="isLogin" class="pes_img_tc" @tap="jump('logoutWechat')" >退出</text>
|
|
</view>
|
|
</view>
|
|
<!-- 头像 -->
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="mode_com ">
|
|
<text class="tit_com">我的应用</text>
|
|
<view class="dly_flex hd_pter mt_hb dzhi_bq2" style="background: #fff; padding-bottom: 40rpx; border-radius: 20rpx;">
|
|
<view class="w_33" @tap="jump('myComment')">
|
|
<view class=""><image src="/static/animg/personCenter/p_wdpj.png" class="kou_top3" mode="aspectFill"></image></view>
|
|
<text class="ht_text">我的评价</text>
|
|
</view>
|
|
<view class="w_33" v-if="isFlag">
|
|
<!-- p_ddan.png p_tsu.png -->
|
|
<view class=""><image src="/static/animg/personCenter/p_lyts.png" class="kou_top3" mode="aspectFill"></image></view>
|
|
<text class="ht_text">我的订单</text>
|
|
</view>
|
|
<view class="w_33" v-if="isFlag">
|
|
<view class=""><image src="/static/animg/personCenter/p_lyts.png" class="kou_top3" mode="aspectFill"></image></view>
|
|
<text class="ht_text">在线投诉</text>
|
|
</view>
|
|
<view class="w_33" @tap="jump('tousu')">
|
|
<view class=""><image src="/static/animg/personCenter/p_lyts.png" class="kou_top3" mode="aspectFill"></image></view>
|
|
<text class="ht_text">留言投诉</text>
|
|
</view>
|
|
<!-- <view class="w_33" @tap="jump('fanyi')">
|
|
<view class="">
|
|
<image src="/static/images/s_tsu.png" class="kou_top3" mode="aspectFill"></image>
|
|
</view>
|
|
<text class="ht_text">百度翻译</text>
|
|
</view>
|
|
<view class="w_33" @tap="imgDistinguish">
|
|
<view class="">
|
|
<image src="/static/images/s_tsu.png" class="kou_top3" mode="aspectFill"></image>
|
|
</view>
|
|
<text class="ht_text">图像识别</text>
|
|
</view> -->
|
|
<view class="w_33" @tap="jump('aboutus')">
|
|
<view class=""><image src="/static/animg/personCenter/p_gywm.png" class="kou_top3" mode="aspectFill"></image></view>
|
|
<text class="ht_text">关于我们</text>
|
|
</view>
|
|
<view class="w_33" @tap="jump('update')" v-if="isUpdate">
|
|
<view class=""><image src="/static/animg/personCenter/p_xtgx.png" class="kou_top3" mode="aspectFill"></image></view>
|
|
<text class="ht_text">系统更新</text>
|
|
</view>
|
|
<view class="w_33" @tap="jump('delete')" v-if="isUpdate">
|
|
<view class=""><image src="/static/animg/personCenter/p_gly.png" class="kou_top3" mode="aspectFill"></image></view>
|
|
<text class="ht_text">注销账号</text>
|
|
</view>
|
|
|
|
<!-- <view class="w_33" @tap="jump('saomiao')" v-if="adminId != ''">
|
|
<view class=""><image src="/static/animg/p_sm.png" class="kou_top3" mode="aspectFill"></image></view>
|
|
<text class="ht_text">扫码</text>
|
|
</view>
|
|
<view class="w_33" @tap="jump('scenicReserve')" v-if="adminId == ''">
|
|
<view class=""><image src="/static/animg/p_jqyy.png" class="kou_top3" mode="aspectFill"></image></view>
|
|
<text class="ht_text">景区预约</text>
|
|
</view>
|
|
<view class="w_33" @tap="jump('myReserve')" v-if="adminId == ''">
|
|
<view class=""><image src="/static/animg/p_wdyu.png" class="kou_top3" mode="aspectFill"></image></view>
|
|
<text class="ht_text">我的预约</text>
|
|
</view>
|
|
<view class="w_33" @tap="jump('admin')" v-if="!isAdminLogin">
|
|
<view class=""><image src="/static/animg/p_gly.png" class="kou_top3" mode="aspectFill"></image></view>
|
|
<text class="ht_text">管理员登陆</text>
|
|
</view>
|
|
<view class="w_33" @tap="jump('logout')" v-if="isAdminLogin">
|
|
<view class=""><image src="/static/animg/p_tc.png" class="kou_top3" mode="aspectFill"></image></view>
|
|
<text class="ht_text">退出登陆</text>
|
|
</view>
|
|
<view class="w_33" @tap="jump('scanRecord')" v-if="adminId != ''">
|
|
<view class=""><image src="/static/animg/p_smjl.png" class="kou_top3" mode="aspectFill"></image></view>
|
|
<text class="ht_text">扫码记录</text>
|
|
</view> -->
|
|
|
|
<!-- <view class="w_33" @tap="jump('phonetousu')" v-if="isUpdate">
|
|
<view class="">
|
|
<image src="/static/images/p_gxin.png" class="kou_top3" mode="aspectFill"></image>
|
|
</view>
|
|
<text class="ht_text">电话投诉</text>
|
|
</view>
|
|
<view class="w_33" @tap="jump('guide')" v-if="isUpdate">
|
|
<view class="">
|
|
<image src="/static/images/p_gxin.png" class="kou_top3" mode="aspectFill"></image>
|
|
</view>
|
|
<text class="ht_text">导游</text>
|
|
</view>
|
|
<view class="w_33" @tap="jump('lvxingshe')" v-if="isUpdate">
|
|
<view class="">
|
|
<image src="/static/images/p_gxin.png" class="kou_top3" mode="aspectFill"></image>
|
|
</view>
|
|
<text class="ht_text">旅行社</text>
|
|
</view> -->
|
|
<view class="w_33" @tap="jump('logout')" v-if="isAdminLogin" >
|
|
<view class=""><image src="/static/animg/personCenter/p_tc.png" class="kou_top3" mode="aspectFill"></image></view>
|
|
<text class="ht_text">退出登录</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<!-- 兴趣定制 -->
|
|
<view class="mt_hb mb_hb">
|
|
<view class="mode_com"><text class="tit_com">兴趣定制</text></view>
|
|
|
|
<view class="pd_scl_new">
|
|
<view class="mmd_s_hot">
|
|
<scroll-view class="scroll-view_s" scroll-x="true" @scroll="scroll" scroll-left="">
|
|
<view class="yx_warp_3" style="width:450%">
|
|
<!--width: 360%; 应改为动态计算得出 基数为90% *n-->
|
|
<view class="dly_flex mud_hot_box pt_3">
|
|
<!-- 此处循环 -->
|
|
<view class="b_tol_ipt">
|
|
<view class="scroll-view-item_s">
|
|
<view class="dzhi_box">
|
|
<view class="dzhi_pic">
|
|
<image
|
|
src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1577349755464&di=7c8986a496818607ce29674a77d58bee&imgtype=0&src=http%3A%2F%2Fimage.yikuaiqu.com%2Ftyftp%2Fimage%2F0%2F2%2F222%2F188003%2F1221758_.320x240.800x480.jpg"
|
|
class="dzhi_img"
|
|
mode="aspectFill"
|
|
></image>
|
|
<view class="pt_3 dly_flex_a">
|
|
<!-- 定制类型分类-景区 -->
|
|
<view class="w_75">
|
|
<view class="dly_flex_a">
|
|
<view class="dzhi_bq"><image src="/static/animg/personCenter/d_jqu.png" class="kou_top3"></image></view>
|
|
<view>
|
|
<view class="dzh_bti">景区</view>
|
|
<view class="dzh_tps">当季景区门票推送</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- 关注按钮 -->
|
|
<view @tap="guanzhuTap('scenic')" class="w_25">
|
|
<!-- <text class="cur_ding">已关注</text> ‘已关注’状态-->
|
|
<text v-if="scenicGZType == 'YES'" class="cur_ding">已关注</text>
|
|
<text v-if="scenicGZType == 'NO'" class="adm_ding">+ 关注</text>
|
|
<!--‘未关注’状态,点击后切换‘已关注’状态-->
|
|
</view>
|
|
</view>
|
|
<!-- 定制内容 -->
|
|
<view class="dzhi_main">
|
|
<view v-for="(item, index) in scenicList" :key="index" class="mb_hb">
|
|
<view class="opt_bti">{{ item.top.dicname }}</view>
|
|
<view class="opt_jq">
|
|
<text
|
|
:class="items.isSelected == 'select' ? 'cur_sced' : ''"
|
|
@tap="scenicSelectXQ(items.dicnum, '')"
|
|
v-for="(items, indexs) in item.msg"
|
|
:key="indexs"
|
|
>
|
|
{{ items.dicname }}
|
|
</text>
|
|
</view>
|
|
</view>
|
|
<!-- <view class="mb_hb">
|
|
<view class="opt_bti">景区级别</view>
|
|
<view class="opt_jq">
|
|
<text class="cur_sced">不限</text><text>AAAAA</text><text>AAAA</text><text>AAA</text><text>其他</text>
|
|
</view>
|
|
</view>
|
|
<view class="mb_hb">
|
|
<view class="opt_bti">门票价格</view>
|
|
<view class="opt_jq">
|
|
<text>不限</text><text class="cur_sced">免费</text><text class="cur_sced">1~100元</text><text class="cur_sced">100~300元</text><text>300元以上</text>
|
|
</view>
|
|
</view>
|
|
<view class="mb_hb">
|
|
<view class="opt_bti">景区类型</view>
|
|
<view class="opt_jq">
|
|
<text>不限</text><text class="cur_sced">自然景观</text><text class="cur_sced">人文历史</text><text class="cur_sced">乡村游</text><text>温泉养生</text><text>滑雪场</text>
|
|
</view>
|
|
</view> -->
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="b_tol_ipt">
|
|
<view class="scroll-view-item_s">
|
|
<view class="dzhi_box">
|
|
<view class="dzhi_pic">
|
|
<image
|
|
src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1577349675901&di=7fddc6e03188d66255728bf51209cda2&imgtype=jpg&src=http%3A%2F%2Fimg1.imgtn.bdimg.com%2Fit%2Fu%3D145157106%2C3026368936%26fm%3D214%26gp%3D0.jpg"
|
|
class="dzhi_img"
|
|
mode="aspectFill"
|
|
></image>
|
|
<view class="pt_3 dly_flex_a">
|
|
<view class="w_75">
|
|
<view class="dly_flex_a">
|
|
<view class="dzhi_bq"><image src="/static/animg/personCenter/d_jiud.png" class="kou_top3"></image></view>
|
|
<view>
|
|
<view class="dzh_bti">酒店</view>
|
|
<view class="dzh_tps">相关住宿信息推送</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view @tap="guanzhuTap('hotle')" class="w_25">
|
|
<text v-if="hotelGZType == 'YES'" class="cur_ding">已关注</text>
|
|
<text v-if="hotelGZType == 'NO'" class="adm_ding">+ 关注</text>
|
|
<!--‘已关注’状态-->
|
|
<!-- <text class="adm_ding">+ 关注</text> ‘未关注’状态,点击后切换‘已关注’状态-->
|
|
</view>
|
|
</view>
|
|
<view class="dzhi_main">
|
|
<view v-for="(item, index) in hotelList" :key="index" class="mb_hb">
|
|
<view class="opt_bti">{{ item.top.dicname }}</view>
|
|
<view class="opt_jq">
|
|
<text
|
|
:class="items.isSelected == 'select' ? 'cur_sced' : ''"
|
|
@tap="hotelSelectXQ(items.dicnum, '')"
|
|
v-for="(items, indexs) in item.msg"
|
|
:key="indexs"
|
|
>
|
|
{{ items.dicname }}
|
|
</text>
|
|
</view>
|
|
</view>
|
|
<!-- <view class="mb_hb">
|
|
<view class="opt_bti">酒店类型</view>
|
|
<view class="opt_jq">
|
|
<text>不限</text><text class="cur_sced">豪华奢侈型</text><text class="cur_sced">享受型</text><text>舒适型</text><text>经济实惠型</text>
|
|
</view>
|
|
</view>
|
|
<view class="mb_hb">
|
|
<view class="opt_bti">价格区间</view>
|
|
<view class="opt_jq">
|
|
<text>不限</text><text class="cur_sced">200元以下</text><text class="cur_sced">200~500元</text><text class="cur_sced">300~500元</text>
|
|
<text>500~800元</text><text>800元以上</text>
|
|
</view>
|
|
</view> -->
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="b_tol_ipt">
|
|
<view class="scroll-view-item_s">
|
|
<view class="dzhi_box">
|
|
<view class="dzhi_pic">
|
|
<image
|
|
src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1577349602555&di=0cd4d0026276f4a9204615a9abd221f8&imgtype=0&src=http%3A%2F%2F5b0988e595225.cdn.sohucs.com%2Fimages%2F20171115%2Fc316641e4ce644bbb853ce7f472badd9.jpeg"
|
|
class="dzhi_img"
|
|
mode="aspectFill"
|
|
></image>
|
|
<view class="pt_3 dly_flex_a">
|
|
<view class="w_75">
|
|
<view class="dly_flex_a">
|
|
<view class="dzhi_bq"><image src="/static/animg/personCenter/d_mshi.png" class="kou_top3"></image></view>
|
|
<view>
|
|
<view class="dzh_bti">美食</view>
|
|
<view class="dzh_tps">本地美食相关信息推送</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view @tap="guanzhuTap('food')" class="w_25">
|
|
<text v-if="foodGZType == 'YES'" class="cur_ding">已关注</text>
|
|
<text v-if="foodGZType == 'NO'" class="adm_ding">+ 关注</text>
|
|
<!--‘已关注’状态-->
|
|
<!-- <text class="adm_ding">+ 关注</text> ‘未关注’状态,点击后切换‘已关注’状态-->
|
|
</view>
|
|
</view>
|
|
<view class="dzhi_main">
|
|
<view v-if="foodImgList.length > 0" class="dly_flex_a">
|
|
<view class="w_65">
|
|
<view class="gl_prd"><image :src="foodImgList[0].logo" class="gl_show_1" mode="aspectFill"></image></view>
|
|
</view>
|
|
<view class="w_35">
|
|
<image
|
|
v-if="index > 0"
|
|
v-for="(item, index) in foodImgList"
|
|
:key="index"
|
|
:src="item.logo"
|
|
class="gl_show_2"
|
|
mode="aspectFill"
|
|
></image>
|
|
</view>
|
|
</view>
|
|
<!-- <view class="mb_hb">
|
|
<view class="opt_bti">美食类型</view>
|
|
<view class="opt_jq">
|
|
<text>不限</text><text class="cur_sced">网红打卡</text><text class="cur_sced">面食</text><text class="cur_sced">小吃</text>
|
|
</view>
|
|
</view> -->
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="b_tol_ipt">
|
|
<view class="scroll-view-item_s">
|
|
<view class="dzhi_box">
|
|
<view class="dzhi_pic">
|
|
<image
|
|
src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1577349712887&di=054a2b8498ed9d71d9855066b428fd13&imgtype=0&src=http%3A%2F%2Fimgsrc.baidu.com%2Fimgad%2Fpic%2Fitem%2F55e736d12f2eb9381e4ebbeddf628535e5dd6f8a.jpg"
|
|
class="dzhi_img"
|
|
mode="aspectFill"
|
|
></image>
|
|
<view class="pt_3 dly_flex_a">
|
|
<view class="w_75">
|
|
<view class="dly_flex_a">
|
|
<view class="dzhi_bq"><image src="/static/animg/personCenter/d_xlu.png" class="kou_top3"></image></view>
|
|
<view>
|
|
<view class="dzh_bti">线路</view>
|
|
<view class="dzh_tps">旅游线路相关信息推送</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view @tap="guanzhuTap('line')" class="w_25">
|
|
<text v-if="lineGZType == 'YES'" class="cur_ding">已关注</text>
|
|
<text v-if="lineGZType == 'NO'" class="adm_ding">+ 关注</text>
|
|
<!--‘已关注’状态-->
|
|
<!-- <text class="adm_ding">+ 关注</text> ‘未关注’状态,点击后切换‘已关注’状态-->
|
|
</view>
|
|
</view>
|
|
<view class="dzhi_main">
|
|
<view v-for="(item, index) in lineList" :key="index" class="mb_hb">
|
|
<view class="opt_bti">{{ item.top.dicname }}</view>
|
|
<view class="opt_jq">
|
|
<text
|
|
:class="items.isSelected == 'select' ? 'cur_sced' : ''"
|
|
@tap="lineSelectXQ(items.dicnum, '')"
|
|
v-for="(items, indexs) in item.msg"
|
|
:key="indexs"
|
|
>
|
|
{{ items.dicname }}
|
|
</text>
|
|
</view>
|
|
</view>
|
|
<!-- <view class="mb_hb">
|
|
<view class="opt_bti">景区级别</view>
|
|
<view class="opt_jq">
|
|
<text class="cur_sced">不限</text><text>AAAAA</text><text>AAAA</text><text>AAA</text><text>其他</text>
|
|
</view>
|
|
</view>
|
|
<view class="mb_hb">
|
|
<view class="opt_bti">门票价格</view>
|
|
<view class="opt_jq">
|
|
<text>不限</text><text class="cur_sced">免费</text><text class="cur_sced">1~100元</text><text class="cur_sced">100~300元</text><text>300元以上</text>
|
|
</view>
|
|
</view>
|
|
<view class="mb_hb">
|
|
<view class="opt_bti">景区类型</view>
|
|
<view class="opt_jq">
|
|
<text>不限</text><text class="cur_sced">自然景观</text><text class="cur_sced">人文历史</text><text class="cur_sced">乡村游</text><text>温泉养生</text><text>滑雪场</text>
|
|
</view>
|
|
</view> -->
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- 攻略定制----图片展列 -->
|
|
<view class="b_tol_ipt">
|
|
<view class="scroll-view-item_s">
|
|
<view class="dzhi_box">
|
|
<view class="dzhi_pic">
|
|
<image
|
|
src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1577700807020&di=d23b31729ac2c9f00233cbc433844c97&imgtype=0&src=http%3A%2F%2Fimg.mp.sohu.com%2Fupload%2F20170604%2Fe45d77fb1eec4036a61d55f79efb6f00_th.png"
|
|
class="dzhi_img"
|
|
mode="aspectFill"
|
|
></image>
|
|
<view class="pt_3 dly_flex_a">
|
|
<view class="w_75">
|
|
<view class="dly_flex_a">
|
|
<view class="dzhi_bq"><image src="/static/animg/personCenter/d_glue.png" class="kou_top3"></image></view>
|
|
<view>
|
|
<view class="dzh_bti">攻略</view>
|
|
<view class="dzh_tps">景区攻略相关信息推送</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view @tap="guanzhuTap('method')" class="w_25">
|
|
<text v-if="methodGZType == 'YES'" class="cur_ding">已关注</text>
|
|
<text v-if="methodGZType == 'NO'" class="adm_ding">+ 关注</text>
|
|
<!--‘已关注’状态-->
|
|
<!-- <text class="adm_ding">+ 关注</text> ‘未关注’状态,点击后切换‘已关注’状态-->
|
|
</view>
|
|
</view>
|
|
<view class="dzhi_main">
|
|
<view v-if="methodImgList.length > 0" class="dly_flex_a">
|
|
<view class="w_65">
|
|
<view class="gl_prd"><image :src="methodImgList[0].logo" class="gl_show_1" mode="aspectFill"></image></view>
|
|
</view>
|
|
<view class="w_35">
|
|
<image
|
|
v-if="index > 0"
|
|
v-for="(item, index) in methodImgList"
|
|
:key="index"
|
|
:src="item.logo"
|
|
class="gl_show_2"
|
|
mode="aspectFill"
|
|
></image>
|
|
</view>
|
|
</view>
|
|
<!-- <view class="dly_flex_a">
|
|
<view class="w_65">
|
|
<view class="gl_prd">
|
|
<image src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1577700807022&di=97d49e703cd0cf098242f1da233f6199&imgtype=0&src=http%3A%2F%2Fimg.pconline.com.cn%2Fimages%2Fupload%2Fupc%2Ftx%2Fitbbs%2F1703%2F15%2Fc26%2F39545688_1489579559492_mthumb.jpg" class="gl_show_1" mode="aspectFill"></image>
|
|
</view>
|
|
</view>
|
|
<view class="w_35">
|
|
<image src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1577700807021&di=b7286ac7d18774bfff543c19854f2e93&imgtype=0&src=http%3A%2F%2Fwx3.sinaimg.cn%2Forj360%2F7ad7a27bly1gadz86cr2tj21hc0qotys.jpg" class="gl_show_2" mode="aspectFill"></image>
|
|
<image src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1577700807020&di=c5c6b7764d50987f4796c904b2cf973f&imgtype=0&src=http%3A%2F%2Fyouimg1.c-ctrip.com%2Ftarget%2Ftg%2F708%2F637%2F446%2Ff14ece2f4e2241568c38df693fdbfc55_metal.jpg" class="gl_show_2" mode="aspectFill"></image>
|
|
</view>
|
|
|
|
</view> -->
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<!-- 工具栏 -->
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
var that;
|
|
import aes from "@/common/aes.js";
|
|
export default {
|
|
data() {
|
|
that = this;
|
|
return {
|
|
headimgurl: '/static/animg/personCenter/adm_img.png',
|
|
nickname: '点击头像授权',
|
|
isUpdate: true,
|
|
isLogin: false,
|
|
isShowOnlinets: 'NO',
|
|
isFlag: false,
|
|
scenicList: [],
|
|
hotelList: [],
|
|
lineList: [],
|
|
foodImgList: [],
|
|
methodImgList: [],
|
|
scenicGZType: 'NO',
|
|
hotelGZType: 'NO',
|
|
lineGZType: 'NO',
|
|
foodGZType: 'NO',
|
|
methodGZType: 'NO',
|
|
scenicSelectStr: '',
|
|
hotelSelectStr: '',
|
|
lineSelectStr: '',
|
|
imgBase64: '',
|
|
adminId: '',
|
|
isAdminLogin: false
|
|
};
|
|
},
|
|
onShow() {
|
|
if (!this.$util.isBlack(aes.aesDecrypt(uni.getStorageSync('unionid')))) {
|
|
this.isLogin = true;
|
|
that.nickname = aes.aesDecrypt(uni.getStorageSync('nickname'));
|
|
that.headimgurl = aes.aesDecrypt(uni.getStorageSync('headimgurl'));
|
|
}
|
|
if (aes.aesDecrypt(uni.getStorageSync('adminId')) != undefined && aes.aesDecrypt(uni.getStorageSync('adminId')) != null && aes.aesDecrypt(uni.getStorageSync('adminId')) != '') {
|
|
this.adminId = uni.getStorageSync('adminId');
|
|
this.isAdminLogin = true;
|
|
}
|
|
},
|
|
onLoad(options) {
|
|
if (aes.aesDecrypt(uni.getStorageSync('adminId')) != undefined && aes.aesDecrypt(uni.getStorageSync('adminId')) != null && aes.aesDecrypt(uni.getStorageSync('adminId')) != '') {
|
|
this.adminId =aes.aesDecrypt(uni.getStorageSync('adminId'));
|
|
this.isAdminLogin = true;
|
|
}
|
|
this.getRedisData();
|
|
// options = this.$param.user_info;
|
|
var that = this;
|
|
this.getIsShow();
|
|
if (this.$wechat.isWechat()) {
|
|
//weixin 是否显示更新
|
|
this.isUpdate = false;
|
|
} else {
|
|
this.isUpdate = true;
|
|
}
|
|
if (uni.getStorageSync('oauthTime') + this.$param.update_oauthTime < new Date().getTime()) {
|
|
// uni.removeStorageSync("user_token");
|
|
uni.removeStorageSync('nickname');
|
|
uni.removeStorageSync('unionid');
|
|
uni.removeStorageSync('headimgurl');
|
|
}
|
|
uni.showLoading({
|
|
mask: true,
|
|
title: '授权中',
|
|
success() {
|
|
setTimeout(function() {
|
|
uni.hideLoading();
|
|
}, 3000);
|
|
}
|
|
});
|
|
if (this.$util.isBlack(aes.aesDecrypt(uni.getStorageSync('unionid')))) {
|
|
if (options == null || options.unionid == null || options.unionid == '' || options.unionid == undefined) {
|
|
if (this.$wechat.isWechat()) {
|
|
//weixin 授权
|
|
that.$util.getUser(that, 'person', '', '');
|
|
} else {
|
|
switch (uni.getSystemInfoSync().platform) {
|
|
case 'android':
|
|
//安卓授权
|
|
var that = this;
|
|
this.$util.bindGpsObj(that);
|
|
Android.gotoDetial('WxUserInfo', '');
|
|
break;
|
|
case 'ios':
|
|
//ios授权
|
|
var that = this;
|
|
this.$util.bindGpsObj(that);
|
|
window.location.href = 'https://www.baidu.com?url=wechat';
|
|
break;
|
|
}
|
|
}
|
|
} else {
|
|
// clearTimeout(timer);
|
|
//登陆后返回回来的界面
|
|
uni.setStorageSync('oauthTime', new Date().getTime());
|
|
uni.setStorageSync('nickname', aes.aesMinEncrypt(options.nickname));
|
|
uni.setStorageSync('openid', aes.aesMinEncrypt(options.openid));
|
|
uni.setStorageSync('unionid', aes.aesMinEncrypt(options.unionid));
|
|
uni.setStorageSync('headimgurl',aes.aesMinEncrypt(options.headimgurl));
|
|
that.nickname = aes.aesDecrypt(uni.getStorageSync('nickname'));
|
|
that.headimgurl = aes.aesDecrypt(uni.getStorageSync('headimgurl'));
|
|
that.isLogin = true;
|
|
that.getUserInterest(); //回显兴趣定制数据
|
|
// this.$util.getUserInfo(that,options.unionid,function(){
|
|
uni.hideLoading();
|
|
// });
|
|
}
|
|
} else {
|
|
// if(uni.getStorageSync("user_token") == undefined || uni.getStorageSync("user_token") == null || uni.getStorageSync("user_token") == ""){
|
|
// this.$util.getUserInfo(that,uni.getStorageSync("unionid"),function(){
|
|
// that.isLogin = true;
|
|
// that.nickname = uni.getStorageSync("nickname");
|
|
// that.headimgurl = uni.getStorageSync("headimgurl");
|
|
// uni.hideLoading();
|
|
// });
|
|
// }else{
|
|
this.isLogin = true;
|
|
this.nickname = aes.aesDecrypt(uni.getStorageSync('nickname'));
|
|
this.headimgurl = aes.aesDecrypt(uni.getStorageSync('headimgurl'));
|
|
that.getUserInterest(); //回显兴趣定制数据
|
|
that.getAndroidUserKey(); //推送
|
|
uni.hideLoading();
|
|
// }
|
|
}
|
|
},
|
|
methods: {
|
|
saveLoginLog: function(unionid) {
|
|
var that = this;
|
|
uni.getSystemInfo({
|
|
success(e) {
|
|
var model = e.model + ' ' + e.system;
|
|
var platform = e.platform;
|
|
var data = {
|
|
userkey: that.$param.userkey,
|
|
unionid: unionid,
|
|
model: model,
|
|
platform: platform
|
|
};
|
|
that.$Request.post(that.$config.insertLoginLog, data).then(res => {
|
|
if (res.status == 200) {
|
|
console.log('记录成功');
|
|
}
|
|
});
|
|
}
|
|
});
|
|
},
|
|
getRedisData: function() {
|
|
var data = {
|
|
key: this.$param.userkey + '_xingqu'
|
|
};
|
|
this.$Request.post(this.$config.getRedisData, data).then(res => {
|
|
if (res.status == 200) {
|
|
//所有的数据
|
|
var initData = res.data;
|
|
//景区
|
|
this.scenicList = initData.scenicList;
|
|
//酒店
|
|
this.hotelList = initData.hotelList;
|
|
//线路
|
|
this.lineList = initData.lineList;
|
|
//美食
|
|
this.foodImgList = initData.foodImgList;
|
|
for (var i = 0; i < this.foodImgList.length; i++) {
|
|
this.foodImgList[i].logo = this.$config.ROOTPATH + this.foodImgList[i].logo;
|
|
}
|
|
//攻略
|
|
this.methodImgList = initData.methodImgList;
|
|
for (var i = 0; i < this.methodImgList.length; i++) {
|
|
this.methodImgList[i].logo = this.$config.ROOTPATH + this.methodImgList[i].logo;
|
|
}
|
|
} else {
|
|
}
|
|
});
|
|
},
|
|
/* 是否显示投诉功能 */
|
|
getIsShow: function() {
|
|
this.$Request.post(this.$config.getYbsjSysParam, {}).then(res => {
|
|
var d = res.data;
|
|
this.isShowOnlinets = d.is_show_onlinets;
|
|
});
|
|
},
|
|
oauthUser: function() {
|
|
if (this.isLogin) {
|
|
return;
|
|
} else {
|
|
uni.showLoading({
|
|
mask: true,
|
|
title: '授权中',
|
|
success() {
|
|
setTimeout(function() {
|
|
// uni.showToast({
|
|
// title:"授权失败,点击"+that.nickname+"重新授权",
|
|
// icon:"none",
|
|
// duration: 1500
|
|
// })
|
|
uni.hideLoading();
|
|
}, 3000);
|
|
}
|
|
});
|
|
if (this.$wechat.isWechat()) {
|
|
//weixin 授权
|
|
that.$util.getUser(this, 'person', '', '');
|
|
} else {
|
|
switch (uni.getSystemInfoSync().platform) {
|
|
case 'android':
|
|
//安卓授权
|
|
var that = this;
|
|
this.$util.bindGpsObj(that);
|
|
Android.gotoDetial('WxUserInfo', '');
|
|
break;
|
|
case 'ios':
|
|
//ios授权
|
|
var that = this;
|
|
this.$util.bindGpsObj(that);
|
|
window.location.href = 'https://www.baidu.com?url=wechat';
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
},
|
|
callBackMethod: function() {
|
|
// clearTimeout(timer);
|
|
this.isLogin = true;
|
|
that.nickname = aes.aesDecrypt(uni.getStorageSync('nickname'));
|
|
that.headimgurl = aes.aesDecrypt(uni.getStorageSync('headimgurl'));
|
|
that.getUserInterest(); //回显兴趣定制数据
|
|
that.getAndroidUserKey(); //推送
|
|
uni.hideLoading();
|
|
that.saveLoginLog(aes.aesDecrypt(uni.getStorageSync('unionid')));
|
|
},
|
|
jump: function(obj) {
|
|
if (obj == 'aboutus') {
|
|
uni.navigateTo({
|
|
url: '/subPageA/personcenter/aboutus'
|
|
});
|
|
} else if (obj == 'tousu') {
|
|
if (this.$util.isBlack(aes.aesDecrypt(uni.getStorageSync('unionid')))) {
|
|
uni.showToast({
|
|
title: '请先授权',
|
|
icon: 'none'
|
|
});
|
|
return;
|
|
}
|
|
uni.navigateTo({
|
|
url: '/subPageA/suggest/sug_list'
|
|
});
|
|
} else if (obj == 'update') {
|
|
uni.navigateTo({
|
|
url: '/subPageA/personcenter/update'
|
|
});
|
|
} else if (obj == 'fanyi') {
|
|
uni.navigateTo({
|
|
url: '/subPageA/translate/translate'
|
|
});
|
|
} else if (obj == 'phonetousu') {
|
|
uni.navigateTo({
|
|
url: '/subPageA/tousu/tousulist/tousulist'
|
|
});
|
|
} else if (obj == 'guide') {
|
|
uni.navigateTo({
|
|
url: '/subPageA/guide/guidelist'
|
|
});
|
|
} else if (obj == 'lvxingshe') {
|
|
uni.navigateTo({
|
|
url: '/pages/travel/travellist/travellist'
|
|
});
|
|
} else if (obj == 'saomiao') {
|
|
if (this.$wechat.isWechat()) {
|
|
} else {
|
|
var that = this;
|
|
this.$util.bindGpsObj(that);
|
|
switch (uni.getSystemInfoSync().platform) {
|
|
case 'android':
|
|
//安卓授权
|
|
Android.gotoDetial('QRCODE', '');
|
|
break;
|
|
case 'ios':
|
|
//ios授权
|
|
window.location.href = 'https://www.baidu.com?url=eqcode';
|
|
break;
|
|
}
|
|
}
|
|
} else if (obj == 'scenicReserve') {
|
|
if (this.$util.isBlack(aes.aesDecrypt(uni.getStorageSync('unionid')))) {
|
|
uni.showToast({
|
|
title: '请先授权',
|
|
icon: 'none'
|
|
});
|
|
return;
|
|
}
|
|
uni.navigateTo({
|
|
url: '/subPageA/scenic/subscribe/yuyue/yue_list_js'
|
|
});
|
|
} else if (obj == 'myReserve') {
|
|
if (this.$util.isBlack(aes.aesDecrypt(uni.getStorageSync('unionid')))) {
|
|
uni.showToast({
|
|
title: '请先授权',
|
|
icon: 'none'
|
|
});
|
|
return;
|
|
}
|
|
uni.navigateTo({
|
|
url: '/subPageA/myReserve/myReserve'
|
|
});
|
|
} else if (obj == 'admin') {
|
|
uni.navigateTo({
|
|
url: '/subPageA/personcenter/adminLogin/adminLogin'
|
|
});
|
|
} else if (obj == 'scanRecord') {
|
|
if (this.$util.isBlack(aes.aesDecrypt(uni.getStorageSync('adminId')))) {
|
|
uni.showToast({
|
|
title: '请先登陆管理员',
|
|
icon: 'none'
|
|
});
|
|
return;
|
|
}
|
|
uni.navigateTo({
|
|
url: '/subPageA/personcenter/scanCodeRecord/scanCodeRecord'
|
|
});
|
|
} else if (obj == 'logout') {
|
|
uni.removeStorageSync('adminId');
|
|
this.adminId = '';
|
|
this.isAdminLogin = false;
|
|
} else if (obj == 'logoutWechat') {
|
|
if (!this.$util.isBlack(aes.aesDecrypt(uni.getStorageSync('unionid')))) {
|
|
uni.removeStorageSync('nickname');
|
|
uni.removeStorageSync('headimgurl');
|
|
uni.removeStorageSync('oauthTime');
|
|
uni.removeStorageSync('openid');
|
|
uni.removeStorageSync('unionid');
|
|
this.nickname = "点击头像授权";
|
|
this.headimgurl = "/static/animg/personCenter/adm_img.png";
|
|
this.isLogin = false;
|
|
}
|
|
} else if (obj == 'myComment') {
|
|
if (this.$util.isBlack(aes.aesDecrypt(uni.getStorageSync('unionid')))) {
|
|
uni.showToast({
|
|
title: '请先授权',
|
|
icon: 'none'
|
|
});
|
|
return;
|
|
}
|
|
uni.navigateTo({
|
|
url: '/subPageA/myComment/list/list'
|
|
});
|
|
} else if (obj == 'delete') {
|
|
var that = this;
|
|
uni.showModal({
|
|
title: '提示',
|
|
icon: 'none',
|
|
content:"该操作将会清空所有用户数据!是否注销账户",
|
|
success: function (res) {
|
|
if (res.confirm) {
|
|
that.deleteUserApp();
|
|
this.scenicGZType = 'NO',
|
|
this.hotelGZType = 'NO',
|
|
this.lineGZType = 'NO',
|
|
this.foodGZType = 'NO',
|
|
this.methodGZType = 'NO',
|
|
uni.removeStorageSync('nickname');
|
|
uni.removeStorageSync('headimgurl');
|
|
uni.removeStorageSync('oauthTime');
|
|
uni.removeStorageSync('openid');
|
|
uni.removeStorageSync('unionid');
|
|
this.nickname = "点击头像授权";
|
|
this.headimgurl = "/static/animg/personCenter/adm_img.png";
|
|
this.isLogin = false;
|
|
that.getRedisData();
|
|
} else if (res.cancel) {
|
|
|
|
}
|
|
}
|
|
});
|
|
}
|
|
},
|
|
scenicSelectXQ: function(dicnum, strType) {
|
|
console.log(dicnum);
|
|
var that = this;
|
|
var scenicList = this.scenicList;
|
|
for (var i = 0; i < scenicList.length; i++) {
|
|
var msgList = scenicList[i].msg;
|
|
var type = true;
|
|
for (var j = 0; j < msgList.length; j++) {
|
|
var json = msgList[j];
|
|
if (dicnum.indexOf('scenic') != -1) {
|
|
if (json.dicnum == dicnum) {
|
|
json.isSelected = json.isSelected == '' ? 'select' : '';
|
|
if (json.isSelected == 'select') {
|
|
that.scenicSelectStr += json.queryType + '_' + dicnum + ',';
|
|
} else {
|
|
that.scenicSelectStr = that.scenicSelectStr.replace(json.queryType + '_' + json.dicnum + ',', '');
|
|
}
|
|
type = false;
|
|
}
|
|
if (!type) {
|
|
if (json.dicnum.indexOf('scenic') == -1) {
|
|
json.isSelected = '';
|
|
that.scenicSelectStr = that.scenicSelectStr.replace(json.queryType + '_' + json.dicnum + ',', '');
|
|
}
|
|
}
|
|
} else {
|
|
if (json.dicnum == dicnum) {
|
|
json.isSelected = json.isSelected == '' ? 'select' : '';
|
|
if (json.isSelected == 'select') {
|
|
that.scenicSelectStr += json.queryType + '_' + dicnum + ',';
|
|
} else {
|
|
that.scenicSelectStr = that.scenicSelectStr.replace(json.queryType + '_' + json.dicnum + ',', '');
|
|
}
|
|
that.scenicSelectStr = that.scenicSelectStr.replace(json.queryType + '_' + msgList[0].dicnum + ',', '');
|
|
msgList[0].isSelected = '';
|
|
type = false;
|
|
}
|
|
}
|
|
}
|
|
if (!type) {
|
|
if (strType == '') {
|
|
that.addUserInterest();
|
|
}
|
|
return;
|
|
}
|
|
}
|
|
},
|
|
hotelSelectXQ: function(dicnum, strType) {
|
|
var hotelList = this.hotelList;
|
|
for (var i = 0; i < hotelList.length; i++) {
|
|
var msgList = hotelList[i].msg;
|
|
var type = true;
|
|
for (var j = 0; j < msgList.length; j++) {
|
|
var json = msgList[j];
|
|
if (dicnum.indexOf('hotel') != -1) {
|
|
if (json.dicnum == dicnum) {
|
|
json.isSelected = json.isSelected == '' ? 'select' : '';
|
|
if (json.isSelected == 'select') {
|
|
that.hotelSelectStr += json.queryType + '_' + dicnum + ',';
|
|
} else {
|
|
that.hotelSelectStr = that.hotelSelectStr.replace(json.queryType + '_' + json.dicnum + ',', '');
|
|
}
|
|
type = false;
|
|
}
|
|
if (!type) {
|
|
if (json.dicnum.indexOf('hotel') == -1) {
|
|
json.isSelected = '';
|
|
that.hotelSelectStr = that.hotelSelectStr.replace(json.queryType + '_' + json.dicnum + ',', '');
|
|
}
|
|
}
|
|
} else {
|
|
if (json.dicnum == dicnum) {
|
|
json.isSelected = json.isSelected == '' ? 'select' : '';
|
|
if (json.isSelected == 'select') {
|
|
that.hotelSelectStr += json.queryType + '_' + dicnum + ',';
|
|
} else {
|
|
that.hotelSelectStr = that.hotelSelectStr.replace(json.queryType + '_' + json.dicnum + ',', '');
|
|
}
|
|
that.hotelSelectStr = that.hotelSelectStr.replace(json.queryType + '_' + msgList[0].dicnum + ',', '');
|
|
msgList[0].isSelected = '';
|
|
type = false;
|
|
}
|
|
}
|
|
}
|
|
if (!type) {
|
|
if (strType == '') {
|
|
that.addUserInterest();
|
|
}
|
|
return;
|
|
}
|
|
}
|
|
},
|
|
lineSelectXQ: function(dicnum, strType) {
|
|
var lineList = this.lineList;
|
|
for (var i = 0; i < lineList.length; i++) {
|
|
var msgList = lineList[i].msg;
|
|
var type = true;
|
|
for (var j = 0; j < msgList.length; j++) {
|
|
var json = msgList[j];
|
|
if (dicnum.indexOf('line') != -1) {
|
|
if (json.dicnum == dicnum) {
|
|
json.isSelected = json.isSelected == '' ? 'select' : '';
|
|
if (json.isSelected == 'select') {
|
|
that.lineSelectStr += json.queryType + '_' + dicnum + ',';
|
|
} else {
|
|
that.lineSelectStr = that.lineSelectStr.replace(json.queryType + '_' + json.dicnum + ',', '');
|
|
}
|
|
type = false;
|
|
}
|
|
if (!type) {
|
|
if (json.dicnum.indexOf('line') == -1) {
|
|
json.isSelected = '';
|
|
that.lineSelectStr = that.lineSelectStr.replace(json.queryType + '_' + json.dicnum + ',', '');
|
|
}
|
|
}
|
|
} else {
|
|
if (json.dicnum == dicnum) {
|
|
json.isSelected = json.isSelected == '' ? 'select' : '';
|
|
if (json.isSelected == 'select') {
|
|
that.lineSelectStr += json.queryType + '_' + dicnum + ',';
|
|
} else {
|
|
that.lineSelectStr = that.lineSelectStr.replace(json.queryType + '_' + json.dicnum + ',', '');
|
|
}
|
|
that.lineSelectStr = that.lineSelectStr.replace(json.queryType + '_' + msgList[0].dicnum + ',', '');
|
|
msgList[0].isSelected = '';
|
|
type = false;
|
|
}
|
|
}
|
|
}
|
|
if (!type) {
|
|
if (strType == '') {
|
|
that.addUserInterest();
|
|
}
|
|
return;
|
|
}
|
|
}
|
|
},
|
|
guanzhuTap: function(type) {
|
|
if (type == 'scenic') {
|
|
this.scenicGZType = this.scenicGZType == 'NO' ? 'YES' : 'NO';
|
|
that.addUserInterest();
|
|
} else if (type == 'hotle') {
|
|
this.hotelGZType = this.hotelGZType == 'NO' ? 'YES' : 'NO';
|
|
that.addUserInterest();
|
|
} else if (type == 'line') {
|
|
this.lineGZType = this.lineGZType == 'NO' ? 'YES' : 'NO';
|
|
that.addUserInterest();
|
|
} else if (type == 'food') {
|
|
this.foodGZType = this.foodGZType == 'NO' ? 'YES' : 'NO';
|
|
that.addUserInterest();
|
|
} else if (type == 'method') {
|
|
this.methodGZType = this.methodGZType == 'NO' ? 'YES' : 'NO';
|
|
that.addUserInterest();
|
|
}
|
|
},
|
|
getUserInterest: function() {
|
|
var that = this;
|
|
var data = {
|
|
userid: aes.aesDecrypt(uni.getStorageSync('unionid')),
|
|
userkey: this.$param.userkey
|
|
//userid: "2"
|
|
};
|
|
this.$Request.post(this.$config.getUserInterest, data).then(res => {
|
|
var data = res.data;
|
|
that.scenicGZType = data.scenic_isShow;
|
|
that.hotelGZType = data.hotel_isShow;
|
|
that.lineGZType = data.line_isShow;
|
|
that.foodGZType = data.food_isShow;
|
|
that.methodGZType = data.method_isShow;
|
|
var scenicArr = data.scenic_msg.split(',');
|
|
var hotelArr = data.hotel_msg.split(',');
|
|
var lineArr = data.line_msg.split(',');
|
|
for (var i = 0; i < scenicArr.length; i++) {
|
|
if (!this.$util.isBlack(scenicArr[i])) {
|
|
that.scenicSelectXQ(scenicArr[i].split('_')[1], 'hx');
|
|
}
|
|
}
|
|
for (var i = 0; i < hotelArr.length; i++) {
|
|
if (!this.$util.isBlack(hotelArr[i])) {
|
|
that.hotelSelectXQ(hotelArr[i].split('_')[1], 'hx');
|
|
}
|
|
}
|
|
for (var i = 0; i < lineArr.length; i++) {
|
|
if (!this.$util.isBlack(lineArr[i])) {
|
|
that.lineSelectXQ(lineArr[i].split('_')[1], 'hx');
|
|
}
|
|
}
|
|
});
|
|
},
|
|
addUserInterest: function() {
|
|
var data = {
|
|
userid: aes.aesDecrypt(uni.getStorageSync('unionid')),
|
|
//userid: "2",
|
|
scenicGZType: this.scenicGZType,
|
|
hotelGZType: this.hotelGZType,
|
|
lineGZType: this.lineGZType,
|
|
foodGZType: this.foodGZType,
|
|
methodGZType: this.methodGZType,
|
|
scenicSelectStr: this.scenicSelectStr,
|
|
hotelSelectStr: this.hotelSelectStr,
|
|
lineSelectStr: this.lineSelectStr,
|
|
userkey: this.$param.userkey
|
|
};
|
|
this.$Request.post(this.$config.addUserInterest, data).then(res => {
|
|
/* if(res.status == 200){
|
|
uni.showToast({
|
|
title: "保存成功",
|
|
duration: 2000
|
|
});
|
|
} */
|
|
});
|
|
},
|
|
deleteUserApp:function(){
|
|
var data = {
|
|
userid: aes.aesDecrypt(uni.getStorageSync('unionid')),
|
|
userkey: this.$param.userkey
|
|
};
|
|
this.$Request.post(this.$config.deleteUserApp, data).then(res => {
|
|
uni.showToast({
|
|
title: "注销成功!",
|
|
duration: 2000
|
|
});
|
|
});
|
|
},
|
|
getAndroidUserKey: function() {
|
|
this.$util.bindGpsObj(this);
|
|
switch (uni.getSystemInfoSync().platform) {
|
|
case 'android':
|
|
console.log('运行Android上');
|
|
Android.gotoDetial('DEVICEID', '');
|
|
break;
|
|
case 'ios':
|
|
console.log('运行iOS上');
|
|
window.location.href = 'https://www.baidu.com?url=tuisong';
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
},
|
|
imgPushTest: function(code) {
|
|
if (!aes.aesDecrypt(uni.getStorageSync('imgPushType'))) {
|
|
var data = {
|
|
areacode: this.$config.ARER_CODE_FOUR,
|
|
userStr: code,
|
|
lng: this.$param.lng,
|
|
lat: this.$param.lat,
|
|
imgUrl: this.$config.REAUEST_ROOTPATH,
|
|
userkey: this.$param.userkey,
|
|
userid: aes.aesDecrypt(uni.getStorageSync('unionid')),
|
|
pageType: ''
|
|
};
|
|
this.$Request.post(this.$config.imgPushFun, data).then(res => {});
|
|
}
|
|
},
|
|
imgDistinguish: function() {
|
|
var that = this;
|
|
var pics = that.pics;
|
|
uni.chooseImage({
|
|
count: 1, // 最多可以选择的图片张数,默认9
|
|
sizeType: ['original', 'compressed'], // original 原图,compressed 压缩图,默认二者都有
|
|
sourceType: ['album', 'camera'], // album 从相册选图,camera 使用相机,默认二者都有
|
|
success: function(res) {
|
|
uni.navigateTo({
|
|
url: '/subPageA/imgDistinguish/imgDistinguish?tempFilePaths=' + res.tempFilePaths[0]
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
};
|
|
</script>
|
|
|
|
<style>
|
|
@import url('/static/css/common.css');
|
|
@import url('/static/css/hebei.css');
|
|
</style>
|
|
|