This commit is contained in:
@QQNZX 2024-01-23 09:46:50 +08:00
parent 43b6dad16d
commit 7aab20e954
3 changed files with 22 additions and 15 deletions

View File

@ -5,7 +5,7 @@ module.exports = {
// baseUrl: 'http://192.168.0.196:8081/',
// baseUrl: 'http://192.168.1.4:8080/',
baseUrl: 'http://192.168.0.178:8008/',
baseUrl: 'http://192.168.0.121:8080/',

View File

@ -14,7 +14,7 @@
<!-- #endif -->
<!-- #ifdef MP-ALIPAY -->
<!-- <button class="dl-box" open-type="getPhoneNumber" @getphonenumber="getUserLogin">手机号快捷登录</button> -->
<button open-type="getAuthorize" scope='phoneNumber' class="dl-box" hover-class="button-active"
<button open-type="getAuthorize" scope='phoneNumber' class="dl-box" hover-class="button-active"
@getAuthorize="getUserLogin">手机号快捷登录</button>
<!-- #endif -->
<button class="kk-box" @click="goback">我再看看</button>
@ -23,9 +23,9 @@
<view class="lanquanzi" v-if="qindex == true" @click="qindex =! qindex"><u-icon name="checkbox-mark"
color="#ffffff" size="14"></u-icon></view>
<text>请仔细阅读</text>
<text class="lan">用户协议</text>
<text class="lan" @click="gopv()">用户协议</text>
<text></text>
<text class="lan">隐私政策</text>
<text class="lan" @click="gopv()">隐私政策</text>
</view>
</view>
</view>
@ -48,6 +48,12 @@
},
components: {},
methods: {
gopv() {
uni.navigateTo({
url: '/pagesLogin/login/webview'
})
},
// userid
getUserLogin(e) {
// if (this.qindex == false) {
@ -83,14 +89,15 @@
storeId: 0,
staffId: "",
phone: "18457621459",
encryptedData:encryptedData,
encryptedData: encryptedData,
},
}).then((resp) => {
console.log(resp)
if (resp.code == 200) {
uni.setStorageSync('App-Token', resp.data.token);
uni.setStorageSync('chainStoreId', resp.data.chainStoreId);
uni.setStorageSync('chainStoreId', resp.data
.chainStoreId);
uni.navigateTo({
url: '/pages/index/index'