暂时去掉登录时候client参数,会引发account唯一索引错误
This commit is contained in:
85
api/order.js
Normal file
85
api/order.js
Normal file
@ -0,0 +1,85 @@
|
||||
import request from "@/utils/request";
|
||||
import { client } from "@/utils/tools";
|
||||
|
||||
//下单
|
||||
export function orderBuy(data) {
|
||||
return request.post("order/buy", data);
|
||||
}
|
||||
//删除订单
|
||||
export function delOrder(id) {
|
||||
return request.post("order/del", {
|
||||
id,
|
||||
});
|
||||
}
|
||||
|
||||
// 获取配送方式
|
||||
export function getDelivery() {
|
||||
return request.get("order/getDeliveryType");
|
||||
}
|
||||
|
||||
//订单列表
|
||||
export function getOrderList(data) {
|
||||
return request.get("order/lists", {
|
||||
params: data,
|
||||
});
|
||||
}
|
||||
//订单详情
|
||||
export function getOrderDetail(id) {
|
||||
return request.get("order/detail", {
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
//取消订单
|
||||
export function cancelOrder(id) {
|
||||
return request.post("order/cancel", {
|
||||
id,
|
||||
});
|
||||
}
|
||||
|
||||
//物流
|
||||
export function orderTraces(id) {
|
||||
return request.get("order/orderTraces", {
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
//确认收货
|
||||
export function confirmOrder(id) {
|
||||
return request.post("order/confirm", {
|
||||
id,
|
||||
});
|
||||
}
|
||||
|
||||
//下单获取优惠券
|
||||
export function getOrderCoupon(data) {
|
||||
return request.post("coupon/orderCoupon", data);
|
||||
}
|
||||
|
||||
// 核销订单
|
||||
export function getVerifyLists(data) {
|
||||
return request.get("order/verificationLists", {
|
||||
params: data,
|
||||
});
|
||||
}
|
||||
// 核销详情
|
||||
export function verification(data) {
|
||||
return request.post("order/verification", data);
|
||||
}
|
||||
|
||||
// 确认核销
|
||||
export function verificationConfirm(data) {
|
||||
return request.post("order/verificationConfirm", data);
|
||||
}
|
||||
//确认收货组件
|
||||
export function getwxReceiveDetail(params) {
|
||||
return request.get("order/wxReceiveDetail", { params });
|
||||
}
|
||||
//查询确认收货
|
||||
export function getwechatSyncCheck(params) {
|
||||
return request.get("order/wechatSyncCheck", { params });
|
||||
}
|
||||
228
components/order-goods/order-goods.vue
Normal file
228
components/order-goods/order-goods.vue
Normal file
@ -0,0 +1,228 @@
|
||||
<template>
|
||||
<view class="order-goods bg-white">
|
||||
<view v-for="(item, index) in list" :key="index" class="item-wrap">
|
||||
<view class="item row" @tap="toGoods(item.goods_id)">
|
||||
<view class="goods-img">
|
||||
<u-image :src="item.image_str || item.image"
|
||||
:width="imageWidth"
|
||||
:height="imageHeight"
|
||||
:border-radius="imageRadius"
|
||||
lazy-load/>
|
||||
</view>
|
||||
<view class="goods-info ml20 flex1">
|
||||
<view class="goods-name line2 mb10">
|
||||
<u-tag
|
||||
class="mr10"
|
||||
v-if="team.need"
|
||||
:text="team.need + '人团'"
|
||||
size="mini"
|
||||
type="primary"
|
||||
mode="plain"
|
||||
/>
|
||||
{{ item.goods_name || item.name }}</view
|
||||
>
|
||||
<view class="goods-spec xs muted mb20">{{
|
||||
item.spec_value_str || item.spec_value
|
||||
}}</view>
|
||||
<view class="row-between">
|
||||
<view class="goods-price row">
|
||||
<view class="primary">
|
||||
<price-format
|
||||
v-if="!item.is_member && order_type === 0"
|
||||
:weight="500"
|
||||
:subscript-size="24"
|
||||
:first-size="34"
|
||||
:second-size="24"
|
||||
:price="item.original_price || item.goods_price"
|
||||
></price-format>
|
||||
</view>
|
||||
<view class="vip-price row" v-if="item.is_member && order_type === 0">
|
||||
<view class="price-name xxs">会员价</view>
|
||||
<view style="padding: 0 10rpx">
|
||||
<price-format
|
||||
:price="item.goods_price"
|
||||
:first-size="22"
|
||||
:second-size="22"
|
||||
:subscript-size="22"
|
||||
:weight="500"
|
||||
color="#7B3200"
|
||||
></price-format>
|
||||
</view>
|
||||
</view>
|
||||
<view
|
||||
class="vip-price row"
|
||||
v-if="order_type === 1 || order_type === 2 || order_type === 3"
|
||||
>
|
||||
<view class="price-name xxs" style="background-color: #e74346">
|
||||
<text v-if="order_type === 1">秒杀价</text>
|
||||
<text v-if="order_type === 2">拼团价</text>
|
||||
<text v-if="order_type === 3">砍价</text>
|
||||
</view>
|
||||
|
||||
<view style="padding: 0 10rpx">
|
||||
<price-format
|
||||
:price="item.goods_price"
|
||||
:first-size="22"
|
||||
:second-size="22"
|
||||
:subscript-size="22"
|
||||
:weight="500"
|
||||
color="#7B3200"
|
||||
></price-format>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="goods-num sm">x{{ item.goods_num }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<template v-if="mode === 'comfirm'">
|
||||
<view class="delivery" v-if="delivery === 1 && !item.is_express"
|
||||
>该商品不支持快递配送</view
|
||||
>
|
||||
<view class="delivery" v-if="delivery === 2 && !item.is_selffetch"
|
||||
>该商品不支持门店自提</view
|
||||
>
|
||||
</template>
|
||||
|
||||
<view class="goods-footer row" v-if="link">
|
||||
<view style="flex: 1"></view>
|
||||
<navigator
|
||||
class="mr20"
|
||||
hover-class="none"
|
||||
:url="'/bundle/pages/goods_reviews/goods_reviews?id=' + item.id"
|
||||
v-if="item.comment_btn"
|
||||
>
|
||||
<button size="xs" class="plain br60" hover-class="none">评价晒图</button>
|
||||
</navigator>
|
||||
<navigator
|
||||
v-if="item.refund_btn"
|
||||
hover-class="none"
|
||||
:url="
|
||||
'/bundle/pages/apply_refund/apply_refund?order_id=' +
|
||||
item.order_id +
|
||||
'&item_id=' +
|
||||
item.item_id
|
||||
"
|
||||
>
|
||||
<button size="xs" class="plain br60" hover-class="none">申请退款</button>
|
||||
</navigator>
|
||||
<view v-if="item.after_status_desc" style="color: orange">
|
||||
{{ item.after_status_desc }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {}
|
||||
},
|
||||
|
||||
components: {},
|
||||
props: {
|
||||
list: {
|
||||
type: Array,
|
||||
default: () => []
|
||||
},
|
||||
link: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
team: {
|
||||
type: [Object, Array],
|
||||
default: () => ({})
|
||||
},
|
||||
delivery: {
|
||||
type: Number,
|
||||
default: 1
|
||||
},
|
||||
// order | comfirm
|
||||
mode: {
|
||||
type: String,
|
||||
default: 'order'
|
||||
},
|
||||
order_type: {
|
||||
type: Number,
|
||||
default: 0
|
||||
},
|
||||
imageWidth: {
|
||||
type: Number,
|
||||
default: 180
|
||||
},
|
||||
imageHeight: {
|
||||
type: Number,
|
||||
default: 180
|
||||
},
|
||||
imageRadius: {
|
||||
type: Number,
|
||||
default: 0
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
toGoods(id) {
|
||||
if (!this.link) return
|
||||
uni.navigateTo({
|
||||
url: `/pages/goods_details/goods_details?id=${id}`
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss">
|
||||
.order-goods {
|
||||
.item {
|
||||
padding: 20rpx 24rpx;
|
||||
.vip-price {
|
||||
// margin: 0 10rpx;
|
||||
background-color: #ffe9ba;
|
||||
line-height: 30rpx;
|
||||
border-radius: 6rpx;
|
||||
overflow: hidden;
|
||||
.price-name {
|
||||
background-color: #101010;
|
||||
padding: 3rpx 10rpx;
|
||||
color: #ffd4b7;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
&::after {
|
||||
content: '';
|
||||
display: block;
|
||||
width: 20rpx;
|
||||
height: 20rpx;
|
||||
position: absolute;
|
||||
right: -15rpx;
|
||||
background-color: #ffe9ba;
|
||||
border-radius: 50%;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
box-sizing: border-box;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.goods-footer {
|
||||
height: 70rpx;
|
||||
align-items: flex-start;
|
||||
padding: 0 24rpx;
|
||||
.plain {
|
||||
border: 1px solid #999;
|
||||
height: 52rpx;
|
||||
line-height: 52rpx;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.delivery {
|
||||
display: inline-block;
|
||||
margin-left: calc(180rpx + 20rpx * 2);
|
||||
padding: 4rpx 15rpx;
|
||||
border-radius: 60px;
|
||||
font-size: 20rpx;
|
||||
background-color: #f4f4f4;
|
||||
color: #999999;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@ -5,15 +5,15 @@
|
||||
<view class="shop-title bold-600 u-p-l-40 u-p-r-40 w-full u-line-1">{{ name }}</view>
|
||||
<scroll-view scroll-y="true" scroll-with-animation="true" style="height: 480rpx;">
|
||||
<view class="u-m-l-40">
|
||||
<view v-for="(item, index1) in specBck" :key="index1">
|
||||
<view v-for="(item, index) in specList" :key="index">
|
||||
<view class="attr nr u-m-t-20 u-m-b-20 ">{{ item.name }}</view>
|
||||
<view class="row wrap">
|
||||
<view
|
||||
v-for="(attr, index2) in item.spec_value" :key="index2"
|
||||
@click="chooseSpec(item, index1, index2, attr)"
|
||||
:class="item.spec_value[index2].is_select ? 'attr-list active' : 'attr-list'"
|
||||
v-for="(specitem, index2) in item.spec_value" :key="index2"
|
||||
@click="chooseSpec(index, index2)"
|
||||
:class="checkedGoods.spec_value_ids_arr[index] == specitem.id ? 'attr-list active' : 'attr-list'"
|
||||
>
|
||||
{{ attr.value }}
|
||||
{{ specitem.value }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -21,12 +21,20 @@
|
||||
</scroll-view>
|
||||
|
||||
<view class="mt20">
|
||||
<view class="u-m-l-40 u-flex u-flex-wrap">已选规格:
|
||||
<view v-for="(item, index) in selectedSpec" :key="index" class="current">
|
||||
<view class="u-flex u-m-l-40 u-m-r-40">
|
||||
<view class="u-flex u-flex-wrap">
|
||||
{{ specValueText }}
|
||||
<!-- <view v-for="(item, index) in selectedSpec" :key="index" class="current">
|
||||
{{ item.name }}
|
||||
</view> -->
|
||||
</view>
|
||||
<view class="flex1 u-text-right">
|
||||
<u-number-box v-model="goodsNum" :min="1" :max="checkedGoods.stock"
|
||||
:disabled="disabledNumberBox"></u-number-box>
|
||||
</view>
|
||||
</view>
|
||||
<view class="row u-row-center mt20 u-p-b-20">
|
||||
|
||||
<view class="row u-row-center mt20 u-p-b-20" :class="specValueText.indexOf('请选择') != -1 || checkedGoods.stock == 0 ? 'disabled' : ''">
|
||||
<view class="w-40 mr10">
|
||||
<u-button @click="close" hover-class="none" :customStyle="{color: themeColor, border: '1px solid ' + themeColor, padding: '16rpx 0'}" :plain="true" :hair-line="false" shape="circle">取消</u-button>
|
||||
</view>
|
||||
@ -48,12 +56,13 @@
|
||||
type: Boolean,
|
||||
required: true
|
||||
},
|
||||
|
||||
spec: {
|
||||
type: [Array, Object],
|
||||
default: () => [{}]
|
||||
goods: {
|
||||
type: [Object, Array],
|
||||
},
|
||||
disabledNumberBox: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
|
||||
name: {
|
||||
type: String,
|
||||
default: ''
|
||||
@ -64,6 +73,13 @@
|
||||
mobile: '',
|
||||
specBck: [],
|
||||
selectedSpec: [],
|
||||
checkedGoods: {
|
||||
stock: 0,
|
||||
}, //选中的
|
||||
outOfStock: [], //缺货的
|
||||
specList: [], //规格
|
||||
disable: [], //不可选择的
|
||||
goodsNum: 1,
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
@ -73,53 +89,129 @@
|
||||
this.$emit('close')
|
||||
},
|
||||
|
||||
// 选择规格
|
||||
chooseSpec(item, index1, index2, attr) {
|
||||
if (item.name == '辣度') {
|
||||
// 规格-单选
|
||||
item.spec_value.map((i, k) => {
|
||||
if(k === index2) {
|
||||
if (item.spec_value[index2].is_select) {
|
||||
this.$set(i, 'is_select', false)
|
||||
this.selectedSpec = this.selectedSpec.filter(it => it.id !== item.spec_value[index2].id)
|
||||
} else {
|
||||
this.$set(i, 'is_select', true)
|
||||
this.selectedSpec.push({
|
||||
id: item.spec_value[index2].id,
|
||||
name: item.spec_value[index2].value
|
||||
})
|
||||
}
|
||||
} else {
|
||||
this.$set(i, 'is_select', false)
|
||||
this.selectedSpec.map((se, index) => {
|
||||
if (se.id == i.id) {
|
||||
this.selectedSpec.splice(index, 1)
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
} else {
|
||||
// 规格-复选
|
||||
if (item.spec_value[index2].is_select) {
|
||||
this.$set(item.spec_value[index2], 'is_select', false)
|
||||
this.selectedSpec = this.selectedSpec.filter(i => i.id !== item.spec_value[index2].id)
|
||||
} else {
|
||||
// 选中
|
||||
this.$set(item.spec_value[index2], 'is_select', true)
|
||||
this.selectedSpec.push({
|
||||
id: item.spec_value[index2].id,
|
||||
name: item.spec_value[index2].value
|
||||
})
|
||||
}
|
||||
// 过滤出需要进行禁用的规格
|
||||
getOutOfStockArr(arr, arr1, result = []) {
|
||||
arr.forEach((el) => {
|
||||
if (el.num >= arr1.length - 1) {
|
||||
result.push(...el.different);
|
||||
}
|
||||
});
|
||||
return result;
|
||||
},
|
||||
|
||||
// 匹配出缺货库存和已选中对比结果
|
||||
getArrIdentical(arr1, arr2, arr = [], num = 0) {
|
||||
arr1.forEach((el) => {
|
||||
arr2.forEach((el2) => {
|
||||
if (el == el2) {
|
||||
num += 1;
|
||||
arr.push(el);
|
||||
}
|
||||
});
|
||||
});
|
||||
return {
|
||||
num, //n个相同的
|
||||
different: this.getArrDifference(
|
||||
[...new Set(arr)].map(Number),
|
||||
arr2.map(Number)
|
||||
),
|
||||
identical: [...new Set(arr)],
|
||||
};
|
||||
},
|
||||
|
||||
// 匹配出已选择和缺库存的
|
||||
getArrResult(arr, outOfStock, result = []) {
|
||||
outOfStock.forEach((item) => {
|
||||
const res = this.getArrIdentical(arr, item.spec_value_ids.split(","));
|
||||
if (res != undefined && res.length != 0) {
|
||||
result.push(res);
|
||||
}
|
||||
});
|
||||
return result;
|
||||
},
|
||||
|
||||
// 找出两个数组中参数不同的
|
||||
getArrDifference(arr1, arr2) {
|
||||
return arr1.concat(arr2).filter(function (v, i, arr) {
|
||||
return arr.indexOf(v) == arr.lastIndexOf(v);
|
||||
});
|
||||
},
|
||||
|
||||
chooseSpec(index, index2) {
|
||||
const id = this.specList[index].spec_value[index2].id;
|
||||
|
||||
// 无法选择
|
||||
const disable = this.disable.filter((item) => item == id);
|
||||
if (disable.length != 0) return;
|
||||
|
||||
let idsArr = this.checkedGoods.spec_value_ids_arr;
|
||||
if (id == idsArr[index]) idsArr[index] = "";
|
||||
else idsArr[index] = id;
|
||||
//保存已选规格
|
||||
this.checkedGoods.spec_value_ids_arr = idsArr;
|
||||
this.checkedGoods.spec_value_ids = idsArr.join(",");
|
||||
// 重新渲染页面
|
||||
this.specList = [...this.specList]
|
||||
console.log("this.checkedGoods>>>", this.checkedGoods);
|
||||
|
||||
},
|
||||
|
||||
// 选择规格
|
||||
// chooseSpec(item, index1, index2, attr) {
|
||||
// if (item.name == '辣度') {
|
||||
// // 规格-单选
|
||||
// item.spec_value.map((i, k) => {
|
||||
// if(k === index2) {
|
||||
// if (item.spec_value[index2].is_select) {
|
||||
// this.$set(i, 'is_select', false)
|
||||
// this.selectedSpec = this.selectedSpec.filter(it => it.id !== item.spec_value[index2].id)
|
||||
// } else {
|
||||
// this.$set(i, 'is_select', true)
|
||||
// this.selectedSpec.push({
|
||||
// id: item.spec_value[index2].id,
|
||||
// name: item.spec_value[index2].value
|
||||
// })
|
||||
// }
|
||||
// } else {
|
||||
// this.$set(i, 'is_select', false)
|
||||
// this.selectedSpec.map((se, index) => {
|
||||
// if (se.id == i.id) {
|
||||
// this.selectedSpec.splice(index, 1)
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
// })
|
||||
// } else {
|
||||
// // 规格-复选
|
||||
// if (item.spec_value[index2].is_select) {
|
||||
// this.$set(item.spec_value[index2], 'is_select', false)
|
||||
// this.selectedSpec = this.selectedSpec.filter(i => i.id !== item.spec_value[index2].id)
|
||||
// } else {
|
||||
// // 选中
|
||||
// this.$set(item.spec_value[index2], 'is_select', true)
|
||||
// this.selectedSpec.push({
|
||||
// id: item.spec_value[index2].id,
|
||||
// name: item.spec_value[index2].value
|
||||
// })
|
||||
// }
|
||||
// }
|
||||
// },
|
||||
|
||||
// 确认选择的规格
|
||||
confirm() {
|
||||
this.showPop = false
|
||||
this.$emit('confirm', {
|
||||
spec: this.selectedSpec
|
||||
})
|
||||
let { checkedGoods, goodsNum } = this;
|
||||
if (this.specValueText.indexOf("请选择") != -1)
|
||||
return this.$toast({
|
||||
title: this.specValueText,
|
||||
});
|
||||
if (checkedGoods.stock == 0)
|
||||
return this.$toast({
|
||||
title: "当前选择库存不足",
|
||||
});
|
||||
checkedGoods.goodsNum = goodsNum;
|
||||
this.$emit('buynow', {
|
||||
detail: checkedGoods,
|
||||
});
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@ -130,13 +222,70 @@
|
||||
set(val) {
|
||||
this.$emit('input', val)
|
||||
}
|
||||
}
|
||||
},
|
||||
specValueText() {
|
||||
let arr = this.checkedGoods.spec_value_ids?.split(",");
|
||||
let spec_str = "";
|
||||
if (arr)
|
||||
arr.forEach((item, index) => {
|
||||
if (item == "") spec_str += this.specList[index].name + ",";
|
||||
});
|
||||
if (this.checkedGoods?.stock != 0 && spec_str == "")
|
||||
return `已选规格:${this.checkedGoods.spec_value_str} ${this.goodsNum} 件`;
|
||||
else return `请选择 ${spec_str.slice(0, spec_str.length - 1)}`;
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
spec(val) {
|
||||
goods(value) {
|
||||
// 创建副本
|
||||
this.specBck = val
|
||||
this.specList = value.goods_spec || []
|
||||
let goodsItem = value.goods_item || []
|
||||
this.outOfStock = goodsItem.filter((item) => item.stock == 0)
|
||||
// 找出库存不为0的
|
||||
const resultArr = goodsItem.filter((item) => item.stock != 0)
|
||||
if (resultArr.length != 0) {
|
||||
resultArr[0].spec_value_ids_arr =
|
||||
resultArr[0].spec_value_ids.split(",");
|
||||
this.checkedGoods = resultArr[0];
|
||||
} else {
|
||||
// 无法选择
|
||||
goodsItem[0].spec_value_ids_arr = [];
|
||||
|
||||
this.disable = goodsItem.map((item) => item.spec_value_ids.split(","));
|
||||
this.checkedGoods = goodsItem[0];
|
||||
}
|
||||
},
|
||||
|
||||
specList(value) {
|
||||
if (this.checkedGoods.stock == 0) return;
|
||||
|
||||
const res = this.goods.goods_item.filter((item) => {
|
||||
return this.checkedGoods.spec_value_ids === item.spec_value_ids;
|
||||
});
|
||||
|
||||
// 库存为0的规格
|
||||
const idsArr = this.checkedGoods.spec_value_ids_arr;
|
||||
const outOfStock = this.outOfStock;
|
||||
// 找出规格相同和规格不相同的余数
|
||||
const getArrGather = this.getArrResult(idsArr, outOfStock);
|
||||
// 计算出缺货的规格项
|
||||
this.disable = this.getOutOfStockArr(getArrGather, idsArr);
|
||||
|
||||
if (res.length != 0) {
|
||||
console.log(res, "-----");
|
||||
|
||||
let result = JSON.parse(JSON.stringify(res[0]));
|
||||
result.spec_value_ids_arr = result.spec_value_ids.split(",");
|
||||
if (this.goodsNum > result.stock) {
|
||||
this.goodsNum = result.stock;
|
||||
}
|
||||
this.checkedGoods = result;
|
||||
// 同步到父组件
|
||||
this.$emit("change", {
|
||||
detail: this.checkedGoods,
|
||||
});
|
||||
}
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
@ -186,5 +335,10 @@
|
||||
border: 2rpx solid #F6F6F7;
|
||||
padding: 20rpx;
|
||||
}
|
||||
|
||||
// 底部按钮无法选择
|
||||
.disabled {
|
||||
opacity: 0.4;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@ -15,8 +15,8 @@ const IS_H5 = false
|
||||
const baseURLMap = {
|
||||
// 开发环境
|
||||
// development: 'https://likeshop-open.yixiangonline.com',
|
||||
development: 'http://admin.likeshop.com',
|
||||
// development: 'https://jianbing.stnav.com',
|
||||
// development: 'http://admin.likeshop.com',
|
||||
development: 'https://jianbing.stnav.com',
|
||||
// 生产环境https://php-b2c.likeshop.cn
|
||||
production: IS_H5 ? location.origin : ''
|
||||
}
|
||||
|
||||
@ -104,7 +104,7 @@
|
||||
code: wxCode,
|
||||
nickname: nickName || '', //支付宝小程序没有直接获取昵称
|
||||
headimgurl: avatarUrl,
|
||||
client
|
||||
// client
|
||||
})
|
||||
if (code == 1) {
|
||||
if (data.is_new_user) {
|
||||
|
||||
@ -1,7 +1,91 @@
|
||||
<template>
|
||||
<view class="px32">
|
||||
<view class="bg-white br16 p24 row u-m-t-32">
|
||||
<!-- 收货方式 -->
|
||||
<view class="bg-white br16 row u-m-t-32">
|
||||
<!-- <u-tabs
|
||||
:list="addressTabsList"
|
||||
:is-scroll="addressTabsList.length === 1"
|
||||
:current="addressTabsIndex"
|
||||
:active-color="primaryColor"
|
||||
bar-width="100"
|
||||
:bar-style="{ top: '100%' }"
|
||||
@change="changeDelivery"
|
||||
/> -->
|
||||
<!-- 快递配送 -->
|
||||
<view
|
||||
v-show="addressTabsList[addressTabsIndex]['sign'] === 'express'"
|
||||
class="u-flex p24 w-full"
|
||||
@click="onAddressExpress"
|
||||
>
|
||||
<view>
|
||||
<u-icon name="map" size="48" class="right-icon"></u-icon>
|
||||
</view>
|
||||
<view class="u-flex flex1 u-row-between">
|
||||
<view class="ml10">
|
||||
<template v-if="address.id">
|
||||
<view class="md black bold">
|
||||
<text>{{ address.contact }}</text>
|
||||
<text class="ml10">{{ address.telephone }}</text>
|
||||
</view>
|
||||
<view class="xs black mt10">{{
|
||||
address.province +
|
||||
address.city +
|
||||
address.district +
|
||||
address.address
|
||||
}}</view>
|
||||
</template>
|
||||
<template v-else>
|
||||
<view>请选择收货地址</view>
|
||||
</template>
|
||||
</view>
|
||||
<view >
|
||||
<u-icon class="ml10" name="arrow-right" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 门店自提 -->
|
||||
<!-- <view
|
||||
v-show="addressTabsList[addressTabsIndex]['sign'] === 'store'"
|
||||
class="receiving-card"
|
||||
@click="onAddressStore"
|
||||
>
|
||||
<u-image
|
||||
class="icon-md mr20"
|
||||
width="44"
|
||||
height="44"
|
||||
src="/static/images/icon_address.png"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
<view class="receiving-content">
|
||||
<template v-if="storeInfo.id">
|
||||
<text class="md black bold">{{ storeInfo.name }}</text>
|
||||
<text class="xs black mt10">{{ storeInfo.shop_address }}</text>
|
||||
<text class="xs muted mt10">
|
||||
<text>营业时间:</text>
|
||||
<text
|
||||
>{{ storeInfo.business_start_time }} -
|
||||
{{ storeInfo.business_end_time }}</text
|
||||
>
|
||||
</text>
|
||||
</template>
|
||||
<template v-else>
|
||||
<view>请选择门店地址</view>
|
||||
</template>
|
||||
</view>
|
||||
<u-icon name="arrow-right" />
|
||||
</view> -->
|
||||
</view>
|
||||
<view class="bg-white br16 row u-m-t-32">
|
||||
<order-goods
|
||||
:team="{ need: orderInfo.team_need }"
|
||||
:list="goodsLists"
|
||||
:delivery="delivery"
|
||||
:order_type="orderInfo.order_type"
|
||||
:imageWidth="260"
|
||||
:imageHeight="172"
|
||||
mode="comfirm"
|
||||
></order-goods>
|
||||
<!-- <view>
|
||||
<u-image :src="cloudPath + 'img/banner.png'" width="260" height="172"></u-image>
|
||||
</view>
|
||||
<view class="ml20 flex1">
|
||||
@ -18,7 +102,7 @@
|
||||
</view>
|
||||
<view class="num nr">X1</view>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
|
||||
<view class="bg-white br16 p24 u-m-t-32">
|
||||
@ -97,6 +181,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { orderBuy, getOrderCoupon, getDelivery } from '@/api/order'
|
||||
export default {
|
||||
data(){
|
||||
return {
|
||||
@ -106,10 +191,35 @@
|
||||
alipay: 0
|
||||
},
|
||||
showLoading: false, // Loading: 显示 | 隐藏
|
||||
goods: {}, // 商品信息
|
||||
// 地址Tabs列表
|
||||
addressTabsList: [
|
||||
{
|
||||
id: 1,
|
||||
sign: 'express',
|
||||
name: '快递配送'
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
sign: 'store',
|
||||
name: '门店自提'
|
||||
}
|
||||
],
|
||||
addressTabsIndex: 0, // 地址Tabs索引
|
||||
goodsLists: [], // 商品列表
|
||||
orderInfo: {}, // 订单信息
|
||||
address: {}, // 收货地址信息
|
||||
addressId: '', // 收货地址ID
|
||||
storeInfo: {}, // 门店信息
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
onLoad(options) {
|
||||
console.log("this.$>>>", this.$store.state.goods.buyGoods);
|
||||
const data = JSON.parse(decodeURIComponent(options.data))
|
||||
console.log("data>>>", data);
|
||||
this.goods = data.goods
|
||||
|
||||
//#ifdef MP-WEIXIN
|
||||
this.pay.weixin = 1
|
||||
//#endif
|
||||
@ -117,12 +227,93 @@
|
||||
//#ifdef MP-ALIPAY
|
||||
this.pay.alipay = 1
|
||||
//#endif
|
||||
|
||||
// 配送方式
|
||||
getDelivery()
|
||||
.then(({ code, data, msg }) => {
|
||||
// 请求结果判断
|
||||
if (code != 1) throw new Error(msg)
|
||||
return data
|
||||
})
|
||||
.then((data) => {
|
||||
// 快递
|
||||
if (!data.is_express) {
|
||||
this.addressTabsList = this.addressTabsList.filter(
|
||||
(item) => item.sign !== 'express'
|
||||
)
|
||||
}
|
||||
// 自提
|
||||
if (!data.is_selffetch) {
|
||||
this.addressTabsList = this.addressTabsList.filter(
|
||||
(item) => item.sign !== 'store'
|
||||
)
|
||||
}
|
||||
})
|
||||
// 页面数据初始化
|
||||
.then(() => {
|
||||
this.handleOrderMethods('info')
|
||||
this.initCouponData()
|
||||
})
|
||||
// 监听全局事件
|
||||
.then(() => {
|
||||
uni.$on('selectaddress', (params) => {
|
||||
this.addressId = params.id
|
||||
this.handleOrderMethods('info')
|
||||
})
|
||||
|
||||
uni.$on('payment', (params) => {
|
||||
setTimeout(() => {
|
||||
uni.$off('payment')
|
||||
|
||||
if (params.result) {
|
||||
uni.redirectTo({
|
||||
url: `/pages/pay_result/pay_result?id=${params.order_id}`
|
||||
})
|
||||
} else {
|
||||
uni.redirectTo({
|
||||
url: '/pages/user_order/user_order'
|
||||
})
|
||||
}
|
||||
}, 500)
|
||||
})
|
||||
|
||||
uni.$on('store', (params) => {
|
||||
this.storeInfo = params
|
||||
})
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(err)
|
||||
})
|
||||
},
|
||||
|
||||
onUnload() {
|
||||
// 取消全局监听
|
||||
uni.$off(['selectaddress', 'store'])
|
||||
},
|
||||
|
||||
methods: {
|
||||
appointmentTime() {
|
||||
this.timePopup = true
|
||||
},
|
||||
|
||||
// 初始化优惠券数据
|
||||
initCouponData() {
|
||||
getOrderCoupon({
|
||||
goods: this.goods
|
||||
})
|
||||
.then(({ code, data, msg }) => {
|
||||
if (code != 1) throw new Error(msg)
|
||||
return data
|
||||
})
|
||||
.then((data) => {
|
||||
this.usableCoupon = data.usable
|
||||
this.unusableCoupon = data.unusable
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(err)
|
||||
})
|
||||
},
|
||||
|
||||
// 点击订单提交
|
||||
onSubmitOrder() {
|
||||
uni.showModal({
|
||||
@ -138,6 +329,72 @@
|
||||
})
|
||||
},
|
||||
|
||||
// 订单处理
|
||||
handleOrderMethods(action) {
|
||||
// 订单提交数据
|
||||
const orderFrom = {
|
||||
action,
|
||||
goods: this.goods,
|
||||
delivery_type: this.delivery,
|
||||
use_integral: this.useIntegral,
|
||||
address_id: this.addressId,
|
||||
coupon_id: this.couponId,
|
||||
bargain_launch_id: this.bargainLaunchId == -1 ? '' : this.bargainLaunchId
|
||||
}
|
||||
|
||||
switch (action) {
|
||||
case 'info':
|
||||
this.initPageData(orderFrom)
|
||||
break
|
||||
case 'submit':
|
||||
this.handleOrderSubmit(orderFrom)
|
||||
break
|
||||
}
|
||||
},
|
||||
|
||||
// 初始化页面数据
|
||||
async initPageData(from) {
|
||||
this.showLoading = true
|
||||
|
||||
try {
|
||||
const { code, data, msg } = await orderBuy(from)
|
||||
|
||||
if (code == 1) {
|
||||
this.address = data.address
|
||||
this.goodsLists = data.goods_lists
|
||||
//TODO
|
||||
if (data.selffetch_info) {
|
||||
this.storeInfo = data.selffetch_info.selffetch_shop
|
||||
? data.selffetch_info.selffetch_shop
|
||||
: {}
|
||||
this.userConsignee = data.selffetch_info.contact
|
||||
this.userMobile = data.selffetch_info.mobile
|
||||
}
|
||||
|
||||
this.orderInfo = data
|
||||
this.$nextTick(() => {
|
||||
this.isFirstLoading = false
|
||||
})
|
||||
} else {
|
||||
throw new Error(msg)
|
||||
}
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
this.$toast({ title: '网络异常,请重新进入页面' })
|
||||
} finally {
|
||||
this.showLoading = false
|
||||
}
|
||||
},
|
||||
|
||||
// 点击选择收货地址
|
||||
onAddressExpress() {
|
||||
uni.navigateTo({
|
||||
url: `/bundle/pages/address/address?type=${1}`
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
|
||||
// 订单处理
|
||||
// handleOrderMethods(action) {
|
||||
// // 订单提交数据
|
||||
@ -185,7 +442,12 @@
|
||||
// this.showLoading = false
|
||||
// }
|
||||
// },
|
||||
},
|
||||
computed: {
|
||||
delivery() {
|
||||
return this.addressTabsList[this.addressTabsIndex]['id']
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@ -69,7 +69,7 @@
|
||||
<view>门店</view>
|
||||
</view>
|
||||
<view class="u-m-l-64 flex1">
|
||||
<u-button hover-class="none" @click="onBuy"
|
||||
<u-button hover-class="none" @click="showSpecFun"
|
||||
:customStyle="{height: '92rpx', fontSize: '24rpx', backgroundColor: themeColor, color: '#fff', border: 'none', paddingTop: '8rpx'}"
|
||||
:hair-line="false"
|
||||
shape="circle">
|
||||
@ -78,7 +78,7 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<shop-spec v-model="showSpec" :name="goods.name" :spec="goods.goods_spec" @close="showSpec = false" @confirm="confirmSpec"></shop-spec>
|
||||
<shop-spec v-model="showSpec" :name="goods.name" :goods="goods" @close="showSpec = false" @confirm="confirmSpec" @buynow="onBuy"></shop-spec>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@ -100,6 +100,7 @@
|
||||
showSpec: false,
|
||||
goods: [],
|
||||
spec: [],
|
||||
checkedGoods: {},
|
||||
}
|
||||
},
|
||||
|
||||
@ -139,20 +140,25 @@
|
||||
this.showSpec = false
|
||||
},
|
||||
|
||||
// 购买商品
|
||||
onBuy() {
|
||||
// 这里需压判断选购规格
|
||||
onChangeGoods(e) {
|
||||
console.log(e);
|
||||
this.checkedGoods = e.detail;
|
||||
},
|
||||
|
||||
// 选择规格
|
||||
showSpecFun() {
|
||||
if (!this.isLogin) return toLogin();
|
||||
this.$store.commit("setBuyGoods", {
|
||||
id: this.id, // 商品id
|
||||
num: 1, // 购买商品数量
|
||||
spec: this.spec // 选中的商品规格
|
||||
});
|
||||
|
||||
// console.log("this.$>>>", this.$store.state.goods.buyGoods);
|
||||
this.showSpec = true;
|
||||
},
|
||||
|
||||
// 购买商品
|
||||
onBuy(e) {
|
||||
let {id, goodsNum} = e.detail
|
||||
let goods = [{item_id: id, num: goodsNum}]
|
||||
const params = {goods}
|
||||
this.showSpec = false
|
||||
uni.navigateTo({
|
||||
url: `/pages/order_now/order_now`
|
||||
url: '/pages/order_now/order_now?data=' + encodeURIComponent((JSON.stringify(params)))
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@ -70,7 +70,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="u-m-l-24">
|
||||
<u-button @click="mpLogin" hover-class="none" :customStyle="{width: '228rpx', height: '80rpx', backgroundColor: themeColor, color: '#fff', border: 'none', padding: '16rpx 0', borderRadius: '64rpx'}" :hair-line="false">结算</u-button>
|
||||
<u-button @click="goToConfirm" hover-class="none" :customStyle="{width: '228rpx', height: '80rpx', backgroundColor: themeColor, color: '#fff', border: 'none', padding: '16rpx 0', borderRadius: '64rpx'}" :hair-line="false">结算</u-button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -175,6 +175,11 @@
|
||||
});
|
||||
},
|
||||
|
||||
// 选择单个商品
|
||||
changOneSelect(cartId, selected) {
|
||||
selected = !selected;
|
||||
this.changeCartSelectFun([cartId], selected);
|
||||
},
|
||||
|
||||
// 更改全选状态
|
||||
changeAllSelect() {
|
||||
@ -200,10 +205,8 @@
|
||||
|
||||
// 去结算
|
||||
goToConfirm() {
|
||||
let {
|
||||
cartLists
|
||||
} = this;
|
||||
let goods = [];
|
||||
let {cartLists} = this
|
||||
let goods = []
|
||||
cartLists.forEach((item) => {
|
||||
if (item.selected && item.cart_status == 0) {
|
||||
goods.push({
|
||||
@ -212,19 +215,20 @@
|
||||
});
|
||||
}
|
||||
});
|
||||
if (goods.length == 0)
|
||||
return this.$toast({
|
||||
console.log("this.cartList>>>", goods);
|
||||
|
||||
if (goods.length == 0) return this.$toast({
|
||||
title: "您还没有选择商品哦",
|
||||
});
|
||||
uni.navigateTo({
|
||||
url: "/pages/confirm_order/confirm_order?data=" +
|
||||
encodeURIComponent(
|
||||
JSON.stringify({
|
||||
goods,
|
||||
type: "cart",
|
||||
})
|
||||
),
|
||||
});
|
||||
// uni.navigateTo({
|
||||
// url: "/pages/confirm_order/confirm_order?data=" +
|
||||
// encodeURIComponent(
|
||||
// JSON.stringify({
|
||||
// goods,
|
||||
// type: "cart",
|
||||
// })
|
||||
// ),
|
||||
// });
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
unpackage/dist/dev/.sourcemap/mp-weixin/components/order-goods/order-goods.js.map
vendored
Normal file
1
unpackage/dist/dev/.sourcemap/mp-weixin/components/order-goods/order-goods.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -105,11 +105,11 @@
|
||||
/******/
|
||||
/******/
|
||||
/******/ // mini-css-extract-plugin CSS loading
|
||||
/******/ var cssChunks = {"components/mescroll-uni/mescroll-body":1,"components/mescroll-uni/mescroll-uni":1,"components/uview-ui/components/u-button/u-button":1,"components/uview-ui/components/u-icon/u-icon":1,"components/uview-ui/components/u-image/u-image":1,"components/uview-ui/components/u-swiper/u-swiper":1,"components/uview-ui/components/u-tabs/u-tabs":1,"components/uview-ui/components/u-number-box/u-number-box":1,"components/uview-ui/components/u-avatar/u-avatar":1,"components/uview-ui/components/u-grid-item/u-grid-item":1,"components/uview-ui/components/u-grid/u-grid":1,"components/uview-ui/components/u-line/u-line":1,"components/mobile-login/mobile-login":1,"components/mplogin/mplogin":1,"components/uview-ui/components/u-checkbox/u-checkbox":1,"components/uview-ui/components/u-form-item/u-form-item":1,"components/uview-ui/components/u-input/u-input":1,"components/uview-ui/components/u-form/u-form":1,"components/uview-ui/components/u-verification-code/u-verification-code":1,"components/uview-ui/components/u-parse/u-parse":1,"components/uview-ui/components/u-tag/u-tag":1,"components/cate-one/cate-one":1,"components/uview-ui/components/u-search/u-search":1,"components/shop-spec/shop-spec":1,"components/uview-ui/components/u-popup/u-popup":1,"components/uview-ui/components/u-sticky/u-sticky":1,"components/appointment-time/appointment-time":1,"components/uview-ui/components/u-radio-group/u-radio-group":1,"components/uview-ui/components/u-radio/u-radio":1,"components/loading-footer/loading-footer":1,"components/loading-view/loading-view":1,"components/uview-ui/components/u-navbar/u-navbar":1,"components/uview-ui/components/u-count-down/u-count-down":1,"components/uview-ui/components/u-loading/u-loading":1,"components/uview-ui/components/u-skeleton/u-skeleton":1,"components/uview-ui/components/u-cell-group/u-cell-group":1,"components/uview-ui/components/u-cell-item/u-cell-item":1,"components/uview-ui/components/u-modal/u-modal":1,"components/uview-ui/components/u-select/u-select":1,"components/mescroll-uni/components/mescroll-empty":1,"components/mescroll-uni/components/mescroll-top":1,"components/uview-ui/components/u-badge/u-badge":1,"components/uview-ui/components/u-parse/libs/trees":1,"components/uview-ui/components/u-mask/u-mask":1,"components/loading/loading":1};
|
||||
/******/ var cssChunks = {"components/mescroll-uni/mescroll-body":1,"components/mescroll-uni/mescroll-uni":1,"components/uview-ui/components/u-button/u-button":1,"components/uview-ui/components/u-icon/u-icon":1,"components/uview-ui/components/u-image/u-image":1,"components/uview-ui/components/u-swiper/u-swiper":1,"components/uview-ui/components/u-tabs/u-tabs":1,"components/uview-ui/components/u-number-box/u-number-box":1,"components/uview-ui/components/u-avatar/u-avatar":1,"components/uview-ui/components/u-grid-item/u-grid-item":1,"components/uview-ui/components/u-grid/u-grid":1,"components/uview-ui/components/u-line/u-line":1,"components/mobile-login/mobile-login":1,"components/mplogin/mplogin":1,"components/uview-ui/components/u-checkbox/u-checkbox":1,"components/uview-ui/components/u-form-item/u-form-item":1,"components/uview-ui/components/u-input/u-input":1,"components/uview-ui/components/u-form/u-form":1,"components/uview-ui/components/u-verification-code/u-verification-code":1,"components/uview-ui/components/u-parse/u-parse":1,"components/uview-ui/components/u-tag/u-tag":1,"components/cate-one/cate-one":1,"components/uview-ui/components/u-search/u-search":1,"components/shop-spec/shop-spec":1,"components/uview-ui/components/u-popup/u-popup":1,"components/uview-ui/components/u-sticky/u-sticky":1,"components/uview-ui/components/u-radio-group/u-radio-group":1,"components/appointment-time/appointment-time":1,"components/order-goods/order-goods":1,"components/uview-ui/components/u-radio/u-radio":1,"components/loading-footer/loading-footer":1,"components/loading-view/loading-view":1,"components/uview-ui/components/u-navbar/u-navbar":1,"components/uview-ui/components/u-count-down/u-count-down":1,"components/uview-ui/components/u-loading/u-loading":1,"components/uview-ui/components/u-skeleton/u-skeleton":1,"components/uview-ui/components/u-cell-group/u-cell-group":1,"components/uview-ui/components/u-cell-item/u-cell-item":1,"components/uview-ui/components/u-modal/u-modal":1,"components/uview-ui/components/u-select/u-select":1,"components/mescroll-uni/components/mescroll-empty":1,"components/mescroll-uni/components/mescroll-top":1,"components/uview-ui/components/u-badge/u-badge":1,"components/uview-ui/components/u-parse/libs/trees":1,"components/uview-ui/components/u-mask/u-mask":1,"components/loading/loading":1};
|
||||
/******/ if(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);
|
||||
/******/ else if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {
|
||||
/******/ promises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {
|
||||
/******/ var href = "" + ({"components/mescroll-uni/mescroll-body":"components/mescroll-uni/mescroll-body","components/mescroll-uni/mescroll-uni":"components/mescroll-uni/mescroll-uni","components/uview-ui/components/u-button/u-button":"components/uview-ui/components/u-button/u-button","components/uview-ui/components/u-icon/u-icon":"components/uview-ui/components/u-icon/u-icon","components/uview-ui/components/u-image/u-image":"components/uview-ui/components/u-image/u-image","components/uview-ui/components/u-swiper/u-swiper":"components/uview-ui/components/u-swiper/u-swiper","components/uview-ui/components/u-tabs/u-tabs":"components/uview-ui/components/u-tabs/u-tabs","components/order-list/order-list":"components/order-list/order-list","components/price-format/price-format":"components/price-format/price-format","components/uview-ui/components/u-number-box/u-number-box":"components/uview-ui/components/u-number-box/u-number-box","components/uview-ui/components/u-avatar/u-avatar":"components/uview-ui/components/u-avatar/u-avatar","components/uview-ui/components/u-grid-item/u-grid-item":"components/uview-ui/components/u-grid-item/u-grid-item","components/uview-ui/components/u-grid/u-grid":"components/uview-ui/components/u-grid/u-grid","components/uview-ui/components/u-line/u-line":"components/uview-ui/components/u-line/u-line","components/mobile-login/mobile-login":"components/mobile-login/mobile-login","components/mplogin/mplogin":"components/mplogin/mplogin","components/uview-ui/components/u-checkbox/u-checkbox":"components/uview-ui/components/u-checkbox/u-checkbox","components/uview-ui/components/u-form-item/u-form-item":"components/uview-ui/components/u-form-item/u-form-item","components/uview-ui/components/u-input/u-input":"components/uview-ui/components/u-input/u-input","components/uview-ui/components/u-form/u-form":"components/uview-ui/components/u-form/u-form","components/uview-ui/components/u-verification-code/u-verification-code":"components/uview-ui/components/u-verification-code/u-verification-code","components/uview-ui/components/u-parse/u-parse":"components/uview-ui/components/u-parse/u-parse","components/uview-ui/components/u-tag/u-tag":"components/uview-ui/components/u-tag/u-tag","components/cate-one/cate-one":"components/cate-one/cate-one","components/uview-ui/components/u-search/u-search":"components/uview-ui/components/u-search/u-search","components/shop-spec/shop-spec":"components/shop-spec/shop-spec","components/uview-ui/components/u-popup/u-popup":"components/uview-ui/components/u-popup/u-popup","components/uview-ui/components/u-sticky/u-sticky":"components/uview-ui/components/u-sticky/u-sticky","components/appointment-time/appointment-time":"components/appointment-time/appointment-time","components/uview-ui/components/u-radio-group/u-radio-group":"components/uview-ui/components/u-radio-group/u-radio-group","components/uview-ui/components/u-radio/u-radio":"components/uview-ui/components/u-radio/u-radio","components/loading-footer/loading-footer":"components/loading-footer/loading-footer","components/loading-view/loading-view":"components/loading-view/loading-view","components/uview-ui/components/u-navbar/u-navbar":"components/uview-ui/components/u-navbar/u-navbar","components/uview-ui/components/u-count-down/u-count-down":"components/uview-ui/components/u-count-down/u-count-down","components/uview-ui/components/u-loading/u-loading":"components/uview-ui/components/u-loading/u-loading","components/uview-ui/components/u-skeleton/u-skeleton":"components/uview-ui/components/u-skeleton/u-skeleton","components/uview-ui/components/u-cell-group/u-cell-group":"components/uview-ui/components/u-cell-group/u-cell-group","components/uview-ui/components/u-cell-item/u-cell-item":"components/uview-ui/components/u-cell-item/u-cell-item","components/uview-ui/components/u-modal/u-modal":"components/uview-ui/components/u-modal/u-modal","components/uview-ui/components/u-select/u-select":"components/uview-ui/components/u-select/u-select","components/mescroll-uni/components/mescroll-empty":"components/mescroll-uni/components/mescroll-empty","components/mescroll-uni/components/mescroll-top":"components/mescroll-uni/components/mescroll-top","components/uview-ui/components/u-badge/u-badge":"components/uview-ui/components/u-badge/u-badge","components/uview-ui/components/u-parse/libs/trees":"components/uview-ui/components/u-parse/libs/trees","components/uview-ui/components/u-mask/u-mask":"components/uview-ui/components/u-mask/u-mask","components/loading/loading":"components/loading/loading"}[chunkId]||chunkId) + ".wxss";
|
||||
/******/ var href = "" + ({"components/mescroll-uni/mescroll-body":"components/mescroll-uni/mescroll-body","components/mescroll-uni/mescroll-uni":"components/mescroll-uni/mescroll-uni","components/uview-ui/components/u-button/u-button":"components/uview-ui/components/u-button/u-button","components/uview-ui/components/u-icon/u-icon":"components/uview-ui/components/u-icon/u-icon","components/uview-ui/components/u-image/u-image":"components/uview-ui/components/u-image/u-image","components/uview-ui/components/u-swiper/u-swiper":"components/uview-ui/components/u-swiper/u-swiper","components/uview-ui/components/u-tabs/u-tabs":"components/uview-ui/components/u-tabs/u-tabs","components/order-list/order-list":"components/order-list/order-list","components/price-format/price-format":"components/price-format/price-format","components/uview-ui/components/u-number-box/u-number-box":"components/uview-ui/components/u-number-box/u-number-box","components/uview-ui/components/u-avatar/u-avatar":"components/uview-ui/components/u-avatar/u-avatar","components/uview-ui/components/u-grid-item/u-grid-item":"components/uview-ui/components/u-grid-item/u-grid-item","components/uview-ui/components/u-grid/u-grid":"components/uview-ui/components/u-grid/u-grid","components/uview-ui/components/u-line/u-line":"components/uview-ui/components/u-line/u-line","components/mobile-login/mobile-login":"components/mobile-login/mobile-login","components/mplogin/mplogin":"components/mplogin/mplogin","components/uview-ui/components/u-checkbox/u-checkbox":"components/uview-ui/components/u-checkbox/u-checkbox","components/uview-ui/components/u-form-item/u-form-item":"components/uview-ui/components/u-form-item/u-form-item","components/uview-ui/components/u-input/u-input":"components/uview-ui/components/u-input/u-input","components/uview-ui/components/u-form/u-form":"components/uview-ui/components/u-form/u-form","components/uview-ui/components/u-verification-code/u-verification-code":"components/uview-ui/components/u-verification-code/u-verification-code","components/uview-ui/components/u-parse/u-parse":"components/uview-ui/components/u-parse/u-parse","components/uview-ui/components/u-tag/u-tag":"components/uview-ui/components/u-tag/u-tag","components/cate-one/cate-one":"components/cate-one/cate-one","components/uview-ui/components/u-search/u-search":"components/uview-ui/components/u-search/u-search","components/shop-spec/shop-spec":"components/shop-spec/shop-spec","components/uview-ui/components/u-popup/u-popup":"components/uview-ui/components/u-popup/u-popup","components/uview-ui/components/u-sticky/u-sticky":"components/uview-ui/components/u-sticky/u-sticky","components/uview-ui/components/u-radio-group/u-radio-group":"components/uview-ui/components/u-radio-group/u-radio-group","components/appointment-time/appointment-time":"components/appointment-time/appointment-time","components/order-goods/order-goods":"components/order-goods/order-goods","components/uview-ui/components/u-radio/u-radio":"components/uview-ui/components/u-radio/u-radio","components/loading-footer/loading-footer":"components/loading-footer/loading-footer","components/loading-view/loading-view":"components/loading-view/loading-view","components/uview-ui/components/u-navbar/u-navbar":"components/uview-ui/components/u-navbar/u-navbar","components/uview-ui/components/u-count-down/u-count-down":"components/uview-ui/components/u-count-down/u-count-down","components/uview-ui/components/u-loading/u-loading":"components/uview-ui/components/u-loading/u-loading","components/uview-ui/components/u-skeleton/u-skeleton":"components/uview-ui/components/u-skeleton/u-skeleton","components/uview-ui/components/u-cell-group/u-cell-group":"components/uview-ui/components/u-cell-group/u-cell-group","components/uview-ui/components/u-cell-item/u-cell-item":"components/uview-ui/components/u-cell-item/u-cell-item","components/uview-ui/components/u-modal/u-modal":"components/uview-ui/components/u-modal/u-modal","components/uview-ui/components/u-select/u-select":"components/uview-ui/components/u-select/u-select","components/mescroll-uni/components/mescroll-empty":"components/mescroll-uni/components/mescroll-empty","components/mescroll-uni/components/mescroll-top":"components/mescroll-uni/components/mescroll-top","components/uview-ui/components/u-badge/u-badge":"components/uview-ui/components/u-badge/u-badge","components/uview-ui/components/u-parse/libs/trees":"components/uview-ui/components/u-parse/libs/trees","components/uview-ui/components/u-mask/u-mask":"components/uview-ui/components/u-mask/u-mask","components/loading/loading":"components/loading/loading"}[chunkId]||chunkId) + ".wxss";
|
||||
/******/ var fullhref = __webpack_require__.p + href;
|
||||
/******/ var existingLinkTags = document.getElementsByTagName("link");
|
||||
/******/ for(var i = 0; i < existingLinkTags.length; i++) {
|
||||
|
||||
123
unpackage/dist/dev/mp-weixin/common/vendor.js
vendored
123
unpackage/dist/dev/mp-weixin/common/vendor.js
vendored
@ -33182,8 +33182,8 @@ var IS_H5 = false;
|
||||
var baseURLMap = {
|
||||
// 开发环境
|
||||
// development: 'https://likeshop-open.yixiangonline.com',
|
||||
development: 'http://admin.likeshop.com',
|
||||
// development: 'https://jianbing.stnav.com',
|
||||
// development: 'http://admin.likeshop.com',
|
||||
development: 'https://jianbing.stnav.com',
|
||||
// 生产环境https://php-b2c.likeshop.cn
|
||||
production: IS_H5 ? location.origin : ''
|
||||
};
|
||||
@ -38275,6 +38275,125 @@ function getParent(name, keys) {
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 750:
|
||||
/*!*************************************************!*\
|
||||
!*** D:/Hbuilder/Project/jianbing/api/order.js ***!
|
||||
\*************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
|
||||
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.cancelOrder = cancelOrder;
|
||||
exports.confirmOrder = confirmOrder;
|
||||
exports.delOrder = delOrder;
|
||||
exports.getDelivery = getDelivery;
|
||||
exports.getOrderCoupon = getOrderCoupon;
|
||||
exports.getOrderDetail = getOrderDetail;
|
||||
exports.getOrderList = getOrderList;
|
||||
exports.getVerifyLists = getVerifyLists;
|
||||
exports.getwechatSyncCheck = getwechatSyncCheck;
|
||||
exports.getwxReceiveDetail = getwxReceiveDetail;
|
||||
exports.orderBuy = orderBuy;
|
||||
exports.orderTraces = orderTraces;
|
||||
exports.verification = verification;
|
||||
exports.verificationConfirm = verificationConfirm;
|
||||
var _request = _interopRequireDefault(__webpack_require__(/*! @/utils/request */ 35));
|
||||
var _tools = __webpack_require__(/*! @/utils/tools */ 41);
|
||||
//下单
|
||||
function orderBuy(data) {
|
||||
return _request.default.post("order/buy", data);
|
||||
}
|
||||
//删除订单
|
||||
function delOrder(id) {
|
||||
return _request.default.post("order/del", {
|
||||
id: id
|
||||
});
|
||||
}
|
||||
|
||||
// 获取配送方式
|
||||
function getDelivery() {
|
||||
return _request.default.get("order/getDeliveryType");
|
||||
}
|
||||
|
||||
//订单列表
|
||||
function getOrderList(data) {
|
||||
return _request.default.get("order/lists", {
|
||||
params: data
|
||||
});
|
||||
}
|
||||
//订单详情
|
||||
function getOrderDetail(id) {
|
||||
return _request.default.get("order/detail", {
|
||||
params: {
|
||||
id: id
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
//取消订单
|
||||
function cancelOrder(id) {
|
||||
return _request.default.post("order/cancel", {
|
||||
id: id
|
||||
});
|
||||
}
|
||||
|
||||
//物流
|
||||
function orderTraces(id) {
|
||||
return _request.default.get("order/orderTraces", {
|
||||
params: {
|
||||
id: id
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
//确认收货
|
||||
function confirmOrder(id) {
|
||||
return _request.default.post("order/confirm", {
|
||||
id: id
|
||||
});
|
||||
}
|
||||
|
||||
//下单获取优惠券
|
||||
function getOrderCoupon(data) {
|
||||
return _request.default.post("coupon/orderCoupon", data);
|
||||
}
|
||||
|
||||
// 核销订单
|
||||
function getVerifyLists(data) {
|
||||
return _request.default.get("order/verificationLists", {
|
||||
params: data
|
||||
});
|
||||
}
|
||||
// 核销详情
|
||||
function verification(data) {
|
||||
return _request.default.post("order/verification", data);
|
||||
}
|
||||
|
||||
// 确认核销
|
||||
function verificationConfirm(data) {
|
||||
return _request.default.post("order/verificationConfirm", data);
|
||||
}
|
||||
//确认收货组件
|
||||
function getwxReceiveDetail(params) {
|
||||
return _request.default.get("order/wxReceiveDetail", {
|
||||
params: params
|
||||
});
|
||||
}
|
||||
//查询确认收货
|
||||
function getwechatSyncCheck(params) {
|
||||
return _request.default.get("order/wechatSyncCheck", {
|
||||
params: params
|
||||
});
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 76:
|
||||
/*!*********************************************************************************!*\
|
||||
!*** D:/Hbuilder/Project/jianbing/components/uview-ui/libs/function/$parent.js ***!
|
||||
|
||||
369
unpackage/dist/dev/mp-weixin/components/order-goods/order-goods.js
vendored
Normal file
369
unpackage/dist/dev/mp-weixin/components/order-goods/order-goods.js
vendored
Normal file
@ -0,0 +1,369 @@
|
||||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["components/order-goods/order-goods"],{
|
||||
|
||||
/***/ 751:
|
||||
/*!***************************************************************************!*\
|
||||
!*** D:/Hbuilder/Project/jianbing/components/order-goods/order-goods.vue ***!
|
||||
\***************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _order_goods_vue_vue_type_template_id_5a796134___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./order-goods.vue?vue&type=template&id=5a796134& */ 752);
|
||||
/* harmony import */ var _order_goods_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./order-goods.vue?vue&type=script&lang=js& */ 754);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _order_goods_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _order_goods_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
/* harmony import */ var _order_goods_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./order-goods.vue?vue&type=style&index=0&lang=scss& */ 756);
|
||||
/* harmony import */ var _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 54);
|
||||
|
||||
var renderjs
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
|
||||
_order_goods_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
||||
_order_goods_vue_vue_type_template_id_5a796134___WEBPACK_IMPORTED_MODULE_0__["render"],
|
||||
_order_goods_vue_vue_type_template_id_5a796134___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
false,
|
||||
_order_goods_vue_vue_type_template_id_5a796134___WEBPACK_IMPORTED_MODULE_0__["components"],
|
||||
renderjs
|
||||
)
|
||||
|
||||
component.options.__file = "components/order-goods/order-goods.vue"
|
||||
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 752:
|
||||
/*!**********************************************************************************************************!*\
|
||||
!*** D:/Hbuilder/Project/jianbing/components/order-goods/order-goods.vue?vue&type=template&id=5a796134& ***!
|
||||
\**********************************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_order_goods_vue_vue_type_template_id_5a796134___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./order-goods.vue?vue&type=template&id=5a796134& */ 753);
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_order_goods_vue_vue_type_template_id_5a796134___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_order_goods_vue_vue_type_template_id_5a796134___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_order_goods_vue_vue_type_template_id_5a796134___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_order_goods_vue_vue_type_template_id_5a796134___WEBPACK_IMPORTED_MODULE_0__["components"]; });
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 753:
|
||||
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Hbuilder/Project/jianbing/components/order-goods/order-goods.vue?vue&type=template&id=5a796134& ***!
|
||||
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
|
||||
var components
|
||||
try {
|
||||
components = {
|
||||
uImage: function () {
|
||||
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-image/u-image */ "components/uview-ui/components/u-image/u-image").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-image/u-image.vue */ 375))
|
||||
},
|
||||
uTag: function () {
|
||||
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-tag/u-tag */ "components/uview-ui/components/u-tag/u-tag").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-tag/u-tag.vue */ 497))
|
||||
},
|
||||
priceFormat: function () {
|
||||
return __webpack_require__.e(/*! import() | components/price-format/price-format */ "components/price-format/price-format").then(__webpack_require__.bind(null, /*! @/components/price-format/price-format.vue */ 394))
|
||||
},
|
||||
}
|
||||
} catch (e) {
|
||||
if (
|
||||
e.message.indexOf("Cannot find module") !== -1 &&
|
||||
e.message.indexOf(".vue") !== -1
|
||||
) {
|
||||
console.error(e.message)
|
||||
console.error("1. 排查组件名称拼写是否正确")
|
||||
console.error(
|
||||
"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"
|
||||
)
|
||||
console.error(
|
||||
"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件"
|
||||
)
|
||||
} else {
|
||||
throw e
|
||||
}
|
||||
}
|
||||
var render = function () {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
}
|
||||
var recyclableRender = false
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 754:
|
||||
/*!****************************************************************************************************!*\
|
||||
!*** D:/Hbuilder/Project/jianbing/components/order-goods/order-goods.vue?vue&type=script&lang=js& ***!
|
||||
\****************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_order_goods_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./order-goods.vue?vue&type=script&lang=js& */ 755);
|
||||
/* harmony import */ var _HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_order_goods_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_order_goods_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_order_goods_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_order_goods_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
/* harmony default export */ __webpack_exports__["default"] = (_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_order_goods_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 755:
|
||||
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Hbuilder/Project/jianbing/components/order-goods/order-goods.vue?vue&type=script&lang=js& ***!
|
||||
\***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* WEBPACK VAR INJECTION */(function(uni) {
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
var _default2 = {
|
||||
data: function data() {
|
||||
return {};
|
||||
},
|
||||
components: {},
|
||||
props: {
|
||||
list: {
|
||||
type: Array,
|
||||
default: function _default() {
|
||||
return [];
|
||||
}
|
||||
},
|
||||
link: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
team: {
|
||||
type: [Object, Array],
|
||||
default: function _default() {
|
||||
return {};
|
||||
}
|
||||
},
|
||||
delivery: {
|
||||
type: Number,
|
||||
default: 1
|
||||
},
|
||||
// order | comfirm
|
||||
mode: {
|
||||
type: String,
|
||||
default: 'order'
|
||||
},
|
||||
order_type: {
|
||||
type: Number,
|
||||
default: 0
|
||||
},
|
||||
imageWidth: {
|
||||
type: Number,
|
||||
default: 180
|
||||
},
|
||||
imageHeight: {
|
||||
type: Number,
|
||||
default: 180
|
||||
},
|
||||
imageRadius: {
|
||||
type: Number,
|
||||
default: 0
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
toGoods: function toGoods(id) {
|
||||
if (!this.link) return;
|
||||
uni.navigateTo({
|
||||
url: "/pages/goods_details/goods_details?id=".concat(id)
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
exports.default = _default2;
|
||||
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 756:
|
||||
/*!*************************************************************************************************************!*\
|
||||
!*** D:/Hbuilder/Project/jianbing/components/order-goods/order-goods.vue?vue&type=style&index=0&lang=scss& ***!
|
||||
\*************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_order_goods_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--8-oneOf-1-3!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./order-goods.vue?vue&type=style&index=0&lang=scss& */ 757);
|
||||
/* harmony import */ var _HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_order_goods_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_order_goods_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_order_goods_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_order_goods_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
/* harmony default export */ __webpack_exports__["default"] = (_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_order_goods_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 757:
|
||||
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Hbuilder/Project/jianbing/components/order-goods/order-goods.vue?vue&type=style&index=0&lang=scss& ***!
|
||||
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// extracted by mini-css-extract-plugin
|
||||
if(false) { var cssReload; }
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/order-goods/order-goods.js.map
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/order-goods/order-goods-create-component',
|
||||
{
|
||||
'components/order-goods/order-goods-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('2')['createComponent'](__webpack_require__(751))
|
||||
})
|
||||
},
|
||||
[['components/order-goods/order-goods-create-component']]
|
||||
]);
|
||||
8
unpackage/dist/dev/mp-weixin/components/order-goods/order-goods.json
vendored
Normal file
8
unpackage/dist/dev/mp-weixin/components/order-goods/order-goods.json
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"u-image": "/components/uview-ui/components/u-image/u-image",
|
||||
"u-tag": "/components/uview-ui/components/u-tag/u-tag",
|
||||
"price-format": "/components/price-format/price-format"
|
||||
},
|
||||
"component": true
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/components/order-goods/order-goods.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/components/order-goods/order-goods.wxml
vendored
Normal file
@ -0,0 +1 @@
|
||||
<view class="order-goods bg-white"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="item-wrap"><view data-event-opts="{{[['tap',[['toGoods',['$0'],[[['list','',index,'goods_id']]]]]]]}}" class="item row" bindtap="__e"><view class="goods-img"><u-image vue-id="{{'1699735c-1-'+index}}" src="{{item.image_str||item.image}}" width="{{imageWidth}}" height="{{imageHeight}}" border-radius="{{imageRadius}}" lazy-load="{{true}}" bind:__l="__l"></u-image></view><view class="goods-info ml20 flex1"><view class="goods-name line2 mb10"><block wx:if="{{team.need}}"><u-tag class="mr10" vue-id="{{'1699735c-2-'+index}}" text="{{team.need+'人团'}}" size="mini" type="primary" mode="plain" bind:__l="__l"></u-tag></block>{{''+(item.goods_name||item.name)}}</view><view class="goods-spec xs muted mb20">{{item.spec_value_str||item.spec_value}}</view><view class="row-between"><view class="goods-price row"><view class="primary"><block wx:if="{{!item.is_member&&order_type===0}}"><price-format vue-id="{{'1699735c-3-'+index}}" weight="{{500}}" subscript-size="{{24}}" first-size="{{34}}" second-size="{{24}}" price="{{item.original_price||item.goods_price}}" bind:__l="__l"></price-format></block></view><block wx:if="{{item.is_member&&order_type===0}}"><view class="vip-price row"><view class="price-name xxs">会员价</view><view style="padding:0 10rpx;"><price-format vue-id="{{'1699735c-4-'+index}}" price="{{item.goods_price}}" first-size="{{22}}" second-size="{{22}}" subscript-size="{{22}}" weight="{{500}}" color="#7B3200" bind:__l="__l"></price-format></view></view></block><block wx:if="{{order_type===1||order_type===2||order_type===3}}"><view class="vip-price row"><view class="price-name xxs" style="background-color:#e74346;"><block wx:if="{{order_type===1}}"><text>秒杀价</text></block><block wx:if="{{order_type===2}}"><text>拼团价</text></block><block wx:if="{{order_type===3}}"><text>砍价</text></block></view><view style="padding:0 10rpx;"><price-format vue-id="{{'1699735c-5-'+index}}" price="{{item.goods_price}}" first-size="{{22}}" second-size="{{22}}" subscript-size="{{22}}" weight="{{500}}" color="#7B3200" bind:__l="__l"></price-format></view></view></block></view><view class="goods-num sm">{{"x"+item.goods_num}}</view></view></view></view><block wx:if="{{mode==='comfirm'}}"><block wx:if="{{delivery===1&&!item.is_express}}"><view class="delivery">该商品不支持快递配送</view></block><block wx:if="{{delivery===2&&!item.is_selffetch}}"><view class="delivery">该商品不支持门店自提</view></block></block><block wx:if="{{link}}"><view class="goods-footer row"><view style="flex:1;"></view><block wx:if="{{item.comment_btn}}"><navigator class="mr20" hover-class="none" url="{{'/bundle/pages/goods_reviews/goods_reviews?id='+item.id}}"><button class="plain br60" size="xs" hover-class="none">评价晒图</button></navigator></block><block wx:if="{{item.refund_btn}}"><navigator hover-class="none" url="{{'/bundle/pages/apply_refund/apply_refund?order_id='+item.order_id+'&item_id='+item.item_id}}"><button class="plain br60" size="xs" hover-class="none">申请退款</button></navigator></block><block wx:if="{{item.after_status_desc}}"><view style="color:orange;">{{''+item.after_status_desc+''}}</view></block></view></block></view></block></view>
|
||||
66
unpackage/dist/dev/mp-weixin/components/order-goods/order-goods.wxss
vendored
Normal file
66
unpackage/dist/dev/mp-weixin/components/order-goods/order-goods.wxss
vendored
Normal file
@ -0,0 +1,66 @@
|
||||
@charset "UTF-8";
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
.order-goods .item {
|
||||
padding: 20rpx 24rpx;
|
||||
}
|
||||
.order-goods .item .vip-price {
|
||||
background-color: #ffe9ba;
|
||||
line-height: 30rpx;
|
||||
border-radius: 6rpx;
|
||||
overflow: hidden;
|
||||
}
|
||||
.order-goods .item .vip-price .price-name {
|
||||
background-color: #101010;
|
||||
padding: 3rpx 10rpx;
|
||||
color: #ffd4b7;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.order-goods .item .vip-price .price-name::after {
|
||||
content: '';
|
||||
display: block;
|
||||
width: 20rpx;
|
||||
height: 20rpx;
|
||||
position: absolute;
|
||||
right: -15rpx;
|
||||
background-color: #ffe9ba;
|
||||
border-radius: 50%;
|
||||
top: 50%;
|
||||
-webkit-transform: translateY(-50%);
|
||||
transform: translateY(-50%);
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.order-goods .goods-footer {
|
||||
height: 70rpx;
|
||||
align-items: flex-start;
|
||||
padding: 0 24rpx;
|
||||
}
|
||||
.order-goods .goods-footer .plain {
|
||||
border: 1px solid #999;
|
||||
height: 52rpx;
|
||||
line-height: 52rpx;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
.order-goods .delivery {
|
||||
display: inline-block;
|
||||
margin-left: calc(180rpx + 20rpx * 2);
|
||||
padding: 4rpx 15rpx;
|
||||
border-radius: 60px;
|
||||
font-size: 20rpx;
|
||||
background-color: #f4f4f4;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
@ -82,6 +82,9 @@ try {
|
||||
uPopup: function () {
|
||||
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-popup/u-popup */ "components/uview-ui/components/u-popup/u-popup").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-popup/u-popup.vue */ 532))
|
||||
},
|
||||
uNumberBox: function () {
|
||||
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-number-box/u-number-box */ "components/uview-ui/components/u-number-box/u-number-box").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-number-box/u-number-box.vue */ 399))
|
||||
},
|
||||
uButton: function () {
|
||||
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-button/u-button */ "components/uview-ui/components/u-button/u-button").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-button/u-button.vue */ 361))
|
||||
},
|
||||
@ -107,6 +110,8 @@ var render = function () {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
var g0 =
|
||||
_vm.specValueText.indexOf("请选择") != -1 || _vm.checkedGoods.stock == 0
|
||||
var a0 = {
|
||||
color: _vm.themeColor,
|
||||
border: "1px solid " + _vm.themeColor,
|
||||
@ -116,6 +121,7 @@ var render = function () {
|
||||
{},
|
||||
{
|
||||
$root: {
|
||||
g0: g0,
|
||||
a0: a0,
|
||||
},
|
||||
}
|
||||
@ -155,10 +161,12 @@ __webpack_require__.r(__webpack_exports__);
|
||||
"use strict";
|
||||
|
||||
|
||||
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
|
||||
//
|
||||
//
|
||||
//
|
||||
@ -201,18 +209,27 @@ exports.default = void 0;
|
||||
//
|
||||
//
|
||||
//
|
||||
var _default2 = {
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
var _default = {
|
||||
name: "shop-spec",
|
||||
props: {
|
||||
value: {
|
||||
type: Boolean,
|
||||
required: true
|
||||
},
|
||||
spec: {
|
||||
type: [Array, Object],
|
||||
default: function _default() {
|
||||
return [{}];
|
||||
}
|
||||
goods: {
|
||||
type: [Object, Array]
|
||||
},
|
||||
disabledNumberBox: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
name: {
|
||||
type: String,
|
||||
@ -223,7 +240,18 @@ var _default2 = {
|
||||
return {
|
||||
mobile: '',
|
||||
specBck: [],
|
||||
selectedSpec: []
|
||||
selectedSpec: [],
|
||||
checkedGoods: {
|
||||
stock: 0
|
||||
},
|
||||
//选中的
|
||||
outOfStock: [],
|
||||
//缺货的
|
||||
specList: [],
|
||||
//规格
|
||||
disable: [],
|
||||
//不可选择的
|
||||
goodsNum: 1
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
@ -232,56 +260,123 @@ var _default2 = {
|
||||
this.showPop = false;
|
||||
this.$emit('close');
|
||||
},
|
||||
// 选择规格
|
||||
chooseSpec: function chooseSpec(item, index1, index2, attr) {
|
||||
var _this = this;
|
||||
if (item.name == '辣度') {
|
||||
// 规格-单选
|
||||
item.spec_value.map(function (i, k) {
|
||||
if (k === index2) {
|
||||
if (item.spec_value[index2].is_select) {
|
||||
_this.$set(i, 'is_select', false);
|
||||
_this.selectedSpec = _this.selectedSpec.filter(function (it) {
|
||||
return it.id !== item.spec_value[index2].id;
|
||||
});
|
||||
} else {
|
||||
_this.$set(i, 'is_select', true);
|
||||
_this.selectedSpec.push({
|
||||
id: item.spec_value[index2].id,
|
||||
name: item.spec_value[index2].value
|
||||
});
|
||||
}
|
||||
} else {
|
||||
_this.$set(i, 'is_select', false);
|
||||
_this.selectedSpec.map(function (se, index) {
|
||||
if (se.id == i.id) {
|
||||
_this.selectedSpec.splice(index, 1);
|
||||
// 过滤出需要进行禁用的规格
|
||||
getOutOfStockArr: function getOutOfStockArr(arr, arr1) {
|
||||
var result = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
||||
arr.forEach(function (el) {
|
||||
if (el.num >= arr1.length - 1) {
|
||||
result.push.apply(result, (0, _toConsumableArray2.default)(el.different));
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
} else {
|
||||
// 规格-复选
|
||||
if (item.spec_value[index2].is_select) {
|
||||
this.$set(item.spec_value[index2], 'is_select', false);
|
||||
this.selectedSpec = this.selectedSpec.filter(function (i) {
|
||||
return i.id !== item.spec_value[index2].id;
|
||||
});
|
||||
} else {
|
||||
// 选中
|
||||
this.$set(item.spec_value[index2], 'is_select', true);
|
||||
this.selectedSpec.push({
|
||||
id: item.spec_value[index2].id,
|
||||
name: item.spec_value[index2].value
|
||||
});
|
||||
}
|
||||
}
|
||||
return result;
|
||||
},
|
||||
// 匹配出缺货库存和已选中对比结果
|
||||
getArrIdentical: function getArrIdentical(arr1, arr2) {
|
||||
var arr = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
||||
var num = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
|
||||
arr1.forEach(function (el) {
|
||||
arr2.forEach(function (el2) {
|
||||
if (el == el2) {
|
||||
num += 1;
|
||||
arr.push(el);
|
||||
}
|
||||
});
|
||||
});
|
||||
return {
|
||||
num: num,
|
||||
//n个相同的
|
||||
different: this.getArrDifference((0, _toConsumableArray2.default)(new Set(arr)).map(Number), arr2.map(Number)),
|
||||
identical: (0, _toConsumableArray2.default)(new Set(arr))
|
||||
};
|
||||
},
|
||||
// 匹配出已选择和缺库存的
|
||||
getArrResult: function getArrResult(arr, outOfStock) {
|
||||
var _this = this;
|
||||
var result = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
||||
outOfStock.forEach(function (item) {
|
||||
var res = _this.getArrIdentical(arr, item.spec_value_ids.split(","));
|
||||
if (res != undefined && res.length != 0) {
|
||||
result.push(res);
|
||||
}
|
||||
});
|
||||
return result;
|
||||
},
|
||||
// 找出两个数组中参数不同的
|
||||
getArrDifference: function getArrDifference(arr1, arr2) {
|
||||
return arr1.concat(arr2).filter(function (v, i, arr) {
|
||||
return arr.indexOf(v) == arr.lastIndexOf(v);
|
||||
});
|
||||
},
|
||||
chooseSpec: function chooseSpec(index, index2) {
|
||||
var id = this.specList[index].spec_value[index2].id;
|
||||
|
||||
// 无法选择
|
||||
var disable = this.disable.filter(function (item) {
|
||||
return item == id;
|
||||
});
|
||||
if (disable.length != 0) return;
|
||||
var idsArr = this.checkedGoods.spec_value_ids_arr;
|
||||
if (id == idsArr[index]) idsArr[index] = "";else idsArr[index] = id;
|
||||
//保存已选规格
|
||||
this.checkedGoods.spec_value_ids_arr = idsArr;
|
||||
this.checkedGoods.spec_value_ids = idsArr.join(",");
|
||||
// 重新渲染页面
|
||||
this.specList = (0, _toConsumableArray2.default)(this.specList);
|
||||
console.log("this.checkedGoods>>>", this.checkedGoods);
|
||||
},
|
||||
// 选择规格
|
||||
// chooseSpec(item, index1, index2, attr) {
|
||||
// if (item.name == '辣度') {
|
||||
// // 规格-单选
|
||||
// item.spec_value.map((i, k) => {
|
||||
// if(k === index2) {
|
||||
// if (item.spec_value[index2].is_select) {
|
||||
// this.$set(i, 'is_select', false)
|
||||
// this.selectedSpec = this.selectedSpec.filter(it => it.id !== item.spec_value[index2].id)
|
||||
// } else {
|
||||
// this.$set(i, 'is_select', true)
|
||||
// this.selectedSpec.push({
|
||||
// id: item.spec_value[index2].id,
|
||||
// name: item.spec_value[index2].value
|
||||
// })
|
||||
// }
|
||||
// } else {
|
||||
// this.$set(i, 'is_select', false)
|
||||
// this.selectedSpec.map((se, index) => {
|
||||
// if (se.id == i.id) {
|
||||
// this.selectedSpec.splice(index, 1)
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
// })
|
||||
// } else {
|
||||
// // 规格-复选
|
||||
// if (item.spec_value[index2].is_select) {
|
||||
// this.$set(item.spec_value[index2], 'is_select', false)
|
||||
// this.selectedSpec = this.selectedSpec.filter(i => i.id !== item.spec_value[index2].id)
|
||||
// } else {
|
||||
// // 选中
|
||||
// this.$set(item.spec_value[index2], 'is_select', true)
|
||||
// this.selectedSpec.push({
|
||||
// id: item.spec_value[index2].id,
|
||||
// name: item.spec_value[index2].value
|
||||
// })
|
||||
// }
|
||||
// }
|
||||
// },
|
||||
// 确认选择的规格
|
||||
confirm: function confirm() {
|
||||
this.showPop = false;
|
||||
this.$emit('confirm', {
|
||||
spec: this.selectedSpec
|
||||
var checkedGoods = this.checkedGoods,
|
||||
goodsNum = this.goodsNum;
|
||||
if (this.specValueText.indexOf("请选择") != -1) return this.$toast({
|
||||
title: this.specValueText
|
||||
});
|
||||
if (checkedGoods.stock == 0) return this.$toast({
|
||||
title: "当前选择库存不足"
|
||||
});
|
||||
checkedGoods.goodsNum = goodsNum;
|
||||
this.$emit('buynow', {
|
||||
detail: checkedGoods
|
||||
});
|
||||
}
|
||||
},
|
||||
@ -293,16 +388,74 @@ var _default2 = {
|
||||
set: function set(val) {
|
||||
this.$emit('input', val);
|
||||
}
|
||||
},
|
||||
specValueText: function specValueText() {
|
||||
var _this$checkedGoods$sp,
|
||||
_this2 = this,
|
||||
_this$checkedGoods;
|
||||
var arr = (_this$checkedGoods$sp = this.checkedGoods.spec_value_ids) === null || _this$checkedGoods$sp === void 0 ? void 0 : _this$checkedGoods$sp.split(",");
|
||||
var spec_str = "";
|
||||
if (arr) arr.forEach(function (item, index) {
|
||||
if (item == "") spec_str += _this2.specList[index].name + ",";
|
||||
});
|
||||
if (((_this$checkedGoods = this.checkedGoods) === null || _this$checkedGoods === void 0 ? void 0 : _this$checkedGoods.stock) != 0 && spec_str == "") return "\u5DF2\u9009\u89C4\u683C\uFF1A".concat(this.checkedGoods.spec_value_str, " ").concat(this.goodsNum, " \u4EF6");else return "\u8BF7\u9009\u62E9 ".concat(spec_str.slice(0, spec_str.length - 1));
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
spec: function spec(val) {
|
||||
goods: function goods(value) {
|
||||
// 创建副本
|
||||
this.specBck = val;
|
||||
this.specList = value.goods_spec || [];
|
||||
var goodsItem = value.goods_item || [];
|
||||
this.outOfStock = goodsItem.filter(function (item) {
|
||||
return item.stock == 0;
|
||||
});
|
||||
// 找出库存不为0的
|
||||
var resultArr = goodsItem.filter(function (item) {
|
||||
return item.stock != 0;
|
||||
});
|
||||
if (resultArr.length != 0) {
|
||||
resultArr[0].spec_value_ids_arr = resultArr[0].spec_value_ids.split(",");
|
||||
this.checkedGoods = resultArr[0];
|
||||
} else {
|
||||
// 无法选择
|
||||
goodsItem[0].spec_value_ids_arr = [];
|
||||
this.disable = goodsItem.map(function (item) {
|
||||
return item.spec_value_ids.split(",");
|
||||
});
|
||||
this.checkedGoods = goodsItem[0];
|
||||
}
|
||||
},
|
||||
specList: function specList(value) {
|
||||
var _this3 = this;
|
||||
if (this.checkedGoods.stock == 0) return;
|
||||
var res = this.goods.goods_item.filter(function (item) {
|
||||
return _this3.checkedGoods.spec_value_ids === item.spec_value_ids;
|
||||
});
|
||||
|
||||
// 库存为0的规格
|
||||
var idsArr = this.checkedGoods.spec_value_ids_arr;
|
||||
var outOfStock = this.outOfStock;
|
||||
// 找出规格相同和规格不相同的余数
|
||||
var getArrGather = this.getArrResult(idsArr, outOfStock);
|
||||
// 计算出缺货的规格项
|
||||
this.disable = this.getOutOfStockArr(getArrGather, idsArr);
|
||||
if (res.length != 0) {
|
||||
console.log(res, "-----");
|
||||
var result = JSON.parse(JSON.stringify(res[0]));
|
||||
result.spec_value_ids_arr = result.spec_value_ids.split(",");
|
||||
if (this.goodsNum > result.stock) {
|
||||
this.goodsNum = result.stock;
|
||||
}
|
||||
this.checkedGoods = result;
|
||||
// 同步到父组件
|
||||
this.$emit("change", {
|
||||
detail: this.checkedGoods
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
exports.default = _default2;
|
||||
exports.default = _default;
|
||||
|
||||
/***/ }),
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"u-popup": "/components/uview-ui/components/u-popup/u-popup",
|
||||
"u-number-box": "/components/uview-ui/components/u-number-box/u-number-box",
|
||||
"u-button": "/components/uview-ui/components/u-button/u-button"
|
||||
},
|
||||
"component": true
|
||||
|
||||
@ -1 +1 @@
|
||||
<view><u-popup vue-id="53c645c8-1" mode="center" border-radius="{{16}}" value="{{showPop}}" data-event-opts="{{[['^close',[['close']]],['^input',[['__set_model',['','showPop','$event',[]]]]]]}}" bind:close="__e" bind:input="__e" bind:__l="__l" vue-slots="{{['default']}}"><view class="bg-white spec"><view class="shop-title bold-600 u-p-l-40 u-p-r-40 w-full u-line-1">{{name}}</view><scroll-view style="height:480rpx;" scroll-y="true" scroll-with-animation="true"><view class="u-m-l-40"><block wx:for="{{specBck}}" wx:for-item="item" wx:for-index="index1" wx:key="index1"><view><view class="attr nr u-m-t-20 u-m-b-20">{{item.name}}</view><view class="row wrap"><block wx:for="{{item.spec_value}}" wx:for-item="attr" wx:for-index="index2" wx:key="index2"><view data-event-opts="{{[['tap',[['chooseSpec',['$0',index1,index2,'$1'],[[['specBck','',index1]],[['specBck','',index1],['spec_value','',index2]]]]]]]}}" class="{{[item.spec_value[index2].is_select?'attr-list active':'attr-list']}}" bindtap="__e">{{''+attr.value+''}}</view></block></view></view></block></view></scroll-view><view class="mt20"><view class="u-m-l-40 u-flex u-flex-wrap">已选规格:<block wx:for="{{selectedSpec}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="current">{{''+item.name+''}}</view></block></view><view class="row u-row-center mt20 u-p-b-20"><view class="w-40 mr10"><u-button vue-id="{{('53c645c8-2')+','+('53c645c8-1')}}" hover-class="none" customStyle="{{$root.a0}}" plain="{{true}}" hair-line="{{false}}" shape="circle" data-event-opts="{{[['^click',[['close']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">取消</u-button></view><view class="w-40 ml10"><u-button vue-id="{{('53c645c8-3')+','+('53c645c8-1')}}" hover-class="none" customStyle="{{({backgroundColor:themeColor,color:'#fff',border:'none',padding:'16rpx 0'})}}" hair-line="{{false}}" shape="circle" data-event-opts="{{[['^click',[['confirm']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">确定</u-button></view></view></view></view></u-popup></view>
|
||||
<view><u-popup vue-id="53c645c8-1" mode="center" border-radius="{{16}}" value="{{showPop}}" data-event-opts="{{[['^close',[['close']]],['^input',[['__set_model',['','showPop','$event',[]]]]]]}}" bind:close="__e" bind:input="__e" bind:__l="__l" vue-slots="{{['default']}}"><view class="bg-white spec"><view class="shop-title bold-600 u-p-l-40 u-p-r-40 w-full u-line-1">{{name}}</view><scroll-view style="height:480rpx;" scroll-y="true" scroll-with-animation="true"><view class="u-m-l-40"><block wx:for="{{specList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view><view class="attr nr u-m-t-20 u-m-b-20">{{item.name}}</view><view class="row wrap"><block wx:for="{{item.spec_value}}" wx:for-item="specitem" wx:for-index="index2" wx:key="index2"><view data-event-opts="{{[['tap',[['chooseSpec',[index,index2]]]]]}}" class="{{[checkedGoods.spec_value_ids_arr[index]==specitem.id?'attr-list active':'attr-list']}}" bindtap="__e">{{''+specitem.value+''}}</view></block></view></view></block></view></scroll-view><view class="mt20"><view class="u-flex u-m-l-40 u-m-r-40"><view class="u-flex u-flex-wrap">{{''+specValueText+''}}</view><view class="flex1 u-text-right"><u-number-box bind:input="__e" vue-id="{{('53c645c8-2')+','+('53c645c8-1')}}" min="{{1}}" max="{{checkedGoods.stock}}" disabled="{{disabledNumberBox}}" value="{{goodsNum}}" data-event-opts="{{[['^input',[['__set_model',['','goodsNum','$event',[]]]]]]}}" bind:__l="__l"></u-number-box></view></view><view class="{{['row','u-row-center','mt20','u-p-b-20',$root.g0?'disabled':'']}}"><view class="w-40 mr10"><u-button vue-id="{{('53c645c8-3')+','+('53c645c8-1')}}" hover-class="none" customStyle="{{$root.a0}}" plain="{{true}}" hair-line="{{false}}" shape="circle" data-event-opts="{{[['^click',[['close']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">取消</u-button></view><view class="w-40 ml10"><u-button vue-id="{{('53c645c8-4')+','+('53c645c8-1')}}" hover-class="none" customStyle="{{({backgroundColor:themeColor,color:'#fff',border:'none',padding:'16rpx 0'})}}" hair-line="{{false}}" shape="circle" data-event-opts="{{[['^click',[['confirm']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">确定</u-button></view></view></view></view></u-popup></view>
|
||||
@ -51,4 +51,7 @@
|
||||
border: 2rpx solid #F6F6F7;
|
||||
padding: 20rpx;
|
||||
}
|
||||
.spec .disabled {
|
||||
opacity: 0.4;
|
||||
}
|
||||
|
||||
|
||||
@ -261,8 +261,8 @@ var _default = {
|
||||
code: wxCode,
|
||||
nickname: nickName || '',
|
||||
//支付宝小程序没有直接获取昵称
|
||||
headimgurl: avatarUrl,
|
||||
client: _tools.client
|
||||
headimgurl: avatarUrl
|
||||
// client
|
||||
});
|
||||
case 16:
|
||||
_yield$authLogin = _context.sent;
|
||||
|
||||
@ -100,26 +100,26 @@ __webpack_require__.r(__webpack_exports__);
|
||||
var components
|
||||
try {
|
||||
components = {
|
||||
uImage: function () {
|
||||
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-image/u-image */ "components/uview-ui/components/u-image/u-image").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-image/u-image.vue */ 375))
|
||||
},
|
||||
priceFormat: function () {
|
||||
return __webpack_require__.e(/*! import() | components/price-format/price-format */ "components/price-format/price-format").then(__webpack_require__.bind(null, /*! @/components/price-format/price-format.vue */ 394))
|
||||
},
|
||||
uIcon: function () {
|
||||
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-icon/u-icon */ "components/uview-ui/components/u-icon/u-icon").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-icon/u-icon.vue */ 354))
|
||||
},
|
||||
orderGoods: function () {
|
||||
return __webpack_require__.e(/*! import() | components/order-goods/order-goods */ "components/order-goods/order-goods").then(__webpack_require__.bind(null, /*! @/components/order-goods/order-goods.vue */ 751))
|
||||
},
|
||||
uRadioGroup: function () {
|
||||
return Promise.all(/*! import() | components/uview-ui/components/u-radio-group/u-radio-group */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/uview-ui/components/u-radio-group/u-radio-group")]).then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-radio-group/u-radio-group.vue */ 539))
|
||||
},
|
||||
uRadio: function () {
|
||||
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-radio/u-radio */ "components/uview-ui/components/u-radio/u-radio").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-radio/u-radio.vue */ 546))
|
||||
},
|
||||
priceFormat: function () {
|
||||
return __webpack_require__.e(/*! import() | components/price-format/price-format */ "components/price-format/price-format").then(__webpack_require__.bind(null, /*! @/components/price-format/price-format.vue */ 394))
|
||||
},
|
||||
uButton: function () {
|
||||
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-button/u-button */ "components/uview-ui/components/u-button/u-button").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-button/u-button.vue */ 361))
|
||||
},
|
||||
appointmentTime: function () {
|
||||
return Promise.all(/*! import() | components/appointment-time/appointment-time */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/appointment-time/appointment-time")]).then(__webpack_require__.bind(null, /*! @/components/appointment-time/appointment-time.vue */ 553))
|
||||
return __webpack_require__.e(/*! import() | components/appointment-time/appointment-time */ "components/appointment-time/appointment-time").then(__webpack_require__.bind(null, /*! @/components/appointment-time/appointment-time.vue */ 553))
|
||||
},
|
||||
}
|
||||
} catch (e) {
|
||||
@ -143,11 +143,22 @@ var render = function () {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
var a0 = {
|
||||
need: _vm.orderInfo.team_need,
|
||||
}
|
||||
if (!_vm._isMounted) {
|
||||
_vm.e0 = function ($event) {
|
||||
_vm.timePopup = false
|
||||
}
|
||||
}
|
||||
_vm.$mp.data = Object.assign(
|
||||
{},
|
||||
{
|
||||
$root: {
|
||||
a0: a0,
|
||||
},
|
||||
}
|
||||
)
|
||||
}
|
||||
var recyclableRender = false
|
||||
var staticRenderFns = []
|
||||
@ -183,10 +194,98 @@ __webpack_require__.r(__webpack_exports__);
|
||||
"use strict";
|
||||
/* WEBPACK VAR INJECTION */(function(uni) {
|
||||
|
||||
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 30));
|
||||
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 32));
|
||||
var _order = __webpack_require__(/*! @/api/order */ 750);
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
@ -293,30 +392,220 @@ var _default = {
|
||||
weixin: 0,
|
||||
alipay: 0
|
||||
},
|
||||
showLoading: false // Loading: 显示 | 隐藏
|
||||
showLoading: false,
|
||||
// Loading: 显示 | 隐藏
|
||||
goods: {},
|
||||
// 商品信息
|
||||
// 地址Tabs列表
|
||||
addressTabsList: [{
|
||||
id: 1,
|
||||
sign: 'express',
|
||||
name: '快递配送'
|
||||
}, {
|
||||
id: 2,
|
||||
sign: 'store',
|
||||
name: '门店自提'
|
||||
}],
|
||||
addressTabsIndex: 0,
|
||||
// 地址Tabs索引
|
||||
goodsLists: [],
|
||||
// 商品列表
|
||||
orderInfo: {},
|
||||
// 订单信息
|
||||
address: {},
|
||||
// 收货地址信息
|
||||
addressId: '',
|
||||
// 收货地址ID
|
||||
storeInfo: {} // 门店信息
|
||||
};
|
||||
},
|
||||
onLoad: function onLoad(options) {
|
||||
console.log("this.$>>>", this.$store.state.goods.buyGoods);
|
||||
var _this = this;
|
||||
var data = JSON.parse(decodeURIComponent(options.data));
|
||||
console.log("data>>>", data);
|
||||
this.goods = data.goods;
|
||||
this.pay.weixin = 1;
|
||||
|
||||
// 配送方式
|
||||
(0, _order.getDelivery)().then(function (_ref) {
|
||||
var code = _ref.code,
|
||||
data = _ref.data,
|
||||
msg = _ref.msg;
|
||||
// 请求结果判断
|
||||
if (code != 1) throw new Error(msg);
|
||||
return data;
|
||||
}).then(function (data) {
|
||||
// 快递
|
||||
if (!data.is_express) {
|
||||
_this.addressTabsList = _this.addressTabsList.filter(function (item) {
|
||||
return item.sign !== 'express';
|
||||
});
|
||||
}
|
||||
// 自提
|
||||
if (!data.is_selffetch) {
|
||||
_this.addressTabsList = _this.addressTabsList.filter(function (item) {
|
||||
return item.sign !== 'store';
|
||||
});
|
||||
}
|
||||
})
|
||||
// 页面数据初始化
|
||||
.then(function () {
|
||||
_this.handleOrderMethods('info');
|
||||
_this.initCouponData();
|
||||
})
|
||||
// 监听全局事件
|
||||
.then(function () {
|
||||
uni.$on('selectaddress', function (params) {
|
||||
_this.addressId = params.id;
|
||||
_this.handleOrderMethods('info');
|
||||
});
|
||||
uni.$on('payment', function (params) {
|
||||
setTimeout(function () {
|
||||
uni.$off('payment');
|
||||
if (params.result) {
|
||||
uni.redirectTo({
|
||||
url: "/pages/pay_result/pay_result?id=".concat(params.order_id)
|
||||
});
|
||||
} else {
|
||||
uni.redirectTo({
|
||||
url: '/pages/user_order/user_order'
|
||||
});
|
||||
}
|
||||
}, 500);
|
||||
});
|
||||
uni.$on('store', function (params) {
|
||||
_this.storeInfo = params;
|
||||
});
|
||||
}).catch(function (err) {
|
||||
console.log(err);
|
||||
});
|
||||
},
|
||||
onUnload: function onUnload() {
|
||||
// 取消全局监听
|
||||
uni.$off(['selectaddress', 'store']);
|
||||
},
|
||||
methods: {
|
||||
appointmentTime: function appointmentTime() {
|
||||
this.timePopup = true;
|
||||
},
|
||||
// 初始化优惠券数据
|
||||
initCouponData: function initCouponData() {
|
||||
var _this2 = this;
|
||||
(0, _order.getOrderCoupon)({
|
||||
goods: this.goods
|
||||
}).then(function (_ref2) {
|
||||
var code = _ref2.code,
|
||||
data = _ref2.data,
|
||||
msg = _ref2.msg;
|
||||
if (code != 1) throw new Error(msg);
|
||||
return data;
|
||||
}).then(function (data) {
|
||||
_this2.usableCoupon = data.usable;
|
||||
_this2.unusableCoupon = data.unusable;
|
||||
}).catch(function (err) {
|
||||
console.log(err);
|
||||
});
|
||||
},
|
||||
// 点击订单提交
|
||||
onSubmitOrder: function onSubmitOrder() {
|
||||
var _this = this;
|
||||
var _this3 = this;
|
||||
uni.showModal({
|
||||
title: '温馨提示',
|
||||
content: '是否确认下单?',
|
||||
confirmColor: '#FF2C3C',
|
||||
success: function success(_ref) {
|
||||
var confirm = _ref.confirm;
|
||||
success: function success(_ref3) {
|
||||
var confirm = _ref3.confirm;
|
||||
if (!confirm) return;
|
||||
_this.handleOrderMethods('submit');
|
||||
_this3.handleOrderMethods('submit');
|
||||
}
|
||||
});
|
||||
},
|
||||
// 订单处理
|
||||
handleOrderMethods: function handleOrderMethods(action) {
|
||||
// 订单提交数据
|
||||
var orderFrom = {
|
||||
action: action,
|
||||
goods: this.goods,
|
||||
delivery_type: this.delivery,
|
||||
use_integral: this.useIntegral,
|
||||
address_id: this.addressId,
|
||||
coupon_id: this.couponId,
|
||||
bargain_launch_id: this.bargainLaunchId == -1 ? '' : this.bargainLaunchId
|
||||
};
|
||||
switch (action) {
|
||||
case 'info':
|
||||
this.initPageData(orderFrom);
|
||||
break;
|
||||
case 'submit':
|
||||
this.handleOrderSubmit(orderFrom);
|
||||
break;
|
||||
}
|
||||
},
|
||||
// 初始化页面数据
|
||||
initPageData: function initPageData(from) {
|
||||
var _this4 = this;
|
||||
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
||||
var _yield$orderBuy, code, data, msg;
|
||||
return _regenerator.default.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
_this4.showLoading = true;
|
||||
_context.prev = 1;
|
||||
_context.next = 4;
|
||||
return (0, _order.orderBuy)(from);
|
||||
case 4:
|
||||
_yield$orderBuy = _context.sent;
|
||||
code = _yield$orderBuy.code;
|
||||
data = _yield$orderBuy.data;
|
||||
msg = _yield$orderBuy.msg;
|
||||
if (!(code == 1)) {
|
||||
_context.next = 16;
|
||||
break;
|
||||
}
|
||||
_this4.address = data.address;
|
||||
_this4.goodsLists = data.goods_lists;
|
||||
//TODO
|
||||
if (data.selffetch_info) {
|
||||
_this4.storeInfo = data.selffetch_info.selffetch_shop ? data.selffetch_info.selffetch_shop : {};
|
||||
_this4.userConsignee = data.selffetch_info.contact;
|
||||
_this4.userMobile = data.selffetch_info.mobile;
|
||||
}
|
||||
_this4.orderInfo = data;
|
||||
_this4.$nextTick(function () {
|
||||
_this4.isFirstLoading = false;
|
||||
});
|
||||
_context.next = 17;
|
||||
break;
|
||||
case 16:
|
||||
throw new Error(msg);
|
||||
case 17:
|
||||
_context.next = 23;
|
||||
break;
|
||||
case 19:
|
||||
_context.prev = 19;
|
||||
_context.t0 = _context["catch"](1);
|
||||
console.log(_context.t0);
|
||||
_this4.$toast({
|
||||
title: '网络异常,请重新进入页面'
|
||||
});
|
||||
case 23:
|
||||
_context.prev = 23;
|
||||
_this4.showLoading = false;
|
||||
return _context.finish(23);
|
||||
case 26:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}
|
||||
}, _callee, null, [[1, 19, 23, 26]]);
|
||||
}))();
|
||||
},
|
||||
// 点击选择收货地址
|
||||
onAddressExpress: function onAddressExpress() {
|
||||
uni.navigateTo({
|
||||
url: "/bundle/pages/address/address?type=".concat(1)
|
||||
});
|
||||
} // 订单处理
|
||||
// handleOrderMethods(action) {
|
||||
// // 订单提交数据
|
||||
@ -359,6 +648,11 @@ var _default = {
|
||||
// this.showLoading = false
|
||||
// }
|
||||
// },
|
||||
},
|
||||
computed: {
|
||||
delivery: function delivery() {
|
||||
return this.addressTabsList[this.addressTabsIndex]['id'];
|
||||
}
|
||||
}
|
||||
};
|
||||
exports.default = _default;
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
{
|
||||
"navigationBarTitleText": "确认订单",
|
||||
"usingComponents": {
|
||||
"u-image": "/components/uview-ui/components/u-image/u-image",
|
||||
"price-format": "/components/price-format/price-format",
|
||||
"u-icon": "/components/uview-ui/components/u-icon/u-icon",
|
||||
"order-goods": "/components/order-goods/order-goods",
|
||||
"u-radio-group": "/components/uview-ui/components/u-radio-group/u-radio-group",
|
||||
"u-radio": "/components/uview-ui/components/u-radio/u-radio",
|
||||
"price-format": "/components/price-format/price-format",
|
||||
"u-button": "/components/uview-ui/components/u-button/u-button",
|
||||
"appointment-time": "/components/appointment-time/appointment-time"
|
||||
}
|
||||
|
||||
@ -1 +1 @@
|
||||
<view class="px32"><view class="bg-white br16 p24 row u-m-t-32"><view><u-image vue-id="eeabff18-1" src="{{cloudPath+'img/banner.png'}}" width="260" height="172" bind:__l="__l"></u-image></view><view class="ml20 flex1"><view class="nr bold-600">煎饼果子</view><view class="text-999 mt10">周一指周日可用</view><view class="mt20 row-between"><view class="row"><view class="primary"><price-format vue-id="eeabff18-2" price="{{12.9}}" subscriptSize="{{22}}" firstSize="{{40}}" secondSize="{{32}}" bind:__l="__l"></price-format></view><view class="u-m-l-8"><price-format vue-id="eeabff18-3" lineThrough="{{true}}" color="#C0C0C0" subscriptSize="{{22}}" firstSize="{{24}}" secondSize="{{24}}" price="{{16.9}}" bind:__l="__l"></price-format></view></view><view class="num nr">X1</view></view></view></view><view class="bg-white br16 p24 u-m-t-32"><view>备注</view><view class="flex1 u-m-t-16 mask">xxxx</view></view><view data-event-opts="{{[['tap',[['appointmentTime',['$event']]]]]}}" class="bg-white br16 p24 u-m-t-32 nr row-between" bindtap="__e"><view>预约时间</view><view class="row"><view class="u-m-r-10">16:00-16:30</view><u-icon vue-id="eeabff18-4" name="arrow-right" size="32" bind:__l="__l"></u-icon></view></view><view class="bg-white br16 p24 u-m-t-32 nr"><view class="row-between"><view class="row-center"><u-icon vue-id="eeabff18-5" name="weixin-circle-fill" color="#28C445" size="80" bind:__l="__l"></u-icon><view class="u-m-l-16 lg">微信</view></view><view class="flex1 row-end"><u-radio-group bind:input="__e" vue-id="eeabff18-6" value="{{pay.weixin}}" data-event-opts="{{[['^input',[['__set_model',['$0','weixin','$event',[]],['pay']]]]]}}" bind:__l="__l" vue-slots="{{['default']}}"><u-radio vue-id="{{('eeabff18-7')+','+('eeabff18-6')}}" shape="circle" active-color="{{themeColor}}" bind:__l="__l"></u-radio></u-radio-group></view></view></view><view class="fixed bg-white row-between px48 u-padding-top-20 u-padding-bottom-20"><view class="column u-text-center"><view class="row-center"><view class="count">共1件</view><view class="u-m-l-8">合计:</view><view class="primary" style="margin-top:-8rpx;"><price-format vue-id="eeabff18-8" price="{{12.9}}" subscriptSize="{{34}}" firstSize="{{56}}" secondSize="{{34}}" bind:__l="__l"></price-format></view></view></view><view class="u-m-l-64 flex1"><u-button vue-id="eeabff18-9" hover-class="none" customStyle="{{({height:'92rpx',backgroundColor:themeColor,color:'#fff',border:'none',paddingTop:'8rpx'})}}" hair-line="{{false}}" shape="circle" data-event-opts="{{[['^click',[['onSubmitOrder']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">去支付</u-button></view></view><appointment-time bind:close="__e" bind:update="__e" bind:input="__e" vue-id="eeabff18-10" value="{{timePopup}}" data-event-opts="{{[['^close',[['e0']]],['^update',[['handleSubmitMobile']]],['^input',[['__set_model',['','timePopup','$event',[]]]]]]}}" bind:__l="__l"></appointment-time></view>
|
||||
<view class="px32"><view class="bg-white br16 row u-m-t-32"><view data-event-opts="{{[['tap',[['onAddressExpress',['$event']]]]]}}" hidden="{{!(addressTabsList[addressTabsIndex]['sign']==='express')}}" class="u-flex p24 w-full" bindtap="__e"><view><u-icon class="right-icon" vue-id="eeabff18-1" name="map" size="48" bind:__l="__l"></u-icon></view><view class="u-flex flex1 u-row-between"><view class="ml10"><block wx:if="{{address.id}}"><view class="md black bold"><text>{{address.contact}}</text><text class="ml10">{{address.telephone}}</text></view><view class="xs black mt10">{{address.province+address.city+address.district+address.address}}</view></block><block wx:else><view>请选择收货地址</view></block></view><view><u-icon class="ml10" vue-id="eeabff18-2" name="arrow-right" bind:__l="__l"></u-icon></view></view></view></view><view class="bg-white br16 row u-m-t-32"><order-goods vue-id="eeabff18-3" team="{{$root.a0}}" list="{{goodsLists}}" delivery="{{delivery}}" order_type="{{orderInfo.order_type}}" imageWidth="{{260}}" imageHeight="{{172}}" mode="comfirm" bind:__l="__l"></order-goods></view><view class="bg-white br16 p24 u-m-t-32"><view>备注</view><view class="flex1 u-m-t-16 mask">xxxx</view></view><view data-event-opts="{{[['tap',[['appointmentTime',['$event']]]]]}}" class="bg-white br16 p24 u-m-t-32 nr row-between" bindtap="__e"><view>预约时间</view><view class="row"><view class="u-m-r-10">16:00-16:30</view><u-icon vue-id="eeabff18-4" name="arrow-right" size="32" bind:__l="__l"></u-icon></view></view><view class="bg-white br16 p24 u-m-t-32 nr"><view class="row-between"><view class="row-center"><u-icon vue-id="eeabff18-5" name="weixin-circle-fill" color="#28C445" size="80" bind:__l="__l"></u-icon><view class="u-m-l-16 lg">微信</view></view><view class="flex1 row-end"><u-radio-group bind:input="__e" vue-id="eeabff18-6" value="{{pay.weixin}}" data-event-opts="{{[['^input',[['__set_model',['$0','weixin','$event',[]],['pay']]]]]}}" bind:__l="__l" vue-slots="{{['default']}}"><u-radio vue-id="{{('eeabff18-7')+','+('eeabff18-6')}}" shape="circle" active-color="{{themeColor}}" bind:__l="__l"></u-radio></u-radio-group></view></view></view><view class="fixed bg-white row-between px48 u-padding-top-20 u-padding-bottom-20"><view class="column u-text-center"><view class="row-center"><view class="count">共1件</view><view class="u-m-l-8">合计:</view><view class="primary" style="margin-top:-8rpx;"><price-format vue-id="eeabff18-8" price="{{12.9}}" subscriptSize="{{34}}" firstSize="{{56}}" secondSize="{{34}}" bind:__l="__l"></price-format></view></view></view><view class="u-m-l-64 flex1"><u-button vue-id="eeabff18-9" hover-class="none" customStyle="{{({height:'92rpx',backgroundColor:themeColor,color:'#fff',border:'none',paddingTop:'8rpx'})}}" hair-line="{{false}}" shape="circle" data-event-opts="{{[['^click',[['onSubmitOrder']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">去支付</u-button></view></view><appointment-time bind:close="__e" bind:update="__e" bind:input="__e" vue-id="eeabff18-10" value="{{timePopup}}" data-event-opts="{{[['^close',[['e0']]],['^update',[['handleSubmitMobile']]],['^input',[['__set_model',['','timePopup','$event',[]]]]]]}}" bind:__l="__l"></appointment-time></view>
|
||||
39
unpackage/dist/dev/mp-weixin/pages/shop/shop.js
vendored
39
unpackage/dist/dev/mp-weixin/pages/shop/shop.js
vendored
@ -279,7 +279,8 @@ var _default = {
|
||||
id: 0,
|
||||
showSpec: false,
|
||||
goods: [],
|
||||
spec: []
|
||||
spec: [],
|
||||
checkedGoods: {}
|
||||
};
|
||||
},
|
||||
onLoad: function onLoad(options) {
|
||||
@ -328,22 +329,30 @@ var _default = {
|
||||
this.spec = data.spec;
|
||||
this.showSpec = false;
|
||||
},
|
||||
// 购买商品
|
||||
onBuy: function onBuy() {
|
||||
// 这里需压判断选购规格
|
||||
onChangeGoods: function onChangeGoods(e) {
|
||||
console.log(e);
|
||||
this.checkedGoods = e.detail;
|
||||
},
|
||||
// 选择规格
|
||||
showSpecFun: function showSpecFun() {
|
||||
if (!this.isLogin) return (0, _login.toLogin)();
|
||||
this.$store.commit("setBuyGoods", {
|
||||
id: this.id,
|
||||
// 商品id
|
||||
num: 1,
|
||||
// 购买商品数量
|
||||
spec: this.spec // 选中的商品规格
|
||||
});
|
||||
|
||||
// console.log("this.$>>>", this.$store.state.goods.buyGoods);
|
||||
|
||||
this.showSpec = true;
|
||||
},
|
||||
// 购买商品
|
||||
onBuy: function onBuy(e) {
|
||||
var _e$detail = e.detail,
|
||||
id = _e$detail.id,
|
||||
goodsNum = _e$detail.goodsNum;
|
||||
var goods = [{
|
||||
item_id: id,
|
||||
num: goodsNum
|
||||
}];
|
||||
var params = {
|
||||
goods: goods
|
||||
};
|
||||
this.showSpec = false;
|
||||
uni.navigateTo({
|
||||
url: "/pages/order_now/order_now"
|
||||
url: '/pages/order_now/order_now?data=' + encodeURIComponent(JSON.stringify(params))
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -1 +1 @@
|
||||
<view><view class="shop"><view><u-swiper vue-id="73adca00-1" list="{{goods.goods_image}}" name="uri" height="500" border-radius="0" mode="number" indicator-pos="bottomRight" bind:__l="__l"></u-swiper></view><view class="bg-white mx24 px24 u-m-t-24 u-padding-top-20 u-padding-bottom-20 br24"><view class="nr">{{goods.name}}</view><view class="mt10 row u-row-between"><view class="row"><view class="primary"><price-format vue-id="73adca00-2" price="{{goods.min_price}}" subscriptSize="{{22}}" firstSize="{{34}}" secondSize="{{26}}" bind:__l="__l"></price-format></view><view class="sale u-text-center primary u-m-l-12">0折</view><view class="primary u-m-l-12"><price-format vue-id="73adca00-3" lineThrough="{{true}}" color="#999" subscriptSize="{{22}}" firstSize="{{22}}" secondSize="{{22}}" price="{{goods.market_price}}" bind:__l="__l"></price-format></view></view><view class="text-999">已售66</view></view><view class="u-m-t-20 u-m-b-20"><u-line vue-id="73adca00-4" color="#eee" bind:__l="__l"></u-line></view><view><view><text>须知</text><text class="text-999 ml20">周一至周日可用</text></view><view class="row-between mt20"><view><text>保障</text><text class="text-999 ml20">随时退 过期自动退</text></view><view><u-button vue-id="73adca00-5" hover-class="none" customStyle="{{({width:'116rpx',height:'46rpx',lineHeight:'46rpx',fontSize:'24rpx',backgroundColor:themeColor,color:'#fff',border:'none',paddingTop:'8rpx'})}}" hair-line="{{false}}" shape="circle" data-event-opts="{{[['^click',[['openSpec']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">选规格</u-button></view></view></view></view><view class="u-m-t-24"><view class="u-m-l-48 nr">详情</view><view class="bg-white mx24 px24 u-m-t-24 u-p-t-20 u-p-b-20 br24"><u-image vue-id="73adca00-6" src="{{cloudPath+'img/banner.png'}}" height="600" bind:__l="__l"></u-image></view></view><view class="u-m-t-24"><view class="u-m-l-48 nr">购买须知</view><view class="bg-white mx24 px24 u-m-t-24 u-p-t-20 u-p-b-20 br24">这里是购买须知的内容</view></view></view><view class="fixed bg-white row-between px48 u-p-t-20 u-p-b-20"><view class="column u-text-center"><view class="row-center"><u-image vue-id="73adca00-7" src="{{cloudPath+'img/icon_store.png'}}" width="48" height="48" bind:__l="__l"></u-image></view><view>门店</view></view><view class="u-m-l-64 flex1"><u-button vue-id="73adca00-8" hover-class="none" customStyle="{{({height:'92rpx',fontSize:'24rpx',backgroundColor:themeColor,color:'#fff',border:'none',paddingTop:'8rpx'})}}" hair-line="{{false}}" shape="circle" data-event-opts="{{[['^click',[['onBuy']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">立即购买</u-button></view></view><shop-spec vue-id="73adca00-9" name="{{goods.name}}" spec="{{goods.goods_spec}}" value="{{showSpec}}" data-event-opts="{{[['^close',[['e0']]],['^confirm',[['confirmSpec']]],['^input',[['__set_model',['','showSpec','$event',[]]]]]]}}" bind:close="__e" bind:confirm="__e" bind:input="__e" bind:__l="__l"></shop-spec></view>
|
||||
<view><view class="shop"><view><u-swiper vue-id="73adca00-1" list="{{goods.goods_image}}" name="uri" height="500" border-radius="0" mode="number" indicator-pos="bottomRight" bind:__l="__l"></u-swiper></view><view class="bg-white mx24 px24 u-m-t-24 u-padding-top-20 u-padding-bottom-20 br24"><view class="nr">{{goods.name}}</view><view class="mt10 row u-row-between"><view class="row"><view class="primary"><price-format vue-id="73adca00-2" price="{{goods.min_price}}" subscriptSize="{{22}}" firstSize="{{34}}" secondSize="{{26}}" bind:__l="__l"></price-format></view><view class="sale u-text-center primary u-m-l-12">0折</view><view class="primary u-m-l-12"><price-format vue-id="73adca00-3" lineThrough="{{true}}" color="#999" subscriptSize="{{22}}" firstSize="{{22}}" secondSize="{{22}}" price="{{goods.market_price}}" bind:__l="__l"></price-format></view></view><view class="text-999">已售66</view></view><view class="u-m-t-20 u-m-b-20"><u-line vue-id="73adca00-4" color="#eee" bind:__l="__l"></u-line></view><view><view><text>须知</text><text class="text-999 ml20">周一至周日可用</text></view><view class="row-between mt20"><view><text>保障</text><text class="text-999 ml20">随时退 过期自动退</text></view><view><u-button vue-id="73adca00-5" hover-class="none" customStyle="{{({width:'116rpx',height:'46rpx',lineHeight:'46rpx',fontSize:'24rpx',backgroundColor:themeColor,color:'#fff',border:'none',paddingTop:'8rpx'})}}" hair-line="{{false}}" shape="circle" data-event-opts="{{[['^click',[['openSpec']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">选规格</u-button></view></view></view></view><view class="u-m-t-24"><view class="u-m-l-48 nr">详情</view><view class="bg-white mx24 px24 u-m-t-24 u-p-t-20 u-p-b-20 br24"><u-image vue-id="73adca00-6" src="{{cloudPath+'img/banner.png'}}" height="600" bind:__l="__l"></u-image></view></view><view class="u-m-t-24"><view class="u-m-l-48 nr">购买须知</view><view class="bg-white mx24 px24 u-m-t-24 u-p-t-20 u-p-b-20 br24">这里是购买须知的内容</view></view></view><view class="fixed bg-white row-between px48 u-p-t-20 u-p-b-20"><view class="column u-text-center"><view class="row-center"><u-image vue-id="73adca00-7" src="{{cloudPath+'img/icon_store.png'}}" width="48" height="48" bind:__l="__l"></u-image></view><view>门店</view></view><view class="u-m-l-64 flex1"><u-button vue-id="73adca00-8" hover-class="none" customStyle="{{({height:'92rpx',fontSize:'24rpx',backgroundColor:themeColor,color:'#fff',border:'none',paddingTop:'8rpx'})}}" hair-line="{{false}}" shape="circle" data-event-opts="{{[['^click',[['showSpecFun']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">立即购买</u-button></view></view><shop-spec vue-id="73adca00-9" name="{{goods.name}}" goods="{{goods}}" value="{{showSpec}}" data-event-opts="{{[['^close',[['e0']]],['^confirm',[['confirmSpec']]],['^buynow',[['onBuy']]],['^input',[['__set_model',['','showSpec','$event',[]]]]]]}}" bind:close="__e" bind:confirm="__e" bind:buynow="__e" bind:input="__e" bind:__l="__l"></shop-spec></view>
|
||||
@ -114,6 +114,11 @@ var _default = {
|
||||
}
|
||||
});
|
||||
},
|
||||
// 选择单个商品
|
||||
changOneSelect: function changOneSelect(cartId, selected) {
|
||||
selected = !selected;
|
||||
this.changeCartSelectFun([cartId], selected);
|
||||
},
|
||||
// 更改全选状态
|
||||
changeAllSelect: function changeAllSelect() {
|
||||
var isSelectedAll = this.isSelectedAll,
|
||||
@ -147,17 +152,22 @@ var _default = {
|
||||
});
|
||||
}
|
||||
});
|
||||
console.log("this.cartList>>>", goods);
|
||||
if (goods.length == 0) return this.$toast({
|
||||
title: "您还没有选择商品哦"
|
||||
});
|
||||
uni.navigateTo({
|
||||
url: "/pages/confirm_order/confirm_order?data=" + encodeURIComponent(JSON.stringify({
|
||||
goods: goods,
|
||||
type: "cart"
|
||||
}))
|
||||
});
|
||||
// uni.navigateTo({
|
||||
// url: "/pages/confirm_order/confirm_order?data=" +
|
||||
// encodeURIComponent(
|
||||
// JSON.stringify({
|
||||
// goods,
|
||||
// type: "cart",
|
||||
// })
|
||||
// ),
|
||||
// });
|
||||
}
|
||||
}),
|
||||
|
||||
computed: _objectSpread(_objectSpread({}, (0, _vuex.mapGetters)(["cartNum"])), {}, {
|
||||
nullSelect: function nullSelect() {
|
||||
var index = this.cartLists.findIndex(function (item) {
|
||||
|
||||
@ -1 +1 @@
|
||||
<view class="shop-cart"><view class="u-m-32"><block wx:if="{{$root.g0>0}}"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="u-text-right nr" bindtap="__e">{{!isEdit?'编辑':'完成'}}</view></block><block wx:for="{{cartLists}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="u-m-t-40"><view class="bg-white br16 u-p-24 row"><view class="select checkbox"><checkbox class="checkbox" type="circle" value="{{item.cart_id+''}}" checked="{{item.selected==1}}" data-event-opts="{{[['tap',[['changOneSelect',['$0','$1'],[[['cartLists','',index,'cart_id']],[['cartLists','',index,'selected']]]]]]]}}" bindtap="__e"></checkbox></view><view class="row flex1 u-col-top"><view><u-image vue-id="{{'9fac4ca8-1-'+index}}" src="{{item.img}}" width="160" height="160" border-radius="8" bind:__l="__l"></u-image></view><view class="u-m-l-16"><navigator url="{{'/pages/shop/shop?id='+item.goods_id}}" hover-class="none"><view class="u-line-2">{{item.name}}</view></navigator><view class="sm text-999 u-m-t-8 attr u-text-center u-p-l-16 u-p-r-16 u-p-6-8 u-p-b-8"><text>味浓芳香</text><text class="u-m-l-8 u-m-r-8">|</text><text>味浓芳香</text><text class="u-m-l-8 u-m-r-8">|</text><text>味浓芳香</text></view><view class="u-m-t-16 row-between"><view class="primary"><price-format vue-id="{{'9fac4ca8-2-'+index}}" price="{{item.price}}" subscriptSize="{{22}}" firstSize="{{34}}" secondSize="{{26}}" bind:__l="__l"></price-format></view><view><block wx:if="{{!isEdit}}"><view><u-number-box vue-id="{{'9fac4ca8-3-'+index}}" disabled="{{item.cart_status!=0}}" value="{{item.goods_num}}" min="{{1}}" max="{{item.item_stock}}" data-event-opts="{{[['^change',[['countChange',['$event','$0','$1'],[[['cartLists','',index,'cart_id']],[['cartLists','',index]]]]]]]}}" bind:change="__e" bind:__l="__l"></u-number-box></view></block><block wx:if="{{isEdit}}"><view data-event-opts="{{[['tap',[['deleteCartGoods',['$0'],[[['cartLists','',index,'cart_id']]]]]]]}}" catchtap="__e"><u-icon vue-id="{{'9fac4ca8-4-'+index}}" name="trash" size="32" color="#999" bind:__l="__l"></u-icon></view></block></view></view></view></view></view></view></block><block wx:if="{{!(cartType!=2)}}"><view hidden="{{!(!(cartType!=2))}}" class="cart-null column-center mb20" style="padding:80rpx 0 50rpx;"><image class="img-null" src="{{cloudPath+'img/cart_null.png'}}"></image><view class="muted mb20">购物车暂无任何商品~</view></view></block></view><block wx:if="{{!isLogin}}"><view class="login column-center u-m-t-80"><image class="img-null" src="{{cloudPath+'img/cart_null.png'}}" width="1200" height="1200" mode="aspectFill"></image><view class="muted mt20">登录后才能查看购物车哦</view><navigator class="mt20 br60 row-center btn text-default" url="/pages/login/login" hover-class="none"><text>去登录</text></navigator></view></block><block wx:if="{{!(cartType!=1)}}"><view class="fixed footer bg-white w-full row-between u-col-center px32"><view><checkbox-group data-event-opts="{{[['change',[['changeAllSelect',['$event']]]]]}}" class="row checkbox" bindchange="__e"><checkbox id="checkAll" value="all" checked="{{isSelectedAll}}"></checkbox><label class="ml10" for="checkAll">全选</label></checkbox-group></view><view class="row"><view class="row-center"><view>合计:</view><view class="primary u-m-l-8" style="margin-top:-8rpx;"><price-format vue-id="9fac4ca8-5" price="{{totalPrice}}" subscriptSize="{{32}}" firstSize="{{40}}" secondSize="{{32}}" bind:__l="__l"></price-format></view></view><view class="u-m-l-24"><u-button vue-id="9fac4ca8-6" hover-class="none" customStyle="{{({width:'228rpx',height:'80rpx',backgroundColor:themeColor,color:'#fff',border:'none',padding:'16rpx 0',borderRadius:'64rpx'})}}" hair-line="{{false}}" data-event-opts="{{[['^click',[['mpLogin']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">结算</u-button></view></view></view></block></view>
|
||||
<view class="shop-cart"><view class="u-m-32"><block wx:if="{{$root.g0>0}}"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="u-text-right nr" bindtap="__e">{{!isEdit?'编辑':'完成'}}</view></block><block wx:for="{{cartLists}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="u-m-t-40"><view class="bg-white br16 u-p-24 row"><view class="select checkbox"><checkbox class="checkbox" type="circle" value="{{item.cart_id+''}}" checked="{{item.selected==1}}" data-event-opts="{{[['tap',[['changOneSelect',['$0','$1'],[[['cartLists','',index,'cart_id']],[['cartLists','',index,'selected']]]]]]]}}" bindtap="__e"></checkbox></view><view class="row flex1 u-col-top"><view><u-image vue-id="{{'9fac4ca8-1-'+index}}" src="{{item.img}}" width="160" height="160" border-radius="8" bind:__l="__l"></u-image></view><view class="u-m-l-16"><navigator url="{{'/pages/shop/shop?id='+item.goods_id}}" hover-class="none"><view class="u-line-2">{{item.name}}</view></navigator><view class="sm text-999 u-m-t-8 attr u-text-center u-p-l-16 u-p-r-16 u-p-6-8 u-p-b-8"><text>味浓芳香</text><text class="u-m-l-8 u-m-r-8">|</text><text>味浓芳香</text><text class="u-m-l-8 u-m-r-8">|</text><text>味浓芳香</text></view><view class="u-m-t-16 row-between"><view class="primary"><price-format vue-id="{{'9fac4ca8-2-'+index}}" price="{{item.price}}" subscriptSize="{{22}}" firstSize="{{34}}" secondSize="{{26}}" bind:__l="__l"></price-format></view><view><block wx:if="{{!isEdit}}"><view><u-number-box vue-id="{{'9fac4ca8-3-'+index}}" disabled="{{item.cart_status!=0}}" value="{{item.goods_num}}" min="{{1}}" max="{{item.item_stock}}" data-event-opts="{{[['^change',[['countChange',['$event','$0','$1'],[[['cartLists','',index,'cart_id']],[['cartLists','',index]]]]]]]}}" bind:change="__e" bind:__l="__l"></u-number-box></view></block><block wx:if="{{isEdit}}"><view data-event-opts="{{[['tap',[['deleteCartGoods',['$0'],[[['cartLists','',index,'cart_id']]]]]]]}}" catchtap="__e"><u-icon vue-id="{{'9fac4ca8-4-'+index}}" name="trash" size="32" color="#999" bind:__l="__l"></u-icon></view></block></view></view></view></view></view></view></block><block wx:if="{{!(cartType!=2)}}"><view hidden="{{!(!(cartType!=2))}}" class="cart-null column-center mb20" style="padding:80rpx 0 50rpx;"><image class="img-null" src="{{cloudPath+'img/cart_null.png'}}"></image><view class="muted mb20">购物车暂无任何商品~</view></view></block></view><block wx:if="{{!isLogin}}"><view class="login column-center u-m-t-80"><image class="img-null" src="{{cloudPath+'img/cart_null.png'}}" width="1200" height="1200" mode="aspectFill"></image><view class="muted mt20">登录后才能查看购物车哦</view><navigator class="mt20 br60 row-center btn text-default" url="/pages/login/login" hover-class="none"><text>去登录</text></navigator></view></block><block wx:if="{{!(cartType!=1)}}"><view class="fixed footer bg-white w-full row-between u-col-center px32"><view><checkbox-group data-event-opts="{{[['change',[['changeAllSelect',['$event']]]]]}}" class="row checkbox" bindchange="__e"><checkbox id="checkAll" value="all" checked="{{isSelectedAll}}"></checkbox><label class="ml10" for="checkAll">全选</label></checkbox-group></view><view class="row"><view class="row-center"><view>合计:</view><view class="primary u-m-l-8" style="margin-top:-8rpx;"><price-format vue-id="9fac4ca8-5" price="{{totalPrice}}" subscriptSize="{{32}}" firstSize="{{40}}" secondSize="{{32}}" bind:__l="__l"></price-format></view></view><view class="u-m-l-24"><u-button vue-id="9fac4ca8-6" hover-class="none" customStyle="{{({width:'228rpx',height:'80rpx',backgroundColor:themeColor,color:'#fff',border:'none',padding:'16rpx 0',borderRadius:'64rpx'})}}" hair-line="{{false}}" data-event-opts="{{[['^click',[['goToConfirm']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">结算</u-button></view></view></view></block></view>
|
||||
Reference in New Issue
Block a user