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' import Vue from 'vue'
let baseUrl = 'https://bodybuilding.njrenzhou.cn/'; let baseUrl = 'https://bodybuilding.bsdong.cn/';
//https://console-docs.apipost.cn/preview/077df998e6b8e954/a3d90a650bdbe292 //https://console-docs.apipost.cn/preview/077df998e6b8e954/a3d90a650bdbe292
Vue.prototype.$baseUrl = baseUrl; Vue.prototype.$baseUrl = baseUrl;

@ -15,7 +15,7 @@
</view> </view>
</view> </view>
<view class="fot"> <view class="fot">
<view class="tg">跳过</view> <view class="tg" @click="previous">跳过</view>
<view class="ps" @click="pais">拍摄</view> <view class="ps" @click="pais">拍摄</view>
</view> </view>
@ -52,7 +52,7 @@
// this.$refs.popup.close('center') // this.$refs.popup.close('center')
// var tjlist=[...this.yrenlianlist,...this.jqrllist] // var tjlist=[...this.yrenlianlist,...this.jqrllist]
uni.uploadFile({ uni.uploadFile({
url: 'https://bodybuilding.njrenzhou.cn/api/uploadFile', url: 'https://bodybuilding.bsdong.cn/api/uploadFile',
filePath:this.path, filePath:this.path,
name: 'file', name: 'file',
formData: { formData: {
@ -62,7 +62,14 @@
console.log('tjlist',JSON.parse(res.data)); console.log('tjlist',JSON.parse(res.data));
var data=JSON.parse(res.data) var data=JSON.parse(res.data)
this.$api.memberFace({face_id:data.data.file_id}).then(res=>{ 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); console.log(888,this);
that.url = res.tempFilePaths[0]; that.url = res.tempFilePaths[0];
that.yrenlianlist.push(that.url) that.yrenlianlist.push(that.url)
},
fail() {
that.$refs.popup.close('center')
} }
}); });
}, },

@ -4,9 +4,9 @@
<view class="top"> <view class="top">
<image class="dw" src="@/static/定位.png" mode="" style="width: 30rpx;height: 30rpx;"></image> <image class="dw" src="@/static/定位.png" mode="" style="width: 30rpx;height: 30rpx;"></image>
<view class="xuzou">{{city}}</view> <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> <image class="jiantou" src="@/static/jiantou.png" mode="" style="width: 15rpx;height: 15rpx;"></image>
</picker> </picker> -->
</view> </view>
<view class="topimg"> <view class="topimg">
<image class="topimg1" :src="tuijianlist[0].image.url" mode=""></image> <image class="topimg1" :src="tuijianlist[0].image.url" mode=""></image>
@ -24,8 +24,11 @@
<view class="mddz1wz">{{item.name}}</view> <view class="mddz1wz">{{item.name}}</view>
</view> </view>
<view class="mddz2"> <view class="mddz2">
<image class="mddz1img1" src="@/static/定位1.png" mode=""></image> <view style='width:570rpx' @click="handleNavigation(item)">
<text class="dz">{{item.address}}</text> <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> <image class="mddz1img2" src="@/static/电话o.png" mode="" @click="makePhoneCall(item.mobile)"></image>
</view> </view>
</view> </view>
@ -88,6 +91,20 @@
}, },
methods: { 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(){ numberCheck(){
this.$api.numberCheck({number:this.number}).then(res=>{ this.$api.numberCheck({number:this.number}).then(res=>{
if(res.data.code==200){ if(res.data.code==200){
@ -327,6 +344,7 @@
.mddz2 { .mddz2 {
margin-top: 32rpx; margin-top: 32rpx;
display: flex;
} }
.dz { .dz {
@ -358,7 +376,7 @@
.mddz { .mddz {
width: 643rpx; width: 643rpx;
height: 142rpx; /* height: 142rpx; */
background: #FFFFFF; background: #FFFFFF;
box-shadow: 0rpx 3rpx 9rpx 0rpx rgba(19, 14, 4, 0.08); box-shadow: 0rpx 3rpx 9rpx 0rpx rgba(19, 14, 4, 0.08);
border-radius: 20rpx; border-radius: 20rpx;

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

@ -10,16 +10,16 @@
<view class="mendian"> <view class="mendian">
<view class="mddz" v-for="(item,index) in mendainlist" :key="index" @click="xzmd(item)"> <view class="mddz" v-for="(item,index) in mendainlist" :key="index" @click="xzmd(item)">
<view class="mddz1"> <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 class="mddz1wz">{{item.name}}</view>
</view> </view>
<view class="mddz2"> <view class="mddz2">
<view class=""> <view class="" @click="handleNavigation(item)">
<image class="mddz1img1" src="@/static/定位1.png" mode=""></image> <image class="mddz1img1" src="@/static/定位1.png" mode=""></image>
<text class="dz">地址{{item.address}}</text> <text class="dz">地址{{item.address}}</text>
</view> </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> </view>
</view> </view>
@ -49,6 +49,25 @@
} }
}, },
methods: { 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){ xzmd(item){
if(this.isshouye!='shouye'){ if(this.isshouye!='shouye'){
var item=JSON.stringify(item) var item=JSON.stringify(item)
@ -61,6 +80,7 @@
uni.navigateBack() uni.navigateBack()
}, },
storeList(page) { storeList(page) {
this.mendainlist=[]
this.$api.storeList({ this.$api.storeList({
page: page page: page
}).then(res => { }).then(res => {

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

Loading…
Cancel
Save