调整客服绑定

master
chen 2022-02-15 16:02:16 +08:00
parent ed15c415e1
commit 439369e45f
67 changed files with 407 additions and 152 deletions

View File

@ -75,8 +75,7 @@
}; };
}, },
mounted() { mounted() {
console.log(this.optionObj,'参数'); if(uni.getStorageSync('phone_active')==0){this.visible = true;}
if(uni.getStorageSync('is_active')!=1){this.visible = true;}
if(this.optionObj.invite_code!='' && this.optionObj.invite_code!=undefined){ if(this.optionObj.invite_code!='' && this.optionObj.invite_code!=undefined){
this.loginEv(this.optionObj.invite_code); this.loginEv(this.optionObj.invite_code);
} else if(this.optionObj.source_code!='' && this.optionObj.source_code!=undefined){ } else if(this.optionObj.source_code!='' && this.optionObj.source_code!=undefined){

56
components/bottom-tab.vue Normal file
View File

@ -0,0 +1,56 @@
<template>
<view class="posixzy disjbac bacf pad-zy32 btnBKS">
<view class="posir">
<image @tap="backHome" class="posia backH" src="/static/public/back-home-02.png" mode="aspectFill"></image>
</view>
<view class="disac fon26 colf">
<view @tap="lianK" class="disac posir lianShare" style="background-color: #3875F6; border-top-left-radius: 51rpx;border-bottom-left-radius: 51rpx;">
<image src="/static/public/bottom-customer.png" class="mar-zy20" style="width: 47rpx;height: 47rpx;" mode="aspectFill"></image>
<view>联系客服</view>
<button class="fon24 posia" style="opacity: 0;top: 0;left: 0;right: 0;bottom: 0;" open-type="contact">客服</button>
</view>
<view class="disac posir lianShare" style="background-color: #38CE51;border-top-right-radius: 51rpx;border-bottom-right-radius: 51rpx;">
<image src="/static/public/bottom-shear.png" style="width: 47rpx;height: 47rpx;margin-left: 15rpx;margin-right: 8rpx;" mode="aspectFill">
</image>
<view>分享给好友</view>
<button class="posia" open-type="share" style="top: 0;right: 0;left: 0;bottom: 0;opacity: 0;">分享</button>
</view>
</view>
</view>
</template>
<script>
export default {
name:"bottom-tab",
data() {
return {
haveImg: true,
};
},
methods:{
backHome() {
uni.reLaunch({
url: '/pages/tabbar/pagehome/pagehome'
})
},
lianK() { //
this.$requst.post('user/rand-bind-service').then(res => {})
this.$toolAll.tools.closeTimer() //
this.$requst.post('user/record', {
type: 'other',
action: 'ask',
id: 0
}).then(res => {}, error => {})
let maiOjb = {
e: 5, //
t: new Date().getTime() //
}
this.$toolAll.tools.maiDian(maiOjb);
},
}
}
</script>
<style>
</style>

View File

@ -91,7 +91,7 @@
}; };
}, },
mounted() { mounted() {
if(uni.getStorageSync('is_active')==0) this.isKef = false if(uni.getStorageSync('phone_active')==0) this.isKef = false
}, },
methods:{ methods:{
cancleEv(e){ cancleEv(e){

View File

@ -319,7 +319,7 @@ const tools = {
returnAuth(){//是否第一次授权 returnAuth(){//是否第一次授权
let auth = false let auth = false
// if(uni.getStorageSync('is_active')==0 || uni.getStorageSync('phone_active')==0) { // if(uni.getStorageSync('is_active')==0 || uni.getStorageSync('phone_active')==0) {
if(uni.getStorageSync('is_active')==0) { if(uni.getStorageSync('phone_active')==0) {
// this.showToast('您目前是游客,请授权登录') // this.showToast('您目前是游客,请授权登录')
// setTimeout(()=>{ // setTimeout(()=>{
uni.navigateTo({url:'/pages/login/login'}) uni.navigateTo({url:'/pages/login/login'})

View File

@ -531,6 +531,13 @@
} }
uni.setStorageSync('shareAll',res.data) uni.setStorageSync('shareAll',res.data)
if(res.data.rules.length!=0){ if(res.data.rules.length!=0){
//
let isFen = res.data.rules.indexOf('customer-allot');
if(isFen!=-1){
uni.setStorageSync('isFen',true);
} else {
uni.setStorageSync('isFen',false);
}
let result = this.zanCyuanList.filter(item => res.data.rules.some(itemt => itemt===item.rule)) let result = this.zanCyuanList.filter(item => res.data.rules.some(itemt => itemt===item.rule))
this.yuanList = result this.yuanList = result
uni.setStorageSync('rules',res.data.rules) uni.setStorageSync('rules',res.data.rules)

View File

@ -130,11 +130,11 @@
refTime:'', refTime:'',
reNum:0, reNum:0,
bannerList:[],// bannerList:[],//
isAutoPlay:false,
jieDuan:false, jieDuan:false,
isNewRenderDone:false ,// isNewRenderDone:false ,//
isQuan:uni.getStorageSync('isQuan'), isQuan:uni.getStorageSync('isQuan'),
quanImg:uni.getStorageSync('quanImg'), quanImg:uni.getStorageSync('quanImg'),
isAutoPlay:false,
} }
}, },
onPageScroll(e) { onPageScroll(e) {
@ -302,6 +302,7 @@
this.isQuan = false; this.isQuan = false;
uni.setStorageSync('isQuan',false); uni.setStorageSync('isQuan',false);
}, },
//
checkSwi(){ checkSwi(){
checkBanner({position:'home-banner'}).then(res=>{ checkBanner({position:'home-banner'}).then(res=>{
if(res.code==0){ if(res.code==0){

View File

@ -2,8 +2,12 @@
<view> <view>
<!-- 状态栏 --> <!-- 状态栏 -->
<status-nav :titleVal="'商城'" :statusBack="false" :statusTitle="true"></status-nav> <status-nav :titleVal="'商城'" :statusBack="false" :statusTitle="true"></status-nav>
<!-- 自定义轮播 -->
<view :style="{marginTop:statusHNH+'px'}">
<swiper-pu :bannerList="bannerList" :isplay="isAutoPlay"></swiper-pu>
</view>
<!-- 搜索输入框 --> <!-- 搜索输入框 -->
<view class="search-input-box bacf poszy shop-nav-box" :style="{top: statusHNH+'px'}"> <view class="search-input-box bacf shop-nav-box" :style="{top: statusHNH+'px',position:positionMode}" style="padding-top: 10rpx;left: 0;right: 0;z-index: 3;">
<view class="disac pad-zy30 mar-s20"> <view class="disac pad-zy30 mar-s20">
<!-- 输入框 --> <!-- 输入框 -->
<input class="width100 fon34 radius10" type="text" @confirm="searchEv" v-model="searchVal" placeholder="请输入商品名称"/> <input class="width100 fon34 radius10" type="text" @confirm="searchEv" v-model="searchVal" placeholder="请输入商品名称"/>
@ -49,7 +53,8 @@
</view> </view>
<view v-if="isXiao" @tap="isXiao=false" class="moban"></view> <view v-if="isXiao" @tap="isXiao=false" class="moban"></view>
<!-- 数据列表 --> <!-- 数据列表 -->
<view v-if="loading" :style="{marginTop:statusHNH+titleHeight+(isClick?52:0)+'px'}"> <!-- <view v-if="loading" :style="{marginTop:statusHNH+titleHeight+(isClick?52:0)+'px'}"> -->
<view v-if="loading" :style="{marginTop:(gaodu==200?titleHeight : 0)+'px'}">
<view v-if="dataList.length!=0 && search_result" class="pad20 "> <view v-if="dataList.length!=0 && search_result" class="pad20 ">
<view style="width: 48.6%;float: left;" class="pad-x180"> <view style="width: 48.6%;float: left;" class="pad-x180">
<view v-if="index1%2==0" v-for="(item1,index1) in dataList" :key="index1" class="bacf radius15 mar-x20 animated fadeIn posir" @tap="goPage(item1.id,index1)"> <view v-if="index1%2==0" v-for="(item1,index1) in dataList" :key="index1" class="bacf radius15 mar-x20 animated fadeIn posir" @tap="goPage(item1.id,index1)">
@ -152,10 +157,12 @@
<script> <script>
import shopList from '@/components/shop-list.vue'; import shopList from '@/components/shop-list.vue';
import {cartNum} from '@/jsFile/publicAPI.js'; import swiperPu from '@/components/swiper-pu.vue';
import {cartNum,checkBanner} from '@/jsFile/publicAPI.js';
export default { export default {
components:{ components:{
shopList shopList,
swiperPu
}, },
data() { data() {
return { return {
@ -189,12 +196,32 @@
bingVal:'', bingVal:'',
doctorVal:'', doctorVal:'',
activityVal:'', activityVal:'',
bannerList:[],//
isAutoPlay:false,
optionObj:{}, optionObj:{},
positionMode:'sticky',
gaodu:0
} }
}, },
onHide() {
this.isAutoPlay = false;
},
onUnload() {
this.isAutoPlay = false;
},
onShow() { onShow() {
this.$toolAll.tools.isLogin(); this.$toolAll.tools.isLogin();
this.cartNumEv();// this.cartNumEv();//
this.isAutoPlay = true;
},
onPageScroll(e) {
if(e.scrollTop>=200){
this.positionMode = "fixed";
this.gaodu = 200;
} else {
this.positionMode = "sticky";
this.gaodu = 0;
}
}, },
onShareAppMessage() { onShareAppMessage() {
var shareObj = { var shareObj = {
@ -256,8 +283,31 @@
} }
} }
},error=>{}) },error=>{})
//
this.checkSwi();
}, },
methods: { methods: {
//
checkSwi(){
checkBanner({position:'home-banner'}).then(res=>{
if(res.code==0){
if(res.data.length!=0){
res.data.forEach(item=>{
let isVideo = false
if(item.type!='img') isVideo = true
let banObj = {
imgSrc:this.$http + item.src,
url:item.url,
isVideo:isVideo,
poster:this.$http + item.src,
}
this.bannerList.push(banObj)
})
console.log(this.bannerList);
}
}
})
},
chooseDoctor(index){// chooseDoctor(index){//
this.shaiList = []; this.shaiList = [];
this.doctor_name = this.doctorList[index].doctor_extra.name; this.doctor_name = this.doctorList[index].doctor_extra.name;
@ -404,7 +454,8 @@
activity_end_at:item.activity_end_at,// activity_end_at:item.activity_end_at,//
activity_group_cover:group_cover,// activity_group_cover:group_cover,//
activity_group_num:item.activity_group_num,// activity_group_num:item.activity_group_num,//
activity_id:item.activity_id activity_id:item.activity_id,
spu_type:item.spu_type//
} }
this.zanArr.push(obj) this.zanArr.push(obj)
}) })

View File

@ -7,7 +7,7 @@
<view class="bold">配送方式</view> <view class="bold">配送方式</view>
<view class="fon26 col3 disac"> <view class="fon26 col3 disac">
<view @tap="expressEv(1)" :class="!isExpress?'activeT':'expressT'" :style="{background:isExpress?'':publicColor}">自提</view> <view @tap="expressEv(1)" :class="!isExpress?'activeT':'expressT'" :style="{background:isExpress?'':publicColor}">自提</view>
<view @tap="expressEv(0)" :class="isExpress?'activeT':'expressT'" :style="{background:isExpress?publicColor:''}"></view> <view v-if="!isVirtual" @tap="expressEv(0)" :class="isExpress?'activeT':'expressT'" :style="{background:isExpress?publicColor:''}"></view>
</view> </view>
</view> </view>
<!-- 地址信息 --> <!-- 地址信息 -->
@ -231,7 +231,8 @@
checkGrounpId:0, checkGrounpId:0,
expressInfo:{ expressInfo:{
default_price:0 default_price:0
} },
isVirtual:false//
} }
}, },
onShareAppMessage(res) { onShareAppMessage(res) {
@ -259,7 +260,9 @@
onLoad(options) { onLoad(options) {
// //
this.zPhone = uni.getStorageSync('phone'); this.zPhone = uni.getStorageSync('phone');
if(uni.getStorageSync('is_active')!=1){this.vision = true;} //
options.isVirtual == "virtual" ? this.isVirtual = true : this.isVirtual = false
if(uni.getStorageSync('phone_active')==0){this.vision = true;}
if(options.invite_code!='' && options.invite_code!=undefined){ if(options.invite_code!='' && options.invite_code!=undefined){
this.loginEv(options.invite_code); this.loginEv(options.invite_code);
} else if(options.source_code!='' && options.source_code!=undefined){ } else if(options.source_code!='' && options.source_code!=undefined){

View File

@ -97,7 +97,7 @@
return shareObj; return shareObj;
}, },
onLoad(options) { onLoad(options) {
if(uni.getStorageSync('is_active')!=1){this.vision = true;} if(uni.getStorageSync('phone_active')==0){this.vision = true;}
if(options.invite_code!='' && options.invite_code!=undefined){ if(options.invite_code!='' && options.invite_code!=undefined){
this.loginEv(options.invite_code); this.loginEv(options.invite_code);
} else if(options.source_code!='' && options.source_code!=undefined){ } else if(options.source_code!='' && options.source_code!=undefined){

View File

@ -82,7 +82,7 @@
return shareObj; return shareObj;
}, },
onLoad(options) { onLoad(options) {
if(uni.getStorageSync('is_active')!=1){this.vision = true;} if(uni.getStorageSync('phone_active')==0){this.vision = true;}
if(options.invite_code!='' && options.invite_code!=undefined){ if(options.invite_code!='' && options.invite_code!=undefined){
this.loginEv(options.invite_code); this.loginEv(options.invite_code);
} else if(options.source_code!='' && options.source_code!=undefined){ } else if(options.source_code!='' && options.source_code!=undefined){

View File

@ -10,7 +10,7 @@
</view> </view>
</scroll-view> </scroll-view>
</view> </view>
<view :style="{paddingTop:(statusHNH+12+chuTop)+'px'}" class="pad-sx20 pad-zy32"> <view :style="{paddingTop:(statusHNH+12+chuTop)+'px'}" class="pad-sx20 pad-zy32 pad-x180">
<view v-if="orderList.length!=0" v-for="(item,index) in orderList" :key="index" class="radius20 bacf pad20 mar-x20 order-item-box"> <view v-if="orderList.length!=0" v-for="(item,index) in orderList" :key="index" class="radius20 bacf pad20 mar-x20 order-item-box">
<view @tap="goDetail(item.id)" class="bbot disjbac pad-x20 mar-x20"><view class="fon28 col3 bold">{{item.isShop==0?'商城订单':'积分商城订单'}}</view> <view @tap="goDetail(item.id)" class="bbot disjbac pad-x20 mar-x20"><view class="fon28 col3 bold">{{item.isShop==0?'商城订单':'积分商城订单'}}</view>
<view v-if="item.is_only==0 && item.open_one==1 && item.is_group_make==1 && item.open_one_success==0" class="fon24 col9">{{item.group_make_end_at}}</view> <view v-if="item.is_only==0 && item.open_one==1 && item.is_group_make==1 && item.open_one_success==0" class="fon24 col9">{{item.group_make_end_at}}</view>
@ -105,6 +105,8 @@
</view> </view>
</view> </view>
</view> </view>
<!-- 底部tab -->
<foot-tab :titleList="titleList" :imgList="imgList" :newcurrent='-1'></foot-tab>
</view> </view>
</template> </template>
@ -148,7 +150,9 @@
zanArr:[], zanArr:[],
timeList:[], timeList:[],
orderInfo:{}, orderInfo:{},
checkGrounpId:0 checkGrounpId:0,
titleList:[],//tab
imgList:[],//tab
} }
}, },
onShareAppMessage(res) { onShareAppMessage(res) {
@ -193,6 +197,46 @@
this.chuTop = rect.height this.chuTop = rect.height
}).exec() }).exec()
options.index==undefined ? this.activeIndex = 0 : this.activeIndex = options.index; options.index==undefined ? this.activeIndex = 0 : this.activeIndex = options.index;
this.$requst.post('index/mini-program-setting').then(res=>{
// log('',res);
if(res.code==0){
if(res.data.length!=0){
if(res.data.footBar.length!=0){//
res.data.footBar.forEach(item=>{
let newName = item.name
let newObj = {
iconPath:this.$http + item.icon[0],
selectedIconPath:this.$http + item.icon[1],
}
if(item.key=="home"){
this.imgList[0] = newObj
this.titleList[0] = newName
}
if(item.key=="category"){
this.imgList[1] = newObj
this.titleList[1] = newName
}
if(item.key=="service"){
this.imgList[2] = newObj
this.titleList[2] = newName
}
if(item.key=="shop"){
this.imgList[3] = newObj
this.titleList[3] = newName
}
if(item.key=="my"){
this.imgList[4] = newObj
this.titleList[4] = newName
}
})
uni.setStorageSync('footTitle',this.titleList)
uni.setStorageSync('footimg',this.imgList)
this.titleList = uni.getStorageSync('footTitle')
this.imgList = uni.getStorageSync('footimg')
}
}
}
},error=>{})
}, },
methods: { methods: {
comeing(coding){ comeing(coding){

View File

@ -110,7 +110,7 @@
return shareObj; return shareObj;
}, },
onLoad(options) { onLoad(options) {
if(uni.getStorageSync('is_active')!=1){this.vision = true;} if(uni.getStorageSync('phone_active')==0){this.vision = true;}
if(options.invite_code!='' && options.invite_code!=undefined){ if(options.invite_code!='' && options.invite_code!=undefined){
this.loginEv(options.invite_code); this.loginEv(options.invite_code);
} else if(options.source_code!='' && options.source_code!=undefined){ } else if(options.source_code!='' && options.source_code!=undefined){

View File

@ -81,7 +81,7 @@
return shareObj; return shareObj;
}, },
onLoad(options) { onLoad(options) {
if(uni.getStorageSync('is_active')!=1){this.vision = true;} if(uni.getStorageSync('phone_active')==0){this.vision = true;}
if(options.invite_code!='' && options.invite_code!=undefined){ if(options.invite_code!='' && options.invite_code!=undefined){
this.loginEv(options.invite_code); this.loginEv(options.invite_code);
} else if(options.source_code!='' && options.source_code!=undefined){ } else if(options.source_code!='' && options.source_code!=undefined){

View File

@ -89,13 +89,13 @@
dataList:[],// dataList:[],//
dataTD:[],// dataTD:[],//
isShowT:false, isShowT:false,
category:'',
lname:'',// lname:'',//
lphone:'',// lphone:'',//
lmsg:'',// lmsg:'',//
isZhuan:false, isZhuan:false,
xialCurrent:0, xialCurrent:0,
xialone:['植发','脱发'], xialone:[],
category:'',
categoryT:'', categoryT:'',
isZhuanT:false, isZhuanT:false,
xialCT:0, xialCT:0,
@ -167,7 +167,6 @@
this.gtimeD(res.data.types[0].id,res.data.days[0].day) this.gtimeD(res.data.types[0].id,res.data.days[0].day)
// //
if(res.data.types.length!=0){ if(res.data.types.length!=0){
this.type_id = res.data.types[0].id
res.data.types.forEach(item=>{ res.data.types.forEach(item=>{
let ycateObj = { let ycateObj = {
id:item.id, id:item.id,
@ -176,6 +175,7 @@
} }
this.xialone.push(ycateObj) this.xialone.push(ycateObj)
}) })
this.type_id = this.xialone[0].id
this.category = this.xialone[0].title this.category = this.xialone[0].title
} }
// //

View File

@ -96,7 +96,7 @@
return shareObj; return shareObj;
}, },
onLoad(options) { onLoad(options) {
if(uni.getStorageSync('is_active')!=1){this.vision = true;} if(uni.getStorageSync('phone_active')==0){this.vision = true;}
if(options.invite_code!='' && options.invite_code!=undefined){ if(options.invite_code!='' && options.invite_code!=undefined){
this.loginEv(options.invite_code); this.loginEv(options.invite_code);
} else if(options.source_code!='' && options.source_code!=undefined){ } else if(options.source_code!='' && options.source_code!=undefined){

View File

@ -87,7 +87,7 @@
return shareObj; return shareObj;
}, },
onLoad(options) { onLoad(options) {
if(uni.getStorageSync('is_active')!=1){this.vision = true;} if(uni.getStorageSync('phone_active')==0){this.vision = true;}
if(options.invite_code!='' && options.invite_code!=undefined){ if(options.invite_code!='' && options.invite_code!=undefined){
this.loginEv(options.invite_code); this.loginEv(options.invite_code);
} else if(options.source_code!='' && options.source_code!=undefined){ } else if(options.source_code!='' && options.source_code!=undefined){

View File

@ -64,7 +64,9 @@
<pu-po :isShowT="isShowT" :isCenter="true" :contentVal="'提交成功!等待审核'" :comfrimVal="'好的'" @comfirmev="comfirmev"></pu-po> <pu-po :isShowT="isShowT" :isCenter="true" :contentVal="'提交成功!等待审核'" :comfrimVal="'好的'" @comfirmev="comfirmev"></pu-po>
</view> </view>
<!-- 底部客服 --> <!-- 底部客服 -->
<public-customer :nright="20" :nbottom="100"></public-customer> <!-- <public-customer :nright="20" :nbottom="100"></public-customer> -->
<!-- 底部tab -->
<foot-tab :titleList="titleList" :imgList="imgList" :newcurrent='-1'></foot-tab>
</view> </view>
</template> </template>
@ -84,6 +86,8 @@
xialCurrent:0, xialCurrent:0,
xialone:[], xialone:[],
btnCon:'立即提交', btnCon:'立即提交',
titleList:[],//tab
imgList:[],//tab
} }
}, },
onShow() { onShow() {
@ -92,6 +96,46 @@
onLoad() { onLoad() {
this.checkCate(); this.checkCate();
this.tphone = uni.getStorageSync('phone'); this.tphone = uni.getStorageSync('phone');
this.$requst.post('index/mini-program-setting').then(res=>{
// log('',res);
if(res.code==0){
if(res.data.length!=0){
if(res.data.footBar.length!=0){//
res.data.footBar.forEach(item=>{
let newName = item.name
let newObj = {
iconPath:this.$http + item.icon[0],
selectedIconPath:this.$http + item.icon[1],
}
if(item.key=="home"){
this.imgList[0] = newObj
this.titleList[0] = newName
}
if(item.key=="category"){
this.imgList[1] = newObj
this.titleList[1] = newName
}
if(item.key=="service"){
this.imgList[2] = newObj
this.titleList[2] = newName
}
if(item.key=="shop"){
this.imgList[3] = newObj
this.titleList[3] = newName
}
if(item.key=="my"){
this.imgList[4] = newObj
this.titleList[4] = newName
}
})
uni.setStorageSync('footTitle',this.titleList)
uni.setStorageSync('footimg',this.imgList)
this.titleList = uni.getStorageSync('footTitle')
this.imgList = uni.getStorageSync('footimg')
}
}
}
},error=>{})
}, },
methods: { methods: {
changeCate(e){ changeCate(e){

View File

@ -2,7 +2,7 @@
<view> <view>
<!-- 状态栏 --> <!-- 状态栏 -->
<status-nav :titleVal="'关于我们'" :whereCome="whereCome*1" :statusTitle="true"></status-nav> <status-nav :titleVal="'关于我们'" :whereCome="whereCome*1" :statusTitle="true"></status-nav>
<view :style="{paddingTop: statusHNH+'px'}" class="pad-zy32"> <view :style="{paddingTop: statusHNH+'px'}" class="pad-zy32 pad-x180">
<!-- 自定义轮播 --> <!-- 自定义轮播 -->
<view class="mar-s20"> <view class="mar-s20">
<swiper-pu :isplay="isAutoPlay" :bannerList="bannerList" :newHeight="'200'" :newRadius="'10'" :newBottom="'5'"></swiper-pu> <swiper-pu :isplay="isAutoPlay" :bannerList="bannerList" :newHeight="'200'" :newRadius="'10'" :newBottom="'5'"></swiper-pu>
@ -27,22 +27,28 @@
</view> </view>
</view> </view>
<!-- 底部客服 --> <!-- 底部客服 -->
<public-customer :nbottom="100"></public-customer> <!-- <public-customer :nbottom="100"></public-customer> -->
<!-- 返回顶部 --> <!-- 返回顶部 -->
<!-- <back-top :showTop="showTop" @backTop="backTop"></back-top> --> <!-- <back-top :showTop="showTop" @backTop="backTop"></back-top> -->
<!-- 弹框授权 --> <!-- 弹框授权 -->
<empower @buttonH="buttonH" :vision="vision" :isWhere="2"></empower> <empower @buttonH="buttonH" :vision="vision" :isWhere="2"></empower>
<!-- 弹框 --> <!-- 弹框 -->
<auth-phone v-if="isShowP"></auth-phone> <auth-phone v-if="isShowP"></auth-phone>
<!-- 底部导航 -->
<view class="posixzy">
<bottom-tab></bottom-tab>
</view>
</view> </view>
</template> </template>
<script> <script>
import swiperPu from '@/components/swiper-pu.vue'; import swiperPu from '@/components/swiper-pu.vue';
import {checkBanner} from '@/jsFile/publicAPI.js'; import {checkBanner} from '@/jsFile/publicAPI.js';
import bottomTab from '@/components/bottom-tab.vue';
export default { export default {
components:{ components:{
swiperPu swiperPu,
bottomTab
}, },
data() { data() {
return { return {
@ -105,7 +111,7 @@
return shareObj; return shareObj;
}, },
onLoad(options) { onLoad(options) {
if(uni.getStorageSync('is_active')!=1){this.vision = true;this.whereCome = 2;} else {this.$toolAll.tools.isLogin();} if(uni.getStorageSync('phone_active')==0){this.vision = true;this.whereCome = 2;} else {this.$toolAll.tools.isLogin();}
if(options.invite_code!='' && options.invite_code!=undefined){ if(options.invite_code!='' && options.invite_code!=undefined){
this.loginEv(options.invite_code); this.loginEv(options.invite_code);
} else if(options.source_code!='' && options.source_code!=undefined){ } else if(options.source_code!='' && options.source_code!=undefined){

View File

@ -113,7 +113,7 @@
this.checkDetail(options.id) this.checkDetail(options.id)
this.detailId = options.id this.detailId = options.id
this.category_id = options.category_id this.category_id = options.category_id
if(uni.getStorageSync('is_active')!=1){this.vision = true;} else {this.$toolAll.tools.isLogin()} if(uni.getStorageSync('phone_active')==0){this.vision = true;} else {this.$toolAll.tools.isLogin()}
console.log(options,'参数'); console.log(options,'参数');
if(options.invite_code!='' && options.invite_code!=undefined){ if(options.invite_code!='' && options.invite_code!=undefined){
this.loginEv(options.invite_code); this.loginEv(options.invite_code);

View File

@ -86,7 +86,7 @@
return shareObj; return shareObj;
}, },
onLoad(options) { onLoad(options) {
if(uni.getStorageSync('is_active')!=1){this.vision = true;} if(uni.getStorageSync('phone_active')==0){this.vision = true;}
if(options.invite_code!='' && options.invite_code!=undefined){ if(options.invite_code!='' && options.invite_code!=undefined){
this.loginEv(options.invite_code); this.loginEv(options.invite_code);
} else if(options.source_code!='' && options.source_code!=undefined){ } else if(options.source_code!='' && options.source_code!=undefined){

View File

@ -40,7 +40,7 @@
<view class="posia col3 fon24 radius10 tc" style="left: 20rpx;bottom: 100rpx;">姓名{{item.real_name || '暂无'}}</view> <view class="posia col3 fon24 radius10 tc" style="left: 20rpx;bottom: 100rpx;">姓名{{item.real_name || '暂无'}}</view>
<!-- 分配客服 --> <!-- 分配客服 -->
<!-- <view @tap="fenCustomer(index)" class="posia colf fon24 radius10 tc customer-btn" style="right: 20rpx;top: 80rpx;z-index: 1;" v-if="item.customer=='' || item.customer==null" :style="{background:publicColor}"></view> --> <!-- <view @tap="fenCustomer(index)" class="posia colf fon24 radius10 tc customer-btn" style="right: 20rpx;top: 80rpx;z-index: 1;" v-if="item.customer=='' || item.customer==null" :style="{background:publicColor}"></view> -->
<view @tap="fenCustomer(index)" class="posia colf fon24 radius10 tc customer-btn" style="right: 20rpx;top: 80rpx;z-index: 1;" :style="{background:publicColor}">分配客</view> <view @tap="fenCustomer(index)" class="posia colf fon24 radius10 tc customer-btn" style="right: 20rpx;top: 80rpx;z-index: 1;" v-if="isFen" :style="{background:publicColor}"></view>
<!-- 设置标签 --> <!-- 设置标签 -->
<view @tap="tuneUpTag(index)" v-if="item.isTag" class="posia colf fon24 radius10 tc customer-btn" style="right: 20rpx;bottom: 20rpx;z-index: 1;" :style="{background:publicColor}"></view> <view @tap="tuneUpTag(index)" v-if="item.isTag" class="posia colf fon24 radius10 tc customer-btn" style="right: 20rpx;bottom: 20rpx;z-index: 1;" :style="{background:publicColor}"></view>
<view class="fon24 col3 posia bold disac" style="bottom: 60rpx;left: 20rpx;right: 20rpx;"><text class="flexs">标签</text> <view class="fon24 col3 posia bold disac" style="bottom: 60rpx;left: 20rpx;right: 20rpx;"><text class="flexs">标签</text>
@ -127,6 +127,7 @@
tagIds:[], tagIds:[],
tagVal:[], tagVal:[],
tagStr:'', tagStr:'',
isFen:uni.getStorageSync('isFen')
} }
}, },
onPageScroll(e) { onPageScroll(e) {

View File

@ -14,7 +14,7 @@
</view> </view>
</view> </view>
</view> </view>
<view class="pad-zy20 mar-sx30"> <view class="pad-zy20 mar-sx30 pad-x180">
<!-- 列表 --> <!-- 列表 -->
<view class="fon28 col3 bold qdoctor disac">全部医生</view> <view class="fon28 col3 bold qdoctor disac">全部医生</view>
<view class="mar-s30" v-if="dataList.length!=0"> <view class="mar-s30" v-if="dataList.length!=0">
@ -30,19 +30,25 @@
<!-- <back-top :showTop="showTop" @backTop="backTop"></back-top> --> <!-- <back-top :showTop="showTop" @backTop="backTop"></back-top> -->
</view> </view>
<!-- 底部客服 --> <!-- 底部客服 -->
<public-customer :nbottom="100"></public-customer> <!-- <public-customer :nbottom="120"></public-customer> -->
<!-- 弹框授权 --> <!-- 弹框授权 -->
<empower @buttonH="buttonH" :vision="vision" :isWhere="2"></empower> <empower @buttonH="buttonH" :vision="vision" :isWhere="2"></empower>
<!-- 弹框 --> <!-- 弹框 -->
<auth-phone v-if="isShowP"></auth-phone> <auth-phone v-if="isShowP"></auth-phone>
<!-- 底部导航 -->
<view class="posixzy">
<bottom-tab></bottom-tab>
</view>
</view> </view>
</template> </template>
<script> <script>
import listDoctor from '@/components/list-doctor.vue'; import listDoctor from '@/components/list-doctor.vue';
import bottomTab from '@/components/bottom-tab.vue';
export default { export default {
components:{ components:{
listDoctor listDoctor,
bottomTab
}, },
data() { data() {
return { return {
@ -87,7 +93,7 @@
}, },
onLoad(options) { onLoad(options) {
if(uni.getStorageSync('is_active')!=1){this.vision = true;} else {this.$toolAll.tools.isLogin()} if(uni.getStorageSync('phone_active')==0){this.vision = true;} else {this.$toolAll.tools.isLogin()}
if(options.invite_code!='' && options.invite_code!=undefined){ if(options.invite_code!='' && options.invite_code!=undefined){
this.loginEv(options.invite_code); this.loginEv(options.invite_code);
} else if(options.source_code!='' && options.source_code!=undefined){ } else if(options.source_code!='' && options.source_code!=undefined){

View File

@ -4,7 +4,7 @@
<status-nav :titleVal="'医生'" :statusTitle="true"></status-nav> <status-nav :titleVal="'医生'" :statusTitle="true"></status-nav>
<!-- 自定义二级分类 --> <!-- 自定义二级分类 -->
<!-- 列表 --> <!-- 列表 -->
<view :style="{paddingTop: statusHNH+'px'}"> <view :style="{paddingTop: statusHNH+'px'}" class=" pad-x180">
<view v-if="isLoading" class="bacf mar-s20 pad-s20 pad-y32 pad-x40"> <view v-if="isLoading" class="bacf mar-s20 pad-s20 pad-y32 pad-x40">
<view class="disjb"> <view class="disjb">
<image class="radius10 flexs mar-z30" :src="doctorObj.doctor_extra.headimg || moImg" style="width: 300rpx;height: 300rpx;" mode="aspectFill"></image> <image class="radius10 flexs mar-z30" :src="doctorObj.doctor_extra.headimg || moImg" style="width: 300rpx;height: 300rpx;" mode="aspectFill"></image>
@ -51,17 +51,25 @@
<!-- <back-top :showTop="showTop" @backTop="backTop"></back-top> --> <!-- <back-top :showTop="showTop" @backTop="backTop"></back-top> -->
</view> </view>
<!-- 底部客服 --> <!-- 底部客服 -->
<public-customer :nbottom="100"></public-customer> <!-- <public-customer :nbottom="100"></public-customer> -->
<!-- 弹框授权 --> <!-- 弹框授权 -->
<empower @buttonH="buttonH" :vision="vision" :isWhere="2"></empower> <empower @buttonH="buttonH" :vision="vision" :isWhere="2"></empower>
<!-- 弹框 --> <!-- 弹框 -->
<auth-phone v-if="isShowP"></auth-phone> <auth-phone v-if="isShowP"></auth-phone>
<!-- 底部导航 -->
<view class="posixzy">
<bottom-tab></bottom-tab>
</view>
</view> </view>
</template> </template>
<script> <script>
import {collectionEV,cancleCollectionEV} from '@/jsFile/publicAPI.js'; import {collectionEV,cancleCollectionEV} from '@/jsFile/publicAPI.js';
import bottomTab from '@/components/bottom-tab.vue';
export default { export default {
components:{
bottomTab
},
data() { data() {
return { return {
statusHNH:uni.getStorageSync('statusHNH'), statusHNH:uni.getStorageSync('statusHNH'),
@ -122,7 +130,7 @@
onLoad(options) { onLoad(options) {
this.doctorId = options.doctor_id; this.doctorId = options.doctor_id;
this.checkDoD(this.doctorId) this.checkDoD(this.doctorId)
if(uni.getStorageSync('is_active')!=1){this.vision = true;} else {this.$toolAll.tools.isLogin()} if(uni.getStorageSync('phone_active')==0){this.vision = true;} else {this.$toolAll.tools.isLogin()}
if(options.invite_code!='' && options.invite_code!=undefined){ if(options.invite_code!='' && options.invite_code!=undefined){
this.loginEv(options.invite_code); this.loginEv(options.invite_code);
} else if(options.source_code!='' && options.source_code!=undefined){ } else if(options.source_code!='' && options.source_code!=undefined){

View File

@ -195,7 +195,7 @@
return shareObj; return shareObj;
}, },
onLoad(options) { onLoad(options) {
if(uni.getStorageSync('is_active')!=1){this.vision = true;} else {this.$toolAll.tools.isLogin()} if(uni.getStorageSync('phone_active')==0){this.vision = true;} else {this.$toolAll.tools.isLogin()}
if(options.invite_code!='' && options.invite_code!=undefined){ if(options.invite_code!='' && options.invite_code!=undefined){
this.loginEv(options.invite_code); this.loginEv(options.invite_code);
} else if(options.source_code!='' && options.source_code!=undefined){ } else if(options.source_code!='' && options.source_code!=undefined){

View File

@ -90,7 +90,7 @@
return shareObj; return shareObj;
}, },
onLoad(options) { onLoad(options) {
if(uni.getStorageSync('is_active')!=1){this.vision = true;} else {this.$toolAll.tools.isLogin()} if(uni.getStorageSync('phone_active')==0){this.vision = true;} else {this.$toolAll.tools.isLogin()}
if(options.invite_code!='' && options.invite_code!=undefined){ if(options.invite_code!='' && options.invite_code!=undefined){
this.loginEv(options.invite_code); this.loginEv(options.invite_code);
} else if(options.source_code!='' && options.source_code!=undefined){ } else if(options.source_code!='' && options.source_code!=undefined){

View File

@ -167,7 +167,7 @@
this.closeEv(); this.closeEv();
}, },
onLoad(options) { onLoad(options) {
if(uni.getStorageSync('is_active')!=1){this.vision = true;} else {this.$toolAll.tools.isLogin();} if(uni.getStorageSync('phone_active')==0){this.vision = true;} else {this.$toolAll.tools.isLogin();}
if(options.invite_code!='' && options.invite_code!=undefined){ if(options.invite_code!='' && options.invite_code!=undefined){
this.loginEv(options.invite_code); this.loginEv(options.invite_code);
} else if(options.source_code!='' && options.source_code!=undefined){ } else if(options.source_code!='' && options.source_code!=undefined){

View File

@ -4,7 +4,7 @@
<status-nav :titleVal="'二维码海报'" :statusTitle="true"></status-nav> <status-nav :titleVal="'二维码海报'" :statusTitle="true"></status-nav>
<!-- 自定义二级分类 --> <!-- 自定义二级分类 -->
<!-- 列表 --> <!-- 列表 -->
<view :style="{paddingTop: statusHNH+'px'}" class="pad-zy20"> <view :style="{paddingTop: statusHNH+'px'}" class="pad-zy20 pad-x180">
<view class="tc mar-s20 col6 fon28">请选择海报背景后分享</view> <view class="tc mar-s20 col6 fon28">请选择海报背景后分享</view>
<view v-if="imgList.length!=0"> <view v-if="imgList.length!=0">
<view class="mar-s20 disjbac fw"> <view class="mar-s20 disjbac fw">
@ -30,11 +30,13 @@
<!-- 弹框 --> <!-- 弹框 -->
<pu-po :isShowT="imgList.length==0 && isHaib" :contentVal="'立即生成创意海报'" :clearVal="'暂不生成'" :comfrimVal="'立即生成'" @comfirmev="comfirmev" @cancleev="cancleev"></pu-po> <pu-po :isShowT="imgList.length==0 && isHaib" :contentVal="'立即生成创意海报'" :clearVal="'暂不生成'" :comfrimVal="'立即生成'" @comfirmev="comfirmev" @cancleev="cancleev"></pu-po>
<!-- 底部客服 --> <!-- 底部客服 -->
<public-customer :nbottom="100"></public-customer> <!-- <public-customer :nbottom="100"></public-customer> -->
<!-- 弹框授权 --> <!-- 弹框授权 -->
<empower @buttonH="buttonH" :vision="vision" :isWhere="2"></empower> <empower @buttonH="buttonH" :vision="vision" :isWhere="2"></empower>
<!-- 弹框 --> <!-- 弹框 -->
<auth-phone v-if="isShowP"></auth-phone> <auth-phone v-if="isShowP"></auth-phone>
<!-- 底部tab -->
<foot-tab :titleList="titleList" :imgList="tabimgList" :newcurrent='-1'></foot-tab>
</view> </view>
</template> </template>
@ -53,6 +55,8 @@
haved:true, haved:true,
vision:false, vision:false,
isShowP:false, isShowP:false,
titleList:[],//tab
tabimgList:[],//tab
} }
}, },
onShareAppMessage() { onShareAppMessage() {
@ -62,7 +66,7 @@
return shareObj; return shareObj;
}, },
onLoad(options) { onLoad(options) {
if(uni.getStorageSync('is_active')!=1){this.vision = true;} else {this.$toolAll.tools.isLogin() ;this.haved = true;} if(uni.getStorageSync('phone_active')==0){this.vision = true;} else {this.$toolAll.tools.isLogin() ;this.haved = true;}
if(options.invite_code!='' && options.invite_code!=undefined){ if(options.invite_code!='' && options.invite_code!=undefined){
this.loginEv(options.invite_code); this.loginEv(options.invite_code);
} else if(options.source_code!='' && options.source_code!=undefined){ } else if(options.source_code!='' && options.source_code!=undefined){
@ -73,6 +77,46 @@
if(uni.getStorageSync('imgSrcList')!='') this.imgSrcList = uni.getStorageSync('imgSrcList')// if(uni.getStorageSync('imgSrcList')!='') this.imgSrcList = uni.getStorageSync('imgSrcList')//
else this.imgList = [] else this.imgList = []
this.checkPoster(); this.checkPoster();
this.$requst.post('index/mini-program-setting').then(res=>{
// log('',res);
if(res.code==0){
if(res.data.length!=0){
if(res.data.footBar.length!=0){//
res.data.footBar.forEach(item=>{
let newName = item.name
let newObj = {
iconPath:this.$http + item.icon[0],
selectedIconPath:this.$http + item.icon[1],
}
if(item.key=="home"){
this.tabimgList[0] = newObj
this.titleList[0] = newName
}
if(item.key=="category"){
this.tabimgList[1] = newObj
this.titleList[1] = newName
}
if(item.key=="service"){
this.tabimgList[2] = newObj
this.titleList[2] = newName
}
if(item.key=="shop"){
this.tabimgList[3] = newObj
this.titleList[3] = newName
}
if(item.key=="my"){
this.tabimgList[4] = newObj
this.titleList[4] = newName
}
})
uni.setStorageSync('footTitle',this.titleList)
uni.setStorageSync('footimg',this.tabimgList)
this.titleList = uni.getStorageSync('footTitle')
this.tabimgList = uni.getStorageSync('footimg')
}
}
}
},error=>{})
}, },
methods: { methods: {
loginEv(invite_code='',source='',channel=''){ loginEv(invite_code='',source='',channel=''){

View File

@ -52,7 +52,6 @@
<view class="fon24 col9">分享</view> <view class="fon24 col9">分享</view>
<button class="posia" open-type="share" <button class="posia" open-type="share"
style="top: 0;right: 0;left: 0;bottom: 0;opacity: 0;">分享</button> style="top: 0;right: 0;left: 0;bottom: 0;opacity: 0;">分享</button>
<!-- <button v-if="haveImg" class="posia" open-type="share" style="top: 0;right: 0;left: 0;bottom: 0;opacity: 0;"></button> -->
</view> </view>
<view class="disac fc" @tap="tapConllection"> <view class="disac fc" @tap="tapConllection">
<image v-if="isDetailConllection" src="/static/public/yconllection.png" <image v-if="isDetailConllection" src="/static/public/yconllection.png"
@ -68,33 +67,21 @@
<rich-text :nodes="detailInfo"></rich-text> <rich-text :nodes="detailInfo"></rich-text>
</view> </view>
</view> </view>
<!-- <view class="pad-zy20" v-show="cateCurrent==1"> -->
<view class="pad-zy20"> <view class="pad-zy20">
<view class="fon30 bold tc mar-sx40" :style="{color:publicColor}">相关推荐</view> <view class="fon30 bold tc mar-sx40" :style="{color:publicColor}">相关推荐</view>
<!-- 相关推荐列表 --> <!-- 相关推荐列表 -->
<list-pu @chooseLike="chooseLikex" @comfirmev="comfirmevx" :list="xgList"></list-pu> <list-pu @chooseLike="chooseLikex" @comfirmev="comfirmevx" :list="xgList"></list-pu>
</view> </view>
<view class="tc fon28 bold" style="color: #fff;background-color: #3875f6;padding: 20rpx;" @tap="backEv">{{contentVal}}>></view> <view class="tc fon28 bold" style="color: #fff;background-color: #3875f6;padding: 20rpx;" @tap="backEv">{{contentVal}}>></view>
<!-- <view class="tc fon28 bold" style="color: #3875f6;background-color: #CCCCCC;padding: 20rpx;" @tap="backEv">{{cateList[cateCurrent].title}}>></view> -->
<view class="pad-zy20"> <view class="pad-zy20">
<view class="fon30 bold tc mar-sx40" :style="{color:publicColor}">推荐医生</view> <view class="fon30 bold tc mar-sx40" :style="{color:publicColor}">推荐医生</view>
<!-- 推荐医生列表 --> <!-- 推荐医生列表 -->
<list-doctor v-if="dataList.length!=0" :list="dataList"></list-doctor> <list-doctor v-if="dataList.length!=0" :list="dataList"></list-doctor>
<view v-if="dataList.length==0" class="disjcac fc" style="margin-top: 10%;"> <view v-if="dataList.length==0" class="disjcac fc" style="margin-top: 10%;">
<image class="zanw-img" src="/static/public/nothing.png" mode="aspectFill"></image> <image class="zanw-img" src="/static/public/nothing.png" mode="aspectFill"></image>
<!-- <view class="fon24 col3">暂无推荐医生</view> -->
</view> </view>
</view> </view>
</view> </view>
<!-- <view v-show="cateCurrent==index && isNum!=index" v-for="(item,index) in allArr" :key="index" class="pad-zy20">
<view v-if="item.length!=0">
<list-pu @chooseLike="chooseLike" @comfirmev="comfirmev" :list="item"></list-pu>
</view>
<view v-else class="disjcac fc" style="margin-top: 40%;">
<image class="zanw-img" src="/static/public/nothing.png" mode="aspectFill"></image>
<view class="fon24 col3">暂无内容</view>
</view>
</view> -->
<view v-if="cateCurrent!=isNum"> <view v-if="cateCurrent!=isNum">
<view v-if="allList.length!=0" class="pad-zy20"> <view v-if="allList.length!=0" class="pad-zy20">
<list-pu @chooseLike="chooseLike" @comfirmev="comfirmev" :list="allList"></list-pu> <list-pu @chooseLike="chooseLike" @comfirmev="comfirmev" :list="allList"></list-pu>
@ -105,36 +92,16 @@
</view> </view>
</view> </view>
</view> </view>
<view class="posixzy disjbac bacf pad-zy32 btnBKS">
<view class="posir">
<image @tap="backHome" class="posia backH" src="/static/public/back-home-02.png" mode="aspectFill"></image>
</view>
<view class="disac fon26 colf">
<view @tap="lianK" class="disac posir lianShare"
style="background-color: #3875F6; border-top-left-radius: 51rpx;border-bottom-left-radius: 51rpx;">
<image src="/static/public/bottom-customer.png" class="mar-zy20"
style="width: 47rpx;height: 47rpx;" mode="aspectFill"></image>
<view>联系客服</view>
<button v-if="haveImg" class="fon24 posia" style="opacity: 0;top: 0;left: 0;right: 0;bottom: 0;"
open-type="contact">客服</button>
</view>
<view @tap="shareEv" class="disac posir lianShare"
style="background-color: #38CE51;border-top-right-radius: 51rpx;border-bottom-right-radius: 51rpx;">
<image src="/static/public/bottom-shear.png"
style="width: 47rpx;height: 47rpx;margin-left: 15rpx;margin-right: 8rpx;" mode="aspectFill">
</image>
<view>分享给好友</view>
<button v-if="haveImg" class="posia" open-type="share"
style="top: 0;right: 0;left: 0;bottom: 0;opacity: 0;">分享</button>
</view>
</view>
</view>
<!-- 返回顶部 --> <!-- 返回顶部 -->
<!-- <back-top :showTop="showTop" @backTop="backTop"></back-top> --> <!-- <back-top :showTop="showTop" @backTop="backTop"></back-top> -->
<!-- 弹框授权 --> <!-- 弹框授权 -->
<empower @buttonH="buttonH" :vision="vision" :isWhere="2" @cancleEv="cancleEv"></empower> <empower @buttonH="buttonH" :vision="vision" :isWhere="2" @cancleEv="cancleEv"></empower>
<!-- 弹框 --> <!-- 弹框 -->
<auth-phone v-if="isShowP"></auth-phone> <auth-phone v-if="isShowP"></auth-phone>
<!-- 底部导航 -->
<view class="posixzy">
<bottom-tab></bottom-tab>
</view>
</view> </view>
</view> </view>
</template> </template>
@ -142,6 +109,7 @@
<script> <script>
import listDoctor from '@/components/list-doctor.vue'; import listDoctor from '@/components/list-doctor.vue';
import swiperPu from '@/components/swiper-pu.vue'; import swiperPu from '@/components/swiper-pu.vue';
import bottomTab from '@/components/bottom-tab.vue';
import { import {
collectionEV, collectionEV,
cancleCollectionEV cancleCollectionEV
@ -150,6 +118,7 @@
components: { components: {
listDoctor, listDoctor,
swiperPu, swiperPu,
bottomTab
}, },
data() { data() {
return { return {
@ -337,34 +306,6 @@
cancleEv(e) { // cancleEv(e) { //
if (e == 0) this.vision = false if (e == 0) this.vision = false
}, },
backHome() {
uni.navigateTo({
url: '/pages/tabbar/pagehome/pagehome'
})
},
lianK() { //
if (this.haveImg) {
this.$requst.post('user/rand-bind-service').then(res => {})
this.$toolAll.tools.closeTimer() //
this.$requst.post('user/record', {
type: 'other',
action: 'ask',
id: 0
}).then(res => {}, error => {})
let maiOjb = {
e: 5, //
t: new Date().getTime() //
}
this.$toolAll.tools.maiDian(maiOjb);
} else {
this.vision = true
}
},
shareEv() {
if (this.haveImg == false) {
this.vision = true
}
},
checkDetail(newId) { checkDetail(newId) {
this.$requst.post('archives/detail', { this.$requst.post('archives/detail', {
id: newId, id: newId,

View File

@ -111,7 +111,7 @@
return shareObj; return shareObj;
}, },
onLoad(options) { onLoad(options) {
if(uni.getStorageSync('is_active')!=1){this.vision = true;} if(uni.getStorageSync('phone_active')==0){this.vision = true;}
if(options.invite_code!='' && options.invite_code!=undefined){ if(options.invite_code!='' && options.invite_code!=undefined){
this.loginEv(options.invite_code); this.loginEv(options.invite_code);
} else if(options.source_code!='' && options.source_code!=undefined){ } else if(options.source_code!='' && options.source_code!=undefined){

View File

@ -27,11 +27,13 @@
<!-- 弹框 --> <!-- 弹框 -->
<pu-po :isShowT="isShowT" :contentVal="'暂未开放此功能,请耐心等候'" :isCenter="true" :comfrimVal="'好的'" @comfirmev="isShowT=false"></pu-po> <pu-po :isShowT="isShowT" :contentVal="'暂未开放此功能,请耐心等候'" :isCenter="true" :comfrimVal="'好的'" @comfirmev="isShowT=false"></pu-po>
<!-- 底部客服 --> <!-- 底部客服 -->
<public-customer :nbottom="100"></public-customer> <!-- <public-customer :nbottom="100"></public-customer> -->
<!-- 弹框授权 --> <!-- 弹框授权 -->
<empower @buttonH="buttonH" :vision="vision" :isWhere="2"></empower> <empower @buttonH="buttonH" :vision="vision" :isWhere="2"></empower>
<!-- 弹框 --> <!-- 弹框 -->
<auth-phone v-if="isShowP"></auth-phone> <auth-phone v-if="isShowP"></auth-phone>
<!-- 底部tab -->
<foot-tab :titleList="titleList" :imgList="imgList" :newcurrent='-1'></foot-tab>
</view> </view>
</template> </template>
@ -51,6 +53,8 @@
imgSrcP:uni.getStorageSync('imgSrcP'), imgSrcP:uni.getStorageSync('imgSrcP'),
vision:false, vision:false,
isShowP:false, isShowP:false,
titleList:[],//tab
imgList:[],//tab
} }
}, },
onShareAppMessage(options) { onShareAppMessage(options) {
@ -81,13 +85,53 @@
  return shareObj;   return shareObj;
}, },
onLoad(options) { onLoad(options) {
if(uni.getStorageSync('is_active')!=1){this.vision = true;} else {this.$toolAll.tools.isLogin()} if(uni.getStorageSync('phone_active')==0){this.vision = true;} else {this.$toolAll.tools.isLogin()}
if(options.invite_code!='' && options.invite_code!=undefined){ if(options.invite_code!='' && options.invite_code!=undefined){
this.loginEv(options.invite_code); this.loginEv(options.invite_code);
} else if(options.source_code!='' && options.source_code!=undefined){ } else if(options.source_code!='' && options.source_code!=undefined){
this.loginEv('',options.source_code,options.channel); this.loginEv('',options.source_code,options.channel);
} }
uni.getStorageSync('shareAll')!='' ? this.dataList[1].num = uni.getStorageSync('shareAll').share_users.total : this.dataList[1].num = 0 uni.getStorageSync('shareAll')!='' ? this.dataList[1].num = uni.getStorageSync('shareAll').share_users.total : this.dataList[1].num = 0
this.$requst.post('index/mini-program-setting').then(res=>{
// log('',res);
if(res.code==0){
if(res.data.length!=0){
if(res.data.footBar.length!=0){//
res.data.footBar.forEach(item=>{
let newName = item.name
let newObj = {
iconPath:this.$http + item.icon[0],
selectedIconPath:this.$http + item.icon[1],
}
if(item.key=="home"){
this.imgList[0] = newObj
this.titleList[0] = newName
}
if(item.key=="category"){
this.imgList[1] = newObj
this.titleList[1] = newName
}
if(item.key=="service"){
this.imgList[2] = newObj
this.titleList[2] = newName
}
if(item.key=="shop"){
this.imgList[3] = newObj
this.titleList[3] = newName
}
if(item.key=="my"){
this.imgList[4] = newObj
this.titleList[4] = newName
}
})
uni.setStorageSync('footTitle',this.titleList)
uni.setStorageSync('footimg',this.imgList)
this.titleList = uni.getStorageSync('footTitle')
this.imgList = uni.getStorageSync('footimg')
}
}
}
},error=>{})
}, },
methods: { methods: {
loginEv(invite_code='',source='',channel=''){ loginEv(invite_code='',source='',channel=''){

View File

@ -352,7 +352,7 @@
allList:[], allList:[],
isactivity:0,//01 isactivity:0,//01
orderId:'',//id orderId:'',//id
timeout:null timeout:null,
} }
}, },
onReachBottom() { // onReachBottom() { //
@ -400,7 +400,7 @@
this.isAutoPlay = false; this.isAutoPlay = false;
}, },
onLoad(options) { onLoad(options) {
if(uni.getStorageSync('is_active')!=1){ if(uni.getStorageSync('phone_active')==0){
this.vision = true; this.vision = true;
this.loginEv(options); this.loginEv(options);
} else { } else {
@ -565,7 +565,7 @@
let newList = [params]; let newList = [params];
uni.setStorageSync('orderList',newList); uni.setStorageSync('orderList',newList);
uni.navigateTo({ uni.navigateTo({
url:`/pagesA/getReadyDan/getReadyDan?isNei=${this.isNei}` url:`/pagesA/getReadyDan/getReadyDan?isNei=${this.isNei}&isVirtual=${this.detailObj.spu_type}`
}) })
}, },
addCart(){// addCart(){//

View File

@ -211,7 +211,7 @@
} else { } else {
this.search_result = false; this.search_result = false;
} }
if(uni.getStorageSync('is_active')!=1){this.vision = true;} if(uni.getStorageSync('phone_active')==0){this.vision = true;}
if(options.invite_code!='' && options.invite_code!=undefined){ if(options.invite_code!='' && options.invite_code!=undefined){
this.loginEv(options.invite_code); this.loginEv(options.invite_code);
} else if(options.source_code!='' && options.source_code!=undefined){ } else if(options.source_code!='' && options.source_code!=undefined){

View File

@ -79,7 +79,7 @@
return shareObj; return shareObj;
}, },
onLoad(options) { onLoad(options) {
if(uni.getStorageSync('is_active')!=1){this.vision = true;} if(uni.getStorageSync('phone_active')==0){this.vision = true;}
if(options.invite_code!='' && options.invite_code!=undefined){ if(options.invite_code!='' && options.invite_code!=undefined){
this.loginEv(options.invite_code); this.loginEv(options.invite_code);
} else if(options.source_code!='' && options.source_code!=undefined){ } else if(options.source_code!='' && options.source_code!=undefined){

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long