This commit is contained in:
parent
ecf8f554a7
commit
6b3ce21739
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<up-popup :show="show" closeable round="10" @close="close">
|
<up-popup :show="show" closeable round="10" @close="close" :safeAreaInsetBottom="false">
|
||||||
<view class="good-popup">
|
<view class="good-popup">
|
||||||
<view class="head-title">
|
<view class="head-title">
|
||||||
{{datas.is_bulk ? '称重商品' : '计件商品'}}
|
{{datas.is_bulk ? '称重商品' : '计件商品'}}
|
||||||
|
@ -20,20 +20,24 @@
|
||||||
<view>小计</view>
|
<view>小计</view>
|
||||||
<view style="color: #F55726;">¥ {{subtotal}}</view>
|
<view style="color: #F55726;">¥ {{subtotal}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="datas.is_bulk" class="row" style="margin-bottom: 60rpx;">
|
<view v-if="datas.is_bulk" class="row">
|
||||||
<view>商品重量<text style="color: #F55726;">*</text></view>
|
<view>商品重量<text style="color: #F55726;">*</text></view>
|
||||||
<view><up-input v-model="datas.cart_num" border="none" placeholder="请输入重量" inputAlign="right"></up-input></view>
|
<view style="flex: 1;">
|
||||||
|
<up-input v-model="datas.cart_num" type="number" border="none" placeholder="请输入数量" inputAlign="right"></up-input>
|
||||||
</view>
|
</view>
|
||||||
<view v-else class="row" style="margin-bottom: 60rpx;">
|
</view>
|
||||||
|
<view v-else class="row">
|
||||||
<view>商品数量<text style="color: #F55726;">*</text></view>
|
<view>商品数量<text style="color: #F55726;">*</text></view>
|
||||||
<view><up-input v-model="datas.cart_num" border="none" placeholder="请输入数量" inputAlign="right"></up-input></view>
|
<view style="flex: 1;">
|
||||||
|
<up-input v-model="datas.cart_num" type="number" border="none" placeholder="请输入数量" inputAlign="right"></up-input>
|
||||||
</view>
|
</view>
|
||||||
<view class="row">
|
</view>
|
||||||
|
<view class="row" style="padding-top: 30px;padding-bottom: 30rpx;">
|
||||||
<view style="width: 30%;margin-right: 30rpx;">
|
<view style="width: 30%;margin-right: 30rpx;">
|
||||||
<up-button @click="close" type="number" color="#f7f7f7"><text style="color: #333;">取消</text></up-button>
|
<up-button @click="close" color="#f7f7f7"><text style="color: #333;">取消</text></up-button>
|
||||||
</view>
|
</view>
|
||||||
<view style="flex: 1;">
|
<view style="flex: 1;">
|
||||||
<up-button @click="change" type="number" color="#20b128">确定</up-button>
|
<up-button @click="change" color="#20b128">确定</up-button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="view-popup">
|
<view class="view-popup">
|
||||||
<!-- #ifdef MP-WEIXIN -->
|
<!-- #ifdef MP-WEIXIN -->
|
||||||
<view v-if="nav" style="width: 100%;" :style="{height: height + 'px'}"></view>
|
<view v-if="nav" style="width: 100%;background-color: #fff;" :style="{height: height + 'px'}"></view>
|
||||||
<!-- #endif -->
|
<!-- #endif -->
|
||||||
<!-- #ifndef MP-WEIXIN -->
|
<!-- #ifndef MP-WEIXIN -->
|
||||||
<view v-if="nav" style="width: 100%;height: calc( var(--status-bar-height) + 44px );"></view>
|
<view v-if="nav" style="width: 100%;height: calc( var(--status-bar-height) + 44px );background-color: #fff;"></view>
|
||||||
<!-- #endif -->
|
<!-- #endif -->
|
||||||
<view class="center">
|
<view class="center">
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
|
|
38
pages.json
38
pages.json
|
@ -103,44 +103,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
]
|
],
|
||||||
},
|
|
||||||
|
|
||||||
|
"globalStyle": {
|
||||||
],
|
|
||||||
|
|
||||||
"globalStyle": {
|
|
||||||
"navigationBarTextStyle": "black",
|
"navigationBarTextStyle": "black",
|
||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
"navigationBarBackgroundColor": "#fff",
|
"navigationBarBackgroundColor": "#fff",
|
||||||
"backgroundColor": "#fff"
|
"backgroundColor": "#fff"
|
||||||
},
|
}
|
||||||
// "tabBar": {
|
|
||||||
// "color": "#999999",
|
|
||||||
// "selectedColor": "#20b128",
|
|
||||||
// "borderStyle": "white",
|
|
||||||
// "backgroundColor": "#FFFFFF",
|
|
||||||
// "list": [{
|
|
||||||
// "pagePath": "pages/index/index",
|
|
||||||
// "text": "首页",
|
|
||||||
// "iconPath": "static/tab/a.png",
|
|
||||||
// "selectedIconPath": "static/tab/aa.png"
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// "pagePath": "pages/cart/cart",
|
|
||||||
// "text": "购物车",
|
|
||||||
// "iconPath": "static/tab/b.png",
|
|
||||||
// "selectedIconPath": "static/tab/ba.png"
|
|
||||||
// },
|
|
||||||
|
|
||||||
// {
|
|
||||||
// "pagePath": "pages/my/my",
|
|
||||||
// "text": "我的",
|
|
||||||
// "iconPath": "static/tab/c.png",
|
|
||||||
// "selectedIconPath": "static/tab/ca.png"
|
|
||||||
// }
|
|
||||||
|
|
||||||
// ]
|
|
||||||
// },
|
|
||||||
"uniIdRouter": {}
|
|
||||||
}
|
}
|
|
@ -135,6 +135,7 @@
|
||||||
const animationfinish = ({ detail: { current } }) => {
|
const animationfinish = ({ detail: { current } }) => {
|
||||||
swiperCurrent.value = current;
|
swiperCurrent.value = current;
|
||||||
tabsActive.value = current;
|
tabsActive.value = current;
|
||||||
|
if(swiperCurrent.value==1) getFrequentlyPurchase();
|
||||||
}
|
}
|
||||||
|
|
||||||
// 结算
|
// 结算
|
||||||
|
@ -252,7 +253,7 @@
|
||||||
frequentlyList.value = res.data;
|
frequentlyList.value = res.data;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
getFrequentlyPurchase();
|
|
||||||
|
|
||||||
onShow(()=>{
|
onShow(()=>{
|
||||||
getcartList();
|
getcartList();
|
||||||
|
|
|
@ -57,7 +57,7 @@
|
||||||
<view class="item u-line-1" :class="{'item-active': leftActive===item.id}"
|
<view class="item u-line-1" :class="{'item-active': leftActive===item.id}"
|
||||||
v-for="(item, index) in goodClassTow" :key="index" @click="changeTwo(item, index)">{{item.name}}
|
v-for="(item, index) in goodClassTow" :key="index" @click="changeTwo(item, index)">{{item.name}}
|
||||||
</view>
|
</view>
|
||||||
<view style="width: 100%;height: 300rpx;"></view>
|
<view style="width: 100%;height: 450rpx;"></view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
<view class="right">
|
<view class="right">
|
||||||
<view class="classify">
|
<view class="classify">
|
||||||
|
@ -117,7 +117,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view style="width: 100%;height: 300rpx;"></view>
|
<view style="width: 100%;height: 350rpx;"></view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -280,7 +280,9 @@
|
||||||
const goodClassTow = ref([]); // 二级分类
|
const goodClassTow = ref([]); // 二级分类
|
||||||
const goodClassThree = ref([]); // 三级分类
|
const goodClassThree = ref([]); // 三级分类
|
||||||
const getgoodClassList = () => {
|
const getgoodClassList = () => {
|
||||||
goodClassListApi().then(res => {
|
goodClassListApi({
|
||||||
|
page_size: 1000
|
||||||
|
}).then(res => {
|
||||||
res.data?.lists?.unshift({
|
res.data?.lists?.unshift({
|
||||||
id: "",
|
id: "",
|
||||||
name: "全部",
|
name: "全部",
|
||||||
|
|
|
@ -24,7 +24,7 @@ const useUserStore = defineStore("user", () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
token.value = "31f74a72e2d05673ec14d2a6408718ef"
|
token.value = "95b24dd6d2dda836fe07854b08ba0944"
|
||||||
userInfo.value = {
|
userInfo.value = {
|
||||||
avatar: "https://lihaiim.oss-cn-chengdu.aliyuncs.com/image/admin/default_avatar.png",
|
avatar: "https://lihaiim.oss-cn-chengdu.aliyuncs.com/image/admin/default_avatar.png",
|
||||||
id: 9,
|
id: 9,
|
||||||
|
@ -33,7 +33,7 @@ const useUserStore = defineStore("user", () => {
|
||||||
mobile: "19330904744",
|
mobile: "19330904744",
|
||||||
nickname: "用户1714964250",
|
nickname: "用户1714964250",
|
||||||
supplier: null,
|
supplier: null,
|
||||||
token: "31f74a72e2d05673ec14d2a6408718ef"
|
token: "b92ad3d7bdc06fa849dfb2c3c8be824e"
|
||||||
}
|
}
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue