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

@ -445,7 +445,7 @@ import { callWithErrorHandling } from "vue"
_this.list3.push(_this.baseUrl + item)
})
}
_this.getIndexBanner()
})
@ -539,7 +539,7 @@ import { callWithErrorHandling } from "vue"
address,
latitude,
longitude
}) => { //
}) => { //
// this.addressName = address;
console.log(name, address, latitude, longitude);
this.longitude = longitude;
@ -851,4 +851,4 @@ import { callWithErrorHandling } from "vue"
color: white;
margin: 0 auto;
}
</style>
</style>

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) {
@ -61,7 +67,7 @@
console.log(e)
let _this = this;
my.getPhoneNumber({
scopes: 'auth_base',
success: res1 => {
@ -83,15 +89,16 @@
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'
})
@ -104,8 +111,8 @@
console.log('my.getAuthCode 调用失败', err)
}
});
},
fail: err => {
console.log('my.getAuthCode 调用失败', err)
@ -366,4 +373,4 @@
border: 1px solid #0078FF;
color: white;
}
</style>
</style>