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

View File

@ -14,7 +14,7 @@
<!-- #endif --> <!-- #endif -->
<!-- #ifdef MP-ALIPAY --> <!-- #ifdef MP-ALIPAY -->
<!-- <button class="dl-box" open-type="getPhoneNumber" @getphonenumber="getUserLogin">手机号快捷登录</button> --> <!-- <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> @getAuthorize="getUserLogin">手机号快捷登录</button>
<!-- #endif --> <!-- #endif -->
<button class="kk-box" @click="goback">我再看看</button> <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" <view class="lanquanzi" v-if="qindex == true" @click="qindex =! qindex"><u-icon name="checkbox-mark"
color="#ffffff" size="14"></u-icon></view> color="#ffffff" size="14"></u-icon></view>
<text>请仔细阅读</text> <text>请仔细阅读</text>
<text class="lan">用户协议</text> <text class="lan" @click="gopv()">用户协议</text>
<text></text> <text></text>
<text class="lan">隐私政策</text> <text class="lan" @click="gopv()">隐私政策</text>
</view> </view>
</view> </view>
</view> </view>
@ -48,6 +48,12 @@
}, },
components: {}, components: {},
methods: { methods: {
gopv() {
uni.navigateTo({
url: '/pagesLogin/login/webview'
})
},
// userid // userid
getUserLogin(e) { getUserLogin(e) {
// if (this.qindex == false) { // if (this.qindex == false) {
@ -61,7 +67,7 @@
console.log(e) console.log(e)
let _this = this; let _this = this;
my.getPhoneNumber({ my.getPhoneNumber({
scopes: 'auth_base', scopes: 'auth_base',
success: res1 => { success: res1 => {
@ -83,15 +89,16 @@
storeId: 0, storeId: 0,
staffId: "", staffId: "",
phone: "18457621459", phone: "18457621459",
encryptedData:encryptedData, encryptedData: encryptedData,
}, },
}).then((resp) => { }).then((resp) => {
console.log(resp) console.log(resp)
if (resp.code == 200) { if (resp.code == 200) {
uni.setStorageSync('App-Token', resp.data.token); uni.setStorageSync('App-Token', resp.data.token);
uni.setStorageSync('chainStoreId', resp.data.chainStoreId); uni.setStorageSync('chainStoreId', resp.data
.chainStoreId);
uni.navigateTo({ uni.navigateTo({
url: '/pages/index/index' url: '/pages/index/index'
}) })
@ -104,8 +111,8 @@
console.log('my.getAuthCode 调用失败', err) console.log('my.getAuthCode 调用失败', err)
} }
}); });
}, },
fail: err => { fail: err => {
console.log('my.getAuthCode 调用失败', err) console.log('my.getAuthCode 调用失败', err)
@ -366,4 +373,4 @@
border: 1px solid #0078FF; border: 1px solid #0078FF;
color: white; color: white;
} }
</style> </style>