main
liudan 2 years ago
parent 8e6de53d44
commit ce48355d6b
  1. 15
      pages/login.vue
  2. 2
      pages/service.vue
  3. 2
      store/modules/order.js

@ -110,8 +110,14 @@
} = this } = this
console.log('autograph,appLogin', autograph, appLogin) console.log('autograph,appLogin', autograph, appLogin)
if (autograph && appLogin) { if (autograph && appLogin) {
if(appLogin.unionId){
this.toLogin(appLogin) this.toLogin(appLogin)
return return
}else{
this.smsLogin(appLogin)
return
}
} }
let data = await this.$api.base.getConfig() let data = await this.$api.base.getConfig()
this.base_info = data this.base_info = data
@ -176,11 +182,16 @@
} }
}, },
async smsLogin(){ async smsLogin(item){
let userInfo = await this.$api.base.smsLogin({ let userInfo;
if(!item){
userInfo = await this.$api.base.smsLogin({
phone:this.phone, phone:this.phone,
code:this.code code:this.code
}) })
}else{
userInfo = item;
}
console.log(userInfo,"---") console.log(userInfo,"---")
this.$util.showLoading({ this.$util.showLoading({
title: "登录中..." title: "登录中..."

@ -47,7 +47,7 @@
<text>推荐技师</text> <text>推荐技师</text>
</view> </view>
<swiper class="swiper" circular :indicator-dots="false" :autoplay="true" :interval="2000" <swiper class="swiper" circular :indicator-dots="false" :autoplay="true" :interval="2000"
:duration="1000" previous-margin="112px" next-margin="112px"> :duration="1000" previous-margin="108px" next-margin="108px">
<swiper-item class="recommendItem" v-for="(item, index) in picList" :key="index"> <swiper-item class="recommendItem" v-for="(item, index) in picList" :key="index">
<image :src="item.work_img"></image> <image :src="item.work_img"></image>

@ -29,7 +29,7 @@ export default {
id: 8 id: 8
},{ },{
title: '已取消', title: '已取消',
id: 9 id: -1
}], }],
param: { param: {
page: 1, page: 1,

Loading…
Cancel
Save