diff --git a/pages.json b/pages.json index 822ba7d..e4ada26 100644 --- a/pages.json +++ b/pages.json @@ -77,6 +77,15 @@ "enablePullDownRefresh": false, "navigationStyle":"custom"// 去掉微信小程序顶部导航 } + }, + { + "path" : "pages/index/webview", + "style" : + { + "navigationBarTitleText" : "", + "enablePullDownRefresh": false, + "navigationStyle":"custom"// 去掉微信小程序顶部导航 + } } ], "subPackages":[ @@ -203,6 +212,24 @@ "enablePullDownRefresh": false, "navigationStyle":"custom"// 去掉微信小程序顶部导航 } + }, + { + "path" : "recyclebin", + "style" : + { + "navigationBarTitleText" : "", + "enablePullDownRefresh": false, + "navigationStyle":"custom"// 去掉微信小程序顶部导航 + } + }, + { + "path" : "recyclebindetil", + "style" : + { + "navigationBarTitleText" : "", + "enablePullDownRefresh": false, + "navigationStyle":"custom"// 去掉微信小程序顶部导航 + } } ] } diff --git a/pages/customer/followup.vue b/pages/customer/followup.vue index d748ecc..ab73918 100644 --- a/pages/customer/followup.vue +++ b/pages/customer/followup.vue @@ -282,6 +282,32 @@ }); }, getlocahost(){ + // 检查定位权限 + uni.getSetting({ + success: (res) => { + if (!res.authSetting['scope.userLocation']) { + // 未授权,请求权限 + uni.authorize({ + scope: 'scope.userLocation', + success: () => { + this.getlocahost(); + }, + fail: () => { + uni.showToast({ + title: '定位权限未授权', + icon: 'none', + }); + }, + }); + } else { + // 已授权,直接获取定位 + this.getlocahost(); + } + }, + }); + }, + getlocahost(){ + var that = this uni.getLocation({ type: 'wgs84', // 默认为 wgs84 坐标系,可选 gcj02 @@ -406,7 +432,7 @@ var that = this; uni.uploadFile({ // url: 'http://api.crm.hnxinyouhe.com/upload', - url: 'http://219.157.255.213:9007', + url: 'http://219.157.255.213:9007/upload/uploadImage', filePath: imgUrl, name: 'files', header:{'content-type': 'application/x-www-form-urlencoded','Authorization': 'Bearer ' + uni.getStorageSync('token')}, diff --git a/pages/index/mine.vue b/pages/index/mine.vue index f9b1c0d..b7c5354 100644 --- a/pages/index/mine.vue +++ b/pages/index/mine.vue @@ -7,17 +7,19 @@ - - + + - - - {{userinfo.email}} - + + + {{userinfo.name}} + - - ID:{{userinfo.id}} + + ID:{{userinfo.id}} + + {{$t('auth')}} @@ -32,11 +34,11 @@ --> - + {{$t('mine.contact')}} @@ -57,6 +59,11 @@ {{$t('mine.logoff')}} --> + {{$t('mine.logout')}} @@ -84,15 +91,41 @@ data() { return { userinfo:'', - show: false + show: false, + isopenid:false, } }, onLoad() { - this.userinfo =JSON.parse(uni.getStorageSync('userinfo')) + // this.userinfo =JSON.parse(uni.getStorageSync('userinfo')) + }, onShow() { + this.getuserinfo() }, methods: { + getuserinfo(){ + + request({ + url:'user/getInfo', + method:'get', + }).then(res => { + this.userinfo = res.data.data; + if(this.userinfo.feishu_openid&&this.userinfo.feishu_openid!=null&&this.userinfo.feishu_openid!='null'&&this.userinfo.feishu_openid!=''){ + this.isopenid=true + } + + }) + }, + gomymp(){ + uni.navigateTo({ + url: '/pages/mine/webview' + }) + }, + gomyauth(){ + uni.navigateTo({ + url: '/pages/index/webview' + }) + }, changinfo(){ uni.navigateTo({ url: '/pages/mine/changinfo' @@ -173,6 +206,7 @@ font-size: 34rpx; color: white; .right{ + flex: 2; margin-left: 15px; image{ width: 32rpx; @@ -182,9 +216,22 @@ view{ line-height: 30px; } + .minemp{ + display: flex; + align-items: center; + justify-content: space-between; + .mp{ + font-size: 28rpx; + background: #fff; + color: #3471FF; + padding: 1px 15px; + border-radius: 5px 15px 15px 15px; + } + } .mineid{ font-size: 24rpx; } + } } } diff --git a/pages/index/webview.vue b/pages/index/webview.vue new file mode 100644 index 0000000..52a617b --- /dev/null +++ b/pages/index/webview.vue @@ -0,0 +1,65 @@ + + + + + diff --git a/pages/login/register.vue b/pages/login/register.vue index e68d832..6c6e412 100644 --- a/pages/login/register.vue +++ b/pages/login/register.vue @@ -117,6 +117,7 @@ }) }, getVcode() { + if(this.email==''){ uni.showToast({ title:this.$t('emailerr'), diff --git a/pages/mine/changinfo.vue b/pages/mine/changinfo.vue index 95908f8..099c189 100644 --- a/pages/mine/changinfo.vue +++ b/pages/mine/changinfo.vue @@ -3,16 +3,18 @@ - - - {{$t('mine.changeavatar')}} + + + + + {{$t('mine.changeavatar')}} {{$t('gender')}} - - {{$t('gender1')}} - {{$t('gender2')}} + + {{$t('gender1')}} + {{$t('gender2')}} @@ -20,28 +22,53 @@ {{$t('mine.nickname')}} - + {{$t('mine.lxcall')}} - + + {{$t('mine.position')}} + + + + + + + + {{$t('customer.Company')}} + + {{company_name || $t('inputnl')}} + + + + + + {{$t('customer.Country')}} + + {{country_name || $t('customer.Countryinput')}} + + + + + diff --git a/pages/mine/recyclebindetil.vue b/pages/mine/recyclebindetil.vue new file mode 100644 index 0000000..507e842 --- /dev/null +++ b/pages/mine/recyclebindetil.vue @@ -0,0 +1,333 @@ + + + + + diff --git a/pages/mine/resetPwd.vue b/pages/mine/resetPwd.vue index 73b7422..87c27ee 100644 --- a/pages/mine/resetPwd.vue +++ b/pages/mine/resetPwd.vue @@ -1,5 +1,8 @@