This commit is contained in:
zmj 2024-07-02 17:06:39 +08:00
parent c53c0b8cc4
commit 39cda88ba1
4 changed files with 25 additions and 16 deletions

View File

@ -37,13 +37,13 @@
<view v-if="datas.is_bulk" class="row" style="height: 100rpx;"> <view v-if="datas.is_bulk" class="row" style="height: 100rpx;">
<view>购买重量<text style="color: #F55726;">*</text></view> <view>购买重量<text style="color: #F55726;">*</text></view>
<view style="justify-content: end;"> <view style="justify-content: end;">
<up-number-box v-model="datas.cart_num" @change="valChange"></up-number-box> <up-number-box :min="0" v-model="datas.cart_num" @change="valChange"></up-number-box>
</view> </view>
</view> </view>
<view v-else class="row" style="height: 100rpx;"> <view v-else class="row" style="height: 100rpx;">
<view>购买数量<text style="color: #F55726;">*</text></view> <view>购买数量<text style="color: #F55726;">*</text></view>
<view style="justify-content: end;"> <view style="justify-content: end;">
<up-number-box v-model="datas.cart_num" @change="valChange"></up-number-box> <up-number-box :min="0" v-model="datas.cart_num" @change="valChange"></up-number-box>
</view> </view>
</view> </view>
<view class="row" style="padding-top: 30px;padding-bottom: 30rpx;"> <view class="row" style="padding-top: 30px;padding-bottom: 30rpx;">

View File

@ -14,9 +14,9 @@
@click="onChooseShop(item)"> @click="onChooseShop(item)">
<view class="multiple-card-item-left"> <view class="multiple-card-item-left">
<view class="multiple-card-item-left-title">{{item.name}}</view> <view class="multiple-card-item-left-title">{{item.name}}</view>
<view class="multiple-card-item-left-tag" v-if="item.reservation"> <view class="multiple-card-item-left-tag">
<text class="yellow" v-if="item.reservation">次日可提</text> <text class="yellow" v-if="item.reservation==1">次日可提</text>
<text class="green" v-else>当日可提</text> <text class="green" v-if='item.reservation==0'>当日可提</text>
</view> </view>
<view class="multiple-card-item-left-info"> <view class="multiple-card-item-left-info">
<u-image src="../../multipleShop/images/location_small.jpg" width="24rpx" <u-image src="../../multipleShop/images/location_small.jpg" width="24rpx"
@ -86,8 +86,6 @@
onLoad((opt) => { onLoad((opt) => {
event = opt.event event = opt.event
if (opt.cart_id) queryParams.cart_id = opt.cart_id; if (opt.cart_id) queryParams.cart_id = opt.cart_id;
console.log(event)
//
getLocation(); getLocation();
}); });
@ -179,8 +177,8 @@
let location = uni.getStorageSync('location'); let location = uni.getStorageSync('location');
if (location) { if (location) {
location = JSON.parse(location); location = JSON.parse(location);
queryParams.longitude = location.lat queryParams.longitude = location.long
queryParams.latitude = location.long queryParams.latitude = location.lat
// //
getShopList(); getShopList();
} else { } else {

View File

@ -24,7 +24,7 @@
<template> <template>
<view style="flex-grow: 1;overflow-y: auto;"> <view style="flex-grow: 1;overflow-y: auto;">
<view class="user-info" <view class="user-info"
:style="{backgroundImage: userInfo.user_ship!=1?'url(https://lihai001.oss-cn-chengdu.aliyuncs.com/def/e3a7b202404261113002322.webp)':'url(https://lihai001.oss-cn-chengdu.aliyuncs.com/attach/aace1202407021022357574.png)' }"> :style="{backgroundImage: [0,4].includes(userInfo.user_ship)?'url(https://lihai001.oss-cn-chengdu.aliyuncs.com/def/e3a7b202404261113002322.webp)':'url(https://lihai001.oss-cn-chengdu.aliyuncs.com/attach/aace1202407021022357574.png)' }">
<view class="u-card"> <view class="u-card">
<view style="display: flex;" @click="updataInfp"> <view style="display: flex;" @click="updataInfp">
<up-image :src="userInfo.avatar" mode="aspectFill" width="112rpx" height="112rpx" <up-image :src="userInfo.avatar" mode="aspectFill" width="112rpx" height="112rpx"
@ -36,13 +36,13 @@
<view style="margin:0 20rpx;"> <view style="margin:0 20rpx;">
{{userInfo.id}} {{userInfo.id}}
</view> </view>
<view v-if="userInfo.user_ship==1" <view v-if="![0,4].includes(userInfo.user_ship)"
style="display: flex;align-items: center;background-color: #F6EECD;padding: 4rpx 10rpx;border-radius: 20rpx;"> style="display: flex;align-items: center;background-color: #F6EECD;padding: 4rpx 10rpx;border-radius: 20rpx;">
<view style="margin-right: 10rpx;"> <view style="margin-right: 10rpx;">
<up-icon <up-icon
name="https://lihai001.oss-cn-chengdu.aliyuncs.com/attach/e8621202406281618363287.png"></up-icon> name="https://lihai001.oss-cn-chengdu.aliyuncs.com/attach/e8621202406281618363287.png"></up-icon>
</view> </view>
{{userInfo.label_name}}会员 {{userInfo.vip_name}}会员
</view> </view>
</view> </view>
</view> </view>
@ -291,7 +291,7 @@
userInfo.value = res.data; userInfo.value = res.data;
formData.avatar = res.data.avatar formData.avatar = res.data.avatar
formData.nick_name = res.data.nickname formData.nick_name = res.data.nickname
if (res.data.user_ship == 1) { if (![0, 4].includes(res.data.user_ship)) {
uni.setNavigationBarColor({ uni.setNavigationBarColor({
frontColor: "#000000", frontColor: "#000000",
backgroundColor: "#EAFFE1" backgroundColor: "#EAFFE1"

View File

@ -31,13 +31,14 @@
</view> </view>
</view> </view>
</view> --> </view> -->
<view class="m-card m-address" style="margin-top: 20rpx;"> <view class="m-card m-address" style="margin-top: 20rpx;">
<view class="address-info" <view class="address-info"
style='display: flex;justify-content: space-between;width: 690rpx;align-items: center;'> style='display: flex;justify-content: space-between;width: 690rpx;align-items: center;'>
<view class="top" style="align-items: flex-start;"> <view class="top" style="align-items: flex-start;">
<view style="color: #333;"> <view style="color: #333;width: 190rpx;">
<view style="margin: 0 10rpx;color:#20B128">推荐自提点</view> <view style="margin: 0 10rpx;color:#20B128;text-align: center;">推荐自提点</view>
<view style=" margin: 0 10rpx;margin-top:5rpx;color:#20B128"> {{reservation?"次日可提":"当日可提" }} <view class="isreser"> {{reservation?"次日可提":"当日可提" }}
</view> </view>
</view> </view>
<view> <view>
@ -572,6 +573,16 @@
</script> </script>
<style lang="scss"> <style lang="scss">
.isreser {
// margin: 0 10rpx;
margin-top: 5rpx;
color: black;
background-color: #F6EECD;
padding: 5rpx 10rpx;
border-radius: 10rpx;
text-align: center;
}
.m-card { .m-card {
margin: 20rpx; margin: 20rpx;
border-radius: 14rpx; border-radius: 14rpx;