Merge branch 'master' of gitee.com:beijing_hongye_huicheng/lilishop-uniapp

master
misworga831 2023-08-25 13:59:08 +08:00
commit f5716c901d
6 changed files with 33 additions and 30 deletions

View File

@ -26,7 +26,7 @@ export function webConnect(code) {
export function openIdLogin(params, clientType) { export function openIdLogin(params, clientType) {
return http.request({ return http.request({
url: `passport/connect/connect/app/login`, url: `passport/connect/connect/app/login`,
method: Method.GET, method: Method.POST,
needToken: true, needToken: true,
data: params, data: params,
header: { header: {

View File

@ -4,7 +4,7 @@
<div <div
class="address-box" class="address-box"
@click="clickToAddress()" @click="clickToAddress()"
v-if="shippingText == 'LOGISTICS'" v-if="shippingText == 'LOGISTICS' && orderMessage.cartTypeEnum != 'VIRTUAL'"
> >
<div class="user-box flex"> <div class="user-box flex">
<div class="flex-8"> <div class="flex-8">
@ -651,7 +651,7 @@ export default {
}); });
return false; return false;
} }
} else if (this.shippingText === "LOGISTICS") { } else if (this.shippingText === "LOGISTICS" && this.orderMessage.cartTypeEnum != 'VIRTUAL') {
if (!this.address.id) { if (!this.address.id) {
uni.showToast({ uni.showToast({
title: "请选择地址", title: "请选择地址",
@ -853,7 +853,7 @@ export default {
</script> </script>
<style scoped> <style scoped>
page { page {
background: #ededed !important; background: #f7f7f7;
} }
</style> </style>
<style scoped lang="scss"> <style scoped lang="scss">

View File

@ -453,10 +453,11 @@
uuid: uni.getStorageSync("openid"), //id uuid: uni.getStorageSync("openid"), //id
source: uni.getStorageSync("type"), // source: uni.getStorageSync("type"), //
nickname: uni.getStorageSync("nickname"), // nickname: uni.getStorageSync("nickname"), //
username: uni.getStorageSync("openid"), //
avatar: uni.getStorageSync("avatar"), // avatar: uni.getStorageSync("avatar"), //
uniAccessToken: uni.getStorageSync("uni_access_token"), //token uniAccessToken: uni.getStorageSync("uni_access_token"), //token
type:this.clientType, type:this.clientType,
token:{unionId:""} token:{unionId:"",openId:uni.getStorageSync("openid")}
}; };
uni.getStorageSync("unionId") ? (params.token.unionId = uni.getStorageSync("unionId")) : delete params.token; uni.getStorageSync("unionId") ? (params.token.unionId = uni.getStorageSync("unionId")) : delete params.token;

View File

@ -107,6 +107,8 @@
<div style='margin-left: 20rpx;' v-if="!skuItem.checked && skuItem.errorMessage"> <div style='margin-left: 20rpx;' v-if="!skuItem.checked && skuItem.errorMessage">
{{skuItem.errorMessage}} {{skuItem.errorMessage}}
</div> </div>
</p>
</view> </view>
</view> </view>
</u-swipe-action> </u-swipe-action>

View File

@ -1,5 +1,5 @@
<template> <template>
<u-modal v-model="show" cancelText="不同意" confirmText="同意" showCancelButton="btnShow" title="服务协议和隐私政策" @confirm="confirm" @cancel="cancel"> <u-modal v-model="show" cancelText="不同意" confirmText="同意" showCancelButton title="服务协议和隐私政策" @confirm="confirm" @cancel="cancel">
<view class="u-update-content"> <view class="u-update-content">
请您务必审慎阅读,充分理解服务协议隐私政策各条款 请您务必审慎阅读,充分理解服务协议隐私政策各条款
包括但不限于为了更好的向你提供服务我们需要收集你的设备标识, 包括但不限于为了更好的向你提供服务我们需要收集你的设备标识,

View File

@ -98,7 +98,7 @@ export default {
}, },
onLoad() { }, onLoad() { },
onShow() { onShow() {
this.userInfo = this.$options.filters.isLogin(); this.userInfo = this.$options.filters.isLogin() || {};
if (this.$options.filters.isLogin("auth")) { if (this.$options.filters.isLogin("auth")) {
this.getUserOrderNum(); this.getUserOrderNum();
} else { } else {