切换导航条
此项目
正在载入...
登录
倪静楠
/
muying
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
倪静楠
4 years ago
提交
c7d9c35cc0362741456b85518deab1f99d5e64f8
1 个父辈
94c8afe0
4/14
隐藏空白字符变更
内嵌
并排对比
正在显示
4 个修改的文件
包含
32 行增加
和
16 行删除
pages/index/good-details.vue
pages/index/login.vue
pages/issue/betray.vue
pages/issue/publish.vue
pages/index/good-details.vue
查看文件 @
c7d9c35
...
...
@@ -19,7 +19,7 @@
</view>
<view class="rightPublic">
<text>{{detailData.address}}</text>
<text style="margin-left: 10rpx;">({{detailData.dis}} km)</text>
<text style="margin-left: 10rpx;"
v-if="detailData.dis>0"
>({{detailData.dis}} km)</text>
<view class="" style="display: flex;align-items: center;" @click="tomap">
<image src="../../static/image/Frame_11@2x.png" mode=""
style="width:28rpx;height: 28rpx;margin-right: 6rpx;"></image>
...
...
pages/index/login.vue
查看文件 @
c7d9c35
...
...
@@ -12,7 +12,7 @@
<view class="btn" v-if="checked">
登录
<button class="sys_btn"
open-type="getUserInfo" lang="zh_CN" @getuserinfo="appLoginWx
"></button>
<button class="sys_btn"
@click="GetUser()
"></button>
</view>
<view class="btn1" v-else @click="login">
登录
...
...
@@ -33,7 +33,8 @@
export default {
data() {
return {
checked: ''
checked: '',
dataSource: {}
}
},
...
...
@@ -53,6 +54,17 @@
icon: "none"
})
},
//获取用户信息
GetUser() {
wx.getUserProfile({
desc: '用于完善会员资料', // 声明获取用户个人信息后的用途,后续会展示在弹窗中,请谨慎填写
success: (res) => {
this.dataSource = res
uni.setStorageSync('userInfo', res.userInfo)
this.appLoginWx()
}
})
},
appLoginWx() {
uni.getProvider({
service: 'oauth',
...
...
@@ -63,11 +75,9 @@
success: function(loginRes) {
console.log(uni.getStorageSync('pid'),'pidd')
// 获取用户信息
uni.getUserInfo({
provider: 'weixin',
success: function(infoRes) {
uni.setStorageSync('userInfo', infoRes
.userInfo)
// uni.getUserInfo({
// provider: 'weixin',
// success: function(infoRes) {
request.post('/api/common/login', {
code: loginRes.code,
rawData: JSON.stringify(uni
...
...
@@ -88,14 +98,14 @@
}
})
},
fail: () => {
uni.showToast({
title: "微信登录授权失败",
icon: "none"
});
}
});
// },
// fail: () => {
// uni.showToast({
// title: "微信登录授权失败",
// icon: "none"
// });
// }
// });
},
fail: () => {
uni.showToast({
...
...
pages/issue/betray.vue
查看文件 @
c7d9c35
...
...
@@ -432,4 +432,7 @@
<style>
@import url("/common/uni.css");
@import url("/common/publish.css");
input{
width: 98%;
}
</style>
...
...
pages/issue/publish.vue
查看文件 @
c7d9c35
...
...
@@ -377,4 +377,7 @@
<style>
@import url("/common/uni.css");
@import url("/common/publish.css");
input{
width: 98%;
}
</style>
...
...
请
注册
或
登录
后发表评论