增加新模块

This commit is contained in:
何江明
2025-03-20 08:46:07 +08:00
parent 15014e22aa
commit 2ae62b59ed
1729 changed files with 94700 additions and 4232 deletions
-25
View File
@@ -1,25 +0,0 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
data() {
return {};
},
methods: {
showModel() {
common_vendor.index.showModal({
content: this.$t("api.message"),
success: (res) => {
common_vendor.index.__f__("log", "at pages/api/api.vue:17", res);
}
});
}
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.o((...args) => $options.showModel && $options.showModel(...args))
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/api/api.js.map
-5
View File
@@ -1,5 +0,0 @@
{
"navigationBarTitleText": "API",
"enablePullDownRefresh": false,
"usingComponents": {}
}
-1
View File
@@ -1 +0,0 @@
<view class="container"><button bindtap="{{a}}">uni.showModal</button></view>
View File
@@ -1,24 +0,0 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
data() {
return {
title: this.$t("")
};
},
methods: {}
};
if (!Array) {
const _easycom_no_data2 = common_vendor.resolveComponent("no-data");
_easycom_no_data2();
}
const _easycom_no_data = () => "../../uni_modules/no-data/components/no-data/no-data.js";
if (!Math) {
_easycom_no_data();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/component/component.js.map
@@ -1,7 +0,0 @@
{
"navigationBarTitleText": "Component",
"enablePullDownRefresh": false,
"usingComponents": {
"no-data": "../../uni_modules/no-data/components/no-data/no-data"
}
}
@@ -1 +0,0 @@
<view class="container"><no-data u-i="a3e3830c-0" bind:__l="__l"></no-data></view>
@@ -0,0 +1,29 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
data() {
return {};
},
methods: {}
};
if (!Array) {
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
_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.p({
src: "/static/common/not_order.png",
width: "80",
height: "80",
bgColor: "#f1f6ff00"
})
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-04033f11"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/hash_union/hash_union.js.map
@@ -0,0 +1,6 @@
{
"navigationStyle": "custom",
"usingComponents": {
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image"
}
}
@@ -0,0 +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>
@@ -0,0 +1,34 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/* uni.scss */
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
.hash_union_warp.data-v-04033f11 {
height: 100vh;
background-color: #F5F5F5;
}
.hash_union_warp .not_order_warp.data-v-04033f11 {
display: grid;
justify-content: center;
margin-top: 0;
padding-top: 400rpx;
}
+306
View File
@@ -0,0 +1,306 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const choiceness = () => "../../components/choiceness/choiceness.js";
const _sfc_main = {
components: { choiceness },
data() {
return {
swiperList: [
"/static/home/banner02.png",
"/static/home/banner01.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"
}
],
languageShow: false,
// 语言选项
languageList: [
{
name: "中文",
key: "CN"
},
{
name: "英文",
key: "EN"
}
],
currentLanguage: {},
yxProduct: [
{
id: 1,
name: "中文中文中文中文中文",
url: "/static/common/product_def.png",
price: 99
},
{
id: 2,
name: "中文中文中文中文",
url: "/static/common/product_def.png",
price: 99
},
{
id: 3,
name: "中文中文中文中文中文",
url: "/static/common/product_def.png",
price: 99
}
],
hotList: [
{
id: 1,
name: "中文中文中文中文中文",
url: "/static/common/product_def.png",
price: 99
},
{
id: 2,
name: "中文中文中文中文",
url: "/static/common/product_def.png",
price: 99
},
{
id: 3,
name: "中文中文中文中文中文",
url: "/static/common/product_def.png",
price: 99
},
{
id: 4,
name: "中文中文中文中文中文",
url: "/static/common/product_def.png",
price: 99
}
]
};
},
methods: {
jumpTurntable() {
common_vendor.index.navigateTo({
url: "/pages/turntable/turntable"
});
},
jumpPrdference() {
common_vendor.index.navigateTo({
url: "/pages/preference/preference"
});
},
jumpWelcome() {
common_vendor.index.navigateTo({
url: "/pages/welcome/welcome"
});
},
jumpSearch() {
common_vendor.index.navigateTo({
url: "/pages/search/search"
});
}
}
};
if (!Array) {
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
const _easycom_up_swiper2 = common_vendor.resolveComponent("up-swiper");
const _easycom_choiceness2 = common_vendor.resolveComponent("choiceness");
const _easycom_up_action_sheet2 = common_vendor.resolveComponent("up-action-sheet");
(_easycom_up_image2 + _easycom_up_swiper2 + _easycom_choiceness2 + _easycom_up_action_sheet2)();
}
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_choiceness = () => "../../components/choiceness/choiceness.js";
const _easycom_up_action_sheet = () => "../../uni_modules/uview-plus/components/u-action-sheet/u-action-sheet.js";
if (!Math) {
(_easycom_up_image + _easycom_up_swiper + _easycom_choiceness + _easycom_up_action_sheet)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.o(_ctx.jumpMine),
b: common_vendor.p({
src: "/static/home/logo.png",
width: "104",
height: "30",
bgColor: "#f1f6ff00"
}),
c: 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({
list: $data.swiperList,
height: "140",
radius: "10"
}),
j: common_vendor.f($data.sortList, (item, k0, i0) => {
return {
a: "07e72d3c-4-" + i0,
b: common_vendor.p({
src: item.url,
width: "40",
height: "32",
bgColor: "#f1f6ff00"
}),
c: common_vendor.t(item.name),
d: item.id
};
}),
k: common_vendor.o($options.jumpTurntable),
l: common_vendor.p({
src: "/static/home/turntable.png",
width: "100%",
height: "134",
bgColor: "#f1f6ff00"
}),
m: common_vendor.p({
src: "/static/common/right_y_st2.png",
width: "12",
height: "12",
bgColor: "#f1f6ff00"
}),
n: common_vendor.o((...args) => $options.jumpPrdference && $options.jumpPrdference(...args)),
o: common_vendor.f($data.yxProduct, (item, k0, i0) => {
return {
a: "07e72d3c-7-" + i0,
b: common_vendor.p({
src: item.url,
width: "100%",
height: "100",
bgColor: "#f1f6ff00",
shape: "square",
radius: "16"
}),
c: common_vendor.t(item.name),
d: item.id
};
}),
p: common_vendor.p({
src: "/static/common/right_y_st2.png",
width: "12",
height: "12",
bgColor: "#f1f6ff00"
}),
q: common_vendor.o((...args) => $options.jumpWelcome && $options.jumpWelcome(...args)),
r: common_vendor.f($data.yxProduct, (item, k0, i0) => {
return {
a: "07e72d3c-9-" + i0,
b: common_vendor.p({
src: item.url,
width: "100%",
height: "100",
bgColor: "#f1f6ff00",
shape: "square",
radius: "16"
}),
c: common_vendor.t(item.name),
d: item.id
};
}),
s: common_vendor.p({
src: "/static/home/hot.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
}),
t: common_vendor.p({
src: "/static/common/right_y_st.png",
width: "12",
height: "12",
bgColor: "#f1f6ff00"
}),
v: common_vendor.f($data.hotList, (item, k0, i0) => {
return {
a: "07e72d3c-12-" + i0,
b: common_vendor.p({
src: item.url,
width: "100%",
height: "100",
bgColor: "#f1f6ff00"
}),
c: common_vendor.t(item.name),
d: "07e72d3c-13-" + i0,
e: common_vendor.t(item.price),
f: item.id
};
}),
w: common_vendor.p({
src: "/static/home/hot_price.png",
width: "12",
height: "12",
bgColor: "#f1f6ff00"
}),
x: common_vendor.p({
src: "/static/common/right.png",
width: "16",
height: "16",
bgColor: "#f1f6ff00"
}),
y: common_vendor.o(($event) => $data.languageShow = false),
z: common_vendor.p({
actions: $data.languageList,
show: $data.languageShow,
cancelText: "取消"
})
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-07e72d3c"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/home/home.js.map
+9
View File
@@ -0,0 +1,9 @@
{
"navigationStyle": "custom",
"usingComponents": {
"choiceness": "../../components/choiceness/choiceness",
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
"up-swiper": "../../uni_modules/uview-plus/components/u-swiper/u-swiper",
"up-action-sheet": "../../uni_modules/uview-plus/components/u-action-sheet/u-action-sheet"
}
}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
View File
@@ -1,4 +1,5 @@
{
"navigationBarTitleText": "Hello i18n",
"navigationStyle": "custom",
"usingComponents": {}
}
@@ -0,0 +1,77 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
data() {
return {};
},
methods: {
// 保存图片
// async saveImage(){
// const shareImagesObj = this.shareImagesArr[this.shareImagesIndex];
// const params = {
// id:this.shareId,
// imgId:shareImagesObj.id,
// }
// 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"
});
},
fail: function(err) {
common_vendor.index.showToast({
title: "图片保存失败",
icon: "error"
});
}
});
},
fail: function(err) {
common_vendor.index.showToast({
title: "图片保存失败",
icon: "error"
});
}
});
}
}
};
if (!Array) {
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
_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.p({
src: "/static/invite/bg.png",
width: "60",
height: "60",
bgColor: "#f1f6ff00"
}),
b: common_vendor.o(($event) => $options.saveHeadImgFile(null))
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-2c3d3045"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/invite_friends/invite_friends.js.map
@@ -0,0 +1,10 @@
{
"navigationBarTitleText": "邀请好友",
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black",
"enablePullDownRefresh": false,
"navigationStyle": "default",
"usingComponents": {
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image"
}
}
@@ -0,0 +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>
File diff suppressed because one or more lines are too long
+235
View File
@@ -0,0 +1,235 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const utils_enumUtils = require("../../utils/enumUtils.js");
const api_common = require("../../api/common.js");
const api_login = require("../../api/login.js");
const utils_auth = require("../../utils/auth.js");
const InputCodeComm = () => "../../components/code-comm/code-comm.js";
const _sfc_main = {
components: {
InputCodeComm
},
data() {
return {
form: {
name: null,
password: null,
code: null
},
inputCss: {
"height": "80rpx",
"background": "#F3F3F3FF",
"border-radius": "30rpx",
"border": "0rpx",
"padding-left": "16px"
},
loginWay: "password",
isShow: false,
// 是否显示
isPolicy: false,
// 是否同意
countdown: false
// 清空倒计时
};
},
methods: {
jumpHome() {
common_vendor.index.switchTab({
url: "/pages/home/home"
});
},
async loginFun() {
const then = this;
const form = this.form;
const params = {};
if (!this.isPolicy) {
this.$refs.uToastRef.show({
type: "error",
message: "请阅读完相关协议以及政策,并且勾选同意选项"
});
return;
}
let response = {};
if (this.loginWay === "password")
;
else {
params.mobile = form.name;
params.smsCode = form.code;
response = await api_login.loginbysms(params);
}
const data = response.data;
utils_auth.setStorageFun(utils_auth.TOKEN_NAME, data.token);
utils_auth.setStorageFun(utils_auth.USER_KEY, "");
const userInfo = {
avatar: data.avatarUrl,
name: data.name,
userId: data.userId
};
utils_auth.setStorageFun(utils_auth.USER_DATA, userInfo);
let currentTimeStamp = (/* @__PURE__ */ new Date()).getTime();
utils_auth.setStorageFun(utils_auth.USER_LOGIN_TIME, currentTimeStamp);
this.$refs.uToastRef.show({
type: "success",
message: response.msg
});
setTimeout(() => {
then.jumpHome();
}, 2e3);
},
checkNameParam(val) {
common_vendor.index.__f__("log", "at pages/login/login.vue:175", "val", val);
},
checkParam(val) {
common_vendor.index.__f__("log", "at pages/login/login.vue:178", "val", val);
},
/**
* 获取手机验证码
*/
async getMobileCode() {
const form = this.form;
if (!form.name) {
this.$refs.uToastRef.show({
type: "error",
message: "请输入账号"
});
return;
}
this.countdown = true;
const params = {
mobile: form.name,
type: utils_enumUtils.SMS_TYPE.LOGIN
};
const response = await api_common.getUserList(params);
if (response && response.bizcode === 100) {
this.$refs.uToastRef.show({
type: "success",
message: response.msg
});
} else {
this.countdown = false;
}
},
jumpRegister() {
common_vendor.index.navigateTo({
url: "/pages/register/register"
});
}
}
};
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_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_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_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_checkbox + _easycom_up_toast)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: common_vendor.p({
src: "/static/logo.png",
width: "90",
height: "90",
bgColor: "#f1f6ff00",
radius: "10"
}),
b: common_vendor.p({
src: "/static/logo_z.png",
width: "100",
height: "40",
bgColor: "#f1f6ff00"
}),
c: common_vendor.o($options.checkNameParam),
d: common_vendor.o(($event) => $data.form.name = $event),
e: common_vendor.p({
placeholder: "请输入手机号/账户名称",
border: "surround",
customStyle: $data.inputCss,
modelValue: $data.form.name
}),
f: $data.loginWay === "password"
}, $data.loginWay === "password" ? common_vendor.e({
g: $data.isShow
}, $data.isShow ? {
h: common_vendor.o(($event) => {
$data.isShow = false;
}),
i: common_vendor.p({
src: "/static/login/show.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
})
} : {
j: common_vendor.o(($event) => {
$data.isShow = true;
}),
k: common_vendor.p({
src: "/static/login/hidden.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
})
}, {
l: common_vendor.o($options.checkParam),
m: common_vendor.o(($event) => $data.form.password = $event),
n: common_vendor.p({
placeholder: "请输入密码",
border: "surround",
customStyle: $data.inputCss,
type: $data.isShow ? "text" : "password",
modelValue: $data.form.password
})
}) : common_vendor.e({
o: $data.countdown
}, $data.countdown ? {
p: common_vendor.o(($event) => $data.countdown = false),
q: common_vendor.p({
time: 60 * 1e3,
format: "ss"
})
} : {
r: common_vendor.o((...args) => $options.getMobileCode && $options.getMobileCode(...args))
}, {
s: common_vendor.o(($event) => $data.form.code = $event),
t: common_vendor.p({
placeholder: "请输入验证码",
border: "surround",
customStyle: $data.inputCss,
modelValue: $data.form.code
})
}), {
v: common_vendor.o((...args) => $options.loginFun && $options.loginFun(...args)),
w: $data.loginWay === "password"
}, $data.loginWay === "password" ? {
x: common_vendor.o(($event) => $data.loginWay = "code")
} : {}, {
y: $data.loginWay === "code"
}, $data.loginWay === "code" ? {
z: common_vendor.o(($event) => $data.loginWay = "password")
} : {}, {
A: common_vendor.o((...args) => $options.jumpRegister && $options.jumpRegister(...args)),
B: common_vendor.o(($event) => $data.isPolicy = $event),
C: common_vendor.p({
name: "isCheck",
usedAlone: true,
shape: "circle",
activeColor: "#FF7C41",
size: "19",
iconSize: "18",
checked: $data.isPolicy
}),
D: common_vendor.sr("uToastRef", "e4e4508d-9")
});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-e4e4508d"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/login/login.js.map
+10
View File
@@ -0,0 +1,10 @@
{
"navigationStyle": "custom",
"usingComponents": {
"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-checkbox": "../../uni_modules/uview-plus/components/u-checkbox/u-checkbox",
"up-toast": "../../uni_modules/uview-plus/components/u-toast/u-toast"
}
}
+1
View File
@@ -0,0 +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="{{v}}"> 登录 </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="{{C}}" class="data-v-e4e4508d" u-s="{{['label']}}" u-i="e4e4508d-8" bind:__l="__l" bindupdateChecked="{{B}}" u-p="{{C}}"><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-9" bind:__l="__l"></up-toast></view>
+64
View File
@@ -0,0 +1,64 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/* uni.scss */
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
.login_warp.data-v-e4e4508d {
height: calc(100vh - 460rpx);
padding: 250rpx 50rpx 0;
}
.login_logo_warp.data-v-e4e4508d {
display: grid;
justify-content: center;
}
.login_info.data-v-e4e4508d {
margin-top: 60rpx;
}
.login_info .login_info_item.data-v-e4e4508d {
margin-bottom: 40rpx;
}
.login_info .code_msg.data-v-e4e4508d {
font-size: 36rpx;
color: #FF7C41;
}
.login_comm_but.data-v-e4e4508d {
background: #CCCCCC;
border-radius: 20rpx;
width: 100%;
text-align: center;
font-weight: 500;
font-size: 32rpx;
color: #999999;
padding: 28rpx 0;
}
.login_comm_but_yes.data-v-e4e4508d {
background: #FF7C41;
color: #ffffff;
}
.cut_way_warp.data-v-e4e4508d {
display: flex;
justify-content: space-between;
font-weight: 500;
font-size: 28rpx;
color: #999999;
margin-top: 20rpx;
}
+287
View File
@@ -0,0 +1,287 @@
"use strict";
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 _sfc_main = {
data() {
return {
userData: {},
// 当前登录对象
orderTemplList: [
{
id: utils_enumUtils.ORDER_TYPE.UNPAID,
title: "待支付",
url: "/static/mine/order_unpaid.png",
path: "/pages/mine_order/mine_order"
},
{
id: utils_enumUtils.ORDER_TYPE.UNSHIPPED,
title: "待发货",
url: "/static/mine/order_unshipped.png",
path: "/pages/mine_order/mine_order"
},
{
id: utils_enumUtils.ORDER_TYPE.NOT_RECEIVE,
title: "待收货",
url: "/static/mine/order_notReceive.png",
path: "/pages/mine_order/mine_order"
},
{
id: utils_enumUtils.ORDER_TYPE.AFTER_SALE,
title: "退款售后",
url: "/static/mine/order_afterSale.png",
path: "/pages/mine_order/mine_order"
}
],
applyList: [
{
id: 1,
title: "钱包",
url: "/static/mine/apply_purse.png",
path: "/pages/mine_purse/mine_purse"
},
{
id: 2,
title: "抽奖",
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"
},
{
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"
},
{
id: 3,
title: "邀请好友",
url: "/static/mine/tool_invite.png",
path: "/pages/invite_friends/invite_friends"
},
{
id: 4,
title: "加速次数",
url: "/static/mine/tool_js.png"
},
{
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"
},
{
id: 10,
title: "银行卡管理",
url: "/static/mine/tool_card.png",
path: "/pages/mine_bank_card/mine_bank_card"
}
]
// 工具
};
},
onShow: function() {
this.userData = utils_auth.getStorageFun(utils_auth.USER_DATA);
},
methods: {
copyData: utils_index.copyData,
/**
* 跳转到工具
* @param {Object} item
*/
jumpTool(item) {
if (item.path) {
common_vendor.index.navigateTo({
url: item.path
});
}
},
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;
} else {
path = "/pages/mine_order/mine_order?type=0";
}
common_vendor.index.navigateTo({
url: path
});
},
jumpLogin() {
common_vendor.index.navigateTo({
url: "/pages/login/login"
});
}
}
};
if (!Array) {
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
_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: $data.userData && Object.keys($data.userData).length !== 0
}, $data.userData && Object.keys($data.userData).length !== 0 ? {
b: common_vendor.p({
src: "/static/mine/avatar.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",
bgColor: "#f1f6ff00"
}),
e: common_vendor.t($data.userData.userId),
f: common_vendor.o(($event) => $options.copyData($data.userData.userId)),
g: common_vendor.p({
src: "/static/common/copy.png",
width: "14",
height: "14",
bgColor: "#f1f6ff00"
})
} : {
h: common_vendor.p({
src: "/static/mine/avater_not.png",
shape: "circle",
width: "80",
height: "80",
bgColor: "#f1f6ff00"
}),
i: 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))
}, {
k: 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) => {
return {
a: "81c02944-6-" + i0,
b: common_vendor.p({
src: item.url,
width: "30",
height: "30",
bgColor: "#f1f6ff00"
}),
c: common_vendor.t(item.title),
d: item.id,
e: common_vendor.o(($event) => $options.jumpOrder(item), item.id)
};
}),
n: common_vendor.f($data.applyList, (item, k0, i0) => {
return {
a: "81c02944-7-" + i0,
b: common_vendor.p({
src: item.url,
width: "36",
height: "36",
bgColor: "#f1f6ff00"
}),
c: common_vendor.t(item.title),
d: item.id,
e: common_vendor.o(($event) => $options.jumpTool(item), item.id)
};
}),
o: common_vendor.p({
src: "/static/common/right_y.png",
width: "14",
height: "14",
bgColor: "#f1f6ff00"
}),
p: common_vendor.p({
src: "/static/mine/enter_sj.png",
width: "50",
height: "50",
bgColor: "#f1f6ff00"
}),
q: common_vendor.p({
src: "/static/common/right_y.png",
width: "14",
height: "14",
bgColor: "#f1f6ff00"
}),
r: common_vendor.p({
src: "/static/mine/enter_pp.png",
width: "50",
height: "50",
bgColor: "#f1f6ff00"
}),
s: common_vendor.f($data.toolList, (item, k0, i0) => {
return {
a: "81c02944-12-" + i0,
b: common_vendor.p({
src: item.url,
width: "30",
height: "30",
bgColor: "#f1f6ff00"
}),
c: common_vendor.t(item.title),
d: item.id,
e: common_vendor.o(($event) => $options.jumpTool(item), item.id)
};
})
});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine/mine.js.map
+6
View File
@@ -0,0 +1,6 @@
{
"navigationStyle": "custom",
"usingComponents": {
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image"
}
}
+1
View File
@@ -0,0 +1 @@
<view class="mine_warp"><view class="mine_header"><view wx:if="{{a}}" class="mine_data"><up-image wx:if="{{b}}" u-i="81c02944-0" bind:__l="__l" u-p="{{b}}"></up-image><view class="mine_info"><view class="mine_info_name"><text style="margin-right:20rpx">{{c}}</text><up-image wx:if="{{d}}" u-i="81c02944-1" bind:__l="__l" u-p="{{d}}"></up-image></view><view class="mine_info_id"><text style="margin-right:20rpx">ID:{{e}}</text><up-image wx:if="{{g}}" bindclick="{{f}}" u-i="81c02944-2" bind:__l="__l" u-p="{{g}}"></up-image></view></view></view><view wx:else class="mine_no_login_data"><view class="mine_data"><up-image wx:if="{{h}}" u-i="81c02944-3" bind:__l="__l" u-p="{{h}}"></up-image><view class="mine_info_not_login"> 未登录 </view></view><view bindtap="{{j}}" class="login_warp"><text style="margin-right:10rpx">立即登录</text><up-image wx:if="{{i}}" u-i="81c02944-4" bind:__l="__l" u-p="{{i}}"></up-image></view></view></view><view class="mine_content_warp"><view class="mine_content_comm_warp"><view class="mine_order_title"><view>我的订单</view><view class="mine_order_title_all" bindtap="{{l}}"><view style="margin-right:10rpx">全部</view><up-image wx:if="{{k}}" u-i="81c02944-5" bind:__l="__l" u-p="{{k}}"></up-image></view></view><view class="mine_order_list"><view wx:for="{{m}}" wx:for-item="item" wx:key="d" class="mine_fontsize_comm_warp order_list_item" bindtap="{{item.e}}"><up-image wx:if="{{item.b}}" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image><view>{{item.c}}</view></view></view></view><view class="mine_content_comm_warp mine_top_comm_warp apply_list"><view wx:for="{{n}}" wx:for-item="item" wx:key="d" class="apply_item mine_fontsize_comm_warp" bindtap="{{item.e}}"><up-image wx:if="{{item.b}}" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image><view>{{item.c}}</view></view></view><view class="mine_top_comm_warp enter_list"><view class="enter_item"><view><view class="enter_title">商家入驻</view><view class="enter_apply"><text class="enter_apply_title">申请</text><up-image wx:if="{{o}}" u-i="81c02944-8" bind:__l="__l" u-p="{{o}}"></up-image></view></view><up-image wx:if="{{p}}" u-i="81c02944-9" bind:__l="__l" u-p="{{p}}"></up-image></view><view class="enter_item"><view><view class="enter_title">企业/品牌入驻</view><view class="enter_apply"><text class="enter_apply_title">申请</text><up-image wx:if="{{q}}" u-i="81c02944-10" bind:__l="__l" u-p="{{q}}"></up-image></view></view><up-image wx:if="{{r}}" u-i="81c02944-11" bind:__l="__l" u-p="{{r}}"></up-image></view></view><view class="mine_content_comm_warp mine_top_comm_warp mine_tool_warp"><view class="mine_tool_title">服务工具</view><view class="tool_list"><view wx:for="{{s}}" wx:for-item="item" wx:key="d" class="tool_item" bindtap="{{item.e}}"><up-image wx:if="{{item.b}}" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image><text class="mine_fontsize_comm_warp">{{item.c}}</text></view></view></view></view></view>
File diff suppressed because one or more lines are too long
@@ -0,0 +1,121 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_address = require("../../api/address.js");
const _sfc_main = {
data() {
return {
addressList: []
};
},
mounted() {
this.getAddressList();
},
methods: {
// 添加地址
jumpAddAddress() {
common_vendor.index.navigateTo({
url: "/pages/mine_address_add/mine_address_add"
});
},
// 查询地址
async getAddressList() {
const res = await api_address.getAddress();
if (res && res.bizcode === 100) {
this.addressList = res.data;
}
},
// 设为默认地址
async isDefaultChange(item) {
const params = {
id: item.id
};
const res = await api_address.setAddressDefault(params);
if (res && res.bizcode === 100) {
this.getAddressList();
}
},
// 删除地址
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: "提示",
content: "是否要删除该地址?",
success: function(res) {
if (res.confirm) {
then.deleteAddress(item);
}
}
});
},
// 删除的方法
async deleteAddress(item) {
const params = {
id: item.id
};
const respon = await api_address.deleteAddress(params);
if (respon && respon.bizcode === 100) {
this.getAddressList();
}
},
// 修改地址
updateAddress(item) {
common_vendor.index.navigateTo({
url: "/pages/mine_address_add/mine_address_add?id=" + item.id
});
}
}
};
if (!Array) {
const _easycom_up_checkbox2 = common_vendor.resolveComponent("up-checkbox");
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
(_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";
if (!Math) {
(_easycom_up_checkbox + _easycom_up_image)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: $data.addressList && $data.addressList.length !== 0
}, $data.addressList && $data.addressList.length !== 0 ? {
b: common_vendor.f($data.addressList, (item, k0, i0) => {
return {
a: common_vendor.t(item.name),
b: common_vendor.t(item.phone),
c: common_vendor.t(item.countryName),
d: common_vendor.t(item.provinceName),
e: common_vendor.t(item.cityName),
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,
j: common_vendor.p({
customStyle: {},
label: "已默认",
name: "agree",
usedAlone: true,
checked: item.isDefault,
shape: "circle",
activeColor: "#FF7C41"
}),
k: common_vendor.o(($event) => $options.deleteAddressFun(item), item.id),
l: common_vendor.o(($event) => $options.updateAddress(item), item.id),
m: item.id
};
})
} : {
c: 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))
});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-1172d71f"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine_address/mine_address.js.map
@@ -0,0 +1,11 @@
{
"navigationBarTitleText": "地址管理",
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black",
"enablePullDownRefresh": false,
"navigationStyle": "default",
"usingComponents": {
"up-checkbox": "../../uni_modules/uview-plus/components/u-checkbox/u-checkbox",
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image"
}
}
@@ -0,0 +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>
@@ -0,0 +1,65 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/* uni.scss */
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
.mine_address_warp.data-v-1172d71f {
height: calc(100vh - 188rpx);
overflow-y: auto;
background-color: #F5F5F5;
padding: 30rpx;
}
.address_item.data-v-1172d71f {
background: #FFFFFF;
border-radius: 24rpx;
padding: 30rpx;
margin-bottom: 30rpx;
}
.address_item_info.data-v-1172d71f {
font-weight: bold;
font-size: 32rpx;
color: #222222;
display: flex;
}
.address_item_address.data-v-1172d71f {
font-weight: 500;
font-size: 26rpx;
color: #666666;
margin-top: 10rpx;
}
.address_operate.data-v-1172d71f {
display: flex;
justify-content: space-between;
margin-top: 30rpx;
}
.operate_item.data-v-1172d71f {
display: flex;
align-items: center;
}
.operate_.data-v-1172d71f {
padding: 10rpx 30rpx;
background: #F3F3F3;
border-radius: 25rpx;
font-size: 24rpx;
color: #222222;
margin-left: 20rpx;
}
@@ -0,0 +1,271 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_address = require("../../api/address.js");
const api_common = require("../../api/common.js");
const _sfc_main = {
data() {
return {
form: {
id: 0,
name: null,
// 收货人
mobile: null,
// 手机号码
regionStr: null,
// 所属地区
countryId: null,
// 国家ID
provinceId: null,
// 省份ID
cityId: null,
// 城市ID
areaId: null,
// 区域ID
address: null
// 详细地址
},
regionShow: false,
regionColumns: [],
regionLoading: false
};
},
onLoad(option) {
const id = option.id;
if (id && id !== 0) {
this.getById(id);
}
},
methods: {
/**
* 用作编辑
*/
async getById(id) {
const parasm = {
id
};
const resp = await api_address.getAddressDetail(parasm);
if (resp && resp.bizcode === 100) {
const data = resp.data;
this.form.id = id;
this.form.name = data.name;
this.form.mobile = data.phone;
this.form.countryId = data.countryId;
this.form.provinceId = data.provinceId;
this.form.cityId = data.cityId;
this.form.areaId = data.areaId;
this.form.address = data.address;
const regionStr = [];
if (data.countryName) {
regionStr.push(data.countryName);
}
if (data.provinceName) {
regionStr.push(data.provinceName);
}
if (data.cityName) {
regionStr.push(data.cityName);
}
if (data.areaName) {
regionStr.push(data.areaName);
}
this.form.regionStr = regionStr;
}
},
// 选择地址的弹框
async regionShowCheck(status) {
if (status) {
const nation = await this.getRegion(0);
const province = nation && nation.length !== 0 ? await this.getRegion(nation[0].id) : [];
const city = province && province.length !== 0 ? await this.getRegion(province[0].id) : [];
const area = city && city.length !== 0 ? await this.getRegion(city[0].id) : [];
this.regionColumns = [nation, province, city, area];
} else {
this.regionColumns = [[], [], [], []];
}
this.regionShow = status;
},
// 数据交互
async getRegion(pId) {
this.regionLoading = true;
const params = {
parentId: pId
};
const resp = await api_common.getCascadeRegion(params);
const arrOption = [];
if (resp.bizcode === 100) {
const data = resp.data;
if (data && data.length !== 0) {
data.map((item) => {
arrOption.push({
id: item.id,
label: item.name,
pId
});
});
}
}
this.regionLoading = false;
return arrOption;
},
// 地区改变
async regionChange(e) {
const {
columnIndex,
index,
picker
} = e;
const selectData = this.regionColumns[columnIndex][index];
const resultData = await this.getRegion(selectData.id);
if (resultData && resultData.length !== 0) {
const index2 = columnIndex + 1;
this.regionColumns[index2] = resultData;
}
},
// 提交地址
regionConfirm(e) {
const {
columnIndex,
value,
values,
index
} = e;
const regionStr = [];
const regionId = [];
value.map((item) => {
if (item) {
regionStr.push(item.label);
regionId.push(item.id);
}
});
this.form.regionStr = regionStr;
if (regionId && regionId.length !== 0) {
this.form.countryId = regionId[0] ? regionId[0] : null;
this.form.provinceId = regionId[1] ? regionId[1] : null;
this.form.cityId = regionId[2] ? regionId[2] : null;
this.form.areaId = regionId[3] ? regionId[3] : null;
}
this.regionShowCheck(false);
},
// 添加地址
async addAddress() {
const params = {
...this.form
};
if (!params.name) {
this.$refs.uToastRef.show({
type: "error",
message: "请输入收货人"
});
return;
}
if (!params.mobile) {
this.$refs.uToastRef.show({
type: "error",
message: "请输入收货人手机号"
});
return;
}
if (!params.regionStr) {
this.$refs.uToastRef.show({
type: "error",
message: "请选择所在地区"
});
return;
}
if (!params.address) {
this.$refs.uToastRef.show({
type: "error",
message: "请输入详细地址"
});
return;
}
if (!params.id || params.id === 0) {
delete params.id;
}
if (!params.areaId || params.areaId === 0) {
delete params.areaId;
}
delete params.regionStr;
const res = await api_address.editAddress(params);
if (res && res.bizcode === 100) {
this.$refs.uToastRef.show({
type: "success",
message: params.id && params.id !== 0 ? "修改成功" : "添加成功"
});
setTimeout(() => {
common_vendor.index.navigateTo({
url: "/pages/mine_address/mine_address"
});
}, 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");
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_image + _easycom_up_toast + _easycom_up_picker)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.o(($event) => $data.form.name = $event),
b: common_vendor.p({
placeholder: "收货人",
border: "surround",
customStyle: {
"border": "0rpx"
},
modelValue: $data.form.name
}),
c: common_vendor.o(($event) => $data.form.mobile = $event),
d: common_vendor.p({
placeholder: "请填写收货人手机号",
border: "surround",
customStyle: {
"border": "0rpx"
},
modelValue: $data.form.mobile
}),
e: common_vendor.t($data.form.regionStr && $data.form.regionStr.join("/") || "所在地区"),
f: 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({
placeholder: "门牌号、小区、楼栋号、单元室等",
border: "surround",
customStyle: {
"border": "0rpx",
"height": "100rpx"
},
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({
show: $data.regionShow,
columns: $data.regionColumns,
loading: $data.regionLoading,
keyName: "label",
itemHeight: "34"
})
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-40d63b91"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine_address_add/mine_address_add.js.map
@@ -0,0 +1,13 @@
{
"navigationBarTitleText": "添加地址",
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black",
"enablePullDownRefresh": false,
"navigationStyle": "default",
"usingComponents": {
"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",
"up-picker": "../../uni_modules/uview-plus/components/u-picker/u-picker"
}
}
@@ -0,0 +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>
@@ -0,0 +1,52 @@
/**
* 这里是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;
}
@@ -0,0 +1,162 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
data() {
return {
inputCss: {
"height": "80rpx",
"border-radius": "30rpx",
"border": "0rpx"
},
form: {
name: null,
mobile: null,
number: null
// 银行名称
},
formList: [
{
id: 1,
title: "真实姓名",
formName: "name",
placeholder: "请输入您的真实姓名"
},
{
id: 2,
title: "手机号",
formName: "mobile",
placeholder: "请输入手机号"
},
{
id: 3,
title: "证件号码",
formName: "number",
placeholder: "请输入证件号码"
}
],
uploadTemplList: [
{
id: 1,
title: "标准",
isOk: true,
url: "/static/common/ID_ok.png"
},
{
id: 2,
title: "边框缺失",
isOk: false,
url: "/static/common/ID_error_1.png"
},
{
id: 3,
title: "照片模糊",
isOk: false,
url: "/static/common/ID_error_2.png"
},
{
id: 4,
title: "闪光强烈",
isOk: false,
url: "/static/common/ID_error_3.png"
}
]
};
},
methods: {
addAuthentication() {
const params = {
...this.form
};
if (!params.name) {
this.$refs.uToastRef.show({
type: "error",
message: "请输入您的真实姓名"
});
return;
}
if (!params.mobile) {
this.$refs.uToastRef.show({
type: "error",
message: "请输入手机号"
});
return;
}
if (!params.number) {
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 (!Array) {
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 _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";
if (!Math) {
(_easycom_up_input + _easycom_up_image)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.f($data.formList, (item, k0, i0) => {
return {
a: common_vendor.t(item.title),
b: "ff62741c-0-" + 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,
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
};
}),
b: common_vendor.p({
src: "/static/common/ID_rx.png",
width: "100%",
height: "90",
bgColor: "#f1f6ff00"
}),
c: common_vendor.p({
src: "/static/common/ID_gq.png",
width: "100%",
height: "90",
bgColor: "#f1f6ff00"
}),
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))
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-ff62741c"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine_authentication/mine_authentication.js.map
@@ -0,0 +1,11 @@
{
"navigationBarTitleText": "实名认证",
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black",
"enablePullDownRefresh": false,
"navigationStyle": "default",
"usingComponents": {
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image"
}
}
@@ -0,0 +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>
@@ -0,0 +1,41 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/* uni.scss */
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
.authentication_warp.data-v-ff62741c {
height: calc(100vh - 58rpx);
background-color: #F5F5F5;
padding: 30rpx;
}
.authentication_warp .data_common_warp.data-v-ff62741c {
background: #FFFFFF;
border-radius: 30rpx;
padding: 30rpx;
margin-bottom: 30rpx;
}
.authentication_warp .data_msg.data-v-ff62741c {
font-weight: 500;
font-size: 26rpx;
color: #F34343;
margin-bottom: 20rpx;
}
@@ -0,0 +1,24 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
data() {
return {};
},
methods: {}
};
if (!Array) {
const _easycom_up_toast2 = common_vendor.resolveComponent("up-toast");
_easycom_up_toast2();
}
const _easycom_up_toast = () => "../../uni_modules/uview-plus/components/u-toast/u-toast.js";
if (!Math) {
_easycom_up_toast();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.sr("uToastRef", "731ed15b-0")
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-731ed15b"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine_authentication_ok/mine_authentication_ok.js.map
@@ -0,0 +1,10 @@
{
"navigationBarTitleText": "实名认证",
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black",
"enablePullDownRefresh": false,
"navigationStyle": "default",
"usingComponents": {
"up-toast": "../../uni_modules/uview-plus/components/u-toast/u-toast"
}
}
@@ -0,0 +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>
@@ -0,0 +1,63 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/* uni.scss */
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
.authentication_ok_warp.data-v-731ed15b {
height: 100vh;
background-color: #FFFFFF;
padding: 60rpx;
}
.authentication_ok_warp .authentication_result.data-v-731ed15b {
display: grid;
justify-content: center;
align-items: center;
text-align: center;
}
.authentication_ok_warp .authentication_result .result_title.data-v-731ed15b {
font-weight: bold;
font-size: 40rpx;
color: #333333;
}
.authentication_ok_warp .authentication_result .result_value.data-v-731ed15b {
font-weight: bold;
font-size: 30rpx;
color: #666666;
line-height: 80rpx;
}
.authentication_ok_warp .authentication_info.data-v-731ed15b {
background: #F8F8F8;
border-radius: 10rpx;
padding: 30rpx;
margin-top: 30rpx;
}
.authentication_ok_warp .info_item.data-v-731ed15b {
font-weight: 500;
font-size: 28rpx;
color: #666666;
line-height: 66rpx;
}
.authentication_ok_warp .info_item_value.data-v-731ed15b {
font-weight: bold;
font-size: 28rpx;
color: #333333;
}
@@ -0,0 +1,122 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
data() {
return {
inputCss: {
"height": "80rpx",
"background": "#F5F5F5",
"border-radius": "30rpx",
"border": "0rpx",
"padding-left": "16px"
},
form: {
name: null,
number: null,
bankName: null,
// 银行名称
bankBranch: null,
// 开户支行
iban: null
// IBAN
},
formList: [
{
id: 1,
title: "姓名",
formName: "name",
placeholder: "请输入姓名"
},
{
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"
}
]
};
},
methods: {
addBank() {
const param = {
...this.form
};
if (!param.name) {
this.$refs.uToastRef.show({
type: "error",
message: "请输入姓名"
});
return;
}
if (!param.number) {
this.$refs.uToastRef.show({
type: "error",
message: "银行卡账号/卡号"
});
return;
}
if (!param.bankName) {
this.$refs.uToastRef.show({
type: "error",
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 (!Array) {
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
const _easycom_up_toast2 = common_vendor.resolveComponent("up-toast");
(_easycom_up_input2 + _easycom_up_toast2)();
}
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
const _easycom_up_toast = () => "../../uni_modules/uview-plus/components/u-toast/u-toast.js";
if (!Math) {
(_easycom_up_input + _easycom_up_toast)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.f($data.formList, (item, k0, i0) => {
return {
a: common_vendor.t(item.title),
b: "aa18beea-0-" + 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,
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")
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-aa18beea"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine_bank_add/mine_bank_add.js.map
@@ -0,0 +1,11 @@
{
"navigationBarTitleText": "添加银行卡",
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black",
"enablePullDownRefresh": false,
"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"
}
}
@@ -0,0 +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>
@@ -0,0 +1,43 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/* uni.scss */
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
.bank_add_warp.data-v-aa18beea {
height: calc(100vh - 58rpx);
background-color: #F5F5F5;
padding: 30rpx;
}
.add_form.data-v-aa18beea {
background: #FFFFFF;
border-radius: 30rpx;
padding: 30rpx;
}
.add_bank_form_item.data-v-aa18beea {
margin-bottom: 30rpx;
}
.add_bank_form_item .add_title.data-v-aa18beea {
font-weight: bold;
font-size: 32rpx;
color: #111111;
margin-bottom: 30rpx;
}
@@ -0,0 +1,70 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
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"
}
]
};
},
methods: {
jumpAddBank() {
common_vendor.index.navigateTo({
url: "/pages/mine_bank_add/mine_bank_add"
});
}
}
};
if (!Array) {
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
_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 {
a: "c1af5562-0-" + i0,
b: common_vendor.p({
src: item.url,
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
};
}),
c: 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);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine_bank_card/mine_bank_card.js.map
@@ -0,0 +1,10 @@
{
"navigationBarTitleText": "银行卡管理",
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black",
"enablePullDownRefresh": false,
"navigationStyle": "default",
"usingComponents": {
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image"
}
}
@@ -0,0 +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>
@@ -0,0 +1,70 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/* uni.scss */
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
.mine_bank_warp.data-v-c1af5562 {
height: calc(100vh - 58rpx);
background-color: #F5F5F5;
padding: 30rpx;
overflow-y: hidden;
}
.mine_bank_warp .bank_title.data-v-c1af5562 {
font-weight: bold;
font-size: 36rpx;
color: #333333;
}
.mine_bank_warp .bank_list.data-v-c1af5562 {
margin-top: 20rpx;
height: calc(100vh - 250rpx);
overflow: auto;
}
.mine_bank_warp .bank_item.data-v-c1af5562 {
background: #FFFFFF;
border-radius: 30rpx;
padding: 30rpx;
margin-bottom: 20rpx;
}
.mine_bank_warp .bank_data.data-v-c1af5562 {
display: flex;
align-items: center;
}
.mine_bank_warp .bank_info.data-v-c1af5562 {
margin-left: 10rpx;
}
.mine_bank_warp .bank_bank_name.data-v-c1af5562 {
font-weight: bold;
font-size: 30rpx;
color: #333333;
}
.mine_bank_warp .bank_user_name.data-v-c1af5562 {
font-weight: 500;
font-size: 22rpx;
color: #999999;
margin-top: 10rpx;
}
.mine_bank_warp .bank_parting_line.data-v-c1af5562 {
height: 1rpx;
background: #EEEEEEFF;
border-radius: 0rpx 0rpx 1rpx 1rpx;
margin: 30rpx auto;
}
@@ -0,0 +1,392 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const utils_enumUtils = require("../../utils/enumUtils.js");
const utils_enumCssUtils = require("../../utils/enumCssUtils.js");
const _sfc_main = {
computed: {
ORDER_TYPE() {
return utils_enumUtils.ORDER_TYPE;
},
ORDER_STATUS() {
return utils_enumUtils.ORDER_STATUS;
},
ORDER_STATUS_CSS() {
return utils_enumCssUtils.ORDER_STATUS_CSS;
}
},
data() {
return {
type: 0,
// 选中的类型
orderTypeList: [
{
id: 0,
title: "全部"
},
{
id: utils_enumUtils.ORDER_TYPE.UNPAID,
title: "待支付"
},
{
id: utils_enumUtils.ORDER_TYPE.UNSHIPPED,
title: "待发货"
},
{
id: utils_enumUtils.ORDER_TYPE.NOT_RECEIVE,
title: "待收货"
},
{
id: utils_enumUtils.ORDER_TYPE.AFTER_SALE,
title: "退款售后"
}
],
form: {
search: null
//搜索
},
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
}
],
cancelShow: false,
// 取消订单
reasonList: [
{
id: 1,
name: "地址信息填写错误"
},
{
id: 2,
name: "不想要了"
},
{
id: 3,
name: "商品错选/多选"
},
{
id: 4,
name: "没用/少用/错用优惠券"
},
{
id: 5,
name: "商品降价"
},
{
id: 6,
name: "其他原因"
}
],
cancelForm: {
reason: null,
remark: null
}
};
},
onLoad(options) {
const type = options.type;
this.type = type ? parseInt(type, 10) : 0;
},
methods: {
getValue: utils_enumUtils.getValue,
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);
},
checkType(item) {
this.type = item.id;
},
jumpOrderInfo() {
common_vendor.index.navigateTo({
url: "/pages/mine_order_info/mine_order_info?type=" + this.type
});
},
checkCancel(status) {
this.cancelShow = status;
if (!status) {
this.cancelForm = {
reason: null,
remark: null
};
}
},
/**
* 确认取消
*/
cancelOk() {
const params = {
...this.cancelForm
};
if (!params.reason) {
this.$refs.uToastRef.show({
type: "error",
message: "请选择取消原因"
});
return;
}
common_vendor.index.__f__("log", "at pages/mine_order/mine_order.vue:330", "params", params);
this.checkCancel(false);
}
}
};
if (!Array) {
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
const _easycom_up_search2 = common_vendor.resolveComponent("up-search");
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
const _easycom_up_radio2 = common_vendor.resolveComponent("up-radio");
const _easycom_up_radio_group2 = common_vendor.resolveComponent("up-radio-group");
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_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_icon = () => "../../uni_modules/uview-plus/components/u-icon/u-icon.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_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";
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)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: common_vendor.o($options.jumpLeft),
b: common_vendor.p({
src: "/static/common/left.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
}),
c: common_vendor.o($options.searchFun),
d: common_vendor.p({
shape: "round",
bgColor: "#FFFFFFFF",
showAction: false
}),
e: common_vendor.f($data.orderTypeList, (item, k0, i0) => {
return {
a: common_vendor.t(item.title),
b: common_vendor.n($data.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
};
}),
f: $data.orderList && $data.orderList.length !== 0
}, $data.orderList && $data.orderList.length !== 0 ? {
g: common_vendor.f($data.orderList, (item, k0, i0) => {
return common_vendor.e({
a: "abc152e3-2-" + i0,
b: common_vendor.p({
src: item.url,
width: "22",
height: "22",
bgColor: "#f1f6ff00"
}),
c: common_vendor.t(item.name),
d: item.status !== 1
}, item.status !== 1 ? {
e: common_vendor.t($options.getValue($options.ORDER_STATUS, item.status)),
f: $options.ORDER_STATUS_CSS[item.status]
} : {
g: common_vendor.t(item.paymentTime)
}, {
h: common_vendor.f(item.product, (pItem, k1, i1) => {
return {
a: "abc152e3-3-" + i0 + "-" + i1,
b: common_vendor.p({
src: pItem.url,
width: "80",
height: "80",
bgColor: "#f1f6ff00"
}),
c: common_vendor.t(pItem.title),
d: common_vendor.t(pItem.tag.join(" ")),
e: common_vendor.f(pItem.description, (dItem, k2, i2) => {
return {
a: common_vendor.t(dItem)
};
}),
f: common_vendor.t(pItem.total),
g: common_vendor.t(pItem.quantity),
h: pItem.id
};
}),
i: item.status === $options.ORDER_TYPE.UNSHIPPED
}, item.status === $options.ORDER_TYPE.UNSHIPPED ? {
j: common_vendor.o(($event) => $options.checkCancel(true), item.id)
} : {}, {
k: item.status === $options.ORDER_TYPE.UNPAID
}, item.status === $options.ORDER_TYPE.UNPAID ? {
l: common_vendor.o((...args) => $options.jumpOrderInfo && $options.jumpOrderInfo(...args), item.id)
} : {}, {
m: item.status === $options.ORDER_TYPE.COMPLETED
}, item.status === $options.ORDER_TYPE.COMPLETED ? {} : {}, {
n: item.status === $options.ORDER_TYPE.NOT_RECEIVE
}, item.status === $options.ORDER_TYPE.NOT_RECEIVE ? {} : {}, {
o: item.status === $options.ORDER_TYPE.UNSHIPPED
}, item.status === $options.ORDER_TYPE.UNSHIPPED ? {} : {}, {
p: item.status === $options.ORDER_TYPE.COMPLETED
}, item.status === $options.ORDER_TYPE.COMPLETED ? {} : {}, {
q: item.status === $options.ORDER_TYPE.AFTER_SALE
}, item.status === $options.ORDER_TYPE.AFTER_SALE ? {} : {}, {
r: [$options.ORDER_TYPE.COMPLETED].includes(item.status)
}, [$options.ORDER_TYPE.COMPLETED].includes(item.status) ? {} : {}, {
s: [$options.ORDER_TYPE.COMPLETED, $options.ORDER_TYPE.CANCELED].includes(item.status)
}, [$options.ORDER_TYPE.COMPLETED, $options.ORDER_TYPE.CANCELED].includes(item.status) ? {} : {}, {
t: item.id
});
})
} : {
h: common_vendor.p({
src: "/static/common/not_order.png",
width: "80",
height: "80",
bgColor: "#f1f6ff00"
})
}, {
i: 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) => {
return {
a: index,
b: "abc152e3-8-" + i0 + ",abc152e3-7",
c: common_vendor.p({
customStyle: {
marginBottom: "8px"
},
label: item.name,
name: item.name
})
};
}),
l: common_vendor.o(($event) => $data.cancelForm.reason = $event),
m: common_vendor.p({
placement: "column",
modelValue: $data.cancelForm.reason
}),
n: common_vendor.o(($event) => $data.cancelForm.remark = $event),
o: 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({
round: 10,
closeOnClickOverlay: false,
show: $data.cancelShow
}),
s: common_vendor.sr("uToastRef", "abc152e3-10")
});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-abc152e3"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine_order/mine_order.js.map
@@ -0,0 +1,13 @@
{
"navigationStyle": "custom",
"usingComponents": {
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
"up-search": "../../uni_modules/uview-plus/components/u-search/u-search",
"up-icon": "../../uni_modules/uview-plus/components/u-icon/u-icon",
"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-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"
}
}
File diff suppressed because one or more lines are too long
@@ -0,0 +1,152 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/* uni.scss */
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
.order_warp.data-v-abc152e3 {
height: calc(100vh - 130rpx);
background-color: #F5F5F5;
padding: 100rpx 30rpx 30rpx;
overflow-y: hidden;
}
.order_header.data-v-abc152e3 {
display: flex;
align-items: center;
}
.order_type_title.data-v-abc152e3 {
display: flex;
margin-top: 30rpx;
align-items: center;
}
.order_type_title .order_type_title_item.data-v-abc152e3 {
margin-right: 40rpx;
font-weight: 500;
font-size: 30rpx;
color: #222222;
}
.order_type_title .order_type_title_item_sel.data-v-abc152e3 {
font-weight: 800;
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;
padding: 30rpx 20rpx;
margin-top: 20rpx;
}
.order_item .order_item_header.data-v-abc152e3 {
display: flex;
justify-content: space-between;
align-items: center;
}
.order_item .order_product_title.data-v-abc152e3 {
font-weight: bold;
font-size: 28rpx;
color: #1A1A1A;
margin-left: 10rpx;
}
.order_item .order_item_header_left.data-v-abc152e3 {
display: flex;
align-items: center;
}
.order_item .order_item_header_right.data-v-abc152e3 {
font-weight: 500;
font-size: 22rpx;
}
.order_item .order_right_due.data-v-abc152e3 {
display: flex;
background: #FFF9F2;
border-radius: 19rpx 22rpx 22rpx 19rpx;
}
.order_item .order_right_due_msg.data-v-abc152e3 {
background: #FF7C41;
border-radius: 22rpx 0rpx 12rpx 22rpx;
color: #FFFFFF;
padding: 10rpx 20rpx;
}
.order_item .order_right_due_time.data-v-abc152e3 {
font-weight: bold;
font-size: 24rpx;
color: #FF7C41;
padding: 10rpx 20rpx;
}
.order_item .order_item_collect.data-v-abc152e3 {
margin-top: 20rpx;
}
.order_item .order_item_collect .collect_msg.data-v-abc152e3 {
font-weight: 500;
font-size: 24rpx;
color: #666666;
text-align: right;
}
.cancel_show_warp.data-v-abc152e3 {
padding: 20rpx;
}
.cancel_show_warp .cancel_show_title_warp.data-v-abc152e3 {
position: relative;
font-weight: bold;
font-size: 36rpx;
color: #222222;
line-height: 48rpx;
text-align: center;
}
.cancel_show_warp .cancel_show_title_icon.data-v-abc152e3 {
position: absolute;
right: 14rpx;
top: 6rpx;
}
.cancel_show_warp .cancel_show_msg_warp.data-v-abc152e3 {
background: #F8F8F8;
padding: 30rpx;
font-weight: 500;
font-size: 26rpx;
color: #222222;
line-height: 48rpx;
margin-top: 20rpx;
}
.cancel_show_warp .cancel_show_reason_warp.data-v-abc152e3 {
margin-top: 20rpx;
}
.cancel_show_warp .cancel_show_reason_warp .reason_title.data-v-abc152e3 {
font-weight: bold;
font-size: 32rpx;
color: #222222;
line-height: 36rpx;
margin-bottom: 20rpx;
}
.but_border_warp.data-v-abc152e3 {
border: 1rpx solid #eeeeee94;
margin: 30rpx 0;
}
.cancel_show_but.data-v-abc152e3 {
display: flex;
justify-content: center;
}
.add_but.data-v-abc152e3 {
position: initial;
width: 94%;
}
@@ -0,0 +1,191 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const utils_enumUtils = require("../../utils/enumUtils.js");
const utils_index = require("../../utils/index.js");
const _sfc_main = {
computed: {
ORDER_TYPE() {
return utils_enumUtils.ORDER_TYPE;
},
ORDER_STATUS() {
return utils_enumUtils.ORDER_STATUS;
},
ORDER_STATUS_CSS() {
return ORDER_STATUS_CSS;
}
},
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
}
}
};
},
onLoad(options) {
const type = options.type;
this.type = type ? parseInt(type, 10) : 0;
},
methods: {
getValue: utils_enumUtils.getValue,
copyData: utils_index.copyData,
jumpLeft() {
common_vendor.index.navigateTo({
url: "/pages/mine_order/mine_order?type=" + this.type
});
},
// 去支付
goPay() {
common_vendor.index.__f__("log", "at pages/mine_order_info/mine_order_info.vue:213", "goPay.....");
}
}
};
if (!Array) {
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
_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($options.jumpLeft),
b: common_vendor.p({
src: "/static/common/left_b.png",
width: "20",
height: "19",
bgColor: "#f1f6ff00"
}),
c: 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
}, $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({
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({
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({
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,
width: "22",
height: "22",
bgColor: "#f1f6ff00"
}),
r: common_vendor.t($data.orderInfo.product.name),
s: common_vendor.f($data.orderInfo.product.productList, (pItem, k0, i0) => {
return {
a: "e943673c-6-" + i0,
b: common_vendor.p({
src: pItem.url,
width: "80",
height: "80",
bgColor: "#f1f6ff00"
}),
c: common_vendor.t(pItem.title),
d: common_vendor.t(pItem.tag.join(" ")),
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
};
}),
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
}, $data.orderInfo.status === $options.ORDER_TYPE.UNPAID ? {
x: common_vendor.o((...args) => $options.goPay && $options.goPay(...args))
} : {}, {
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) ? {} : {});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-e943673c"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine_order_info/mine_order_info.js.map
@@ -0,0 +1,6 @@
{
"navigationStyle": "custom",
"usingComponents": {
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image"
}
}
File diff suppressed because one or more lines are too long
@@ -0,0 +1,195 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/* uni.scss */
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
.mine_order_info_warp.data-v-e943673c {
height: calc(100vh - 180rpx);
background-color: #F5F5F5;
position: relative;
overflow-y: auto;
}
.order_info_header.data-v-e943673c {
background-color: #FF7C41;
height: 288rpx;
display: flex;
padding: 100rpx 30rpx 30rpx;
}
.order_info_header .header_status.data-v-e943673c {
width: 90%;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
height: 58rpx;
align-items: center;
}
.order_info_header .header_status .msg.data-v-e943673c {
margin-left: 20rpx;
font-weight: bold;
font-size: 36rpx;
color: #FFFFFF;
}
.order_info_content.data-v-e943673c {
position: absolute;
top: 184rpx;
width: 100%;
padding: 0 20rpx;
}
.order_info_content .content_due.data-v-e943673c {
display: grid;
justify-content: center;
width: 100%;
color: #FFFFFF;
}
.order_info_content .content_due .payment_but.data-v-e943673c {
display: flex;
justify-content: center;
}
.order_info_content .content_due .but.data-v-e943673c {
background: #FFFFFF;
border-radius: 16rpx;
text-align: center;
width: 200rpx;
padding: 10rpx 0;
color: #FF7C41;
font-weight: bold;
font-size: 28rpx;
margin-top: 20rpx;
}
.order_info_content .content_cancel.data-v-e943673c {
text-align: center;
font-weight: bold;
font-size: 28rpx;
color: #FFFFFF;
}
.order_info_content .steps_warp.data-v-e943673c {
background: #FFFFFF;
border-radius: 24rpx;
padding: 20rpx;
width: calc(100% - 80rpx);
margin-top: 66rpx;
}
.order_info_content .steps_warp .address_info_right.data-v-e943673c {
border-left: 1rpx dashed #99999959;
height: 26rpx;
width: 10rpx;
margin: 20rpx;
}
.order_info_content .steps_warp .address_info.data-v-e943673c {
display: flex;
justify-content: space-between;
}
.order_info_content .steps_warp .address_data_warp.data-v-e943673c {
font-weight: bold;
color: #1A1A1A;
display: flex;
align-items: center;
}
.order_info_content .steps_warp .address_info_name.data-v-e943673c {
margin-left: 10rpx;
font-size: 28rpx;
}
.order_info_content .steps_warp .address_info_mobile.data-v-e943673c {
margin-left: 10rpx;
font-size: 24rpx;
}
.order_info_content .steps_warp .address_but.data-v-e943673c {
border-radius: 30rpx;
border: 1px solid #9A9A9A;
font-size: 20rpx;
color: #222222;
padding: 8rpx 20rpx;
}
.order_info_content .steps_warp .address_content.data-v-e943673c {
font-weight: 500;
font-size: 26rpx;
color: #666666;
padding: 20rpx 10rpx 20rpx 44rpx;
}
.order_comm.data-v-e943673c {
background: #FFFFFF;
border-radius: 20rpx;
padding: 30rpx;
margin-top: 30rpx;
width: calc(100% - 96rpx);
}
.order_product_warp .order_product_header.data-v-e943673c {
display: flex;
}
.order_product_warp .order_product_title.data-v-e943673c {
font-weight: bold;
font-size: 28rpx;
color: #1A1A1A;
margin-left: 10rpx;
}
.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;
}
.order_data_warp .copy_order_number.data-v-e943673c {
background: #F2F2F2;
border-radius: 18rpx;
font-weight: bold;
font-size: 22rpx;
color: #333333;
padding: 4rpx 14rpx;
margin-left: 10rpx;
}
.order_data_warp .copy_order_coupon.data-v-e943673c {
margin-left: 24rpx;
border-radius: 6rpx;
border: 1px solid #FF7C41;
padding: 4rpx 18rpx;
color: #FF7C41;
}
.order_data_warp .order_data_but.data-v-e943673c {
border: 1rpx solid #F6F6F6;
}
.order_but_warp.data-v-e943673c {
position: fixed;
height: 140rpx;
bottom: 0;
background-color: #ffffff;
right: 14rpx;
width: calc(100% - 40rpx);
background-color: #ffffff;
padding: 20rpx;
}
.order_but_warp .operate_comm.data-v-e943673c {
height: 34rpx;
}
@@ -0,0 +1,132 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
data() {
return {
infoList: [
{
id: 1,
name: "余额"
},
{
id: 2,
name: "奖金"
},
{
id: 3,
name: "兑换券"
},
{
id: 4,
name: "HM"
},
{
id: 5,
name: "HMC"
}
],
selInfo: 1,
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: "收入到账"
}
]
};
},
methods: {
selectInfo(item) {
this.selInfo = item.id;
},
// 跳转到奖金
jumpBonus() {
common_vendor.index.navigateTo({
url: "/pages/mine_purse_bonus/mine_purse_bonus"
});
}
}
};
if (!Array) {
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
_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.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)
});
}),
c: common_vendor.f($data.orderList, (item, k0, i0) => {
return {
a: "00f7ce42-0-" + 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);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine_purse/mine_purse.js.map
@@ -0,0 +1,10 @@
{
"navigationBarTitleText": "我的钱包",
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black",
"enablePullDownRefresh": false,
"navigationStyle": "default",
"usingComponents": {
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image"
}
}
@@ -0,0 +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 class="info_list_warp data-v-00f7ce42"><view wx:for="{{c}}" 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>
@@ -0,0 +1,90 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/* uni.scss */
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
.purse_warp.data-v-00f7ce42 {
height: calc(100vh - 58rpx);
padding: 20rpx;
overflow-y: hidden;
}
.purse_collect.data-v-00f7ce42 {
padding: 48rpx 16px;
background: #FF7C41;
border-radius: 24rpx;
}
.purse_collect .collect_item.data-v-00f7ce42 {
display: flex;
justify-content: space-between;
align-items: center;
color: #FFFFFF;
}
.purse_collect .collect_item .item_warp.data-v-00f7ce42 {
width: 30%;
text-align: center;
line-height: 46rpx;
}
.purse_collect .collect_item .item_right_warp.data-v-00f7ce42 {
border-right: 1rpx solid #ffffff85;
height: 50rpx;
}
.purse_collect .collect_item .collect_title.data-v-00f7ce42 {
font-weight: 500;
font-size: 20rpx;
}
.purse_collect .collect_item .collect_value.data-v-00f7ce42 {
font-weight: 800;
font-size: 32rpx;
}
.purse_collect .collect_item_but.data-v-00f7ce42 {
margin-bottom: 34rpx;
}
.info_warp.data-v-00f7ce42 {
margin-top: 30rpx;
}
.info_warp .info_title_warp.data-v-00f7ce42 {
display: flex;
padding-left: 10rpx;
}
.info_warp .info_title_item_warp.data-v-00f7ce42 {
margin-right: 40rpx;
font-weight: 500;
font-size: 32rpx;
color: #666666;
}
.info_warp .info_title_item_sel_warp.data-v-00f7ce42 {
font-weight: bold;
font-size: 36rpx;
color: #000000;
}
.info_warp .info_title_item_sel_but_warp.data-v-00f7ce42 {
background: #FFB541;
border-radius: 4rpx;
width: 40rpx;
height: 8rpx;
margin-left: 18rpx;
}
.info_warp .info_list_warp.data-v-00f7ce42 {
margin-top: 30rpx;
height: calc(100vh - 500rpx);
overflow-y: auto;
}
@@ -0,0 +1,88 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
data() {
return {
contentList: [
{
id: 1,
type: 1,
// 1:提,2:奖
name: "提现-中国银行5478",
time: "01-01 14:10:10",
amount: 1e3,
typeName: "购物消费"
},
{
id: 2,
type: 3,
// 1:提,2:奖
name: "奖励",
time: "01-01 14:10:10",
amount: 1e3,
typeName: "奖励"
},
{
id: 3,
type: 3,
// 1:提,2:奖
name: "奖励",
time: "01-01 14:10:10",
amount: 1e3,
typeName: "奖励"
},
{
id: 4,
type: 1,
// 1:提,2:奖
name: "提现-中国银行5478",
time: "01-01 14:10:10",
amount: 1e3,
typeName: "购物消费"
},
{
id: 5,
type: 1,
// 1:提,2:奖
name: "提现-中国银行5478",
time: "01-01 14:10:10",
amount: 1e3,
typeName: "购物消费"
}
]
};
},
methods: {}
};
if (!Array) {
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
_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.f($data.contentList, (item, k0, i0) => {
return {
a: "f08a8d54-0-" + i0,
b: common_vendor.p({
src: item.type === 1 ? "/static/mine/purse_j.png" : "/static/mine/purse_t.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-f08a8d54"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine_purse_bonus/mine_purse_bonus.js.map
@@ -0,0 +1,10 @@
{
"navigationBarTitleText": "我的奖金",
"navigationBarBackgroundColor": "#ff7c41",
"navigationBarTextStyle": "white",
"enablePullDownRefresh": false,
"navigationStyle": "default",
"usingComponents": {
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image"
}
}
@@ -0,0 +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>
@@ -0,0 +1,64 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/* uni.scss */
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
.mine_purse_bonus_warp.data-v-f08a8d54 {
height: 100vh;
background-color: #F5F5F5;
overflow: hidden;
}
.mine_purse_bonus_header.data-v-f08a8d54 {
background: #FF7C41;
padding: 40rpx;
display: flex;
justify-content: space-between;
align-items: center;
color: #FFFFFF;
}
.mine_purse_bonus_header .header_title.data-v-f08a8d54 {
font-weight: 500;
font-size: 28rpx;
color: #EEEEEE;
line-height: 40rpx;
}
.mine_purse_bonus_header .header_but.data-v-f08a8d54 {
background: #FFFFFF;
border-radius: 25rpx;
padding: 10rpx 30rpx;
color: #FF7C41;
font-weight: 500;
font-size: 26rpx;
}
.mine_purse_bonus_content.data-v-f08a8d54 {
padding: 20rpx;
height: calc(100vh - 300rpx);
overflow-y: auto;
}
.mine_purse_bonus_content .title.data-v-f08a8d54 {
font-weight: 500;
font-size: 32rpx;
color: #666666;
}
.mine_purse_bonus_content .content_item.data-v-f08a8d54 {
margin-top: 20rpx;
}
@@ -0,0 +1,346 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const utils_enumUtils = require("../../utils/enumUtils.js");
const api_cart = require("../../api/cart.js");
const utils_index = require("../../utils/index.js");
const Address = () => "../../components/address.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();
}
},
data() {
return {
ids: 0,
orderInfo: {
// coupon:2,//优惠卷
paymentMethod: null,
// 支付方式
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,
// 收件地址选择
addressType: "",
// 收件地址数据类型
addressIndex: 0,
// 收件地址数据类型
shopsIndex: 0,
// 收件地址数据类型
selectAddress: {}
// 收件地址选择
};
},
methods: {
getValue: utils_enumUtils.getValue,
assembleAddress: utils_index.assembleAddress,
async getOrder() {
const ids = this.ids;
if (!ids || ids === 0) {
this.$refs.uToastRef.show({
type: "error",
message: "暂时没有需要结算的订单"
});
setTimeout(() => {
common_vendor.index.switchTab({
url: "/pages/shopping_cart/shopping_cart"
});
}, 2e3);
return;
}
const params = {
cartIds: ids
};
const resp = await api_cart.getSettleList(params);
if (resp && resp.bizcode === 100) {
const data = resp.data;
const shops = data.shops;
if (shops && shops.length !== 0) {
shops.map((item) => {
item.addrTimes.map((addItem) => {
addItem.remark = null;
});
});
}
data.shops = shops;
data.paymentMethod = null;
common_vendor.index.__f__("log", "at pages/order_submit/order_submit.vue:245", "data", data);
this.orderInfo = data;
}
},
/**
* 数量进行增加删除
* @param {Object} type 区分是 + 还是 -
* @param {Object} pIndex 父节点数据,用作与从新修改数据
* @param {Object} addIndex 需要修改店铺的数据节点
* @param {Object} index 需要修改的数据节点
*/
quantityFun(type, index, addIndex, pIndex) {
let currentQuantity = this.orderInfo.shops[index].addrTimes[addIndex].goods[pIndex].num;
if (type === "minus") {
if (currentQuantity === 1) {
this.$refs.uToastRef.show({
type: "error",
message: "不能再减拉,不能小于最低购买数量~"
});
} else {
currentQuantity = currentQuantity - 1;
}
} else if (type === "add") {
currentQuantity = currentQuantity + 1;
}
this.orderInfo.shops[index].addrTimes[addIndex].goods[pIndex].num = currentQuantity;
},
// 获取备注
getRemark() {
const orderInfo = this.orderInfo;
const remarkArr = [];
if (orderInfo && Object.keys(orderInfo).length !== 0)
;
return remarkArr;
},
/**
* 去支付
*/
goPay() {
const params = {
addrId: this.orderInfo.address.id,
// 收货地址ID
cartIds: this.ids,
//结算的购物车ID,多个以逗号分割,ALL表示全选
payway: 0,
// 支付方式:1-微信,2-支付宝
remark: null
//备注信息'[{"sid":"店铺ID","rmk":"备注内容"},{"sid":"店铺ID","rmk":"备注内容"}]'
};
common_vendor.index.__f__("log", "at pages/order_submit/order_submit.vue:294", "params", params);
},
// 地址选中
getAddressValueFunc(item) {
const addressObj = item;
addressObj.addressStr = utils_index.assembleAddress(addressObj).names;
this.selectAddress = addressObj;
},
addressOk() {
const type = this.addressType;
const addressIndex = this.addressIndex;
const shopsIndex = this.shopsIndex;
if (type === "data") {
this.orderInfo.address = this.selectAddress;
} else if (type === "addrTimes") {
this.orderInfo.shops[shopsIndex].addrTimes[addressIndex].address = this.selectAddress;
}
this.addressShow = this.false;
},
// 地址类型
checkAddressShow(status, type, addIndex, index) {
this.addressShow = status;
this.addressType = type;
this.addressIndex = addIndex;
this.shopsIndex = index;
}
}
};
if (!Array) {
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");
const _easycom_up_radio_group2 = common_vendor.resolveComponent("up-radio-group");
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)();
}
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_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_input + _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: $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
}, $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({
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"))
}) : {
i: 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.f($data.orderInfo.shops, (item, index, i0) => {
return {
a: "dc7219ba-2-" + i0,
b: common_vendor.p({
src: item.logo,
width: "22",
height: "22",
bgColor: "#f1f6ff00"
}),
c: common_vendor.t(item.name),
d: common_vendor.f(item.addrTimes, (addItem, addIndex, i1) => {
return common_vendor.e({
a: addItem.address
}, addItem.address ? {
b: common_vendor.t(addItem.address.name),
c: common_vendor.t(addItem.address.address),
d: "dc7219ba-3-" + i0 + "-" + i1,
e: common_vendor.p({
src: "/static/common/right.png",
width: "16",
height: "16",
bgColor: "#f1f6ff00"
}),
f: common_vendor.o(($event) => $options.checkAddressShow(true, "addrTimes", addIndex, index), addIndex)
} : {}, {
g: common_vendor.f(addItem.goods, (pItem, pIndex, i2) => {
return {
a: "dc7219ba-4-" + i0 + "-" + i1 + "-" + i2,
b: 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
};
}),
h: "dc7219ba-5-" + i0 + "-" + i1,
i: common_vendor.o(($event) => addItem.remark = $event, addIndex),
j: common_vendor.p({
placeholder: "建议留言前先与商家沟通确认",
border: "surround",
customStyle: {
"text-align": "right !important",
"border": "0rpx"
},
modelValue: addItem.remark
}),
k: common_vendor.t($options.getValue($options.PRODUCT_DELIVERY_TIME, addItem.deliveryTime)),
l: addIndex
});
}),
e: item.id
};
}),
l: common_vendor.t($options.getValue($options.PAYMENT_WAY_, $data.orderInfo.paymentMethod)),
m: common_vendor.p({
src: "/static/common/right.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
}),
n: 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",
e: common_vendor.p({
name: item.id,
disabled: item.disabled,
activeColor: "#FF7C41"
}),
f: item.id
};
}),
r: common_vendor.o(($event) => $data.orderInfo.paymentMethod = $event),
s: common_vendor.p({
placement: "column",
modelValue: $data.orderInfo.paymentMethod
}),
t: common_vendor.o(($event) => {
$data.wayShow = false;
}),
v: common_vendor.o(($event) => $data.wayShow = $event),
w: 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({
round: 10,
closeOnClickOverlay: false,
closeable: true,
safeAreaInsetBottom: false,
show: $data.addressShow
}),
C: common_vendor.sr("uToastRef", "dc7219ba-13")
});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-dc7219ba"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/order_submit/order_submit.js.map
@@ -0,0 +1,16 @@
{
"navigationBarTitleText": "提交订单",
"navigationBarBackgroundColor": "#F5F5F5",
"navigationBarTextStyle": "black",
"enablePullDownRefresh": false,
"navigationStyle": "default",
"usingComponents": {
"address": "../../components/address",
"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",
"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
@@ -0,0 +1,261 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/* uni.scss */
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
.order_submit_warp.data-v-dc7219ba {
background-color: #F5F5F5;
height: calc(100vh - 200rpx);
padding: 20rpx;
overflow-y: auto;
}
.order_submit_header_warp.data-v-dc7219ba {
background: #FFFFFF;
border-radius: 24rpx;
padding: 30rpx;
}
.order_submit_header_warp .header_areaAddress_warp.data-v-dc7219ba {
display: flex;
font-weight: 500;
font-size: 26rpx;
color: #222222;
}
.order_submit_header_warp .header_areaAddress_warp .tab-comm.data-v-dc7219ba {
color: #FFFFFF;
border-radius: 8rpx;
width: 58rpx;
font-size: 24rpx;
font-weight: 500;
margin-right: 10rpx;
display: flex;
align-items: center;
justify-content: center;
}
.order_submit_header_warp .header_areaAddress_warp .areaAddress_default.data-v-dc7219ba {
background: #FD2A53;
}
.order_submit_header_warp .header_areaAddress_warp .areaAddress_tab.data-v-dc7219ba {
background: #4D88FE;
}
.order_submit_header_warp .header_detailedAddress_warp.data-v-dc7219ba {
display: flex;
justify-content: space-between;
align-items: center;
font-weight: bold;
font-size: 32rpx;
color: #222222;
margin-top: 10rpx;
}
.order_submit_header_warp .header_name_warp.data-v-dc7219ba {
font-weight: 500;
font-size: 26rpx;
color: #222222;
margin-top: 10rpx;
}
.no_address.data-v-dc7219ba {
background: #FFFFFF;
border-radius: 24rpx;
padding: 30rpx;
}
.no_address .no_address_title.data-v-dc7219ba {
display: flex;
align-items: center;
font-weight: bold;
font-size: 32rpx;
color: #222222;
}
.no_address .no_address_msg.data-v-dc7219ba {
font-weight: 500;
font-size: 26rpx;
color: #808080;
margin-top: 10rpx;
}
.order_store_warp.data-v-dc7219ba {
margin-top: 30rpx;
background: #FFFFFF;
border-radius: 24rpx;
padding: 30rpx;
}
.order_product_warp .order_product_header.data-v-dc7219ba {
display: flex;
}
.order_product_warp .order_product_title.data-v-dc7219ba {
font-weight: bold;
font-size: 28rpx;
color: #1A1A1A;
margin-left: 10rpx;
}
.order_product_warp .shops_address_warp.data-v-dc7219ba {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20rpx;
background-color: #F5F5F5;
border-radius: 10rpx;
margin: 10rpx;
font-size: 26rpx;
}
.order_product_warp .shops_address_warp .shops_address_warp_title.data-v-dc7219ba {
color: #222222;
}
.order_product_warp .order_item_content.data-v-dc7219ba {
display: flex;
}
.order_product_warp .order_item_content .content_info_right.data-v-dc7219ba {
margin-left: 20rpx;
display: grid;
}
.order_product_warp .order_item_content .content_info_title.data-v-dc7219ba {
width: 266px;
}
.order_product_warp .order_item_content .content_info_tag.data-v-dc7219ba {
font-size: 20rpx;
}
.order_product_warp .order_item_content .content_info_right_total.data-v-dc7219ba {
display: flex;
justify-content: space-between;
padding: 0 20rpx 0 0;
}
.order_product_warp .order_item_content .content_right_total.data-v-dc7219ba {
font-weight: 500;
font-size: 22rpx;
color: #FF7C41;
}
.order_product_warp .content_info_right_remark.data-v-dc7219ba {
display: flex;
justify-content: space-between;
margin-top: 20rpx;
align-items: center;
}
.order_product_warp .content_info_right_remark .title.data-v-dc7219ba {
font-weight: 500;
font-size: 26rpx;
color: #222222;
}
.order_product_warp .content_info_right_remark.data-v-dc7219ba input {
text-align: right;
}
.order_freight_warp .order_freight_item.data-v-dc7219ba {
display: flex;
justify-content: space-between;
font-weight: 500;
font-size: 26rpx;
color: #222222;
line-height: 60rpx;
}
.order_freight_warp .order_freight_item .value_.data-v-dc7219ba {
color: #FF7C41;
}
.order_freight_warp .order_freight_item .coupon_.data-v-dc7219ba {
margin-left: 20rpx;
height: 32rpx;
border-radius: 5rpx;
border: 1px solid #FF7C41;
font-size: 20rpx;
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;
height: 144rpx;
background: #FFFFFF;
display: flex;
justify-content: space-between;
width: calc(100% - 34rpx);
padding-top: 20rpx;
}
.order_pay_but ._but.data-v-dc7219ba {
padding: 20rpx 72rpx;
text-align: center;
background: #FF7C41;
border-radius: 16rpx 16rpx 16rpx 16rpx;
color: #FFF;
height: 46rpx;
}
.order_pay_but .price_.data-v-dc7219ba {
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;
}
@@ -0,0 +1,36 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
data() {
return {};
},
methods: {
jumpHome() {
common_vendor.index.switchTab({
url: "/pages/home/home"
});
}
}
};
if (!Array) {
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
_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.p({
src: "/static/product/ok.png",
width: "120",
height: "120",
bgColor: "#f1f6ff00"
}),
b: 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"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/order_submit_ok/order_submit_ok.js.map
@@ -0,0 +1,10 @@
{
"navigationBarTitleText": "",
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black",
"enablePullDownRefresh": false,
"navigationStyle": "default",
"usingComponents": {
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image"
}
}
@@ -0,0 +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>
@@ -0,0 +1,46 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/* uni.scss */
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
.order_sumbit_ok_warp.data-v-4af61460 {
height: calc(100vh - 80rpx);
text-align: center;
padding: 40rpx;
}
.order_sumbit_ok_warp .ok_img.data-v-4af61460 {
display: grid;
}
.order_sumbit_ok_warp .ok_img .ok_img_msg.data-v-4af61460 {
font-weight: bold;
font-size: 36rpx;
color: #FF7C41;
}
.order_sumbit_ok_warp .ok_but.data-v-4af61460 {
margin-top: 100rpx;
background: #FF7C41;
border-radius: 16rpx;
text-align: center;
padding: 20rpx 0;
height: 46rpx;
color: #FFF;
}
@@ -0,0 +1,169 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
data() {
return {
swiperList: [
"/static/home/banner03.png"
],
productList: [
{
id: 1,
name: "Michael Kors I Jodie 老花狗牙托特包手提单肩包-小号...",
url: "/static/common/product_def.png",
zqPrice: 42.84,
// 专区价格
price: 424.84,
// 到手价格
oPrice: 466.84,
// 原价价格
type: 1
// 1:爆款区的 0:普通区
},
{
id: 2,
name: "Michael Kors I Jodie 老花狗牙托特包手提单肩包-小号...",
url: "/static/common/product_def.png",
zqPrice: 42.84,
// 专区价格
price: 424.84,
// 到手价格
oPrice: 466.84,
// 原价价格
type: 0
},
{
id: 3,
name: "Michael Kors I Jodie 老花狗牙托特包手提单肩包-小号...",
url: "/static/common/product_def.png",
zqPrice: 42.84,
// 专区价格
price: 424.84,
// 到手价格
oPrice: 466.84,
// 原价价格
type: 0
},
{
id: 4,
name: "Michael Kors I Jodie 老花狗牙托特包手提单肩包-小号...",
url: "/static/common/product_def.png",
zqPrice: 42.84,
// 专区价格
price: 424.84,
// 到手价格
oPrice: 466.84,
// 原价价格
type: 1
},
{
id: 5,
name: "Michael Kors I Jodie 老花狗牙托特包手提单肩包-小号...",
url: "/static/common/product_def.png",
zqPrice: 42.84,
// 专区价格
price: 424.84,
// 到手价格
oPrice: 466.84,
// 原价价格
type: 0
},
{
id: 6,
name: "Michael Kors I Jodie 老花狗牙托特包手提单肩包-小号...",
url: "/static/common/product_def.png",
zqPrice: 42.84,
// 专区价格
price: 424.84,
// 到手价格
oPrice: 466.84,
// 原价价格
type: 0
},
{
id: 7,
name: "Michael Kors I Jodie 老花狗牙托特包手提单肩包-小号...",
url: "/static/common/product_def.png",
zqPrice: 42.84,
// 专区价格
price: 424.84,
// 到手价格
oPrice: 466.84,
// 原价价格
type: 0
}
]
};
},
methods: {
jumpHome() {
common_vendor.index.switchTab({
url: "/pages/home/home"
});
},
// 邀请好友
jumpInviteFriends() {
common_vendor.index.navigateTo({
url: "/pages/invite_friends/invite_friends"
});
}
}
};
if (!Array) {
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
const _easycom_up_swiper2 = common_vendor.resolveComponent("up-swiper");
(_easycom_up_image2 + _easycom_up_swiper2)();
}
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";
if (!Math) {
(_easycom_up_image + _easycom_up_swiper)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.o($options.jumpHome),
b: common_vendor.p({
src: "/static/common/left.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
}),
c: common_vendor.o($options.jumpInviteFriends),
d: common_vendor.p({
src: "/static/common/share.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
}),
e: common_vendor.p({
list: $data.swiperList,
height: "140"
}),
f: common_vendor.p({
src: "/static/product/title_bg.png",
width: "100%",
height: "20",
bgColor: "#f1f6ff00"
}),
g: common_vendor.f($data.productList, (item, k0, i0) => {
return common_vendor.e({
a: "7539d408-4-" + i0,
b: common_vendor.p({
src: item.url,
width: "100",
height: "100",
bgColor: "#f1f6ff00"
}),
c: item.type === 1
}, item.type === 1 ? {} : {}, {
d: common_vendor.t(item.name),
e: common_vendor.t(item.oPrice),
f: common_vendor.t(item.zqPrice),
g: common_vendor.t(item.price)
});
})
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-7539d408"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/preference/preference.js.map
@@ -0,0 +1,7 @@
{
"navigationStyle": "custom",
"usingComponents": {
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
"up-swiper": "../../uni_modules/uview-plus/components/u-swiper/u-swiper"
}
}
@@ -0,0 +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"><view wx:for="{{g}}" wx:for-item="item" class="product_item data-v-7539d408"><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 wx:if="{{item.c}}" 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.d}}</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.e}}</text></view></view><view class="price_zq_warp data-v-7539d408"><view class="price_lj_warp data-v-7539d408">专区立省{{item.f}}元</view><view class="price_ds_warp data-v-7539d408">到手¥<text class="data-v-7539d408" style="font-size:31rpx">{{item.g}}</text></view></view></view></view></view></view></view></view>
@@ -0,0 +1,50 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/* uni.scss */
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
.product_item_left_bz_img.data-v-7539d408 {
height: 32rpx;
width: 140rpx;
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIYAAAAmCAYAAAABZeN/AAAAAXNSR0IArs4c6QAACcBJREFUeF7tnH1sE+cdx7+PbWyHpAkpKeElZIkICU3AwXHeU8BsQCtRtGqb+kfHNrpN1cZemIREX+g6UEaLxsbWTqxFtDSwsaYroHYh3aDqiCipJia2KW01hohtyCCQEmIcHCe2757pzo59d7473wUnEOL8E8Xne+655/k839/b84RA+Yc85lya07rH8Z7FzC4HDQMIQ8tvhmEutLwdWPXdHf/pAcCqPCN96S4dAaLUr6KiIusbzdXrv1ifu08rEPHvMfjjMXb9vle9Rzo8nuG79N3T3VJTBaVrjTbbrMN7Ha1z8kwr9YLR72VurvsRs94fpie7urr86RmYfCOgpBimn3xnZd2vni47aSDMNL1gnDzkRdaJXizCMMygklGJPjL2sbALatcAUPF3+b/4djS2Ibmf75jc/dG+UWG7Ou8V9UnuXv7ZMu+TpE+RwZS8r3SIRf2Wfn90OgRtRO6/BdATYLHV4vGckwWjqazsvld+UdNcVZG1CZTR7FtwAAWHQzi86TIaAgOYjRAMCYtlIsGQvJ7OyZUHQzigtwGkEhhKC0Y0+eMCRmSmKAYoIfVyYJD6pUu/cLyl7mR2FinSC8a/OgZx443/wW64helUNLRi0nUrBomu7jjxyRXjdsAgAq0TPlsLGBqeqwqGdFoS3z2+3tSuySmiomJEL/DPPpoARklJiWX7DxY//sS6goMRE6JPMd756RUsvvg5CskwTKIVKpE0vStDpi1FMJK2LZVRuRU4pcG4lQCGo7Q07/C+5fuL5lnX6QWjpzuAs9vcaCA+5BAGJCkYOlbGuIGhZA5SBYbKitbkM0UXlGZTIlUrzT6GUDHOSGfG+MRjjUtadjo6p5nodL1g/HXvNTzQeQWlJBBxOtNgRMyn0qSOCQwdi0nWkU1uSgjLbhA9xWazZf7u+cotTY77X4ibEG2mxO8L4s+bLuChsBd5JOp0jiMYZNTzVokqlL13bX5CfD5vx8eYTGBwfaX9ZkoLRDpaZ7PNa9//0F9m5k5brBeMvx+7gZFWDyoNfmSMJjvTYEgUQ90plfeZpKZkPBWDgFK6y+p2b4k9pby83PzUV0oe2fTkgncBlugF45OOAdx/YxA5CMLAgUG59cZlwykIyyL0SQBG9wiM3N+KEqd1dXFaIAx7lcI3DZ+rhLCpV4y7HAwKhjJMqfXSJVesp0uWLMl959eNvy0rnv51fkJj0Yg2UyKuoTDRmgp3b6QtZojBtY2XkUvCkdxGgglI4mRJ1CcNhsBXUHRM9YarpN3icj0qdFcNa5yO0nf3rPg4w0pzxwOMq+fDuP5iH4q5MPZOgKEx+xhN8vAmYKopBgVZa3W53o+B0VBQkPGzn6/c+PCy/F8C8VWuNyoRFtEiChJpq+8ag7ZmP5oGvSgknDm5A4qRBkOSgxbnciilLovbs5BEq+HcVVJTXp7f1rLqSP5Mc2OqwfD5WBxoDqCi7yYWkyFkg0mBjxEzJKq1jrHUKyZMMWSiKW2+Vyqcz8RcB6XYYnW7dwmDWdNzGx9e1rzZ9oEB1JhKMIaHGbz5UgCFbi+WEj9yCRNRi9tWjBSBoVqAG2dTojlhlyQqUYv81MZZqB8sAiPB4Pzsy5f7Y2A4HI6c/c01L9kWZX8flIsiUmNKGCaMg7uHkNPlhYPcQh4JR3yLNBjRhZG48sekGEnBSEhuS6qznFmnLRaX50nh9JBam634w0NrTmVlGgpSBQalDP70uh/sqQHUkkHkkxBMfJiqVqPQE5WMo2II6izj6nxqVgxhWC6MF0aVV8a0iBZgEjAoH/rXml2uf4jBsNurP3pr9WmzGZZUgfH+ET/63utHAwYxlwQxbTR3MVnBGIPjGh9kLVnTyITLK8b4gkEozphd7jqJZwpSb7NVrVo+78eLS3NWsCxjiRQ4RpNTDIxDI7NXr34AuTlcB5Pv+ez80I/PWvrQiEE+AuFqJnFm9SiGhmSQrA3VMhHakmMxxbiXwQDdYO72HEgAw+F4cI6RsVQRQhcRSrLEKkRNj2b4nn/69eWYZuL8D3Uwuv45hFMv96KJ+lCMEVjBivYaxaIE2bK4Hidrgk2J1g0+Ywb1TikG7TczKCAy+3KJ0+k0eb3erAxKM4nBYGJpfBQYSjNfqQ5+Wv9MfdLd4a7zQ2jbeQX1QS8WGgIym3QE9jENhmzleaJNCWXB10WkaiHjyYi/wm0Ibv32jGvz1y5QBeNq7zBat/fAcWsAi8gQsggDQ4JzNQ5gJE2ra6uiKvkDqqYkSairz8dIooAxJUqh80kpQ8MsXxfRC4ahtrKy5MTusv/mFGYqguEdGMHBbR5UXL+BCuLnN+hEaiEq3nCqFCMNhvqeF7V5oGi3uNx8XUQXGFy19cvL8lft2LygnZDRopjYxwgEgniz2YPii32w8QmssCCBNQXB0LWlUFz5jf2lqkQ6FUN24UTaoJRda3Vd5OsiusCoKynJ3rnN/qyzbsYzck5nOBTCgV1uzPy0F1XEj5l8AktQ5puKijFJwKCAy9Idr4voAsNut889+hvbH4rmmhMOHFEaRuurHhhO96CGDGJWFAqRRkxyMFJ2pkS0tU/Z55lIxaAgW6zd8bqIHjAMTZWVD35wqPZ0hgUzpIpx7K0e9Le5UE980QSWeBMd/6A0GNHx1pZXmTAwKAIjIyFRXUQzGNy51c3fqPjaD781//fS4wOnjvfiXMs5NBEf5pPISTNRqnv0KXcEDJUsodZcRNQc3MOK0WLpFtdFNIPB7ebav932YrXtvu8Jwfj3mc/R+XIXGulNfsNNPIEl42jqBkNP6ncM6eM0GPz8E8rUml09orqIVjCI3W4vbN/jODpnlqlqFIwL5wbQvuMsGsIDKCEBTBdlNdNgiI8JJMmfJJharZlcaVQi3SMruZ4Ylfgs3Z4cpUhE+LlcTGl6ZEWNvW1vzUcmE2vhwOi97MPbL5xB9VA/yrgEFqK5ilhLdyMY6rWWiB+kPND36LnVo5Zuz1fHBEZDQ0PGhnWzvvnU4/Nf45xO783h4P6tH2Pp9avmCm4HFp/VlDatBQxpAU1mUmKTlWxlaDEltwNGqjbpJJ5oj43cmA4bJR8X0cwIwecOK8NQb3W5zo8JDGd5eda8hblrdz9X/prFTKdv3X3++MhnV/72rPHSl2YjtNJIkJnwnw0kpTL5qEQDGJpObEUGR7GuoCuXoDTQ9xAYFH4QHAdD+H9voAUK6ajw9ziLiqzD2dmVxEjWUIpcSugZNsR2Zubl9XZ0dHA7fNM/U2AE5HwMQ0NFxYyQ0TiXq7YiGLzKZmT0nz17NjQFxiP9itERkAODVxInYITTiY6ODm4TaIJXkR7Be3sE/g8F1/zj2n46nQAAAABJRU5ErkJggg==");
background-size: 100% 100%;
background-position: center;
/* 将图片居中显示 */
}
.price_o_warp.data-v-7539d408 {
background: #FFF5F5FF;
color: #F9241F;
}
.price_o_title_warp.data-v-7539d408 {
color: #F9241FFF;
}
.price_o_value_warp.data-v-7539d408 {
color: #F9241FFF;
}
.price_zq_warp.data-v-7539d408 {
color: #FFDB62FF;
background: linear-gradient(-88deg, #FA2222, #F83600);
}
.price_lj_warp.data-v-7539d408 {
background: #CE2300FF;
color: #FFF6ED;
}
@@ -0,0 +1,372 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_product = require("../../api/product.js");
const utils_enumUtils = require("../../utils/enumUtils.js");
const _sfc_main = {
computed: {
PRODUCT_DELIVERY_TIME() {
return utils_enumUtils.PRODUCT_DELIVERY_TIME;
}
},
data() {
return {
id: 0,
swiperList: [],
currentNum: 1,
specificationShow: false,
specificationShowType: "",
// 弹框类型
orderInfo: {
id: 1,
url: "/static/common/product_def.png",
price: 87,
oPrice: 199,
couponPrice: 50,
inventory: 100,
// 库存
quantity: 1,
addressObj: {
name: "李个",
address: "郑州市金水区东风路街道白庙小区五号楼"
}
},
specificationList: [],
//规格
selectSpecification: [],
// 选择的规格
specificationTempl: [],
// 规格模版数据
selectSpecificationTempl: {}
// 选择规格模版数据
};
},
onLoad(options) {
const id = options.id;
if (id && id !== 0) {
this.id = id ? parseInt(id, 10) : 0;
this.getById();
}
},
methods: {
getValue: utils_enumUtils.getValue,
jumpLeft() {
common_vendor.index.navigateBack({
delta: 1
// 返回的页面数,默认为1,返回到上一级
});
},
jumpHome() {
common_vendor.index.switchTab({
url: "/pages/home/home"
});
},
// 分享
jumpShare() {
common_vendor.index.navigateTo({
url: "/pages/invite_friends/invite_friends"
});
},
/**
* 查询详细内容
*/
async getById() {
const params = {
id: this.id
};
const resp = await api_product.getGoodsDetail(params);
if (resp && resp.bizcode === 100) {
const data = resp.data;
if (data.goodsGraph) {
this.swiperList = data.goodsGraph.split(",");
}
data.addressObj = {};
data.quantity = 1;
data.inventory = 0;
this.orderInfo = data;
this.getSpecification(data.specs);
}
},
checkSpecification(val, type) {
if (val) {
this.querySpecification();
} else {
this.specificationList = [];
this.selectSpecification = [];
this.specificationTempl = [];
}
this.specificationShow = val;
this.specificationShowType = type;
},
// 拆解规格
getSpecification(specs) {
common_vendor.index.__f__("log", "at pages/productInfo/productInfo.vue:296", "specs", specs);
const optionArr = [];
if (specs) {
const arr = JSON.parse(specs);
arr.map((item) => {
common_vendor.index.__f__("log", "at pages/productInfo/productInfo.vue:301", "item", item);
optionArr.push({
type: item.type,
items: item.items,
selectVal: null
});
});
}
this.specificationList = optionArr;
},
// 获取规格模版数据
async querySpecification() {
const params = {
id: this.id
};
const resp = await api_product.getGoodsSpecs(params);
if (resp && resp.bizcode === 100) {
const data = resp.data;
let stock = 0;
data.map((item) => {
stock = stock + item.stock;
});
this.specificationTempl = data;
this.orderInfo.inventory = stock;
}
},
//改变规格的样式
clickSpecification(pIndex, oItem) {
this.specificationList[pIndex].selectVal = oItem.n;
this.selectSpecificationFun(pIndex, oItem);
},
// 选择规格
selectSpecificationFun(index, item) {
const currentSelectSpecification = this.selectSpecification;
currentSelectSpecification[index] = item.n;
this.selectSpecification = currentSelectSpecification;
const oldLength = this.specificationList.length;
const newLength = this.selectSpecification.length;
if (oldLength === newLength) {
const newLengthStr = this.selectSpecification.join("♧");
const specificationTempl = this.specificationTempl;
let selectTempl = {};
specificationTempl.map((item2) => {
if (item2.combNames === newLengthStr) {
selectTempl = item2;
return;
}
});
this.selectSpecificationTempl = selectTempl;
this.orderInfo.inventory = selectTempl.stock;
}
},
// 改变数量
quantityFun(type) {
let currentQuantity = this.orderInfo.quantity;
if (type === "minus") {
if (currentQuantity === 1) {
this.$refs.uToastRef.show({
type: "error",
message: "不能低于最低购买数量"
});
} else {
currentQuantity = currentQuantity - 1;
}
} else if (type === "add") {
currentQuantity = currentQuantity + 1;
}
this.orderInfo.quantity = currentQuantity;
},
/**
* 立即购买,确定订单页面
*/
byFun() {
this.addCart();
common_vendor.index.navigateTo({
url: "/pages/order_submit/order_submit"
});
},
/**
* 加入购入车
*/
async addCart() {
const selectTempl = this.selectSpecificationTempl;
if (!selectTempl || Object.keys(selectTempl).length === 0) {
common_vendor.index.showToast({
title: "请先选择规格",
icon: "none",
// 可选 success/loading/none
duration: 2e3
// 持续时长,单位ms
});
return;
}
const params = {
id: this.id,
specsId: selectTempl.id,
// 规格ID
goodsNum: this.orderInfo.quantity
// 商品数量
};
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
});
setTimeout(() => {
this.checkSpecification(false, null);
}, 2e3);
}
}
}
};
if (!Array) {
const _easycom_up_swiper2 = common_vendor.resolveComponent("up-swiper");
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
const _easycom_up_popup2 = common_vendor.resolveComponent("up-popup");
(_easycom_up_swiper2 + _easycom_up_image2 + _easycom_up_popup2)();
}
const _easycom_up_swiper = () => "../../uni_modules/uview-plus/components/u-swiper/u-swiper.js";
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
const _easycom_up_popup = () => "../../uni_modules/uview-plus/components/u-popup/u-popup.js";
if (!Math) {
(_easycom_up_swiper + _easycom_up_image + _easycom_up_popup)();
}
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({
list: $data.swiperList,
height: "280"
}),
d: common_vendor.o($options.jumpLeft),
e: common_vendor.p({
src: "/static/common/left_b_st.png",
width: "30",
height: "30",
bgColor: "#f1f6ff00"
}),
f: common_vendor.o($options.jumpShare),
g: 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)
} : {
k: 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({
src: "/static/common/right.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
}),
p: common_vendor.o(($event) => $options.checkSpecification(true)),
q: 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({
src: "/static/product/product_b.png",
width: "10",
height: "12",
bgColor: "#f1f6ff00"
}),
t: common_vendor.p({
src: "/static/product/product_js.png",
width: "10",
height: "10",
bgColor: "#f1f6ff00"
}),
v: $data.orderInfo.detailInfo,
w: common_vendor.o($options.jumpHome),
x: common_vendor.p({
src: "/static/product/home.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
}),
y: common_vendor.o($options.jumpShare),
z: common_vendor.p({
src: "/static/product/kefu.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
}),
A: common_vendor.o(($event) => $options.checkSpecification(true, "addCart")),
B: common_vendor.o(($event) => $options.checkSpecification(true, "buy")),
C: common_vendor.p({
src: $data.orderInfo.mainGraph,
width: "100",
height: "100",
bgColor: "#f1f6ff00"
}),
D: $data.selectSpecificationTempl && Object.keys($data.selectSpecificationTempl).length !== 0
}, $data.selectSpecificationTempl && Object.keys($data.selectSpecificationTempl).length !== 0 ? {
E: common_vendor.t($data.selectSpecificationTempl.price)
} : {
F: common_vendor.t($data.orderInfo.minPrice),
G: common_vendor.t($data.orderInfo.maxPrice)
}, {
H: $data.orderInfo.couponPrice && $data.orderInfo.couponPrice !== 0
}, $data.orderInfo.couponPrice && $data.orderInfo.couponPrice !== 0 ? {
I: common_vendor.t($data.orderInfo.couponPrice)
} : {}, {
J: common_vendor.t($data.orderInfo.adPrice),
K: $data.orderInfo.couponPrice && $data.orderInfo.couponPrice !== 0
}, $data.orderInfo.couponPrice && $data.orderInfo.couponPrice !== 0 ? {
L: common_vendor.t($data.orderInfo.couponPrice)
} : {}, {
M: common_vendor.t($data.orderInfo.inventory || 0),
N: common_vendor.f($data.specificationList, (item, index, i0) => {
return {
a: common_vendor.t(item.type),
b: common_vendor.f(item.items, (oItem, oIndex, i1) => {
return {
a: common_vendor.t(oItem.n),
b: common_vendor.n(oItem.inventory === 0 ? "item_Warp item_Warp_no_warp" : item.selectVal === oItem.n ? "item_Warp item_Warp_yes_warp" : "item_Warp"),
c: oItem.n,
d: common_vendor.o(($event) => $options.clickSpecification(index, oItem), oItem.n)
};
}),
c: item.id
};
}),
O: common_vendor.o(($event) => $options.quantityFun("minus")),
P: common_vendor.t($data.orderInfo.quantity),
Q: common_vendor.o(($event) => $options.quantityFun("add")),
R: $data.specificationShowType === "buy"
}, $data.specificationShowType === "buy" ? {
S: common_vendor.o((...args) => $options.byFun && $options.byFun(...args))
} : $data.specificationShowType === "addCart" ? {
U: common_vendor.o((...args) => $options.addCart && $options.addCart(...args))
} : {
V: common_vendor.o((...args) => $options.addCart && $options.addCart(...args)),
W: common_vendor.o((...args) => $options.byFun && $options.byFun(...args))
}, {
T: $data.specificationShowType === "addCart",
X: common_vendor.o(($event) => $data.specificationShow = $event),
Y: common_vendor.p({
round: 10,
closeOnClickOverlay: false,
closeable: true,
mode: "bottom",
show: $data.specificationShow
})
});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-ceb0d096"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/productInfo/productInfo.js.map
@@ -0,0 +1,8 @@
{
"navigationStyle": "custom",
"usingComponents": {
"up-swiper": "../../uni_modules/uview-plus/components/u-swiper/u-swiper",
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
"up-popup": "../../uni_modules/uview-plus/components/u-popup/u-popup"
}
}
File diff suppressed because one or more lines are too long
@@ -0,0 +1,328 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/* uni.scss */
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
.product_info_warp.data-v-ceb0d096 {
height: calc(100vh - 196rpx);
background-color: #F5F5F5;
}
.product_info_header_warp.data-v-ceb0d096 {
position: relative;
}
.product_info_header_warp .img_comm.data-v-ceb0d096 {
position: absolute;
top: 140rpx;
}
.product_info_header_warp .left_warp.data-v-ceb0d096 {
left: 40rpx;
}
.product_info_header_warp .right_warp.data-v-ceb0d096 {
right: 40rpx;
}
.product_content_warp.data-v-ceb0d096 {
border-radius: 30rpx 30rpx 0rpx 24rpx;
padding: 20rpx;
}
.product_content_warp .content_data.data-v-ceb0d096 {
padding: 20rpx;
}
.product_content_warp .content_data_price.data-v-ceb0d096 {
font-weight: bold;
font-size: 36rpx;
color: #FF7C41;
}
.product_content_warp .content_data_price .price_o.data-v-ceb0d096 {
font-weight: 500;
font-size: 26rpx;
color: #999999;
-webkit-text-decoration-line: line-through;
text-decoration-line: line-through;
margin-left: 10rpx;
}
.product_content_warp .content_data_title.data-v-ceb0d096 {
font-weight: bold;
font-size: 36rpx;
color: #111111;
margin-top: 10rpx;
}
.product_content_warp .content_data_series.data-v-ceb0d096 {
display: flex;
justify-content: space-between;
align-items: center;
font-weight: 500;
font-size: 24rpx;
color: #999999;
margin-top: 10rpx;
}
.product_content_warp .content_concrete.data-v-ceb0d096 {
padding: 20rpx;
background: #FFFFFF;
border-radius: 30rpx;
margin-top: 20rpx;
}
.product_content_warp .content_concrete .concrete_item.data-v-ceb0d096 {
display: flex;
justify-content: space-between;
font-size: 28rpx;
padding: 20rpx 0;
}
.product_content_warp .content_concrete .concrete_item_.data-v-ceb0d096 {
display: flex;
width: 100%;
}
.product_content_warp .content_concrete .concrete_item_but.data-v-ceb0d096 {
border-bottom: 1rpx solid #EEEEEEFF;
}
.product_content_warp .content_concrete .concrete_item_title.data-v-ceb0d096 {
color: #808080;
width: 140rpx;
}
.product_content_warp .content_concrete .concrete_item_value.data-v-ceb0d096 {
font-weight: 500;
color: #1A1A1A;
width: calc(100% - 140rpx);
}
.product_content_warp .content_concrete .concrete_item_value .address_warp.data-v-ceb0d096 {
display: flex;
margin-bottom: 10rpx;
}
.product_content_warp .content_concrete .concrete_item_value .address_72_warp.data-v-ceb0d096 {
font-size: 24rpx;
color: #808080;
}
.product_content_warp .content_concrete .concrete_item_bz.data-v-ceb0d096 {
display: flex;
}
.product_content_warp .content_concrete .concrete_item_bz_item.data-v-ceb0d096 {
margin-right: 20rpx;
}
.product_content_warp .content_concrete .concrete_item_bz_item_left.data-v-ceb0d096 {
margin-left: 10rpx;
}
.content_details.data-v-ceb0d096 {
background: #FFFFFF;
border-radius: 24rpx;
padding: 10rpx 10rpx 30rpx;
margin-top: 30rpx;
}
.content_details .content_details_title.data-v-ceb0d096 {
padding: 20rpx 30rpx;
}
.content_details img.data-v-ceb0d096,
.content_details img[alt].data-v-ceb0d096 {
max-width: 100%;
}
.product_but_warp.data-v-ceb0d096 {
padding: 20rpx;
position: fixed;
bottom: 0;
height: 160rpx;
width: calc(100% - 40rpx);
background-color: #FFFFFF;
display: flex;
justify-content: space-between;
}
.product_but_warp .product_but_left.data-v-ceb0d096 {
display: flex;
justify-content: space-between;
width: 30%;
}
.product_but_warp .product_but_left .left_item.data-v-ceb0d096 {
width: 50%;
text-align: center;
font-weight: 500;
font-size: 20rpx;
color: #666666;
}
.product_but_right.data-v-ceb0d096 {
display: flex;
justify-content: center;
}
.product_but_right .but_comm.data-v-ceb0d096 {
text-align: center;
padding: 20rpx 40rpx;
color: #FFFFFF;
height: 50rpx;
}
.product_but_right .join_warp.data-v-ceb0d096 {
background: #FFA64F;
border-radius: 16rpx 0rpx 0rpx 16rpx;
}
.product_but_right .buy_warp.data-v-ceb0d096 {
background: #FF7C41;
border-radius: 0rpx 16rpx 16rpx 0rpx;
}
.specification_warp.data-v-ceb0d096 {
background-color: #F5F5F5;
}
.specification_warp .specification_adress_warp.data-v-ceb0d096 {
padding: 30rpx;
background: #FFFFFF;
border-radius: 24rpx;
}
.specification_warp .specification_adress_msg.data-v-ceb0d096 {
text-align: center;
font-weight: 500;
font-size: 24rpx;
color: #808080;
margin: 0 10rpx 0 20rpx;
}
.specification_warp .specification_adress_arr.data-v-ceb0d096 {
display: flex;
align-items: center;
margin-top: 20rpx;
}
.specification_warp .address_title.data-v-ceb0d096 {
font-weight: 500;
font-size: 26rpx;
color: #BBBBBB;
margin-bottom: 10rpx;
margin-right: 20rpx;
width: 592rpx;
white-space: nowrap;
/* 防止文本换行 */
overflow: hidden;
/* 隐藏溢出的文本 */
text-overflow: ellipsis;
/* 使用省略号表示溢出的内容 */
}
.specification_warp .address_title_sel.data-v-ceb0d096 {
color: #333333;
}
.specification_warp .specification_product_warp.data-v-ceb0d096 {
display: flex;
background: #FFFFFF;
border-radius: 24rpx;
padding: 30rpx;
margin-top: 20rpx;
}
.specification_warp .specification_product_warp .product_content.data-v-ceb0d096 {
margin-left: 10rpx;
display: grid;
}
.specification_warp .specification_product_warp .price_content_warp.data-v-ceb0d096 {
font-size: 36rpx;
color: #FF7C41;
display: flex;
align-items: center;
}
.specification_warp .specification_product_warp .price_content_coupon_warp.data-v-ceb0d096 {
margin-left: 20rpx;
padding: 4rpx 10rpx;
text-align: center;
color: #FF7C41;
font-size: 22rpx;
font-weight: 500;
border: 1px solid #FF7C41;
border-radius: 6rpx;
}
.specification_warp .specification_product_warp .oOrice_content_warp.data-v-ceb0d096 {
font-size: 26rpx;
color: #808080;
line-height: 11rpx;
-webkit-text-decoration-line: line-through;
text-decoration-line: line-through;
margin-top: 10rpx;
}
.specification_warp .specification_product_warp .coupon_content_warp.data-v-ceb0d096 {
font-weight: 500;
font-size: 22rpx;
color: #FF7C41;
margin-top: 10rpx;
}
.specification_warp .specification_product_warp .inventory_warp.data-v-ceb0d096 {
display: flex;
font-weight: 500;
font-size: 24rpx;
color: #808080;
}
.specification_warp .specification_list_warp.data-v-ceb0d096 {
background: #FFFFFF;
border-radius: 24rpx;
padding: 30rpx;
margin-top: 20rpx;
}
.specification_warp .specification_list_warp .list_warp.data-v-ceb0d096 {
margin-bottom: 30rpx;
}
.specification_warp .specification_list_warp .list_title_warp.data-v-ceb0d096 {
font-weight: 500;
font-size: 30rpx;
color: #1A1A1A;
line-height: 48rpx;
}
.specification_warp .specification_list_warp .specification_item_warp.data-v-ceb0d096 {
justify-content: space-between;
display: flex;
flex-wrap: wrap;
align-items: center;
}
.specification_warp .specification_list_warp .item_Warp.data-v-ceb0d096 {
width: 48%;
background: #F5F5F5;
border-radius: 10rpx;
color: #333333;
text-align: center;
padding: 10rpx 0;
margin-top: 13rpx;
font-size: 26rpx;
font-weight: 500;
}
.specification_warp .specification_list_warp .item_Warp_no_warp.data-v-ceb0d096 {
background: #F5F5F5;
color: #999999;
-webkit-text-decoration-line: line-through;
text-decoration-line: line-through;
}
.specification_warp .specification_list_warp .item_Warp_yes_warp.data-v-ceb0d096 {
border: 1px solid #FF7C41;
color: #FF7C41;
background: #FFF1EB;
}
.specification_warp .specification_but.data-v-ceb0d096 {
background: #FFFFFF;
border-radius: 24rpx;
padding: 30rpx;
margin-top: 30rpx;
}
.specification_warp .specification_but .specification_buy.data-v-ceb0d096 {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 30rpx;
}
.specification_warp .specification_but .specification_buy_but.data-v-ceb0d096 {
width: 100%;
padding: 20rpx 0;
text-align: center;
background-color: #FF7C41;
color: #FFFFFF;
margin-top: 20rpx;
font-weight: 500;
font-size: 28rpx;
color: #FFFFFF;
border-radius: 16rpx;
}
.popup_but .but_comm.data-v-ceb0d096 {
width: 40%;
}
+259
View File
@@ -0,0 +1,259 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
data() {
return {
form: {
mobile: null,
code: null,
// 验证码
loginPassword: null,
loginPassword2: null,
transactionCode: null,
// 交易密码
referralCode: null
// 推荐码
},
inputCss: {
"height": "80rpx",
"background": "#F3F3F3FF",
"border-radius": "30rpx",
"border": "0rpx",
"padding-left": "16px"
},
countdown: false,
// 清空倒计时
loginPasswordIsShow: false,
loginPassword2IsShow: false,
transactionCodeIsShow: false,
// 交易密码
isPolicy: false
};
},
methods: {
registerFun() {
const params = {
...this.form
};
common_vendor.index.__f__("log", "at pages/register/register.vue:139", "params", params);
if (!params.mobile) {
this.$refs.uToastRef.show({
type: "error",
message: "请输入手机号"
});
return;
}
if (!params.code) {
this.$refs.uToastRef.show({
type: "error",
message: "请输入验证码"
});
return;
}
if (!params.loginPassword) {
this.$refs.uToastRef.show({
type: "error",
message: "请输入登录密码"
});
return;
}
if (!params.loginPassword2) {
this.$refs.uToastRef.show({
type: "error",
message: "请输入二次确认密码"
});
return;
}
if (params.loginPassword !== params.loginPassword2) {
this.$refs.uToastRef.show({
type: "error",
message: "两次输入的登录密码不一致"
});
return;
}
if (!params.referralCode) {
this.$refs.uToastRef.show({
type: "error",
message: "请输入推荐码"
});
return;
}
if (!this.isPolicy) {
this.$refs.uToastRef.show({
type: "error",
message: "请阅读完相关协议以及政策,并且勾选同意选项"
});
return;
}
common_vendor.index.__f__("log", "at pages/register/register.vue:189", "params", params);
common_vendor.index.switchTab({
url: "/pages/home/home"
});
},
/**
* 获取手机验证码
*/
getMobileCode() {
this.countdown = true;
},
getCode(val) {
this.countdown = false;
}
}
};
if (!Array) {
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
const _easycom_up_count_down2 = common_vendor.resolveComponent("up-count-down");
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
const _easycom_up_checkbox2 = common_vendor.resolveComponent("up-checkbox");
const _easycom_up_toast2 = common_vendor.resolveComponent("up-toast");
(_easycom_up_input2 + _easycom_up_count_down2 + _easycom_up_image2 + _easycom_up_checkbox2 + _easycom_up_toast2)();
}
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_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.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_input + _easycom_up_count_down + _easycom_up_image + _easycom_up_checkbox + _easycom_up_toast)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: common_vendor.o(($event) => $data.form.mobile = $event),
b: common_vendor.p({
placeholder: "请输入手机号",
border: "surround",
customStyle: $data.inputCss,
modelValue: $data.form.mobile
}),
c: $data.countdown
}, $data.countdown ? {
d: common_vendor.o(($event) => $options.getCode(false)),
e: common_vendor.p({
time: 60 * 1e3,
format: "ss"
})
} : {
f: common_vendor.o((...args) => $options.getMobileCode && $options.getMobileCode(...args))
}, {
g: common_vendor.o(($event) => $data.form.code = $event),
h: common_vendor.p({
placeholder: "请输入验证码",
border: "surround",
customStyle: $data.inputCss,
modelValue: $data.form.code
}),
i: $data.loginPasswordIsShow
}, $data.loginPasswordIsShow ? {
j: common_vendor.o(($event) => {
$data.loginPasswordIsShow = false;
}),
k: common_vendor.p({
src: "/static/login/show.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
})
} : {
l: common_vendor.o(($event) => {
$data.loginPasswordIsShow = true;
}),
m: common_vendor.p({
src: "/static/login/hidden.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
})
}, {
n: common_vendor.o(($event) => $data.form.loginPassword = $event),
o: common_vendor.p({
placeholder: "请输入登录密码",
border: "surround",
customStyle: $data.inputCss,
type: $data.loginPasswordIsShow ? "text" : "password",
modelValue: $data.form.loginPassword
}),
p: $data.loginPassword2IsShow
}, $data.loginPassword2IsShow ? {
q: common_vendor.o(($event) => {
$data.loginPassword2IsShow = false;
}),
r: common_vendor.p({
src: "/static/login/show.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
})
} : {
s: common_vendor.o(($event) => {
$data.loginPassword2IsShow = true;
}),
t: common_vendor.p({
src: "/static/login/hidden.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
})
}, {
v: common_vendor.o(($event) => $data.form.loginPassword2 = $event),
w: common_vendor.p({
placeholder: "再次输入登录密码",
border: "surround",
customStyle: $data.inputCss,
type: $data.loginPassword2IsShow ? "text" : "password",
modelValue: $data.form.loginPassword2
}),
x: $data.transactionCodeIsShow
}, $data.transactionCodeIsShow ? {
y: common_vendor.o(($event) => {
$data.transactionCodeIsShow = false;
}),
z: common_vendor.p({
src: "/static/login/show.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
})
} : {
A: common_vendor.o(($event) => {
$data.transactionCodeIsShow = true;
}),
B: common_vendor.p({
src: "/static/login/hidden.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
})
}, {
C: common_vendor.o(($event) => $data.form.transactionCode = $event),
D: common_vendor.p({
placeholder: "请输入交易密码",
border: "surround",
customStyle: $data.inputCss,
type: $data.transactionCodeIsShow ? "text" : "password",
modelValue: $data.form.transactionCode
}),
E: common_vendor.o(($event) => $data.form.referralCode = $event),
F: common_vendor.p({
placeholder: "推荐码",
border: "surround",
customStyle: $data.inputCss,
modelValue: $data.form.referralCode
}),
G: common_vendor.o((...args) => $options.registerFun && $options.registerFun(...args)),
H: common_vendor.o(($event) => $data.isPolicy = $event),
I: common_vendor.p({
name: "isCheck",
usedAlone: true,
shape: "circle",
activeColor: "#FF7C41",
size: "19",
iconSize: "18",
checked: $data.isPolicy
}),
J: common_vendor.sr("uToastRef", "60fa605e-14")
});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/register/register.js.map
@@ -0,0 +1,14 @@
{
"navigationBarTitleText": "",
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black",
"enablePullDownRefresh": false,
"navigationStyle": "default",
"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",
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
"up-checkbox": "../../uni_modules/uview-plus/components/u-checkbox/u-checkbox",
"up-toast": "../../uni_modules/uview-plus/components/u-toast/u-toast"
}
}
@@ -0,0 +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="60fa605e-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="60fa605e-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="60fa605e-2,60fa605e-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="60fa605e-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="60fa605e-4,60fa605e-3" bind:__l="__l" u-p="{{k}}"></up-image><up-image wx:else bindclick="{{l}}" u-i="60fa605e-5,60fa605e-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="60fa605e-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="60fa605e-7,60fa605e-6" bind:__l="__l" u-p="{{r}}"></up-image><up-image wx:else bindclick="{{s}}" u-i="60fa605e-8,60fa605e-6" bind:__l="__l" u-p="{{t||''}}"></up-image></view></up-input></view><view class="register_info_item"><up-input wx:if="{{D}}" u-s="{{['suffix']}}" u-i="60fa605e-9" bind:__l="__l" bindupdateModelValue="{{C}}" u-p="{{D}}"><view slot="suffix" style="margin-right:10rpx"><up-image wx:if="{{x}}" bindclick="{{y}}" u-i="60fa605e-10,60fa605e-9" bind:__l="__l" u-p="{{z}}"></up-image><up-image wx:else bindclick="{{A}}" u-i="60fa605e-11,60fa605e-9" bind:__l="__l" u-p="{{B||''}}"></up-image></view></up-input></view><view class="register_info_item"><up-input wx:if="{{F}}" u-i="60fa605e-12" bind:__l="__l" bindupdateModelValue="{{E}}" u-p="{{F}}"></up-input></view></view><view class="login_comm_but login_comm_but_yes" bindtap="{{G}}"> 注册 </view><view class="policy_warp"><up-checkbox wx:if="{{I}}" u-s="{{['label']}}" u-i="60fa605e-13" bind:__l="__l" bindupdateChecked="{{H}}" u-p="{{I}}"><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="60fa605e-14" bind:__l="__l"></up-toast></view>
@@ -0,0 +1,39 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/* uni.scss */
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
.register_warp {
height: calc(100vh - 280rpx);
padding: 40rpx;
}
.register_title_warp {
font-weight: bold;
font-size: 62rpx;
color: #333333;
}
.register_ifo_warp {
margin-top: 30rpx;
}
.register_ifo_warp .register_info_item {
margin-bottom: 40rpx;
}
-42
View File
@@ -1,42 +0,0 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const collection = "hello";
const _sfc_main = {
data() {
return {
name: ""
};
},
methods: {
add() {
common_vendor.index.showLoading();
let db = common_vendor.er.database();
db.collection(collection).add({
name: this.name
}).then((res) => {
common_vendor.index.showToast({
title: this.$t("schema.add-success")
});
}).catch((err) => {
common_vendor.index.showModal({
content: err.message,
showCancel: false
});
}).finally(() => {
common_vendor.index.hideLoading();
});
}
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.t(_ctx.$t("schema.name")),
b: $data.name,
c: common_vendor.o(($event) => $data.name = $event.detail.value),
d: common_vendor.t(_ctx.$t("schema.add")),
e: common_vendor.o((...args) => $options.add && $options.add(...args))
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/schema/schema.js.map
-5
View File
@@ -1,5 +0,0 @@
{
"navigationBarTitleText": "Schema",
"enablePullDownRefresh": false,
"usingComponents": {}
}
-1
View File
@@ -1 +0,0 @@
<view class="container"><view>{{a}}</view><input class="input" value="{{b}}" bindinput="{{c}}"/><button type="primary" bindtap="{{e}}">{{d}}</button></view>
-8
View File
@@ -1,8 +0,0 @@
.input {
border: 1px solid #ebebeb;
border-radius: 3px;
margin-top: 15px;
margin-bottom: 15px;
padding: 8px;
}
+224
View File
@@ -0,0 +1,224 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_product = require("../../api/product.js");
const _sfc_main = {
data() {
return {
searchList: [
{
id: 1,
name: "酒"
},
{
id: 2,
name: "鸿星尔克"
},
{
id: 3,
name: "361"
},
{
id: 4,
name: "国美"
},
{
id: 5,
name: "刘丹"
},
{
id: 6,
name: "榴莲"
},
{
id: 7,
name: "会心一笑"
}
],
// 搜索历史记录
isShowSearch: false,
searchVal: null,
poductList: [],
// 产品列表
imgSize: "min"
// big:大,min:笑
};
},
methods: {
jumpHome() {
common_vendor.index.switchTab({
url: "/pages/home/home"
});
},
// 删除历史
searchHistoryDelete(item) {
common_vendor.index.__f__("log", "at pages/search/search.vue:141", "item", item);
this.isShowSearch = false;
},
/**
* 查询产品
*/
async searchClick(item) {
this.searchVal = item.name;
this.searchClickFun();
},
/**
* 查询产品
*/
async searchClickFun() {
const param = {
keyword: this.searchVal
};
const resp = await api_product.searchList(param);
if (resp && resp.bizcode === 100) {
this.poductList = resp.data;
}
},
/**
* 切换图大小
*/
toggleImg() {
this.imgSize = this.imgSize === "big" ? "min" : "big";
},
jumpInfo(item) {
common_vendor.index.navigateTo({
url: "/pages/productInfo/productInfo?id=" + item.id
});
}
}
};
if (!Array) {
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
const _easycom_up_tag2 = common_vendor.resolveComponent("up-tag");
(_easycom_up_image2 + _easycom_up_input2 + _easycom_up_tag2)();
}
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_tag = () => "../../uni_modules/uview-plus/components/u-tag/u-tag.js";
if (!Math) {
(_easycom_up_image + _easycom_up_input + _easycom_up_tag)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: common_vendor.o($options.jumpHome),
b: common_vendor.p({
src: "/static/common/left.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
}),
c: common_vendor.o($options.jumpHome),
d: common_vendor.p({
src: "/static/common/search.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
}),
e: common_vendor.o((...args) => $options.searchClickFun && $options.searchClickFun(...args)),
f: common_vendor.o(($event) => $data.searchVal = $event),
g: common_vendor.p({
placeholder: "搜索关键字(商品、店铺、品牌)",
customStyle: {
"border-color": "#FF7C41 !important",
"padding": "0 0 0 20rpx !important",
"border-radius": "20rpx !important",
"width": "590rpx"
},
modelValue: $data.searchVal
}),
h: !$data.searchVal
}, !$data.searchVal ? common_vendor.e({
i: common_vendor.o(($event) => {
$data.isShowSearch = true;
}),
j: common_vendor.p({
src: "/static/common/delete.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
}),
k: $data.searchList && $data.searchList.length !== 0
}, $data.searchList && $data.searchList.length !== 0 ? {
l: common_vendor.f($data.searchList, (item, k0, i0) => {
return {
a: common_vendor.o(($event) => $options.searchHistoryDelete(item), item.id),
b: common_vendor.o(($event) => $options.searchClick(item), item.id),
c: "c10c040c-4-" + i0,
d: common_vendor.p({
plain: true,
text: item.name,
type: "warning",
show: true,
closable: $data.isShowSearch
}),
e: item.id
};
})
} : {
m: common_vendor.p({
src: "/static/common/not_search.png",
width: "100",
height: "100",
bgColor: "#f1f6ff00"
})
}) : common_vendor.e({
n: common_vendor.o($options.toggleImg),
o: common_vendor.p({
src: $data.imgSize === "big" ? "/static/search/dt.png" : "/static/search/xt.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
}),
p: $data.poductList && $data.poductList.length !== 0
}, $data.poductList && $data.poductList.length !== 0 ? common_vendor.e({
q: $data.imgSize === "big"
}, $data.imgSize === "big" ? {
r: common_vendor.f($data.poductList, (item, k0, i0) => {
return {
a: "c10c040c-7-" + i0,
b: common_vendor.p({
src: item.url,
width: "100%",
height: "150px",
bgColor: "#f1f6ff00",
radius: "10"
}),
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)
};
})
} : {}, {
s: $data.imgSize === "min"
}, $data.imgSize === "min" ? {
t: common_vendor.f($data.poductList, (item, k0, i0) => {
return {
a: "c10c040c-8-" + i0,
b: common_vendor.p({
src: item.url,
width: "100",
height: "100",
bgColor: "#f1f6ff00",
radius: "10"
}),
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)
};
})
} : {}) : {
v: common_vendor.p({
src: "/static/common/not_search.png",
width: "100",
height: "100",
bgColor: "#f1f6ff00"
})
}));
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-c10c040c"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/search/search.js.map
+8
View File
@@ -0,0 +1,8 @@
{
"navigationStyle": "custom",
"usingComponents": {
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
"up-tag": "../../uni_modules/uview-plus/components/u-tag/u-tag"
}
}
+1
View File
@@ -0,0 +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>
+115
View File
@@ -0,0 +1,115 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/* uni.scss */
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
.search_warp.data-v-c10c040c {
background-color: #F5F5F5;
height: 100vh;
overflow-y: hidden;
}
.search_warp .search_but_warp.data-v-c10c040c {
background: #FF7C41;
border-radius: 16rpx;
padding: 20rpx 40rpx;
text-align: center;
color: #FFF;
}
.search_warp .search_history.data-v-c10c040c {
padding: 60rpx 40rpx;
}
.search_warp .search_history .search_history_title.data-v-c10c040c {
display: flex;
justify-content: space-between;
font-weight: bold;
font-size: 32rpx;
color: #333333;
}
.search_warp .search_history .search_history_cotent.data-v-c10c040c {
display: flex;
flex-wrap: wrap;
margin-top: 20rpx;
}
.search_warp .poduct_list .poduct_search_warp.data-v-c10c040c {
background: #FFFFFF;
font-weight: bold;
font-size: 26rpx;
color: #333333;
display: flex;
justify-content: space-between;
padding: 10rpx 60rpx;
}
.search_warp .poduct_list .poduct_content_warp.data-v-c10c040c {
padding: 30rpx;
height: calc(100vh - 340rpx);
overflow-y: auto;
}
.search_warp .poduct_list .poduct_content_warp .big_warp.data-v-c10c040c {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
}
.search_warp .poduct_list .poduct_content_warp .big_warp .big_item_warp.data-v-c10c040c {
width: 48%;
margin-bottom: 20rpx;
background: #FFFFFF;
border-radius: 24rpx;
}
.search_warp .poduct_list .poduct_content_warp .big_warp .big_item_content_warp.data-v-c10c040c {
padding: 20rpx;
}
.search_warp .poduct_list .poduct_content_warp .big_warp .big_item_content_warp .title.data-v-c10c040c {
font-weight: bold;
font-size: 26rpx;
color: #333333;
}
.search_warp .poduct_list .poduct_content_warp .min_warp .min_item_warp.data-v-c10c040c {
padding: 30rpx;
background: #FFFFFF;
border-radius: 24rpx;
display: flex;
margin-bottom: 20rpx;
}
.search_warp .poduct_list .poduct_content_warp .min_warp .min_item_content_warp.data-v-c10c040c {
margin-left: 10rpx;
display: grid;
width: 100%;
}
.search_warp .poduct_list .poduct_content_warp .min_warp .title.data-v-c10c040c {
font-weight: bold;
font-size: 26rpx;
color: #333333;
}
.search_warp .poduct_list .poduct_content_warp .total_or_quantity.data-v-c10c040c {
display: flex;
justify-content: space-between;
align-items: center;
margin: 10rpx 0 6rpx;
font-size: 20rpx;
color: #999999;
}
.search_warp .poduct_list .poduct_content_warp .total_.data-v-c10c040c {
font-weight: bold;
font-size: 26rpx;
color: #F52D1D;
}
@@ -0,0 +1,353 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_cart = require("../../api/cart.js");
const choiceness = () => "../../components/choiceness/choiceness.js";
const _sfc_main = {
components: { choiceness },
data() {
return {
shoppingTotal: 0,
// 总条数
setShoppingList: [],
isDataNull: false,
// 数据是否为空
shoppingList: [],
// 购物车列表
isEdit: false,
// 是否编辑
isAll: false
// 是否全选
};
},
mounted() {
this.getCartList();
},
methods: {
/**
* 查询购物车列表
*/
async getCartList() {
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;
}
},
// 处理购物车的数据
transformedArray(originalArray) {
const newOriginalArray = [];
originalArray.map((curr) => {
common_vendor.index.__f__("log", "at pages/shopping_cart/shopping_cart.vue:156", "currcurrcurrcurr", curr);
const existingShop = newOriginalArray.find((shop) => shop.shopId === curr.shopId && shop.shopName === curr.shopName);
if (existingShop) {
existingShop.product.push({
id: curr.id,
goodsId: curr.goodsId,
// 商品ID
name: curr.name,
// 商品名称
mainGraph: curr.mainGraph,
// 主图
buyNum: curr.buyNum,
// 数量
unitPrice: curr.unitPrice,
// 商品单价
goodsSpece: curr.goodsSpece,
// 规格
specsId: curr.specsId,
// 规格Id
isCheck: false,
// 用作于全选
isAvail: curr.isAvail
// 是否有库存
});
} else {
newOriginalArray.push({
isCheck: false,
// 用作于全选
shopId: curr.shopId,
shopName: curr.shopName,
name: curr.name,
shopLogo: curr.shopLogo,
product: [{
id: curr.id,
goodsId: curr.goodsId,
// 商品ID
name: curr.name,
// 商品名称
mainGraph: curr.mainGraph,
// 主图
buyNum: curr.buyNum,
// 数量
unitPrice: curr.unitPrice,
// 商品单价
goodsSpece: curr.goodsSpece,
// 规格
specsId: curr.specsId,
// 规格Id
isCheck: false,
// 用作于全选
isAvail: curr.isAvail
// 是否有库存,用作于全选
}]
});
}
});
return newOriginalArray;
},
/**
* 数量进行增加删除
* @param {Object} type 区分是 + 还是 -
* @param {Object} pItem 父节点数据,用作与从新修改数据
* @param {Object} cItem 需要修改的数据节点
*/
async quantityFun(type, index, pIndex, id) {
let currentQuantity = this.shoppingList[index].product[pIndex].buyNum;
if (type === "minus") {
if (currentQuantity === 1) {
this.$refs.uToastRef.show({
type: "warring",
message: "宝贝数量不能在减少啦~"
});
return;
} else {
currentQuantity = currentQuantity - 1;
}
} else if (type === "add") {
currentQuantity = currentQuantity + 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:226", "result", result);
if (result && result.bizcode === 100) {
this.shoppingList[index].product[pIndex].buyNum = currentQuantity;
}
},
/**
* 结算订单
*/
settleShopping() {
common_vendor.index.__f__("log", "at pages/shopping_cart/shopping_cart.vue:235", "结算订单....");
const deleteId = this.getCheckList();
if (!deleteId || deleteId.length === 0) {
this.$refs.uToastRef.show({
type: "warring",
message: "请先选择需要结算的商品"
});
return;
}
this.isAll = false;
this.selectCheck(false);
common_vendor.index.navigateTo({
url: "/pages/order_submit/order_submit?ids=" + deleteId.join(",")
});
},
/**
* 删除选中的
*/
deleteShopping() {
const then = this;
common_vendor.index.showModal({
title: "提示",
content: "您确定要删除选中的所有商品吗?",
success: function(res) {
if (res.confirm) {
then.deleteShoppingFun();
}
}
});
},
// 删除选中的
async deleteShoppingFun() {
const deleteId = this.getCheckList();
if (!deleteId || deleteId.length === 0) {
this.$refs.uToastRef.show({
type: "warring",
message: "请先选择需要删除的商品"
});
return;
}
const params = {
ids: deleteId.join(",")
};
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: "删除成功"
});
this.getCartList();
} else {
this.$refs.uToastRef.show({
type: "error",
message: "删除失败"
});
}
},
// 获取选中的数据
getCheckList() {
const shoppingList = this.shoppingList;
const deleteId = [];
shoppingList.map((item) => {
if (item.product && item.product.length !== 0) {
item.product.map((pItem) => {
if (pItem.isCheck) {
deleteId.push(pItem.id);
}
});
}
});
return deleteId;
},
// 全部选中 or 全部取消选中
isAllChange(val) {
this.selectCheck(val);
},
/**
* 编辑是否选中
*/
selectCheck(isAll) {
const currentShoppingList = this.shoppingList;
currentShoppingList.map((item) => {
if (isAll) {
item.isCheck = true;
} else {
item.isCheck = false;
}
if (item.product && item.product.length !== 0) {
if (isAll) {
item.product.forEach((o) => o.isCheck = true);
} else {
item.product.forEach((o) => o.isCheck = false);
}
}
});
this.shoppingList = currentShoppingList;
}
}
};
if (!Array) {
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
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_image2 + _easycom_up_checkbox2 + _easycom_choiceness2 + _easycom_up_toast2)();
}
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
const _easycom_up_checkbox = () => "../../uni_modules/uview-plus/components/u-checkbox/u-checkbox.js";
const _easycom_choiceness = () => "../../components/choiceness/choiceness.js";
const _easycom_up_toast = () => "../../uni_modules/uview-plus/components/u-toast/u-toast.js";
if (!Math) {
(_easycom_up_image + _easycom_up_checkbox + _easycom_choiceness + _easycom_up_toast)();
}
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: !$data.isDataNull
}, !$data.isDataNull ? {
d: common_vendor.f($data.shoppingList, (item, index, i0) => {
return {
a: "7cc1684a-1-" + i0 + "," + ("7cc1684a-0-" + i0),
b: common_vendor.p({
src: item.shopLogo ? item.shopLogo : "/static/shopping/store.png",
width: "22",
height: "22",
bgColor: "#f1f6ff00"
}),
c: common_vendor.t(item.shopName),
d: common_vendor.t(item.id),
e: "7cc1684a-0-" + i0,
f: common_vendor.o(($event) => item.isCheck = $event, item.id),
g: common_vendor.p({
customStyle: {
marginBottom: "8px"
},
name: "isCheck",
usedAlone: true,
shape: "circle",
activeColor: "#FF7C41",
size: "19",
iconSize: "18",
checked: item.isCheck
}),
h: common_vendor.f(item.product, (pItem, pIndex, i1) => {
return common_vendor.e({
a: "7cc1684a-2-" + i0 + "-" + i1,
b: common_vendor.o(($event) => pItem.isCheck = $event, pItem.id),
c: common_vendor.p({
customStyle: {
marginBottom: "8px"
},
name: "isCheck",
usedAlone: true,
shape: "circle",
activeColor: "#FF7C41",
size: "19",
iconSize: "18",
disabled: !pItem.isAvail,
checked: pItem.isCheck
}),
d: "7cc1684a-3-" + i0 + "-" + i1,
e: common_vendor.p({
src: pItem.mainGraph,
width: "100",
height: "100",
bgColor: "#f1f6ff00"
}),
f: common_vendor.t(pItem.name),
g: common_vendor.t(pItem.goodsSpece),
h: common_vendor.t(pItem.unitPrice),
i: common_vendor.t(pItem.unitPrice),
j: common_vendor.o(($event) => $options.quantityFun("minus", index, pIndex, pItem.id), pItem.id),
k: common_vendor.t(pItem.buyNum),
l: common_vendor.o(($event) => $options.quantityFun("add", index, pIndex, pItem.id), pItem.id),
m: !pItem.isAvail
}, !pItem.isAvail ? {} : {}, {
n: pItem.id
});
}),
i: item.id
};
})
} : {
e: common_vendor.p({
src: "/static/common/not_shopping.png",
width: "80",
height: "80",
bgColor: "#f1f6ff00"
})
}, {
f: !$data.isDataNull
}, !$data.isDataNull ? common_vendor.e({
g: common_vendor.o($options.isAllChange),
h: common_vendor.o(($event) => $data.isAll = $event),
i: common_vendor.p({
name: "isAll",
usedAlone: true,
shape: "circle",
activeColor: "#FF7C41",
size: "19",
iconSize: "18",
checked: $data.isAll
}),
j: $data.isEdit
}, $data.isEdit ? {
k: common_vendor.o((...args) => $options.deleteShopping && $options.deleteShopping(...args))
} : {
l: common_vendor.o((...args) => $options.settleShopping && $options.settleShopping(...args))
}) : {}, {
m: common_vendor.sr("uToastRef", "7cc1684a-7"),
n: $data.isDataNull ? "calc(100vh - 134rpx)" : "calc(100vh - 256rpx)"
});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-7cc1684a"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/shopping_cart/shopping_cart.js.map
@@ -0,0 +1,9 @@
{
"navigationStyle": "custom",
"usingComponents": {
"choiceness": "../../components/choiceness/choiceness",
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
"up-checkbox": "../../uni_modules/uview-plus/components/u-checkbox/u-checkbox",
"up-toast": "../../uni_modules/uview-plus/components/u-toast/u-toast"
}
}
@@ -0,0 +1 @@
<view style="{{'height:' + n}}" 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><view class="shopping_cart_content data-v-7cc1684a"><block wx:if="{{c}}"><view wx:for="{{d}}" wx:for-item="item" wx:key="i" class="shopping_cart_content_item data-v-7cc1684a"><up-checkbox wx:if="{{item.g}}" class="data-v-7cc1684a" u-s="{{['label']}}" u-i="{{item.e}}" bind:__l="__l" bindupdateChecked="{{item.f}}" u-p="{{item.g}}"><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.h}}" wx:for-item="pItem" wx:key="n" class="content_item_info data-v-7cc1684a"><up-checkbox wx:if="{{pItem.c}}" class="data-v-7cc1684a" u-i="{{pItem.a}}" bind:__l="__l" bindupdateChecked="{{pItem.b}}" u-p="{{pItem.c}}"></up-checkbox><view class="info_item data-v-7cc1684a"><up-image wx:if="{{pItem.e}}" class="data-v-7cc1684a" u-i="{{pItem.d}}" bind:__l="__l" u-p="{{pItem.e}}"></up-image><view class="content_info data-v-7cc1684a"><view class="shopping_content_info_title data-v-7cc1684a">{{pItem.f}}</view><view class="content_info_description data-v-7cc1684a">{{pItem.g}}</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.h}}</text></view><view class="shopping_info_amount_original data-v-7cc1684a">¥{{pItem.i}}</view></view><view class="data-v-7cc1684a"><view class="shopping_info_quantity data-v-7cc1684a"><view class="quantity_but data-v-7cc1684a" bindtap="{{pItem.j}}">-</view><view class="quantity_value data-v-7cc1684a">{{pItem.k}}</view><view class="quantity_but data-v-7cc1684a" bindtap="{{pItem.l}}">+</view></view><view wx:if="{{pItem.m}}" 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="{{e}}" class="data-v-7cc1684a" u-i="7cc1684a-4" bind:__l="__l" u-p="{{e}}"></up-image><view class="not_order_msg_warp data-v-7cc1684a">购物车是空的</view></view><choiceness class="data-v-7cc1684a" u-i="7cc1684a-5" bind:__l="__l"/></view><view wx:if="{{f}}" 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="{{i}}" class="data-v-7cc1684a" u-s="{{['label']}}" bindchange="{{g}}" u-i="7cc1684a-6" bind:__l="__l" bindupdateChecked="{{h}}" u-p="{{i}}"><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">2000.00</text></view><view wx:if="{{j}}" class="delete_but_css data-v-7cc1684a" bindtap="{{k}}"> 删除 </view><view wx:else class="add_but_css data-v-7cc1684a" bindtap="{{l}}"> 结算(2) </view></view></view><up-toast class="r data-v-7cc1684a" u-r="uToastRef" u-i="7cc1684a-7" bind:__l="__l"></up-toast></view>

Some files were not shown because too many files have changed in this diff Show More