暂存code

This commit is contained in:
hejiangming
2025-05-07 09:54:33 +08:00
parent 78270eeda0
commit 007b002b81
403 changed files with 14507 additions and 6320 deletions
+207 -6
View File
@@ -1,28 +1,229 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const CustomTabBar = () => "../../components/custom-tab-bar.js";
const _sfc_main = {
components: { CustomTabBar },
data() {
return {};
return {
swiperList: [
"/static/home/banner04.png"
],
currentNum: 0,
sortList: [
{
id: 1,
icon: "/static/union/bh.png",
name: "百货"
},
{
id: 2,
icon: "/static/union/fs.png",
name: "服饰"
},
{
id: 3,
icon: "/static/union/wj.png",
name: "五金"
},
{
id: 4,
icon: "/static/union/sm.png",
name: "数码"
},
{
id: 5,
icon: "/static/union/jd.png",
name: "酒店"
},
{
id: 6,
icon: "/static/union/xc.png",
name: "洗车"
},
{
id: 7,
icon: "/static/union/yy.png",
name: "影院"
},
{
id: 8,
icon: "/static/union/sh.png",
name: "商行"
},
{
id: 9,
icon: "/static/union/bld.png",
name: "便利店"
},
{
id: 10,
icon: "/static/union/yb.png",
name: "饮吧"
}
],
rateValue: 4,
contentList: [
{
id: 1,
name: "好又多便利店",
rate: 4,
//
price: 12,
num: 1854,
tabs: ["便利店", "建业路/英协花园"],
address: "200m"
},
{
id: 2,
name: "好又多便利店",
rate: 4,
//
price: 12,
num: 1854,
tabs: ["便利店", "建业路/英协花园"],
address: "200m"
},
{
id: 3,
name: "好又多便利店",
rate: 4,
//
price: 12,
num: 1854,
tabs: ["便利店", "建业路/英协花园"],
address: "200m"
},
{
id: 4,
name: "好又多便利店",
rate: 4,
//
price: 12,
num: 1854,
tabs: ["便利店", "建业路/英协花园"],
address: "200m"
}
]
};
},
onShow() {
},
methods: {}
};
if (!Array) {
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
_easycom_up_image2();
const _easycom_up_search2 = common_vendor.resolveComponent("up-search");
const _easycom_up_swiper2 = common_vendor.resolveComponent("up-swiper");
const _easycom_up_rate2 = common_vendor.resolveComponent("up-rate");
const _component_CustomTabBar = common_vendor.resolveComponent("CustomTabBar");
(_easycom_up_image2 + _easycom_up_search2 + _easycom_up_swiper2 + _easycom_up_rate2 + _component_CustomTabBar)();
}
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
const _easycom_up_search = () => "../../uni_modules/uview-plus/components/u-search/u-search.js";
const _easycom_up_swiper = () => "../../uni_modules/uview-plus/components/u-swiper/u-swiper.js";
const _easycom_up_rate = () => "../../uni_modules/uview-plus/components/u-rate/u-rate.js";
if (!Math) {
_easycom_up_image();
(_easycom_up_image + _easycom_up_search + _easycom_up_swiper + _easycom_up_rate)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
return common_vendor.e({
a: common_vendor.p({
src: "/static/common/not_order.png",
src: "/static/common/address3.png",
width: "16",
height: "18",
bgColor: "#f1f6ff00"
}),
b: common_vendor.p({
src: "/static/common/right.png",
width: "18",
height: "18",
bgColor: "#f1f6ff00"
}),
c: common_vendor.p({
shape: "square",
bgColor: "#EEEEEEFF",
color: "#666666FF",
showAction: false,
placeholder: "搜索"
}),
d: common_vendor.t($data.currentNum + 1),
e: common_vendor.t($data.swiperList.length),
f: common_vendor.o((e) => $data.currentNum = e.current),
g: common_vendor.p({
list: $data.swiperList,
height: "120",
radius: "10",
bgColor: "#ffffff00"
}),
h: common_vendor.f($data.sortList, (item, k0, i0) => {
return {
a: "04033f11-4-" + i0,
b: common_vendor.p({
src: item.icon,
width: "40",
height: "32",
bgColor: "#f1f6ff00"
}),
c: common_vendor.t(item.name),
d: item.id
};
}),
i: common_vendor.p({
src: "/static/common/address3.png",
width: "10",
height: "12",
bgColor: "#f1f6ff00"
}),
j: common_vendor.p({
src: "/static/common/buttom.png",
width: "10",
height: "12",
bgColor: "#f1f6ff00"
}),
k: common_vendor.p({
src: "/static/common/buttom.png",
width: "10",
height: "12",
bgColor: "#f1f6ff00"
}),
l: $data.contentList && $data.contentList.length !== 0
}, $data.contentList && $data.contentList.length !== 0 ? {
m: common_vendor.f($data.contentList, (item, k0, i0) => {
return {
a: "04033f11-8-" + i0,
b: common_vendor.t(item.name),
c: "04033f11-9-" + i0,
d: common_vendor.o(($event) => item.rate = $event, item.id),
e: common_vendor.p({
size: "14",
modelValue: item.rate
}),
f: common_vendor.t(item.price),
g: common_vendor.t(item.num),
h: common_vendor.t(item.tabs.join(" ")),
i: "04033f11-10-" + i0,
j: common_vendor.t(item.address),
k: item.id
};
}),
n: common_vendor.p({
src: "/static/common/bianlidian.jpg",
width: "80",
height: "80",
bgColor: "#f1f6ff00",
radius: "10"
}),
o: common_vendor.p({
src: "/static/common/address3.png",
width: "10",
height: "12",
bgColor: "#f1f6ff00"
})
};
} : {}, {
p: common_vendor.p({
tabIndex: 2
})
});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-04033f11"]]);
wx.createPage(MiniProgramPage);
@@ -1,6 +1,10 @@
{
"navigationStyle": "custom",
"usingComponents": {
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image"
"custom-tab-bar": "../../components/custom-tab-bar",
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
"up-search": "../../uni_modules/uview-plus/components/u-search/u-search",
"up-swiper": "../../uni_modules/uview-plus/components/u-swiper/u-swiper",
"up-rate": "../../uni_modules/uview-plus/components/u-rate/u-rate"
}
}
@@ -1 +1 @@
<view class="hash_union_warp data-v-04033f11"><view class="not_order_warp data-v-04033f11"><up-image wx:if="{{a}}" class="data-v-04033f11" u-i="04033f11-0" bind:__l="__l" u-p="{{a}}"></up-image><view class="not_order_msg_warp data-v-04033f11">暂无相关数据</view></view></view>
<view class="hash_union_warp data-v-04033f11"><view class="hash_union_content data-v-04033f11"><view class="content_header data-v-04033f11"><view class="header_union_comm data-v-04033f11"><up-image wx:if="{{a}}" class="data-v-04033f11" u-i="04033f11-0" bind:__l="__l" u-p="{{a}}"></up-image><view class="msg_ data-v-04033f11">二七广场丹尼斯</view><view class="data-v-04033f11" style="margin-top:10rpx"><up-image wx:if="{{b}}" class="data-v-04033f11" u-i="04033f11-1" bind:__l="__l" u-p="{{b}}"></up-image></view></view><view class="header_union_comm data-v-04033f11"><view class="data-v-04033f11" style="width:200rpx"><up-search wx:if="{{c}}" class="data-v-04033f11" u-i="04033f11-2" bind:__l="__l" u-p="{{c}}"></up-search></view></view></view><up-swiper wx:if="{{g}}" class="data-v-04033f11" u-s="{{['indicator']}}" bindchange="{{f}}" u-i="04033f11-3" bind:__l="__l" u-p="{{g}}"><view class="indicator-num data-v-04033f11" slot="indicator"><text class="indicator-num__text data-v-04033f11">{{d}}/{{e}}</text></view></up-swiper><view class="sort_comm_warp data-v-04033f11"><view wx:for="{{h}}" wx:for-item="item" wx:key="d" class="sort_item_comm data-v-04033f11"><up-image wx:if="{{item.b}}" class="data-v-04033f11" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image><view class="sort_item_title_comm data-v-04033f11">{{item.c}}</view></view></view></view><view class="hash_union_nearby data-v-04033f11"><view class="header_ data-v-04033f11"><view class="left_ data-v-04033f11"><view class="item_comm data-v-04033f11"><view class="data-v-04033f11" style="margin-top:4rpx"><up-image wx:if="{{i}}" class="data-v-04033f11" u-i="04033f11-5" bind:__l="__l" u-p="{{i}}"></up-image></view><text class="data-v-04033f11" style="margin:0 10rpx">附近</text><view class="data-v-04033f11" style="margin-top:6rpx"><up-image wx:if="{{j}}" class="data-v-04033f11" u-i="04033f11-6" bind:__l="__l" u-p="{{j}}"></up-image></view></view><view class="item_comm data-v-04033f11" style="margin-left:10rpx"><text class="data-v-04033f11" style="margin-right:10rpx">综合排序</text><view class="data-v-04033f11" style="margin-top:6rpx"><up-image wx:if="{{k}}" class="data-v-04033f11" u-i="04033f11-7" bind:__l="__l" u-p="{{k}}"></up-image></view></view></view><view class="item_comm data-v-04033f11">查看更多</view></view><view class="content_ data-v-04033f11"><block wx:if="{{l}}"><view wx:for="{{m}}" wx:for-item="item" wx:key="k" class="content_item data-v-04033f11"><up-image wx:if="{{n}}" class="data-v-04033f11" u-i="{{item.a}}" bind:__l="__l" u-p="{{n}}"></up-image><view class="content_item_right data-v-04033f11"><view class="title_ data-v-04033f11">{{item.b}}</view><view class="rate_ data-v-04033f11"><up-rate wx:if="{{item.e}}" class="data-v-04033f11" u-i="{{item.c}}" bind:__l="__l" bindupdateModelValue="{{item.d}}" u-p="{{item.e}}"></up-rate><text class="data-v-04033f11">¥{{item.f}}/人</text><text class="data-v-04033f11">{{item.g}}去过</text></view><view class="data-v-04033f11">{{item.h}}</view><view class="address_ data-v-04033f11"><up-image wx:if="{{o}}" class="data-v-04033f11" u-i="{{item.i}}" bind:__l="__l" u-p="{{o}}"></up-image><text class="data-v-04033f11" style="margin-left:10rpx">{{item.j}}</text></view></view></view></block></view></view><custom-tab-bar wx:if="{{p}}" class="data-v-04033f11" u-i="04033f11-11" bind:__l="__l" u-p="{{p}}"/></view>
@@ -23,8 +23,86 @@
/* 水平间距 */
/* 垂直间距 */
.hash_union_warp.data-v-04033f11 {
height: 100vh;
background-color: #FFFFFF;
height: calc(100vh - 140rpx);
overflow: hidden;
}
.hash_union_warp .hash_union_content.data-v-04033f11 {
padding: 40rpx 20rpx;
}
.hash_union_warp .hash_union_content .content_header.data-v-04033f11 {
display: flex;
justify-content: space-between;
align-items: center;
padding: 60rpx 0 20rpx;
}
.hash_union_warp .hash_union_content .header_union_comm.data-v-04033f11 {
display: flex;
align-items: center;
}
.hash_union_warp .hash_union_content .msg_.data-v-04033f11 {
font-weight: 500;
font-size: 28rpx;
color: #1A1A1A;
margin: 0 10rpx;
}
.hash_union_warp .hash_union_nearby.data-v-04033f11 {
background-color: #F5F5F5;
border-radius: 30rpx 30rpx 0rpx 0rpx;
padding: 30rpx;
}
.hash_union_warp .hash_union_nearby .header_.data-v-04033f11 {
display: flex;
justify-content: space-between;
}
.hash_union_warp .hash_union_nearby .left_.data-v-04033f11 {
display: flex;
}
.hash_union_warp .hash_union_nearby .item_comm.data-v-04033f11 {
background: #FFFFFF;
border-radius: 28rpx;
padding: 10rpx 30rpx;
text-align: center;
font-weight: 500;
font-size: 26rpx;
color: #333333;
display: flex;
align-items: center;
}
.hash_union_warp .hash_union_nearby .content_.data-v-04033f11 {
margin: 20rpx 0;
height: calc(100vh - 1020rpx);
overflow: auto;
}
.hash_union_warp .hash_union_nearby .content_item.data-v-04033f11 {
background: #FFFFFF;
border-radius: 30rpx;
display: flex;
align-items: center;
padding: 20rpx;
margin-bottom: 20rpx;
}
.hash_union_warp .hash_union_nearby .content_item .content_item_right.data-v-04033f11 {
margin-left: 20rpx;
font-weight: 500;
font-size: 18rpx;
color: #999999;
width: calc(100% - 40rpx);
}
.hash_union_warp .hash_union_nearby .content_item .title_.data-v-04033f11 {
font-weight: bold;
font-size: 30rpx;
color: #333333;
}
.hash_union_warp .hash_union_nearby .content_item .rate_.data-v-04033f11 {
display: flex;
align-items: center;
margin: 10rpx 0 6rpx;
}
.hash_union_warp .hash_union_nearby .content_item .address_.data-v-04033f11 {
display: flex;
align-items: center;
margin-top: 10rpx;
}
.hash_union_warp .not_order_warp.data-v-04033f11 {
display: grid;
+248 -122
View File
@@ -1,69 +1,20 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_product = require("../../api/product.js");
const api_common = require("../../api/common.js");
const utils_enumUtils = require("../../utils/enumUtils.js");
const choiceness = () => "../../components/choiceness/choiceness.js";
const CustomTabBar = () => "../../components/custom-tab-bar.js";
const _sfc_main = {
components: { choiceness },
components: { choiceness, CustomTabBar },
data() {
return {
swiperList: [
"/static/home/banner02.png",
"/static/home/banner01.png"
"/static/home/banner01.png",
"/static/home/banner04.png"
],
currentNum: 0,
sortList: [
{
id: 1,
name: "家居百货",
url: "/static/home/sort/1.png"
},
{
id: 2,
name: "水果生鲜",
url: "/static/home/sort/2.png"
},
{
id: 3,
name: "爆款新品",
url: "/static/home/sort/3.png"
},
{
id: 4,
name: "服装服饰",
url: "/static/home/sort/4.png"
},
{
id: 5,
name: "箱包皮具",
url: "/static/home/sort/5.png"
},
{
id: 6,
name: "手机数码",
url: "/static/home/sort/6.png"
},
{
id: 7,
name: "营养保健",
url: "/static/home/sort/7.png"
},
{
id: 8,
name: "个护家清",
url: "/static/home/sort/8.png"
},
{
id: 9,
name: "厨房生活",
url: "/static/home/sort/9.png"
},
{
id: 10,
name: "全部",
url: "/static/home/sort/10.png"
}
],
sortList: [],
languageShow: false,
// 语言选项
languageList: [
@@ -108,17 +59,99 @@ const _sfc_main = {
}
],
// 热门
productLoading: false
productLoading: false,
openShow: false,
platformType: null,
// 当前设备信息
bannerShow: false,
// 是否需要強制更新app
type: "",
// 设备类型 android:2, ios:1
updateApkObj: {},
// 后台数据
bannerPercentageShow: false,
// 是否显示进度条
bannerPercentage: 0
// 进度条
};
},
mounted() {
onShow() {
common_vendor.index.getStorageSync("platform");
common_vendor.index.getStorageSync("versionUpdateTime");
this.getSortList();
this.querySearchList(utils_enumUtils.SEARCH_TYPE.SOMETHING);
this.querySearchList(utils_enumUtils.SEARCH_TYPE.EXPLOSIVE);
},
mounted() {
},
methods: {
checkUpdate() {
common_vendor.index.getStorageSync("version");
common_vendor.index.getStorageSync("versionCode");
},
// 安装
goUpdate(updateApkObj, platformType) {
const self = this;
if (platformType == "ANDROID") {
var dtask = plus.downloader.createDownload(updateApkObj.downloadUrl, {}, function(d, status) {
common_vendor.index.__f__("log", "at pages/home/home.vue:317", "d, status", d, status);
if (status == 200) {
plus.runtime.install(plus.io.convertLocalFileSystemURL(d.filename), { force: true }, function(resp) {
common_vendor.index.setStorageSync("versionUpdateTime", common_vendor.dayjs().valueOf());
plus.runtime.restart();
}, function(error) {
common_vendor.index.__f__("log", "at pages/home/home.vue:325", "error", error);
common_vendor.index.showToast({
title: error.message,
mask: false,
duration: 1500
});
});
} else {
self.bannerPercentageShow = false;
common_vendor.index.showToast({
title: "更新失败",
mask: false,
duration: 1500
});
}
});
try {
dtask.start();
let prg = 0;
this.bannerPercentageShow = true;
dtask.addEventListener("statechanged", function(task, status) {
switch (task.state) {
case 1:
break;
case 2:
break;
case 3:
prg = parseInt(parseFloat(task.downloadedSize) / parseFloat(task.totalSize) * 100);
self.bannerPercentage = prg;
break;
case 4:
plus.nativeUI.closeWaiting();
self.bannerShow = false;
break;
}
});
} catch (err) {
common_vendor.index.__f__("log", "at pages/home/home.vue:363", "更新失败-03err", err);
plus.nativeUI.closeWaiting();
common_vendor.index.showToast({
title: "更新失败-03",
mask: false,
duration: 1500
});
}
} else if (platformType == "IOS") {
plus.runtime.openURL(updateApkObj.downloadUrl);
}
},
jumpTurntable() {
common_vendor.index.navigateTo({
url: "/pages/turntable/turntable"
url: "/pages/turntable/turntable?backPath=home"
});
},
jumpPrdference() {
@@ -155,6 +188,29 @@ const _sfc_main = {
}
}
this.productLoading = false;
},
/**
* 查询分类列表
*/
async getSortList() {
const resp = await api_common.getCascadeCategory({ parentId: 0 });
if (resp && resp.bizcode === 100) {
this.sortList = resp.data.slice(0, 10);
}
},
// 跳转到分类栏目
jumpSort(item) {
common_vendor.index.setStorageSync("sortId", item.id);
common_vendor.index.switchTab({
// 首页
url: "/pages/sort/sort"
});
},
// 跳转到商品详情
jumpInfo(item) {
common_vendor.index.navigateTo({
url: "/pages/productInfo/productInfo?id=" + item.id
});
}
}
};
@@ -163,60 +219,72 @@ if (!Array) {
const _easycom_up_swiper2 = common_vendor.resolveComponent("up-swiper");
const _easycom_up_loading_icon2 = common_vendor.resolveComponent("up-loading-icon");
const _easycom_choiceness2 = common_vendor.resolveComponent("choiceness");
const _easycom_up_modal2 = common_vendor.resolveComponent("up-modal");
const _component_CustomTabBar = common_vendor.resolveComponent("CustomTabBar");
const _easycom_up_action_sheet2 = common_vendor.resolveComponent("up-action-sheet");
(_easycom_up_image2 + _easycom_up_swiper2 + _easycom_up_loading_icon2 + _easycom_choiceness2 + _easycom_up_action_sheet2)();
const _easycom_up_line_progress2 = common_vendor.resolveComponent("up-line-progress");
const _easycom_up_overlay2 = common_vendor.resolveComponent("up-overlay");
(_easycom_up_image2 + _easycom_up_swiper2 + _easycom_up_loading_icon2 + _easycom_choiceness2 + _easycom_up_modal2 + _component_CustomTabBar + _easycom_up_action_sheet2 + _easycom_up_line_progress2 + _easycom_up_overlay2)();
}
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
const _easycom_up_swiper = () => "../../uni_modules/uview-plus/components/u-swiper/u-swiper.js";
const _easycom_up_loading_icon = () => "../../uni_modules/uview-plus/components/u-loading-icon/u-loading-icon.js";
const _easycom_choiceness = () => "../../components/choiceness/choiceness.js";
const _easycom_up_modal = () => "../../uni_modules/uview-plus/components/u-modal/u-modal.js";
const _easycom_up_action_sheet = () => "../../uni_modules/uview-plus/components/u-action-sheet/u-action-sheet.js";
const _easycom_up_line_progress = () => "../../uni_modules/uview-plus/components/u-line-progress/u-line-progress.js";
const _easycom_up_overlay = () => "../../uni_modules/uview-plus/components/u-overlay/u-overlay.js";
if (!Math) {
(_easycom_up_image + _easycom_up_swiper + _easycom_up_loading_icon + _easycom_choiceness + _easycom_up_action_sheet)();
(_easycom_up_image + _easycom_up_swiper + _easycom_up_loading_icon + _easycom_choiceness + _easycom_up_modal + _easycom_up_action_sheet + _easycom_up_line_progress + _easycom_up_overlay)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.o(_ctx.jumpMine),
b: common_vendor.p({
return common_vendor.e({
a: common_vendor.p({
src: "/static/home/logo.png",
width: "104",
height: "30",
width: "114",
height: "42",
bgColor: "#f1f6ff00"
}),
c: common_vendor.p({
b: common_vendor.p({
src: "/static/home/search.png",
width: "18",
height: "18",
bgColor: "#f1f6ff00"
}),
d: common_vendor.o((...args) => $options.jumpSearch && $options.jumpSearch(...args)),
e: common_vendor.p({
src: "/static/common/down.png",
width: "10",
height: "10",
bgColor: "#f1f6ff00"
}),
f: common_vendor.o(($event) => $data.languageShow = true),
g: common_vendor.t($data.currentNum + 1),
h: common_vendor.t($data.swiperList.length),
i: common_vendor.p({
c: common_vendor.o((...args) => $options.jumpSearch && $options.jumpSearch(...args)),
d: common_vendor.t($data.currentNum + 1),
e: common_vendor.t($data.swiperList.length),
f: common_vendor.o((e) => $data.currentNum = e.current),
g: common_vendor.p({
list: $data.swiperList,
height: "140",
radius: "10"
height: "120",
radius: "10",
bgColor: "#ffffff00"
}),
j: common_vendor.f($data.sortList, (item, k0, i0) => {
h: $data.sortList && $data.sortList.length !== 0
}, $data.sortList && $data.sortList.length !== 0 ? {
i: common_vendor.f($data.sortList, (item, k0, i0) => {
return {
a: "07e72d3c-4-" + i0,
a: "07e72d3c-3-" + i0,
b: common_vendor.p({
src: item.url,
src: item.icon,
width: "40",
height: "32",
bgColor: "#f1f6ff00"
}),
c: common_vendor.t(item.name),
d: item.id
d: item.id,
e: common_vendor.o(($event) => $options.jumpSort(item), item.id)
};
}),
})
} : {
j: common_vendor.p({
src: "/static/common/not_order.png",
width: "80",
height: "80",
bgColor: "#f1f6ff00"
})
}, {
k: common_vendor.o($options.jumpTurntable),
l: common_vendor.p({
src: "/static/home/turntable.png",
@@ -224,45 +292,27 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
height: "134",
bgColor: "#f1f6ff00"
}),
m: common_vendor.p({
src: "/static/common/right_y_st2.png",
width: "12",
height: "12",
m: $data.faddishProduct && $data.faddishProduct.length !== 0
}, $data.faddishProduct && $data.faddishProduct.length !== 0 ? {
n: common_vendor.p({
src: "/static/home/youxuan.png",
width: "10",
height: "10",
bgColor: "#f1f6ff00"
}),
n: common_vendor.o((...args) => $options.jumpPrdference && $options.jumpPrdference(...args)),
o: common_vendor.p({
show: $data.productLoading
}),
p: common_vendor.f($data.yxProduct, (item, k0, i0) => {
return {
a: "07e72d3c-8-" + i0,
b: common_vendor.p({
src: item.url,
width: "100%",
height: "100",
bgColor: "#f1f6ff00",
shape: "square",
radius: "16"
}),
c: common_vendor.t(item.title),
d: common_vendor.t(item.price),
e: item.id
};
}),
q: common_vendor.p({
src: "/static/common/right_y_st2.png",
width: "12",
height: "12",
bgColor: "#f1f6ff00"
}),
r: common_vendor.o((...args) => $options.jumpWelcome && $options.jumpWelcome(...args)),
s: common_vendor.p({
p: common_vendor.o((...args) => $options.jumpWelcome && $options.jumpWelcome(...args)),
q: common_vendor.p({
show: $data.productLoading
}),
t: common_vendor.f($data.faddishProduct, (item, k0, i0) => {
r: common_vendor.f($data.faddishProduct, (item, k0, i0) => {
return {
a: "07e72d3c-11-" + i0,
a: "07e72d3c-9-" + i0,
b: common_vendor.p({
src: item.url,
width: "100%",
@@ -272,23 +322,99 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
radius: "16"
}),
c: common_vendor.t(item.title),
d: common_vendor.t(item.price),
e: item.id
d: common_vendor.t(item.adPrice),
e: item.id,
f: common_vendor.o(($event) => $options.jumpInfo(item), item.id)
};
}),
v: common_vendor.p({
src: "/static/common/right.png",
width: "16",
height: "16",
})
} : {}, {
s: $data.yxProduct && $data.yxProduct.length !== 0
}, $data.yxProduct && $data.yxProduct.length !== 0 ? {
t: common_vendor.p({
src: "/static/common/right_y_st2.png",
width: "12",
height: "12",
bgColor: "#f1f6ff00"
}),
w: common_vendor.o(($event) => $data.languageShow = false),
x: common_vendor.p({
v: common_vendor.o((...args) => $options.jumpPrdference && $options.jumpPrdference(...args)),
w: common_vendor.p({
show: $data.productLoading
}),
x: common_vendor.f($data.yxProduct, (item, k0, i0) => {
return {
a: "07e72d3c-12-" + i0,
b: common_vendor.p({
src: item.url,
width: "100%",
height: "100",
bgColor: "#f1f6ff00",
shape: "square",
radius: "16"
}),
c: common_vendor.t(item.title),
d: common_vendor.t(item.adPrice),
e: item.id,
f: common_vendor.o(($event) => $options.jumpInfo(item), item.id)
};
})
} : {}, {
y: common_vendor.p({
src: "/static/common/right_b.png",
width: "10",
height: "10",
bgColor: "#f1f6ff00"
}),
z: common_vendor.o(($event) => {
$data.openShow = true;
}),
A: common_vendor.p({
src: "/static/common/close.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
}),
B: common_vendor.o(($event) => {
$data.openShow = false;
}),
C: common_vendor.o(($event) => {
$data.openShow = false;
}),
D: common_vendor.p({
show: $data.openShow,
showConfirmButton: false
}),
E: common_vendor.p({
tabIndex: 0
}),
F: common_vendor.o(($event) => $data.languageShow = false),
G: common_vendor.p({
actions: $data.languageList,
show: $data.languageShow,
cancelText: "取消"
}),
H: common_vendor.t($data.updateApkObj.versionCode || 100),
I: common_vendor.t($data.updateApkObj.content),
J: !$data.bannerPercentageShow
}, !$data.bannerPercentageShow ? common_vendor.e({
K: common_vendor.o(($event) => $options.goUpdate($data.updateApkObj, $data.platformType)),
L: !$data.updateApkObj.isForce
}, !$data.updateApkObj.isForce ? {
M: common_vendor.o(($event) => {
$data.bannerShow = false;
})
};
} : {}) : {
N: common_vendor.p({
percentage: $data.bannerPercentage,
activeColor: "#FF7C41"
}),
O: common_vendor.t($data.bannerPercentage)
}, {
P: common_vendor.o(() => {
}),
Q: common_vendor.p({
show: $data.bannerShow
})
});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-07e72d3c"]]);
wx.createPage(MiniProgramPage);
+5 -1
View File
@@ -2,9 +2,13 @@
"navigationStyle": "custom",
"usingComponents": {
"choiceness": "../../components/choiceness/choiceness",
"custom-tab-bar": "../../components/custom-tab-bar",
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
"up-swiper": "../../uni_modules/uview-plus/components/u-swiper/u-swiper",
"up-loading-icon": "../../uni_modules/uview-plus/components/u-loading-icon/u-loading-icon",
"up-action-sheet": "../../uni_modules/uview-plus/components/u-action-sheet/u-action-sheet"
"up-modal": "../../uni_modules/uview-plus/components/u-modal/u-modal",
"up-action-sheet": "../../uni_modules/uview-plus/components/u-action-sheet/u-action-sheet",
"up-line-progress": "../../uni_modules/uview-plus/components/u-line-progress/u-line-progress",
"up-overlay": "../../uni_modules/uview-plus/components/u-overlay/u-overlay"
}
}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,5 +1,6 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const utils_inviteBase64 = require("../../utils/inviteBase64.js");
const _sfc_main = {
data() {
return {};
@@ -15,61 +16,82 @@ const _sfc_main = {
// const response = await uni.$httpHeader.post(mergeImage,params);
// this.saveHeadImgFile(response.data);
// },
saveHeadImgFile(base64Data) {
if (!base64Data) {
return;
}
const fsm = common_vendor.index.getFileSystemManager();
const filePath = `${common_vendor.index.env.USER_DATA_PATH}/your-image-name.png`;
fsm.writeFile({
filePath,
data: base64Data.split(",")[1],
// 去掉base64的头部信息
encoding: "base64",
success: function(res) {
common_vendor.index.saveImageToPhotosAlbum({
filePath,
success: function() {
common_vendor.index.showToast({
title: "图片保存到相册成功",
icon: "success"
saveBaseImgFile() {
common_vendor.index.showLoading({
title: "保存中..."
});
const currentBase64 = utils_inviteBase64.base64;
const bitmap = new plus.nativeObj.Bitmap("base64");
bitmap.loadBase64Data(
currentBase64,
() => {
const url = "_doc/" + (/* @__PURE__ */ new Date()).getTime() + ".png";
bitmap.save(
url,
{
overwrite: false
// 是否覆盖
// quality: 'quality' // 图片清晰度
},
(i) => {
common_vendor.index.saveImageToPhotosAlbum({
filePath: url,
success: () => {
common_vendor.index.hideLoading();
this.$refs.uToastRef.show({
type: "success",
message: "图片保存到相册成功"
});
bitmap.clear();
}
});
},
fail: function(err) {
common_vendor.index.showToast({
title: "图片保存失败",
icon: "error"
(e) => {
common_vendor.index.hideLoading();
common_vendor.index.__f__("log", "at pages/invite_friends/invite_friends.vue:74", "图片保存失败", e);
this.$refs.uToastRef.show({
type: "error",
message: "图片保存失败"
});
bitmap.clear();
}
});
);
},
fail: function(err) {
common_vendor.index.showToast({
title: "图片保存失败",
icon: "error"
(e) => {
common_vendor.index.hideLoading();
common_vendor.index.__f__("log", "at pages/invite_friends/invite_friends.vue:85", "图片保存失败", e);
this.$refs.uToastRef.show({
type: "error",
message: "图片保存失败"
});
bitmap.clear();
}
});
);
}
}
};
if (!Array) {
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
_easycom_up_image2();
const _easycom_up_toast2 = common_vendor.resolveComponent("up-toast");
(_easycom_up_image2 + _easycom_up_toast2)();
}
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
const _easycom_up_toast = () => "../../uni_modules/uview-plus/components/u-toast/u-toast.js";
if (!Math) {
_easycom_up_image();
(_easycom_up_image + _easycom_up_toast)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.p({
src: "/static/invite/bg.png",
width: "60",
height: "60",
bgColor: "#f1f6ff00"
width: "100%",
height: "460",
bgColor: "#f1f6ff00",
shape: "square",
radius: "10"
}),
b: common_vendor.o(($event) => $options.saveHeadImgFile(null))
b: common_vendor.o((...args) => $options.saveBaseImgFile && $options.saveBaseImgFile(...args)),
c: common_vendor.sr("uToastRef", "2c3d3045-1")
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-2c3d3045"]]);
@@ -5,6 +5,7 @@
"enablePullDownRefresh": false,
"navigationStyle": "default",
"usingComponents": {
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image"
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
"up-toast": "../../uni_modules/uview-plus/components/u-toast/u-toast"
}
}
@@ -1 +1 @@
<view class="invite_friends_warp data-v-2c3d3045"><view class="invite_img data-v-2c3d3045"><view class="invite_content_img data-v-2c3d3045"><view class="data-v-2c3d3045"><view class="invite_content_img_title data-v-2c3d3045">邀请你</view><view class="invite_content_img_msg data-v-2c3d3045">扫一扫,好物轻松购</view></view><view class="data-v-2c3d3045"><up-image wx:if="{{a}}" class="data-v-2c3d3045" u-i="2c3d3045-0" bind:__l="__l" u-p="{{a}}"></up-image></view></view></view><view class="invite_but data-v-2c3d3045"><view class="save_but data-v-2c3d3045"><text class="data-v-2c3d3045" style="margin-left:10rpx" bindtap="{{b}}">保存图片</text></view></view></view>
<view class="invite_friends_warp data-v-2c3d3045"><view class="invite_img data-v-2c3d3045"><up-image wx:if="{{a}}" class="data-v-2c3d3045" u-i="2c3d3045-0" bind:__l="__l" u-p="{{a}}"></up-image></view><view class="invite_but data-v-2c3d3045"><view class="save_but data-v-2c3d3045"><text class="data-v-2c3d3045" style="margin-left:10rpx" bindtap="{{b}}">保存图片</text></view></view><up-toast class="r data-v-2c3d3045" u-r="uToastRef" u-i="2c3d3045-1" bind:__l="__l"></up-toast></view>
File diff suppressed because one or more lines are too long
+35 -23
View File
@@ -28,9 +28,8 @@ const _sfc_main = {
// 是否显示
isPolicy: false,
// 是否同意
countdown: false,
countdown: false
// 清空倒计时
butLoading: false
};
},
methods: {
@@ -50,11 +49,10 @@ const _sfc_main = {
});
return;
}
this.butLoading = true;
let response = {};
if (this.loginWay === "password") {
params.mobile = form.name;
params.password = form.password;
params.password = common_vendor.CryptoJS.MD5(form.password).toString();
response = await api_auth.loginbypw(params);
} else {
params.mobile = form.name;
@@ -74,7 +72,6 @@ const _sfc_main = {
utils_auth.setStorageFun(utils_auth.USER_DATA, userInfo);
let currentTimeStamp = (/* @__PURE__ */ new Date()).getTime();
utils_auth.setStorageFun(utils_auth.USER_LOGIN_TIME, currentTimeStamp);
this.butLoading = false;
this.$refs.uToastRef.show({
type: "success",
message: response.msg
@@ -105,7 +102,7 @@ const _sfc_main = {
type: utils_enumUtils.SMS_TYPE.LOGIN
};
const response = await api_common.getUserList(params);
common_vendor.index.__f__("log", "at pages/login/login.vue:208", "responseresponseresponse", response);
common_vendor.index.__f__("log", "at pages/login/login.vue:207", "responseresponseresponse", response);
if (response && response.bizcode === 100) {
this.$refs.uToastRef.show({
type: "success",
@@ -119,6 +116,24 @@ const _sfc_main = {
common_vendor.index.navigateTo({
url: "/pages/register/register"
});
},
// 用户协议
jumpUserAgreement() {
common_vendor.index.navigateTo({
url: "/pages/mine_user_agreement/mine_user_agreement?backPath=login"
});
},
// 隐私协议
jumpPrivacyAgreement() {
common_vendor.index.navigateTo({
url: "/pages/mine_privacy_agreement/mine_privacy_agreement?backPath=login"
});
},
// 售后保障协议
jumpProductAgreement() {
common_vendor.index.navigateTo({
url: "/pages/mine_product_agreement/mine_product_agreement?backPath=login"
});
}
}
};
@@ -126,19 +141,17 @@ if (!Array) {
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
const _easycom_up_count_down2 = common_vendor.resolveComponent("up-count-down");
const _easycom_up_loading_icon2 = common_vendor.resolveComponent("up-loading-icon");
const _easycom_up_checkbox2 = common_vendor.resolveComponent("up-checkbox");
const _easycom_up_toast2 = common_vendor.resolveComponent("up-toast");
(_easycom_up_image2 + _easycom_up_input2 + _easycom_up_count_down2 + _easycom_up_loading_icon2 + _easycom_up_checkbox2 + _easycom_up_toast2)();
(_easycom_up_image2 + _easycom_up_input2 + _easycom_up_count_down2 + _easycom_up_checkbox2 + _easycom_up_toast2)();
}
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
const _easycom_up_count_down = () => "../../uni_modules/uview-plus/components/u-count-down/u-count-down.js";
const _easycom_up_loading_icon = () => "../../uni_modules/uview-plus/components/u-loading-icon/u-loading-icon.js";
const _easycom_up_checkbox = () => "../../uni_modules/uview-plus/components/u-checkbox/u-checkbox.js";
const _easycom_up_toast = () => "../../uni_modules/uview-plus/components/u-toast/u-toast.js";
if (!Math) {
(_easycom_up_image + _easycom_up_input + _easycom_up_count_down + _easycom_up_loading_icon + _easycom_up_checkbox + _easycom_up_toast)();
(_easycom_up_image + _easycom_up_input + _easycom_up_count_down + _easycom_up_checkbox + _easycom_up_toast)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
@@ -215,22 +228,21 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
modelValue: $data.form.code
})
}), {
v: common_vendor.p({
color: "#FFFFFF",
show: $data.butLoading
}),
w: common_vendor.o((...args) => $options.loginFun && $options.loginFun(...args)),
x: $data.loginWay === "password"
v: common_vendor.o((...args) => $options.loginFun && $options.loginFun(...args)),
w: $data.loginWay === "password"
}, $data.loginWay === "password" ? {
y: common_vendor.o(($event) => $data.loginWay = "code")
x: common_vendor.o(($event) => $data.loginWay = "code")
} : {}, {
z: $data.loginWay === "code"
y: $data.loginWay === "code"
}, $data.loginWay === "code" ? {
A: common_vendor.o(($event) => $data.loginWay = "password")
z: common_vendor.o(($event) => $data.loginWay = "password")
} : {}, {
B: common_vendor.o((...args) => $options.jumpRegister && $options.jumpRegister(...args)),
C: common_vendor.o(($event) => $data.isPolicy = $event),
D: common_vendor.p({
A: common_vendor.o((...args) => $options.jumpRegister && $options.jumpRegister(...args)),
B: common_vendor.o((...args) => $options.jumpUserAgreement && $options.jumpUserAgreement(...args)),
C: common_vendor.o((...args) => $options.jumpPrivacyAgreement && $options.jumpPrivacyAgreement(...args)),
D: common_vendor.o((...args) => $options.jumpProductAgreement && $options.jumpProductAgreement(...args)),
E: common_vendor.o(($event) => $data.isPolicy = $event),
F: common_vendor.p({
name: "isCheck",
usedAlone: true,
shape: "circle",
@@ -239,7 +251,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
iconSize: "18",
checked: $data.isPolicy
}),
E: common_vendor.sr("uToastRef", "e4e4508d-10")
G: common_vendor.sr("uToastRef", "e4e4508d-9")
});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-e4e4508d"]]);
-1
View File
@@ -4,7 +4,6 @@
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
"up-count-down": "../../uni_modules/uview-plus/components/u-count-down/u-count-down",
"up-loading-icon": "../../uni_modules/uview-plus/components/u-loading-icon/u-loading-icon",
"up-checkbox": "../../uni_modules/uview-plus/components/u-checkbox/u-checkbox",
"up-toast": "../../uni_modules/uview-plus/components/u-toast/u-toast"
}
+1 -1
View File
@@ -1 +1 @@
<view class="login_warp data-v-e4e4508d"><view class="login_logo_warp data-v-e4e4508d"><view class="data-v-e4e4508d" style="margin-left:8rpx"><up-image wx:if="{{a}}" class="data-v-e4e4508d" u-i="e4e4508d-0" bind:__l="__l" u-p="{{a}}"></up-image></view><view class="data-v-e4e4508d" style="margin-top:20rpx"><up-image wx:if="{{b}}" class="data-v-e4e4508d" u-i="e4e4508d-1" bind:__l="__l" u-p="{{b}}"></up-image></view></view><view class="login_info data-v-e4e4508d"><view class="login_info_item data-v-e4e4508d"><up-input wx:if="{{e}}" class="data-v-e4e4508d" bindchange="{{c}}" u-i="e4e4508d-2" bind:__l="__l" bindupdateModelValue="{{d}}" u-p="{{e}}"></up-input></view><view wx:if="{{f}}" class="login_info_item data-v-e4e4508d"><up-input wx:if="{{n}}" class="data-v-e4e4508d" u-s="{{['suffix']}}" bindchange="{{l}}" u-i="e4e4508d-3" bind:__l="__l" bindupdateModelValue="{{m}}" u-p="{{n}}"><view slot="suffix" style="margin-right:10rpx"><up-image wx:if="{{g}}" class="data-v-e4e4508d" bindclick="{{h}}" u-i="e4e4508d-4,e4e4508d-3" bind:__l="__l" u-p="{{i}}"></up-image><up-image wx:else class="data-v-e4e4508d" bindclick="{{j}}" u-i="e4e4508d-5,e4e4508d-3" bind:__l="__l" u-p="{{k||''}}"></up-image></view></up-input></view><view wx:else class="login_info_item data-v-e4e4508d"><up-input wx:if="{{t}}" class="data-v-e4e4508d" u-s="{{['suffix']}}" u-i="e4e4508d-6" bind:__l="__l" bindupdateModelValue="{{s}}" u-p="{{t}}"><view slot="suffix" style="margin-right:10rpx"><view wx:if="{{o}}" class="code-warp data-v-e4e4508d"><up-count-down wx:if="{{q}}" class="data-v-e4e4508d" bindfinish="{{p}}" u-i="e4e4508d-7,e4e4508d-6" bind:__l="__l" u-p="{{q}}"></up-count-down><text class="data-v-e4e4508d" style="margin-left:10rpx">s</text></view><view wx:else bindtap="{{r}}" class="code_msg data-v-e4e4508d"> 获取验证码 </view></view></up-input></view><view class="login_comm_but login_comm_but_yes data-v-e4e4508d" bindtap="{{w}}"><up-loading-icon wx:if="{{v}}" class="data-v-e4e4508d" u-i="e4e4508d-8" bind:__l="__l" u-p="{{v}}"></up-loading-icon><text class="data-v-e4e4508d" style="margin-left:10rpx">登录</text></view><view class="cut_way_warp data-v-e4e4508d"><view wx:if="{{x}}" class="data-v-e4e4508d" bindtap="{{y}}">验证码登录</view><view wx:if="{{z}}" class="data-v-e4e4508d" bindtap="{{A}}">密码登录登录</view><view class="data-v-e4e4508d" bindtap="{{B}}">注册</view></view></view><view class="policy_warp data-v-e4e4508d"><up-checkbox wx:if="{{D}}" class="data-v-e4e4508d" u-s="{{['label']}}" u-i="e4e4508d-9" bind:__l="__l" bindupdateChecked="{{C}}" u-p="{{D}}"><view slot="label"><text class="data-v-e4e4508d">已阅读并同意</text><text class="policy_a_warp data-v-e4e4508d">《哈希优品服务协议》</text><text class="data-v-e4e4508d">及</text><text class="policy_a_warp data-v-e4e4508d">《隐私政策》</text></view></up-checkbox></view><up-toast class="r data-v-e4e4508d" u-r="uToastRef" u-i="e4e4508d-10" bind:__l="__l"></up-toast></view>
<view class="login_warp data-v-e4e4508d"><view class="login_logo_warp data-v-e4e4508d"><view class="data-v-e4e4508d" style="text-align:center"><up-image wx:if="{{a}}" class="data-v-e4e4508d" u-i="e4e4508d-0" bind:__l="__l" u-p="{{a}}"></up-image></view><view class="data-v-e4e4508d" style="margin-top:20rpx"><up-image wx:if="{{b}}" class="data-v-e4e4508d" u-i="e4e4508d-1" bind:__l="__l" u-p="{{b}}"></up-image></view></view><view class="login_info data-v-e4e4508d"><view class="login_info_item data-v-e4e4508d"><up-input wx:if="{{e}}" class="data-v-e4e4508d" bindchange="{{c}}" u-i="e4e4508d-2" bind:__l="__l" bindupdateModelValue="{{d}}" u-p="{{e}}"></up-input></view><view wx:if="{{f}}" class="login_info_item data-v-e4e4508d"><up-input wx:if="{{n}}" class="data-v-e4e4508d" u-s="{{['suffix']}}" bindchange="{{l}}" u-i="e4e4508d-3" bind:__l="__l" bindupdateModelValue="{{m}}" u-p="{{n}}"><view slot="suffix" style="margin-right:10rpx"><up-image wx:if="{{g}}" class="data-v-e4e4508d" bindclick="{{h}}" u-i="e4e4508d-4,e4e4508d-3" bind:__l="__l" u-p="{{i}}"></up-image><up-image wx:else class="data-v-e4e4508d" bindclick="{{j}}" u-i="e4e4508d-5,e4e4508d-3" bind:__l="__l" u-p="{{k||''}}"></up-image></view></up-input></view><view wx:else class="login_info_item data-v-e4e4508d"><up-input wx:if="{{t}}" class="data-v-e4e4508d" u-s="{{['suffix']}}" u-i="e4e4508d-6" bind:__l="__l" bindupdateModelValue="{{s}}" u-p="{{t}}"><view slot="suffix" style="margin-right:10rpx"><view wx:if="{{o}}" class="code-warp data-v-e4e4508d"><up-count-down wx:if="{{q}}" class="data-v-e4e4508d" bindfinish="{{p}}" u-i="e4e4508d-7,e4e4508d-6" bind:__l="__l" u-p="{{q}}"></up-count-down><text class="data-v-e4e4508d" style="margin-left:10rpx">s</text></view><view wx:else bindtap="{{r}}" class="code_msg data-v-e4e4508d"> 获取验证码 </view></view></up-input></view><view class="login_comm_but login_comm_but_yes data-v-e4e4508d" bindtap="{{v}}"><text class="data-v-e4e4508d" style="margin-left:10rpx">登录</text></view><view class="cut_way_warp data-v-e4e4508d"><view wx:if="{{w}}" class="data-v-e4e4508d" bindtap="{{x}}">验证码登录</view><view wx:if="{{y}}" class="data-v-e4e4508d" bindtap="{{z}}">密码登录登录</view><view class="data-v-e4e4508d" bindtap="{{A}}">注册</view></view></view><view class="policy_warp data-v-e4e4508d"><up-checkbox wx:if="{{F}}" class="data-v-e4e4508d" u-s="{{['label']}}" u-i="e4e4508d-8" bind:__l="__l" bindupdateChecked="{{E}}" u-p="{{F}}"><view slot="label"><text class="data-v-e4e4508d">已阅读并同意</text><text class="policy_a_warp data-v-e4e4508d" bindtap="{{B}}">《服务协议》</text><text class="data-v-e4e4508d">、</text><text class="policy_a_warp data-v-e4e4508d" bindtap="{{C}}">《隐私政策》</text><text class="data-v-e4e4508d">、</text><text class="policy_a_warp data-v-e4e4508d" bindtap="{{D}}">《售后保障协议》</text></view></up-checkbox></view><up-toast class="r data-v-e4e4508d" u-r="uToastRef" u-i="e4e4508d-9" bind:__l="__l"></up-toast></view>
+290 -89
View File
@@ -3,35 +3,45 @@ const common_vendor = require("../../common/vendor.js");
const utils_auth = require("../../utils/auth.js");
const utils_enumUtils = require("../../utils/enumUtils.js");
const utils_index = require("../../utils/index.js");
const api_order = require("../../api/order.js");
const api_auth = require("../../api/auth.js");
const CustomTabBar = () => "../../components/custom-tab-bar.js";
const _sfc_main = {
components: { CustomTabBar },
data() {
return {
userData: {},
// 当前登录对象
currentUserData: {},
// 当前登录对象
orderTemplList: [
{
id: utils_enumUtils.ORDER_TYPE.UNPAID,
title: "待支付",
url: "/static/mine/order_unpaid.png",
path: "/pages/mine_order/mine_order"
path: "/pages/mine_order/mine_order?type=" + utils_enumUtils.MINE_ORDER_TYPE.UNPAID,
note: "unPayNum"
},
{
id: utils_enumUtils.ORDER_TYPE.UNSHIPPED,
title: "待发货",
url: "/static/mine/order_unshipped.png",
path: "/pages/mine_order/mine_order"
path: "/pages/mine_order/mine_order?type=" + utils_enumUtils.MINE_ORDER_TYPE.UNSHIPPED,
note: "unSentNum"
},
{
id: utils_enumUtils.ORDER_TYPE.NOT_RECEIVE,
title: "待收货",
url: "/static/mine/order_notReceive.png",
path: "/pages/mine_order/mine_order"
path: "/pages/mine_order/mine_order?type=" + utils_enumUtils.MINE_ORDER_TYPE.NOT_RECEIVE,
note: "unTakeNum"
},
{
id: utils_enumUtils.ORDER_TYPE.SUCCEED,
title: "待评价",
title: "已完成",
url: "/static/mine/order_afterSale.png",
path: "/pages/mine_order/mine_order"
path: "/pages/mine_order/mine_order?type=" + utils_enumUtils.MINE_ORDER_TYPE.SUCCEED,
note: "unCommentNum"
}
],
applyList: [
@@ -47,102 +57,162 @@ const _sfc_main = {
url: "/static/mine/apply_prize.png",
path: "/pages/turntable/turntable"
},
{
id: 3,
title: "HM",
url: "/static/mine/apply_hm.png"
},
{
id: 4,
title: "贡献值",
url: "/static/mine/apply_gx.png"
title: "我的团队",
url: "/static/mine/tool_team.png",
path: "/pages/mine_my_team/mine_my_team"
},
{
id: 5,
title: "数据",
url: "/static/mine/apply_sj.png"
}
],
// 应用模版
toolList: [
{
id: 1,
title: "IM聊天",
url: "/static/mine/tool_im.png"
},
{
id: 2,
title: "我的团队",
url: "/static/mine/tool_team.png"
title: "加速次数",
url: "/static/mine/tool_js.png",
path: "/pages/accelerate/accelerate"
},
{
id: 3,
title: "邀请好友",
url: "/static/mine/tool_invite.png",
path: "/pages/invite_friends/invite_friends"
},
{
id: 4,
title: "加速次数",
url: "/static/mine/tool_js.png"
},
title: "交易",
url: "/static/mine/apply_hm.png"
}
// {
// id:4,
// title:"贡献值",
// url:'/static/mine/apply_gx.png'
// },{
// id:5,
// title:"数据",
// url:'/static/mine/apply_sj.png'
// },
],
// 应用模版
toolList: [
{
id: 5,
title: "地址管理",
url: "/static/mine/tool_dz.png",
path: "/pages/mine_address/mine_address"
},
{
id: 6,
title: "卡券",
url: "/static/mine/tool_kj.png"
},
{
id: 7,
title: "联系客服",
url: "/static/mine/tool_kf.png"
},
{
id: 8,
title: "商学院资讯",
url: "/static/mine/tool_sxy.png"
},
{
id: 9,
title: "实名认证",
url: "/static/mine/tool_sm.png",
path: "/pages/mine_authentication/mine_authentication"
url: "/static/mine/tool_sm.png"
},
{
id: 10,
title: "银行卡管理",
url: "/static/mine/tool_card.png",
path: "/pages/mine_bank_card/mine_bank_card"
},
{
id: 3,
title: "邀请好友",
url: "/static/mine/tool_invite.png",
path: "/pages/invite_friends/invite_friends"
},
// {
// id:2,
// title:"我的团队",
// url:'/static/mine/tool_team.png',
// path:"/pages/mine_my_team/mine_my_team",
// },
{
id: 6,
title: "卡券",
url: "/static/mine/tool_kj.png"
// path:"/pages/mine_coupon/mine_coupon",
},
{
id: 7,
title: "联系客服",
url: "/static/mine/tool_kf.png"
},
// {
// id:4,
// title:"加速次数",
// url:'/static/mine/tool_js.png',
// path:"/pages/accelerate/accelerate"
// },
{
id: 8,
title: "商学院资讯",
url: "/static/mine/tool_sxy.png"
},
{
id: 11,
title: "RWA交易",
url: "/static/mine/tool_hxjy.png"
}
]
// {
// id:1,
// title:"IM聊天",
// url:'/static/mine/tool_im.png'
// },
],
// 工具
brandShow: false,
// 品牌入驻弹框
statisticsObj: {
unPayNum: 0,
//待支付数量
unSentNum: 0,
//待发货数量
unTakeNum: 0,
//待收货数量
unCommentNum: 0
//待评价数量
},
// 角标统计
serviceShow: false,
// 我的客服弹框
openShow: false
// 暂未开放
};
},
onShow: function() {
onShow() {
this.userData = utils_auth.getStorageFun(utils_auth.USER_DATA);
this.getStatistics();
this.getUserInfo();
},
mounted() {
},
methods: {
copyData: utils_index.copyData,
// 查询用户等级
async getUserInfo() {
const result = await api_auth.getUserInfo();
if (result && result.bizcode === 100) {
result.data;
this.currentUserData = result.data || {};
}
},
/**
* 跳转到工具
* @param {Object} item
*/
jumpTool(item) {
if (item.path) {
if (item.id === 7) {
this.serviceShow = true;
} else if (item.id === 9) {
const currentUserData = this.currentUserData;
let path = "/pages/mine_authentication/mine_authentication";
if (currentUserData && Object.keys(currentUserData).length !== 0 && currentUserData.certStatus && currentUserData.certStatus !== 0) {
path = "/pages/mine_authentication_ok/mine_authentication_ok";
}
common_vendor.index.navigateTo({
url: path
});
} else if (item.path) {
common_vendor.index.navigateTo({
url: item.path
});
} else {
this.openShow = true;
}
},
jumpOrder(item) {
let path = "/pages/mine_order/mine_order";
if (item && Object.keys(item).length !== 0) {
path = "/pages/mine_order/mine_order?type=" + item.id;
path = item.path;
}
common_vendor.index.navigateTo({
url: path
@@ -152,69 +222,138 @@ const _sfc_main = {
common_vendor.index.navigateTo({
url: "/pages/login/login"
});
},
// 跳转到入驻页面
jumpEnter(type) {
if (type === "merchant") {
this.openShow = true;
} else if (type === "brand") {
this.brandShow = true;
}
},
copyMobile(mobile) {
utils_index.copyData(mobile);
this.brandShow = false;
},
// 查询统计
async getStatistics() {
const result = await api_order.getStatistics();
if (result && result.bizcode === 100 && result.data) {
this.statisticsObj = {
...result.data,
unCommentNum: 0
//待评价数量
};
} else {
this.statisticsObj = {
unPayNum: 0,
//待支付数量
unSentNum: 0,
//待发货数量
unTakeNum: 0,
//待收货数量
unCommentNum: 0
//待评价数量
};
}
},
jumpSetting() {
common_vendor.index.navigateTo({
url: "/pages/mine_settings/mine_settings"
});
}
},
beforeDestroy() {
common_vendor.index.__f__("log", "at pages/mine/mine.vue:413", "beforeDestry");
this.statisticsObj = {
unPayNum: 0,
//待支付数量
unSentNum: 0,
//待发货数量
unTakeNum: 0,
//待收货数量
unCommentNum: 0
//待评价数量
};
}
};
if (!Array) {
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
_easycom_up_image2();
const _easycom_up_badge2 = common_vendor.resolveComponent("up-badge");
const _component_CustomTabBar = common_vendor.resolveComponent("CustomTabBar");
const _easycom_up_modal2 = common_vendor.resolveComponent("up-modal");
(_easycom_up_image2 + _easycom_up_badge2 + _component_CustomTabBar + _easycom_up_modal2)();
}
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
const _easycom_up_badge = () => "../../uni_modules/uview-plus/components/u-badge/u-badge.js";
const _easycom_up_modal = () => "../../uni_modules/uview-plus/components/u-modal/u-modal.js";
if (!Math) {
_easycom_up_image();
(_easycom_up_image + _easycom_up_badge + _easycom_up_modal)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: $data.userData && Object.keys($data.userData).length !== 0
}, $data.userData && Object.keys($data.userData).length !== 0 ? {
a: $data.currentUserData && Object.keys($data.currentUserData).length !== 0
}, $data.currentUserData && Object.keys($data.currentUserData).length !== 0 ? common_vendor.e({
b: common_vendor.p({
src: "/static/mine/avatar.png",
src: "/static/logo_y.png",
shape: "circle",
width: "80",
height: "80",
bgColor: "#f1f6ff00"
}),
c: common_vendor.t($data.userData.name || "暂无昵称"),
d: common_vendor.p({
src: "/static/mine/lv01.png",
width: "10",
height: "18",
c: common_vendor.t($data.currentUserData.name || "德商汇用户"),
d: $data.currentUserData && Object.keys($data.currentUserData).length !== 0
}, $data.currentUserData && Object.keys($data.currentUserData).length !== 0 ? {
e: common_vendor.p({
src: $data.currentUserData.gradeLevel || $data.currentUserData.gradeLevel === 0 ? "/static/mine/grade/V" + $data.currentUserData.gradeLevel + ".png" : "/static/mine/grade/V0.png",
width: "96",
height: "26",
bgColor: "#f1f6ff00"
}),
e: common_vendor.t($data.userData.inviteCode),
f: common_vendor.o(($event) => $options.copyData($data.userData.inviteCode)),
g: common_vendor.p({
f: common_vendor.t($data.currentUserData.gradeName),
g: common_vendor.n($data.currentUserData.gradeName.length > 3 ? "grade_key_warp grade_key_warp3" : "grade_key_warp grade_key_warp1")
} : {}, {
h: common_vendor.t($data.currentUserData.inviteCode),
i: common_vendor.o(($event) => $options.copyData($data.currentUserData.inviteCode)),
j: common_vendor.p({
src: "/static/common/copy.png",
width: "14",
height: "14",
bgColor: "#f1f6ff00"
})
} : {
h: common_vendor.p({
}),
k: common_vendor.p({
src: "/static/common/setting.png",
width: "22",
height: "22",
bgColor: "#f1f6ff00"
}),
l: common_vendor.o((...args) => $options.jumpSetting && $options.jumpSetting(...args))
}) : {
m: common_vendor.p({
src: "/static/mine/avater_not.png",
shape: "circle",
width: "80",
height: "80",
bgColor: "#f1f6ff00"
}),
i: common_vendor.p({
n: common_vendor.p({
src: "/static/common/right_y_st.png",
width: "18",
height: "18",
bgColor: "#f1f6ff00"
}),
j: common_vendor.o((...args) => $options.jumpLogin && $options.jumpLogin(...args))
o: common_vendor.o((...args) => $options.jumpLogin && $options.jumpLogin(...args))
}, {
k: common_vendor.p({
p: common_vendor.p({
src: "/static/common/right.png",
width: "14",
height: "14",
bgColor: "#f1f6ff00"
}),
l: common_vendor.o(($event) => $options.jumpOrder({})),
m: common_vendor.f($data.orderTemplList, (item, k0, i0) => {
q: common_vendor.o(($event) => $options.jumpOrder({})),
r: common_vendor.f($data.orderTemplList, (item, k0, i0) => {
return {
a: "41c0836b-6-" + i0,
a: "41c0836b-7-" + i0,
b: common_vendor.p({
src: item.url,
width: "30",
@@ -222,13 +361,20 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
bgColor: "#f1f6ff00"
}),
c: common_vendor.t(item.title),
d: item.id,
e: common_vendor.o(($event) => $options.jumpOrder(item), item.id)
d: "41c0836b-8-" + i0,
e: common_vendor.p({
absolute: true,
offset: [0, 8],
max: "99",
value: $data.statisticsObj[item.note]
}),
f: item.id,
g: common_vendor.o(($event) => $options.jumpOrder(item), item.id)
};
}),
n: common_vendor.f($data.applyList, (item, k0, i0) => {
s: common_vendor.f($data.applyList, (item, k0, i0) => {
return {
a: "41c0836b-7-" + i0,
a: "41c0836b-9-" + i0,
b: common_vendor.p({
src: item.url,
width: "36",
@@ -240,33 +386,35 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
e: common_vendor.o(($event) => $options.jumpTool(item), item.id)
};
}),
o: common_vendor.p({
t: common_vendor.p({
src: "/static/common/right_y.png",
width: "14",
height: "14",
bgColor: "#f1f6ff00"
}),
p: common_vendor.p({
v: common_vendor.p({
src: "/static/mine/enter_sj.png",
width: "50",
height: "50",
bgColor: "#f1f6ff00"
}),
q: common_vendor.p({
w: common_vendor.o(($event) => $options.jumpEnter("merchant")),
x: common_vendor.p({
src: "/static/common/right_y.png",
width: "14",
height: "14",
bgColor: "#f1f6ff00"
}),
r: common_vendor.p({
y: common_vendor.p({
src: "/static/mine/enter_pp.png",
width: "50",
height: "50",
bgColor: "#f1f6ff00"
}),
s: common_vendor.f($data.toolList, (item, k0, i0) => {
z: common_vendor.o(($event) => $options.jumpEnter("brand")),
A: common_vendor.f($data.toolList, (item, k0, i0) => {
return {
a: "41c0836b-12-" + i0,
a: "41c0836b-14-" + i0,
b: common_vendor.p({
src: item.url,
width: "30",
@@ -277,6 +425,59 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
d: item.id,
e: common_vendor.o(($event) => $options.jumpTool(item), item.id)
};
}),
B: common_vendor.p({
tabIndex: 3
}),
C: common_vendor.p({
src: "/static/common/close.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
}),
D: common_vendor.o(($event) => {
$data.brandShow = false;
}),
E: common_vendor.o(($event) => $options.copyMobile("15888880123")),
F: common_vendor.o(($event) => {
$data.brandShow = false;
}),
G: common_vendor.p({
show: $data.brandShow,
showConfirmButton: false
}),
H: common_vendor.p({
src: "/static/common/close.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
}),
I: common_vendor.o(($event) => {
$data.serviceShow = false;
}),
J: common_vendor.o(($event) => $options.copyMobile("13888888888")),
K: common_vendor.o(($event) => {
$data.serviceShow = false;
}),
L: common_vendor.p({
show: $data.serviceShow,
showConfirmButton: false
}),
M: common_vendor.p({
src: "/static/common/close.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
}),
N: common_vendor.o(($event) => {
$data.openShow = false;
}),
O: common_vendor.o(($event) => {
$data.openShow = false;
}),
P: common_vendor.p({
show: $data.openShow,
showConfirmButton: false
})
});
}
+4 -1
View File
@@ -1,6 +1,9 @@
{
"navigationStyle": "custom",
"usingComponents": {
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image"
"custom-tab-bar": "../../components/custom-tab-bar",
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
"up-badge": "../../uni_modules/uview-plus/components/u-badge/u-badge",
"up-modal": "../../uni_modules/uview-plus/components/u-modal/u-modal"
}
}
File diff suppressed because one or more lines are too long
+37 -6
View File
@@ -23,7 +23,8 @@
/* 水平间距 */
/* 垂直间距 */
.mine_warp {
height: 100vh;
height: calc(100vh - 140rpx);
overflow: auto;
position: relative;
background-color: #F5F5F5;
}
@@ -35,6 +36,11 @@
/* 将图片居中显示 */
padding: 90rpx 40rpx 0;
}
.mine_header .mine_login_data {
display: flex;
justify-content: space-between;
align-items: center;
}
.mine_content_warp {
position: absolute;
top: 278rpx;
@@ -42,10 +48,6 @@
height: auto;
left: 4%;
}
.mine_data {
display: flex;
align-items: center;
}
.mine_no_login_data {
display: flex;
justify-content: space-between;
@@ -58,6 +60,10 @@
font-size: 26rpx;
color: #111111;
}
.mine_data {
display: flex;
align-items: center;
}
.mine_info_not_login {
font-weight: bold;
font-size: 40rpx;
@@ -68,10 +74,31 @@
}
.mine_info_name {
font-weight: bold;
font-size: 40rpx;
font-size: 36rpx;
color: #111111;
display: flex;
}
.mine_info_name .grade_warp {
position: relative;
}
.mine_info_name .grade_key_warp {
position: absolute;
top: 0rpx;
left: 30%;
font-size: 24rpx;
color: #FFFFFF;
width: 100rpx;
height: 44rpx;
line-height: 50rpx;
text-align: center;
}
.mine_info_name .grade_key_warp1 {
font-size: 24rpx;
line-height: 48rpx;
}
.mine_info_name .grade_key_warp3 {
font-size: 20rpx;
}
.mine_info_id {
font-weight: 500;
font-size: 24rpx;
@@ -118,6 +145,7 @@
.order_list_item {
width: 25%;
text-align: center;
position: relative;
}
.apply_list {
display: flex;
@@ -170,4 +198,7 @@
width: 25%;
text-align: center;
margin-top: 20rpx;
}
.u-modal__content {
padding: 40rpx !important;
}
@@ -1,12 +1,17 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_address = require("../../api/address.js");
const Header = () => "../../components/header.js";
const _sfc_main = {
data() {
return {
addressList: []
addressList: [],
options: [
{ text: "删除" }
]
};
},
components: { Header },
mounted() {
this.getAddressList();
},
@@ -36,7 +41,6 @@ const _sfc_main = {
},
// 删除地址
deleteAddressFun(item) {
common_vendor.index.__f__("log", "at pages/mine_address/mine_address.vue:79", "item", item);
const then = this;
common_vendor.index.showModal({
title: "提示",
@@ -67,9 +71,10 @@ const _sfc_main = {
}
};
if (!Array) {
const _component_Header = common_vendor.resolveComponent("Header");
const _easycom_up_checkbox2 = common_vendor.resolveComponent("up-checkbox");
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
(_easycom_up_checkbox2 + _easycom_up_image2)();
(_component_Header + _easycom_up_checkbox2 + _easycom_up_image2)();
}
const _easycom_up_checkbox = () => "../../uni_modules/uview-plus/components/u-checkbox/u-checkbox.js";
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
@@ -78,9 +83,14 @@ if (!Math) {
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: $data.addressList && $data.addressList.length !== 0
a: common_vendor.p({
leftTitle: _ctx.$t("address.title"),
["left-path-type"]: "switchTab",
["left-path"]: "/pages/mine/mine"
}),
b: $data.addressList && $data.addressList.length !== 0
}, $data.addressList && $data.addressList.length !== 0 ? {
b: common_vendor.f($data.addressList, (item, k0, i0) => {
c: common_vendor.f($data.addressList, (item, k0, i0) => {
return {
a: common_vendor.t(item.name),
b: common_vendor.t(item.phone),
@@ -90,7 +100,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
f: common_vendor.t(item.areaName),
g: common_vendor.t(item.address),
h: common_vendor.o(($event) => $options.isDefaultChange(item), item.id),
i: "1172d71f-0-" + i0,
i: "1172d71f-1-" + i0,
j: common_vendor.p({
customStyle: {},
label: "已默认",
@@ -106,14 +116,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
};
})
} : {
c: common_vendor.p({
d: common_vendor.p({
src: "/static/common/not_search.png",
width: "100",
height: "100",
bgColor: "#f1f6ff00"
})
}, {
d: common_vendor.o((...args) => $options.jumpAddAddress && $options.jumpAddAddress(...args))
e: common_vendor.o((...args) => $options.jumpAddAddress && $options.jumpAddAddress(...args))
});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-1172d71f"]]);
@@ -1,10 +1,7 @@
{
"navigationBarTitleText": "地址管理",
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black",
"enablePullDownRefresh": false,
"navigationStyle": "default",
"navigationStyle": "custom",
"usingComponents": {
"header": "../../components/header",
"up-checkbox": "../../uni_modules/uview-plus/components/u-checkbox/u-checkbox",
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image"
}
@@ -1 +1 @@
<view class="mine_address_warp data-v-1172d71f"><block wx:if="{{a}}"><view wx:for="{{b}}" wx:for-item="item" wx:key="m" class="address_item data-v-1172d71f"><view class="address_item_info data-v-1172d71f"><view class="data-v-1172d71f">{{item.a}}</view><view class="data-v-1172d71f" style="margin-left:20rpx">{{item.b}}</view></view><view class="address_item_address data-v-1172d71f">{{item.c}} {{item.d}} {{item.e}} {{item.f}} {{item.g}}</view><view class="address_operate data-v-1172d71f"><up-checkbox wx:if="{{item.j}}" class="data-v-1172d71f" bindchange="{{item.h}}" u-i="{{item.i}}" bind:__l="__l" u-p="{{item.j}}"></up-checkbox><view class="operate_item data-v-1172d71f"><view class="operate_ data-v-1172d71f" bindtap="{{item.k}}">删除</view><view class="operate_ data-v-1172d71f" bindtap="{{item.l}}">修改</view></view></view></view></block><view wx:else class="not_order_warp data-v-1172d71f"><view class="not_order_warp_img data-v-1172d71f"><up-image wx:if="{{c}}" class="data-v-1172d71f" u-i="1172d71f-1" bind:__l="__l" u-p="{{c}}"></up-image></view><view class="not_order_msg_warp data-v-1172d71f">暂无地址,快去添加吧~</view></view><view class="add_but data-v-1172d71f" bindtap="{{d}}"> 新增地址 </view></view>
<view class="mine_address_warp data-v-1172d71f"><header wx:if="{{a}}" class="data-v-1172d71f" u-i="1172d71f-0" bind:__l="__l" u-p="{{a}}"/><block wx:if="{{b}}"><view wx:for="{{c}}" wx:for-item="item" wx:key="m" class="address_item data-v-1172d71f"><view class="address_item_info data-v-1172d71f"><view class="data-v-1172d71f">{{item.a}}</view><view class="data-v-1172d71f" style="margin-left:20rpx">{{item.b}}</view></view><view class="address_item_address data-v-1172d71f">{{item.c}} {{item.d}} {{item.e}} {{item.f}} {{item.g}}</view><view class="address_operate data-v-1172d71f"><up-checkbox wx:if="{{item.j}}" class="data-v-1172d71f" bindchange="{{item.h}}" u-i="{{item.i}}" bind:__l="__l" u-p="{{item.j}}"></up-checkbox><view class="operate_item data-v-1172d71f"><view class="operate_ data-v-1172d71f" bindtap="{{item.k}}">删除</view><view class="operate_ data-v-1172d71f" bindtap="{{item.l}}">修改</view></view></view></view></block><view wx:else class="not_order_warp data-v-1172d71f"><view class="not_order_warp_img data-v-1172d71f"><up-image wx:if="{{d}}" class="data-v-1172d71f" u-i="1172d71f-2" bind:__l="__l" u-p="{{d}}"></up-image></view><view class="not_order_msg_warp data-v-1172d71f">暂无地址,快去添加吧~</view></view><view class="add_but data-v-1172d71f" bindtap="{{e}}"> 新增地址 </view></view>
@@ -2,7 +2,9 @@
const common_vendor = require("../../common/vendor.js");
const api_address = require("../../api/address.js");
const api_common = require("../../api/common.js");
const Header = () => "../../components/header.js";
const _sfc_main = {
components: { Header },
data() {
return {
form: {
@@ -26,7 +28,8 @@ const _sfc_main = {
},
regionShow: false,
regionColumns: [],
regionLoading: false
regionLoading: false,
leftPath: "/pages/mine_address/mine_address"
};
},
onLoad(option) {
@@ -34,6 +37,10 @@ const _sfc_main = {
if (id && id !== 0) {
this.getById(id);
}
const ids = option.ids;
if (ids && ids !== 0) {
this.leftPath = "/pages/order_submit/order_submit?ids=" + ids + "&addressShow = true";
}
},
methods: {
/**
@@ -191,9 +198,10 @@ const _sfc_main = {
type: "success",
message: params.id && params.id !== 0 ? "修改成功" : "添加成功"
});
const leftPath = this.leftPath;
setTimeout(() => {
common_vendor.index.navigateTo({
url: "/pages/mine_address/mine_address"
url: leftPath
});
}, 2e3);
}
@@ -201,11 +209,12 @@ const _sfc_main = {
}
};
if (!Array) {
const _component_Header = common_vendor.resolveComponent("Header");
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
const _easycom_up_toast2 = common_vendor.resolveComponent("up-toast");
const _easycom_up_picker2 = common_vendor.resolveComponent("up-picker");
(_easycom_up_input2 + _easycom_up_image2 + _easycom_up_toast2 + _easycom_up_picker2)();
(_component_Header + _easycom_up_input2 + _easycom_up_image2 + _easycom_up_toast2 + _easycom_up_picker2)();
}
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
@@ -216,8 +225,13 @@ if (!Math) {
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.o(($event) => $data.form.name = $event),
b: common_vendor.p({
a: common_vendor.p({
leftTitle: _ctx.$t("address.add.title"),
["left-path-type"]: "navigateTo",
leftPath: $data.leftPath
}),
b: common_vendor.o(($event) => $data.form.name = $event),
c: common_vendor.p({
placeholder: "收货人",
border: "surround",
customStyle: {
@@ -225,25 +239,26 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
},
modelValue: $data.form.name
}),
c: common_vendor.o(($event) => $data.form.mobile = $event),
d: common_vendor.p({
d: common_vendor.o(($event) => $data.form.mobile = $event),
e: common_vendor.p({
placeholder: "请填写收货人手机号",
border: "surround",
customStyle: {
"border": "0rpx"
},
type: "number",
modelValue: $data.form.mobile
}),
e: common_vendor.t($data.form.regionStr && $data.form.regionStr.join("/") || "所在地区"),
f: common_vendor.p({
f: common_vendor.t($data.form.regionStr && $data.form.regionStr.join("/") || "所在地区"),
g: common_vendor.p({
src: "/static/common/right_soild.png",
width: "14",
height: "14",
bgColor: "#f1f6ff00"
}),
g: common_vendor.o(($event) => $options.regionShowCheck(true)),
h: common_vendor.o(($event) => $data.form.address = $event),
i: common_vendor.p({
h: common_vendor.o(($event) => $options.regionShowCheck(true)),
i: common_vendor.o(($event) => $data.form.address = $event),
j: common_vendor.p({
placeholder: "门牌号、小区、楼栋号、单元室等",
border: "surround",
customStyle: {
@@ -252,12 +267,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
},
modelValue: $data.form.address
}),
j: common_vendor.o((...args) => $options.addAddress && $options.addAddress(...args)),
k: common_vendor.sr("uToastRef", "40d63b91-4"),
l: common_vendor.sr("uPickerRef", "40d63b91-5"),
m: common_vendor.o($options.regionConfirm),
n: common_vendor.o($options.regionChange),
o: common_vendor.p({
k: common_vendor.o((...args) => $options.addAddress && $options.addAddress(...args)),
l: common_vendor.sr("uToastRef", "58644e4b-5"),
m: common_vendor.sr("uPickerRef", "58644e4b-6"),
n: common_vendor.o($options.regionConfirm),
o: common_vendor.o($options.regionChange),
p: common_vendor.o(($event) => $data.regionShow = false),
q: common_vendor.o(($event) => $data.regionShow = false),
r: common_vendor.p({
show: $data.regionShow,
columns: $data.regionColumns,
loading: $data.regionLoading,
@@ -266,6 +283,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
})
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-40d63b91"]]);
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine_address_add/mine_address_add.js.map
@@ -1,10 +1,7 @@
{
"navigationBarTitleText": "添加地址",
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black",
"enablePullDownRefresh": false,
"navigationStyle": "default",
"navigationStyle": "custom",
"usingComponents": {
"header": "../../components/header",
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
"up-toast": "../../uni_modules/uview-plus/components/u-toast/u-toast",
@@ -1 +1 @@
<view class="address_add_warp data-v-40d63b91"><view class="address_form data-v-40d63b91"><view class="add_form_item add_form_item_but data-v-40d63b91"><view class="add_form_title data-v-40d63b91">收货人</view><up-input wx:if="{{b}}" class="data-v-40d63b91" u-i="40d63b91-0" bind:__l="__l" bindupdateModelValue="{{a}}" u-p="{{b}}"></up-input></view><view class="add_form_item add_form_item_but data-v-40d63b91"><view class="add_form_title data-v-40d63b91">手机号码</view><up-input wx:if="{{d}}" class="data-v-40d63b91" u-i="40d63b91-1" bind:__l="__l" bindupdateModelValue="{{c}}" u-p="{{d}}"></up-input></view><view class="add_form_item add_form_item_but data-v-40d63b91"><view class="add_form_title data-v-40d63b91">所在地区</view><view class="region_warp data-v-40d63b91" bindtap="{{g}}"><view class="data-v-40d63b91" style="color:#808080;margin-left:22rpx;font-size:28rpx">{{e}}</view><up-image wx:if="{{f}}" class="data-v-40d63b91" u-i="40d63b91-2" bind:__l="__l" u-p="{{f}}"></up-image></view></view><view class="add_form_item data-v-40d63b91"><view class="add_form_title data-v-40d63b91">详细地址</view><up-input wx:if="{{i}}" class="data-v-40d63b91" u-i="40d63b91-3" bind:__l="__l" bindupdateModelValue="{{h}}" u-p="{{i}}"></up-input></view></view><view class="add_but data-v-40d63b91" bindtap="{{j}}"> 保存地址 </view><up-toast class="r data-v-40d63b91" u-r="uToastRef" u-i="40d63b91-4" bind:__l="__l"></up-toast><up-picker wx:if="{{o}}" class="r data-v-40d63b91" u-r="uPickerRef" bindconfirm="{{m}}" bindchange="{{n}}" u-i="40d63b91-5" bind:__l="__l" u-p="{{o}}"></up-picker></view>
<view class="address_add_warp"><header wx:if="{{a}}" u-i="58644e4b-0" bind:__l="__l" u-p="{{a}}"/><view class="address_form"><view class="add_form_item add_form_item_but"><view class="add_form_title">收货人</view><up-input wx:if="{{c}}" u-i="58644e4b-1" bind:__l="__l" bindupdateModelValue="{{b}}" u-p="{{c}}"></up-input></view><view class="add_form_item add_form_item_but"><view class="add_form_title">手机号码</view><up-input wx:if="{{e}}" u-i="58644e4b-2" bind:__l="__l" bindupdateModelValue="{{d}}" u-p="{{e}}"></up-input></view><view class="add_form_item add_form_item_but"><view class="add_form_title">所在地区</view><view class="region_warp" bindtap="{{h}}"><view style="color:#808080;margin-left:22rpx;font-size:28rpx">{{f}}</view><up-image wx:if="{{g}}" u-i="58644e4b-3" bind:__l="__l" u-p="{{g}}"></up-image></view></view><view class="add_form_item"><view class="add_form_title">详细地址</view><up-input wx:if="{{j}}" u-i="58644e4b-4" bind:__l="__l" bindupdateModelValue="{{i}}" u-p="{{j}}"></up-input></view></view><view class="add_but" bindtap="{{k}}"> 保存地址 </view><up-toast class="r" u-r="uToastRef" u-i="58644e4b-5" bind:__l="__l"></up-toast><up-picker wx:if="{{r}}" class="r" u-r="uPickerRef" bindconfirm="{{n}}" bindchange="{{o}}" bindcancel="{{p}}" bindclose="{{q}}" u-i="58644e4b-6" bind:__l="__l" u-p="{{r}}"></up-picker></view>
@@ -1,52 +0,0 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/* uni.scss */
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
.address_add_warp.data-v-40d63b91 {
height: calc(100vh - 58rpx);
background-color: #F5F5F5;
padding: 30rpx;
}
.address_form.data-v-40d63b91 {
background: #FFFFFF;
border-radius: 24rpx;
padding: 0 30rpx 30rpx;
}
.region_warp.data-v-40d63b91 {
display: flex;
justify-content: space-between;
width: calc(100% - 160rpx);
}
.address_default.data-v-40d63b91 {
background: #FFFFFF;
border-radius: 24rpx;
padding: 30rpx;
display: flex;
justify-content: space-between;
margin-top: 30rpx;
}
.address_default .title.data-v-40d63b91 {
font-weight: bold;
font-size: 28rpx;
color: #222222;
}
@@ -1,6 +1,16 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_auth = require("../../api/auth.js");
const utils_enumUtils = require("../../utils/enumUtils.js");
const CommonCard = () => "../../components/common_card.js";
const Header = () => "../../components/header.js";
const _sfc_main = {
computed: {
CERT_OPTION() {
return utils_enumUtils.CERT_OPTION;
}
},
components: { CommonCard, Header },
data() {
return {
inputCss: {
@@ -10,28 +20,30 @@ const _sfc_main = {
},
form: {
name: null,
mobile: null,
number: null
// 银行名称
certType: null,
// 证状证件类型:1-居民身份证,2-护照
certName: null,
certNo: null,
// 证件号码
certFimg: null,
// 证件正面照片
certBimg: null
// 证件背面照片
},
formList: [
{
id: 1,
title: "真实姓名",
formName: "name",
placeholder: "请输入您的真实姓名"
},
{
id: 2,
title: "手机号",
formName: "mobile",
placeholder: "请输入手机号"
placeholder: "请输入您的真实姓名",
type: "text"
},
{
id: 3,
title: "证件号码",
formName: "number",
placeholder: "请输入证件号码"
formName: "certNo",
placeholder: "请输入证件号码",
type: "text"
}
],
uploadTemplList: [
@@ -59,11 +71,13 @@ const _sfc_main = {
isOk: false,
url: "/static/common/ID_error_3.png"
}
]
],
certShow: false,
certOption: []
};
},
methods: {
addAuthentication() {
async addAuthentication() {
const params = {
...this.form
};
@@ -74,87 +88,126 @@ const _sfc_main = {
});
return;
}
if (!params.mobile) {
if (!params.certType) {
this.$refs.uToastRef.show({
type: "error",
message: "请输入手机号"
message: "请选择证件类型"
});
return;
}
if (!params.number) {
if (!params.certNo) {
this.$refs.uToastRef.show({
type: "error",
message: "请输入证件号码"
});
return;
}
common_vendor.index.__f__("log", "at pages/mine_authentication/mine_authentication.vue:134", "params", params);
common_vendor.index.navigateTo({
url: "/pages/mine_authentication_ok/mine_authentication_ok"
});
if (params.certFimg.length === 0) {
this.$refs.uToastRef.show({
type: "error",
message: "请上传证件正面照片"
});
return;
}
if (params.certBimg.length === 0) {
this.$refs.uToastRef.show({
type: "error",
message: "请上传证件背面照片"
});
return;
}
common_vendor.index.__f__("log", "at pages/mine_authentication/mine_authentication.vue:159", "params", params);
const resp = await api_auth.realNameAuthentication(params);
if (resp && resp.bizcode === 100) {
common_vendor.index.navigateTo({
url: "/pages/mine_authentication_ok/mine_authentication_ok"
});
}
},
// 提交地址
certConfirm(e) {
const {
columnIndex,
value,
values,
index
} = e;
const data = value[0];
this.form.certType = data.key;
this.form.certName = data.value;
this.certShowCheck(false);
},
// 选择银行的弹框
async certShowCheck(status) {
this.certShow = status;
},
getValue(type, value) {
if (type === "Z") {
this.form.certFimg = value;
} else if (type === "F") {
this.form.certBimg = value;
}
}
}
};
if (!Array) {
const _component_Header = common_vendor.resolveComponent("Header");
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
(_easycom_up_input2 + _easycom_up_image2)();
const _component_CommonCard = common_vendor.resolveComponent("CommonCard");
const _easycom_up_picker2 = common_vendor.resolveComponent("up-picker");
const _easycom_up_toast2 = common_vendor.resolveComponent("up-toast");
(_component_Header + _easycom_up_input2 + _easycom_up_image2 + _component_CommonCard + _easycom_up_picker2 + _easycom_up_toast2)();
}
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
const _easycom_up_picker = () => "../../uni_modules/uview-plus/components/u-picker/u-picker.js";
const _easycom_up_toast = () => "../../uni_modules/uview-plus/components/u-toast/u-toast.js";
if (!Math) {
(_easycom_up_input + _easycom_up_image)();
(_easycom_up_input + _easycom_up_image + _easycom_up_picker + _easycom_up_toast)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.f($data.formList, (item, k0, i0) => {
a: common_vendor.p({
leftTitle: _ctx.$t("authentication.title"),
["left-path-type"]: "switchTab",
["left-path"]: "/pages/mine/mine"
}),
b: common_vendor.f($data.formList, (item, k0, i0) => {
return {
a: common_vendor.t(item.title),
b: "ff62741c-0-" + i0,
b: "ff62741c-1-" + i0,
c: common_vendor.o(($event) => $data.form[item.formName] = $event, item.id),
d: common_vendor.p({
placeholder: item.placeholder,
border: "surround",
customStyle: $data.inputCss,
type: item.type,
modelValue: $data.form[item.formName]
}),
e: common_vendor.n(item.id < $data.formList.length ? "add_form_item add_form_item_but" : "add_form_item"),
f: item.id
e: item.id
};
}),
b: common_vendor.p({
src: "/static/common/ID_rx.png",
width: "100%",
height: "90",
c: common_vendor.t($data.form.certName || "请选择"),
d: common_vendor.p({
src: "/static/common/right.png",
width: "16",
height: "16",
bgColor: "#f1f6ff00"
}),
c: common_vendor.p({
src: "/static/common/ID_gq.png",
width: "100%",
height: "90",
bgColor: "#f1f6ff00"
e: common_vendor.o(($event) => $options.certShowCheck(true)),
f: common_vendor.o($options.getValue),
g: common_vendor.o((...args) => $options.addAuthentication && $options.addAuthentication(...args)),
h: common_vendor.o($options.certConfirm),
i: common_vendor.o(($event) => $data.certShow = false),
j: common_vendor.o(($event) => $data.certShow = false),
k: common_vendor.p({
show: $data.certShow,
columns: [$options.CERT_OPTION],
keyName: "value",
itemHeight: "34"
}),
d: common_vendor.f($data.uploadTemplList, (item, k0, i0) => {
return {
a: "ff62741c-3-" + i0,
b: common_vendor.p({
src: item.url,
width: "100%",
height: "50",
bgColor: "#f1f6ff00"
}),
c: "ff62741c-4-" + i0,
d: common_vendor.p({
src: item.isOk ? "/static/common/ID_ok_1.png" : "/static/common/ID_error.png",
width: "10",
height: "10",
bgColor: "#f1f6ff00"
}),
e: common_vendor.t(item.title),
f: item.id
};
}),
e: common_vendor.o((...args) => $options.addAuthentication && $options.addAuthentication(...args))
l: common_vendor.sr("uToastRef", "ff62741c-5")
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-ff62741c"]]);
@@ -1,11 +1,11 @@
{
"navigationBarTitleText": "实名认证",
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black",
"enablePullDownRefresh": false,
"navigationStyle": "default",
"navigationStyle": "custom",
"usingComponents": {
"common-card": "../../components/common_card",
"header": "../../components/header",
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image"
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
"up-picker": "../../uni_modules/uview-plus/components/u-picker/u-picker",
"up-toast": "../../uni_modules/uview-plus/components/u-toast/u-toast"
}
}
@@ -1 +1 @@
<view class="authentication_warp data-v-ff62741c"><view class="data_common_warp data-v-ff62741c"><view class="data_msg data-v-ff62741c">请填写商户本人的相关信息</view><view wx:for="{{a}}" wx:for-item="item" wx:key="f" class="{{['data-v-ff62741c', item.e]}}"><view class="add_form_title data-v-ff62741c">{{item.a}}</view><up-input wx:if="{{item.d}}" class="data-v-ff62741c" u-i="{{item.b}}" bind:__l="__l" bindupdateModelValue="{{item.c}}" u-p="{{item.d}}"></up-input></view></view><view class="data_common_warp data-v-ff62741c"><view class="ID_card_title data-v-ff62741c">上传证件照</view><view class="ID_card_msg data-v-ff62741c">(请务必上传本人证件照,生活照、艺术照将会被驳回)</view><view class="ID_card_upload data-v-ff62741c"><view class="upload_item data-v-ff62741c"><up-image wx:if="{{b}}" class="data-v-ff62741c" u-i="ff62741c-1" bind:__l="__l" u-p="{{b}}"></up-image><view class="upload_msg data-v-ff62741c">点击上传身份证人像面</view></view><view class="upload_item data-v-ff62741c"><up-image wx:if="{{c}}" class="data-v-ff62741c" u-i="ff62741c-2" bind:__l="__l" u-p="{{c}}"></up-image><view class="upload_msg data-v-ff62741c">点击上传身份国旗面</view></view></view><view class="ID_card_upload_templ data-v-ff62741c"><view class="templ_title data-v-ff62741c">上传标准</view><view class="templ_img_list data-v-ff62741c"><view wx:for="{{d}}" wx:for-item="item" wx:key="f" class="templ_img_item data-v-ff62741c"><up-image wx:if="{{item.b}}" class="data-v-ff62741c" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image><view class="templ_img_item_msg data-v-ff62741c"><up-image wx:if="{{item.d}}" class="data-v-ff62741c" u-i="{{item.c}}" bind:__l="__l" u-p="{{item.d}}"></up-image><view class="templ_img_item_msg_title data-v-ff62741c">{{item.e}}</view></view></view></view></view></view><view class="add_but data-v-ff62741c" bindtap="{{e}}"> 提交 </view></view>
<view class="authentication_warp data-v-ff62741c"><header wx:if="{{a}}" class="data-v-ff62741c" u-i="ff62741c-0" bind:__l="__l" u-p="{{a}}"></header><view class="data_common_warp data-v-ff62741c"><view class="data_msg data-v-ff62741c">请填写用户本人得相关信息</view><view wx:for="{{b}}" wx:for-item="item" wx:key="e" class="'add_form_item add_form_item_but' data-v-ff62741c"><view class="add_form_title data-v-ff62741c">{{item.a}}</view><up-input wx:if="{{item.d}}" class="data-v-ff62741c" u-i="{{item.b}}" bind:__l="__l" bindupdateModelValue="{{item.c}}" u-p="{{item.d}}"></up-input></view><view class="add_form_item data-v-ff62741c"><view class="add_form_title data-v-ff62741c">证件类型</view><view class="cert_ data-v-ff62741c" bindtap="{{e}}"><view class="cert_title data-v-ff62741c">{{c}}</view><up-image wx:if="{{d}}" class="data-v-ff62741c" u-i="ff62741c-2" bind:__l="__l" u-p="{{d}}"></up-image></view></view></view><common-card class="data-v-ff62741c" bindvalueFunc="{{f}}" u-i="ff62741c-3" bind:__l="__l"/><view class="add_but data-v-ff62741c" bindtap="{{g}}"> 提交 </view><up-picker wx:if="{{k}}" class="data-v-ff62741c" bindconfirm="{{h}}" bindcancel="{{i}}" bindclose="{{j}}" u-i="ff62741c-4" bind:__l="__l" u-p="{{k}}"></up-picker><up-toast class="r data-v-ff62741c" u-r="uToastRef" u-i="ff62741c-5" bind:__l="__l"></up-toast></view>
@@ -27,15 +27,12 @@
background-color: #F5F5F5;
padding: 30rpx;
}
.authentication_warp .data_common_warp.data-v-ff62741c {
background: #FFFFFF;
border-radius: 30rpx;
padding: 30rpx;
margin-bottom: 30rpx;
.cert_.data-v-ff62741c {
display: flex;
justify-content: space-between;
width: calc(100% - 170rpx);
}
.authentication_warp .data_msg.data-v-ff62741c {
font-weight: 500;
font-size: 26rpx;
color: #F34343;
margin-bottom: 20rpx;
.cert_ .cert_title.data-v-ff62741c {
margin-left: 30rpx;
color: #9e9e9ec7;
}
@@ -1,23 +1,90 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_auth = require("../../api/auth.js");
const utils_enumUtils = require("../../utils/enumUtils.js");
const Header = () => "../../components/header.js";
const _sfc_main = {
data() {
return {};
computed: {
CERT_OPTION() {
return utils_enumUtils.CERT_OPTION;
},
CERT_STATUS_OPTION() {
return utils_enumUtils.CERT_STATUS_OPTION;
}
},
methods: {}
components: { Header },
data() {
return {
currentUserData: {}
// 当前用户信息
};
},
mounted() {
this.getUserInfo();
},
methods: {
getValue: utils_enumUtils.getValue,
async getUserInfo() {
const result = await api_auth.getUserInfo();
if (result && result.bizcode === 100) {
const data = result.data;
common_vendor.index.__f__("log", "at pages/mine_authentication_ok/mine_authentication_ok.vue:69", "data", data);
this.currentUserData = result.data || {};
}
}
}
};
if (!Array) {
const _component_Header = common_vendor.resolveComponent("Header");
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
const _easycom_up_toast2 = common_vendor.resolveComponent("up-toast");
_easycom_up_toast2();
(_component_Header + _easycom_up_image2 + _easycom_up_toast2)();
}
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
const _easycom_up_toast = () => "../../uni_modules/uview-plus/components/u-toast/u-toast.js";
if (!Math) {
_easycom_up_toast();
(_easycom_up_image + _easycom_up_toast)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.sr("uToastRef", "731ed15b-0")
};
return common_vendor.e({
a: common_vendor.p({
leftTitle: _ctx.$t("authentication.title"),
["left-path-type"]: "switchTab",
["left-path"]: "/pages/mine/mine"
}),
b: $data.currentUserData && Object.keys($data.currentUserData).length !== 0
}, $data.currentUserData && Object.keys($data.currentUserData).length !== 0 ? {
c: common_vendor.t($options.getValue($options.CERT_STATUS_OPTION, $data.currentUserData.certStatus)),
d: common_vendor.t($data.currentUserData.name),
e: common_vendor.t($options.getValue($options.CERT_OPTION, $data.currentUserData.certType)),
f: common_vendor.p({
src: $data.currentUserData.certFimg,
mode: "widthFix",
width: "100%",
height: "140",
bgColor: "#f1f6ff00",
fade: true,
duration: "450"
}),
g: common_vendor.p({
src: $data.currentUserData.certBimg,
mode: "widthFix",
width: "100%",
height: "140",
bgColor: "#f1f6ff00",
fade: true,
duration: "450"
})
} : {
h: common_vendor.p({
src: "/static/common/not_order.png",
width: "80",
height: "80",
bgColor: "#f1f6ff00"
})
}, {
i: common_vendor.sr("uToastRef", "731ed15b-4")
});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-731ed15b"]]);
wx.createPage(MiniProgramPage);
@@ -1,10 +1,8 @@
{
"navigationBarTitleText": "实名认证",
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black",
"enablePullDownRefresh": false,
"navigationStyle": "default",
"navigationStyle": "custom",
"usingComponents": {
"header": "../../components/header",
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
"up-toast": "../../uni_modules/uview-plus/components/u-toast/u-toast"
}
}
@@ -1 +1 @@
<view class="authentication_ok_warp data-v-731ed15b"><view class="authentication_result data-v-731ed15b"><view class="result_title data-v-731ed15b">您的实名认证</view><view class="result_value data-v-731ed15b">已通过!</view></view><view class="authentication_info data-v-731ed15b"><view class="info_item data-v-731ed15b"><text class="info_item_title data-v-731ed15b">证件姓名:</text><text class="info_item_value data-v-731ed15b">张某</text></view><view class="info_item data-v-731ed15b"><text class="info_item_title data-v-731ed15b">证件性别:</text><text class="info_item_value data-v-731ed15b">男</text></view><view class="info_item data-v-731ed15b"><text class="info_item_title data-v-731ed15b">证件号码:</text><text class="info_item_value data-v-731ed15b">448468454848458</text></view></view><up-toast class="r data-v-731ed15b" u-r="uToastRef" u-i="731ed15b-0" bind:__l="__l"></up-toast></view>
<view class="authentication_ok_warp data-v-731ed15b"><header wx:if="{{a}}" class="data-v-731ed15b" u-i="731ed15b-0" bind:__l="__l" u-p="{{a}}"/><view wx:if="{{b}}" class="authentication_ok_content data-v-731ed15b"><view class="authentication_result data-v-731ed15b"><view class="result_title data-v-731ed15b">您的实名认证</view><view class="result_value data-v-731ed15b">{{c}}</view></view><view class="authentication_info data-v-731ed15b"><view class="info_item data-v-731ed15b"><text class="info_item_title data-v-731ed15b">证件姓名:</text><text class="info_item_value data-v-731ed15b">{{d}}</text></view><view class="info_item data-v-731ed15b"><text class="info_item_title data-v-731ed15b">证件类型:</text><text class="info_item_value data-v-731ed15b">{{e}}!</text></view><view class="info_item data-v-731ed15b"><text class="info_item_title data-v-731ed15b">证件正面:</text><view class="info_item_value data-v-731ed15b"><up-image wx:if="{{f}}" class="data-v-731ed15b" u-i="731ed15b-1" bind:__l="__l" u-p="{{f}}"></up-image></view></view><view class="info_item data-v-731ed15b"><text class="info_item_title data-v-731ed15b">证件背面:</text><view class="info_item_value data-v-731ed15b"><up-image wx:if="{{g}}" class="data-v-731ed15b" u-i="731ed15b-2" bind:__l="__l" u-p="{{g}}"></up-image></view></view></view></view><view wx:else class="not_order_warp data-v-731ed15b"><up-image wx:if="{{h}}" class="data-v-731ed15b" u-i="731ed15b-3" bind:__l="__l" u-p="{{h}}"></up-image><view class="not_order_msg_warp data-v-731ed15b">暂无相关认证信息</view></view><up-toast class="r data-v-731ed15b" u-r="uToastRef" u-i="731ed15b-4" bind:__l="__l"></up-toast></view>
@@ -25,6 +25,8 @@
.authentication_ok_warp.data-v-731ed15b {
height: 100vh;
background-color: #FFFFFF;
}
.authentication_ok_warp .authentication_ok_content.data-v-731ed15b {
padding: 60rpx;
}
.authentication_ok_warp .authentication_result.data-v-731ed15b {
@@ -32,6 +34,7 @@
justify-content: center;
align-items: center;
text-align: center;
margin-top: 100rpx;
}
.authentication_ok_warp .authentication_result .result_title.data-v-731ed15b {
font-weight: bold;
@@ -1,5 +1,7 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_bank = require("../../api/bank.js");
const api_common = require("../../api/common.js");
const _sfc_main = {
data() {
return {
@@ -11,91 +13,142 @@ const _sfc_main = {
"padding-left": "16px"
},
form: {
name: null,
number: null,
bankNo: null,
//银行卡号
bankId: null,
// 银行ID
bankName: null,
// 银行名称
bankBranch: null,
// 开户支行
iban: null
// IBAN
// 银行ID
bankUsername: null,
//银行卡开户姓名
bankPhone: null
//银行卡预留手机号码
},
formList: [
{
id: 1,
title: "姓名",
formName: "name",
placeholder: "请输入姓名"
title: "银行卡开户姓名",
formName: "bankUsername",
placeholder: "请输入银行卡开户姓名",
type: "text"
},
{
id: 3,
title: "银行卡预留手机号码",
formName: "bankPhone",
placeholder: "请输入银行卡预留手机号码",
type: "number"
},
{
id: 2,
title: "银行卡账号/卡号",
formName: "number",
placeholder: "请输入账号"
},
{
id: 3,
title: "银行名称",
formName: "bankName",
placeholder: "请输入银行名称"
},
{
id: 4,
title: "开户支行(选填)",
formName: "bankBranch",
placeholder: "请属于您的开户支行"
},
{
id: 5,
title: "IBAN(选填)",
formName: "iban",
placeholder: "IBNA"
formName: "bankNo",
placeholder: "请输入账号",
type: "number"
}
]
],
bankOption: [],
// 银行列表选择
bankShow: false,
bankLoading: false
};
},
onLoad() {
},
methods: {
addBank() {
// 选择银行的弹框
async bankShowCheck(status) {
if (status) {
const resp = await api_common.getSupportBank();
if (resp && resp.bizcode === 100) {
this.bankOption = [resp.data];
}
} else {
this.bankOption = [[]];
}
this.bankShow = status;
},
// 提交地址
bankConfirm(e) {
const {
columnIndex,
value,
values,
index
} = e;
if (!value || value.length === 0) {
this.$refs.uToastRef.show({
type: "error",
message: "请先选择银行"
});
return;
}
const data = value[0];
this.form.bankId = data.id;
this.form.bankName = data.bankName;
this.bankShowCheck(false);
},
async addBank() {
const param = {
...this.form
};
if (!param.name) {
if (!param.bankUsername) {
this.$refs.uToastRef.show({
type: "error",
message: "请输入姓名"
message: "请输入银行卡开户姓名"
});
return;
}
if (!param.number) {
if (!param.bankPhone) {
this.$refs.uToastRef.show({
type: "error",
message: "银行卡账号/卡号"
message: "请输入银行卡预留手机号码"
});
return;
}
if (!param.bankName) {
if (!param.bankNo) {
this.$refs.uToastRef.show({
type: "error",
message: "银行名称"
message: "请输入银行卡账号/卡号"
});
return;
}
common_vendor.index.__f__("log", "at pages/mine_bank_add/mine_bank_add.vue:96", "param", param);
common_vendor.index.navigateTo({
url: "/pages/mine_bank_card/mine_bank_card"
});
if (!param.bankId) {
this.$refs.uToastRef.show({
type: "error",
message: "请选择银行"
});
return;
}
delete param.bankName;
const resp = await api_bank.bindBank(param);
if (resp && resp.bizcode === 100) {
this.$refs.uToastRef.show({
type: "sesses",
message: "绑定成功"
});
setTimeout(() => {
common_vendor.index.navigateTo({
url: "/pages/mine_bank_card/mine_bank_card"
});
}, 2e3);
}
}
}
};
if (!Array) {
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
const _easycom_up_toast2 = common_vendor.resolveComponent("up-toast");
(_easycom_up_input2 + _easycom_up_toast2)();
const _easycom_up_picker2 = common_vendor.resolveComponent("up-picker");
(_easycom_up_input2 + _easycom_up_image2 + _easycom_up_toast2 + _easycom_up_picker2)();
}
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
const _easycom_up_toast = () => "../../uni_modules/uview-plus/components/u-toast/u-toast.js";
const _easycom_up_picker = () => "../../uni_modules/uview-plus/components/u-picker/u-picker.js";
if (!Math) {
(_easycom_up_input + _easycom_up_toast)();
(_easycom_up_input + _easycom_up_image + _easycom_up_toast + _easycom_up_picker)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
@@ -108,13 +161,32 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
placeholder: item.placeholder,
border: "surround",
customStyle: $data.inputCss,
type: item.type,
modelValue: $data.form[item.formName]
}),
e: item.id
};
}),
b: common_vendor.o((...args) => $options.addBank && $options.addBank(...args)),
c: common_vendor.sr("uToastRef", "aa18beea-1")
b: common_vendor.t($data.form.bankName || "选择银行"),
c: common_vendor.p({
src: "/static/common/right_soild.png",
width: "14",
height: "14",
bgColor: "#f1f6ff00"
}),
d: common_vendor.o(($event) => $options.bankShowCheck(true)),
e: common_vendor.o((...args) => $options.addBank && $options.addBank(...args)),
f: common_vendor.sr("uToastRef", "aa18beea-2"),
g: common_vendor.o($options.bankConfirm),
h: common_vendor.o(($event) => $data.bankShow = false),
i: common_vendor.o(($event) => $data.bankShow = false),
j: common_vendor.p({
show: $data.bankShow,
columns: $data.bankOption,
keyName: "bankName",
itemHeight: "34",
loading: $data.bankLoading
})
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-aa18beea"]]);
@@ -6,6 +6,8 @@
"navigationStyle": "default",
"usingComponents": {
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
"up-toast": "../../uni_modules/uview-plus/components/u-toast/u-toast"
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
"up-toast": "../../uni_modules/uview-plus/components/u-toast/u-toast",
"up-picker": "../../uni_modules/uview-plus/components/u-picker/u-picker"
}
}
@@ -1 +1 @@
<view class="bank_add_warp data-v-aa18beea"><view class="add_form data-v-aa18beea"><view wx:for="{{a}}" wx:for-item="item" wx:key="e" class="add_bank_form_item data-v-aa18beea"><view class="add_title data-v-aa18beea">{{item.a}}</view><up-input wx:if="{{item.d}}" class="data-v-aa18beea" u-i="{{item.b}}" bind:__l="__l" bindupdateModelValue="{{item.c}}" u-p="{{item.d}}"></up-input></view></view><view class="add_but data-v-aa18beea" bindtap="{{b}}"> 添加 </view><up-toast class="r data-v-aa18beea" u-r="uToastRef" u-i="aa18beea-1" bind:__l="__l"></up-toast></view>
<view class="bank_add_warp data-v-aa18beea"><view class="add_form data-v-aa18beea"><view wx:for="{{a}}" wx:for-item="item" wx:key="e" class="add_bank_form_item data-v-aa18beea"><view class="add_title data-v-aa18beea">{{item.a}}</view><up-input wx:if="{{item.d}}" class="data-v-aa18beea" u-i="{{item.b}}" bind:__l="__l" bindupdateModelValue="{{item.c}}" u-p="{{item.d}}"></up-input></view><view class="add_bank_form_item data-v-aa18beea"><view class="add_title data-v-aa18beea">银行</view><view class="bank_warp data-v-aa18beea" bindtap="{{d}}"><view class="data-v-aa18beea" style="color:#808080;margin-left:22rpx;font-size:28rpx">{{b}}</view><up-image wx:if="{{c}}" class="data-v-aa18beea" u-i="aa18beea-1" bind:__l="__l" u-p="{{c}}"></up-image></view></view></view><view class="add_but data-v-aa18beea" bindtap="{{e}}"> 添加 </view><up-toast class="r data-v-aa18beea" u-r="uToastRef" u-i="aa18beea-2" bind:__l="__l"></up-toast><up-picker wx:if="{{j}}" class="data-v-aa18beea" bindconfirm="{{g}}" bindclose="{{h}}" bindcancel="{{i}}" u-i="aa18beea-3" bind:__l="__l" u-p="{{j}}"></up-picker></view>
@@ -40,4 +40,9 @@
font-size: 32rpx;
color: #111111;
margin-bottom: 30rpx;
}
.bank_warp.data-v-aa18beea {
display: flex;
justify-content: space-between;
width: 100%;
}
@@ -1,69 +1,101 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_bank = require("../../api/bank.js");
const utils_index = require("../../utils/index.js");
const Header = () => "../../components/header.js";
const _sfc_main = {
components: { Header },
data() {
return {
bankList: [
{
id: 1,
url: "/static/bank/default.png",
bankName: "中国交通银行",
userName: "张某某",
number: "**** **** **** 0865"
},
{
id: 2,
url: "/static/bank/default.png",
bankName: "中国农业银行",
userName: "张某某",
number: "**** **** **** 0769"
},
{
id: 3,
url: "/static/bank/default.png",
bankName: "中国农业银行",
userName: "张某某",
number: "**** **** **** 0769"
}
]
bankList: []
};
},
onLoad() {
this.getBankList();
},
methods: {
encipherBankNumber: utils_index.encipherBankNumber,
jumpAddBank() {
common_vendor.index.navigateTo({
url: "/pages/mine_bank_add/mine_bank_add"
});
},
async getBankList() {
const resp = await api_bank.getBankList();
if (resp && resp.bizcode === 100) {
this.bankList = resp.data || [];
}
},
// 删除
deleteClick(item) {
const then = this;
common_vendor.index.showModal({
title: "提示",
content: "是否要解绑该银行卡?",
success: function(res) {
if (res.confirm) {
then.deleteFun(item);
}
}
});
},
// 删除的方法
async deleteFun(item) {
const params = {
id: item.id
};
const respon = await api_bank.unbind(params);
if (respon && respon.bizcode === 100) {
this.getBankList();
}
}
}
};
if (!Array) {
const _component_Header = common_vendor.resolveComponent("Header");
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
_easycom_up_image2();
(_component_Header + _easycom_up_image2)();
}
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
if (!Math) {
_easycom_up_image();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.t($data.bankList.length),
b: common_vendor.f($data.bankList, (item, k0, i0) => {
return common_vendor.e({
a: common_vendor.p({
leftTitle: _ctx.$t("bankCard.title"),
["left-path-type"]: "switchTab",
["left-path"]: "/pages/mine/mine"
}),
b: common_vendor.t($data.bankList.length),
c: $data.bankList.length !== 0
}, $data.bankList.length !== 0 ? {
d: common_vendor.f($data.bankList, (item, k0, i0) => {
return {
a: "c1af5562-0-" + i0,
a: "c1af5562-1-" + i0,
b: common_vendor.p({
src: item.url,
src: item.bankLogo || "/static/bank/default.png",
width: "50",
height: "50",
bgColor: "#f1f6ff00"
}),
c: common_vendor.t(item.bankName),
d: common_vendor.t(item.userName),
e: common_vendor.t(item.number),
f: item.id
d: common_vendor.t(item.bankUsername),
e: common_vendor.t($options.encipherBankNumber(item.bankNo)),
f: common_vendor.o(($event) => $options.deleteClick(item), item.id),
g: item.id
};
}),
c: common_vendor.o((...args) => $options.jumpAddBank && $options.jumpAddBank(...args))
};
})
} : {
e: common_vendor.p({
src: "/static/common/not_order.png",
width: "80",
height: "80",
bgColor: "#f1f6ff00"
})
}, {
f: common_vendor.o((...args) => $options.jumpAddBank && $options.jumpAddBank(...args))
});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-c1af5562"]]);
wx.createPage(MiniProgramPage);
@@ -1,10 +1,7 @@
{
"navigationBarTitleText": "银行卡管理",
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black",
"enablePullDownRefresh": false,
"navigationStyle": "default",
"navigationStyle": "custom",
"usingComponents": {
"header": "../../components/header",
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image"
}
}
@@ -1 +1 @@
<view class="mine_bank_warp data-v-c1af5562"><view class="bank_title data-v-c1af5562"> 银行卡({{a}}张) </view><view class="bank_list data-v-c1af5562"><view wx:for="{{b}}" wx:for-item="item" wx:key="f" class="bank_item data-v-c1af5562"><view class="bank_data data-v-c1af5562"><up-image wx:if="{{item.b}}" class="data-v-c1af5562" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image><view class="bank_info data-v-c1af5562"><view class="bank_bank_name data-v-c1af5562">{{item.c}}</view><view class="bank_user_name data-v-c1af5562">{{item.d}}</view></view></view><view class="bank_parting_line data-v-c1af5562"></view><view class="data-v-c1af5562">{{item.e}}</view></view></view><view class="add_but data-v-c1af5562" bindtap="{{c}}"> 添加银行卡 </view></view>
<view class="mine_bank_warp data-v-c1af5562"><header wx:if="{{a}}" class="data-v-c1af5562" u-i="c1af5562-0" bind:__l="__l" u-p="{{a}}"/><view class="mine_bank_content_warp data-v-c1af5562"><view class="bank_title data-v-c1af5562"> 银行卡({{b}}张) </view><view class="bank_list data-v-c1af5562"><block wx:if="{{c}}"><view wx:for="{{d}}" wx:for-item="item" wx:key="g" class="bank_item data-v-c1af5562"><view class="bank_data data-v-c1af5562"><up-image wx:if="{{item.b}}" class="data-v-c1af5562" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image><view class="bank_info data-v-c1af5562"><view class="bank_bank_name data-v-c1af5562">{{item.c}}</view><view class="bank_user_name data-v-c1af5562">{{item.d}}</view></view></view><view class="bank_parting_line data-v-c1af5562"></view><view class="operate_item data-v-c1af5562"><view class="data-v-c1af5562">{{item.e}}</view><view class="operate_ data-v-c1af5562" bindtap="{{item.f}}">解绑</view></view></view></block><view wx:else class="not_order_warp data-v-c1af5562"><up-image wx:if="{{e}}" class="data-v-c1af5562" u-i="c1af5562-2" bind:__l="__l" u-p="{{e}}"></up-image><view class="not_order_msg_warp data-v-c1af5562">还未绑定银行卡哦~</view></view></view><view class="add_but data-v-c1af5562" bindtap="{{f}}"> 添加银行卡 </view></view></view>
@@ -25,9 +25,11 @@
.mine_bank_warp.data-v-c1af5562 {
height: calc(100vh - 58rpx);
background-color: #F5F5F5;
padding: 30rpx;
overflow-y: hidden;
}
.mine_bank_warp .mine_bank_content_warp.data-v-c1af5562 {
padding: 30rpx;
}
.mine_bank_warp .bank_title.data-v-c1af5562 {
font-weight: bold;
font-size: 36rpx;
@@ -67,4 +69,16 @@
background: #EEEEEEFF;
border-radius: 0rpx 0rpx 1rpx 1rpx;
margin: 30rpx auto;
}
.mine_bank_warp .operate_item.data-v-c1af5562 {
display: flex;
justify-content: space-between;
}
.mine_bank_warp .operate_item .operate_.data-v-c1af5562 {
padding: 10rpx 30rpx;
background: #F3F3F3;
border-radius: 25rpx;
font-size: 24rpx;
color: #222222;
margin-left: 20rpx;
}
+185 -161
View File
@@ -3,149 +3,57 @@ const common_vendor = require("../../common/vendor.js");
const utils_enumUtils = require("../../utils/enumUtils.js");
const utils_enumCssUtils = require("../../utils/enumCssUtils.js");
const api_order = require("../../api/order.js");
const utils_index = require("../../utils/index.js");
const _sfc_main = {
computed: {
ORDER_TYPE() {
return utils_enumUtils.ORDER_TYPE;
MINE_ORDER_TYPE() {
return utils_enumUtils.MINE_ORDER_TYPE;
},
ORDER_STATUS() {
return utils_enumUtils.ORDER_STATUS;
},
ORDER_STATUS_CSS() {
return utils_enumCssUtils.ORDER_STATUS_CSS;
},
ORDER_TYPE() {
return utils_enumUtils.ORDER_TYPE;
}
},
data() {
return {
orderTypeList: [
{
id: utils_enumUtils.ORDER_TYPE.UNPAID,
id: utils_enumUtils.MINE_ORDER_TYPE.UNPAID,
title: "待支付"
},
{
id: utils_enumUtils.ORDER_TYPE.UNSHIPPED,
id: utils_enumUtils.MINE_ORDER_TYPE.UNSHIPPED,
title: "待发货"
},
{
id: utils_enumUtils.ORDER_TYPE.NOT_RECEIVE,
id: utils_enumUtils.MINE_ORDER_TYPE.NOT_RECEIVE,
title: "待收货"
},
{
id: utils_enumUtils.ORDER_TYPE.SUCCEED,
title: "待评价"
id: utils_enumUtils.MINE_ORDER_TYPE.SUCCEED,
title: "已完成"
},
{
id: utils_enumUtils.MINE_ORDER_TYPE.AFTER_SALE,
title: "售后"
}
],
form: {
search: null,
//搜索
page: 1,
pageSize: 15,
type: 0
pageSize: 10,
type: utils_enumUtils.MINE_ORDER_TYPE.UNPAID
// 选中的类型
},
orderList: [
{
id: 1,
url: "/static/common/order_defal.png",
name: "哈希店铺",
status: 1,
paymentTime: 29,
// 剩余付款时间,单位:分钟
product: [
{
id: 1,
url: "/static/common/product_def.png",
title: "美的双开门冰箱大容量多美的双开门冰箱大容量多",
description: ["双开门", "大容量"],
tag: ["7天无理由退货", "退货险"],
quantity: 1,
total: 3599
}
],
productTotal: 3599
},
{
id: 2,
url: "/static/common/order_defal.png",
name: "哈希店铺",
status: 2,
product: [
{
id: 1,
url: "/static/common/product_def.png",
title: "美的双开门冰箱大容量多美的双开门冰箱大容量多",
description: ["双开门", "大容量"],
tag: ["7天无理由退货", "退货险"],
quantity: 1,
total: 3599
},
{
id: 2,
url: "/static/common/product_def.png",
title: "美的双开门冰箱大容量多美的双开门冰箱大容量多",
description: ["双开门", "大容量"],
tag: ["7天无理由退货", "退货险"],
quantity: 1,
total: 3599
}
],
productTotal: 7099.88
},
{
id: 3,
url: "/static/common/order_defal.png",
name: "哈希店铺",
status: 4,
product: [
{
id: 1,
url: "/static/common/product_def.png",
title: "美的双开门冰箱大容量多美的双开门冰箱大容量多",
description: ["双开门", "大容量"],
tag: ["7天无理由退货", "退货险"],
quantity: 1,
total: 3599
}
],
productTotal: 3599
},
{
id: 4,
url: "/static/common/order_defal.png",
name: "哈希店铺",
status: 5,
product: [
{
id: 1,
url: "/static/common/product_def.png",
title: "美的双开门冰箱大容量多美的双开门冰箱大容量多",
description: ["双开门", "大容量"],
tag: ["7天无理由退货", "退货险"],
quantity: 1,
total: 3599
}
],
productTotal: 3599
},
{
id: 6,
url: "/static/common/order_defal.png",
name: "哈希店铺",
status: 6,
product: [
{
id: 1,
url: "/static/common/product_def.png",
title: "美的双开门冰箱大容量多美的双开门冰箱大容量多",
description: ["双开门", "大容量"],
tag: ["7天无理由退货", "退货险"],
quantity: 1,
total: 3599
}
],
productTotal: 3599
}
],
hasMore: true,
// 是否有更多数据可以加载
orderList: [],
cancelShow: false,
// 取消订单
reasonList: [
@@ -177,42 +85,90 @@ const _sfc_main = {
cancelForm: {
reason: null,
remark: null
}
},
loading: false,
// 加载状态标志
openShow: false
};
},
onLoad(options) {
const type = options.type;
this.form.type = type ? parseInt(type, 10) : utils_enumUtils.ORDER_TYPE.UNPAID;
this.getOrderList();
this.form.type = type && type < 5 ? parseInt(type, 10) : utils_enumUtils.MINE_ORDER_TYPE.UNPAID;
this.loadData();
},
methods: {
dayjs: common_vendor.dayjs,
getValue: utils_enumUtils.getValue,
formatDate1: utils_index.formatDate1,
copyData: utils_index.copyData,
jumpLeft() {
common_vendor.index.switchTab({
url: "/pages/mine/mine"
});
},
searchFun(val) {
common_vendor.index.__f__("log", "at pages/mine_order/mine_order.vue:297", "searchFun", val);
common_vendor.index.__f__("log", "at pages/mine_order/mine_order.vue:246", "searchFun", val);
},
checkType(item) {
this.form.page = 1;
this.form.type = item.id;
this.getOrderList();
this.orderList = [];
if (item.id !== utils_enumUtils.MINE_ORDER_TYPE.AFTER_SALE) {
this.loadData();
} else {
this.openShow = true;
}
},
jumpOrderInfo() {
jumpOrderInfo(item) {
common_vendor.index.navigateTo({
url: "/pages/mine_order_info/mine_order_info?type=" + this.type
url: "/pages/mine_order_info/mine_order_info?id=" + item.id
});
},
async getOrderList() {
const params = {
...this.form
};
const resp = await api_order.getOrderList(params);
common_vendor.index.__f__("log", "at pages/mine_order/mine_order.vue:313", "resp", resp);
if (resp && resp.bizcode === 100) {
this.orderList = resp.data;
// 处理到期时间
handleExpressTime(expressTime) {
let resultM = 0;
if (!expressTime || expressTime === 0) {
return resultM;
}
const currentTimestamp = common_vendor.dayjs().unix();
const time = currentTimestamp - expressTime;
resultM = common_vendor.dayjs(time).format("YYYY-MM-DD HH:MM:SS");
return resultM;
},
// 加载数据的方法
async loadData() {
if (this.loading)
return;
this.loading = true;
try {
const newData = await this.fetchData(this.form.page, this.form.pageSize);
if (newData.entitys && newData.entitys.length !== 0) {
this.orderList = [...this.orderList, ...newData.entitys];
this.form.page++;
}
} catch (error) {
common_vendor.index.__f__("error", "at pages/mine_order/mine_order.vue:291", "加载数据失败:", error);
} finally {
this.loading = false;
}
},
// 模拟获取数据的方法,实际应用中应该替换为你的数据获取逻辑,例如从服务器获取数据
async fetchData(page, pageSize) {
const params = {
...this.form,
page,
pageSize
};
const data = await api_order.getOrderList(params);
if (data && data.bizcode === 100) {
return data.data;
} else {
return [];
}
},
// 当滚动到底部时触发的方法
loadMore() {
this.loadData();
},
checkCancel(status) {
this.cancelShow = status;
@@ -237,8 +193,33 @@ const _sfc_main = {
});
return;
}
common_vendor.index.__f__("log", "at pages/mine_order/mine_order.vue:342", "params", params);
this.checkCancel(false);
},
/**
* 确认收货
*/
confirmReceiptOk(item) {
const then = this;
common_vendor.index.showModal({
title: "提示",
content: "是否确认收货?",
success: function(res) {
if (res.confirm) {
then.confirmReceiptFun(item);
}
}
});
},
async confirmReceiptFun(item) {
const params = {
id: item.id
};
const resp = await api_order.confirmReceipt(params);
if (resp && resp.bizcode === 100) {
this.orderList = [];
this.form.page = 1;
this.loadData();
}
}
}
};
@@ -251,7 +232,8 @@ if (!Array) {
const _easycom_up_textarea2 = common_vendor.resolveComponent("up-textarea");
const _easycom_up_popup2 = common_vendor.resolveComponent("up-popup");
const _easycom_up_toast2 = common_vendor.resolveComponent("up-toast");
(_easycom_up_image2 + _easycom_up_search2 + _easycom_up_icon2 + _easycom_up_radio2 + _easycom_up_radio_group2 + _easycom_up_textarea2 + _easycom_up_popup2 + _easycom_up_toast2)();
const _easycom_up_modal2 = common_vendor.resolveComponent("up-modal");
(_easycom_up_image2 + _easycom_up_search2 + _easycom_up_icon2 + _easycom_up_radio2 + _easycom_up_radio_group2 + _easycom_up_textarea2 + _easycom_up_popup2 + _easycom_up_toast2 + _easycom_up_modal2)();
}
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
const _easycom_up_search = () => "../../uni_modules/uview-plus/components/u-search/u-search.js";
@@ -261,8 +243,9 @@ const _easycom_up_radio_group = () => "../../uni_modules/uview-plus/components/u
const _easycom_up_textarea = () => "../../uni_modules/uview-plus/components/u-textarea/u-textarea.js";
const _easycom_up_popup = () => "../../uni_modules/uview-plus/components/u-popup/u-popup.js";
const _easycom_up_toast = () => "../../uni_modules/uview-plus/components/u-toast/u-toast.js";
const _easycom_up_modal = () => "../../uni_modules/uview-plus/components/u-modal/u-modal.js";
if (!Math) {
(_easycom_up_image + _easycom_up_search + _easycom_up_icon + _easycom_up_radio + _easycom_up_radio_group + _easycom_up_textarea + _easycom_up_popup + _easycom_up_toast)();
(_easycom_up_image + _easycom_up_search + _easycom_up_icon + _easycom_up_radio + _easycom_up_radio_group + _easycom_up_textarea + _easycom_up_popup + _easycom_up_toast + _easycom_up_modal)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
@@ -279,12 +262,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
bgColor: "#FFFFFFFF",
showAction: false
}),
e: common_vendor.f($data.orderTypeList, (item, k0, i0) => {
e: common_vendor.f($data.orderTypeList, (item, index, i0) => {
return {
a: common_vendor.t(item.title),
b: common_vendor.n($data.form.type === item.id ? "order_type_title_item order_type_title_item_sel" : "order_type_title_item"),
c: common_vendor.o(($event) => $options.checkType(item), item.id),
d: item.id
c: common_vendor.o(($event) => $options.checkType(item), index),
d: index
};
}),
f: $data.orderList && $data.orderList.length !== 0
@@ -296,7 +279,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
src: item.shopLogo,
width: "22",
height: "22",
bgColor: "#f1f6ff00"
bgColor: "#f1f6ff00",
shape: "circle"
}),
c: common_vendor.t(item.shopName),
d: item.status !== $options.ORDER_TYPE.UNPAID
@@ -304,10 +288,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
e: common_vendor.t($options.getValue($options.ORDER_STATUS, item.status)),
f: $options.ORDER_STATUS_CSS[item.status]
} : {
g: common_vendor.t(item.expireTime)
g: common_vendor.t($options.formatDate1(item.expireTime))
}, {
h: common_vendor.f(item.items, (pItem, k1, i1) => {
return {
return common_vendor.e({
a: "abc152e3-3-" + i0 + "-" + i1,
b: common_vendor.p({
src: pItem.mainGraph,
@@ -319,42 +303,66 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
d: common_vendor.t(pItem.goodsSpece),
e: common_vendor.t(pItem.goodsAmount),
f: common_vendor.t(pItem.buyNum),
g: pItem.id
};
}),
g: common_vendor.o(($event) => $options.jumpOrderInfo(item), pItem.id),
h: pItem.expressNo
}, pItem.expressNo ? common_vendor.e({
i: pItem.expressName
}, pItem.expressName ? {
j: common_vendor.t(pItem.expressName)
} : {}, {
k: common_vendor.t(pItem.expressNo),
l: common_vendor.o(($event) => $options.copyData(pItem.expressNo), pItem.id),
m: "abc152e3-4-" + i0 + "-" + i1,
n: common_vendor.p({
src: "/static/common/copy.png",
width: "14",
height: "14",
bgColor: "#f1f6ff00"
})
}) : {}, {
o: pItem.id
});
})
}, this.form.type === $options.MINE_ORDER_TYPE.NOT_RECEIVE ? {
i: common_vendor.t(item.buyNum),
j: common_vendor.t(item.sumAmount),
k: item.status === $options.ORDER_TYPE.UNSHIPPED
}, item.status === $options.ORDER_TYPE.UNSHIPPED ? {
l: common_vendor.o(($event) => $options.checkCancel(true), item.id)
} : {}, {
j: common_vendor.t(item.sumAmount)
} : {
k: common_vendor.t(item.buyNum),
l: common_vendor.t(item.sumAmount)
}, {
m: item.status === $options.ORDER_TYPE.UNPAID
}, item.status === $options.ORDER_TYPE.UNPAID ? {
n: common_vendor.o((...args) => $options.jumpOrderInfo && $options.jumpOrderInfo(...args), item.id)
n: common_vendor.o(($event) => $options.jumpOrderInfo(item), item.id)
} : {}, {
o: item.status === $options.ORDER_TYPE.NOT_RECEIVE
}, item.status === $options.ORDER_TYPE.NOT_RECEIVE ? {} : {}, {
p: item.id
}, item.status === $options.ORDER_TYPE.NOT_RECEIVE ? {
p: common_vendor.o(($event) => $options.confirmReceiptOk(item), item.id)
} : {}, {
q: item.id
});
})
}),
h: this.form.type === $options.MINE_ORDER_TYPE.NOT_RECEIVE
} : {
h: common_vendor.p({
i: common_vendor.p({
src: "/static/common/not_order.png",
width: "80",
height: "80",
bgColor: "#f1f6ff00"
})
}, {
i: common_vendor.p({
j: $data.loading
}, $data.loading ? {} : {}, {
k: common_vendor.o((...args) => $options.loadMore && $options.loadMore(...args)),
l: common_vendor.p({
name: "close-circle",
color: "#9e9e9e",
size: "20"
}),
j: common_vendor.o(($event) => $options.checkCancel(false)),
k: common_vendor.f($data.reasonList, (item, index, i0) => {
m: common_vendor.o(($event) => $options.checkCancel(false)),
n: common_vendor.f($data.reasonList, (item, index, i0) => {
return {
a: index,
b: "abc152e3-8-" + i0 + ",abc152e3-7",
b: "abc152e3-9-" + i0 + ",abc152e3-8",
c: common_vendor.p({
customStyle: {
marginBottom: "8px"
@@ -364,23 +372,39 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
})
};
}),
l: common_vendor.o(($event) => $data.cancelForm.reason = $event),
m: common_vendor.p({
o: common_vendor.o(($event) => $data.cancelForm.reason = $event),
p: common_vendor.p({
placement: "column",
modelValue: $data.cancelForm.reason
}),
n: common_vendor.o(($event) => $data.cancelForm.remark = $event),
o: common_vendor.p({
q: common_vendor.o(($event) => $data.cancelForm.remark = $event),
r: common_vendor.p({
modelValue: $data.cancelForm.remark
}),
p: common_vendor.o((...args) => $options.cancelOk && $options.cancelOk(...args)),
q: common_vendor.o(($event) => $data.cancelShow = $event),
r: common_vendor.p({
s: common_vendor.o((...args) => $options.cancelOk && $options.cancelOk(...args)),
t: common_vendor.o(($event) => $data.cancelShow = $event),
v: common_vendor.p({
round: 10,
closeOnClickOverlay: false,
show: $data.cancelShow
}),
s: common_vendor.sr("uToastRef", "abc152e3-10")
w: common_vendor.sr("uToastRef", "abc152e3-11"),
x: common_vendor.p({
src: "/static/common/close.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
}),
y: common_vendor.o(($event) => {
$data.openShow = false;
}),
z: common_vendor.o(($event) => {
$data.openShow = false;
}),
A: common_vendor.p({
show: $data.openShow,
showConfirmButton: false
})
});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-abc152e3"]]);
@@ -8,6 +8,7 @@
"up-radio-group": "../../uni_modules/uview-plus/components/u-radio-group/u-radio-group",
"up-textarea": "../../uni_modules/uview-plus/components/u-textarea/u-textarea",
"up-popup": "../../uni_modules/uview-plus/components/u-popup/u-popup",
"up-toast": "../../uni_modules/uview-plus/components/u-toast/u-toast"
"up-toast": "../../uni_modules/uview-plus/components/u-toast/u-toast",
"up-modal": "../../uni_modules/uview-plus/components/u-modal/u-modal"
}
}
File diff suppressed because one or more lines are too long
@@ -48,10 +48,6 @@
font-size: 36rpx;
color: #FF7C41;
}
.order_list_warp.data-v-abc152e3 {
height: calc(100vh - 270rpx);
overflow-y: auto;
}
.order_item.data-v-abc152e3 {
background: #FFFFFF;
border-radius: 20rpx;
@@ -103,6 +99,10 @@
color: #666666;
text-align: right;
}
.order_item .order_item_collect .collect_msg_s.data-v-abc152e3 {
display: flex;
justify-content: space-between;
}
.cancel_show_warp.data-v-abc152e3 {
padding: 20rpx;
}
@@ -149,4 +149,17 @@
.add_but.data-v-abc152e3 {
position: initial;
width: 94%;
}
.content_info_title.data-v-abc152e3 {
width: 370rpx;
}
.content_item_yd.data-v-abc152e3 {
font-weight: bold;
font-size: 24rpx;
display: flex;
align-items: center;
}
.content_item_yd_msg.data-v-abc152e3 {
font-weight: bold;
font-size: 18rpx;
}
@@ -2,6 +2,8 @@
const common_vendor = require("../../common/vendor.js");
const utils_enumUtils = require("../../utils/enumUtils.js");
const utils_index = require("../../utils/index.js");
const api_order = require("../../api/order.js");
const utils_payUtils = require("../../utils/payUtils.js");
const _sfc_main = {
computed: {
ORDER_TYPE() {
@@ -16,175 +18,318 @@ const _sfc_main = {
},
data() {
return {
type: 0,
orderInfo: {
// status:ORDER_TYPE.UNPAID,// 待付款
// status:ORDER_TYPE.CANCELED,// 已取消
// status:ORDER_TYPE.UNSHIPPED,// 待发货
status: utils_enumUtils.ORDER_TYPE.NOT_RECEIVE,
// 待收货
// status:ORDER_TYPE.COMPLETED,// 完成
// status:ORDER_TYPE.AFTER_SALE,
name: "张先生",
mobile: "18****2848",
address: "河南省郑州市金水区东风路街道北三环索凌路交叉口明明小区1号楼1座",
waybillNumber: "SF23423443242",
product: {
id: 1,
url: "/static/common/order_defal.png",
name: "哈希店铺",
status: 1,
paymentTime: 29,
// 剩余付款时间,单位:分钟
productList: [
{
id: 1,
url: "/static/common/product_def.png",
title: "美的双开门冰箱大容量多美的双开门冰箱大容量多",
description: ["双开门", "大容量"],
tag: ["7天无理由退货", "退货险"],
quantity: 1,
total: 3599
},
{
id: 2,
url: "/static/common/product_def.png",
title: "美的双开门冰箱大容量多美的双开门冰箱大容量多",
description: ["双开门", "大容量"],
tag: ["7天无理由退货", "退货险"],
quantity: 1,
total: 3599
}
],
productTotal: 7599
}
}
id: 0,
orderInfo: {},
listLoading: false,
wayForm: {
id: 0,
payway: null
// 支付方式
},
wayShow: false,
wayOption: [],
// 支付选项
height: "180rpx"
};
},
onLoad(options) {
const type = options.type;
this.type = type ? parseInt(type, 10) : 0;
const id = options.id;
this.id = id ? parseInt(id, 10) : 0;
this.getOrderInfo();
this.getWayOption();
},
methods: {
getValue: utils_enumUtils.getValue,
copyData: utils_index.copyData,
assembleAddress: utils_index.assembleAddress,
formatDate: utils_index.formatDate,
formatDate1: utils_index.formatDate1,
jumpLeft() {
common_vendor.index.navigateTo({
url: "/pages/mine_order/mine_order?type=" + this.type
url: "/pages/mine_order/mine_order?type=" + this.orderInfo.status
});
},
async getWayOption() {
const result = await api_order.getSupportPay();
if (result && result.bizcode === 100) {
this.wayOption = result.data;
}
},
// 查询订单详情
async getOrderInfo() {
this.listLoading = true;
const params = {
id: this.id
};
const result = await api_order.getDetail(params);
if (result && result.bizcode === 100) {
const orderInfo = result.data;
if ([utils_enumUtils.ORDER_TYPE.UNPAID, utils_enumUtils.ORDER_TYPE.NOT_RECEIVE].includes(orderInfo.status)) {
this.height = "180rpx";
} else {
this.height = "0rpx";
}
this.orderInfo = orderInfo;
}
this.listLoading = false;
},
// 去支付
goPay() {
common_vendor.index.__f__("log", "at pages/mine_order_info/mine_order_info.vue:213", "goPay.....");
async goPay() {
const payway = this.wayForm.payway;
if (!payway || payway === 0) {
this.$refs.uToastRef.show({
type: "error",
message: "请先选择支付方式"
});
return;
}
const params = {
id: this.orderInfo.id,
payway
};
const resp = await api_order.payment(params);
if (resp && resp.bizcode === 100) {
const item = resp.data;
if (item.status === 1) {
utils_payUtils.jumpWayOk();
return;
}
if (item.wechat && Object.keys(item.wechat).length !== 0) {
this.appWxpay(item.wechat, item.orderId, item.orderNum);
} else if (item.alipay && Object.keys(item.alipay).length !== 0 && item.alipay) {
this.zfbPay(item.alipay, item.orderId, item.orderNum);
} else {
this.$refs.uToastRef.show({
type: "error",
message: "订单支付失败"
});
setTimeout(() => {
utils_payUtils.jumpWayError();
}, 2e3);
}
} else {
this.getOrderInfo();
}
},
// app 微信支付
async appWxpay(alipay, orderId, orderNum) {
try {
const result = await utils_payUtils.appWxpayFun(alipay, orderId, orderNum);
common_vendor.index.__f__("log", "at pages/mine_order_info/mine_order_info.vue:311", "支付成功", result);
} catch (error) {
common_vendor.index.__f__("error", "at pages/mine_order_info/mine_order_info.vue:314", "支付失败", error);
}
},
// 支付宝支付
async zfbPay(alipay, orderId, orderNum) {
try {
const result = await utils_payUtils.zfbPayFun(alipay, orderId, orderNum);
common_vendor.index.__f__("log", "at pages/mine_order_info/mine_order_info.vue:322", "支付成功", result);
} catch (error) {
common_vendor.index.__f__("error", "at pages/mine_order_info/mine_order_info.vue:325", "支付失败", error);
}
},
/**
* 确认收货
*/
confirmReceiptOk(item) {
const then = this;
common_vendor.index.showModal({
title: "提示",
content: "是否确认收货?",
success: function(res) {
if (res.confirm) {
then.confirmReceiptFun(item);
}
}
});
},
async confirmReceiptFun(item) {
const params = {
id: item.id
};
const resp = await api_order.confirmReceipt(params);
if (resp && resp.bizcode === 100) {
this.orderList = [];
this.form.page = 1;
this.loadData();
}
}
}
};
if (!Array) {
const _easycom_up_loading_page2 = common_vendor.resolveComponent("up-loading-page");
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
_easycom_up_image2();
const _easycom_up_radio2 = common_vendor.resolveComponent("up-radio");
const _easycom_up_radio_group2 = common_vendor.resolveComponent("up-radio-group");
const _easycom_up_popup2 = common_vendor.resolveComponent("up-popup");
const _easycom_up_toast2 = common_vendor.resolveComponent("up-toast");
(_easycom_up_loading_page2 + _easycom_up_image2 + _easycom_up_radio2 + _easycom_up_radio_group2 + _easycom_up_popup2 + _easycom_up_toast2)();
}
const _easycom_up_loading_page = () => "../../uni_modules/uview-plus/components/u-loading-page/u-loading-page.js";
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
const _easycom_up_radio = () => "../../uni_modules/uview-plus/components/u-radio/u-radio.js";
const _easycom_up_radio_group = () => "../../uni_modules/uview-plus/components/u-radio-group/u-radio-group.js";
const _easycom_up_popup = () => "../../uni_modules/uview-plus/components/u-popup/u-popup.js";
const _easycom_up_toast = () => "../../uni_modules/uview-plus/components/u-toast/u-toast.js";
if (!Math) {
_easycom_up_image();
(_easycom_up_loading_page + _easycom_up_image + _easycom_up_radio + _easycom_up_radio_group + _easycom_up_popup + _easycom_up_toast)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: common_vendor.o($options.jumpLeft),
b: common_vendor.p({
a: common_vendor.p({
loading: $data.listLoading
}),
b: common_vendor.o($options.jumpLeft),
c: common_vendor.p({
src: "/static/common/left_b.png",
width: "20",
height: "19",
bgColor: "#f1f6ff00"
}),
c: common_vendor.p({
d: common_vendor.p({
src: "/static/common/order_status_1.png",
width: "20",
height: "19",
bgColor: "#f1f6ff00"
}),
d: common_vendor.t($options.getValue($options.ORDER_STATUS, $data.orderInfo.status)),
e: $data.orderInfo.status === $options.ORDER_TYPE.UNPAID
}, $data.orderInfo.status === $options.ORDER_TYPE.UNPAID ? {} : {}, {
f: $data.orderInfo.status === $options.ORDER_TYPE.CANCELED
e: common_vendor.t($options.getValue($options.ORDER_STATUS, $data.orderInfo.status)),
f: $data.orderInfo.status === $options.ORDER_TYPE.UNPAID
}, $data.orderInfo.status === $options.ORDER_TYPE.UNPAID ? {
g: common_vendor.t($data.orderInfo.sumAmount),
h: common_vendor.t($options.formatDate1($data.orderInfo.expireTime))
} : {}, {
i: $data.orderInfo.status === $options.ORDER_TYPE.CANCELED
}, $data.orderInfo.status === $options.ORDER_TYPE.CANCELED ? {} : {}, {
g: [$options.ORDER_TYPE.NOT_RECEIVE].includes($data.orderInfo.status)
}, [$options.ORDER_TYPE.NOT_RECEIVE].includes($data.orderInfo.status) ? {
h: common_vendor.p({
j: common_vendor.p({
src: "/static/common/waybill.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
}),
i: common_vendor.t($data.orderInfo.waybillNumber),
j: common_vendor.o(($event) => $options.copyData($data.orderInfo.waybillNumber)),
k: common_vendor.p({
k: common_vendor.t($data.orderInfo.orderNum),
l: common_vendor.o(($event) => $options.copyData($data.orderInfo.orderNum)),
m: common_vendor.p({
src: "/static/common/copy.png",
width: "14",
height: "14",
bgColor: "#f1f6ff00"
})
} : {}, {
l: [$options.ORDER_TYPE.NOT_RECEIVE].includes($data.orderInfo.status)
}, [$options.ORDER_TYPE.NOT_RECEIVE].includes($data.orderInfo.status) ? {} : {}, {
m: common_vendor.p({
}),
n: common_vendor.p({
src: "/static/common/address.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
}),
n: common_vendor.t($data.orderInfo.name),
o: common_vendor.t($data.orderInfo.mobile),
p: common_vendor.t($data.orderInfo.address),
q: common_vendor.p({
src: $data.orderInfo.product.url,
o: common_vendor.t($data.orderInfo.name),
p: common_vendor.t($data.orderInfo.phone),
q: common_vendor.t($options.assembleAddress($data.orderInfo).names),
r: common_vendor.t($data.orderInfo.address),
s: common_vendor.p({
src: $data.orderInfo.shopLogo,
width: "22",
height: "22",
bgColor: "#f1f6ff00"
bgColor: "#f1f6ff00",
shape: "circle"
}),
r: common_vendor.t($data.orderInfo.product.name),
s: common_vendor.f($data.orderInfo.product.productList, (pItem, k0, i0) => {
return {
a: "e943673c-6-" + i0,
t: common_vendor.t($data.orderInfo.shopName),
v: common_vendor.f($data.orderInfo.items, (pItem, k0, i0) => {
return common_vendor.e({
a: "e943673c-7-" + i0,
b: common_vendor.p({
src: pItem.url,
src: pItem.mainGraph,
width: "80",
height: "80",
bgColor: "#f1f6ff00"
}),
c: common_vendor.t(pItem.title),
d: common_vendor.t(pItem.tag.join(" ")),
d: common_vendor.t(pItem.goodsSpece),
e: common_vendor.f(pItem.description, (dItem, k1, i1) => {
return {
a: common_vendor.t(dItem),
b: dItem
};
}),
f: common_vendor.t(pItem.total),
g: common_vendor.t(pItem.quantity),
h: pItem.id
};
f: common_vendor.t(pItem.goodsAmount),
g: common_vendor.t(pItem.buyNum),
h: pItem.expressNo
}, pItem.expressNo ? {
i: common_vendor.t(pItem.expressNo),
j: common_vendor.o(($event) => $options.copyData(pItem.expressNo), pItem.id),
k: "e943673c-8-" + i0,
l: common_vendor.p({
src: "/static/common/copy.png",
width: "14",
height: "14",
bgColor: "#f1f6ff00"
})
} : {}, {
m: pItem.id
});
}),
t: common_vendor.o(($event) => $options.copyData("2324124232424")),
v: $data.orderInfo.status === $options.ORDER_TYPE.UNSHIPPED
}, $data.orderInfo.status === $options.ORDER_TYPE.UNSHIPPED ? {} : {}, {
w: $data.orderInfo.status === $options.ORDER_TYPE.UNPAID
w: common_vendor.t($data.orderInfo.sumAmount),
x: $data.orderInfo.coupon
}, $data.orderInfo.coupon ? {} : {}, {
y: common_vendor.t($data.orderInfo.sumAmount),
z: common_vendor.t($data.orderInfo.remark),
A: common_vendor.t($options.formatDate($data.orderInfo.ctdate)),
B: $data.orderInfo.status === $options.ORDER_TYPE.UNPAID
}, $data.orderInfo.status === $options.ORDER_TYPE.UNPAID ? {
x: common_vendor.o((...args) => $options.goPay && $options.goPay(...args))
C: common_vendor.t($options.getValue($data.wayOption, $data.wayForm.payway)),
D: common_vendor.p({
src: "/static/common/right.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
}),
E: common_vendor.o(($event) => {
$data.wayShow = true;
})
} : {}, {
y: $data.orderInfo.status === $options.ORDER_TYPE.COMPLETED
}, $data.orderInfo.status === $options.ORDER_TYPE.COMPLETED ? {} : {}, {
z: $data.orderInfo.status === $options.ORDER_TYPE.NOT_RECEIVE
}, $data.orderInfo.status === $options.ORDER_TYPE.NOT_RECEIVE ? {} : {}, {
A: $data.orderInfo.status === $options.ORDER_TYPE.UNSHIPPED
}, $data.orderInfo.status === $options.ORDER_TYPE.UNSHIPPED ? {} : {}, {
B: $data.orderInfo.status === $options.ORDER_TYPE.COMPLETED
}, $data.orderInfo.status === $options.ORDER_TYPE.COMPLETED ? {} : {}, {
C: $data.orderInfo.status === $options.ORDER_TYPE.AFTER_SALE
}, $data.orderInfo.status === $options.ORDER_TYPE.AFTER_SALE ? {} : {}, {
D: [$options.ORDER_TYPE.COMPLETED].includes($data.orderInfo.status)
}, [$options.ORDER_TYPE.COMPLETED].includes($data.orderInfo.status) ? {} : {}, {
E: [$options.ORDER_TYPE.COMPLETED, $options.ORDER_TYPE.CANCELED].includes($data.orderInfo.status)
}, [$options.ORDER_TYPE.COMPLETED, $options.ORDER_TYPE.CANCELED].includes($data.orderInfo.status) ? {} : {});
F: [$options.ORDER_TYPE.UNPAID, $options.ORDER_TYPE.NOT_RECEIVE].includes($data.orderInfo.status)
}, [$options.ORDER_TYPE.UNPAID, $options.ORDER_TYPE.NOT_RECEIVE].includes($data.orderInfo.status) ? common_vendor.e({
G: $data.orderInfo.status === $options.ORDER_TYPE.UNPAID
}, $data.orderInfo.status === $options.ORDER_TYPE.UNPAID ? {
H: common_vendor.o((...args) => $options.goPay && $options.goPay(...args))
} : {}, {
I: $data.orderInfo.status === $options.ORDER_TYPE.NOT_RECEIVE
}, $data.orderInfo.status === $options.ORDER_TYPE.NOT_RECEIVE ? {
J: common_vendor.o(($event) => $options.confirmReceiptOk($data.orderInfo))
} : {}) : {}, {
K: common_vendor.f($data.wayOption, (item, k0, i0) => {
return common_vendor.e({
a: common_vendor.t(item.name),
b: item.balance
}, item.balance ? {
c: common_vendor.t(item.balance)
} : {}, {
d: "e943673c-12-" + i0 + ",e943673c-11",
e: common_vendor.p({
name: item.type,
activeColor: "#FF7C41"
}),
f: item.type
});
}),
L: common_vendor.o(($event) => $data.wayForm.payway = $event),
M: common_vendor.p({
placement: "column",
modelValue: $data.wayForm.payway
}),
N: common_vendor.o(($event) => {
$data.wayShow = false;
}),
O: common_vendor.o(($event) => $data.wayShow = $event),
P: common_vendor.p({
round: 10,
closeOnClickOverlay: false,
closeable: true,
safeAreaInsetBottom: false,
show: $data.wayShow
}),
Q: common_vendor.sr("uToastRef", "e943673c-13"),
R: "calc(100vh - " + $data.height + ")"
});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-e943673c"]]);
wx.createPage(MiniProgramPage);
@@ -1,6 +1,11 @@
{
"navigationStyle": "custom",
"usingComponents": {
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image"
"up-loading-page": "../../uni_modules/uview-plus/components/u-loading-page/u-loading-page",
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
"up-radio": "../../uni_modules/uview-plus/components/u-radio/u-radio",
"up-radio-group": "../../uni_modules/uview-plus/components/u-radio-group/u-radio-group",
"up-popup": "../../uni_modules/uview-plus/components/u-popup/u-popup",
"up-toast": "../../uni_modules/uview-plus/components/u-toast/u-toast"
}
}
File diff suppressed because one or more lines are too long
@@ -23,7 +23,6 @@
/* 水平间距 */
/* 垂直间距 */
.mine_order_info_warp.data-v-e943673c {
height: calc(100vh - 180rpx);
background-color: #F5F5F5;
position: relative;
overflow-y: auto;
@@ -52,7 +51,7 @@
.order_info_content.data-v-e943673c {
position: absolute;
top: 184rpx;
width: 100%;
width: calc(100% - 40rpx);
padding: 0 20rpx;
}
.order_info_content .content_due.data-v-e943673c {
@@ -86,14 +85,14 @@
background: #FFFFFF;
border-radius: 24rpx;
padding: 20rpx;
width: calc(100% - 80rpx);
width: calc(100% - 40rpx);
margin-top: 66rpx;
}
.order_info_content .steps_warp .address_info_right.data-v-e943673c {
border-left: 1rpx dashed #99999959;
height: 26rpx;
height: 14rpx;
width: 10rpx;
margin: 20rpx;
margin: 10rpx 20rpx;
}
.order_info_content .steps_warp .address_info.data-v-e943673c {
display: flex;
@@ -131,10 +130,11 @@
border-radius: 20rpx;
padding: 30rpx;
margin-top: 30rpx;
width: calc(100% - 96rpx);
width: calc(100% - 60rpx);
}
.order_product_warp .order_product_header.data-v-e943673c {
display: flex;
align-items: center;
}
.order_product_warp .order_product_title.data-v-e943673c {
font-weight: bold;
@@ -145,19 +145,6 @@
.order_data_warp.data-v-e943673c {
margin-bottom: 20rpx;
}
.order_data_warp .data_item.data-v-e943673c {
display: flex;
justify-content: space-between;
line-height: 60rpx;
font-weight: bold;
font-size: 24rpx;
}
.order_data_warp .item_title.data-v-e943673c {
color: #808080;
}
.order_data_warp .item_value.data-v-e943673c {
color: #1A1A1A;
}
.order_data_warp .pay_amount.data-v-e943673c {
color: #FF7C41;
}
@@ -192,4 +179,32 @@
}
.order_but_warp .operate_comm.data-v-e943673c {
height: 34rpx;
}
.content_other_item.data-v-e943673c {
margin-top: 20rpx;
}
.data_item.data-v-e943673c {
display: flex;
justify-content: space-between;
line-height: 60rpx;
font-weight: bold;
font-size: 24rpx;
}
.item_title.data-v-e943673c {
color: #808080;
}
.item_value.data-v-e943673c {
color: #1A1A1A;
display: flex;
}
.order_way_warp.data-v-e943673c {
margin-bottom: 60rpx;
width: calc(100% - 60rpx);
}
.content_info_title.data-v-e943673c {
width: 370rpx;
}
.data_item_yd.data-v-e943673c {
display: flex;
justify-content: left;
}
+84 -155
View File
@@ -1,188 +1,117 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_finance = require("../../api/finance.js");
const utils_enumUtils = require("../../utils/enumUtils.js");
const utils_index = require("../../utils/index.js");
const Header = () => "../../components/header.js";
const _sfc_main = {
components: {},
components: { Header },
data() {
return {
infoList: [
{
id: 1,
name: "余额"
},
{
id: 2,
name: "奖金"
},
{
id: 3,
name: "兑换券"
},
{
id: 4,
name: "HM"
},
{
id: 5,
name: "HMC"
},
{
id: 6,
name: "抽奖"
}
],
selInfo: 6,
orderList: [
{
id: 1,
type: 0,
// 0:消,1:收
name: "购物",
time: "01-01 14:10:10",
amount: 1e3,
typeName: "购物消费"
},
{
id: 2,
type: 1,
// 0:消,1:收
name: "卖出HM-到账",
time: "01-01 14:10:10",
amount: 1e3,
typeName: "收入到账"
},
{
id: 3,
type: 1,
// 0:消,1:收
name: "卖出HM-到账",
time: "01-01 14:10:10",
amount: 1e3,
typeName: "收入到账"
},
{
id: 4,
type: 1,
// 0:消,1:收
name: "卖出HM-到账",
time: "01-01 14:10:10",
amount: 1e3,
typeName: "收入到账"
},
{
id: 5,
type: 1,
// 0:消,1:收
name: "卖出HM-到账",
time: "01-01 14:10:10",
amount: 1e3,
typeName: "收入到账"
}
],
// 其他列表
prizeDrawList: [
{
id: 1,
name: "20元优惠券",
time: "01-01 14:10:10",
isGet: false,
// 未领取
isShowGet: true
},
{
id: 2,
name: "20元优惠券",
time: "01-01 14:10:10",
isGet: true,
// 已领取
isShowGet: true
},
{
id: 3,
name: "20元优惠券",
time: "01-01 14:10:10",
isGet: false,
// 已领取
isShowGet: false
}
]
// 抽奖列表
balanceLoading: false,
balanceList: []
};
},
onLoad() {
this.getAcctBalance();
},
methods: {
selectInfo(item) {
this.selInfo = item.id;
},
// 跳转到奖金
jumpBonus() {
getValue: utils_enumUtils.getValue,
formatDate: utils_index.formatDate,
handleAmount: utils_index.handleAmount,
// 跳转到详情
jumpBonus(item) {
common_vendor.index.navigateTo({
url: "/pages/mine_purse_bonus/mine_purse_bonus"
url: "/pages/mine_purse_log/mine_purse_log?category=" + item.categoty + "&lockId=" + item.lockId + "&curId=" + item.curId
});
},
// 查询余额
async getAcctBalance() {
this.balanceLoading = true;
const resp = await api_finance.getAcctBalance();
let data = [];
if (resp && resp.bizcode === 100) {
data = resp.data || [];
}
this.balanceList = data;
this.balanceLoading = false;
},
// 提现
jumpInfo(row, type) {
common_vendor.index.__f__("log", "at pages/mine_purse/mine_purse.vue:74", "row", row);
if (type === "withdraw") {
common_vendor.index.navigateTo({
url: "/pages/mine_purse_bonus_withdraw/mine_purse_bonus_withdraw?amount=" + row.curAmount + "&category=" + row.categoty
});
} else if (type === "recharge") {
common_vendor.index.navigateTo({
url: "/pages/mine_purse_recharge/mine_purse_recharge?amount=" + row.curAmount + "&category=" + row.categoty
});
} else if (type === "exchange") {
common_vendor.index.navigateTo({
url: "/pages/mine_purse_exchange/mine_purse_exchange?amount=" + row.curAmount + "&category=" + row.categoty
});
} else if (type === "transfer") {
common_vendor.index.__f__("log", "at pages/mine_purse/mine_purse.vue:88", "transfer转出...");
}
}
}
};
if (!Array) {
const _component_Header = common_vendor.resolveComponent("Header");
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
_easycom_up_image2();
(_component_Header + _easycom_up_image2)();
}
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
if (!Math) {
_easycom_up_image();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: common_vendor.o((...args) => $options.jumpBonus && $options.jumpBonus(...args)),
b: common_vendor.f($data.infoList, (item, k0, i0) => {
return common_vendor.e({
a: common_vendor.t(item.name),
b: $data.selInfo === item.id
}, $data.selInfo === item.id ? {} : {}, {
c: common_vendor.n($data.selInfo === item.id ? "info_title_item_warp info_title_item_sel_warp" : "info_title_item_warp"),
d: item.id,
e: common_vendor.o(($event) => $options.selectInfo(item), item.id)
});
return {
a: common_vendor.p({
leftTitle: _ctx.$t("purse.title"),
["left-path-type"]: "switchTab",
["left-path"]: "/pages/mine/mine"
}),
c: $data.selInfo === 6
}, $data.selInfo === 6 ? {
d: common_vendor.f($data.prizeDrawList, (item, k0, i0) => {
b: common_vendor.f($data.balanceList, (item, k0, i0) => {
return common_vendor.e({
a: "00f7ce42-0-" + i0,
a: "00f7ce42-1-" + i0,
b: common_vendor.t(item.name),
c: common_vendor.t(item.time),
d: item.isShowGet
}, item.isShowGet ? {
e: item.isGet
c: "00f7ce42-2-" + i0,
d: common_vendor.o(($event) => $options.jumpBonus(item), item.id),
e: common_vendor.t(item.curAmount || 0),
f: common_vendor.t(item.lockAmount || 0),
g: item.isRecharge || item.isWithdrawal || item.isTransfer || item.isExchange
}, item.isRecharge || item.isWithdrawal || item.isTransfer || item.isExchange ? common_vendor.e({
h: item.isRecharge
}, item.isRecharge ? {
i: common_vendor.o(($event) => $options.jumpInfo(item, "recharge"), item.id)
} : {}, {
f: item.isShowGet
}, item.isShowGet ? {
g: !item.isGet
j: item.isWithdrawal
}, item.isWithdrawal ? {
k: common_vendor.o(($event) => $options.jumpInfo(item, "withdraw"), item.id)
} : {}, {
h: item.id
l: item.isExchange
}, item.isExchange ? {
m: common_vendor.o(($event) => $options.jumpInfo(item, "exchange"), item.id)
} : {}) : {}, {
n: item.id
});
}),
e: common_vendor.p({
src: "/static/mine/purse_sf.png",
width: "40",
height: "40",
c: common_vendor.p({
src: "/static/mine/purse_amount.png",
width: "16",
height: "16",
bgColor: "#f1f6ff00"
}),
d: common_vendor.p({
src: "/static/common/right_b.png",
width: "16",
height: "16",
bgColor: "#f1f6ff00"
})
} : {
f: common_vendor.f($data.orderList, (item, k0, i0) => {
return {
a: "00f7ce42-1-" + i0,
b: common_vendor.p({
src: item.type === 1 ? "/static/mine/purse_sf.png" : "/static/mine/purse_xf.png",
width: "40",
height: "40",
bgColor: "#f1f6ff00"
}),
c: common_vendor.t(item.name),
d: common_vendor.t(item.time),
e: common_vendor.t(item.type === 1 ? "+" : "-"),
f: common_vendor.t(item.amount),
g: common_vendor.t(item.typeName),
h: item.id
};
})
});
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-00f7ce42"]]);
wx.createPage(MiniProgramPage);
@@ -1,9 +1,5 @@
{
"navigationBarTitleText": "我的钱包",
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black",
"enablePullDownRefresh": false,
"navigationStyle": "default",
"navigationStyle": "custom",
"usingComponents": {
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image"
}
@@ -1 +1 @@
<view class="purse_warp data-v-00f7ce42"><view class="purse_collect data-v-00f7ce42"><view class="collect_item collect_item_but data-v-00f7ce42"><view class="item_warp data-v-00f7ce42"><view class="collect_title data-v-00f7ce42">余额(元)</view><view class="collect_value data-v-00f7ce42">100.00</view></view><view class="item_right_warp data-v-00f7ce42"></view><view class="item_warp data-v-00f7ce42" bindtap="{{a}}"><view class="collect_title data-v-00f7ce42">奖金(元)</view><view class="collect_value data-v-00f7ce42">200.21</view></view><view class="item_right_warp data-v-00f7ce42"></view><view class="item_warp data-v-00f7ce42"><view class="collect_title data-v-00f7ce42">兑换券</view><view class="collect_value data-v-00f7ce42">10</view></view></view><view class="collect_item data-v-00f7ce42"><view class="item_warp data-v-00f7ce42"><view class="collect_title data-v-00f7ce42">HM(锁仓)</view><view class="collect_value data-v-00f7ce42">100.00</view></view><view class="item_right_warp data-v-00f7ce42"></view><view class="item_warp data-v-00f7ce42"><view class="collect_title data-v-00f7ce42"> HM(可交易)</view><view class="collect_value data-v-00f7ce42">200.21</view></view><view class="item_right_warp data-v-00f7ce42"></view><view class="item_warp data-v-00f7ce42"><view class="collect_title data-v-00f7ce42">HMC</view><view class="collect_value data-v-00f7ce42">10</view></view></view></view><view class="info_warp data-v-00f7ce42"><view class="info_title_warp data-v-00f7ce42"><view wx:for="{{b}}" wx:for-item="item" wx:key="d" class="{{['data-v-00f7ce42', item.c]}}" bindtap="{{item.e}}"><text class="data-v-00f7ce42">{{item.a}}</text><view wx:if="{{item.b}}" class="info_title_item_sel_but_warp data-v-00f7ce42"></view></view></view><view wx:if="{{c}}" class="prize_draw_warp data-v-00f7ce42"><view wx:for="{{d}}" wx:for-item="item" wx:key="h" class="prize_draw_item data-v-00f7ce42"><view class="prize_draw_left_warp data-v-00f7ce42"><up-image wx:if="{{e}}" class="data-v-00f7ce42" u-i="{{item.a}}" bind:__l="__l" u-p="{{e}}"></up-image><view class="data-v-00f7ce42" style="margin-left:20rpx"><view class="title_ data-v-00f7ce42">{{item.b}}</view><view class="time_ data-v-00f7ce42">{{item.c}}</view></view></view><view wx:if="{{item.d}}" class="prize_draw_right_warp data-v-00f7ce42" hidden="{{!item.e}}">去领取</view><view wx:if="{{item.f}}" class="prize_draw_right_warp yes_ data-v-00f7ce42" hidden="{{!item.g}}">已领取</view></view></view><view wx:else class="info_list_warp data-v-00f7ce42"><view wx:for="{{f}}" wx:for-item="item" wx:key="h" class="purse_info_item data-v-00f7ce42"><view class="purse_info_left data-v-00f7ce42"><up-image wx:if="{{item.b}}" class="data-v-00f7ce42" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image><view class="purse_data_warp data-v-00f7ce42"><view class="purse_info_name data-v-00f7ce42">{{item.c}}</view><view class="purse_info_value data-v-00f7ce42">{{item.d}}</view></view></view><view class="ipurse_nfo_right data-v-00f7ce42"><view class="purse_info_title data-v-00f7ce42">{{item.e}} {{item.f}}</view><view class="purse_info_value data-v-00f7ce42">{{item.g}}</view></view></view></view></view></view>
<view class="purse_warp data-v-00f7ce42"><header wx:if="{{a}}" class="data-v-00f7ce42" u-i="00f7ce42-0" bind:__l="__l" u-p="{{a}}"/><view class="purse_content_warp data-v-00f7ce42"><view wx:for="{{b}}" wx:for-item="item" wx:key="n" class="purse_warp_item data-v-00f7ce42"><view class="purse_item_top data-v-00f7ce42"><view class="amount_warp data-v-00f7ce42"><view class="name_ data-v-00f7ce42" bindtap="{{item.d}}"><view class="data-v-00f7ce42" style="margin-top:10rpx"><up-image wx:if="{{c}}" class="data-v-00f7ce42" u-i="{{item.a}}" bind:__l="__l" u-p="{{c}}"></up-image></view><view class="msg_ data-v-00f7ce42">{{item.b}}</view><view class="data-v-00f7ce42" style="margin-top:10rpx"><up-image wx:if="{{d}}" class="data-v-00f7ce42" u-i="{{item.c}}" bind:__l="__l" u-p="{{d}}"></up-image></view></view><view class="data-v-00f7ce42"><view class="cur_amount data-v-00f7ce42">{{item.e}}</view><view class="lock_amount data-v-00f7ce42">不可用余额:{{item.f}}</view></view></view><view wx:if="{{item.g}}" class="operate_warp data-v-00f7ce42"><view wx:if="{{item.h}}" bindtap="{{item.i}}" class="operate_item operate_item1 data-v-00f7ce42">充值</view><view wx:if="{{item.j}}" bindtap="{{item.k}}" class="operate_item operate_item2 data-v-00f7ce42">提现</view><view wx:if="{{item.l}}" bindtap="{{item.m}}" class="operate_item operate_item2 data-v-00f7ce42">兑换</view></view></view></view></view></view>
File diff suppressed because one or more lines are too long
@@ -52,7 +52,14 @@ const _sfc_main = {
]
};
},
methods: {}
methods: {
// 提现
jumpWithdraw() {
common_vendor.index.navigateTo({
url: "/pages/mine_purse_bonus_withdraw/mine_purse_bonus_withdraw"
});
}
}
};
if (!Array) {
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
@@ -64,7 +71,8 @@ if (!Math) {
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.f($data.contentList, (item, k0, i0) => {
a: common_vendor.o((...args) => $options.jumpWithdraw && $options.jumpWithdraw(...args)),
b: common_vendor.f($data.contentList, (item, k0, i0) => {
return {
a: "f08a8d54-0-" + i0,
b: common_vendor.p({
@@ -1,6 +1,6 @@
{
"navigationBarTitleText": "我的奖金",
"navigationBarBackgroundColor": "#ff7c41",
"navigationBarBackgroundColor": "#03AD27",
"navigationBarTextStyle": "white",
"enablePullDownRefresh": false,
"navigationStyle": "default",
@@ -1 +1 @@
<view class="mine_purse_bonus_warp data-v-f08a8d54"><view class="mine_purse_bonus_header data-v-f08a8d54"><view class="data-v-f08a8d54"><view class="header_title data-v-f08a8d54">可提现总额</view><view class="data-v-f08a8d54"><text class="data-v-f08a8d54" style="font-size:40rpx">¥</text><text class="data-v-f08a8d54" style="font-size:60rpx">585.</text><text class="data-v-f08a8d54" style="font-size:40rpx">84</text></view></view><view class="header_but data-v-f08a8d54">提现</view></view><view class="mine_purse_bonus_content data-v-f08a8d54"><view class="title data-v-f08a8d54">财务明细</view><view class="content_list data-v-f08a8d54"><view wx:for="{{a}}" wx:for-item="item" wx:key="h" class="content_item purse_info_item data-v-f08a8d54"><view class="purse_info_left data-v-f08a8d54"><up-image wx:if="{{item.b}}" class="data-v-f08a8d54" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image><view class="purse_data_warp data-v-f08a8d54"><view class="purse_info_name data-v-f08a8d54">{{item.c}}</view><view class="purse_info_value data-v-f08a8d54">{{item.d}}</view></view></view><view class="purse_info_right data-v-f08a8d54"><view class="purse_info_title data-v-f08a8d54">{{item.e}} {{item.f}}</view><view class="purse_info_value data-v-f08a8d54">{{item.g}}</view></view></view></view></view></view>
<view class="mine_purse_bonus_warp data-v-f08a8d54"><view class="mine_purse_bonus_header data-v-f08a8d54"><view class="data-v-f08a8d54"><view class="header_title data-v-f08a8d54">可提现总额</view><view class="data-v-f08a8d54"><text class="data-v-f08a8d54" style="font-size:40rpx">¥</text><text class="data-v-f08a8d54" style="font-size:60rpx">585.</text><text class="data-v-f08a8d54" style="font-size:40rpx">84</text></view></view><view class="header_but data-v-f08a8d54" bindtap="{{a}}">提现</view></view><view class="mine_purse_bonus_content data-v-f08a8d54"><view class="title data-v-f08a8d54">财务明细</view><view class="content_list data-v-f08a8d54"><view wx:for="{{b}}" wx:for-item="item" wx:key="h" class="content_item purse_info_item data-v-f08a8d54"><view class="purse_info_left data-v-f08a8d54"><up-image wx:if="{{item.b}}" class="data-v-f08a8d54" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image><view class="purse_data_warp data-v-f08a8d54"><view class="purse_info_name data-v-f08a8d54">{{item.c}}</view><view class="purse_info_value data-v-f08a8d54">{{item.d}}</view></view></view><view class="purse_info_right data-v-f08a8d54"><view class="purse_info_title data-v-f08a8d54">{{item.e}} {{item.f}}</view><view class="purse_info_value data-v-f08a8d54">{{item.g}}</view></view></view></view></view></view>
+167 -179
View File
@@ -2,55 +2,34 @@
const common_vendor = require("../../common/vendor.js");
const utils_enumUtils = require("../../utils/enumUtils.js");
const api_cart = require("../../api/cart.js");
const api_payment = require("../../api/payment.js");
const api_order = require("../../api/order.js");
const utils_index = require("../../utils/index.js");
const utils_payUtils = require("../../utils/payUtils.js");
const Address = () => "../../components/address.js";
const Header = () => "../../components/header.js";
const _sfc_main = {
computed: {
PAYMENT_WAY_() {
return utils_enumUtils.PAYMENT_WAY_;
},
PRODUCT_DELIVERY_TIME() {
return utils_enumUtils.PRODUCT_DELIVERY_TIME;
}
},
components: {
Address
},
onLoad(option) {
const ids = option.ids;
if (ids) {
this.ids = ids;
this.getOrder();
}
Address,
Header
},
data() {
return {
ids: 0,
orderInfo: {
// coupon:2,//优惠卷
paymentMethod: null,
// 支付方式
paymentMethod: utils_enumUtils.PAYMENT_WAY.ALIPAY,
// 支付方式,暂时默认用支付宝
total: 4e3,
// 需要支付的总金额
address: {},
// 选中的地址
store: []
},
wayList: [
{
disabled: false,
id: utils_enumUtils.PAYMENT_WAY.WECHAT,
name: "微信支付",
path: "/static/product/way_wx.png"
},
{
disabled: false,
id: utils_enumUtils.PAYMENT_WAY.ALIPAY,
name: "支付宝支付",
path: "/static/product/way_zfb.png"
}
],
wayShow: false,
addressShow: false,
// 收件地址选择
@@ -60,13 +39,44 @@ const _sfc_main = {
// 收件地址数据类型
shopsIndex: 0,
// 收件地址数据类型
selectAddress: {}
selectAddress: {},
// 收件地址选择
wayOption: []
// leftPath:'',
// leftPathType:'',
};
},
onLoad(option) {
const ids = option.ids;
common_vendor.index.__f__("log", "at pages/order_submit/order_submit.vue:202", "ids", ids);
if (ids && ids !== "null") {
this.ids = ids;
this.getOrder();
}
const addressShow = option.addressShow;
if (addressShow && addressShow !== "null") {
this.addressShow = addressShow;
}
},
mounted() {
this.getWayOption();
},
methods: {
getValue: utils_enumUtils.getValue,
assembleAddress: utils_index.assembleAddress,
// 增加收货地址
addAdress() {
const ids = this.ids;
common_vendor.index.navigateTo({
url: "/pages/mine_address_add/mine_address_add?ids=" + ids
});
},
async getWayOption() {
const result = await api_order.getSupportPay();
if (result && result.bizcode === 100) {
this.wayOption = result.data;
}
},
async getOrder() {
const ids = this.ids;
if (!ids || ids === 0) {
@@ -107,26 +117,42 @@ const _sfc_main = {
* @param {Object} addIndex 需要修改店铺的数据节点
* @param {Object} index 需要修改的数据节点
*/
quantityFun(type, index, addIndex, pIndex) {
let currentQuantity = this.orderInfo.shops[index].addrTimes[addIndex].goods[pIndex].num;
async quantityFun(type, index, addIndex, pIndex) {
const data = this.orderInfo.shops[index].addrTimes[addIndex].goods[pIndex];
let currentQuantity = Number(data.num);
let currentTotalPrice = Number(data.totalPrice);
let currentAmount = Number(this.orderInfo.amount);
if (type === "minus") {
if (currentQuantity === 1) {
this.$refs.uToastRef.show({
type: "error",
message: "不能再减拉,不能小于最低购买数量~"
});
x3;
} else {
currentQuantity = currentQuantity - 1;
currentAmount = currentAmount - data.unitPrice;
currentTotalPrice = currentTotalPrice - data.unitPrice;
}
} else if (type === "add") {
currentQuantity = currentQuantity + 1;
currentAmount = currentAmount + data.unitPrice;
currentTotalPrice = currentTotalPrice + data.unitPrice;
}
const params = {
id: data.id,
goodsNum: currentQuantity
};
const result = await api_cart.updateGoodsNum(params);
if (result && result.bizcode === 100) {
this.orderInfo.shops[index].addrTimes[addIndex].goods[pIndex].num = currentQuantity;
this.orderInfo.shops[index].addrTimes[addIndex].goods[pIndex].totalPrice = currentTotalPrice.toFixed(2);
this.orderInfo.amount = currentAmount.toFixed(2);
}
this.orderInfo.shops[index].addrTimes[addIndex].goods[pIndex].num = currentQuantity;
},
// 获取备注
getRemark() {
const orderInfo = this.orderInfo;
common_vendor.index.__f__("log", "at pages/order_submit/order_submit.vue:277", "orderInfo", orderInfo);
const remarkArr = [];
if (orderInfo && Object.keys(orderInfo).length !== 0) {
const remarObj = {};
@@ -144,7 +170,6 @@ const _sfc_main = {
}
remarkArr.push(remarObj);
}
common_vendor.index.__f__("log", "at pages/order_submit/order_submit.vue:295", "remarkArr", remarkArr);
return remarkArr;
},
/**
@@ -152,6 +177,13 @@ const _sfc_main = {
*/
async goPay() {
const orderInfo = this.orderInfo;
if (!orderInfo.address || Object.keys(orderInfo.address).length === 0) {
this.$refs.uToastRef.show({
type: "error",
message: "请选择收货地址"
});
return;
}
const way = orderInfo.paymentMethod;
if (!way || way === 0) {
this.$refs.uToastRef.show({
@@ -170,104 +202,48 @@ const _sfc_main = {
remark: JSON.stringify(this.getRemark())
//备注信息'[{"sid":"店铺ID","rmk":"备注内容"},{"sid":"店铺ID","rmk":"备注内容"}]'
};
common_vendor.index.__f__("log", "at pages/order_submit/order_submit.vue:317", "params", params);
common_vendor.index.__f__("log", "at pages/order_submit/order_submit.vue:366", "params", params);
const resp = await api_cart.settle(params);
if (resp && resp.bizcode === 100) {
const item = resp.data;
if (params.payway === utils_enumUtils.PAYMENT_WAY.WECHAT) {
if (item.wechat && Object.keys(item.wechat).length !== 0) {
this.appWxpay(item.wechat);
} else {
this.$refs.uToastRef.show({
type: "error",
message: "订单支付失败"
});
}
} else if (params.payway === utils_enumUtils.PAYMENT_WAY.ALIPAY) {
if (item.alipay && Object.keys(item.alipay).length !== 0) {
this.zfbPay(item.alipay);
} else {
this.$refs.uToastRef.show({
type: "error",
message: "订单支付失败"
});
}
if (item.status === 1) {
utils_payUtils.jumpWayOk();
return;
}
if (item.wechat && Object.keys(item.wechat).length !== 0) {
this.appWxpay(item.wechat, item.orderId, item.orderNum);
} else if (item.alipay && Object.keys(item.alipay).length !== 0 && item.alipay) {
this.zfbPay(item.alipay, item.orderId, item.orderNum);
} else {
this.$refs.uToastRef.show({
type: "error",
message: "订单支付失败"
});
setTimeout(() => {
utils_payUtils.jumpWayError();
}, 2e3);
}
} else {
this.getOrder();
}
},
// app 微信支付
appWxpay(item) {
const newThis = this;
const orderInfo = {
"appid": item.appId,
// 微信开放平台 - 应用 - AppId,注意和微信小程序、公众号 AppId 可能不一致
"noncestr": item.nonceStr,
// 随机字符串
"package": "Sign=WXPay",
// 固定值
"partnerid": item.partnerId,
// 微信支付商户号
"prepayid": item.prepayId,
// 统一下单订单号
"timestamp": item.timeStamp,
// 时间戳(单位:秒)
"sign": item.sign
// 签名,这里用的 MD5/RSA 签名
};
common_vendor.index.requestPayment({
provider: "wxpay",
orderInfo,
success: function(res) {
common_vendor.index.__f__("log", "at pages/order_submit/order_submit.vue:359", "success:" + res);
newThis.payFeedbackFun(item.orderId, res.orderNum, 1);
newThis.jumpWayOk();
},
fail: function(err) {
common_vendor.index.__f__("log", "at pages/order_submit/order_submit.vue:364", "fail:", err);
this.$refs.uToastRef.show({
type: "error",
message: "支付失败"
});
}
});
async appWxpay(alipay, orderId, orderNum) {
try {
const result = await utils_payUtils.appWxpayFun(alipay, orderId, orderNum);
common_vendor.index.__f__("log", "at pages/order_submit/order_submit.vue:396", "支付成功", result);
} catch (error) {
common_vendor.index.__f__("error", "at pages/order_submit/order_submit.vue:399", "支付失败", error);
}
},
// 支付宝支付
zfbPay(item) {
const that = this;
common_vendor.index.requestPayment({
provider: "alipay",
orderInfo: item.orderStr,
success(res) {
common_vendor.index.__f__("log", "at pages/order_submit/order_submit.vue:379", "res", res);
that.payFeedbackFun(item.orderId, item.orderNum, 1);
that.jumpWayOk();
},
//调用失败的回调
fail(err) {
common_vendor.index.__f__("log", "at pages/order_submit/order_submit.vue:385", "fail:", err);
this.$refs.uToastRef.show({
type: "error",
message: "支付失败"
});
}
});
},
// 跳转到支付成功页面
jumpWayOk() {
common_vendor.index.navigateTo({
url: "/pages/order_submit_ok/order_submit_ok"
});
},
// 支付结果回调
async payFeedbackFun(orderId, orderNum, status) {
const params = {
orderId,
orderNum,
status
};
common_vendor.index.__f__("log", "at pages/order_submit/order_submit.vue:406", "params", params);
const response = await api_payment.feedback(params);
common_vendor.index.__f__("log", "at pages/order_submit/order_submit.vue:408", "反馈结果", response);
async zfbPay(alipay, orderId, orderNum) {
try {
const result = await utils_payUtils.zfbPayFun(alipay, orderId, orderNum);
common_vendor.index.__f__("log", "at pages/order_submit/order_submit.vue:407", "支付成功", result);
} catch (error) {
common_vendor.index.__f__("error", "at pages/order_submit/order_submit.vue:410", "支付失败", error);
}
},
// 地址选中
getAddressValueFunc(item) {
@@ -293,10 +269,17 @@ const _sfc_main = {
this.addressType = type;
this.addressIndex = addIndex;
this.shopsIndex = index;
},
jumpProductInfo(item) {
common_vendor.index.__f__("log", "at pages/order_submit/order_submit.vue:440", "item", item);
common_vendor.index.navigateTo({
url: "/pages/productInfo/productInfo?id=" + item.goodsId
});
}
}
};
if (!Array) {
const _component_Header = common_vendor.resolveComponent("Header");
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
const _easycom_up_radio2 = common_vendor.resolveComponent("up-radio");
@@ -304,7 +287,7 @@ if (!Array) {
const _easycom_up_popup2 = common_vendor.resolveComponent("up-popup");
const _component_Address = common_vendor.resolveComponent("Address");
const _easycom_up_toast2 = common_vendor.resolveComponent("up-toast");
(_easycom_up_image2 + _easycom_up_input2 + _easycom_up_radio2 + _easycom_up_radio_group2 + _easycom_up_popup2 + _component_Address + _easycom_up_toast2)();
(_component_Header + _easycom_up_image2 + _easycom_up_input2 + _easycom_up_radio2 + _easycom_up_radio_group2 + _easycom_up_popup2 + _component_Address + _easycom_up_toast2)();
}
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
@@ -317,38 +300,44 @@ if (!Math) {
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: $data.orderInfo.address && Object.keys($data.orderInfo.address).length !== 0
a: common_vendor.p({
leftTitle: _ctx.$t("order.submit.title"),
leftPathType: "switchTab",
leftPath: "/pages/shopping_cart/shopping_cart"
}),
b: $data.orderInfo.address && Object.keys($data.orderInfo.address).length !== 0
}, $data.orderInfo.address && Object.keys($data.orderInfo.address).length !== 0 ? common_vendor.e({
b: $data.orderInfo.address.isDefault
c: $data.orderInfo.address.isDefault
}, $data.orderInfo.address.isDefault ? {} : {}, {
c: common_vendor.t($options.assembleAddress($data.orderInfo.address).names),
d: common_vendor.t($data.orderInfo.address.address),
e: common_vendor.p({
d: common_vendor.t($options.assembleAddress($data.orderInfo.address).names),
e: common_vendor.t($data.orderInfo.address.address),
f: common_vendor.p({
src: "/static/common/right.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
}),
f: common_vendor.t($data.orderInfo.address.name),
g: common_vendor.t($data.orderInfo.address.phone),
h: common_vendor.o(($event) => $options.checkAddressShow(true, "data"))
g: common_vendor.t($data.orderInfo.address.name),
h: common_vendor.t($data.orderInfo.address.phone),
i: common_vendor.o(($event) => $options.checkAddressShow(true, "data"))
}) : {
i: common_vendor.p({
j: common_vendor.p({
src: "/static/common/right.png",
width: "14",
height: "14",
bgColor: "#f1f6ff00"
}),
j: common_vendor.o(($event) => $options.checkAddressShow(true, "data"))
k: common_vendor.o(($event) => $options.checkAddressShow(true, "data"))
}, {
k: common_vendor.f($data.orderInfo.shops, (item, index, i0) => {
l: common_vendor.f($data.orderInfo.shops, (item, index, i0) => {
return {
a: "dc7219ba-2-" + i0,
a: "dc7219ba-3-" + i0,
b: common_vendor.p({
src: item.logo,
width: "22",
height: "22",
bgColor: "#f1f6ff00"
bgColor: "#f1f6ff00",
shape: "circle"
}),
c: common_vendor.t(item.name),
d: common_vendor.f(item.addrTimes, (addItem, addIndex, i1) => {
@@ -357,7 +346,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
}, addItem.address ? {
b: common_vendor.t(addItem.address.name),
c: common_vendor.t(addItem.address.address),
d: "dc7219ba-3-" + i0 + "-" + i1,
d: "dc7219ba-4-" + i0 + "-" + i1,
e: common_vendor.p({
src: "/static/common/right.png",
width: "16",
@@ -368,24 +357,26 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
} : {}, {
g: common_vendor.f(addItem.goods, (pItem, pIndex, i2) => {
return {
a: "dc7219ba-4-" + i0 + "-" + i1 + "-" + i2,
b: common_vendor.p({
a: common_vendor.o(($event) => $options.jumpProductInfo(pItem), pItem.id),
b: "dc7219ba-5-" + i0 + "-" + i1 + "-" + i2,
c: common_vendor.p({
src: pItem.img,
width: "80",
height: "80",
bgColor: "#f1f6ff00"
}),
c: common_vendor.t(pItem.title),
d: common_vendor.t(pItem.specs),
e: common_vendor.t(pItem.totalPrice),
f: common_vendor.t(pItem.unitPrice),
g: common_vendor.o(($event) => $options.quantityFun("minus", index, addIndex, pIndex), pItem.id),
h: common_vendor.t(pItem.num),
i: common_vendor.o(($event) => $options.quantityFun("add", index, addIndex, pIndex), pItem.id),
j: pItem.id
d: common_vendor.t(pItem.title),
e: common_vendor.t(pItem.specs),
f: common_vendor.o(($event) => $options.jumpProductInfo(pItem), pItem.id),
g: common_vendor.t(pItem.totalPrice),
h: common_vendor.t(pItem.unitPrice),
i: common_vendor.o(($event) => $options.quantityFun("minus", index, addIndex, pIndex), pItem.id),
j: common_vendor.t(pItem.num),
k: common_vendor.o(($event) => $options.quantityFun("add", index, addIndex, pIndex), pItem.id),
l: pItem.id
};
}),
h: "dc7219ba-5-" + i0 + "-" + i1,
h: "dc7219ba-6-" + i0 + "-" + i1,
i: common_vendor.o(($event) => addItem.remark = $event, addIndex),
j: common_vendor.p({
placeholder: "建议留言前先与商家沟通确认",
@@ -403,65 +394,62 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
e: item.id
};
}),
l: common_vendor.t($options.getValue($options.PAYMENT_WAY_, $data.orderInfo.paymentMethod)),
m: common_vendor.p({
m: common_vendor.t($options.getValue($data.wayOption, $data.orderInfo.paymentMethod)),
n: common_vendor.p({
src: "/static/common/right.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
}),
n: common_vendor.o(($event) => {
o: common_vendor.o(($event) => {
$data.wayShow = true;
}),
o: common_vendor.t($data.orderInfo.amount),
p: common_vendor.o((...args) => $options.goPay && $options.goPay(...args)),
q: common_vendor.f($data.wayList, (item, k0, i0) => {
return {
a: "dc7219ba-9-" + i0 + ",dc7219ba-8",
b: common_vendor.p({
src: item.path,
width: "20",
height: "20",
bgColor: "#f1f6ff00"
}),
c: common_vendor.t(item.name),
d: "dc7219ba-10-" + i0 + ",dc7219ba-8",
p: common_vendor.t($data.orderInfo.amount),
q: common_vendor.o((...args) => $options.goPay && $options.goPay(...args)),
r: common_vendor.f($data.wayOption, (item, k0, i0) => {
return common_vendor.e({
a: common_vendor.t(item.name),
b: item.balance
}, item.balance ? {
c: common_vendor.t(item.balance)
} : {}, {
d: "dc7219ba-10-" + i0 + ",dc7219ba-9",
e: common_vendor.p({
name: item.id,
disabled: item.disabled,
name: item.type,
activeColor: "#FF7C41"
}),
f: item.id
};
});
}),
r: common_vendor.o(($event) => $data.orderInfo.paymentMethod = $event),
s: common_vendor.p({
s: common_vendor.o(($event) => $data.orderInfo.paymentMethod = $event),
t: common_vendor.p({
placement: "column",
modelValue: $data.orderInfo.paymentMethod
}),
t: common_vendor.o(($event) => {
v: common_vendor.o(($event) => {
$data.wayShow = false;
}),
v: common_vendor.o(($event) => $data.wayShow = $event),
w: common_vendor.p({
w: common_vendor.o(($event) => $data.wayShow = $event),
x: common_vendor.p({
round: 10,
closeOnClickOverlay: false,
closeable: true,
safeAreaInsetBottom: false,
show: $data.wayShow
}),
x: common_vendor.o($options.getAddressValueFunc),
y: common_vendor.o((...args) => $options.addressOk && $options.addressOk(...args)),
z: common_vendor.o(($event) => $options.checkAddressShow(false, null, 0, 0)),
A: common_vendor.o(($event) => $data.addressShow = $event),
B: common_vendor.p({
y: common_vendor.o((...args) => $options.addAdress && $options.addAdress(...args)),
z: common_vendor.o($options.getAddressValueFunc),
A: common_vendor.o((...args) => $options.addressOk && $options.addressOk(...args)),
B: common_vendor.o(($event) => $options.checkAddressShow(false, null, 0, 0)),
C: common_vendor.o(($event) => $data.addressShow = $event),
D: common_vendor.p({
round: 10,
closeOnClickOverlay: false,
closeable: true,
safeAreaInsetBottom: false,
show: $data.addressShow
}),
C: common_vendor.sr("uToastRef", "dc7219ba-13")
E: common_vendor.sr("uToastRef", "dc7219ba-13")
});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-dc7219ba"]]);
@@ -1,11 +1,8 @@
{
"navigationBarTitleText": "提交订单",
"navigationBarBackgroundColor": "#F5F5F5",
"navigationBarTextStyle": "black",
"enablePullDownRefresh": false,
"navigationStyle": "default",
"navigationStyle": "custom",
"usingComponents": {
"address": "../../components/address",
"header": "../../components/header",
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
"up-radio": "../../uni_modules/uview-plus/components/u-radio/u-radio",
File diff suppressed because one or more lines are too long
@@ -119,13 +119,15 @@
}
.order_product_warp .order_item_content.data-v-dc7219ba {
display: flex;
margin-top: 20rpx;
}
.order_product_warp .order_item_content .content_info_right.data-v-dc7219ba {
margin-left: 20rpx;
display: grid;
width: calc(100% - 160rpx);
}
.order_product_warp .order_item_content .content_info_title.data-v-dc7219ba {
width: 266px;
width: 460rpx;
}
.order_product_warp .order_item_content .content_info_tag.data-v-dc7219ba {
font-size: 20rpx;
@@ -174,21 +176,6 @@
color: #FF7C41;
padding: 0rpx 6rpx;
}
.order_way_warp.data-v-dc7219ba {
display: flex;
justify-content: space-between;
align-items: center;
background: #FFFFFF;
border-radius: 24rpx;
margin-top: 30rpx;
padding: 30rpx;
font-weight: 500;
font-size: 26rpx;
color: #222222;
}
.order_way_warp .order_way_right.data-v-dc7219ba {
display: flex;
}
.order_pay_but.data-v-dc7219ba {
position: fixed;
bottom: 0;
@@ -211,51 +198,4 @@
font-weight: bold;
font-size: 36rpx;
color: #FF7C41;
}
.way_popup_warp.data-v-dc7219ba {
padding: 30rpx;
min-height: 800rpx;
width: calc(100% - 60rpx);
}
.way_popup_warp .way_popup_title.data-v-dc7219ba {
text-align: center;
margin-bottom: 60rpx;
}
.way_popup_warp .way_item.data-v-dc7219ba {
display: flex;
justify-content: space-between;
line-height: 82rpx;
}
.way_popup_warp .way_item .way_item_.data-v-dc7219ba {
display: flex;
align-items: center;
}
.way_popup_warp .way_item .way_item_val.data-v-dc7219ba {
font-weight: bold;
font-size: 30rpx;
color: #222222;
margin-left: 20rpx;
}
.popup_but.data-v-dc7219ba {
position: fixed;
bottom: 64rpx;
background: #FF7C41;
border-radius: 16rpx;
color: #FFFFFF;
text-align: center;
padding: 20rpx 0;
width: calc(100% - 60rpx);
}
.address_popup_warp.data-v-dc7219ba {
padding: 30rpx;
height: 1200rpx;
overflow-y: hidden;
}
.address_popup_warp .address_popup_title.data-v-dc7219ba {
text-align: center;
margin-bottom: 20rpx;
}
.address_popup_warp .address_popup_content.data-v-dc7219ba {
height: calc(100% - 180rpx);
overflow-y: auto;
}
@@ -1,6 +1,8 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const Header = () => "../../components/header.js";
const _sfc_main = {
components: { Header },
data() {
return {};
},
@@ -13,8 +15,9 @@ const _sfc_main = {
}
};
if (!Array) {
const _component_Header = common_vendor.resolveComponent("Header");
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
_easycom_up_image2();
(_component_Header + _easycom_up_image2)();
}
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
if (!Math) {
@@ -23,12 +26,17 @@ if (!Math) {
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.p({
leftTitle: "",
["left-path-type"]: "switchTab",
["left-path"]: "/pages/mine/mine"
}),
b: common_vendor.p({
src: "/static/product/ok.png",
width: "120",
height: "120",
bgColor: "#f1f6ff00"
}),
b: common_vendor.o((...args) => $options.jumpHome && $options.jumpHome(...args))
c: common_vendor.o((...args) => $options.jumpHome && $options.jumpHome(...args))
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-4af61460"]]);
@@ -1,10 +1,7 @@
{
"navigationBarTitleText": "",
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black",
"enablePullDownRefresh": false,
"navigationStyle": "default",
"navigationStyle": "custom",
"usingComponents": {
"header": "../../components/header",
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image"
}
}
@@ -1 +1 @@
<view class="order_sumbit_ok_warp data-v-4af61460"><view class="ok_img data-v-4af61460"><up-image wx:if="{{a}}" class="data-v-4af61460" u-i="4af61460-0" bind:__l="__l" u-p="{{a}}"></up-image><view class="ok_img_msg data-v-4af61460">支付成功</view></view><view class="ok_but data-v-4af61460" bindtap="{{b}}">确认</view></view>
<view class="order_sumbit_ok_warp data-v-4af61460"><header wx:if="{{a}}" class="data-v-4af61460" u-i="4af61460-0" bind:__l="__l" u-p="{{a}}"/><view class="order_sumbit_ok_content_warp data-v-4af61460"><view class="ok_img data-v-4af61460"><up-image wx:if="{{b}}" class="data-v-4af61460" u-i="4af61460-1" bind:__l="__l" u-p="{{b}}"></up-image><view class="ok_img_msg data-v-4af61460">支付成功</view></view><view class="ok_but data-v-4af61460" bindtap="{{c}}">确认</view></view></view>
@@ -25,6 +25,8 @@
.order_sumbit_ok_warp.data-v-4af61460 {
height: calc(100vh - 80rpx);
text-align: center;
}
.order_sumbit_ok_warp .order_sumbit_ok_content_warp.data-v-4af61460 {
padding: 40rpx;
}
.order_sumbit_ok_warp .ok_img.data-v-4af61460 {
+11 -5
View File
@@ -84,17 +84,23 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
height: "140"
}),
f: common_vendor.p({
src: "/static/product/title_bg.png",
width: "100%",
height: "20",
src: "/static/product/hw_l.png",
width: "60",
height: "2",
bgColor: "#f1f6ff00"
}),
g: common_vendor.p({
src: "/static/product/hw_r.png",
width: "60",
height: "2",
bgColor: "#f1f6ff00"
}),
h: common_vendor.p({
loading: $data.productListLoading
}),
h: common_vendor.f($data.productList, (item, index, i0) => {
i: common_vendor.f($data.productList, (item, index, i0) => {
return {
a: "7539d408-5-" + i0,
a: "7539d408-6-" + i0,
b: common_vendor.p({
src: item.url,
width: "100",
@@ -1 +1 @@
<view class="preference_warp data-v-7539d408"><view class="header_comm data-v-7539d408"><up-image wx:if="{{b}}" class="data-v-7539d408" bindclick="{{a}}" u-i="7539d408-0" bind:__l="__l" u-p="{{b}}"></up-image><view class="data-v-7539d408">好物优选专区</view><up-image wx:if="{{d}}" class="data-v-7539d408" bindclick="{{c}}" u-i="7539d408-1" bind:__l="__l" u-p="{{d}}"></up-image></view><view class="preference_content_warp data-v-7539d408"><up-swiper wx:if="{{e}}" class="data-v-7539d408" u-i="7539d408-2" bind:__l="__l" u-p="{{e}}"></up-swiper><view class="preference_title data-v-7539d408"><up-image wx:if="{{f}}" class="data-v-7539d408" u-i="7539d408-3" bind:__l="__l" u-p="{{f}}"></up-image><view class="msg data-v-7539d408">好物优选</view></view><view class="preference_product data-v-7539d408"><up-loading-page wx:if="{{g}}" class="data-v-7539d408" u-i="7539d408-4" bind:__l="__l" u-p="{{g}}"></up-loading-page><view wx:for="{{h}}" wx:for-item="item" wx:key="g" class="product_item data-v-7539d408" bindtap="{{item.h}}"><view class="product_item_left data-v-7539d408"><up-image wx:if="{{item.b}}" class="data-v-7539d408" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image><view class="product_item_left_bz product_item_left_bz_img data-v-7539d408"><view class="data-v-7539d408">爆款专区</view></view></view><view class="product_item_right data-v-7539d408"><view class="title_warp data-v-7539d408">{{item.c}}</view><view class="price_warp data-v-7539d408"><view class="price_o_warp data-v-7539d408"><view class="price_o_title_warp data-v-7539d408">原价</view><view class="price_o_value_warp data-v-7539d408"><text class="data-v-7539d408">¥</text><text class="data-v-7539d408">{{item.d}}</text></view></view><view class="price_zq_warp data-v-7539d408"><view class="price_lj_warp data-v-7539d408">专区立省{{item.e}}元</view><view class="price_ds_warp data-v-7539d408">到手¥<text class="data-v-7539d408" style="font-size:31rpx">{{item.f}}</text></view></view></view></view></view></view></view></view>
<view class="preference_warp data-v-7539d408"><view class="header_comm data-v-7539d408"><up-image wx:if="{{b}}" class="data-v-7539d408" bindclick="{{a}}" u-i="7539d408-0" bind:__l="__l" u-p="{{b}}"></up-image><view class="data-v-7539d408">德商汇优选专区</view><up-image wx:if="{{d}}" class="data-v-7539d408" bindclick="{{c}}" u-i="7539d408-1" bind:__l="__l" u-p="{{d}}"></up-image></view><view class="preference_content_warp data-v-7539d408"><up-swiper wx:if="{{e}}" class="data-v-7539d408" u-i="7539d408-2" bind:__l="__l" u-p="{{e}}"></up-swiper><view class="preference_title data-v-7539d408"><up-image wx:if="{{f}}" class="data-v-7539d408" u-i="7539d408-3" bind:__l="__l" u-p="{{f}}"></up-image><view class="msg data-v-7539d408">德商汇优选</view><up-image wx:if="{{g}}" class="data-v-7539d408" u-i="7539d408-4" bind:__l="__l" u-p="{{g}}"></up-image></view><view class="preference_product data-v-7539d408"><up-loading-page wx:if="{{h}}" class="data-v-7539d408" u-i="7539d408-5" bind:__l="__l" u-p="{{h}}"></up-loading-page><view wx:for="{{i}}" wx:for-item="item" wx:key="g" class="product_item data-v-7539d408" bindtap="{{item.h}}"><view class="product_item_left data-v-7539d408"><up-image wx:if="{{item.b}}" class="data-v-7539d408" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image><view class="product_item_left_bz product_item_left_bz_img data-v-7539d408"><view class="data-v-7539d408">爆款专区</view></view></view><view class="product_item_right data-v-7539d408"><view class="title_warp data-v-7539d408">{{item.c}}</view><view class="price_warp data-v-7539d408"><view class="price_o_warp data-v-7539d408"><view class="price_o_title_warp data-v-7539d408">原价</view><view class="price_o_value_warp data-v-7539d408"><text class="data-v-7539d408">¥</text><text class="data-v-7539d408">{{item.d}}</text></view></view><view class="price_zq_warp data-v-7539d408"><view class="price_lj_warp data-v-7539d408">专区立省{{item.e}}元</view><view class="price_ds_warp data-v-7539d408">到手¥<text class="data-v-7539d408" style="font-size:31rpx">{{item.f}}</text></view></view></view></view></view></view></view></view>
File diff suppressed because one or more lines are too long
+74 -68
View File
@@ -12,7 +12,7 @@ const _sfc_main = {
return {
id: 0,
swiperList: [],
currentNum: 1,
currentNum: 0,
specificationShow: false,
specificationShowType: "",
// 弹框类型
@@ -164,15 +164,8 @@ const _sfc_main = {
}
this.orderInfo.quantity = currentQuantity;
},
// 立即购买,确定订单页面
byFun() {
this.addCart();
common_vendor.index.navigateTo({
url: "/pages/order_submit/order_submit"
});
},
// 加入购入车
async addCart() {
async addCart(isBy = false) {
const selectTempl = this.selectSpecificationTempl;
if (!selectTempl || Object.keys(selectTempl).length === 0) {
common_vendor.index.showToast({
@@ -193,17 +186,26 @@ const _sfc_main = {
};
const resp = await api_product.addGoods(params);
if (resp && resp.bizcode === 100) {
common_vendor.index.showToast({
title: "成功加入购物车",
icon: "success",
// 可选 success/loading/none
duration: 2e3
// 持续时长,单位ms
});
if (isBy) {
common_vendor.index.navigateTo({
url: "/pages/order_submit/order_submit?ids=" + resp.data
});
} else {
common_vendor.index.showToast({
title: "成功加入购物车",
icon: "success",
// 可选 success/loading/none
duration: 2e3
// 持续时长,单位ms
});
}
setTimeout(() => {
this.checkSpecification(false, null);
}, 2e3);
}
},
// 跳转到分享页面
jumpShare() {
}
}
};
@@ -223,108 +225,111 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: common_vendor.t($data.currentNum + 1),
b: common_vendor.t($data.swiperList.length),
c: common_vendor.p({
c: common_vendor.o((e) => $data.currentNum = e.current),
d: common_vendor.p({
list: $data.swiperList,
height: "280"
}),
d: common_vendor.o($options.jumpLeft),
e: common_vendor.p({
e: common_vendor.o($options.jumpLeft),
f: common_vendor.p({
src: "/static/common/left_b_st.png",
width: "30",
height: "30",
bgColor: "#f1f6ff00"
}),
f: common_vendor.o(_ctx.jumpShare),
g: common_vendor.p({
g: common_vendor.o($options.jumpShare),
h: common_vendor.p({
src: "/static/common/share_st.png",
width: "30",
height: "30",
bgColor: "#f1f6ff00"
}),
h: $data.orderInfo.maxPrice && $data.orderInfo.maxPrice !== 0
}, $data.orderInfo.maxPrice && $data.orderInfo.maxPrice !== 0 ? {
i: common_vendor.t($data.orderInfo.minPrice),
j: common_vendor.t($data.orderInfo.maxPrice)
i: $data.orderInfo.minPrice && $data.orderInfo.maxPrice
}, $data.orderInfo.minPrice && $data.orderInfo.maxPrice ? {
j: common_vendor.t($data.orderInfo.minPrice),
k: common_vendor.t($data.orderInfo.maxPrice)
} : {
k: common_vendor.t($data.orderInfo.minPrice)
l: common_vendor.t($data.orderInfo.minPrice)
}, {
l: common_vendor.t($data.orderInfo.adPrice),
m: common_vendor.t($data.orderInfo.name),
n: common_vendor.t($data.selectSpecificationTempl.combTypes || "暂未选择规格"),
o: common_vendor.p({
m: common_vendor.t($data.orderInfo.adPrice),
n: common_vendor.t($data.orderInfo.name),
o: common_vendor.t($data.selectSpecificationTempl.combTypes || "暂未选择规格"),
p: common_vendor.p({
src: "/static/common/right.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
}),
p: common_vendor.o(($event) => $options.checkSpecification(true)),
q: common_vendor.p({
q: common_vendor.o(($event) => $options.checkSpecification(true)),
r: common_vendor.p({
src: "/static/common/address2.png",
width: "10",
height: "10",
bgColor: "#f1f6ff00"
}),
r: common_vendor.t($options.getValue($options.PRODUCT_DELIVERY_TIME, $data.orderInfo.deliveryTime)),
s: common_vendor.p({
s: common_vendor.t($options.getValue($options.PRODUCT_DELIVERY_TIME, $data.orderInfo.deliveryTime)),
t: common_vendor.p({
src: "/static/product/product_b.png",
width: "10",
height: "12",
bgColor: "#f1f6ff00"
}),
t: common_vendor.p({
v: common_vendor.p({
src: "/static/product/product_js.png",
width: "10",
height: "10",
bgColor: "#f1f6ff00"
}),
v: $data.orderInfo.detailInfo,
w: common_vendor.o(($event) => $options.jumpOther("home")),
x: common_vendor.p({
w: $data.orderInfo.detailInfo,
x: common_vendor.o(($event) => $options.jumpOther("home")),
y: common_vendor.p({
src: "/static/product/home.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
}),
y: common_vendor.o(($event) => $options.jumpOther("share")),
z: common_vendor.p({
z: common_vendor.o(($event) => $options.jumpOther("share")),
A: common_vendor.p({
src: "/static/product/kefu.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
}),
A: common_vendor.o(($event) => $options.jumpOther("cart")),
B: common_vendor.p({
B: common_vendor.o(($event) => $options.jumpOther("cart")),
C: common_vendor.p({
src: "/static/product/cart.png",
width: "24",
height: "20",
bgColor: "#f1f6ff00"
}),
C: common_vendor.o(($event) => $options.checkSpecification(true, "addCart")),
D: common_vendor.o(($event) => $options.checkSpecification(true, "buy")),
E: common_vendor.p({
D: common_vendor.o(($event) => $options.checkSpecification(true, "addCart")),
E: common_vendor.o(($event) => $options.checkSpecification(true, "buy")),
F: common_vendor.p({
src: $data.orderInfo.mainGraph,
width: "100",
height: "100",
bgColor: "#f1f6ff00"
}),
F: $data.selectSpecificationTempl && Object.keys($data.selectSpecificationTempl).length !== 0
G: $data.selectSpecificationTempl && Object.keys($data.selectSpecificationTempl).length !== 0
}, $data.selectSpecificationTempl && Object.keys($data.selectSpecificationTempl).length !== 0 ? {
G: common_vendor.t($data.selectSpecificationTempl.price)
} : {
H: common_vendor.t($data.orderInfo.minPrice),
I: common_vendor.t($data.orderInfo.maxPrice)
}, {
J: $data.orderInfo.couponPrice && $data.orderInfo.couponPrice !== 0
H: common_vendor.t($data.selectSpecificationTempl.price)
} : common_vendor.e({
I: common_vendor.t($data.orderInfo.minPrice),
J: $data.orderInfo.maxPrice
}, $data.orderInfo.maxPrice ? {
K: common_vendor.t($data.orderInfo.maxPrice)
} : {}), {
L: $data.orderInfo.couponPrice && $data.orderInfo.couponPrice !== 0
}, $data.orderInfo.couponPrice && $data.orderInfo.couponPrice !== 0 ? {
K: common_vendor.t($data.orderInfo.couponPrice)
M: common_vendor.t($data.orderInfo.couponPrice)
} : {}, {
L: common_vendor.t($data.orderInfo.adPrice),
M: $data.orderInfo.couponPrice && $data.orderInfo.couponPrice !== 0
N: common_vendor.t($data.orderInfo.adPrice),
O: $data.orderInfo.couponPrice && $data.orderInfo.couponPrice !== 0
}, $data.orderInfo.couponPrice && $data.orderInfo.couponPrice !== 0 ? {
N: common_vendor.t($data.orderInfo.couponPrice)
P: common_vendor.t($data.orderInfo.couponPrice)
} : {}, {
O: common_vendor.t($data.orderInfo.inventory || 0),
P: common_vendor.f($data.specificationList, (item, index, i0) => {
Q: common_vendor.t($data.orderInfo.inventory || 0),
R: common_vendor.f($data.specificationList, (item, index, i0) => {
return {
a: common_vendor.t(item.type),
b: common_vendor.f(item.items, (oItem, oIndex, i1) => {
@@ -338,20 +343,21 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
c: item.id
};
}),
Q: common_vendor.o(($event) => $options.quantityFun("minus")),
R: common_vendor.t($data.orderInfo.quantity),
S: common_vendor.o(($event) => $options.quantityFun("add")),
T: $data.specificationShowType === "buy"
S: common_vendor.o(($event) => $options.quantityFun("minus")),
T: common_vendor.t($data.orderInfo.quantity),
U: common_vendor.o(($event) => $options.quantityFun("add")),
V: $data.specificationShowType === "buy"
}, $data.specificationShowType === "buy" ? {
U: common_vendor.o((...args) => $options.byFun && $options.byFun(...args))
W: common_vendor.o(($event) => $options.addCart(true))
} : $data.specificationShowType === "addCart" ? {
W: common_vendor.o((...args) => $options.addCart && $options.addCart(...args))
Y: common_vendor.o(($event) => $options.addCart(false))
} : {
X: common_vendor.o((...args) => $options.addCart && $options.addCart(...args)),
Y: common_vendor.o((...args) => $options.byFun && $options.byFun(...args))
Z: common_vendor.o(($event) => $options.addCart(false)),
aa: common_vendor.o(($event) => $options.addCart(true))
}, {
V: $data.specificationShowType === "addCart",
Z: common_vendor.p({
X: $data.specificationShowType === "addCart",
ab: common_vendor.o(($event) => $data.specificationShow = false),
ac: common_vendor.p({
show: $data.specificationShow,
round: 10,
closeOnClickOverlay: false,
File diff suppressed because one or more lines are too long
@@ -323,6 +323,9 @@
color: #FFFFFF;
border-radius: 16rpx;
}
.popup_but.data-v-ceb0d096 {
background-color: #FFFFFF;
}
.popup_but .but_comm.data-v-ceb0d096 {
width: 40%;
}
+25 -4
View File
@@ -91,7 +91,7 @@ const _sfc_main = {
const params = {
mobile: form.mobile,
smsCode: form.smsCode,
password: form.loginPassword,
password: common_vendor.CryptoJS.MD5(form.loginPassword).toString(),
inviteCode: form.referralCode
};
const resp = await api_auth.register(params);
@@ -147,6 +147,24 @@ const _sfc_main = {
} else {
this.countdown = false;
}
},
// 用户协议
jumpUserAgreement() {
common_vendor.index.navigateTo({
url: "/pages/mine_user_agreement/mine_user_agreement?backPath=register"
});
},
// 隐私协议
jumpPrivacyAgreement() {
common_vendor.index.navigateTo({
url: "/pages/mine_privacy_agreement/mine_privacy_agreement?backPath=register"
});
},
// 售后保障协议
jumpProductAgreement() {
common_vendor.index.navigateTo({
url: "/pages/mine_product_agreement/mine_product_agreement?backPath=login"
});
}
}
};
@@ -261,8 +279,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
}),
z: common_vendor.o((...args) => $options.registerFun && $options.registerFun(...args)),
A: $data.butLoading,
B: common_vendor.o(($event) => $data.isPolicy = $event),
C: common_vendor.p({
B: common_vendor.o((...args) => $options.jumpUserAgreement && $options.jumpUserAgreement(...args)),
C: common_vendor.o((...args) => $options.jumpPrivacyAgreement && $options.jumpPrivacyAgreement(...args)),
D: common_vendor.o((...args) => $options.jumpProductAgreement && $options.jumpProductAgreement(...args)),
E: common_vendor.o(($event) => $data.isPolicy = $event),
F: common_vendor.p({
name: "isCheck",
usedAlone: true,
shape: "circle",
@@ -271,7 +292,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
iconSize: "18",
checked: $data.isPolicy
}),
D: common_vendor.sr("uToastRef", "6cfc9b6b-11")
G: common_vendor.sr("uToastRef", "6cfc9b6b-11")
});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
+1 -5
View File
@@ -1,9 +1,5 @@
{
"navigationBarTitleText": "",
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black",
"enablePullDownRefresh": false,
"navigationStyle": "default",
"navigationStyle": "custom",
"usingComponents": {
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
"up-count-down": "../../uni_modules/uview-plus/components/u-count-down/u-count-down",
+1 -1
View File
@@ -1 +1 @@
<view class="register_warp"><view class="register_title_warp">注册</view><view class="register_ifo_warp"><view class="register_info_item"><up-input wx:if="{{b}}" u-i="6cfc9b6b-0" bind:__l="__l" bindupdateModelValue="{{a}}" u-p="{{b}}"></up-input></view><view class="register_info_item"><up-input wx:if="{{h}}" u-s="{{['suffix']}}" u-i="6cfc9b6b-1" bind:__l="__l" bindupdateModelValue="{{g}}" u-p="{{h}}"><view slot="suffix" style="margin-right:10rpx"><view wx:if="{{c}}" class="code-warp"><up-count-down wx:if="{{e}}" bindfinish="{{d}}" u-i="6cfc9b6b-2,6cfc9b6b-1" bind:__l="__l" u-p="{{e}}"></up-count-down><text style="margin-left:10rpx">s</text></view><view wx:else bindtap="{{f}}" class="code_msg"> 获取验证码 </view></view></up-input></view><view class="register_info_item"><up-input wx:if="{{o}}" u-s="{{['suffix']}}" u-i="6cfc9b6b-3" bind:__l="__l" bindupdateModelValue="{{n}}" u-p="{{o}}"><view slot="suffix" style="margin-right:10rpx"><up-image wx:if="{{i}}" bindclick="{{j}}" u-i="6cfc9b6b-4,6cfc9b6b-3" bind:__l="__l" u-p="{{k}}"></up-image><up-image wx:else bindclick="{{l}}" u-i="6cfc9b6b-5,6cfc9b6b-3" bind:__l="__l" u-p="{{m||''}}"></up-image></view></up-input></view><view class="register_info_item"><up-input wx:if="{{w}}" u-s="{{['suffix']}}" u-i="6cfc9b6b-6" bind:__l="__l" bindupdateModelValue="{{v}}" u-p="{{w}}"><view slot="suffix" style="margin-right:10rpx"><up-image wx:if="{{p}}" bindclick="{{q}}" u-i="6cfc9b6b-7,6cfc9b6b-6" bind:__l="__l" u-p="{{r}}"></up-image><up-image wx:else bindclick="{{s}}" u-i="6cfc9b6b-8,6cfc9b6b-6" bind:__l="__l" u-p="{{t||''}}"></up-image></view></up-input></view><view class="register_info_item"><up-input wx:if="{{y}}" u-i="6cfc9b6b-9" bind:__l="__l" bindupdateModelValue="{{x}}" u-p="{{y}}"></up-input></view></view><view class="login_comm_but login_comm_but_yes" bindtap="{{z}}" loading="{{A}}"> 注册 </view><view class="policy_warp"><up-checkbox wx:if="{{C}}" u-s="{{['label']}}" u-i="6cfc9b6b-10" bind:__l="__l" bindupdateChecked="{{B}}" u-p="{{C}}"><view slot="label"><text>已阅读并同意</text><text class="policy_a_warp">《哈希优品服务协议》</text><text>及</text><text class="policy_a_warp">《隐私政策》</text></view></up-checkbox></view><up-toast class="r" u-r="uToastRef" u-i="6cfc9b6b-11" bind:__l="__l"></up-toast></view>
<view class="register_warp"><view class="register_title_warp">注册</view><view class="register_ifo_warp"><view class="register_info_item"><up-input wx:if="{{b}}" u-i="6cfc9b6b-0" bind:__l="__l" bindupdateModelValue="{{a}}" u-p="{{b}}"></up-input></view><view class="register_info_item"><up-input wx:if="{{h}}" u-s="{{['suffix']}}" u-i="6cfc9b6b-1" bind:__l="__l" bindupdateModelValue="{{g}}" u-p="{{h}}"><view slot="suffix" style="margin-right:10rpx"><view wx:if="{{c}}" class="code-warp"><up-count-down wx:if="{{e}}" bindfinish="{{d}}" u-i="6cfc9b6b-2,6cfc9b6b-1" bind:__l="__l" u-p="{{e}}"></up-count-down><text style="margin-left:10rpx">s</text></view><view wx:else bindtap="{{f}}" class="code_msg"> 获取验证码 </view></view></up-input></view><view class="register_info_item"><up-input wx:if="{{o}}" u-s="{{['suffix']}}" u-i="6cfc9b6b-3" bind:__l="__l" bindupdateModelValue="{{n}}" u-p="{{o}}"><view slot="suffix" style="margin-right:10rpx"><up-image wx:if="{{i}}" bindclick="{{j}}" u-i="6cfc9b6b-4,6cfc9b6b-3" bind:__l="__l" u-p="{{k}}"></up-image><up-image wx:else bindclick="{{l}}" u-i="6cfc9b6b-5,6cfc9b6b-3" bind:__l="__l" u-p="{{m||''}}"></up-image></view></up-input></view><view class="register_info_item"><up-input wx:if="{{w}}" u-s="{{['suffix']}}" u-i="6cfc9b6b-6" bind:__l="__l" bindupdateModelValue="{{v}}" u-p="{{w}}"><view slot="suffix" style="margin-right:10rpx"><up-image wx:if="{{p}}" bindclick="{{q}}" u-i="6cfc9b6b-7,6cfc9b6b-6" bind:__l="__l" u-p="{{r}}"></up-image><up-image wx:else bindclick="{{s}}" u-i="6cfc9b6b-8,6cfc9b6b-6" bind:__l="__l" u-p="{{t||''}}"></up-image></view></up-input></view><view class="register_info_item"><up-input wx:if="{{y}}" u-i="6cfc9b6b-9" bind:__l="__l" bindupdateModelValue="{{x}}" u-p="{{y}}"></up-input></view></view><view class="login_comm_but login_comm_but_yes" bindtap="{{z}}" loading="{{A}}"> 注册 </view><view class="policy_warp"><up-checkbox wx:if="{{F}}" u-s="{{['label']}}" u-i="6cfc9b6b-10" bind:__l="__l" bindupdateChecked="{{E}}" u-p="{{F}}"><view slot="label"><text>已阅读并同意</text><text class="policy_a_warp" bindtap="{{B}}">《服务协议》</text><text>、</text><text class="policy_a_warp" bindtap="{{C}}">《隐私政策》</text><text>、</text><text class="policy_a_warp" bindtap="{{D}}">《售后保障协议》</text></view></up-checkbox></view><up-toast class="r" u-r="uToastRef" u-i="6cfc9b6b-11" bind:__l="__l"></up-toast></view>
+9 -10
View File
@@ -51,9 +51,9 @@ const _sfc_main = {
};
},
onLoad(option) {
const id = option.categoryId;
if (id && id !== 0) {
this.form.categoryId = id;
const keyword = option.keyword;
if (keyword && keyword !== 0 && keyword !== "undefined") {
this.form.keyword = keyword;
this.searchClickFun();
}
},
@@ -65,7 +65,7 @@ const _sfc_main = {
},
// 删除历史
searchHistoryDelete(item) {
common_vendor.index.__f__("log", "at pages/search/search.vue:154", "item", item);
common_vendor.index.__f__("log", "at pages/search/search.vue:155", "item", item);
this.isShowSearch = false;
},
/**
@@ -149,6 +149,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
"border-radius": "20rpx !important",
"width": "590rpx"
},
clearable: true,
modelValue: $data.form.keyword
}),
h: !$data.poductList || $data.poductList.length === 0
@@ -210,9 +211,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
}),
c: common_vendor.t(item.title),
d: common_vendor.t(item.adPrice),
e: common_vendor.t(item.price),
f: item.id,
g: common_vendor.o(($event) => $options.jumpInfo(item), item.id)
e: item.id,
f: common_vendor.o(($event) => $options.jumpInfo(item), item.id)
};
})
} : {}, {
@@ -230,9 +230,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
}),
c: common_vendor.t(item.title),
d: common_vendor.t(item.adPrice),
e: common_vendor.t(item.price),
f: item.id,
g: common_vendor.o(($event) => $options.jumpInfo(item), item.id)
e: item.id,
f: common_vendor.o(($event) => $options.jumpInfo(item), item.id)
};
})
} : {}) : {
+1 -1
View File
@@ -1 +1 @@
<view class="search_warp data-v-c10c040c"><view class="header_comm data-v-c10c040c"><up-image wx:if="{{b}}" class="data-v-c10c040c" bindclick="{{a}}" u-i="c10c040c-0" bind:__l="__l" u-p="{{b}}"></up-image><view class="data-v-c10c040c"><up-input wx:if="{{g}}" class="data-v-c10c040c" u-s="{{['prefix','suffix']}}" u-i="c10c040c-1" bind:__l="__l" bindupdateModelValue="{{f}}" u-p="{{g}}"><up-image class="data-v-c10c040c" bindclick="{{c}}" u-i="c10c040c-2,c10c040c-1" bind:__l="__l" u-p="{{d}}" slot="prefix"></up-image><view class="search_but_warp data-v-c10c040c" bindtap="{{e}}" slot="suffix">搜索</view></up-input></view></view><view wx:if="{{h}}" class="search_history data-v-c10c040c"><view class="search_history_title data-v-c10c040c"><view class="data-v-c10c040c">历史搜索</view><up-image wx:if="{{j}}" class="data-v-c10c040c" bindclick="{{i}}" u-i="c10c040c-3" bind:__l="__l" u-p="{{j}}"></up-image></view><view wx:if="{{k}}" class="search_history_cotent data-v-c10c040c"><view wx:for="{{l}}" wx:for-item="item" wx:key="e" class="data-v-c10c040c" style="margin:0 10rpx 10rpx 0"><up-tag wx:if="{{item.d}}" class="data-v-c10c040c" bindclose="{{item.a}}" bindclick="{{item.b}}" u-i="{{item.c}}" bind:__l="__l" u-p="{{item.d}}"></up-tag></view></view><view wx:else class="not_order_warp data-v-c10c040c"><view class="not_order_warp_img data-v-c10c040c"><up-image wx:if="{{m}}" class="data-v-c10c040c" u-i="c10c040c-5" bind:__l="__l" u-p="{{m}}"></up-image></view><view class="not_order_msg_warp data-v-c10c040c">暂无搜索记录</view></view></view><view wx:else class="poduct_list data-v-c10c040c"><view class="poduct_search_warp data-v-c10c040c"><view class="data-v-c10c040c">综合</view><view class="data-v-c10c040c">销量</view><view class="data-v-c10c040c">优惠卷</view><view class="data-v-c10c040c"><up-image wx:if="{{o}}" class="data-v-c10c040c" bindclick="{{n}}" u-i="c10c040c-6" bind:__l="__l" u-p="{{o}}"></up-image></view></view><view class="poduct_content_warp data-v-c10c040c"><view wx:if="{{p}}" class="data-v-c10c040c"><view wx:if="{{q}}" class="big_warp data-v-c10c040c"><view wx:for="{{r}}" wx:for-item="item" wx:key="f" class="big_item_warp data-v-c10c040c" bindtap="{{item.g}}"><up-image wx:if="{{item.b}}" class="data-v-c10c040c" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image><view class="big_item_content_warp data-v-c10c040c"><view class="title data-v-c10c040c">{{item.c}}</view><view class="total_or_quantity data-v-c10c040c"><view class="total_ data-v-c10c040c"><text class="data-v-c10c040c">¥</text><text class="data-v-c10c040c" style="font-size:36rpx">{{item.d}}</text></view><view class="data-v-c10c040c">已售{{item.e}}件</view></view></view></view></view><view wx:if="{{s}}" class="min_warp data-v-c10c040c"><view wx:for="{{t}}" wx:for-item="item" wx:key="f" class="min_item_warp data-v-c10c040c" bindtap="{{item.g}}"><up-image wx:if="{{item.b}}" class="data-v-c10c040c" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image><view class="min_item_content_warp data-v-c10c040c"><view class="title data-v-c10c040c">{{item.c}}</view><view class="total_or_quantity data-v-c10c040c"><view class="total_ data-v-c10c040c"><text class="data-v-c10c040c">¥</text><text class="data-v-c10c040c" style="font-size:36rpx">{{item.d}}</text></view><view class="data-v-c10c040c">已售{{item.e}}件</view></view></view></view></view></view><view wx:else class="not_order_warp data-v-c10c040c"><view class="not_order_warp_img data-v-c10c040c"><up-image wx:if="{{v}}" class="data-v-c10c040c" u-i="c10c040c-9" bind:__l="__l" u-p="{{v}}"></up-image></view><view class="not_order_msg_warp data-v-c10c040c">抱歉没有搜索此类商品~</view></view></view></view></view>
<view class="search_warp data-v-c10c040c"><view class="header_comm data-v-c10c040c"><up-image wx:if="{{b}}" class="data-v-c10c040c" bindclick="{{a}}" u-i="c10c040c-0" bind:__l="__l" u-p="{{b}}"></up-image><view class="data-v-c10c040c"><up-input wx:if="{{g}}" class="data-v-c10c040c" u-s="{{['prefix','suffix']}}" u-i="c10c040c-1" bind:__l="__l" bindupdateModelValue="{{f}}" u-p="{{g}}"><up-image class="data-v-c10c040c" bindclick="{{c}}" u-i="c10c040c-2,c10c040c-1" bind:__l="__l" u-p="{{d}}" slot="prefix"></up-image><view class="search_but_warp data-v-c10c040c" bindtap="{{e}}" slot="suffix">搜索</view></up-input></view></view><view wx:if="{{h}}" class="search_history data-v-c10c040c"><view class="search_history_title data-v-c10c040c"><view class="data-v-c10c040c">猜你喜欢</view><up-image wx:if="{{j}}" class="data-v-c10c040c" bindclick="{{i}}" u-i="c10c040c-3" bind:__l="__l" u-p="{{j}}"></up-image></view><view wx:if="{{k}}" class="search_history_cotent data-v-c10c040c"><view wx:for="{{l}}" wx:for-item="item" wx:key="e" class="data-v-c10c040c" style="margin:0 10rpx 10rpx 0"><up-tag wx:if="{{item.d}}" class="data-v-c10c040c" bindclose="{{item.a}}" bindclick="{{item.b}}" u-i="{{item.c}}" bind:__l="__l" u-p="{{item.d}}"></up-tag></view></view><view wx:else class="not_order_warp data-v-c10c040c"><view class="not_order_warp_img data-v-c10c040c"><up-image wx:if="{{m}}" class="data-v-c10c040c" u-i="c10c040c-5" bind:__l="__l" u-p="{{m}}"></up-image></view><view class="not_order_msg_warp data-v-c10c040c">暂无搜索记录</view></view></view><view wx:else class="poduct_list data-v-c10c040c"><view class="poduct_search_warp data-v-c10c040c"><view class="data-v-c10c040c">综合</view><view class="data-v-c10c040c">销量</view><view class="data-v-c10c040c">优惠卷</view><view class="data-v-c10c040c"><up-image wx:if="{{o}}" class="data-v-c10c040c" bindclick="{{n}}" u-i="c10c040c-6" bind:__l="__l" u-p="{{o}}"></up-image></view></view><view class="poduct_content_warp data-v-c10c040c"><view wx:if="{{p}}" class="data-v-c10c040c"><view wx:if="{{q}}" class="big_warp data-v-c10c040c"><view wx:for="{{r}}" wx:for-item="item" wx:key="e" class="big_item_warp data-v-c10c040c" bindtap="{{item.f}}"><up-image wx:if="{{item.b}}" class="data-v-c10c040c" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image><view class="big_item_content_warp data-v-c10c040c"><view class="title data-v-c10c040c">{{item.c}}</view><view class="total_or_quantity data-v-c10c040c"><view class="total_ data-v-c10c040c"><text class="data-v-c10c040c">¥</text><text class="data-v-c10c040c" style="font-size:36rpx">{{item.d}}</text></view><view class="data-v-c10c040c">已售9999件</view></view></view></view></view><view wx:if="{{s}}" class="min_warp data-v-c10c040c"><view wx:for="{{t}}" wx:for-item="item" wx:key="e" class="min_item_warp data-v-c10c040c" bindtap="{{item.f}}"><up-image wx:if="{{item.b}}" class="data-v-c10c040c" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image><view class="min_item_content_warp data-v-c10c040c"><view class="title data-v-c10c040c">{{item.c}}</view><view class="total_or_quantity data-v-c10c040c"><view class="total_ data-v-c10c040c"><text class="data-v-c10c040c">¥</text><text class="data-v-c10c040c" style="font-size:36rpx">{{item.d}}</text></view><view class="data-v-c10c040c">已售9999件</view></view></view></view></view></view><view wx:else class="not_order_warp data-v-c10c040c"><view class="not_order_warp_img data-v-c10c040c"><up-image wx:if="{{v}}" class="data-v-c10c040c" u-i="c10c040c-9" bind:__l="__l" u-p="{{v}}"></up-image></view><view class="not_order_msg_warp data-v-c10c040c">抱歉没有搜索此类商品~</view></view></view></view></view>
@@ -2,8 +2,9 @@
const common_vendor = require("../../common/vendor.js");
const api_cart = require("../../api/cart.js");
const choiceness = () => "../../components/choiceness/choiceness.js";
const CustomTabBar = () => "../../components/custom-tab-bar.js";
const _sfc_main = {
components: { choiceness },
components: { choiceness, CustomTabBar },
data() {
return {
shoppingTotal: 0,
@@ -24,26 +25,38 @@ const _sfc_main = {
listLoading: false
};
},
onLoad() {
onShow() {
this.getCartList();
},
onLoad() {
},
methods: {
/**
* 查询购物车列表
*/
async getCartList() {
this.listLoading = true;
let result = [];
const resp = await api_cart.getCartList();
if (resp && resp.bizcode === 100) {
const data = this.transformedArray(resp.data);
this.shoppingTotal = resp.data.length;
this.shoppingList = data;
const data = resp.data || [];
if (data && data.length !== 0) {
result = this.transformedArray(data);
}
this.shoppingTotal = data.length;
}
this.shoppingList = result;
this.listLoading = false;
this.total = 0;
this.count = 0;
this.isDataNull = result.length === 0 ? true : false;
},
// 处理购物车的数据
transformedArray(originalArray) {
const newOriginalArray = [];
if (!originalArray || originalArray.length === 0) {
return newOriginalArray;
}
originalArray.map((curr) => {
const existingShop = newOriginalArray.find((shop) => shop.shopId === curr.shopId && shop.shopName === curr.shopName);
if (existingShop) {
@@ -65,8 +78,8 @@ const _sfc_main = {
// 规格Id
isCheck: false,
// 用作于全选
isAvail: curr.isAvail
// 是否有库存
goodsStatus: curr.goodsStatus
//商品状态:0-可下单,1-库存不够,2-商品已下架
});
} else {
newOriginalArray.push({
@@ -94,8 +107,8 @@ const _sfc_main = {
// 规格Id
isCheck: false,
// 用作于全选
isAvail: curr.isAvail
// 是否有库存,用作于全选
goodsStatus: curr.goodsStatus
//商品状态:0-可下单,1-库存不够,2-商品已下架
}]
});
}
@@ -109,7 +122,11 @@ const _sfc_main = {
* @param {Object} cItem 需要修改的数据节点
*/
async quantityFun(type, index, pIndex, id) {
const currentData = this.shoppingList[index].product[pIndex];
let currentQuantity = this.shoppingList[index].product[pIndex].buyNum;
let total = Number(this.total);
let count = Number(this.count);
const data = this.shoppingList[index].product[pIndex];
if (type === "minus") {
if (currentQuantity === 1) {
this.$refs.uToastRef.show({
@@ -119,18 +136,25 @@ const _sfc_main = {
return;
} else {
currentQuantity = currentQuantity - 1;
total = total - data.unitPrice;
count = count - 1;
}
} else if (type === "add") {
currentQuantity = currentQuantity + 1;
total = total + data.unitPrice;
count = count + 1;
}
const params = {
id,
goodsNum: currentQuantity
};
const result = await api_cart.updateGoodsNum(params);
common_vendor.index.__f__("log", "at pages/shopping_cart/shopping_cart.vue:232", "result", result);
if (result && result.bizcode === 100) {
this.shoppingList[index].product[pIndex].buyNum = currentQuantity;
if (currentData.isCheck) {
this.total = total.toFixed(2);
this.count = count;
}
}
},
/**
@@ -149,7 +173,6 @@ const _sfc_main = {
url: "/pages/order_submit/order_submit?ids=" + deleteId.join(",")
});
this.isAll = false;
this.selectCheck(false);
},
/**
* 删除选中的
@@ -158,7 +181,7 @@ const _sfc_main = {
const then = this;
common_vendor.index.showModal({
title: "提示",
content: "您确定要删除选中的所有商品吗?",
content: "您确定要删除选中的(" + this.getCheckList().length + "件)商品吗?",
success: function(res) {
if (res.confirm) {
then.deleteShoppingFun();
@@ -182,8 +205,6 @@ const _sfc_main = {
const result = await api_cart.removeGoods(params);
if (result && result.bizcode === 100) {
this.isEdit = false;
this.isAll = false;
this.selectCheck(false);
this.$refs.uToastRef.show({
type: "success",
message: "删除成功"
@@ -212,15 +233,9 @@ const _sfc_main = {
return deleteId;
},
// 全部选中 or 全部取消选中
isAllChange(val) {
this.selectCheck(val);
},
/**
* 编辑是否选中
*/
selectCheck(isAll) {
isAllChange(isAll) {
const currentShoppingList = this.shoppingList;
currentShoppingList.map((item) => {
currentShoppingList.map((item, index) => {
if (isAll) {
item.isCheck = true;
} else {
@@ -235,51 +250,74 @@ const _sfc_main = {
}
});
this.shoppingList = currentShoppingList;
if (isAll) {
this.checkIsAll();
} else {
this.total = 0;
this.count = 0;
}
},
/**
* 商品详情
* @param {Object} item
*/
jumpInfo(item) {
common_vendor.index.__f__("log", "at pages/shopping_cart/shopping_cart.vue:348", "item", item);
common_vendor.index.navigateTo({
url: "/pages/productInfo/productInfo?id=" + item.goodsId
});
},
// 单个产品的单选按钮选中与取消选中
productChange(val, index, pIndex) {
let total = this.total;
let count = this.count;
const data = this.shoppingList[index].product[pIndex];
if (val) {
total = total + data.buyNum * data.unitPrice;
count = count + data.buyNum;
} else {
total = total - data.buyNum * data.unitPrice;
count = count - data.buyNum;
}
this.total = total;
this.count = count;
setTimeout(() => {
this.checkIsAll();
}, 300);
},
// 单个店铺的单选按钮选中与取消选中
shoppingChange(val, index) {
let total = this.total;
let count = this.count;
shoppingChange(isAll, index) {
const data = this.shoppingList[index];
data.product.map((item) => {
if (val) {
item.isCheck = true;
total = total + item.buyNum * item.unitPrice;
count = count + item.buyNum;
} else {
item.isCheck = false;
total = total - item.buyNum * item.unitPrice;
count = count - item.buyNum;
}
});
if (isAll) {
data.product.forEach((o) => o.isCheck = true);
} else {
data.product.forEach((o) => o.isCheck = false);
}
this.shoppingList[index] = data;
this.total = total;
this.count = count;
setTimeout(() => {
this.checkIsAll();
}, 300);
},
/**
* 检查是否全选
*/
checkIsAll() {
let total = 0;
let count = 0;
const shoppingList = this.shoppingList;
if (shoppingList && shoppingList.length !== 0) {
let sumFlag = false;
shoppingList.map((item) => {
let flag = true;
item.product.map((oItem) => {
if (oItem.isCheck) {
total = total + oItem.buyNum * oItem.unitPrice;
count = count + oItem.buyNum;
} else {
flag = false;
}
});
if (flag) {
item.isCheck = true;
sumFlag = true;
} else {
item.isCheck = false;
}
});
this.shoppingList = shoppingList;
this.isAll = sumFlag;
if (!this.isEdit) {
this.total = total.toFixed(2);
}
this.count = count;
}
}
}
};
@@ -289,7 +327,8 @@ if (!Array) {
const _easycom_up_checkbox2 = common_vendor.resolveComponent("up-checkbox");
const _easycom_choiceness2 = common_vendor.resolveComponent("choiceness");
const _easycom_up_toast2 = common_vendor.resolveComponent("up-toast");
(_easycom_up_loading_page2 + _easycom_up_image2 + _easycom_up_checkbox2 + _easycom_choiceness2 + _easycom_up_toast2)();
const _component_CustomTabBar = common_vendor.resolveComponent("CustomTabBar");
(_easycom_up_loading_page2 + _easycom_up_image2 + _easycom_up_checkbox2 + _easycom_choiceness2 + _easycom_up_toast2 + _component_CustomTabBar)();
}
const _easycom_up_loading_page = () => "../../uni_modules/uview-plus/components/u-loading-page/u-loading-page.js";
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
@@ -302,13 +341,20 @@ if (!Math) {
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: common_vendor.t($data.shoppingTotal),
b: common_vendor.o(($event) => $data.isEdit = true),
c: common_vendor.p({
b: !$data.isEdit
}, !$data.isEdit ? {
c: common_vendor.o(($event) => $data.isEdit = true),
d: !$data.isDataNull
} : {
e: common_vendor.o(($event) => $data.isEdit = false),
f: $data.isDataNull
}, {
g: common_vendor.p({
loading: $data.listLoading
}),
d: !$data.isDataNull
h: !$data.isDataNull
}, !$data.isDataNull ? {
e: common_vendor.f($data.shoppingList, (item, index, i0) => {
i: common_vendor.f($data.shoppingList, (item, index, i0) => {
return {
a: "7cc1684a-2-" + i0 + "," + ("7cc1684a-1-" + i0),
b: common_vendor.p({
@@ -350,45 +396,48 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
activeColor: "#FF7C41",
size: "19",
iconSize: "18",
disabled: !pItem.isAvail,
disabled: !$data.isEdit && [1, 2].includes(pItem.goodsStatus),
checked: pItem.isCheck
}),
e: "7cc1684a-4-" + i0 + "-" + i1,
f: common_vendor.p({
e: common_vendor.o(($event) => $options.jumpInfo(pItem), pItem.id),
f: "7cc1684a-4-" + i0 + "-" + i1,
g: common_vendor.p({
src: pItem.mainGraph,
width: "100",
height: "100",
bgColor: "#f1f6ff00"
}),
g: common_vendor.t(pItem.name),
h: common_vendor.t(pItem.goodsSpece),
i: common_vendor.t(pItem.unitPrice),
j: common_vendor.t(pItem.unitPrice),
k: common_vendor.o(($event) => $options.quantityFun("minus", index, pIndex, pItem.id), pItem.id),
l: common_vendor.t(pItem.buyNum),
m: common_vendor.o(($event) => $options.quantityFun("add", index, pIndex, pItem.id), pItem.id),
n: !pItem.isAvail
}, !pItem.isAvail ? {} : {}, {
o: common_vendor.o(($event) => $options.jumpInfo(pItem), pItem.id),
p: pItem.id
h: common_vendor.t(pItem.name),
i: common_vendor.o(($event) => $options.jumpInfo(pItem), pItem.id),
j: common_vendor.t(pItem.goodsSpece),
k: common_vendor.t(pItem.unitPrice),
l: common_vendor.t(pItem.unitPrice),
m: common_vendor.o(($event) => $options.quantityFun("minus", index, pIndex, pItem.id), pItem.id),
n: common_vendor.t(pItem.buyNum),
o: common_vendor.o(($event) => $options.quantityFun("add", index, pIndex, pItem.id), pItem.id),
p: [1].includes(pItem.goodsStatus)
}, [1].includes(pItem.goodsStatus) ? {} : {}, {
q: [2].includes(pItem.goodsStatus)
}, [2].includes(pItem.goodsStatus) ? {} : {}, {
r: pItem.id
});
}),
j: item.id
};
})
} : {
f: common_vendor.p({
j: common_vendor.p({
src: "/static/common/not_shopping.png",
width: "80",
height: "80",
bgColor: "#f1f6ff00"
})
}, {
g: !$data.isDataNull
k: !$data.isDataNull
}, !$data.isDataNull ? common_vendor.e({
h: common_vendor.o($options.isAllChange),
i: common_vendor.o(($event) => $data.isAll = $event),
j: common_vendor.p({
l: common_vendor.o($options.isAllChange),
m: common_vendor.o(($event) => $data.isAll = $event),
n: common_vendor.p({
name: "isAll",
usedAlone: true,
shape: "circle",
@@ -397,16 +446,27 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
iconSize: "18",
checked: $data.isAll
}),
k: common_vendor.t($data.total),
l: $data.isEdit
o: !$data.isEdit
}, !$data.isEdit ? {} : {}, {
p: !$data.isEdit
}, !$data.isEdit ? {} : {}, {
q: !$data.isEdit
}, !$data.isEdit ? {
r: common_vendor.t($data.total)
} : {}, {
s: $data.isEdit
}, $data.isEdit ? {
m: common_vendor.o((...args) => $options.deleteShopping && $options.deleteShopping(...args))
t: common_vendor.t($data.count),
v: common_vendor.o((...args) => $options.deleteShopping && $options.deleteShopping(...args))
} : {
n: common_vendor.t($data.count),
o: common_vendor.o((...args) => $options.settleShopping && $options.settleShopping(...args))
w: common_vendor.t($data.count),
x: common_vendor.o((...args) => $options.settleShopping && $options.settleShopping(...args))
}) : {}, {
p: common_vendor.sr("uToastRef", "7cc1684a-8"),
q: $data.isDataNull ? "calc(100vh - 134rpx)" : "calc(100vh - 256rpx)"
y: common_vendor.sr("uToastRef", "7cc1684a-8"),
z: $data.isDataNull ? "calc(100vh - 134rpx)" : "calc(100vh - 410rpx)",
A: common_vendor.p({
tabIndex: 2
})
});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-7cc1684a"]]);
@@ -2,6 +2,7 @@
"navigationStyle": "custom",
"usingComponents": {
"choiceness": "../../components/choiceness/choiceness",
"custom-tab-bar": "../../components/custom-tab-bar",
"up-loading-page": "../../uni_modules/uview-plus/components/u-loading-page/u-loading-page",
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
"up-checkbox": "../../uni_modules/uview-plus/components/u-checkbox/u-checkbox",
@@ -1 +1 @@
<view style="{{'height:' + q}}" class="shopping_cart_warp data-v-7cc1684a"><view class="shopping_cart_header data-v-7cc1684a"><view class="cart data-v-7cc1684a">购物车({{a}})</view><view class="enit_but data-v-7cc1684a" bindtap="{{b}}">编辑</view></view><up-loading-page wx:if="{{c}}" class="data-v-7cc1684a" u-i="7cc1684a-0" bind:__l="__l" u-p="{{c}}"></up-loading-page><view class="shopping_cart_content data-v-7cc1684a"><block wx:if="{{d}}"><view wx:for="{{e}}" wx:for-item="item" wx:key="j" class="shopping_cart_content_item data-v-7cc1684a"><up-checkbox wx:if="{{item.h}}" class="data-v-7cc1684a" u-s="{{['label']}}" bindchange="{{item.e}}" u-i="{{item.f}}" bind:__l="__l" bindupdateChecked="{{item.g}}" u-p="{{item.h}}"><view class="content_item_header data-v-7cc1684a" slot="label"><up-image wx:if="{{item.b}}" class="data-v-7cc1684a" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image><view class="order_product_title data-v-7cc1684a">{{item.c}}{{item.d}}</view></view></up-checkbox><view class="data-v-7cc1684a"><view wx:for="{{item.i}}" wx:for-item="pItem" wx:key="p" class="content_item_info data-v-7cc1684a"><up-checkbox wx:if="{{pItem.d}}" class="data-v-7cc1684a" bindchange="{{pItem.a}}" u-i="{{pItem.b}}" bind:__l="__l" bindupdateChecked="{{pItem.c}}" u-p="{{pItem.d}}"></up-checkbox><view class="info_item data-v-7cc1684a" bindtap="{{pItem.o}}"><up-image wx:if="{{pItem.f}}" class="data-v-7cc1684a" u-i="{{pItem.e}}" bind:__l="__l" u-p="{{pItem.f}}"></up-image><view class="content_info data-v-7cc1684a"><view class="shopping_content_info_title data-v-7cc1684a">{{pItem.g}}</view><view class="content_info_description data-v-7cc1684a">{{pItem.h}}</view><view class="shopping_info_amount data-v-7cc1684a"><view class="data-v-7cc1684a"><view class="data-v-7cc1684a" style="color:#FF7C41FF"><text class="data-v-7cc1684a" style="font-size:22rpx">¥</text><text class="data-v-7cc1684a" style="font-size:32rpx">{{pItem.i}}</text></view><view class="shopping_info_amount_original data-v-7cc1684a">¥{{pItem.j}}</view></view><view class="data-v-7cc1684a"><view class="shopping_info_quantity data-v-7cc1684a"><view class="quantity_but data-v-7cc1684a" bindtap="{{pItem.k}}">-</view><view class="quantity_value data-v-7cc1684a">{{pItem.l}}</view><view class="quantity_but data-v-7cc1684a" bindtap="{{pItem.m}}">+</view></view><view wx:if="{{pItem.n}}" class="insufficient_stock data-v-7cc1684a">库存不足</view></view></view></view></view></view></view></view></block><view wx:else class="not_order_warp data-v-7cc1684a"><up-image wx:if="{{f}}" class="data-v-7cc1684a" u-i="7cc1684a-5" bind:__l="__l" u-p="{{f}}"></up-image><view class="not_order_msg_warp data-v-7cc1684a">购物车是空的</view></view><choiceness class="data-v-7cc1684a" u-i="7cc1684a-6" bind:__l="__l"/></view><view wx:if="{{g}}" class="data-v-7cc1684a"><view class="shopping_cart_but data-v-7cc1684a"><view class="shopping_cart_but_total data-v-7cc1684a"><up-checkbox wx:if="{{j}}" class="data-v-7cc1684a" u-s="{{['label']}}" bindchange="{{h}}" u-i="7cc1684a-7" bind:__l="__l" bindupdateChecked="{{i}}" u-p="{{j}}"><text class="data-v-7cc1684a" style="font-size:26rpx;color:#444444" slot="label">全选</text></up-checkbox><text class="data-v-7cc1684a" style="margin-left:20rpx;font-size:24rpx;color:#444444">合计:</text><text class="data-v-7cc1684a" style="font-size:24rpx">¥</text><text class="data-v-7cc1684a" style="font-size:32rpx">{{k}}</text></view><view wx:if="{{l}}" class="delete_but_css data-v-7cc1684a" bindtap="{{m}}"> 删除 </view><view wx:else class="add_but_css data-v-7cc1684a" bindtap="{{o}}"> 结算({{n}}) </view></view></view><up-toast class="r data-v-7cc1684a" u-r="uToastRef" u-i="7cc1684a-8" bind:__l="__l"></up-toast></view>
<view class="data-v-7cc1684a"><view style="{{'height:' + z}}" class="shopping_cart_warp data-v-7cc1684a"><view class="shopping_cart_header data-v-7cc1684a"><view class="cart data-v-7cc1684a">购物车({{a}})</view><view wx:if="{{b}}" class="enit_but data-v-7cc1684a" bindtap="{{c}}" hidden="{{!d}}">编辑</view><view wx:else class="enit_but data-v-7cc1684a" bindtap="{{e}}" hidden="{{!f}}">取消</view></view><up-loading-page wx:if="{{g}}" class="data-v-7cc1684a" u-i="7cc1684a-0" bind:__l="__l" u-p="{{g}}"></up-loading-page><view class="shopping_cart_content data-v-7cc1684a"><block wx:if="{{h}}"><view wx:for="{{i}}" wx:for-item="item" wx:key="j" class="shopping_cart_content_item data-v-7cc1684a"><up-checkbox wx:if="{{item.h}}" class="data-v-7cc1684a" u-s="{{['label']}}" bindchange="{{item.e}}" u-i="{{item.f}}" bind:__l="__l" bindupdateChecked="{{item.g}}" u-p="{{item.h}}"><view class="content_item_header data-v-7cc1684a" slot="label"><up-image wx:if="{{item.b}}" class="data-v-7cc1684a" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image><view class="order_product_title data-v-7cc1684a">{{item.c}}{{item.d}}</view></view></up-checkbox><view class="data-v-7cc1684a"><view wx:for="{{item.i}}" wx:for-item="pItem" wx:key="r" class="content_item_info data-v-7cc1684a"><up-checkbox wx:if="{{pItem.d}}" class="data-v-7cc1684a" bindchange="{{pItem.a}}" u-i="{{pItem.b}}" bind:__l="__l" bindupdateChecked="{{pItem.c}}" u-p="{{pItem.d}}"></up-checkbox><view class="info_item data-v-7cc1684a"><up-image wx:if="{{pItem.g}}" class="data-v-7cc1684a" bindclick="{{pItem.e}}" u-i="{{pItem.f}}" bind:__l="__l" u-p="{{pItem.g}}"></up-image><view class="content_info data-v-7cc1684a"><view class="shopping_content_info_title data-v-7cc1684a" bindtap="{{pItem.i}}">{{pItem.h}}</view><view class="content_info_description data-v-7cc1684a">{{pItem.j}}</view><view class="shopping_info_amount data-v-7cc1684a"><view class="data-v-7cc1684a"><view class="data-v-7cc1684a" style="color:#FF7C41"><text class="data-v-7cc1684a" style="font-size:22rpx">¥</text><text class="data-v-7cc1684a" style="font-size:32rpx">{{pItem.k}}</text></view><view class="shopping_info_amount_original data-v-7cc1684a">¥{{pItem.l}}</view></view><view class="data-v-7cc1684a"><view class="shopping_info_quantity data-v-7cc1684a"><view class="quantity_but data-v-7cc1684a" bindtap="{{pItem.m}}">-</view><view class="quantity_value data-v-7cc1684a">{{pItem.n}}</view><view class="quantity_but data-v-7cc1684a" bindtap="{{pItem.o}}">+</view></view><view wx:if="{{pItem.p}}" class="insufficient_stock data-v-7cc1684a">库存不足</view><view wx:if="{{pItem.q}}" class="insufficient_stock data-v-7cc1684a">商品已下架</view></view></view></view></view></view></view></view></block><view wx:else class="not_order_warp data-v-7cc1684a"><up-image wx:if="{{j}}" class="data-v-7cc1684a" u-i="7cc1684a-5" bind:__l="__l" u-p="{{j}}"></up-image><view class="not_order_msg_warp data-v-7cc1684a">购物车是空的</view></view><choiceness class="data-v-7cc1684a" u-i="7cc1684a-6" bind:__l="__l"/></view><view wx:if="{{k}}" class="data-v-7cc1684a"><view class="shopping_cart_but data-v-7cc1684a"><view class="shopping_cart_but_total data-v-7cc1684a"><up-checkbox wx:if="{{n}}" class="data-v-7cc1684a" u-s="{{['label']}}" bindchange="{{l}}" u-i="7cc1684a-7" bind:__l="__l" bindupdateChecked="{{m}}" u-p="{{n}}"><text class="data-v-7cc1684a" style="font-size:26rpx;color:#444444" slot="label">全选</text></up-checkbox><text wx:if="{{o}}" class="data-v-7cc1684a" style="margin-left:20rpx;font-size:24rpx;color:#444444">合计:</text><text wx:if="{{p}}" class="data-v-7cc1684a" style="font-size:24rpx">¥</text><text wx:if="{{q}}" class="data-v-7cc1684a" style="font-size:32rpx">{{r}}</text></view><view wx:if="{{s}}" class="delete_but_css data-v-7cc1684a" bindtap="{{v}}"> 删除({{t}}) </view><view wx:else class="add_but_css data-v-7cc1684a" bindtap="{{x}}"> 结算({{w}}) </view></view></view><up-toast class="r data-v-7cc1684a" u-r="uToastRef" u-i="7cc1684a-8" bind:__l="__l"></up-toast></view><custom-tab-bar wx:if="{{A}}" class="data-v-7cc1684a" u-i="7cc1684a-9" bind:__l="__l" u-p="{{A}}"/></view>
@@ -42,7 +42,7 @@
}
.shopping_cart_content.data-v-7cc1684a {
margin-top: 30rpx;
height: calc(100vh - 304rpx);
height: calc(100vh - 456rpx);
overflow-y: auto;
}
.shopping_cart_content .shopping_cart_content_item.data-v-7cc1684a {
@@ -93,7 +93,7 @@
}
.shopping_cart_but.data-v-7cc1684a {
position: fixed;
bottom: 0;
bottom: 140rpx;
left: 0;
width: calc(100% - 40rpx);
background: #FFFFFF;
+40 -27
View File
@@ -1,12 +1,12 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const common_classify_data = require("../../common/classify.data.js");
const api_common = require("../../api/common.js");
const CustomTabBar = () => "../../components/custom-tab-bar.js";
const _sfc_main = {
components: { CustomTabBar },
data() {
return {
selCategory: 1,
tabbar: common_classify_data.classifyData,
scrollTop: 0,
//tab标题的滚动条位置
current: null,
@@ -27,12 +27,28 @@ const _sfc_main = {
tabbarContentLoading: false
};
},
mounted() {
onShow() {
},
onShow() {
this.getSort(0).then((resp) => {
if (resp && resp.length !== 0) {
const fData = resp[0];
this.tabbarList = resp;
this.swichMenu(fData, 0);
const sortId = common_vendor.index.getStorageSync("sortId");
if (sortId && sortId !== 0) {
let fData = {};
let currentIndex = 0;
resp.map((item, index) => {
if (item.id === sortId) {
fData = item;
currentIndex = index;
return;
}
});
this.swichMenu(fData, currentIndex);
} else {
const fData = resp[0];
this.swichMenu(fData, 0);
}
}
});
},
@@ -40,9 +56,13 @@ const _sfc_main = {
checkCategory(val) {
this.selCategory = val;
},
jumpSearch() {
jumpSearch(item) {
let path = "/pages/search/search";
if (item && Object.keys(item).length !== 0) {
path = path + "?keyword=" + item.name;
}
common_vendor.index.navigateTo({
url: "/pages/search/search"
url: path
});
},
// 查询分类
@@ -92,12 +112,6 @@ const _sfc_main = {
this[dataVal] = res.height;
}).exec();
});
},
// 跳转到搜索页面
jumpProduct(item) {
common_vendor.index.navigateTo({
url: "/pages/search/search?categoryId=" + item.id
});
}
}
};
@@ -106,8 +120,8 @@ if (!Array) {
const _easycom_up_swiper2 = common_vendor.resolveComponent("up-swiper");
const _easycom_up_loading_page2 = common_vendor.resolveComponent("up-loading-page");
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
const _component_template = common_vendor.resolveComponent("template");
(_easycom_up_search2 + _easycom_up_swiper2 + _easycom_up_loading_page2 + _easycom_up_image2 + _component_template)();
const _component_CustomTabBar = common_vendor.resolveComponent("CustomTabBar");
(_easycom_up_search2 + _easycom_up_swiper2 + _easycom_up_loading_page2 + _easycom_up_image2 + _component_CustomTabBar)();
}
const _easycom_up_search = () => "../../uni_modules/uview-plus/components/u-search/u-search.js";
const _easycom_up_swiper = () => "../../uni_modules/uview-plus/components/u-swiper/u-swiper.js";
@@ -122,19 +136,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
}, $data.selCategory === 1 ? {} : {}, {
b: common_vendor.n($data.selCategory === 1 ? "category_item category_item_sel" : "category_item"),
c: common_vendor.o(($event) => $options.checkCategory(1)),
d: $data.selCategory === 2
}, $data.selCategory === 2 ? {} : {}, {
e: common_vendor.n($data.selCategory === 2 ? "category_item category_item_sel" : "category_item"),
f: common_vendor.o(($event) => $options.checkCategory(2)),
g: common_vendor.p({
d: common_vendor.p({
shape: "square",
bgColor: "#EEEEEEFF",
color: "#666666FF",
showAction: false,
placeholder: "搜索"
}),
h: common_vendor.o((...args) => $options.jumpSearch && $options.jumpSearch(...args)),
i: common_vendor.f($data.tabbarList, (item, index, i0) => {
e: common_vendor.o((...args) => $options.jumpSearch && $options.jumpSearch(...args)),
f: common_vendor.f($data.tabbarList, (item, index, i0) => {
return {
a: common_vendor.t(item.name),
b: index,
@@ -143,15 +153,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
e: common_vendor.o(($event) => $options.swichMenu(item, index), index)
};
}),
j: $data.scrollTop,
k: common_vendor.p({
g: $data.scrollTop,
h: common_vendor.p({
list: $data.bannerList,
height: "80px"
}),
l: common_vendor.p({
i: common_vendor.p({
loading: $data.tabbarContentLoading
}),
m: common_vendor.f($data.tabbarContentList, (item, index, i0) => {
j: common_vendor.f($data.tabbarContentList, (item, index, i0) => {
return common_vendor.e({
a: common_vendor.t(item.name),
b: item.foods && item.foods.length !== 0
@@ -161,7 +171,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
a: item1.icon ? item1.icon : "/static/common/def_img.jpg",
b: common_vendor.t(item1.name),
c: index1,
d: common_vendor.o(($event) => $options.jumpProduct(item1), index1)
d: common_vendor.o(($event) => $options.jumpSearch(item1), index1)
};
})
} : {
@@ -175,6 +185,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
}, {
f: index
});
}),
k: common_vendor.p({
tabIndex: 1
})
});
}
+1
View File
@@ -1,6 +1,7 @@
{
"navigationStyle": "custom",
"usingComponents": {
"custom-tab-bar": "../../components/custom-tab-bar",
"up-search": "../../uni_modules/uview-plus/components/u-search/u-search",
"up-swiper": "../../uni_modules/uview-plus/components/u-swiper/u-swiper",
"up-loading-page": "../../uni_modules/uview-plus/components/u-loading-page/u-loading-page",
+1 -1
View File
@@ -1 +1 @@
<view class="sort_warp data-v-1255c49a"><view class="sort_header data-v-1255c49a"><view class="sort_category_header data-v-1255c49a"><view class="{{['data-v-1255c49a', b]}}" bindtap="{{c}}"><view class="data-v-1255c49a">分类</view><view wx:if="{{a}}" class="category_item_sel_but data-v-1255c49a"></view></view><view class="{{['data-v-1255c49a', e]}}" bindtap="{{f}}"><view class="data-v-1255c49a">品牌</view><view wx:if="{{d}}" class="category_item_sel_but data-v-1255c49a"></view></view></view><view class="data-v-1255c49a" style="width:200rpx" bindtap="{{h}}"><up-search wx:if="{{g}}" class="data-v-1255c49a" u-i="1255c49a-0" bind:__l="__l" u-p="{{g}}"></up-search></view></view><view class="u-menu-wrap data-v-1255c49a"><scroll-view scroll-y scroll-with-animation class="u-tab-view menu-scroll-view data-v-1255c49a" scroll-top="{{j}}"><view wx:for="{{i}}" wx:for-item="item" wx:key="b" class="{{['u-tab-item', 'data-v-1255c49a', item.c]}}" data-current="{{item.d}}" catchtap="{{item.e}}"><text class="u-line-1 data-v-1255c49a">{{item.a}}</text></view></scroll-view><block class="data-v-1255c49a" u-s="{{['d']}}"><scroll-view scroll-y class="right-box data-v-1255c49a"><view class="data-v-1255c49a" style="padding:0rpx 20rpx"><up-swiper wx:if="{{k}}" class="data-v-1255c49a" u-i="1255c49a-1" bind:__l="__l" u-p="{{k}}"></up-swiper></view><view class="page-view data-v-1255c49a"><up-loading-page wx:if="{{l}}" class="data-v-1255c49a" u-i="1255c49a-2" bind:__l="__l" u-p="{{l}}"></up-loading-page><view wx:for="{{m}}" wx:for-item="item" wx:key="f" class="class-item data-v-1255c49a"><view class="item-title data-v-1255c49a"><text class="data-v-1255c49a">{{item.a}}</text></view><view wx:if="{{item.b}}" class="item-container data-v-1255c49a"><view wx:for="{{item.c}}" wx:for-item="item1" wx:key="c" class="thumb-box data-v-1255c49a" bindtap="{{item1.d}}"><image class="item-menu-image data-v-1255c49a" src="{{item1.a}}" mode=""></image><view class="item-menu-name data-v-1255c49a">{{item1.b}}</view></view></view><view wx:else class="not_order_warp data-v-1255c49a"><view class="not_order_warp_img data-v-1255c49a"><up-image wx:if="{{item.e}}" class="data-v-1255c49a" u-i="{{item.d}}" bind:__l="__l" u-p="{{item.e}}"></up-image></view><view class="not_order_msg_warp data-v-1255c49a">暂无分类,快去添加吧~</view></view></view></view></scroll-view></block></view></view>
<view class="sort_warp data-v-1255c49a"><view class="sort_header data-v-1255c49a"><view class="sort_category_header data-v-1255c49a"><view class="{{['data-v-1255c49a', b]}}" bindtap="{{c}}"><view class="data-v-1255c49a">分类</view><view wx:if="{{a}}" class="category_item_sel_but data-v-1255c49a"></view></view></view><view class="data-v-1255c49a" style="width:200rpx" bindtap="{{e}}"><up-search wx:if="{{d}}" class="data-v-1255c49a" u-i="1255c49a-0" bind:__l="__l" u-p="{{d}}"></up-search></view></view><view class="u-menu-wrap data-v-1255c49a"><scroll-view scroll-y scroll-with-animation class="u-tab-view menu-scroll-view data-v-1255c49a" scroll-top="{{g}}"><view wx:for="{{f}}" wx:for-item="item" wx:key="b" class="{{['u-tab-item', 'data-v-1255c49a', item.c]}}" data-current="{{item.d}}" catchtap="{{item.e}}"><text class="u-line-1 data-v-1255c49a">{{item.a}}</text></view></scroll-view><scroll-view scroll-y class="right-box data-v-1255c49a"><view class="data-v-1255c49a" style="padding:0rpx 20rpx"><up-swiper wx:if="{{h}}" class="data-v-1255c49a" u-i="1255c49a-1" bind:__l="__l" u-p="{{h}}"></up-swiper></view><view class="page-view data-v-1255c49a"><up-loading-page wx:if="{{i}}" class="data-v-1255c49a" u-i="1255c49a-2" bind:__l="__l" u-p="{{i}}"></up-loading-page><view wx:for="{{j}}" wx:for-item="item" wx:key="f" class="class-item data-v-1255c49a"><view class="item-title data-v-1255c49a"><text class="data-v-1255c49a">{{item.a}}</text></view><view wx:if="{{item.b}}" class="item-container data-v-1255c49a"><view wx:for="{{item.c}}" wx:for-item="item1" wx:key="c" class="thumb-box data-v-1255c49a" bindtap="{{item1.d}}"><image class="item-menu-image data-v-1255c49a" src="{{item1.a}}" mode=""></image><view class="item-menu-name data-v-1255c49a">{{item1.b}}</view></view></view><view wx:else class="not_order_warp data-v-1255c49a"><view class="not_order_warp_img data-v-1255c49a"><up-image wx:if="{{item.e}}" class="data-v-1255c49a" u-i="{{item.d}}" bind:__l="__l" u-p="{{item.e}}"></up-image></view><view class="not_order_msg_warp data-v-1255c49a">暂无分类,快去添加吧~</view></view></view></view></scroll-view></view><custom-tab-bar wx:if="{{k}}" class="data-v-1255c49a" u-i="1255c49a-4" bind:__l="__l" u-p="{{k}}"/></view>
+3 -3
View File
@@ -24,7 +24,7 @@
/* 垂直间距 */
.sort_warp.data-v-1255c49a {
padding: 130rpx 0rpx 0rpx;
height: calc(100vh - 130rpx);
height: calc(100vh - 270rpx);
}
.sort_header.data-v-1255c49a {
display: flex;
@@ -58,7 +58,7 @@
display: flex;
overflow: hidden;
margin-top: 20rpx;
height: calc(100vh - 216rpx);
height: calc(100vh - 356rpx);
}
.u-search-inner.data-v-1255c49a {
background-color: #eaeaea;
@@ -75,10 +75,10 @@
.u-tab-view.data-v-1255c49a {
width: 200rpx;
height: 100%;
background: #f6f6f6;
}
.u-tab-item.data-v-1255c49a {
height: 110rpx;
background: #f6f6f6;
box-sizing: border-box;
display: flex;
align-items: center;
+112 -104
View File
@@ -1,147 +1,155 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_raffle = require("../../api/raffle.js");
const common_assets = require("../../common/assets.js");
const _sfc_main = {
data() {
return {
deg: 0,
singleAngle: "",
// 每片扇形的角度
isStart: false,
areaNumber: 6,
speed: 16,
award: 1,
awardList: [
{
title: "特等奖"
},
{
title: "一等奖"
},
{
title: "二等奖"
},
{
title: "三等奖"
},
{
title: "四等奖"
},
{
title: "啥也没有"
}
]
// 顺时针对应每个奖项
lightImages: ["/static/turntable/bg_bs.png", "/static/turntable/bg_hs.png"],
prizesObj: {},
prizes: [],
lotteryList: []
// 中奖的列表ID
};
},
onLoad() {
this.getActivityList();
},
methods: {
jumpMine() {
common_vendor.index.switchTab({
url: "/pages/mine/mine"
});
},
init() {
},
// 点击开始抽奖
start() {
let { areaNumber } = this;
common_vendor.index.__f__("log", "at pages/turntable/turntable.vue:92", "areaNumber", areaNumber);
const singleAngle = 360 / areaNumber;
common_vendor.index.__f__("log", "at pages/turntable/turntable.vue:94", "singleAngle", singleAngle);
this.singleAngle = singleAngle;
let index = Math.floor(Math.random() * 6 + 1);
this.award = index;
common_vendor.index.__f__("log", "at pages/turntable/turntable.vue:98", "index", index);
this.begin(index);
},
begin(awardNumer) {
var deg = this.deg;
var singleAngle = this.singleAngle;
var speed = this.speed;
var isStart = this.isStart;
if (isStart)
return;
this.isStart = true;
let endAddAngle = 0;
common_vendor.index.__f__("log", "at pages/turntable/turntable.vue:110", "awardNumer", awardNumer);
common_vendor.index.__f__("log", "at pages/turntable/turntable.vue:111", "singleAngle", singleAngle);
endAddAngle = 360 - ((awardNumer - 1) * singleAngle + singleAngle / 2);
const rangeAngle = (Math.floor(Math.random() * 4) + 4) * 360;
common_vendor.index.__f__("log", "at pages/turntable/turntable.vue:116", endAddAngle);
let cAngle;
deg = 0;
this.timer = setInterval(() => {
if (deg < rangeAngle) {
deg += speed;
} else {
cAngle = (endAddAngle + rangeAngle - deg) / speed;
cAngle = cAngle > speed ? speed : cAngle < 1 ? 1 : cAngle;
deg += cAngle;
if (deg >= endAddAngle + rangeAngle) {
deg = endAddAngle + rangeAngle;
this.isStart = false;
clearInterval(this.timer);
this.turntableSuccess();
}
}
this.deg = deg;
}, 1e3 / 60);
},
// 抽奖完成后操作
turntableSuccess() {
const index = this.award - 1;
common_vendor.index.__f__("log", "at pages/turntable/turntable.vue:144", "bind:success", this.awardList[index]);
common_vendor.index.showToast({
title: `恭喜你获得${this.awardList[index].title}`,
icon: "none"
});
},
/**
* 开始多次抽奖
*/
drawsFun(count) {
common_vendor.index.__f__("log", "at pages/turntable/turntable.vue:154", "开始多次抽奖。。count", count);
this.start();
// 查询活动详情
async getActivityList() {
const resp = await api_raffle.getActivityList();
if (resp && resp.bizcode === 100) {
this.prizesObj = resp.data;
this.prizes = resp.data.prizes || [];
}
},
/**
* 跳转到中奖记录
*/
jumpWinningRecord() {
common_vendor.index.navigateTo({
url: "/pages/mine_winning_record/mine_winning_record"
});
},
// 用户点击开始,需要请求后台,去算出抽奖的选中的哪个
async startClick(num) {
const count = this.prizesObj.times;
if (!count || count === 0) {
common_vendor.index.showToast({
title: `您当前未获取到抽奖次数,快去获取吧~`,
icon: "none"
});
return;
}
if (count < num) {
return;
}
const params = {
id: this.prizesObj.id,
times: num
};
const result = await api_raffle.raffleExecute(params);
let runCount = null;
if (result && result.bizcode === 100) {
const total = this.prizesObj.times;
const data = result.data;
this.lotteryList = data;
this.prizesObj.times = total - num;
const prizes = this.prizes;
const lastData = data[data.length - 1];
for (let i = 0; i < prizes.length; i++) {
common_vendor.index.__f__("log", "at pages/turntable/turntable.vue:123", "prizes[i]", prizes[i]);
if (prizes[i].id === lastData.prizeId) {
runCount = i;
break;
}
}
}
if (!runCount && runCount !== 0) {
common_vendor.index.showToast({
title: `系统异常【抱歉,抽奖失败】~`,
icon: "none"
});
return;
}
this.$refs.luckyWheel.run(runCount);
},
//prize
Done() {
const lotteryList = this.lotteryList;
if (lotteryList && lotteryList.length !== 0) {
const data = lotteryList.map((item) => item.prizeName);
common_vendor.index.showToast({
title: `恭喜你获得【${data.join(",")}】`,
icon: "none",
duration: lotteryList.length > 1 ? 4e3 : 2e3
// 持续时长,单位ms
});
} else {
common_vendor.index.showToast({
title: `抱歉,抽奖失败`,
icon: "none"
});
}
}
}
};
if (!Array) {
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
_easycom_up_image2();
const _easycom_dengbo_lotteryWheel2 = common_vendor.resolveComponent("dengbo-lotteryWheel");
(_easycom_up_image2 + _easycom_dengbo_lotteryWheel2)();
}
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
const _easycom_dengbo_lotteryWheel = () => "../../uni_modules/dengbo-lotteryWheel/components/dengbo-lotteryWheel/dengbo-lotteryWheel.js";
if (!Math) {
_easycom_up_image();
(_easycom_up_image + _easycom_dengbo_lotteryWheel)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.o($options.jumpMine),
b: common_vendor.p({
a: common_vendor.p({
src: "/static/common/left_b.png",
width: "22",
height: "22",
bgColor: "#f1f6ff00"
}),
c: common_assets._imports_0,
d: common_vendor.s("-webkit-transform:rotate(" + $data.deg + "deg) translateZ(0);transform:rotate(" + $data.deg + "deg) translateZ(0)"),
b: common_vendor.o((...args) => $options.jumpMine && $options.jumpMine(...args)),
c: common_vendor.t($data.prizesObj.title || "幸运转盘百亿补贴"),
d: common_assets._imports_0,
e: common_assets._imports_1,
f: common_vendor.o((...args) => $options.start && $options.start(...args)),
g: common_vendor.o(($event) => $options.drawsFun(1)),
h: common_vendor.o(($event) => $options.drawsFun(10)),
i: common_vendor.o(($event) => $options.drawsFun(100)),
j: common_vendor.o(($event) => $options.drawsFun(365)),
k: common_vendor.o($options.jumpWinningRecord),
l: common_vendor.p({
f: common_vendor.o(($event) => $options.startClick(1)),
g: common_vendor.sr("luckyWheel", "573c7e2f-1"),
h: common_vendor.o(($event) => $options.startClick(1)),
i: common_vendor.o($options.Done),
j: common_vendor.p({
prizes: $data.prizes,
size: 626,
duration: 5e3,
lightImgs: $data.lightImages,
customStyle: "borderRadius: 50%;"
}),
k: common_vendor.t($data.prizesObj.times || 0),
l: common_vendor.n($data.prizesObj.times < 1 ? "draws_item_warp draws_item_warp_no" : "draws_item_warp"),
m: common_vendor.o(($event) => $options.startClick(1)),
n: common_vendor.n($data.prizesObj.times < 10 ? "draws_item_warp draws_item_warp_no" : "draws_item_warp"),
o: common_vendor.o(($event) => $options.startClick(10)),
p: common_vendor.n($data.prizesObj.times < 20 ? "draws_item_warp draws_item_warp_no" : "draws_item_warp"),
q: common_vendor.o(($event) => $options.startClick(20)),
r: common_vendor.n($data.prizesObj.times < 50 ? "draws_item_warp draws_item_warp_no" : "draws_item_warp"),
s: common_vendor.o(($event) => $options.startClick(50)),
t: $data.prizesObj.ruleDescr,
v: common_vendor.p({
src: "/static/turntable/record.png",
width: "14",
height: "14",
bgColor: "#f1f6ff00"
})
}),
w: common_vendor.o((...args) => $options.jumpWinningRecord && $options.jumpWinningRecord(...args))
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
@@ -1,6 +1,7 @@
{
"navigationStyle": "custom",
"usingComponents": {
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image"
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
"dengbo-lottery-wheel": "../../uni_modules/dengbo-lotteryWheel/components/dengbo-lotteryWheel/dengbo-lotteryWheel"
}
}
@@ -1 +1 @@
<view class="turntable_warp"><view class="turntable_header_warp"><view class="header_title_warp"><up-image wx:if="{{b}}" bindclick="{{a}}" u-i="573c7e2f-0" bind:__l="__l" u-p="{{b}}"></up-image><view class="title_">幸运转盘百亿补贴</view></view><view class="turntable_content_warp"><view class="frequency_warp"><view class="turntable_wp sol-class"><image src="{{c}}" style="{{d}}"></image><view class="turntable_pointer" bindtap="{{f}}"><image src="{{e}}"></image></view></view><view class="draws_warp"><view class="draws_item_warp" bindtap="{{g}}">抽1次</view><view class="draws_item_warp" bindtap="{{h}}">抽10次</view><view class="draws_item_warp" bindtap="{{i}}">抽100次</view><view class="draws_item_warp" bindtap="{{j}}">抽356次</view></view></view></view><view class="rule"><view class="rule_title"><view class="title">活动规则</view></view><view class="rule_content">内容XXXXXXXXXXXXXXXXXXXXXXXX</view></view></view><view class="winning_record"><view style="margin-top:10rpx"><up-image wx:if="{{l}}" bindclick="{{k}}" u-i="573c7e2f-1" bind:__l="__l" u-p="{{l}}"></up-image></view><view style="margin-left:10rpx">中奖记录</view></view></view>
<view class="turntable_warp"><view class="turntable_header_warp"><view class="header_title_warp"><view style="width:100rpx;height:100rpx;display:flex;align-items:center" bindtap="{{b}}"><up-image wx:if="{{a}}" u-i="573c7e2f-0" bind:__l="__l" u-p="{{a}}"></up-image></view><view class="title_">{{c}}</view></view><view class="turntable_content_warp"><view class="frequency_warp"><view class="content"><view class="lottery"><dengbo-lottery-wheel wx:if="{{j}}" class="r" u-s="{{['bg','pointer']}}" bindrun="{{h}}" binddone="{{i}}" u-r="luckyWheel" u-i="573c7e2f-1" bind:__l="__l" u-p="{{j}}"><image src="{{d}}" style="width:100%;height:100%" slot="bg"/><image src="{{e}}" style="width:50px;height:50px" mode="widthFix" bindtap="{{f}}" slot="pointer"/></dengbo-lottery-wheel></view><view class="draws_number"> 还剩 {{k}} 次抽奖 </view></view><view class="draws_warp"><view class="{{l}}" bindtap="{{m}}">抽1次</view><view class="{{n}}" bindtap="{{o}}">抽10次</view><view class="{{p}}" bindtap="{{q}}">抽20次</view><view class="{{r}}" bindtap="{{s}}">抽50次</view></view></view></view><view class="rule"><view class="rule_title"><view class="title">活动规则</view></view><view class="rule_content"><rich-text nodes="{{t}}"/></view></view></view><view class="winning_record" bindtap="{{w}}"><view style="margin-top:10rpx"><up-image wx:if="{{v}}" u-i="573c7e2f-2" bind:__l="__l" u-p="{{v}}"></up-image></view><view style="margin-left:10rpx">中奖记录</view></view></view>
File diff suppressed because one or more lines are too long
+15 -8
View File
@@ -6,7 +6,7 @@ const _sfc_main = {
data() {
return {
swiperList: [
"/static/home/banner03.png"
"/static/home/banner05.png"
],
productList: [],
productListLoading: false
@@ -84,16 +84,23 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
height: "140"
}),
f: common_vendor.p({
src: "/static/product/bk_title_bg.png",
width: "200",
height: "20"
src: "/static/product/bk_l.png",
width: "60",
height: "2",
bgColor: "#f1f6ff00"
}),
g: common_vendor.p({
src: "/static/product/bk_r.png",
width: "60",
height: "2",
bgColor: "#f1f6ff00"
}),
h: common_vendor.p({
loading: $data.productListLoading
}),
h: common_vendor.f($data.productList, (item, index, i0) => {
i: common_vendor.f($data.productList, (item, index, i0) => {
return {
a: "085f0530-5-" + i0,
a: "085f0530-6-" + i0,
b: common_vendor.p({
src: item.url,
width: "100",
@@ -102,8 +109,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
}),
c: common_vendor.t(item.title),
d: common_vendor.t(item.adPrice),
e: common_vendor.t(item.adPrice),
f: common_vendor.t(item.adPrice),
e: common_vendor.t(item.adPrice - item.price),
f: common_vendor.t(item.price),
g: index,
h: common_vendor.o(($event) => $options.jumpInfo(item), index)
};
+1 -1
View File
@@ -1 +1 @@
<view class="preference_warp data-v-085f0530"><view class="header_comm data-v-085f0530"><up-image wx:if="{{b}}" class="data-v-085f0530" bindclick="{{a}}" u-i="085f0530-0" bind:__l="__l" u-p="{{b}}"></up-image><view class="data-v-085f0530">爆款专区</view><up-image wx:if="{{d}}" class="data-v-085f0530" bindclick="{{c}}" u-i="085f0530-1" bind:__l="__l" u-p="{{d}}"></up-image></view><view class="preference_content_warp data-v-085f0530"><up-swiper wx:if="{{e}}" class="data-v-085f0530" u-i="085f0530-2" bind:__l="__l" u-p="{{e}}"></up-swiper><view class="preference_title data-v-085f0530"><up-image wx:if="{{f}}" class="data-v-085f0530" u-i="085f0530-3" bind:__l="__l" u-p="{{f}}"></up-image><view class="msg data-v-085f0530">款款都是爆款</view></view><view class="preference_product data-v-085f0530"><up-loading-page wx:if="{{g}}" class="data-v-085f0530" u-i="085f0530-4" bind:__l="__l" u-p="{{g}}"></up-loading-page><view wx:for="{{h}}" wx:for-item="item" wx:key="g" class="product_item data-v-085f0530" bindtap="{{item.h}}"><view class="product_item_left data-v-085f0530"><up-image wx:if="{{item.b}}" class="data-v-085f0530" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image><view class="product_item_left_bz product_item_left_bz_img data-v-085f0530"><view class="data-v-085f0530">爆款专区</view></view></view><view class="product_item_right data-v-085f0530"><view class="title_warp data-v-085f0530">{{item.c}}</view><view class="price_warp data-v-085f0530"><view class="price_o_warp data-v-085f0530"><view class="price_o_title_warp data-v-085f0530">原价</view><view class="price_o_value_warp data-v-085f0530"><text class="data-v-085f0530">¥</text><text class="data-v-085f0530">{{item.d}}</text></view></view><view class="price_zq_warp data-v-085f0530"><view class="price_lj_warp data-v-085f0530">专区立省{{item.e}}元</view><view class="price_ds_warp data-v-085f0530">到手¥<text class="data-v-085f0530" style="font-size:31rpx">{{item.f}}</text></view></view></view></view></view></view></view></view>
<view class="preference_warp data-v-085f0530"><view class="header_comm data-v-085f0530"><up-image wx:if="{{b}}" class="data-v-085f0530" bindclick="{{a}}" u-i="085f0530-0" bind:__l="__l" u-p="{{b}}"></up-image><view class="data-v-085f0530">德商汇优品专区</view><up-image wx:if="{{d}}" class="data-v-085f0530" bindclick="{{c}}" u-i="085f0530-1" bind:__l="__l" u-p="{{d}}"></up-image></view><view class="preference_content_warp data-v-085f0530"><up-swiper wx:if="{{e}}" class="data-v-085f0530" u-i="085f0530-2" bind:__l="__l" u-p="{{e}}"></up-swiper><view class="preference_title data-v-085f0530"><up-image wx:if="{{f}}" class="data-v-085f0530" u-i="085f0530-3" bind:__l="__l" u-p="{{f}}"></up-image><view class="msg data-v-085f0530">德商汇优品</view><up-image wx:if="{{g}}" class="data-v-085f0530" u-i="085f0530-4" bind:__l="__l" u-p="{{g}}"></up-image></view><view class="preference_product data-v-085f0530"><up-loading-page wx:if="{{h}}" class="data-v-085f0530" u-i="085f0530-5" bind:__l="__l" u-p="{{h}}"></up-loading-page><view wx:for="{{i}}" wx:for-item="item" wx:key="g" class="product_item data-v-085f0530" bindtap="{{item.h}}"><view class="product_item_left data-v-085f0530"><up-image wx:if="{{item.b}}" class="data-v-085f0530" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image><view class="product_item_left_bz product_item_left_bz_img data-v-085f0530"><view class="data-v-085f0530">爆款专区</view></view></view><view class="product_item_right data-v-085f0530"><view class="title_warp data-v-085f0530">{{item.c}}</view><view class="price_warp data-v-085f0530"><view class="price_o_warp data-v-085f0530"><view class="price_o_title_warp data-v-085f0530">原价</view><view class="price_o_value_warp data-v-085f0530"><text class="data-v-085f0530">¥</text><text class="data-v-085f0530">{{item.d}}</text></view></view><view class="price_zq_warp data-v-085f0530"><view class="price_lj_warp data-v-085f0530">爆款立减{{item.e}}元</view><view class="price_ds_warp data-v-085f0530">到手¥<text class="data-v-085f0530" style="font-size:31rpx">{{item.f}}</text></view></view></view></view></view></view></view></view>
File diff suppressed because one or more lines are too long