Compare commits

..

No commits in common. "547eb371cf674023626a24e2961c4014962f817a" and "011064a9f89093103595aa0dd509b7b9c624823d" have entirely different histories.

25 changed files with 64 additions and 125 deletions

View File

@ -306,50 +306,9 @@ swiper-item view:last-child .duan-xian{border-bottom: none;}
.diary-item-img:nth-child(3n){
margin-right: 0;
}
@media screen and (height:568px){
.blue-img{height: 471rpx;}
}
@media screen and (height:640px){
.blue-img{height: 450rpx;}
}
@media screen and (height:667px){
.blue-img{height: 450rpx;}
}
@media screen and (height:731px){
.blue-img{height: 426rpx;}
}
@media screen and (height:736px){
.blue-img{height: 430rpx;}
}
@media screen and (width:375px) and (height:736px){
.blue-img{height: 444rpx;}
}
@media screen and (height:800px){
.blue-img{height: 406rpx;}
}
@media screen and (height:812px){
.blue-img{height: 500rpx;}
}
@media screen and (height:823px){
.blue-img{height: 440rpx;}
}
@media screen and (height:844px){
.blue-img{height: 496rpx;}
}
@media screen and (height:896px){
.blue-img{height: 478rpx;}
}
@media screen and (min-height:926px){
.blue-img{height: 476rpx;}
}
/* @media screen and (height:812px){
.blue-img{height: 500rpx;}
}
@media screen and (height:844px){
.blue-img{height: 496rpx;}
}
@ -358,7 +317,7 @@ swiper-item view:last-child .duan-xian{border-bottom: none;}
}
@media screen and (min-height:926px){
.blue-img{height: 490rpx;}
} */
}

View File

@ -60,11 +60,8 @@
let pages = getCurrentPages(); //
let currentPage = pages[pages.length - 1]; //
// console.log(currentPage.route,'');
// console.log(currentPage.$page.fullPath,'');
uni.setStorageSync('url',`/${currentPage.route}`);
uni.setStorageSync('paramsUrl',currentPage.$page.fullPath);
console.log(uni.getStorageSync('paramsUrl'),66);
// console.log(uni.getStorageSync('url'),64);
uni.setStorageSync('url',currentPage.route);
console.log(uni.getStorageSync('url'),64);
},
data() {
return {

View File

@ -454,12 +454,11 @@
this.category_id = this.cateListTwo[0].id
this.otherEv(this.cateList[index].children[0].id);
} else {
this.cateListTwo = [];
this.cateListTwo = [];
this.dataList = [];
}
} else {
this.category_id = '';
this.checkCate('');
this.checkCate(this.cateListTwo[0].id);
}
// console.log(':',index);
},

View File

@ -239,7 +239,9 @@
this.$toolAll.tools.isLogin();
uni.removeStorageSync('shareAll')//
if(uni.getStorageSync('phone_active')!=0){
this.checkInfo();
setTimeout(()=>{
this.checkInfo();
},6000)
this.$requst.post('index/mini-program-setting').then(res=>{
// log('',res);
if(res.code==0){

View File

@ -169,6 +169,12 @@
this.isAutoPlay = true;
},
onLoad(options) {
if(uni.getStorageSync('token')!='' ) {
this.checkUserInfo();
}
if(uni.getStorageSync('token')=='' || uni.getStorageSync('phone_active')=='' || uni.getStorageSync('phone_active')==0){
this.loginEv(options);
}
if(options.q!=undefined){
// unescape("http%3A//www.baidu.com%3Fname%3Dzhang@xiao@jie%26order%3D1")
// decodeURIComponent("http%3A%2F%2Fwww.baidu.com%3Fname%3Dzhang%40xiao%40jie%26order%3D1")
@ -193,20 +199,14 @@
source_code:newsource_code
}
// console.log(params);
this.$requst.post('user/login',params).then(res => {
uni.setStorageSync('phone_active',res.data.phone_active);
uni.setStorageSync('invite_code',res.data.invite_code);
uni.setStorageSync('token',res.data.token);
},error => {})
this.$requst.post('user/login',params).then(res => {console.log('调用成功');},error => {})
},
});
} else if(uni.getStorageSync('token')=='' || uni.getStorageSync('phone_active')==0){
this.loginEv(options);
}
const query = wx.createSelectorQuery()
query.select('.statusHNH').boundingClientRect((rect) => {
// log('+',rect.height);
uni.setStorageSync('statusHNH',rect.height)
// log('+',rect.height);
uni.setStorageSync('statusHNH',rect.height)
this.statusHNH = rect.height
}).exec()
this.checkBCate();//
@ -219,9 +219,6 @@
this.quanImg= uni.getStorageSync('quanImg');
this.quanId = uni.getStorageSync('quanId');
},3000)
setTimeout(()=>{
this.checkUserInfo();
},10000)
},
methods: {
loginEv(option){
@ -234,6 +231,7 @@
source_code:option.source_code || '',
channel:option.channel || ''
}
console.log(params,234);
this.$requst.post('user/login',params).then(res => {
uni.setStorageSync('phone_active',res.data.phone_active);
uni.setStorageSync('invite_code',res.data.invite_code);
@ -502,14 +500,7 @@
url:'/pages/tabbar/cate/cate'
})
} else {
let existfx = this.gonggList[index].url.indexOf('/');
let newUrl = '';
if(existfx!=0) {
newUrl = `/${this.gonggList[index].url}`;
} else {
newUrl = this.gonggList[index].url;
}
uni.navigateTo({url:newUrl})
uni.navigateTo({url:this.gonggList[index].url})
}
}
},

View File

@ -230,8 +230,7 @@
expressInfo:{
default_price:0
},
isVirtual:false,//
payType:''// wechat=;coin=;hybrid=
isVirtual:false//
}
},
onShareAppMessage(res) {
@ -272,19 +271,6 @@
this.payFS[2].isActive = true;
this.isCurrent = 1;
}
// wechat=;coin=;hybrid=
this.payType = uni.getStorageSync('payType');
// this.payType = 'hybrid';
if(this.payType=='wechat') {
this.payFS = [{title:'微信支付',isActive:true,num:0}]
} else if(this.payType=='coin'){
this.payFS = [{title:'孔雀币',isActive:true,num:0}]
} else if(this.payType=='hybrid'){
this.payFS = [
{title:'微信支付',isActive:true,num:0},
{title:'孔雀币',isActive:false,num:0}
]
}
},
methods: {
loginEv(invite_code='',source='',channel=''){
@ -520,13 +506,9 @@
this.$toolAll.tools.showToast('请添加微信支付方式');
} else if(this.isNei != 3 && !this.payFS[0].isActive && !this.payFS[1].isActive){
this.$toolAll.tools.showToast('请选择支付方式')
} else if(this.payFS[0].title=='孔雀币'){
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('孔雀币不足');
} else{
} else {
if(this.times==0){
this.times++;
if(this.allPrice==0){
@ -579,11 +561,9 @@
},
fail:()=> {
this.$toolAll.tools.showToast('取消支付');
setTimeout(()=>{
uni.navigateTo({
url:'/pagesA/myOrder/myOrder'
})
},2000)
uni.navigateTo({
url:'/pagesA/myOrder/myOrder'
})
}
});
} else {

View File

@ -84,7 +84,6 @@
onShow() {
this.$toolAll.tools.isLogin();
uni.removeStorageSync('orderList');
uni.removeStorageSync('payType');
},
onLoad(options) {
options.isScore=='score' ? this.isScore = 'score' : ''
@ -242,7 +241,6 @@
if(this.newList.length==0){
this.$toolAll.tools.showToast('请选择要支付的商品');
} else {
uni.setStorageSync('payType',0);
uni.navigateTo({
url:`/pagesA/getReadyDan/getReadyDan?isNei=${isNei}`
})

View File

@ -149,7 +149,15 @@
</view>
<!-- 医生 -->
<view v-if="doctorList.length!=0" class="pad20 bacf mar-zy20 radius20 mar-s20">
<view class="fon28 col3 bold mar-x20">医生</view>
<view class="fon28 col3 bold">医生</view>
<!-- <view @tap="goDoctor(item.id)" v-for="(item,index) in doctorList" :key="index" class="disjbac posir pad-sx20">
<image :src="item.imgSrc" mode="aspectFill" class="flexs big-img"></image>
<view class="disjbac width100 mar-z20 pad-sx20">
<view class="fon28 col3 width50">{{item.name}}</view>
<view class="fon24 width50 col7D">擅长{{item.goodAt}}</view>
</view>
<view v-if="(doctorList.length-1)!=index" class="duan-xian"></view>
</view> -->
<!-- 推荐医生列表 -->
<list-doctor v-if="doctorList.length!=0" :list="doctorList"></list-doctor>
<view v-if="doctorList.length==0" class="disjcac fc" style="margin-top: 10%;">
@ -192,7 +200,7 @@
<view @tap="lianK" class="shopKf">
<view class="posir">
<image src="/static/public/kf-logo.png" mode="aspectFill" style="width: 142rpx;height: 142rpx;"></image>
<button open-type="contact" class="posia-op"></button>
<button v-if="haveImg" open-type="contact" class="posia-op"></button>
</view>
</view>
<!-- 立即购买加入购物车弹框 -->
@ -278,6 +286,7 @@
publicColor:uni.getStorageSync('publicColor') || '#3875F6',//
cateCurrent:0,
swiperHeight:uni.getSystemInfoSync().windowWidth,
haveImg:true,
cateList:[{
id:1,
title:'商品详情',
@ -371,7 +380,6 @@
},
onShow() {
uni.removeStorageSync('chooseAddress');
uni.removeStorageSync('payType');
this.isAutoPlay = true;
},
onHide() {
@ -518,8 +526,6 @@
}
let newList = [params];
uni.setStorageSync('orderList',newList);
//
uni.setStorageSync('payType',this.detailObj.pay_type);
uni.navigateTo({
url:`/pagesA/getReadyDan/getReadyDan?isNei=${this.isNei}&isVirtual=${this.detailObj.spu_type}`
})
@ -580,11 +586,14 @@
this.skuDetail = this.allRes.sku[index];
},
lianK(){//
this.$requst.post('user/rand-bind-service').then(res=>{})
this.$toolAll.tools.closeTimer()//
this.$requst.post('user/record',{type:'other',action:'ask',id:0}).then(res=>{},error=>{})
// tools.js 1314
this.$toolAll.tools.plantPoint(this.detailObj.is_activity==0 ? 13:14);
if(this.haveImg == false) {
} else {
this.$requst.post('user/rand-bind-service').then(res=>{})
this.$toolAll.tools.closeTimer()//
this.$requst.post('user/record',{type:'other',action:'ask',id:0}).then(res=>{},error=>{})
// tools.js 1314
this.$toolAll.tools.plantPoint(this.detailObj.is_activity==0 ? 13:14);
}
},
chooseLike(e) { //
// console.log(this.dataList[e].is_collected);
@ -611,6 +620,10 @@
url:'/pages/tabbar/pagehome/pagehome'
})
},
shareEv(){
if(this.haveImg == false) {
}
},
checkDetail(newId,is_activity){
console.log(newId,is_activity,'参数');
uni.request({

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