add
This commit is contained in:
parent
a75f9284f8
commit
dc37c653b4
|
@ -31,15 +31,15 @@
|
||||||
<view v-if="datas.is_bulk" class="row">
|
<view v-if="datas.is_bulk" class="row">
|
||||||
<view>购买重量<text style="color: #F55726;">*</text></view>
|
<view>购买重量<text style="color: #F55726;">*</text></view>
|
||||||
<view style="flex: 1;">
|
<view style="flex: 1;">
|
||||||
<up-input v-model="datas.cart_num" :cursorSpacing='120' type="digit" border="none" placeholder="请输入购买重量"
|
<up-input v-model="datas.cart_num" :cursorSpacing='120' type="digit" border="none"
|
||||||
inputAlign="right"></up-input>
|
placeholder="请输入购买重量" inputAlign="right"></up-input>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view v-else class="row">
|
<view v-else class="row">
|
||||||
<view>购买数量<text style="color: #F55726;">*</text></view>
|
<view>购买数量<text style="color: #F55726;">*</text></view>
|
||||||
<view style="flex: 1;">
|
<view style="flex: 1;">
|
||||||
<up-input v-model="datas.cart_num" :cursorSpacing='120' type="digit" border="none" placeholder="请输入购买数量"
|
<up-input ref='foucs1' v-model="datas.cart_num" :cursorSpacing='120' type="digit" border="none"
|
||||||
inputAlign="right">
|
placeholder="请输入购买数量" inputAlign="right">
|
||||||
<template #suffix>
|
<template #suffix>
|
||||||
<span style="color: #20b128;">{{ datas.unit_name }}</span>
|
<span style="color: #20b128;">{{ datas.unit_name }}</span>
|
||||||
</template>
|
</template>
|
||||||
|
@ -61,12 +61,18 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import {
|
import {
|
||||||
computed,
|
computed,
|
||||||
ref
|
nextTick,
|
||||||
|
ref,
|
||||||
|
|
||||||
} from "vue"
|
} from "vue"
|
||||||
import {
|
import {
|
||||||
toast
|
toast
|
||||||
} from "../uni_modules/uview-plus";
|
} from "../uni_modules/uview-plus";
|
||||||
|
import {
|
||||||
|
onShow
|
||||||
|
} from '@dcloudio/uni-app';
|
||||||
|
|
||||||
|
const foucs1 = ref(null)
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
show: {
|
show: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
|
@ -106,8 +112,11 @@ const subtotal = computed(() => {
|
||||||
return Number(num * sell * 100 / 100).toFixed(2)
|
return Number(num * sell * 100 / 100).toFixed(2)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
defineExpose({
|
defineExpose({
|
||||||
setData
|
setData,
|
||||||
|
// founcsFn
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
let BASE_URL
|
let BASE_URL
|
||||||
import store from "@/store/user.js"
|
import store from "@/store/user.js"
|
||||||
// 环境
|
// 环境
|
||||||
let env = "dev"
|
// let env = "dev"
|
||||||
// let env = "prod"
|
let env = "prod"
|
||||||
// let env = "liu";
|
// let env = "liu";
|
||||||
|
|
||||||
switch (env) {
|
switch (env) {
|
||||||
|
|
|
@ -82,7 +82,7 @@
|
||||||
<view class="vip-card">
|
<view class="vip-card">
|
||||||
<text>当前已开通:</text>
|
<text>当前已开通:</text>
|
||||||
<up-count-to :startVal="0" :endVal="count"></up-count-to>
|
<up-count-to :startVal="0" :endVal="count"></up-count-to>
|
||||||
<text>位{{Role==1?'行业会员':'商户'}}会员</text>
|
<text>位{{Role==1?'行业会员':'商户'}}</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="table">
|
<view class="table">
|
||||||
|
@ -160,8 +160,8 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</up-popup>
|
</up-popup>
|
||||||
<up-picker :show="showPop1" :columns="columns" @confirm='conformRole' @close="showPop1=false" @open="showPop1=true"
|
<up-picker :show="showPop1" :columns="columns" @confirm='conformRole' @cancel='showPop1=false'
|
||||||
keyName='label_name' confirmColor='#33B83A'></up-picker>
|
@close="showPop1=false" @open="showPop1=true" keyName='label_name' confirmColor='#33B83A'></up-picker>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|
|
@ -370,7 +370,8 @@
|
||||||
name: '',
|
name: '',
|
||||||
order: '',
|
order: '',
|
||||||
store_name: '',
|
store_name: '',
|
||||||
store_id: STORE_INFO.id
|
// store_id: 23
|
||||||
|
store_id: 4
|
||||||
})
|
})
|
||||||
|
|
||||||
const loading = ref(true);
|
const loading = ref(true);
|
||||||
|
@ -386,6 +387,8 @@
|
||||||
if (class_all) class_id = ""; //只能带其中一个
|
if (class_all) class_id = ""; //只能带其中一个
|
||||||
if (loadmore) where.value.page_no++;
|
if (loadmore) where.value.page_no++;
|
||||||
else where.value.page_no = 1;
|
else where.value.page_no = 1;
|
||||||
|
// where.value.store_id = 23
|
||||||
|
where.value.store_id = 4
|
||||||
goodListApi({
|
goodListApi({
|
||||||
...where.value,
|
...where.value,
|
||||||
class_all: class_all,
|
class_all: class_all,
|
||||||
|
@ -522,8 +525,10 @@
|
||||||
const openGoodPopup = (item) => { // 打开数量/重量弹窗
|
const openGoodPopup = (item) => { // 打开数量/重量弹窗
|
||||||
goodData.value = item;
|
goodData.value = item;
|
||||||
goodRef.value.setData(item);
|
goodRef.value.setData(item);
|
||||||
|
// goodRef.value.founcsFn();
|
||||||
showGoodPopup.value = true;
|
showGoodPopup.value = true;
|
||||||
|
|
||||||
|
|
||||||
//统计商品的访问记录
|
//统计商品的访问记录
|
||||||
productLogApi({
|
productLogApi({
|
||||||
product_id: item.product_id,
|
product_id: item.product_id,
|
||||||
|
@ -607,7 +612,8 @@
|
||||||
if (opt.id) {
|
if (opt.id) {
|
||||||
where.value.store_id = opt.id;
|
where.value.store_id = opt.id;
|
||||||
const info = await shopDetailApi({
|
const info = await shopDetailApi({
|
||||||
store_id: opt.id
|
store_id: 4
|
||||||
|
// store_id: 23
|
||||||
});
|
});
|
||||||
// 分享参数至当前用户参数
|
// 分享参数至当前用户参数
|
||||||
if (opt.spread_uid) {
|
if (opt.spread_uid) {
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
<up-button @click="weixinLogin" color="#20B128" size="large"><up-icon name="weixin-fill"
|
<up-button @click="weixinLogin" color="#20B128" size="large"><up-icon name="weixin-fill"
|
||||||
color="#fff" size="28"></up-icon>微信快捷登录</up-button>
|
color="#fff" size="28"></up-icon>微信快捷登录</up-button>
|
||||||
</view>
|
</view>
|
||||||
<view class="btn" v-if="config.ENV=='dev'">
|
<view class="btn">
|
||||||
<up-button @click="navgo('/pages/login/test')" color="#20B128" size="large"><up-icon
|
<up-button @click="navgo('/pages/login/test')" color="#20B128" size="large"><up-icon
|
||||||
name="account-fill" color="#fff" size="28"></up-icon>账号登录</up-button>
|
name="account-fill" color="#fff" size="28"></up-icon>账号登录</up-button>
|
||||||
</view>
|
</view>
|
||||||
|
|
Loading…
Reference in New Issue