修改一期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 class="item-box">
<view v-for="(itemi,index) in imgList" :key="index" @tap="choosefoot(index)" :class="index==2 ? 'centerBox':''"> <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-if="newcurrent==index" :src="itemi.selectedIconPath"></image>
<image :class="index==2 ? 'centerImg':'moImg'" v-else :src="itemi.iconPath"></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> <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 class="item-box">
<view @tap="choosefoot(index)" :class="newcurrent==index ? 'footactive':'footmo'" <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>
</view> </view>
<!-- 弹框 --> <!-- 弹框 -->
@ -129,14 +129,13 @@
} }
break; break;
case 3: case 3:
if(!this.jieDuan){ // if(!this.jieDuan){
let isAuth = this.$toolAll.tools.returnAuth() // let isAuth = this.$toolAll.tools.returnAuth()
if(!isAuth){ // if(!isAuth){
// uni.reLaunch({url:'/pages/tabbar/shop/shop'}) // // uni.reLaunch({url:'/pages/tabbar/shop/shop'})
this.isShowT = true // this.isShowT = true
} else this.jieDuan = true // } else this.jieDuan = true
} // }
// uni.navigateTo({url:'/pages/tabbar/shop/shop'})
break; break;
case 4: case 4:
if(!this.jieDuan){ if(!this.jieDuan){

View File

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

View File

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

View File

@ -279,6 +279,10 @@
this.is_doctor = res.data.is_doctor//01 this.is_doctor = res.data.is_doctor//01
this.is_servicer = res.data.is_servicer//01 this.is_servicer = res.data.is_servicer//01
this.is_staff = res.data.is_staff//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(res.data.is_staff==1){
if(this.toolsList.length!=8){ if(this.toolsList.length!=8){
this.toolsList.push({src:'/static/public/aboutus.png',title:'客服二维码',num:''}) this.toolsList.push({src:'/static/public/aboutus.png',title:'客服二维码',num:''})

View File

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