This commit is contained in:
2026-01-20 10:08:51 +08:00
15 changed files with 69 additions and 30 deletions

View File

@@ -3,12 +3,15 @@ import request from '@/common/api/request.js'
const url = '/account' const url = '/account'
//根据经纬度获取信息 //根据经纬度获取信息
export const APIgeocodelocation = (data) => { export const APIgeocodelocation = (data) => {
return request({ return new Promise((resove, reject) => {
url: url + '/user/geo/geocode', resove(null)
method: 'get',
data: data,
toast: false
}) })
// return request({
// url: url + '/user/geo/geocode',
// method: 'get',
// data: data,
// toast: false
// })
} }
//登录 //登录

View File

@@ -14,11 +14,11 @@ export const pay = (data) => {
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
platformType = "WX"; platformType = "WX";
platformType = "wechat"; platformType = "wechat";
payType = "wechatPay"; payType = "WECHAT";
// #endif // #endif
// #ifdef MP-ALIPAY // #ifdef MP-ALIPAY
platformType = "alipay"; platformType = "alipay";
payType = "aliPay"; payType = "ALIPAY";
// #endif // #endif

View File

@@ -10,11 +10,11 @@ let platformType = '';
let payType = ''; let payType = '';
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
platformType = 'wechat' platformType = 'wechat'
payType = 'wechatPay' payType = 'WECHAT'
// #endif // #endif
// #ifdef MP-ALIPAY // #ifdef MP-ALIPAY
platformType = 'alipay' platformType = 'alipay'
payType = 'aliPay' payType = 'ALIPAY'
// #endif // #endif
export const getPackage = (data) => { export const getPackage = (data) => {

View File

@@ -6,11 +6,11 @@ let platformType = '';
let payType=''; let payType='';
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
platformType = 'wechat' platformType = 'wechat'
payType='wechatPay' payType='WECHAT'
// #endif // #endif
// #ifdef MP-ALIPAY // #ifdef MP-ALIPAY
platformType = 'alipay' platformType = 'alipay'
payType='aliPay' payType='ALIPAY'
// #endif // #endif
export const warePage = (data) => { export const warePage = (data) => {

View File

@@ -6,11 +6,11 @@ let platformType = '';
let payType=''; let payType='';
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
platformType = 'wechat' platformType = 'wechat'
payType='wechatPay' payType='WECHAT'
// #endif // #endif
// #ifdef MP-ALIPAY // #ifdef MP-ALIPAY
platformType = 'alipay' platformType = 'alipay'
payType='aliPay' payType='ALIPAY'
// #endif // #endif
//订单列表 //订单列表

View File

@@ -6,11 +6,11 @@ let platformType = '';
let payType=''; let payType='';
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
platformType = 'wechat' platformType = 'wechat'
payType='wechatPay' payType='WECHAT'
// #endif // #endif
// #ifdef MP-ALIPAY // #ifdef MP-ALIPAY
platformType = 'alipay' platformType = 'alipay'
payType='aliPay' payType='ALIPAY'
// #endif // #endif
export const pointGoodsPage = (data) => { export const pointGoodsPage = (data) => {

View File

@@ -1,6 +1,6 @@
// const debug = process.env.NODE_ENV == 'development' ? true : false; // const debug = process.env.NODE_ENV == 'development' ? true : false;
// const debug = false; // false线上 true本地 // const debug = false; // false线上 true本地
const debug = true; // false线上 true本地 const debug = false; // false线上 true本地
let baseUrl = '' let baseUrl = ''
let baseUrlwws = '' let baseUrlwws = ''

View File

@@ -15,7 +15,6 @@
{{ cart.memberPrice }} {{ cart.memberPrice }}
</text> </text>
</block> </block>
<text v-else class="salePrice">{{ cart.salePrice }}</text> <text v-else class="salePrice">{{ cart.salePrice }}</text>
</text> </text>
</template> </template>

View File

@@ -97,7 +97,7 @@ const paymentMethodList = ref([
name: "微信支付", name: "微信支付",
type: 2, type: 2,
url: "https://czg-qr-order.oss-cn-beijing.aliyuncs.com/confirmOrder/weChat.png", url: "https://czg-qr-order.oss-cn-beijing.aliyuncs.com/confirmOrder/weChat.png",
payType: "wechatPay", payType: "WECHAT",
}, },
// #endif // #endif
// #ifdef MP-ALIPAY // #ifdef MP-ALIPAY

View File

@@ -577,7 +577,7 @@
name: "微信支付", name: "微信支付",
type: 2, type: 2,
url: "https://czg-qr-order.oss-cn-beijing.aliyuncs.com/confirmOrder/weChat.png", url: "https://czg-qr-order.oss-cn-beijing.aliyuncs.com/confirmOrder/weChat.png",
payType: "wechatPay", payType: "WECHAT",
}; };
// #endif // #endif
// #ifdef MP-ALIPAY // #ifdef MP-ALIPAY

View File

@@ -316,7 +316,7 @@
const paymentmethod = reactive({ const paymentmethod = reactive({
radiovalue: 2, radiovalue: 2,
paymentBtnText: "微信支付", paymentBtnText: "微信支付",
payType: 'wechatPay' payType: 'WECHAT'
}) })
const groupChange = async (e) => { const groupChange = async (e) => {

View File

@@ -126,7 +126,7 @@
</view> </view>
<!-- 占位 --> <!-- 占位不用管下面代码也不要删除 -->
<view class="shop_bottom" style="opacity: 0;"> <view class="shop_bottom" style="opacity: 0;">
<view class="flex-between"> <view class="flex-between">
<view class="price price-sku" v-if="goods.type != 'package' && goods.result"> <view class="price price-sku" v-if="goods.type != 'package' && goods.result">
@@ -210,14 +210,47 @@
<text <text
v-if="goods.result.suitNum > 1">{{ goods.result.suitNum }}{{ goods.result.unitName }}起点</text> v-if="goods.result.suitNum > 1">{{ goods.result.suitNum }}{{ goods.result.unitName }}起点</text>
</view> </view>
<view class="price price-package " v-else> <view class="price single-and-staticPackage "
v-else-if="goods.type=='single'||(goods.type=='package'&&goods.groupType==0)">
<text class="i"></text> <text class="i"></text>
<view class="num"> <view class="num">
<GoodsPrice :limitDiscount="cartStore.limitTimeDiscount" :cart="goods" <GoodsPrice :limitDiscount="cartStore.limitTimeDiscount" :cart="goods"
:shopUserInfo="shopUserInfo" :shopInfo="shopInfo"></GoodsPrice> :shopUserInfo="shopUserInfo" :shopInfo="shopInfo"></GoodsPrice>
</view> </view>
<text class="i" v-if="goods.unitName">/{{ goods.unitName }}</text> <text class="i" v-if="goods.unitName">/{{ goods.unitName }}</text>
<text v-if="goods.suitNum > 1">{{ goods.suitNum }}{{ goods.unitName }}起点</text> <text v-if="selSku&&selSku.suitNum > 1">{{ selSku.suitNum }}{{ selSku.unitName }}起点</text>
</view>
<view class="price choosePackage "
v-else-if="goods.type=='package'&&goods.groupType==1">
<text class="i"></text>
<view class="num">
<GoodsPrice :limitDiscount="cartStore.limitTimeDiscount" :cart="goods"
:shopUserInfo="shopUserInfo" :shopInfo="shopInfo"></GoodsPrice>
</view>
<text class="i" v-if="goods.unitName">/{{ goods.unitName }}</text>
<text v-if="selSku&&selSku.suitNum > 1">{{ selSku.suitNum }}{{ selSku.unitName }}起点</text>
</view>
<view class="price sku" v-else-if="goods.type=='sku'">
<text class="i"></text>
<view class="num">
<GoodsPrice :limitDiscount="cartStore.limitTimeDiscount" :cart="selSku"
:shopUserInfo="shopUserInfo" :shopInfo="shopInfo"></GoodsPrice>
</view>
<text class="i" v-if="goods.unitName">/{{ goods.unitName }}</text>
<text v-if="selSku&&selSku.suitNum > 1">{{ selSku.suitNum }}{{ selSku.unitName }}起点</text>
</view>
<view class="price price-package " v-else>
<text class="i"></text>
<view class="num">
<GoodsPrice :limitDiscount="cartStore.limitTimeDiscount" :cart="selSku"
:shopUserInfo="shopUserInfo" :shopInfo="shopInfo"></GoodsPrice>
</view>
<text class="i" v-if="goods.unitName">/{{ goods.unitName }}</text>
<text v-if="selSku&&selSku.suitNum > 1">{{ selSku.suitNum }}{{ selSku.unitName }}起点</text>
</view> </view>
<view v-if="goods.type == 'package'&&goods.groupType==1"> <view v-if="goods.type == 'package'&&goods.groupType==1">
@@ -446,7 +479,12 @@
const swiperCurrent = ref(0); const swiperCurrent = ref(0);
function returnFirstSku(product) { function returnFirstSku(product) {
return product.skuList[0] console.log('returnFirstSku', product.skuList[0]);
return {
...product.skuList[0],
sku_id: product.skuList[0].id,
id: product.id,
}
} }
//返回是否是多规格商品 //返回是否是多规格商品
function returnIsSkuGoods(item) { function returnIsSkuGoods(item) {

View File

@@ -161,9 +161,8 @@
@tap.stop="$u.throttle(() => singleclick(item, '-'), 500)"></view> --> @tap.stop="$u.throttle(() => singleclick(item, '-'), 500)"></view> -->
</view> </view>
<!-- <text class="num">{{ ifcartNumber(item) }}</text> --> <!-- <text class="num">{{ ifcartNumber(item) }}</text> -->
<text class="dot num" <text class="dot num"
v-if="returnGoodsImCartNum(item1)">{{ returnGoodsImCartNum(item1) < 99 ? returnGoodsImCartNum(item1) : '99+' }}</text> v-if="returnGoodsImCartNum(item)">{{ returnGoodsImCartNum(item) < 99 ? returnGoodsImCartNum(item) : '99+' }}</text>
<view class="btn"> <view class="btn">
<up-icon name="plus-circle-fill" color="#E9AB7A" size="25"></up-icon> <up-icon name="plus-circle-fill" color="#E9AB7A" size="25"></up-icon>
<!-- <view class="btnClick" <!-- <view class="btnClick"
@@ -879,7 +878,7 @@
return 0 return 0
} }
if (GoodsIDInCartNumMap.value.hasOwnProperty(goods.id)) { if (GoodsIDInCartNumMap.value.hasOwnProperty(goods.id)) {
GoodsIDInCartNumMap.value[goods.id] return GoodsIDInCartNumMap.value[goods.id]
} }
return 0 return 0
} }

View File

@@ -258,7 +258,7 @@ const myFunList = ref([
// icon: "https://czg-qr-order.oss-cn-beijing.aliyuncs.com/my/my_member.png" // icon: "https://czg-qr-order.oss-cn-beijing.aliyuncs.com/my/my_member.png"
// }, // },
// { name: "关于", type: "", icon: "https://czg-qr-order.oss-cn-beijing.aliyuncs.com/my/inRegard.png"}, // { name: "关于", type: "", icon: "https://czg-qr-order.oss-cn-beijing.aliyuncs.com/my/inRegard.png"},
{ name: '联系商家', type: 'contact', icon: 'https://cashier-oss.oss-cn-beijing.aliyuncs.com/upload/1/2b0480c32c1844dbae2c09f6a729c6e8.png' } // { name: '联系商家', type: 'contact', icon: 'https://cashier-oss.oss-cn-beijing.aliyuncs.com/upload/1/2b0480c32c1844dbae2c09f6a729c6e8.png' }
]); ]);
const userInfo = reactive({}); const userInfo = reactive({});

View File

@@ -25,7 +25,7 @@ export const Memberpay = defineStore('memberpay', {
let res = await APIpayltPayVip({ let res = await APIpayltPayVip({
...data, ...data,
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
payType: 'wechatPay', payType: 'WECHAT',
openId: uni.cache.get('userInfo').wechatOpenId, openId: uni.cache.get('userInfo').wechatOpenId,
// #endif // #endif
// #ifdef MP-ALIPAY // #ifdef MP-ALIPAY
@@ -113,7 +113,7 @@ export const Memberpay = defineStore('memberpay', {
} }
}, },
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
payType: 'wechatPay', payType: 'WECHAT',
openId: uni.cache.get('userInfo').wechatOpenId, openId: uni.cache.get('userInfo').wechatOpenId,
// #endif // #endif
// #ifdef MP-ALIPAY // #ifdef MP-ALIPAY