修改一期bug

master
chen 2021-11-06 16:32:54 +08:00
parent 1f60096f0a
commit a194f70e65
5 changed files with 21 additions and 15 deletions

View File

@ -14,7 +14,7 @@
<!-- 图片列表 -->
<view class="item-box">
<view v-for="(itemi,index) in imgList" :key="index" @tap="choosefoot(index)" :class="index==2 ? 'centerBox':''">
<view class="posir" :class="index==2 ? 'centerBox-item':''">
<view v-if="index!=3" class="posir" :class="index==2 ? 'centerBox-item':''">
<image :class="index==2 ? 'centerImg':'moImg'" v-if="newcurrent==index" :src="itemi.selectedIconPath"></image>
<image :class="index==2 ? 'centerImg':'moImg'" v-else :src="itemi.iconPath"></image>
<button v-if="index==2 && isKef" class="fon24 posia" style="opacity: 0;top: 0;left: 0;right: 0;bottom: 0;" open-type="contact"></button>
@ -24,7 +24,7 @@
<!-- 标题列表 -->
<view class="item-box">
<view @tap="choosefoot(index)" :class="newcurrent==index ? 'footactive':'footmo'"
v-for="(itemt,index) in titleList" :key="index">{{itemt}}</view>
v-for="(itemt,index) in titleList" :key="index"><span v-if="index!=3">{{itemt}}</span></view>
</view>
</view>
<!-- 弹框 -->
@ -129,14 +129,13 @@
}
break;
case 3:
if(!this.jieDuan){
let isAuth = this.$toolAll.tools.returnAuth()
if(!isAuth){
// uni.reLaunch({url:'/pages/tabbar/shop/shop'})
this.isShowT = true
} else this.jieDuan = true
}
// uni.navigateTo({url:'/pages/tabbar/shop/shop'})
// if(!this.jieDuan){
// let isAuth = this.$toolAll.tools.returnAuth()
// if(!isAuth){
// // uni.reLaunch({url:'/pages/tabbar/shop/shop'})
// this.isShowT = true
// } else this.jieDuan = true
// }
break;
case 4:
if(!this.jieDuan){

View File

@ -124,7 +124,7 @@ const uploadFile = (url, options) => {
},
success: res => {
if (res.statusCode == 200) {
let temp = JSON.parse(res.data)
let temp = JSON.parse(res.data);
if (temp.code == 0) {
resolve(temp)
} else {

View File

@ -281,7 +281,7 @@ const tools = {
language:obj.language
}
uni.request({
url: `https://hengmei1.scdxtc.cn/api/user/login`,
url: `https://hm.hmzfyy.cn/api/user/login`,
method: 'post',
data: params,
header: {

View File

@ -279,6 +279,10 @@
this.is_doctor = res.data.is_doctor//01
this.is_servicer = res.data.is_servicer//01
this.is_staff = res.data.is_staff//01
let num = res.data.rules.indexOf('customer-allot');
if(num!=-1){
uni.setStorageSync('customer-allot',true);
} else uni.setStorageSync('customer-allot','');
if(res.data.is_staff==1){
if(this.toolsList.length!=8){
this.toolsList.push({src:'/static/public/aboutus.png',title:'客服二维码',num:''})

View File

@ -35,7 +35,9 @@
<view class="col3">{{item.qudao}}</view>
</view>
</view>
<view @tap="fenCustomer(index)" class="posia colf fon24 radius10 tc customer-btn" style="right: 20rpx;top: 80rpx;" v-if="item.customer=='' || item.customer==null" :style="{background:publicColor}"></view>
<view v-if="isAllot">
<view @tap="fenCustomer(index)" class="posia colf fon24 radius10 tc customer-btn" style="right: 20rpx;top: 80rpx;" v-if="item.customer=='' || item.customer==null" :style="{background:publicColor}"></view>
</view>
<view class="fon24 col3 posia clips1 bold" style="bottom: 20rpx;left: 20rpx;right: 20rpx;">详细来源{{item.source_detail}}</view>
</view>
<view v-if="dataList.length==0" class="disjcac fc" style="margin-top: 50%;">
@ -73,7 +75,8 @@
size:10,
total:'',
isZanw:true,
ntype:''
ntype:'',
isAllot:uni.getStorageSync('customer-allot')
}
},
onPageScroll(e) {
@ -153,7 +156,7 @@
name:item.nickname,
come:item.channel_text,
phone:item.mobile,
customer:item.service[0],
customer:item.service_name,
time:item.created_at,
qudao:item.tag[0],
service:item.service,