Commit 2f81a9e2 by LJM

解决bug

parent 5580d035
...@@ -2,11 +2,8 @@ ...@@ -2,11 +2,8 @@
<view class="page-auth column rowCenter verCenter"> <view class="page-auth column rowCenter verCenter">
<text class="logo"></text> <text class="logo"></text>
<text class="title">SCMWMS</text> <text class="title">SCMWMS</text>
<button class="share row rowCenter verCenter" @tap="getUserProfileChange"> <button class="share row rowCenter verCenter" @tap="getUserProfileChange"><text class="t1">授权登录</text></button>
<text class="iconfont icon-weixin"></text> <view class="copyright">©2023深圳市猎芯供应链有限公司 ALL RIGHTS RESERVED</view>
<text class="t1">微信授权登录</text>
</button>
<view class="copyright">©2022深圳市猎芯供应链有限公司 ALL RIGHTS RESERVED</view>
</view> </view>
</template> </template>
......
...@@ -2,11 +2,8 @@ ...@@ -2,11 +2,8 @@
<view class="page-auth column rowCenter verCenter"> <view class="page-auth column rowCenter verCenter">
<text class="logo"></text> <text class="logo"></text>
<text class="title">SCM商务系统</text> <text class="title">SCM商务系统</text>
<button class="share row rowCenter verCenter" open-type="getPhoneNumber" @getphonenumber="decryptPhoneNumber"> <button class="share row rowCenter verCenter" open-type="getPhoneNumber" @getphonenumber="decryptPhoneNumber"><text class="t1">授权获取手机号</text></button>
<text class="iconfont icon-jinggao1"></text> <view class="copyright">©2023深圳市猎芯供应链有限公司 ALL RIGHTS RESERVED</view>
<text class="t1">微信授权获取手机号</text>
</button>
<view class="copyright">©2022深圳市猎芯供应链有限公司 ALL RIGHTS RESERVED</view>
</view> </view>
</template> </template>
......
...@@ -56,8 +56,9 @@ export default { ...@@ -56,8 +56,9 @@ export default {
uni.showModal({ uni.showModal({
title: '提示', title: '提示',
content: '您确定退出系统嘛', content: '您确定退出系统嘛',
success: function(res) { success: res => {
if (res.confirm) { if (res.confirm) {
this.request(API.unBindUserInfo, 'POST', {}, true).then(res => {});
uni.removeStorageSync('token'); uni.removeStorageSync('token');
uni.switchTab({ uni.switchTab({
url: '/pages/home/index' url: '/pages/home/index'
......
//const API_BASE = 'https://api.ichunt.com'; const API_BASE = 'https://api.ichunt.com';
const API_BASE = 'http://api.liexin.com'; //const API_BASE = 'http://api.liexin.com';
const API = { const API = {
/** /**
* 上传数据 * 上传数据
...@@ -14,6 +14,10 @@ const API = { ...@@ -14,6 +14,10 @@ const API = {
* */ * */
login: API_BASE + '/supplywechatsignfor/login', login: API_BASE + '/supplywechatsignfor/login',
/** /**
* 小程序解绑
* */
unBindUserInfo: API_BASE + '/supplywechatwms/unBindUserInfo',
/**
* 获取用户微信信息 * 获取用户微信信息
* */ * */
getWechatInfo: API_BASE + '/supplywechatwms/getWechatInfo', getWechatInfo: API_BASE + '/supplywechatwms/getWechatInfo',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment