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