1、医生列表、医生详情图片更改;2、订单列表、订单详情状态修改;3、进入分类选中分类调整;4、病种列表点赞、收藏调整;5、商品详情活动结束判断

master
chen 2022-03-09 18:06:05 +08:00
parent 547eb371cf
commit 701e1ef06d
64 changed files with 618 additions and 431 deletions

View File

@ -2,6 +2,9 @@
import toolAll from '@/jsFile/tools.js'; import toolAll from '@/jsFile/tools.js';
import requst from '@/jsFile/requst.js'; import requst from '@/jsFile/requst.js';
export default { export default {
globalData:{
outside:true//,
},
onLaunch: function() { onLaunch: function() {
// //
toolAll.tools.currentContext(); toolAll.tools.currentContext();

View File

@ -22,7 +22,7 @@
.list-like-box>image:first-child {opacity: 0.5;} .list-like-box>image:first-child {opacity: 0.5;}
.list-like-box>image{width: 69rpx;height: 69rpx;} .list-like-box>image{width: 69rpx;height: 69rpx;}
.list-cont-box{bottom: 10rpx;left: 0rpx;right: 0; padding-top: 100rpx; background:-webkit-linear-gradient(bottom,rgba(0,0,0,0.79),rgba(255,255,255,0));padding-left: 22rpx;padding-right: 22rpx;padding-bottom: 18rpx;border-bottom-left-radius: 30rpx;border-bottom-right-radius: 30rpx;} .list-cont-box{bottom: 10rpx;left: 0rpx;right: 0; padding-top: 100rpx; background:-webkit-linear-gradient(bottom,rgba(0,0,0,0.79),rgba(255,255,255,0));padding-left: 22rpx;padding-right: 22rpx;padding-bottom: 18rpx;border-bottom-left-radius: 30rpx;border-bottom-right-radius: 30rpx;}
.list-cont-box15{bottom: 10rpx;left: 0rpx;right: 0; padding-top: 100rpx; background:-webkit-linear-gradient(bottom,rgba(0,0,0,0.79),rgba(255,255,255,0));padding-left: 22rpx;padding-right: 22rpx;padding-bottom: 18rpx;border-bottom-left-radius: 15rpx;border-bottom-right-radius: 15rpx;} .list-cont-box15{bottom: 8rpx;left: 0rpx;right: 0; padding-top: 100rpx; background:-webkit-linear-gradient(bottom,rgba(0,0,0,0.79),rgba(255,255,255,0));padding-left: 22rpx;padding-right: 22rpx;padding-bottom: 18rpx;border-bottom-left-radius: 15rpx;border-bottom-right-radius: 15rpx;}
.list-headimg{width: 28rpx;height: 28rpx;margin-right: 6rpx;border-radius: 100%;} .list-headimg{width: 28rpx;height: 28rpx;margin-right: 6rpx;border-radius: 100%;}
.home-quan-box{background: rgba(0,0,0,.54);position: fixed;top: 0;left: 0;right: 0;bottom: 0;z-index: 11;display: flex;justify-content: center;flex-direction: column;align-items: center;} .home-quan-box{background: rgba(0,0,0,.54);position: fixed;top: 0;left: 0;right: 0;bottom: 0;z-index: 11;display: flex;justify-content: center;flex-direction: column;align-items: center;}
.home-quan-box image:first-child{width: 542rpx;height: 600rpx;} .home-quan-box image:first-child{width: 542rpx;height: 600rpx;}
@ -33,7 +33,7 @@
.cateActive{background-color: #F5F5F5;border-radius: 10rpx 0rpx 0rpx 10rpx;padding: 20rpx 10rpx;text-align: center;margin-left: 10rpx;} .cateActive{background-color: #F5F5F5;border-radius: 10rpx 0rpx 0rpx 10rpx;padding: 20rpx 10rpx;text-align: center;margin-left: 10rpx;}
.cate-tu-item{padding: 16rpx 20rpx;background-color: #DFDFDF;} .cate-tu-item{padding: 16rpx 20rpx;background-color: #DFDFDF;}
.cate-box{position: fixed;top: 0;left: 0;bottom: 140rpx;background-color: #FFFFFF;} .cate-box{position: fixed;top: 0;left: 0;bottom: 140rpx;background-color: #FFFFFF;}
.list-min{min-height: 260rpx;} .list-min{min-height: 360rpx;}
.cate-box .fon26 .mar-s20:first-child {margin-top: 50rpx;} .cate-box .fon26 .mar-s20:first-child {margin-top: 50rpx;}
/* 搜索 */ /* 搜索 */
.search-input-box{width: 100%;padding-bottom: 20rpx;} .search-input-box{width: 100%;padding-bottom: 20rpx;}
@ -66,6 +66,9 @@
.gao-m{width: 43rpx;height: 43rpx;z-index: 1;} .gao-m{width: 43rpx;height: 43rpx;z-index: 1;}
.gao-next-box{width: 50rpx;position: relative;z-index: 1;justify-content: flex-end;} .gao-next-box{width: 50rpx;position: relative;z-index: 1;justify-content: flex-end;}
.gao-next-box image{width: 35rpx;height: 35rpx;z-index: 1;} .gao-next-box image{width: 35rpx;height: 35rpx;z-index: 1;}
/* 病种列表 */
.problem-input{border: 2rpx solid #E0E0E0;padding: 0rpx 20rpx;height: 80rpx;line-height: 80rpx;}
/* 暂无内容时,显示的图片大小 */ /* 暂无内容时,显示的图片大小 */
.zanw-img{width: 474rpx;height: 273rpx;} .zanw-img{width: 474rpx;height: 273rpx;}
/* 修改资料页面 */ /* 修改资料页面 */
@ -108,7 +111,10 @@
.xial-box{top: 80rpx;left: 0;right: 0;z-index: 4;border: 2rpx solid #E0E0E0;} .xial-box{top: 80rpx;left: 0;right: 0;z-index: 4;border: 2rpx solid #E0E0E0;}
.xial-item-box{max-height: 400rpx;overflow-y: scroll; overflow-x: hidden;} .xial-item-box{max-height: 400rpx;overflow-y: scroll; overflow-x: hidden;}
.doctorx{margin: 0 15rpx;height: 18rpx;border: 2rpx solid #E6E6E6;} .doctorx{margin: 0 15rpx;height: 18rpx;border: 2rpx solid #E6E6E6;}
.doctorImg{width: 100%;height: 285rpx;border-top-left-radius: 10rpx;border-top-right-radius: 10rpx;} .doctorImg{width: 100%;
/* height: 285rpx; */
height: 380rpx;
border-top-left-radius: 10rpx;border-top-right-radius: 10rpx;}
.isTop{background-color: #FFFFFF;box-shadow: 0rpx 3rpx 10rpx rgba(0,0,0,.6);} .isTop{background-color: #FFFFFF;box-shadow: 0rpx 3rpx 10rpx rgba(0,0,0,.6);}
.isTops{position: sticky;left: 0;right: 0;z-index: 2;} .isTops{position: sticky;left: 0;right: 0;z-index: 2;}
.isTopf{position: fixed;left: 0;right: 0;z-index: 2;} .isTopf{position: fixed;left: 0;right: 0;z-index: 2;}

View File

@ -1,7 +1,7 @@
<template> <template>
<view v-if="showAuth"> <view v-if="showAuth">
<!-- 用户信息授权 --> <!-- 用户信息授权 -->
<view @touchmove.stop.prevent="moveHandle" :class="isAnimation==2?'card-box-userinfo':''" class="auth-box"> <view v-if="showUserInfo" @touchmove.stop.prevent="moveHandle" :class="isAnimation==2?'card-box-userinfo':''" class="auth-box">
<view :class="isAnimation==1?'card-box-userinfo':''"> <view :class="isAnimation==1?'card-box-userinfo':''">
<view class="auth-top"> <view class="auth-top">
<image :src="appletImg" mode=""></image> <image :src="appletImg" mode=""></image>
@ -11,7 +11,7 @@
<view>是否选择授权登录</view> <view>是否选择授权登录</view>
</view> </view>
</view> </view>
<view class="auth-center">申请 获取你的昵称头像地区及性别</view> <view class="auth-center">申请 获取你的昵称头像</view>
<view class="auth-bottom"> <view class="auth-bottom">
<view @tap="chooseBtn" :class="noAuthBtn?'isNyin':'noyin'" class="btn btn-no">暂不授权</view> <view @tap="chooseBtn" :class="noAuthBtn?'isNyin':'noyin'" class="btn btn-no">暂不授权</view>
<view :class="yesAuthBtn?'isOyin':'noyin'" class="btn btn-yes"> <view :class="yesAuthBtn?'isOyin':'noyin'" class="btn btn-yes">
@ -63,7 +63,8 @@
isAnimation:0, // isAnimation:0, //
showAuth:false, // showAuth:false, //
currentPage:'', // currentPage:'', //
showMobile:false // showMobile:true ,//
showUserInfo:false
}; };
}, },
destroyed() { destroyed() {
@ -82,6 +83,11 @@
this.loginEv(currentPage.options); this.loginEv(currentPage.options);
this.showAuth = true; this.showAuth = true;
} }
let pagesArr = getCurrentPages();
console.log(pagesArr.length,'获取页面栈大小');
if(pagesArr.length==1) {
uni.setStorageSync('outside',6);
}
}, },
methods:{ methods:{
loginEv(data){ loginEv(data){
@ -168,25 +174,31 @@
// //
this.showMobile = true; this.showMobile = true;
} }
} else this.$toolAll.tools.showToast(res.msg); }
},error => {this.$toolAll.tools.showToast(error.msg)}) })
}, },
getphonenumber(e){// getphonenumber(e){//
if(e.detail.errMsg=="getPhoneNumber:ok"){ wx.login({
this.$requst.post('user/bind-phone',{iv:e.detail.iv,encryptedData:e.detail.encryptedData}).then(res=>{ success:(res)=>{
if(res.code==0){ this.$requst.post('user/login',{code:res.code}).then(result => {
this.$toolAll.tools.showToast('手机号绑定成功','success'); if(e.detail.errMsg=="getPhoneNumber:ok"){
uni.setStorageSync('phone_active',1);// this.$requst.post('user/bind-phone',{openid:result.data.openid, session_key:result.data.session_key, iv:e.detail.iv,encryptedData:e.detail.encryptedData}).then(res=>{
uni.setStorageSync('outside',6);// if(res.code==0){
this.showAuth = false; // this.$toolAll.tools.showToast('手机号绑定成功','success');
uni.reLaunch({ // this.showUserInfo = true;
url:uni.getStorageSync('urlparams') this.showMobile = false;
}) uni.setStorageSync('phone_active',1);//
} else this.$toolAll.tools.showToast(res.msg); uni.setStorageSync('outside',6);//
},error=>{this.$toolAll.tools.showToast(error.msg)}) // this.showAuth = false; //
} else { // uni.reLaunch({ //
// console.log(''); // url:uni.getStorageSync('urlparams')
} // })
}
})
}
})
}
})
}, },
} }
} }

View File

@ -98,7 +98,7 @@
uni.reLaunch({url:'/pages/tabbar/pagehome/pagehome'}) uni.reLaunch({url:'/pages/tabbar/pagehome/pagehome'})
break; break;
case 1: case 1:
existMobile!='' ? uni.reLaunch({url:'/pages/tabbar/cate/cate'}) : this.goLogin(); existMobile!='' ? uni.reLaunch({url:'/pages/tabbar/cate/cate?index=0'}) : this.goLogin();
break; break;
case 2: case 2:
if(existMobile!=''){ if(existMobile!=''){

View File

@ -1,32 +1,16 @@
<template> <template>
<view class="disjb fw"> <view class="disjb fw">
<view @tap="chooseDoctor(index)" class="radius10 dis fc bacf mar-x20" style="width: 48.6%;" v-for="(item,index) in list" :key="index"> <view @tap="chooseDoctor(index)" class="radius10 dis fc bacf mar-x20" style="width: 48.6%;" v-for="(item,index) in list" :key="index">
<image :src="item.imgSrc" class="doctorImg" mode="aspectFill"></image> <image :src="item.imgSrc" class="doctorImg radius10" mode="aspectFill" lazy-load></image>
<view class="col3 mar-s10 mar-x20 mar-z10"> <!-- <view class="col3 mar-s10 mar-x20 mar-z10">
<view class="fon28 bold doctoritem disac">{{item.name}}</view> <view class="fon28 bold doctoritem disac">{{item.name}}</view>
<!-- <view class="fon26 mar-sx10 disac">
<view>从业{{item.cyear}}</view>
<view v-if="item.bmen!=''" class="doctorx"></view>
<view>{{item.bmen}}</view>
</view>
<view class="fon26 mar-x10">职称{{item.zcheng}}</view> -->
<!-- <view class="fon24 disac">
<view class="flexs">擅长</view>
<scroll-view scroll-x style="width: 250rpx;">
<view class="disac">
<view class="flexs" v-for="(itemt,indext) in item.goodAt" :key="indext">
<text class="bold mar-y10 pcol">{{itemt.disease_name}}</text>
</view>
</view>
</scroll-view>
</view> -->
<view class="fon24 disac fw mar-s10" style="width: 166px;"> <view class="fon24 disac fw mar-s10" style="width: 166px;">
<view class="flexs">擅长</view> <view class="flexs">擅长</view>
<view class="flexs" v-for="(itemt,indext) in item.goodAt" :key="indext"> <view class="flexs" v-for="(itemt,indext) in item.goodAt" :key="indext">
<text class="bold mar-y10 pcol">{{itemt.disease_name}}</text> <text class="bold mar-y10 pcol">{{itemt.disease_name}}</text>
</view> </view>
</view> </view>
</view> </view> -->
</view> </view>
</view> </view>
</template> </template>

View File

@ -5,16 +5,15 @@
<view class="list-box"> <view class="list-box">
<view @tap="goDetail(index)" v-if="index%2==0" :class="radiu?'radius15 mar-x10':'radius30 mar-x30'" class="posir colf zou" v-for="(item,index) in list" :key="index"> <view @tap="goDetail(index)" v-if="index%2==0" :class="radiu?'radius15 mar-x10':'radius30 mar-x30'" class="posir colf zou" v-for="(item,index) in list" :key="index">
<!-- 背景图 --> <!-- 背景图 -->
<image :class="radiu?'radius15':'radius30'" class=" width100 list-min" :src="item.main_img" mode="widthFix"></image> <image lazy-load :class="radiu?'radius15':'radius30'" class=" width100 list-min" :src="item.main_img" mode="widthFix"></image>
<view class="posia disjbac fon24" :style="{borderRadius: radiu ? '15rpx 15rpx 0 0' : '30rpx 30rpx 0 0',padding:radiu ? '10rpx' : '17rpx 25rpx' }" style="background-color: rgba(56,117,246,.8);top: 0;left: 0;right: 0;"> <view class="posia fon24 colf" style="right: 10rpx;bottom: 160rpx;z-index: 1;">
<view @tap.stop="chooseLike(index)" class="disac" style="width: 48%;justify-content: flex-start;"> <view @tap.stop="praiseEv(index)" class="disjcac fc">
<image :style="{width: radiu ?'30rpx':'40rpx',height: radiu ?'30rpx':'40rpx'}" :src="['/static/public/cnllection-no.png','/static/public/yconllection.png'][item.is_collected]" mode="aspectFill"></image> <image lazy-load :style="{width: radiu ?'40rpx':'60rpx',height: radiu ?'40rpx':'60rpx'}" :src="['/static/public/list-nlike.png','/static/public/detail-like.png'][item.is_liked]" mode="aspectFill"></image>
<view class="mar-z10">{{['收藏','已收藏'][item.is_collected]}}</view> <view>{{item.likes>100 ? '99+':item.likes}}</view>
</view> </view>
<view style="width: 2rpx;height: 30rpx;background-color: #FFFFFF;"></view> <view @tap.stop="chooseLike(index)" class="disjcac fc mar-s10">
<view @tap.stop="praiseEv(index)" class="disac" style="width: 48%;justify-content: flex-end;"> <image lazy-load :style="{width: radiu ?'40rpx':'60rpx',height: radiu ?'40rpx':'60rpx'}" :src="['/static/public/cnllection-no.png','/static/public/yconllection.png'][item.is_collected]" mode="aspectFill"></image>
<image :style="{width: radiu ?'30rpx':'40rpx',height: radiu ?'30rpx':'40rpx'}" :src="['/static/public/list-nlike.png','/static/public/detail-like.png'][item.is_liked]" mode="aspectFill"></image> <view>{{item.collects>100 ? '99+':item.collects}}</view>
<view class="mar-z10">{{['喜欢',item.likes][item.is_liked]}}</view>
</view> </view>
</view> </view>
<!-- <view class="posia list-like-box" @tap.stop="chooseLike(index)"> --> <!-- <view class="posia list-like-box" @tap.stop="chooseLike(index)"> -->
@ -34,7 +33,7 @@
<view class="disjbac"> <view class="disjbac">
<view class="disac"> <view class="disac">
<!-- 发布者头像 --> <!-- 发布者头像 -->
<image class="list-headimg" :src="item.head_img" mode="aspectFill"></image> <image lazy-load class="list-headimg" :src="item.head_img" mode="aspectFill"></image>
<!-- 发布者昵称 --> <!-- 发布者昵称 -->
<view class="clips1 opc">{{item.name}}</view> <view class="clips1 opc">{{item.name}}</view>
</view> </view>
@ -48,16 +47,15 @@
<view class="list-box"> <view class="list-box">
<view @tap="goDetail(index)" v-if="index%2!=0" :class="radiu?'radius15 mar-x10':'radius30 mar-x30'" class="posir colf zou" v-for="(item,index) in list" :key="index"> <view @tap="goDetail(index)" v-if="index%2!=0" :class="radiu?'radius15 mar-x10':'radius30 mar-x30'" class="posir colf zou" v-for="(item,index) in list" :key="index">
<!-- 背景图 --> <!-- 背景图 -->
<image :class="radiu?'radius15':'radius30'" class="width100 list-min" :src="item.main_img" mode="widthFix"></image> <image lazy-load :class="radiu?'radius15':'radius30'" class="width100 list-min" :src="item.main_img" mode="widthFix"></image>
<view class="posia disjbac fon24" :style="{borderRadius: radiu ? '15rpx 15rpx 0 0' : '30rpx 30rpx 0 0',padding:radiu ? '10rpx' : '17rpx 25rpx'}" style="background-color: rgba(56,117,246,.8);top: 0;left: 0;right: 0;"> <view class="posia fon24 colf" style="right: 10rpx;bottom: 160rpx;z-index: 1;">
<view @tap.stop="chooseLike(index)" class="disac" style="width: 48%;justify-content: flex-start;"> <view @tap.stop="praiseEv(index)" class="disjcac fc">
<image :style="{width: radiu ?'30rpx':'40rpx',height: radiu ?'30rpx':'40rpx'}" :src="['/static/public/cnllection-no.png','/static/public/yconllection.png'][item.is_collected]" mode="aspectFill"></image> <image lazy-load :style="{width: radiu ?'40rpx':'60rpx',height: radiu ?'40rpx':'60rpx'}" :src="['/static/public/list-nlike.png','/static/public/detail-like.png'][item.is_liked]" mode="aspectFill"></image>
<view class="mar-z10">{{['收藏','已收藏'][item.is_collected]}}</view> <view>{{item.likes>100 ? '99+':item.likes}}</view>
</view> </view>
<view style="width: 2rpx;height: 30rpx;background-color: #FFFFFF;"></view> <view @tap.stop="chooseLike(index)" class="disjcac fc mar-s10">
<view @tap.stop="praiseEv(index)" class="disac" style="width: 48%;justify-content: flex-end;"> <image lazy-load :style="{width: radiu ?'40rpx':'60rpx',height: radiu ?'40rpx':'60rpx'}" :src="['/static/public/cnllection-no.png','/static/public/yconllection.png'][item.is_collected]" mode="aspectFill"></image>
<image :style="{width: radiu ?'30rpx':'40rpx',height: radiu ?'30rpx':'40rpx'}" :src="['/static/public/list-nlike.png','/static/public/detail-like.png'][item.is_liked]" mode="aspectFill"></image> <view>{{item.collects>100 ? '99+':item.collects}}</view>
<view class="mar-z10">{{['喜欢',item.likes][item.is_liked]}}</view>
</view> </view>
</view> </view>
<!-- <view class="posia list-like-box" @tap.stop="chooseLike(index)"> --> <!-- <view class="posia list-like-box" @tap.stop="chooseLike(index)"> -->
@ -77,7 +75,7 @@
<view class="disjbac"> <view class="disjbac">
<view class="disac"> <view class="disac">
<!-- 发布者头像 --> <!-- 发布者头像 -->
<image class="list-headimg" :src="item.head_img" mode="aspectFill"></image> <image lazy-load class="list-headimg" :src="item.head_img" mode="aspectFill"></image>
<!-- 发布者昵称 --> <!-- 发布者昵称 -->
<view class="clips1 opc">{{item.name}}</view> <view class="clips1 opc">{{item.name}}</view>
</view> </view>

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="nothing"> <view class="nothing">
<view class="nothing-box"> <view class="nothing-box">
<image :src="imgSrc" mode="aspectFill"></image> <image lazy-load :src="imgSrc" mode="aspectFill"></image>
<view class="nothing-con">{{content}}</view> <view class="nothing-con">{{content}}</view>
</view> </view>
</view> </view>

View File

@ -2,7 +2,7 @@
<view class="pad20 shop_list_box"> <view class="pad20 shop_list_box">
<view style="width: 48.6%;float: left;"> <view style="width: 48.6%;float: left;">
<view v-if="index1%2==0" v-for="(item1,index1) in newList" :key="index1" class="bacf radius15 mar-x20 animated fadeIn" @tap="goPage(item1.id,index1)"> <view v-if="index1%2==0" v-for="(item1,index1) in newList" :key="index1" class="bacf radius15 mar-x20 animated fadeIn" @tap="goPage(item1.id,index1)">
<image :src="item1.imgSrc" mode="aspectFill" style="width: 100%;border-top-left-radius: 15rpx;border-top-right-radius: 15rpx;height: 325rpx;"></image> <image :src="item1.imgSrc" mode="aspectFill" lazy-load style="width: 100%;border-top-left-radius: 15rpx;border-top-right-radius: 15rpx;height: 325rpx;"></image>
<view class="pad-zy20 pad-s10 pad-x30"> <view class="pad-zy20 pad-s10 pad-x30">
<view class="fon28 bold col3 clips2">{{item1.title}}</view> <view class="fon28 bold col3 clips2">{{item1.title}}</view>
<view class="disac fon20 mar-sx20" v-if="!item1.isIntegral"> <view class="disac fon20 mar-sx20" v-if="!item1.isIntegral">
@ -16,7 +16,7 @@
<view v-if="item1.isIntegral" class="mar-s20"> <view v-if="item1.isIntegral" class="mar-s20">
<view>积分:{{item1.integral}}</view> <view>积分:{{item1.integral}}</view>
<view class="disac mar-s20" v-if="item1.grade!=0"> <view class="disac mar-s20" v-if="item1.grade!=0">
<image src="/static/public/huiy.png" style="width: 40rpx;height: 33rpx;" mode=""></image> <image lazy-load src="/static/public/huiy.png" style="width: 40rpx;height: 33rpx;" mode=""></image>
<view class="fon24 col3 mar-z10">{{item1.level_text}}</view> <view class="fon24 col3 mar-z10">{{item1.level_text}}</view>
</view> </view>
</view> </view>
@ -31,7 +31,7 @@
<view v-if="item1.isPing" class="disjbac mar-s20"> <view v-if="item1.isPing" class="disjbac mar-s20">
<view class="fon24 col80">已拼团{{item1.activity_group_num}}</view> <view class="fon24 col80">已拼团{{item1.activity_group_num}}</view>
<view class="disac"> <view class="disac">
<image v-for="(itemm,indexm) in item1.activity_group_cover" :key="indexm" :src="itemm" mode="" style="width: 40rpx;height: 40rpx;border-radius: 100%;margin-left: -20rpx;"></image> <image lazy-load v-for="(itemm,indexm) in item1.activity_group_cover" :key="indexm" :src="itemm" mode="" style="width: 40rpx;height: 40rpx;border-radius: 100%;margin-left: -20rpx;"></image>
</view> </view>
</view> </view>
<view v-if="item1.isXian || item1.isPing || item1.isTuan" class="fon24 col80 mar-s20">{{item1.activity_end_at}}</view> <view v-if="item1.isXian || item1.isPing || item1.isTuan" class="fon24 col80 mar-s20">{{item1.activity_end_at}}</view>
@ -40,7 +40,7 @@
</view> </view>
<view style="width: 48.6%;float: right;"> <view style="width: 48.6%;float: right;">
<view v-if="index1%2!=0" v-for="(item1,index1) in newList" :key="index1" class="bacf radius15 mar-x20 animated fadeIn" @tap="goPage(item1.id,index1)"> <view v-if="index1%2!=0" v-for="(item1,index1) in newList" :key="index1" class="bacf radius15 mar-x20 animated fadeIn" @tap="goPage(item1.id,index1)">
<image :src="item1.imgSrc" mode="aspectFill" style="width: 100%;border-top-left-radius: 15rpx;border-top-right-radius: 15rpx;height: 325rpx;"></image> <image :src="item1.imgSrc" lazy-load mode="aspectFill" style="width: 100%;border-top-left-radius: 15rpx;border-top-right-radius: 15rpx;height: 325rpx;"></image>
<view class="pad-zy20 pad-s10 pad-x30"> <view class="pad-zy20 pad-s10 pad-x30">
<view class="fon28 bold col3 clips2">{{item1.title}}</view> <view class="fon28 bold col3 clips2">{{item1.title}}</view>
<view class="disac fon20 mar-sx20" v-if="!item1.isIntegral"> <view class="disac fon20 mar-sx20" v-if="!item1.isIntegral">
@ -54,7 +54,7 @@
<view v-if="item1.isIntegral" class="mar-s20"> <view v-if="item1.isIntegral" class="mar-s20">
<view>积分:{{item1.integral}}</view> <view>积分:{{item1.integral}}</view>
<view class="disac mar-s20" v-if="item1.grade!=0"> <view class="disac mar-s20" v-if="item1.grade!=0">
<image src="/static/public/huiy.png" style="width: 40rpx;height: 33rpx;" mode=""></image> <image lazy-load src="/static/public/huiy.png" style="width: 40rpx;height: 33rpx;" mode=""></image>
<view class="fon24 col3 mar-z10">{{item1.level_text}}</view> <view class="fon24 col3 mar-z10">{{item1.level_text}}</view>
</view> </view>
</view> </view>
@ -69,7 +69,7 @@
<view v-if="item1.isPing" class="disjbac mar-s20"> <view v-if="item1.isPing" class="disjbac mar-s20">
<view class="fon24 col80">已拼团{{item1.activity_group_num}}</view> <view class="fon24 col80">已拼团{{item1.activity_group_num}}</view>
<view class="disac"> <view class="disac">
<image v-for="(itemm,indexm) in item1.activity_group_cover" :key="indexm" :src="itemm" mode="" style="width: 40rpx;height: 40rpx;border-radius: 100%;margin-left: -20rpx;"></image> <image lazy-load v-for="(itemm,indexm) in item1.activity_group_cover" :key="indexm" :src="itemm" mode="" style="width: 40rpx;height: 40rpx;border-radius: 100%;margin-left: -20rpx;"></image>
</view> </view>
</view> </view>
<view v-if="item1.isXian || item1.isPing || item1.isTuan" class="fon24 col80 mar-s20">{{item1.activity_end_at}}</view> <view v-if="item1.isXian || item1.isPing || item1.isTuan" class="fon24 col80 mar-s20">{{item1.activity_end_at}}</view>

View File

@ -3,7 +3,7 @@
<view :style="{height:statusBarHeight+'px',background:backgroudColor}"></view> <view :style="{height:statusBarHeight+'px',background:backgroudColor}"></view>
<view class="status-nav" :style="{background:backgroudColor}"> <view class="status-nav" :style="{background:backgroudColor}">
<!-- 返回键 --> <!-- 返回键 -->
<view @tap="backEvent" v-if="statusBack" style="height: 33rpx;width: 80rpx;flex-shrink: 0;position: absolute;"> <view @tap="backEvent" v-if="statusBack" style="height: 33rpx;width: 120rpx;flex-shrink: 0;position: absolute;">
<image v-if="backColor==0" class="tab-back" src="/static/public/backBlackm.png"></image> <image v-if="backColor==0" class="tab-back" src="/static/public/backBlackm.png"></image>
<image v-if="backColor==1" class="tab-back" src="/static/public/videoBack.png"></image> <image v-if="backColor==1" class="tab-back" src="/static/public/videoBack.png"></image>
</view> </view>
@ -73,8 +73,8 @@
}, },
methods:{ methods:{
backEvent(){// backEvent(){//
if(uni.getStorageSync('outside')*1==6){ if(getApp().globalData.outside){
this.whereCome = uni.getStorageSync('outside')*1; this.whereCome = 6;
} }
switch (this.whereCome){ switch (this.whereCome){
case 0: case 0:

View File

@ -4,8 +4,8 @@
<swiper :current="bcurrent" @change="changeBanner" :style="{height: newHeight+'px'}" :autoplay="isplay" :circular="true" :interval="3000" :duration="500"> <swiper :current="bcurrent" @change="changeBanner" :style="{height: newHeight+'px'}" :autoplay="isplay" :circular="true" :interval="3000" :duration="500">
<swiper-item v-for="(item,index) in bannerList" :key="index"> <swiper-item v-for="(item,index) in bannerList" :key="index">
<view @tap="chooseImg(index)" class="posir"> <view @tap="chooseImg(index)" class="posir">
<image :style="{borderRadius:newRadius+'px',height:newHeight+'px'}" class="img" :src="item.imgSrc" mode="aspectFill"></image> <image lazy-load :style="{borderRadius:newRadius+'px',height:newHeight+'px'}" class="img" :src="item.imgSrc" mode="aspectFill"></image>
<image @tap.stop="playVideo(index)" v-if="item.isVideo && isVedio" class="posia" style="top: 50%;left: 50%;transform: translate(-50%,-50%);width: 126rpx;height: 126rpx;z-index: 1;" src="/static/public/video.png" mode=""></image> <image lazy-load @tap.stop="playVideo(index)" v-if="item.isVideo && isVedio" class="posia" style="top: 50%;left: 50%;transform: translate(-50%,-50%);width: 126rpx;height: 126rpx;z-index: 1;" src="/static/public/video.png" mode=""></image>
</view> </view>
</swiper-item> </swiper-item>
</swiper> </swiper>

View File

@ -83,7 +83,7 @@ const request = (method, url, options) => {
data: dataObj(url, options), data: dataObj(url, options),
header: headers, header: headers,
success: res => { success: res => {
console.log('反的结果===>',res); console.log(`${url}返的结果===>`,res);
if (res.statusCode == 200) { if (res.statusCode == 200) {
if (res.data.code == 0) { if (res.data.code == 0) {
resolve(res.data) resolve(res.data)

View File

@ -329,6 +329,7 @@ const tools = {
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
let hInfo = wx.getAccountInfoSync(); let hInfo = wx.getAccountInfoSync();
// console.log(hInfo.envVersion);//develop:开发版 trial体验版 release正式版 // console.log(hInfo.envVersion);//develop:开发版 trial体验版 release正式版
// if(hInfo.miniProgram.envVersion == "develop"){
if(hInfo.miniProgram.envVersion == "develop" || hInfo.miniProgram.envVersion == "trial"){ if(hInfo.miniProgram.envVersion == "develop" || hInfo.miniProgram.envVersion == "trial"){
// (开发版,体验版)-配置全局域名 // (开发版,体验版)-配置全局域名
uni.setStorageSync('hostapi','https://hengmei.scdxtc.cn/api/'); uni.setStorageSync('hostapi','https://hengmei.scdxtc.cn/api/');
@ -392,6 +393,12 @@ const tools = {
}) })
}, },
}); });
},
// 禁止小程序使用分享
disableShareEv(){
wx.hideShareMenu({
menus: ['shareAppMessage', 'shareTimeline']
})
} }
} }

View File

@ -3,13 +3,13 @@
{ {
"path" : "pages/tabbar/pagehome/pagehome", "path" : "pages/tabbar/pagehome/pagehome",
"style" :{} "style" :{}
}, },{
{
"path" : "pages/login/login", "path" : "pages/login/login",
"style" :{ "style" :{
"navigationBarTextStyle":"black" // "navigationBarTextStyle":"black" //
} }
},{ },
{
"path" : "pages/tabbar/my/staffDuan", "path" : "pages/tabbar/my/staffDuan",
"style" :{} "style" :{}
},{ },{
@ -275,6 +275,15 @@
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}
,{
"path" : "problemList/problemList",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
} }
] ]
} }

View File

@ -1,24 +1,18 @@
<template> <template>
<view> <view>
<status-nav :titleVal="'登录'" :tabcolor="'rgba(244, 244, 244,1)'" :whereCome="1*1" :statusTitle="true" :backgroudColor="'rgba(244, 244, 244,1)'"></status-nav> <status-nav :titleVal="'登录'" :tabcolor="'rgba(244, 244, 244,1)'" :whereCome="1*1" :statusTitle="true" :backgroudColor="'rgba(244, 244, 244,1)'"></status-nav>
<view class='login-header'> <!-- <view class='login-header'>
<image class="infoImg" :style="{boxShadow: '0px 0px 20px '+ publicColor}" mode="aspectFit" :src="userInfo.avatarUrl || imgSrc"></image> <image class="infoImg" :style="{boxShadow: '0px 0px 20px '+ publicColor}" mode="aspectFit" :src="userInfo.avatarUrl || imgSrc"></image>
<view class="logo-name">恒美植发</view> <view class="logo-name">恒美植发</view>
</view> </view>
<view class="login-box"> <view class="login-box">
<button class='login-btn' :style="{background:publicColor}" type='primary' @click="bindGetUserInfo"></button> <button class='login-btn' :style="{background:publicColor}" type='primary' @click="bindGetUserInfo"></button>
<!--新版登录方式-->
<!-- <button v-if="canIGetUserProfile" class='login-btn' type='primary' @click="bindGetUserInfo"></button> -->
<!--旧版登录方式-->
<!-- <button v-else class='login-btn' type='primary' open-type="getUserInfo" withCredentials="true" lang="zh_CN" @getuserinfo="bindGetUserInfo"></button> -->
<view class="xie-box">登录代表您已同意<text @tap="goXie" class="xieCon">用户服务协议</text></view> <view class="xie-box">登录代表您已同意<text @tap="goXie" class="xieCon">用户服务协议</text></view>
</view> </view>
<!-- 弹框 -->
<view v-if="isShowP" class="disjcac posAll"> <view v-if="isShowP" class="disjcac posAll">
<view class="bacf radius20 width100 tank-box"> <view class="bacf radius20 width100 tank-box">
<view class="tc tank-box-itemone">请授权绑定手机号</view> <view class="tc tank-box-itemone">请授权绑定手机号</view>
<view class="fon28 colf pad-x30 pad-zy30 tc disjb"> <view class="fon28 colf pad-x30 pad-zy30 tc disjb">
<!-- <view @tap="refuse" class="pad-sx10 radius10 tank-btn" style="background-color: rgba(230, 230, 230,1);color: #000000;">暂不绑定</view> -->
<view class="pad-sx10 radius10 tank-btn" style="background-color: rgba(230, 230, 230,1);color: #000000;">暂不绑定</view> <view class="pad-sx10 radius10 tank-btn" style="background-color: rgba(230, 230, 230,1);color: #000000;">暂不绑定</view>
<view :style="{background:publicColor}" class="pad-sx10 radius10 tank-btn posir"> <view :style="{background:publicColor}" class="pad-sx10 radius10 tank-btn posir">
立即绑定 立即绑定
@ -26,6 +20,28 @@
</view> </view>
</view> </view>
</view> </view>
</view> -->
<view class='login-header'>
<image class="infoImg" :style="{boxShadow: '0px 0px 20px '+ publicColor}" mode="aspectFit" :src="userInfo.avatarUrl || imgSrc"></image>
<view class="logo-name">恒美植发</view>
</view>
<view class="login-box">
<view>
<button class='login-btn' open-type="getPhoneNumber" @getphonenumber="getphonenumber" :style="{background:publicColor}" type='primary'>手机号授权登录</button>
</view>
<view class="xie-box">登录代表您已同意<text @tap="goXie" class="xieCon">用户服务协议</text></view>
</view>
<view v-if="isShowP" class="disjcac posAll">
<view class="bacf radius20 width100 tank-box">
<view class="tc tank-box-itemone">微信授权</view>
<view class="fon28 colf pad-x30 pad-zy30 tc disjb">
<view class="pad-sx10 radius10 tank-btn" style="background-color: rgba(230, 230, 230,1);color: #000000;">暂不绑定</view>
<view :style="{background:publicColor}" class="pad-sx10 radius10 tank-btn posir">
立即授权
<button @click="bindGetUserInfo" class="posia syxzo">立即授权</button>
</view>
</view>
</view>
</view> </view>
</view> </view>
</template> </template>
@ -65,18 +81,24 @@
}, },
getphonenumber(e){// getphonenumber(e){//
let ya = this; let ya = this;
if(e.detail.errMsg=="getPhoneNumber:ok"){ wx.login({
this.$requst.post('user/bind-phone',{iv:e.detail.iv,encryptedData:e.detail.encryptedData}).then(res=>{ success:(res)=>{
console.log('手机号信息:',res); this.$requst.post('user/login',{code:res.code}).then(result => {
if(res.code==0){ if(e.detail.errMsg=="getPhoneNumber:ok"){
this.$toolAll.tools.showToast('手机号绑定成功','success'); this.$requst.post('user/bind-phone',{openid: result.data.openid,session_key:result.data.session_key, iv:e.detail.iv,encryptedData:e.detail.encryptedData}).then(res=>{
uni.setStorageSync('bindPhone',false) console.log('手机号信息:',res);
uni.reLaunch({url:'/pages/tabbar/pagehome/pagehome'}) if(res.code==0){
} else this.$toolAll.tools.showToast(res.msg); this.$toolAll.tools.showToast('手机号绑定成功');
},error=>{}) this.isShowP = true;
} else { // uni.reLaunch({url:'/pages/tabbar/pagehome/pagehome'})
// console.log('') } else this.$toolAll.tools.showToast(res.msg);
} },error=>{})
} else {
// console.log('')
}
})
}
})
}, },
goXie(){ goXie(){
uni.navigateTo({ uni.navigateTo({
@ -137,13 +159,13 @@
uni.setStorageSync('phone_active',res.data.phone_active)// uni.setStorageSync('phone_active',res.data.phone_active)//
uni.setStorageSync('invite_code',res.data.invite_code) uni.setStorageSync('invite_code',res.data.invite_code)
uni.hideToast() uni.hideToast()
if(res.data.phone_active!=1){ // if(res.data.phone_active!=1){
this.isShowP = true; // this.isShowP = true;
} else { // } else {
uni.reLaunch({ uni.reLaunch({
url:'/pages/tabbar/pagehome/pagehome' url:'/pages/tabbar/pagehome/pagehome'
}) })
} // }
} }
},error => {}) },error => {})
} }

View File

@ -189,8 +189,10 @@
onReachBottom() {// onReachBottom() {//
if(this.total!=this.dataList.length){ if(this.total!=this.dataList.length){
this.page++ this.page++
if(!this.isHot){ if(this.ccurrent==0){
this.checkCate(this.category_id)// this.checkCate(this.category_id)//
} else {
this.otherEv(this.cateList[this.ccurrent].children[0].id)
} }
} else { } else {
if(this.isZanw) this.$toolAll.tools.showToast('暂无更多列表','none',1000) if(this.isZanw) this.$toolAll.tools.showToast('暂无更多列表','none',1000)
@ -205,6 +207,7 @@
}, },
onLoad(options) { onLoad(options) {
this.optionObj = options; this.optionObj = options;
this.ccurrent = options.index*1;
// tools.js // tools.js
this.$toolAll.tools.plantPoint(7); this.$toolAll.tools.plantPoint(7);
this.checkSwi() this.checkSwi()
@ -285,6 +288,7 @@
// console.log(this.dataList[e].is_collected); // console.log(this.dataList[e].is_collected);
if(this.dataList[e].is_collected==0){ if(this.dataList[e].is_collected==0){
this.dataList[e].is_collected = 1 this.dataList[e].is_collected = 1
this.dataList[e].collects++;
// //
collectionEV({action:'collect',archive_id:this.dataList[e].id}) collectionEV({action:'collect',archive_id:this.dataList[e].id})
} }
@ -302,6 +306,7 @@
comfirmev(e){// comfirmev(e){//
this.dataList[e].is_collected = 0 this.dataList[e].is_collected = 0
this.$toolAll.tools.showToast('正在取消...','loading') this.$toolAll.tools.showToast('正在取消...','loading')
this.dataList[e].collects--;
// //
cancleCollectionEV({action:'collect',archive_id:this.dataList[e].id}) cancleCollectionEV({action:'collect',archive_id:this.dataList[e].id})
}, },
@ -327,7 +332,12 @@
sort:this.cateList[0].sort sort:this.cateList[0].sort
} }
this.cateList.unshift(reObj) this.cateList.unshift(reObj)
this.checkCate(this.category_id)// if(this.ccurrent==0){
this.checkCate(this.category_id)//
} else {
this.chooseCate(this.ccurrent);
this.otherEv(this.cateList[this.ccurrent].children[0].id);//
}
if(this.cateList.length!=0){ if(this.cateList.length!=0){
setTimeout(()=>{ setTimeout(()=>{
const query = wx.createSelectorQuery() const query = wx.createSelectorQuery()
@ -339,7 +349,7 @@
} }
setTimeout(()=>{this.isLoading = true},500) setTimeout(()=>{this.isLoading = true},500)
} }
},error=>{}) })
}, },
checkCate(category_id){// checkCate(category_id){//
this.dataShopList = []; this.dataShopList = [];
@ -438,6 +448,7 @@
},error=>{}) },error=>{})
}, },
chooseCate(index){// chooseCate(index){//
this.page = 1;
this.ccurrent = index this.ccurrent = index
if(this.ccurrent!=0){ if(this.ccurrent!=0){
// this.checkData(this.cateList[index].id); // this.checkData(this.cateList[index].id);

View File

@ -167,6 +167,8 @@
this.$toolAll.tools.plantPoint(6); this.$toolAll.tools.plantPoint(6);
this.checkKT();// this.checkKT();//
this.isAutoPlay = true; this.isAutoPlay = true;
//
getApp().globalData.outside = false;
}, },
onLoad(options) { onLoad(options) {
if(options.q!=undefined){ if(options.q!=undefined){
@ -219,9 +221,6 @@
this.quanImg= uni.getStorageSync('quanImg'); this.quanImg= uni.getStorageSync('quanImg');
this.quanId = uni.getStorageSync('quanId'); this.quanId = uni.getStorageSync('quanId');
},3000) },3000)
setTimeout(()=>{
this.checkUserInfo();
},10000)
}, },
methods: { methods: {
loginEv(option){ loginEv(option){
@ -242,13 +241,6 @@
}, },
}); });
}, },
checkUserInfo(){
this.$requst.post('user/info').then(res=>{
if(res.data.phone_active!=0){
uni.setStorageSync('phone_active',res.data.phone_active);
}
})
},
checkQ(){// checkQ(){//
this.$requst.post('user/home-coupon').then(res=>{ this.$requst.post('user/home-coupon').then(res=>{
if(res.data.has_coupon==1){ if(res.data.has_coupon==1){
@ -476,7 +468,6 @@
if(this.dataList[e].is_liked==0){ if(this.dataList[e].is_liked==0){
this.dataList[e].is_liked = 1; this.dataList[e].is_liked = 1;
this.dataList[e].likes++; this.dataList[e].likes++;
if(this.dataList[e].likes>1000) this.dataList[e].likes = '999+'
// //
collectionEV({action:'like',archive_id:this.dataList[e].id}) collectionEV({action:'like',archive_id:this.dataList[e].id})
} }
@ -485,6 +476,7 @@
// console.log(this.dataList[e].is_collected); // console.log(this.dataList[e].is_collected);
if(this.dataList[e].is_collected==0){ if(this.dataList[e].is_collected==0){
this.dataList[e].is_collected = 1 this.dataList[e].is_collected = 1
this.dataList[e].collects++;
// //
collectionEV({action:'collect',archive_id:this.dataList[e].id}) collectionEV({action:'collect',archive_id:this.dataList[e].id})
} }
@ -492,6 +484,7 @@
comfirmev(e){// comfirmev(e){//
this.dataList[e].is_collected = 0 this.dataList[e].is_collected = 0
this.$toolAll.tools.showToast('正在取消...','loading') this.$toolAll.tools.showToast('正在取消...','loading')
this.dataList[e].collects--;
// //
cancleCollectionEV({action:'collect',archive_id:this.dataList[e].id}) cancleCollectionEV({action:'collect',archive_id:this.dataList[e].id})
}, },

View File

@ -3,7 +3,7 @@
<!-- 状态栏 --> <!-- 状态栏 -->
<status-nav :titleVal="'商城'" :statusBack="false" :statusTitle="true"></status-nav> <status-nav :titleVal="'商城'" :statusBack="false" :statusTitle="true"></status-nav>
<view class="bacf shop-nav-box" :style="{marginTop:statusHNH+'px'}"> <view class="bacf shop-nav-box" :style="{marginTop:statusHNH+'px'}">
<view class="disac pad-zy30 mar-sx20"> <view class="disac pad-zy30 mar-sx20 pad-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="请输入商品名称"/>
<!-- 搜索 --> <!-- 搜索 -->

View File

@ -41,7 +41,7 @@
<view class="bacf radius20 mar-s20 pad-sx27-zy20"> <view class="bacf radius20 mar-s20 pad-sx27-zy20">
<view class="bold">订单信息</view> <view class="bold">订单信息</view>
<view v-for="(item,index) in orderList" :key="index" class="fon26 col3 disjbac pad-sx50 disjbac bbot"> <view v-for="(item,index) in orderList" :key="index" class="fon26 col3 disjbac pad-sx50 disjbac bbot">
<image @tap="goShopDetail(item.id)" :src="item.imgSrc" class="flexs order-image" mode="aspectFill"></image> <image lazy-load @tap="goShopDetail(item.id)" :src="item.imgSrc" class="flexs order-image" mode="aspectFill"></image>
<view class="width100 disjb fw" style="height: 166rpx;"> <view class="width100 disjb fw" style="height: 166rpx;">
<view> <view>
<view @tap="goShopDetail(item.id)" class="fon28 col3 bold clips2">{{item.title}}</view> <view @tap="goShopDetail(item.id)" class="fon28 col3 bold clips2">{{item.title}}</view>
@ -82,10 +82,6 @@
<image src="/static/public/nextM.png" class="xiaDan-next" mode="aspectFill"></image> <image src="/static/public/nextM.png" class="xiaDan-next" mode="aspectFill"></image>
</view> </view>
</view> </view>
<!-- <view class="fon28 col3 disjbac">
<view>立减优惠</view>
<view class="colf8 bold">-{{delPrice}}.00</view>
</view> -->
</view> </view>
<!-- 快递费用 --> <!-- 快递费用 -->
<view v-if="isExpress" class="bacf radius20 mar-s20 disjbac pad-sx27-zy20"> <view v-if="isExpress" class="bacf radius20 mar-s20 disjbac pad-sx27-zy20">
@ -195,7 +191,6 @@
id:0, id:0,
youPrice:0 youPrice:0
},// },//
delPrice:0,//
allPrice:0,// allPrice:0,//
allNum:0,// allNum:0,//
zanAllPrice:0,// zanAllPrice:0,//
@ -223,8 +218,6 @@
ntype:'money',//money coin ntype:'money',//money coin
times:0,// times:0,//
isCurrent:2, isCurrent:2,
vision:false,
isShowP:false,
isfen:false, isfen:false,
checkGrounpId:0, checkGrounpId:0,
expressInfo:{ expressInfo:{
@ -234,47 +227,17 @@
payType:''// wechat=;coin=;hybrid= payType:''// wechat=;coin=;hybrid=
} }
}, },
onShareAppMessage(res) {
var ya = this;
this.$requst.post('user/record',{type:'content',action:'share',id:this.orderList[0].id}).then(res=>{console.log('分享成功:',res);},error=>{})
// tools.js
this.$toolAll.tools.plantPoint(4,this.orderList[0].id);
if(ya.addressInfo.share_img==null) ya.addressInfo.share_img = ya.addressInfo.cover;
var shareObj = {
     title: `${ya.orderList[0].title}`, // (slogan)
     path: `/pagesB/shopDetail/shopDetail?id=${this.orderList[0].id}&category_id=${this.orderList[0].category_id}&share_id=${this.checkGrounpId}&invite_code=${uni.getStorageSync('invite_code')}&shareCate=${this.orderList[0].cateNum}&checkGrounpId=${this.orderList[0].checkGrounpId}`, // /
     imageUrl: ya.orderList[0].imgSrc//PNGJPG imageUrl 使 5:4
  };
  return shareObj;
},
onShow() { onShow() {
//
this.$toolAll.tools.disableShareEv();
this.$toolAll.tools.isLogin(); this.$toolAll.tools.isLogin();
this.checkChoose();// this.checkChoose();//
uni.removeStorageSync('orderInfo'); uni.removeStorageSync('orderInfo');
}, },
onLoad(options) { onLoad(options) {
//
this.zPhone = uni.getStorageSync('phone');
//
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){
this.loginEv(options.invite_code);
} else if(options.source_code!='' && options.source_code!=undefined){
this.loginEv('',options.source_code,options.channel);
}
this.checkexpress();//
this.checkeList(options.isNei);//
this.checkOrderDetail();//
this.isNei = options.isNei;
if(this.isNei==3) {
this.payFS[0].isActive = false;
this.payFS[2].isActive = true;
this.isCurrent = 1;
}
// wechat=;coin=;hybrid= // wechat=;coin=;hybrid=
this.payType = uni.getStorageSync('payType'); this.payType = uni.getStorageSync('payType');
// this.payType = 'hybrid'; // this.payType = 'coin';
if(this.payType=='wechat') { if(this.payType=='wechat') {
this.payFS = [{title:'微信支付',isActive:true,num:0}] this.payFS = [{title:'微信支付',isActive:true,num:0}]
} else if(this.payType=='coin'){ } else if(this.payType=='coin'){
@ -285,38 +248,21 @@
{title:'孔雀币',isActive:false,num:0} {title:'孔雀币',isActive:false,num:0}
] ]
} }
//
this.zPhone = uni.getStorageSync('phone');
//
options.isVirtual == "virtual" ? this.isVirtual = true : this.isVirtual = false
this.checkexpress();//
this.checkeList(options.isNei);//
this.checkOrderDetail();//
this.isNei = options.isNei;
if(this.isNei==3) {
this.payFS[0].isActive = false;
this.payFS[2].isActive = true;
this.isCurrent = 1;
}
}, },
methods: { methods: {
loginEv(invite_code='',source='',channel=''){
uni.login({
provider: 'weixin',
success: (res)=> {
if (res.code) {
var params = {
code:res.code,
invite_code:invite_code,//
source_code:source,
channel:channel
}
this.$requst.post('user/login',params).then(res => {
if(res.data.token!=''){
if(res.data.is_active==0) {
this.haveImg = false;
this.vision = true;
}
}
},error => {})
}
},
});
},
buttonH(e){//
this.haveImg = e
if(e) {
this.vision = false
this.isShowP = true
}
},
checkChoose(){ checkChoose(){
if(uni.getStorageSync('chooseAddress')==''){ if(uni.getStorageSync('chooseAddress')==''){
this.checkAddress();// this.checkAddress();//
@ -339,6 +285,17 @@
if(res.code==0){ if(res.code==0){
if(this.ntype=='money'){ if(this.ntype=='money'){
this.coin_price = res.data.amount/100; this.coin_price = res.data.amount/100;
if(this.payType=='coin'){
//
if(this.zanAllPrice - this.coin_price<=0){//
this.allPrice = 0;
this.zf_kqPrice = this.zanAllPrice*1;
} else {//
this.allPrice = (this.$toolAll.tools.addXiaoShu(this.zanAllPrice - this.coin_price)*1).toFixed(2);
this.zf_kqPrice = this.coin_price;
}
this.isKq = true;
}
} else { } else {
this.zf_kqPrice = res.data.amount; this.zf_kqPrice = res.data.amount;
this.isKq = true; this.isKq = true;
@ -361,12 +318,14 @@
return; return;
} }
} else {// } else {//
if(!this.payFS[0].isActive && !this.payFS[1].isActive){ if(this.payType!='coin'){
this.$toolAll.tools.showToast('请选择支付方式') if(!this.payFS[0].isActive && !this.payFS[1].isActive){
this.allPrice = this.zanAllPrice; this.$toolAll.tools.showToast('请选择支付方式')
this.isKq = false; this.allPrice = this.zanAllPrice;
this.zf_kqPrice = this.payFS[1].num; this.isKq = false;
return; this.zf_kqPrice = this.payFS[1].num;
return;
}
} }
} }
if(this.payFS[index].title=='微信支付'){ if(this.payFS[index].title=='微信支付'){
@ -404,62 +363,78 @@
} }
} }
if(this.payFS[index].title=='孔雀币') { if(this.payFS[index].title=='孔雀币') {
if(this.youQuan.youPrice!=0){ if(this.payType!='coin'){
this.payFS[1].isActive = false; if(this.youQuan.youPrice!=0){
this.$toolAll.tools.showToast('无法使用孔雀币支付'); this.payFS[1].isActive = false;
} else { this.$toolAll.tools.showToast('无法使用孔雀币支付');
if(this.coin_price!=0){
//+
if(this.payFS[0].isActive && this.payFS[1].isActive) {
if(this.zanAllPrice - this.coin_price<=0){//
this.ntype = 'coin';
this.obtainCoin(this.zanAllPrice*100);
this.allPrice = 0;
} else {//
this.allPrice = (this.$toolAll.tools.addXiaoShu(this.zanAllPrice - this.coin_price)*1).toFixed(2);
this.zf_kqPrice = this.payFS[1].num;
}
return;
}
//+
if(this.payFS[0].isActive && !this.payFS[1].isActive) {
this.isKq = false;
this.zf_kqPrice = 0;
// 0
if(this.youQuan.youPrice==0){
this.allPrice = (this.$toolAll.tools.addXiaoShu(this.zanAllPrice)*1).toFixed(2);
} else {
this.allPrice = (this.$toolAll.tools.addXiaoShu(this.zanAllPrice - this.youQuan.youPrice)*1).toFixed(2);
}
return;
}
//+
if(!this.payFS[0].isActive && this.payFS[1].isActive){
if(this.zanAllPrice - this.coin_price<=0){//
this.ntype = 'coin'
this.obtainCoin(this.allPrice*100);
this.allPrice = 0;
}
if(this.zanAllPrice - this.coin_price>0){//
this.$toolAll.tools.showToast('孔雀币不足')
this.allPrice = (this.$toolAll.tools.addXiaoShu(this.zanAllPrice - this.coin_price)*1).toFixed(2);
this.zf_kqPrice = this.payFS[1].num;
}
return;
}
//+
if(!this.payFS[0].isActive && !this.payFS[1].isActive){
this.isKq = false;
this.allPrice = (this.$toolAll.tools.addXiaoShu(this.zanAllPrice)*1).toFixed(2);
return;
}
} else { } else {
this.$toolAll.tools.showToast('暂无可用孔雀币'); if(this.coin_price!=0){
this.payFS[index].isActive = false; //+
if(this.payFS[0].isActive && this.payFS[1].isActive) {
if(this.zanAllPrice - this.coin_price<=0){//
this.ntype = 'coin';
this.obtainCoin(this.zanAllPrice*100);
this.allPrice = 0;
} else {//
this.allPrice = (this.$toolAll.tools.addXiaoShu(this.zanAllPrice - this.coin_price)*1).toFixed(2);
this.zf_kqPrice = this.payFS[1].num;
}
return;
}
//+
if(this.payFS[0].isActive && !this.payFS[1].isActive) {
this.isKq = false;
this.zf_kqPrice = 0;
// 0
if(this.youQuan.youPrice==0){
this.allPrice = (this.$toolAll.tools.addXiaoShu(this.zanAllPrice)*1).toFixed(2);
} else {
this.allPrice = (this.$toolAll.tools.addXiaoShu(this.zanAllPrice - this.youQuan.youPrice)*1).toFixed(2);
}
return;
}
//+
if(!this.payFS[0].isActive && this.payFS[1].isActive){
if(this.zanAllPrice - this.coin_price<=0){//
this.ntype = 'coin'
this.obtainCoin(this.allPrice*100);
this.allPrice = 0;
}
if(this.zanAllPrice - this.coin_price>0){//
this.$toolAll.tools.showToast('孔雀币不足')
this.allPrice = (this.$toolAll.tools.addXiaoShu(this.zanAllPrice - this.coin_price)*1).toFixed(2);
this.zf_kqPrice = this.payFS[1].num;
}
return;
}
//+
if(!this.payFS[0].isActive && !this.payFS[1].isActive){
this.isKq = false;
this.allPrice = (this.$toolAll.tools.addXiaoShu(this.zanAllPrice)*1).toFixed(2);
return;
}
} else {
this.$toolAll.tools.showToast('暂无可用孔雀币');
this.payFS[index].isActive = false;
}
}
} else {
if(!this.payFS[index].isActive) {
this.isKq = false;
this.zf_kqPrice = 0;
this.allPrice = this.zanAllPrice;
} else {
//
if(this.zanAllPrice - this.coin_price<=0){//
this.ntype = 'coin';
this.obtainCoin(this.zanAllPrice*100);
this.allPrice = 0;
} else {//
this.allPrice = (this.$toolAll.tools.addXiaoShu(this.zanAllPrice - this.coin_price)*1).toFixed(2);
this.zf_kqPrice = this.payFS[0].num;
}
} }
} }
}
if(this.payFS[index].title=='积分') {
} }
}, },
@ -520,13 +495,11 @@
this.$toolAll.tools.showToast('请添加微信支付方式'); this.$toolAll.tools.showToast('请添加微信支付方式');
} else if(this.isNei != 3 && !this.payFS[0].isActive && !this.payFS[1].isActive){ } else if(this.isNei != 3 && !this.payFS[0].isActive && !this.payFS[1].isActive){
this.$toolAll.tools.showToast('请选择支付方式') this.$toolAll.tools.showToast('请选择支付方式')
} else if(this.payFS[0].title=='孔雀币'){ } else if(this.payType=='coin' && this.allPrice*1 > this.coin_price*1){
if(this.allPrice*1 > this.coin_price*1){
this.$toolAll.tools.showToast('孔雀币不足');
}
} else if(this.isNei != 3 && !this.payFS[0].isActive && this.allPrice*1 > this.coin_price*1){
this.$toolAll.tools.showToast('孔雀币不足'); this.$toolAll.tools.showToast('孔雀币不足');
} else{ } else if(this.payType=='hybrid' && this.isNei != 3 && !this.payFS[0].isActive && this.allPrice*1 > this.coin_price*1){
this.$toolAll.tools.showToast('孔雀币不足');
} else {
if(this.times==0){ if(this.times==0){
this.times++; this.times++;
if(this.allPrice==0){ if(this.allPrice==0){
@ -666,18 +639,15 @@
} }
}, },
totalEv(){// totalEv(){//
if(this.isNei!=3 && this.isExpress && !this.payFS[1].isActive){// if(this.isNei!=3) {
this.allPrice = this.zanAllPrice - this.youQuan.youPrice - this.delPrice;// = - - + //
} this.allPrice = this.zanAllPrice - this.youQuan.youPrice;
if(this.isNei!=3 && !this.isExpress){// if(this.payType=='coin'){
this.allPrice = this.zanAllPrice - this.youQuan.youPrice - this.delPrice;// = - - this.obtainCoin(this.payFS[0].num);
} }
// this.allPrice = parseInt(this.$toolAll.tools.addXiaoShu(this.allPrice)); } else {
if(this.isNei ==3 && this.isExpress){// //
this.allPrice = this.zanAllPrice - this.youQuan.youPrice - this.delPrice;// = - - + this.allPrice = this.zanAllPrice;
}
if(this.isNei ==3 && !this.isExpress){//
this.allPrice = this.zanAllPrice - this.youQuan.youPrice - this.delPrice;// = - -
} }
this.loading = true; this.loading = true;
}, },
@ -696,9 +666,15 @@
} }
this.$requst.post('order/prepare-info',parmas).then(res=>{ this.$requst.post('order/prepare-info',parmas).then(res=>{
if(res.code==0){ if(res.code==0){
this.payFS[1].num = res.data.account.coin;
this.obtainCoin(res.data.account.coin); this.obtainCoin(res.data.account.coin);
this.payFS[2].num = res.data.account.score; if(this.payType=='coin'){
this.payFS[0].num = res.data.account.coin;
} else if(this.payType=='wechat'){
} else {
this.payFS[1].num = res.data.account.coin;
this.payFS[2].num = res.data.account.score;
}
} else this.$toolAll.tools.showToast(res.msg); } else this.$toolAll.tools.showToast(res.msg);
}) })
}, },
@ -708,7 +684,7 @@
this.allPrice += item.price*item.num; this.allPrice += item.price*item.num;
this.allNum += item.num; this.allNum += item.num;
}) })
if(isJfen==3){ if(isJfen==3){//
this.zanAllPrice = this.allPrice; this.zanAllPrice = this.allPrice;
} else { } else {
this.zanAllPrice = this.$toolAll.tools.addXiaoShu(this.allPrice); this.zanAllPrice = this.$toolAll.tools.addXiaoShu(this.allPrice);
@ -717,17 +693,19 @@
this.totalEv(); this.totalEv();
}, },
quanEv(index){// quanEv(index){//
if(this.payFS[1].isActive){ if(this.payType!='coin' && this.payType!='wechat'){
this.$toolAll.tools.showToast('无法使用优惠券减免'); if(this.payFS[1].isActive){
// this.allPrice = this.$toolAll.tools.addXiaoShu(this.zanAllPrice*1 + this.expressInfo.default_price*1); this.$toolAll.tools.showToast('无法使用优惠券减免');
} else { // this.allPrice = this.$toolAll.tools.addXiaoShu(this.zanAllPrice*1 + this.expressInfo.default_price*1);
if(index==1){ } else {
this.showQuan = true if(index==1){
this.showQuan = true
}
this.youQuan.id = 0;
this.youQuan.youPrice = 0;
this.allPrice = (this.zanAllPrice*1 - this.expressInfo.default_price*1).toFixed(2);
this.checkQuan();//
} }
this.youQuan.id = 0;
this.youQuan.youPrice = 0;
this.allPrice = (this.zanAllPrice*1 - this.expressInfo.default_price*1).toFixed(2);
this.checkQuan();//
} }
}, },
checkQuan(){// checkQuan(){//

View File

@ -49,8 +49,6 @@
<button class="posia-op" open-type="share"></button> <button class="posia-op" open-type="share"></button>
</view> </view>
</view> </view>
<!-- 用户信息授权手机号授权 -->
<auth-userInfo-mobileInfo></auth-userInfo-mobileInfo>
</view> </view>
</template> </template>
@ -87,6 +85,8 @@
} }
}, },
onShow() { onShow() {
//
this.$toolAll.tools.disableShareEv();
this.$toolAll.tools.isLogin(); this.$toolAll.tools.isLogin();
}, },
onLoad(options) { onLoad(options) {

View File

@ -7,7 +7,7 @@
<view class="clips1">{{item.title}}</view> <view class="clips1">{{item.title}}</view>
<view class="mar-s20 fon24 col9">{{item.content}}</view> <view class="mar-s20 fon24 col9">{{item.content}}</view>
<view class="disac fw mar-s20"> <view class="disac fw mar-s20">
<image class="diary-img mar-x10" @tap="preImg(index,index1)" :src="item1" v-for="(item1,index1) in item.imgArr" :key="index1" mode="aspectFill"></image> <image lazy-load class="diary-img mar-x10" @tap="preImg(index,index1)" :src="item1" v-for="(item1,index1) in item.imgArr" :key="index1" mode="aspectFill"></image>
</view> </view>
<view class="disjbac mar-s20"> <view class="disjbac mar-s20">
<view class="fon28 pcol bold">{{item.doctorName}}</view> <view class="fon28 pcol bold">{{item.doctorName}}</view>

View File

@ -86,8 +86,6 @@
</view> </view>
</view> </view>
</view> </view>
<!-- 用户信息授权手机号授权 -->
<auth-userInfo-mobileInfo></auth-userInfo-mobileInfo>
</view> </view>
</template> </template>
@ -118,6 +116,8 @@
} }
}, },
onShow() { onShow() {
//
this.$toolAll.tools.disableShareEv();
this.$toolAll.tools.isLogin() this.$toolAll.tools.isLogin()
}, },
onLoad(options) { onLoad(options) {

View File

@ -18,11 +18,11 @@
</view> </view>
<view @tap="goDetail(item.id)" class="disjbac fon24"> <view @tap="goDetail(item.id)" class="disjbac fon24">
<view class="col3">订单号{{item.orderNum}}</view> <view class="col3">订单号{{item.orderNum}}</view>
<view v-if="item.virtual_check==0" class="bold" :class="(item.orderStatus==1 || item.orderStatus==2 || item.orderStatus==3) ? 'colf8':'col9'">{{['','','','','',''][item.orderStatus]}}</view> <view v-if="item.virtual_check==0" class="bold" :class="(item.orderStatus==1 || item.orderStatus==2 || item.orderStatus==3) ? 'colf8':'col9'">{{item.status_text}}</view>
<view v-if="item.virtual_check==1" class="bold col9"></view> <view v-if="item.virtual_check==1" class="bold col9">{{item.status_text}}</view>
</view> </view>
<view v-for="(itemc,indexc) in item.childrenList" :key="indexc" class="fon26 col3 disjbac pad-sx50 disjbac bbot posir" :style="{paddingBottom:itemc.is_virtual!=0?'70rpx':'50rpx'}"> <view v-for="(itemc,indexc) in item.childrenList" :key="indexc" class="fon26 col3 disjbac pad-sx50 disjbac bbot posir" :style="{paddingBottom:itemc.is_virtual!=0?'70rpx':'50rpx'}">
<image @tap="goDetail(item.id)" :src="itemc.imgSrc" class="flexs" mode="aspectFill"></image> <image lazy-load @tap="goDetail(item.id)" :src="itemc.imgSrc" class="flexs" mode="aspectFill"></image>
<view @tap="goDetail(item.id)" class="width100 disjb fc" style="height: 166rpx;"> <view @tap="goDetail(item.id)" class="width100 disjb fc" style="height: 166rpx;">
<view> <view>
<view class="fon28 col3 bold clips2">{{itemc.title}}</view> <view class="fon28 col3 bold clips2">{{itemc.title}}</view>
@ -107,8 +107,6 @@
</view> </view>
<!-- 底部tab --> <!-- 底部tab -->
<foot-tab :titleList="titleList" :imgList="imgList" :newcurrent='-1'></foot-tab> <foot-tab :titleList="titleList" :imgList="imgList" :newcurrent='-1'></foot-tab>
<!-- 用户信息授权手机号授权 -->
<auth-userInfo-mobileInfo></auth-userInfo-mobileInfo>
</view> </view>
</template> </template>
@ -158,12 +156,7 @@
} }
}, },
onShareAppMessage(res) { onShareAppMessage(res) {
var shareObj = {   return false;
     title: ``, // (slogan)
     path: `/pagesA/myOrder/myOrder?invite_code=${uni.getStorageSync('invite_code')}&index=${this.activeIndex}`, // /
     imageUrl: ''//PNGJPG imageUrl 使 5:4
  };
  return shareObj;
}, },
onReachBottom() { onReachBottom() {
if(this.total!=this.orderList.length){ if(this.total!=this.orderList.length){
@ -178,6 +171,8 @@
this.closeEv(); this.closeEv();
}, },
onShow() { onShow() {
//
this.$toolAll.tools.disableShareEv();
this.$toolAll.tools.isLogin(); this.$toolAll.tools.isLogin();
if(uni.getStorageSync('phone_active')!=0){ if(uni.getStorageSync('phone_active')!=0){
this.checkZT(this.activeIndex); this.checkZT(this.activeIndex);
@ -308,7 +303,7 @@
if(item.status=="paid") { if(item.status=="paid") {
statusNum = 2; statusNum = 2;
} }
// if(item.status=="check") if(item.status=="check") statusNum = 3;
if(item.status=="shipped") statusNum = 4; if(item.status=="shipped") statusNum = 4;
if(item.status=="completed") statusNum = 5; if(item.status=="completed") statusNum = 5;
let nprice = ''; let nprice = '';
@ -347,10 +342,11 @@
is_only:item.is_only,//,1 is_only:item.is_only,//,1
virtual_check:item.virtual_check, virtual_check:item.virtual_check,
open_one:item.open_one, open_one:item.open_one,
is_group_make:item.is_group_make,
open_one_success:item.open_one_success, open_one_success:item.open_one_success,
is_group_make:item.is_group_make,
group_make_end_at:item.group_make_end_at, group_make_end_at:item.group_make_end_at,
group_id:item.group_id group_id:item.group_id,
status_text:item.status_text//
} }
this.zanArr.push(obj); this.zanArr.push(obj);
}) })
@ -399,7 +395,7 @@
if(index==0) { if(index==0) {
this.orderList = this.zanList; this.orderList = this.zanList;
} else if(index==3){ } else if(index==3){
console.log(1234);
} else { } else {
this.orderList = this.zanList.filter(item=>{ this.orderList = this.zanList.filter(item=>{
return item.orderStatus==index; return item.orderStatus==index;

View File

@ -61,8 +61,6 @@
<simple-address ref="simpleAddress" :pickerValueDefault="cityPickerValueDefault" @onConfirm="onConfirm" themeColor="#007AFF"></simple-address> <simple-address ref="simpleAddress" :pickerValueDefault="cityPickerValueDefault" @onConfirm="onConfirm" themeColor="#007AFF"></simple-address>
<!-- 底部客服 --> <!-- 底部客服 -->
<public-customer :nbottom="100"></public-customer> <public-customer :nbottom="100"></public-customer>
<!-- 用户信息授权手机号授权 -->
<auth-userInfo-mobileInfo></auth-userInfo-mobileInfo>
</view> </view>
</template> </template>
@ -115,6 +113,8 @@
} }
}, },
onShow() { onShow() {
//
this.$toolAll.tools.disableShareEv();
this.$toolAll.tools.isLogin() this.$toolAll.tools.isLogin()
}, },
onUnload() { onUnload() {
@ -153,9 +153,6 @@
} }
}, },
methods: { methods: {
cancleEv(){
uni.setStorageSync('bindPhone',false)
},
updataInfo(){// updataInfo(){//
let params = { let params = {
real_name:this.dataList[5].content,// real_name:this.dataList[5].content,//

View File

@ -55,8 +55,6 @@
</view> </view>
</view> </view>
</view> </view>
<!-- 用户信息授权手机号授权 -->
<auth-userInfo-mobileInfo></auth-userInfo-mobileInfo>
</view> </view>
</template> </template>
@ -100,6 +98,8 @@
} }
}, },
onShow() { onShow() {
//
this.$toolAll.tools.disableShareEv();
this.$toolAll.tools.isLogin(); this.$toolAll.tools.isLogin();
}, },
onLoad(options) { onLoad(options) {

View File

@ -16,7 +16,7 @@
<image v-if="item.isActive" src="/static/public/chooseFS.png" class="flexs chooseDX" mode=""></image> <image v-if="item.isActive" src="/static/public/chooseFS.png" class="flexs chooseDX" mode=""></image>
<image v-else src="/static/public/cancle-FS.png" class="flexs chooseDX" mode=""></image> <image v-else src="/static/public/cancle-FS.png" class="flexs chooseDX" mode=""></image>
</view> </view>
<image @tap="chooseItem(index)" :src="item.imgSrc" class="order-image mar-z25 flexs" mode="aspectFill"></image> <image lazy-load @tap="chooseItem(index)" :src="item.imgSrc" class="order-image mar-z25 flexs" mode="aspectFill"></image>
<view class="width100 disjbac fc" style="height: 166rpx;"> <view class="width100 disjbac fc" style="height: 166rpx;">
<view class="width100"> <view class="width100">
<view @tap="goShoptDetail(item.spu_id,item.spu_activity_id)" class="fon28 col3 bold clips2">{{item.title}}</view> <view @tap="goShoptDetail(item.spu_id,item.spu_activity_id)" class="fon28 col3 bold clips2">{{item.title}}</view>
@ -236,7 +236,7 @@
}) })
} }
if(this.cartList.length > 0) { if(this.cartList.length > 0) {
console.log(this.isAllEqual(this.newList)); // console.log(this.isAllEqual(this.newList));
if(this.isAllEqual(this.newList) || this.newList.length==1){ if(this.isAllEqual(this.newList) || this.newList.length==1){
uni.setStorageSync('orderList',this.newList); uni.setStorageSync('orderList',this.newList);
if(this.newList.length==0){ if(this.newList.length==0){

View File

@ -5,10 +5,10 @@
<view v-if="loading" :style="{paddingTop: statusHNH+'px'}" class=" fon28 col3"> <view v-if="loading" :style="{paddingTop: statusHNH+'px'}" class=" fon28 col3">
<view style="position: sticky;z-index: 3;background: #FFFFFF;padding-bottom: 20rpx;" :style="{top:statusHNH+'px'}"> <view style="position: sticky;z-index: 3;background: #FFFFFF;padding-bottom: 20rpx;" :style="{top:statusHNH+'px'}">
<view class="posir"> <view class="posir">
<image class="posia width100" src="/static/public/sign-01.png" mode="widthFix"></image> <image lazy-load class="posia width100" src="/static/public/sign-01.png" mode="widthFix"></image>
<view class="posir tc pad-sx20" style="z-index: 5;"> <view class="posir tc pad-sx20" style="z-index: 5;">
<image v-if="isSigin==0" @tap="siginEv" src="/static/public/sign-02.png" mode="" class="sigin-img"></image> <image lazy-load v-if="isSigin==0" @tap="siginEv" src="/static/public/sign-02.png" mode="" class="sigin-img"></image>
<image v-else src="/static/public/sigined.png" mode="" class="sigin-img"></image> <image lazy-load v-else src="/static/public/sigined.png" mode="" class="sigin-img"></image>
<view class="fon20 colf mar-s20">在连续签到可获得积分</view> <view class="fon20 colf mar-s20">在连续签到可获得积分</view>
<view class="disjcac mar-sx30"> <view class="disjcac mar-sx30">
<image src="/static/public/sign-03.png" class="sigin-success" mode=""></image> <image src="/static/public/sign-03.png" class="sigin-success" mode=""></image>

View File

@ -85,6 +85,7 @@
page:1, page:1,
total:'',// total:'',//
isZanw:true, isZanw:true,
shareImg:''//
} }
}, },
onShareAppMessage(res) { onShareAppMessage(res) {
@ -95,7 +96,7 @@
var shareObj = { var shareObj = {
     title: `${ya.detailObj.title}`, // (slogan)      title: `${ya.detailObj.title}`, // (slogan)
     path: `/pagesB/articleDetail/articleDetail?id=${this.detailId}&share_id=${uni.getStorageSync('userId')}&invite_code=${uni.getStorageSync('invite_code')}`, // /      path: `/pagesB/articleDetail/articleDetail?id=${this.detailId}&share_id=${uni.getStorageSync('userId')}&invite_code=${uni.getStorageSync('invite_code')}`, // /
     imageUrl: ''//PNGJPG imageUrl 使 5:4      imageUrl: this.shareImg//PNGJPG imageUrl 使 5:4
  };   };
  return shareObj;   return shareObj;
}, },
@ -189,7 +190,8 @@
this.$requst.post('archives/detail',{id:id}).then(res=>{ this.$requst.post('archives/detail',{id:id}).then(res=>{
// console.log('',res); // console.log('',res);
if(res.code==0){ if(res.code==0){
this.detailObj = res.data.detail this.detailObj = res.data.detail;
this.shareImg = this.$http + this.detailObj.share_img;
this.content = this.$toolAll.tools.escape2Html(res.data.detail.content) this.content = this.$toolAll.tools.escape2Html(res.data.detail.content)
uni.hideToast() uni.hideToast()
this.isLoading = true this.isLoading = true

View File

@ -23,7 +23,7 @@
</view> </view>
<!-- 列表 --> <!-- 列表 -->
<view v-if="dataList.length!=0" class="dis bacf radius10 pad20 mar-x20 posir" v-for="(item,index) in dataList" :key="index"> <view v-if="dataList.length!=0" class="dis bacf radius10 pad20 mar-x20 posir" v-for="(item,index) in dataList" :key="index">
<image class="mar-y20 flexs" :src="item.imgSrc" style="width: 98rpx;height: 98rpx;" mode="aspectFill"></image> <image lazy-load class="mar-y20 flexs" :src="item.imgSrc" style="width: 98rpx;height: 98rpx;" mode="aspectFill"></image>
<view class="fon24 col3 width100 mar-x40" style="margin-bottom: 120rpx;"> <view class="fon24 col3 width100 mar-x40" style="margin-bottom: 120rpx;">
<view class="bold disjbac"> <view class="bold disjbac">
<view class="fon28 clips1">{{item.name}}</view> <view class="fon28 clips1">{{item.name}}</view>

View File

@ -6,17 +6,11 @@
<!-- 列表 --> <!-- 列表 -->
<view :style="{paddingTop: statusHNH+'px'}" class=" pad-x180"> <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 pad-z30">
<image class="radius10 flexs mar-z30" :src="doctorObj.doctor_extra.headimg || moImg" style="width: 300rpx;height: 300rpx;" mode="aspectFill"></image> <image class="radius10" :src="doctorObj.doctor_extra.headimg || moImg" mode="widthFix" lazy-load></image>
<!-- <image class="radius10 flexs mar-z30" :src="doctorObj.doctor_extra.headimg || moImg" style="width: 300rpx;height: 300rpx;" mode="aspectFill"></image>
<view class="pad-z20 width100"> <view class="pad-z20 width100">
<view class="fon28 bold col3">{{doctorObj.doctor_extra.name}}</view> <view class="fon28 bold col3">{{doctorObj.doctor_extra.name}}</view>
<!-- <view class="disac col80 fon24" style="margin: 6rpx 0;">
<view>{{['未知','男','女'][doctorObj.gender]}}</view>
<view class="doctorx"></view>
<view>从业{{parseFloat(doctorObj.doctor_extra.work_time)}}</view>
<view v-if="doctorObj.doctor_extra.dept_name!='' && doctorObj.doctor_extra.dept_name!=undefined" class="doctorx"></view>
<view>{{doctorObj.doctor_extra.dept_name}}</view>
</view> -->
<view class="col80 fon24"> <view class="col80 fon24">
<view class="flexs">擅长领域</view> <view class="flexs">擅长领域</view>
<view class="dis fw"> <view class="dis fw">
@ -25,7 +19,7 @@
</view> </view>
</view> </view>
</view> </view>
</view> </view> -->
</view> </view>
<view class="mar-z32"> <view class="mar-z32">
<view class="bbot mar-s30"></view> <view class="bbot mar-s30"></view>
@ -46,10 +40,6 @@
<view class="mar-zy32 mar-s20" v-if="dataList.length!=0"><list-pu @chooseLike="chooseLike" @praise="praiseEv" @comfirmev="comfirmev" :list="dataList"></list-pu></view> <view class="mar-zy32 mar-s20" v-if="dataList.length!=0"><list-pu @chooseLike="chooseLike" @praise="praiseEv" @comfirmev="comfirmev" :list="dataList"></list-pu></view>
<view style="margin-top: 8%;" v-if="dataList.length==0"><list-pu :list="dataList" @praise="praiseEv"></list-pu></view> <view style="margin-top: 8%;" v-if="dataList.length==0"><list-pu :list="dataList" @praise="praiseEv"></list-pu></view>
</view> </view>
<view class="pad-zy20 mar-sx30">
<!-- 返回顶部 -->
<!-- <back-top :showTop="showTop" @backTop="backTop"></back-top> -->
</view>
<!-- 底部客服 --> <!-- 底部客服 -->
<!-- <public-customer :nbottom="100"></public-customer> --> <!-- <public-customer :nbottom="100"></public-customer> -->
<!-- 用户信息授权手机号授权 --> <!-- 用户信息授权手机号授权 -->
@ -72,16 +62,8 @@
return { return {
statusHNH:uni.getStorageSync('statusHNH'), statusHNH:uni.getStorageSync('statusHNH'),
publicColor:uni.getStorageSync('publicColor'),// publicColor:uni.getStorageSync('publicColor'),//
cateList:[ cateList:[],
// {title:''}, dataList:[],
// {title:''},
// {title:''},
// {title:''},
],
dataList:[
],
showTop:false,
newCurrent:0, newCurrent:0,
category_id:0,//ID category_id:0,//ID
moImg:'/static/public/logo.png', moImg:'/static/public/logo.png',
@ -105,7 +87,6 @@
return shareObj; return shareObj;
}, },
onPageScroll(e) { onPageScroll(e) {
e.scrollTop > 360 ? this.showTop = true : this.showTop = false
if((this.chuTop - this.statusHNH) - e.scrollTop*1 <= 0) this.isTop = true if((this.chuTop - this.statusHNH) - e.scrollTop*1 <= 0) this.isTop = true
else this.isTop = false else this.isTop = false
}, },
@ -140,7 +121,8 @@
chooseLike(e){// chooseLike(e){//
// console.log(this.dataList[e].is_collected); // console.log(this.dataList[e].is_collected);
if(this.dataList[e].is_collected==0){ if(this.dataList[e].is_collected==0){
this.dataList[e].is_collected = 1 this.dataList[e].is_collected = 1;
this.dataList[e].collects++;
// //
collectionEV({action:'collect',archive_id:this.dataList[e].id}) collectionEV({action:'collect',archive_id:this.dataList[e].id})
} }
@ -157,7 +139,8 @@
}, },
comfirmev(e){// comfirmev(e){//
this.dataList[e].is_collected = 0 this.dataList[e].is_collected = 0
this.$toolAll.tools.showToast('正在取消...','loading') this.$toolAll.tools.showToast('正在取消...','loading');
this.dataList[e].collects--;
// //
cancleCollectionEV({action:'collect',archive_id:this.dataList[e].id}) cancleCollectionEV({action:'collect',archive_id:this.dataList[e].id})
}, },
@ -182,25 +165,23 @@
this.$requst.post('archives/hot',params).then(res=>{ this.$requst.post('archives/hot',params).then(res=>{
if(res.code==0){ if(res.code==0){
// //
if(uni.getStorageSync('cateList')==''){// if(res.data.category.length!=0){
if(res.data.category.length!=0){ res.data.category.forEach((item,index)=>{
res.data.category.forEach((item,index)=>{ let cateObj = {
let cateObj = { id:item.id,//ID
id:item.id,//ID title:item.title,//
title:item.title,// active:item.active,//
active:item.active,// model_id:item.model_id,//ID
model_id:item.model_id,//ID model_name:item.model_name,//
model_name:item.model_name,// sort:item.sort,
sort:item.sort,
} }
if(item.title=='日记分享') {
this.cateList.unshift(cateObj)
} else {
this.cateList.push(cateObj) this.cateList.push(cateObj)
}) }
uni.setStorageSync('cateList',this.cateList) })
}
} else {
//
this.cateList = uni.getStorageSync('cateList')
} }
// //
if(this.page==1) { if(this.page==1) {
@ -240,12 +221,6 @@
this.category_id = this.cateList[index].id this.category_id = this.cateList[index].id
this.checkConList(this.category_id) this.checkConList(this.category_id)
}, },
backTop(){//
uni.pageScrollTo({
scrollTop: 0,
duration: 300
});
},
} }
} }
</script> </script>

View File

@ -31,8 +31,6 @@
<!-- <back-top :showTop="showTop" @backTop="backTop"></back-top> --> <!-- <back-top :showTop="showTop" @backTop="backTop"></back-top> -->
<!-- 底部客服 --> <!-- 底部客服 -->
<public-customer :nbottom="100"></public-customer> <public-customer :nbottom="100"></public-customer>
<!-- 用户信息授权手机号授权 -->
<auth-userInfo-mobileInfo></auth-userInfo-mobileInfo>
</view> </view>
</template> </template>
@ -68,6 +66,8 @@
} }
}, },
onShow() { onShow() {
//
this.$toolAll.tools.disableShareEv();
this.$toolAll.tools.isLogin(); this.$toolAll.tools.isLogin();
}, },
onLoad(options) { onLoad(options) {

View File

@ -27,7 +27,7 @@
<view class="pad20"> <view class="pad20">
<view style="width: 48.6%;float: left;"> <view style="width: 48.6%;float: left;">
<view v-if="index1%2==0" v-for="(item1,index1) in shopList" :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 shopList" :key="index1" class="bacf radius15 mar-x20 animated fadeIn posir" @tap="goPage(item1.id,index1)">
<image :src="item1.imgSrc" mode="aspectFill" style="width: 100%;border-top-left-radius: 15rpx;border-top-right-radius: 15rpx;height: 325rpx;"></image> <image lazy-load :src="item1.imgSrc" mode="aspectFill" style="width: 100%;border-top-left-radius: 15rpx;border-top-right-radius: 15rpx;height: 325rpx;"></image>
<view class="posia list-like-box" @tap.stop="chooseLike(index1)"> <view class="posia list-like-box" @tap.stop="chooseLike(index1)">
<image class="animated" src="/static/public/like.png" mode="aspectFill"></image> <image class="animated" src="/static/public/like.png" mode="aspectFill"></image>
</view> </view>
@ -59,7 +59,7 @@
<view v-if="item1.isPing" class="disjbac mar-s20"> <view v-if="item1.isPing" class="disjbac mar-s20">
<view class="fon24 col80">已拼团{{item1.activity_group_num}}</view> <view class="fon24 col80">已拼团{{item1.activity_group_num}}</view>
<view class="disac"> <view class="disac">
<image v-for="(itemm,indexm) in item1.activity_group_cover" :key="indexm" :src="itemm" mode="" style="width: 40rpx;height: 40rpx;border-radius: 100%;margin-left: -20rpx;"></image> <image lazy-load v-for="(itemm,indexm) in item1.activity_group_cover" :key="indexm" :src="itemm" mode="" style="width: 40rpx;height: 40rpx;border-radius: 100%;margin-left: -20rpx;"></image>
</view> </view>
</view> </view>
<view v-if="item1.isXian || item1.isPing || item1.isTuan" class="fon24 col80 mar-s20">{{item1.activity_end_at}}</view> <view v-if="item1.isXian || item1.isPing || item1.isTuan" class="fon24 col80 mar-s20">{{item1.activity_end_at}}</view>
@ -68,7 +68,7 @@
</view> </view>
<view style="width: 48.6%;float: right;"> <view style="width: 48.6%;float: right;">
<view v-if="index1%2!=0" v-for="(item1,index1) in shopList" :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 shopList" :key="index1" class="bacf radius15 mar-x20 animated fadeIn posir" @tap="goPage(item1.id,index1)">
<image :src="item1.imgSrc" mode="aspectFill" style="width: 100%;border-top-left-radius: 15rpx;border-top-right-radius: 15rpx;height: 325rpx;"></image> <image lazy-load :src="item1.imgSrc" mode="aspectFill" style="width: 100%;border-top-left-radius: 15rpx;border-top-right-radius: 15rpx;height: 325rpx;"></image>
<view class="posia list-like-box" @tap.stop="chooseLike(index1)"> <view class="posia list-like-box" @tap.stop="chooseLike(index1)">
<image class="animated" src="/static/public/like.png" mode="aspectFill"></image> <image class="animated" src="/static/public/like.png" mode="aspectFill"></image>
</view> </view>
@ -100,7 +100,7 @@
<view v-if="item1.isPing" class="disjbac mar-s20"> <view v-if="item1.isPing" class="disjbac mar-s20">
<view class="fon24 col80">已拼团{{item1.activity_group_num}}</view> <view class="fon24 col80">已拼团{{item1.activity_group_num}}</view>
<view class="disac"> <view class="disac">
<image v-for="(itemm,indexm) in item1.activity_group_cover" :key="indexm" :src="itemm" mode="" style="width: 40rpx;height: 40rpx;border-radius: 100%;margin-left: -20rpx;"></image> <image lazy-load v-for="(itemm,indexm) in item1.activity_group_cover" :key="indexm" :src="itemm" mode="" style="width: 40rpx;height: 40rpx;border-radius: 100%;margin-left: -20rpx;"></image>
</view> </view>
</view> </view>
<view v-if="item1.isXian" class="fon24 col80 mar-s20">{{item1.activity_end_at}}</view> <view v-if="item1.isXian" class="fon24 col80 mar-s20">{{item1.activity_end_at}}</view>
@ -122,8 +122,6 @@
<!-- <back-top :showTop="showTop" @backTop="backTop"></back-top> --> <!-- <back-top :showTop="showTop" @backTop="backTop"></back-top> -->
<!-- 底部客服 --> <!-- 底部客服 -->
<public-customer :nbottom="100"></public-customer> <public-customer :nbottom="100"></public-customer>
<!-- 用户信息授权手机号授权 -->
<auth-userInfo-mobileInfo></auth-userInfo-mobileInfo>
</view> </view>
</template> </template>
@ -179,6 +177,8 @@
clearInterval(this.collectionTime); clearInterval(this.collectionTime);
}, },
onShow() { onShow() {
//
this.$toolAll.tools.disableShareEv();
this.$toolAll.tools.isLogin() this.$toolAll.tools.isLogin()
if(uni.getStorageSync('phone_active')!=0){ if(uni.getStorageSync('phone_active')!=0){
this.checkConList(this.category_id); this.checkConList(this.category_id);

View File

@ -39,8 +39,6 @@
<!-- <back-top :showTop="showTop" @backTop="backTop"></back-top> --> <!-- <back-top :showTop="showTop" @backTop="backTop"></back-top> -->
<!-- 底部客服 --> <!-- 底部客服 -->
<public-customer :nbottom="100"></public-customer> <public-customer :nbottom="100"></public-customer>
<!-- 用户信息授权手机号授权 -->
<auth-userInfo-mobileInfo></auth-userInfo-mobileInfo>
</view> </view>
</template> </template>
@ -80,6 +78,8 @@
} }
}, },
onShow() { onShow() {
//
this.$toolAll.tools.disableShareEv();
this.$toolAll.tools.isLogin() this.$toolAll.tools.isLogin()
}, },
onLoad(options) { onLoad(options) {

View File

@ -8,13 +8,13 @@
<view class="bacf radius20 mar-s20 fon28" style="padding: 27rpx 20rpx;"> <view class="bacf radius20 mar-s20 fon28" style="padding: 27rpx 20rpx;">
<view class="disjbac"> <view class="disjbac">
<view class="bold">{{['商城订单','积分商城订单'][orderInfo.is_score]}}</view> <view class="bold">{{['商城订单','积分商城订单'][orderInfo.is_score]}}</view>
<view v-if="orderInfo.status=='waiting'" class="colf8 bold"></view> <view v-if="orderInfo.status=='waiting'" class="colf8 bold">{{orderInfo.status_text}}</view>
<view v-if="orderInfo.status=='paid' && orderInfo.has_virtual!=1" class="colf8 bold"></view> <view v-if="orderInfo.status=='paid' && orderInfo.has_virtual!=1" class="colf8 bold">{{orderInfo.status_text}}</view>
<view v-if="orderInfo.status=='shipped' && orderInfo.has_virtual!=1" class="colf8 bold"></view> <view v-if="orderInfo.status=='shipped' && orderInfo.has_virtual!=1" class="colf8 bold">{{orderInfo.status_text}}</view>
<view v-if="orderInfo.status=='completed'" class="col9 bold"></view> <view v-if="orderInfo.status=='completed'" class="col9 bold">{{orderInfo.status_text}}</view>
<view v-if="orderInfo.virtual_check==0 && orderInfo.has_virtual==1" class="colf8 bold"></view> <view v-if="orderInfo.virtual_check==0 && orderInfo.has_virtual==1" class="colf8 bold">{{orderInfo.status_text}}</view>
<view v-if="orderInfo.virtual_check==1 && orderInfo.has_virtual==1" class="col9 bold"></view> <view v-if="orderInfo.virtual_check==1 && orderInfo.has_virtual==1" class="col9 bold">{{orderInfo.status_text}}</view>
<view v-if="orderInfo.status=='closed'" class="col9 bold"></view> <view v-if="orderInfo.status=='closed'" class="col9 bold">{{orderInfo.status_text}}</view>
</view> </view>
<view class="bold col3 mar-s40 mar-x20">订单号{{orderInfo.coding}}</view> <view class="bold col3 mar-s40 mar-x20">订单号{{orderInfo.coding}}</view>
<view class="fon24 col9" v-if="orderInfo.is_only==0 && orderInfo.open_one==1 && orderInfo.is_group_make==1 && orderInfo.open_one_success==0 ">{{daoTime}}</view> <view class="fon24 col9" v-if="orderInfo.is_only==0 && orderInfo.open_one==1 && orderInfo.is_group_make==1 && orderInfo.open_one_success==0 ">{{daoTime}}</view>
@ -109,8 +109,6 @@
</view> </view>
</block> </block>
</view> </view>
<!-- 用户信息授权手机号授权 -->
<auth-userInfo-mobileInfo></auth-userInfo-mobileInfo>
</view> </view>
</template> </template>
@ -146,20 +144,12 @@
timerDao:null, timerDao:null,
} }
}, },
onShareAppMessage(res) {
var ya = this;
// tools.js
this.$toolAll.tools.plantPoint(6);
var shareObj = {
     title: '成都恒美毛发', // (slogan)
     path: `/pagesB/orderDetail/orderDetail?invite_code=${uni.getStorageSync('invite_code')}` // 默认是当前页面,必须是以‘/开头的完整路径
  };
  return shareObj;
},
onUnload() { onUnload() {
this.closeEv(); this.closeEv();
}, },
onShow() { onShow() {
//
this.$toolAll.tools.disableShareEv();
this.$toolAll.tools.isLogin(); this.$toolAll.tools.isLogin();
}, },
onLoad(options) { onLoad(options) {

View File

@ -8,7 +8,7 @@
<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">
<image @tap="chooseImg(index)" v-for="(item,index) in imgList" :key="index" class="width100 radius20 mar-x20" :src="item" style="width: 48.5%;max-height: 474rpx" mode="aspectFill" lazy-load></image> <image lazy-load @tap="chooseImg(index)" v-for="(item,index) in imgList" :key="index" class="width100 radius20 mar-x20" :src="item" style="width: 48.5%;max-height: 474rpx" mode="aspectFill" lazy-load></image>
</view> </view>
</view> </view>
<view v-else class="disjcac fc" style="margin-top: 50%;"> <view v-else class="disjcac fc" style="margin-top: 50%;">
@ -17,7 +17,7 @@
</view> </view>
<!-- 预览弹框 --> <!-- 预览弹框 -->
<view v-if="showBtn" @tap.stop="showBtn=false" class="posAll disjcac fc pad-zy50" style="z-index: 11;"> <view v-if="showBtn" @tap.stop="showBtn=false" class="posAll disjcac fc pad-zy50" style="z-index: 11;">
<image :src="imgSrc" @tap.stop="showBtn=true" class="radius20" style="width: 80%;" mode="widthFix"></image> <image lazy-load :src="imgSrc" @tap.stop="showBtn=true" class="radius20" style="width: 80%;" mode="widthFix"></image>
<!-- 分享按钮 --> <!-- 分享按钮 -->
<view @tap.stop="shareEv" class="disjcac radius20 posixzy" style="height: 90rpx;margin: 20rpx 80rpx;background-color: #38CE51;line-height: 90rpx;bottom: 40rpx;"> <view @tap.stop="shareEv" class="disjcac radius20 posixzy" style="height: 90rpx;margin: 20rpx 80rpx;background-color: #38CE51;line-height: 90rpx;bottom: 40rpx;">
<view class="disac"> <view class="disac">

View File

@ -29,7 +29,7 @@
<view class="disjbac"> <view class="disjbac">
<view class="disac"> <view class="disac">
<!-- 发布者头像 --> <!-- 发布者头像 -->
<image class="flexs" :src="fabImg || '/static/public/logo.png'" <image lazy-load class="flexs" :src="fabImg || '/static/public/logo.png'"
style="width: 60rpx;height: 60rpx;border-radius: 100%;" mode="aspectFill"></image> style="width: 60rpx;height: 60rpx;border-radius: 100%;" mode="aspectFill"></image>
<view class="mar-z10"> <view class="mar-z10">
<!-- 发布者昵称 --> <!-- 发布者昵称 -->
@ -72,7 +72,7 @@
<!-- 相关推荐列表 --> <!-- 相关推荐列表 -->
<list-pu @chooseLike="chooseLikex" @praise="praisexgEv" @comfirmev="comfirmevx" :list="xgList"></list-pu> <list-pu @chooseLike="chooseLikex" @praise="praisexgEv" @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="gopage(cateCurrent)">{{contentVal}}>></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>
<!-- 推荐医生列表 --> <!-- 推荐医生列表 -->
@ -217,6 +217,12 @@
} }
}, },
methods: { methods: {
//
gopage(index){
uni.navigateTo({
url:`/pagesB/problemList/problemList?title=${this.cateList[index].title}&category_id=${this.cateList[index].id}`
})
},
chooseLike(e) { // chooseLike(e) { //
// console.log(this.dataList[e].is_collected); // console.log(this.dataList[e].is_collected);
if (this.allList[e].is_collected == 0) { if (this.allList[e].is_collected == 0) {

View File

@ -0,0 +1,184 @@
<template>
<view>
<!-- 状态栏 -->
<status-nav :titleVal="titleStr" :statusTitle="true"></status-nav>
<!-- 输入框 -->
<view class="search-input-box bacf" :style="{paddingTop: statusHNH+'px'}">
<view class="disac pad-zy30 mar-s20">
<!-- 输入框 -->
<input @confirm="searchEv" class="width100 fon34 radius10 problem-input" type="text" v-model="searchVal" placeholder="请输入内容..."/>
<!-- 搜索 -->
<view @tap="searchEv" class="flexs mar-z30 radius10 pad-zy40 fon34 colf" style="height: 80rpx;line-height: 80rpx;" :style="{background:publicColor}">搜索</view>
</view>
</view>
<view class="pad-zy20 mar-s20">
<!-- 列表 -->
<view v-if="dataList.length!=0">
<list-pu @chooseLike="chooseLike" @praise="praiseEv" @comfirmev="comfirmevl" :list="dataList"></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>
<!-- 弹框 -->
<pu-po :isShowT="isShowT" @comfirmev="comfirmev" @cancleev="cancleev"></pu-po>
<!-- 返回顶部 -->
<!-- <back-top :showTop="showTop" @backTop="backTop"></back-top> -->
<!-- 用户信息授权手机号授权 -->
<auth-userInfo-mobileInfo></auth-userInfo-mobileInfo>
</view>
</template>
<script>
import cateTu from '@/components/cate-items/cate-tu.vue';
import {collectionEV,cancleCollectionEV} from '@/jsFile/publicAPI.js';
export default {
components:{
cateTu
},
data() {
return {
titleStr:'',//
statusHNH:uni.getStorageSync('electric_nav_height'),
searchVal:'',//
publicColor:uni.getStorageSync('publicColor'),//
isShowT:false,//
cateList:[//
],
dataList:[//
],
showTop:false,//
newCurrent:0,
page:1,
size:10,
total:'',//
isZanw:true,
category_id:'',//ID
}
},
onReachBottom() {//
if(this.total!=this.dataList.length){
this.page++
this.searchEv()//
} else {
if(this.isZanw) this.$toolAll.tools.showToast('暂无更多列表','none',1000)
this.isZanw = false
}
},
onShareAppMessage() {
return {
title:this.titleStr,
path:`/pagesB/problemList/problemList?category_id=${this.category_id}&title=${this.titleStr}`
}
},
onLoad(options) {
this.category_id = options.category_id;//id
this.titleStr = options.title;//
if(uni.getStorageSync('phone_active')!=0){
this.searchEv()
}
},
onShow() {
this.$toolAll.tools.isLogin()
},
methods: {
chooseLike(e){//
if(this.dataList[e].is_collected==0){
this.dataList[e].is_collected = 1
//
collectionEV({action:'collect',archive_id:this.dataList[e].id})
}
},
praiseEv(e){ //
if(this.dataList[e].is_liked==0){
this.dataList[e].is_liked = 1;
this.dataList[e].likes++;
if(this.dataList[e].likes>1000) this.dataList[e].likes = '999+'
//
collectionEV({action:'like',archive_id:this.dataList[e].id})
}
},
comfirmevl(e){//
this.dataList[e].is_collected = 0
this.$toolAll.tools.showToast('正在取消...','loading')
//
cancleCollectionEV({action:'collect',archive_id:this.dataList[e].id})
},
searchEv(){//
this.$toolAll.tools.showToast('搜索中...')
this.$requst.post('archives/category',{page:this.page,size:this.size,category_id:this.category_id,keyword:this.searchVal}).then(res=>{
// console.log('',res);
if(res.code==0){
uni.hideToast()
if(uni.getStorageSync('cateList')==''){//
if(res.data.category.length!=0){
res.data.category.forEach((item,index)=>{
let cateObj = {
id:item.id,//ID
title:item.title,//
active:item.active,//
model_id:item.model_id,//ID
model_name:item.model_name,//
sort:item.sort
}
this.cateList.push(cateObj)
})
uni.setStorageSync('cateList',this.cateList)
}
} else {
//
this.cateList = uni.getStorageSync('cateList')
}
//
if(this.page==1) this.dataList = []
this.total = res.data.list.total
if(res.data.list.list.length!=0){
res.data.list.list.forEach(item=>{
let fabImg = '';
if(item.published_headimgurl!='' && item.published_headimgurl!=null) fabImg = this.$http + item.published_headimgurl;
let tObj = {
category_id:item.category_id,//ID
id:item.id,
is_collected:item.is_collected,//
collects:item.collects,//
views:item.views,//
main_img:this.$http + item.cover,//
video:this.$http + item.video,//
title:item.title,//
content:item.subtitle,//
head_img: fabImg || '/static/public/logo.png',//
name:item.published_by || '恒美植发',//
isVideo:item.video.includes(".mp4"),//
likes:item.likes,//
is_liked:item.is_liked//
}
this.dataList.push(tObj);
})
}
let obj = {
content:this.searchVal
}
}
})
},
cancleev(){//
this.isShowT = false
},
chooseTwo(index){//
// console.log('',index);
this.isZanw = true
this.page = 1
this.newCurrent = index
this.category_id = this.cateList[index].id
this.searchEv()
},
}
}
</script>
<style>
</style>

View File

@ -136,7 +136,8 @@
chooseLike(e){// chooseLike(e){//
// console.log(this.dataList[e].is_collected); // console.log(this.dataList[e].is_collected);
if(this.dataList[e].is_collected==0){ if(this.dataList[e].is_collected==0){
this.dataList[e].is_collected = 1 this.dataList[e].is_collected = 1;
this.dataList[e].collects++;
// //
collectionEV({action:'collect',archive_id:this.dataList[e].id}) collectionEV({action:'collect',archive_id:this.dataList[e].id})
} }
@ -153,7 +154,8 @@
}, },
comfirmevl(e){// comfirmevl(e){//
this.dataList[e].is_collected = 0 this.dataList[e].is_collected = 0
this.$toolAll.tools.showToast('正在取消...','loading') this.$toolAll.tools.showToast('正在取消...','loading');
this.dataList[e].collects--;
// //
cancleCollectionEV({action:'collect',archive_id:this.dataList[e].id}) cancleCollectionEV({action:'collect',archive_id:this.dataList[e].id})
}, },

View File

@ -64,8 +64,8 @@
</view> </view>
</view> </view>
<view class="pad-x30 pad-s10 borbot" v-if="isNei==0 || isNei==1 ||isNei==2"> <view class="pad-x30 pad-s10 borbot" v-if="isNei==0 || isNei==1 ||isNei==2">
<view class="fon36 colf bold pbackc tc pad-sx20 radius45" v-if="daoTime!='活动已结束'">{{daoTime}}</view> <view class="fon36 colf bold pbackc tc pad-sx20 radius45" v-if="daoTime!='活动已结束' && detailObj.is_close==0">{{daoTime}}</view>
<view class="fon36 colf bold pbackc tc pad-sx20 radius45" v-else>{{daoTime}}</view> <view class="fon36 colf bold pbackc tc pad-sx20 radius45" v-else>{{[daoTime,''][detailObj.is_close]}}</view>
</view> </view>
<!-- 规格 --> <!-- 规格 -->
<view class="dis tc mar-s20 fon28"> <view class="dis tc mar-s20 fon28">
@ -177,8 +177,8 @@
<image @tap="backHome" class="posia backH" src="/static/public/back-home-02.png" mode="aspectFit"></image> <image @tap="backHome" class="posia backH" src="/static/public/back-home-02.png" mode="aspectFit"></image>
</view> </view>
<view class="disac fon26 colf"> <view class="disac fon26 colf">
<view @tap="showTK = true" class="disjcac lianShare addCart-btn"><span v-if="isNei!=1"></span><span v-else></span></view> <view @tap="tuneUp" class="disjcac lianShare addCart-btn"><span v-if="isNei!=1"></span><span v-else></span></view>
<view @tap="showTK = true" class="disjcac lianShare mai-btn"><span v-if="isNei!=1"></span><span v-else></span></view> <view @tap="tuneUp" class="disjcac lianShare mai-btn"><span v-if="isNei!=1"></span><span v-else></span></view>
</view> </view>
</view> </view>
<!-- 购物车 --> <!-- 购物车 -->
@ -404,6 +404,14 @@
} }
}, },
methods: { methods: {
//
tuneUp(){
if(this.detailObj.is_close==0){
this.showTK = true;
} else {
this.$toolAll.tools.showToast('该商品活动已结束')
}
},
// //
inputNum(e){ inputNum(e){
clearTimeout(this.timeout); clearTimeout(this.timeout);
@ -589,7 +597,8 @@
chooseLike(e) { // chooseLike(e) { //
// console.log(this.dataList[e].is_collected); // console.log(this.dataList[e].is_collected);
if (this.allList[e].is_collected == 0) { if (this.allList[e].is_collected == 0) {
this.allList[e].is_collected = 1 this.allList[e].is_collected = 1;
this.dataList[e].collects++;
// //
collectionEV({ collectionEV({
action: 'collect', action: 'collect',
@ -599,7 +608,8 @@
}, },
comfirmev(e) { // comfirmev(e) { //
this.allList[e].is_collected = 0; this.allList[e].is_collected = 0;
this.$toolAll.tools.showToast('正在取消...', 'loading') this.$toolAll.tools.showToast('正在取消...', 'loading');
this.dataList[e].collects--;
// //
cancleCollectionEV({ cancleCollectionEV({
action: 'collect', action: 'collect',

View File

@ -34,6 +34,8 @@
this.videoContext = uni.createVideoContext('myVideo', this) this.videoContext = uni.createVideoContext('myVideo', this)
}, },
onLoad(options) { onLoad(options) {
// 禁用小程序分享
this.$toolAll.tools.disableShareEv();
this.videoSrc = options.src this.videoSrc = options.src
this.posterSrc = options.posterSrc this.posterSrc = options.posterSrc
}, },

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