LGX 4 months ago
parent 9e53aa6b3d
commit 60bc78fe22
  1. 2
      api/request.js
  2. 16
      pages/face/face.vue
  3. 28
      pages/index/index.vue
  4. 3
      pages/login/login.vue
  5. 26
      pages/mendainlist/mendainlist.vue
  6. 25
      pages/user/index.vue

@ -1,5 +1,5 @@
import Vue from 'vue'
let baseUrl = 'https://bodybuilding.njrenzhou.cn/';
let baseUrl = 'https://bodybuilding.bsdong.cn/';
//https://console-docs.apipost.cn/preview/077df998e6b8e954/a3d90a650bdbe292
Vue.prototype.$baseUrl = baseUrl;

@ -15,7 +15,7 @@
</view>
</view>
<view class="fot">
<view class="tg">跳过</view>
<view class="tg" @click="previous">跳过</view>
<view class="ps" @click="pais">拍摄</view>
</view>
@ -52,7 +52,7 @@
// this.$refs.popup.close('center')
// var tjlist=[...this.yrenlianlist,...this.jqrllist]
uni.uploadFile({
url: 'https://bodybuilding.njrenzhou.cn/api/uploadFile',
url: 'https://bodybuilding.bsdong.cn/api/uploadFile',
filePath:this.path,
name: 'file',
formData: {
@ -62,7 +62,14 @@
console.log('tjlist',JSON.parse(res.data));
var data=JSON.parse(res.data)
this.$api.memberFace({face_id:data.data.file_id}).then(res=>{
this.$refs.popup.close('center')
if(res.code=='200'){
uni.showToast({
icon: "none",
title: '上传成功',
duration: 3000
});
this.$refs.popup.close('center')
}
})
}
});
@ -79,6 +86,9 @@
console.log(888,this);
that.url = res.tempFilePaths[0];
that.yrenlianlist.push(that.url)
},
fail() {
that.$refs.popup.close('center')
}
});
},

@ -4,9 +4,9 @@
<view class="top">
<image class="dw" src="@/static/定位.png" mode="" style="width: 30rpx;height: 30rpx;"></image>
<view class="xuzou">{{city}}</view>
<picker @change="bindPickerChange" :value="index" :range="array">
<!-- <picker @change="bindPickerChange" :value="index" :range="array">
<image class="jiantou" src="@/static/jiantou.png" mode="" style="width: 15rpx;height: 15rpx;"></image>
</picker>
</picker> -->
</view>
<view class="topimg">
<image class="topimg1" :src="tuijianlist[0].image.url" mode=""></image>
@ -24,8 +24,11 @@
<view class="mddz1wz">{{item.name}}</view>
</view>
<view class="mddz2">
<image class="mddz1img1" src="@/static/定位1.png" mode=""></image>
<text class="dz">{{item.address}}</text>
<view style='width:570rpx' @click="handleNavigation(item)">
<image class="mddz1img1" src="@/static/定位1.png" mode=""></image>
<text class="dz">{{item.address}}</text>
</view>
<image class="mddz1img2" src="@/static/电话o.png" mode="" @click="makePhoneCall(item.mobile)"></image>
</view>
</view>
@ -88,6 +91,20 @@
},
methods: {
handleNavigation(i) {
uni.openLocation({
longitude:Number(i.longitude),
latitude:Number(i.latitude),
name:i.name,
address: i.address,
success: function(res) {
console.log('打开系统位置地图成功')
},
fail: function(error) {
console.log(error)
}
})
},
numberCheck(){
this.$api.numberCheck({number:this.number}).then(res=>{
if(res.data.code==200){
@ -327,6 +344,7 @@
.mddz2 {
margin-top: 32rpx;
display: flex;
}
.dz {
@ -358,7 +376,7 @@
.mddz {
width: 643rpx;
height: 142rpx;
/* height: 142rpx; */
background: #FFFFFF;
box-shadow: 0rpx 3rpx 9rpx 0rpx rgba(19, 14, 4, 0.08);
border-radius: 20rpx;

@ -73,7 +73,7 @@
console.log(123, e);
if (e.detail.errMsg == 'getPhoneNumber:ok') {
uni.request({
url: 'https://bodybuilding.njrenzhou.cn/api/wxMinLogin',
url: 'https://bodybuilding.bsdong.cn/api/wxMinLogin',
method: 'post',
data: {
code: this.wxcode,
@ -81,7 +81,6 @@
avatar:''
},
success: (res) => {
console.log(12344, res.data.code);
if( res.data.code==200){
// token
uni.setStorageSync('token', res.data.data.userToken)

@ -10,16 +10,16 @@
<view class="mendian">
<view class="mddz" v-for="(item,index) in mendainlist" :key="index" @click="xzmd(item)">
<view class="mddz1">
<image class="mddz1img" src="@/static/uni.png" mode=""></image>
<image class="mddz1img" :src="item.image.url" mode=""></image>
<view class="mddz1wz">{{item.name}}</view>
</view>
<view class="mddz2">
<view class="">
<view class="" @click="handleNavigation(item)">
<image class="mddz1img1" src="@/static/定位1.png" mode=""></image>
<text class="dz">地址{{item.address}}</text>
</view>
<image class="mddz1img2" src="@/static/电话o.png" mode=""></image>
<image class="mddz1img2" src="@/static/电话o.png" mode="" @click="makePhoneCall(item.mobile)"></image>
</view>
</view>
</view>
@ -49,6 +49,25 @@
}
},
methods: {
handleNavigation(i) {
uni.openLocation({
longitude:Number(i.longitude),
latitude:Number(i.latitude),
name:i.name,
address: i.address,
success: function(res) {
console.log('打开系统位置地图成功')
},
fail: function(error) {
console.log(error)
}
})
},
makePhoneCall(e){
uni.makePhoneCall({
phoneNumber: e //
});
},
xzmd(item){
if(this.isshouye!='shouye'){
var item=JSON.stringify(item)
@ -61,6 +80,7 @@
uni.navigateBack()
},
storeList(page) {
this.mendainlist=[]
this.$api.storeList({
page: page
}).then(res => {

@ -13,7 +13,7 @@
<view class="">{{userxixin.nickname?userxixin.nickname:'微信用户'}}</view>
<view class="">{{userxixin.mobile?userxixin.mobile:'暂无手机号'}}</view>
</view>
<view class="renlbtn" @click="face">人脸录入</view>
<view class="renlbtn" @click="face(userxixin.face_id)">{{userxixin.face_id!=0?'已认证':'人脸录入'}}</view>
</view>
<view class="huiy">
<view class="" v-for="(item,index) in viplist" :key="index" style="height: 223rpx;">
@ -40,7 +40,7 @@
</view>
<!-- <button open-type="chooseAvatar" @chooseavatar='chooseAvatar'>获取头像</button> -->
</view>
</template>
@ -61,7 +61,7 @@
chooseAvatar(e) {
console.log(123, e);
},
gengx() {
uni.navigateTo({
url: "/pages/user/portrait/portrait"
@ -80,18 +80,25 @@
previous() {
uni.navigateBack()
},
face() {
uni.navigateTo({
url: "/pages/face/face"
})
face(face_id) {
if (face_id != 0) {
uni.showToast({
icon: "none",
title: '人脸已认证',
duration: 3000
});
} else {
uni.navigateTo({
url: "/pages/face/face"
})
}
}
}
}
</script>
<style scoped>
.huiybox {
display: flex;
margin-left: 50rpx;

Loading…
Cancel
Save