增加新模块

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
+43
View File
@@ -0,0 +1,43 @@
"use strict";
const utils_request = require("../utils/request.js");
function editAddress(data) {
return utils_request.request({
url: "/address/editAddress",
method: "post",
data
});
}
function getAddress(data) {
return utils_request.request({
url: "/address/getAddress",
method: "get",
data
});
}
function setAddressDefault(data) {
return utils_request.request({
url: "/address/setAddressDefault",
method: "post",
data
});
}
function deleteAddress(data) {
return utils_request.request({
url: "/address/deleteAddress",
method: "post",
data
});
}
function getAddressDetail(data) {
return utils_request.request({
url: "/address/getAddressDetail",
method: "get",
data
});
}
exports.deleteAddress = deleteAddress;
exports.editAddress = editAddress;
exports.getAddress = getAddress;
exports.getAddressDetail = getAddressDetail;
exports.setAddressDefault = setAddressDefault;
//# sourceMappingURL=../../.sourcemap/mp-weixin/api/address.js.map
+35
View File
@@ -0,0 +1,35 @@
"use strict";
const utils_request = require("../utils/request.js");
function getCartList(data) {
return utils_request.request({
url: "/cart/getCartList",
method: "get",
data
});
}
function removeGoods(data) {
return utils_request.request({
url: "/cart/removeGoods",
method: "post",
data
});
}
function updateGoodsNum(data) {
return utils_request.request({
url: "/cart/updateGoodsNum",
method: "post",
data
});
}
function getSettleList(data) {
return utils_request.request({
url: "/cart/getSettleList",
method: "post",
data
});
}
exports.getCartList = getCartList;
exports.getSettleList = getSettleList;
exports.removeGoods = removeGoods;
exports.updateGoodsNum = updateGoodsNum;
//# sourceMappingURL=../../.sourcemap/mp-weixin/api/cart.js.map
+19
View File
@@ -0,0 +1,19 @@
"use strict";
const utils_request = require("../utils/request.js");
function getUserList(data) {
return utils_request.request({
url: "/common/getSmsCode",
method: "post",
data
});
}
function getCascadeRegion(data) {
return utils_request.request({
url: "/common/getCascadeRegion",
method: "get",
data
});
}
exports.getCascadeRegion = getCascadeRegion;
exports.getUserList = getUserList;
//# sourceMappingURL=../../.sourcemap/mp-weixin/api/common.js.map
+11
View File
@@ -0,0 +1,11 @@
"use strict";
const utils_request = require("../utils/request.js");
function loginbysms(params) {
return utils_request.request({
url: "/auth/loginbysms",
method: "post",
data: params
});
}
exports.loginbysms = loginbysms;
//# sourceMappingURL=../../.sourcemap/mp-weixin/api/login.js.map
+36
View File
@@ -0,0 +1,36 @@
"use strict";
const utils_request = require("../utils/request.js");
require("../common/vendor.js");
function searchList(params) {
return utils_request.request({
url: "/goods/searchList",
method: "get",
data: params
});
}
function getGoodsDetail(params) {
return utils_request.request({
url: "/goods/getGoodsDetail",
method: "get",
data: params
});
}
function addGoods(params) {
return utils_request.request({
url: "/cart/addGoods",
method: "post",
data: params
});
}
function getGoodsSpecs(params) {
return utils_request.request({
url: "/goods/getGoodsSpecs",
method: "get",
data: params
});
}
exports.addGoods = addGoods;
exports.getGoodsDetail = getGoodsDetail;
exports.getGoodsSpecs = getGoodsSpecs;
exports.searchList = searchList;
//# sourceMappingURL=../../.sourcemap/mp-weixin/api/product.js.map
+27 -3
View File
@@ -2,11 +2,34 @@
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const common_vendor = require("./common/vendor.js");
const locale_index = require("./locale/index.js");
const uni_modules_uviewPlus_index = require("./uni_modules/uview-plus/index.js");
if (!Math) {
"./pages/home/home.js";
"./pages/index/index.js";
"./pages/component/component.js";
"./pages/api/api.js";
"./pages/schema/schema.js";
"./pages/sort/sort.js";
"./pages/hash_union/hash_union.js";
"./pages/shopping_cart/shopping_cart.js";
"./pages/mine/mine.js";
"./pages/mine_bank_card/mine_bank_card.js";
"./pages/mine_bank_add/mine_bank_add.js";
"./pages/mine_address/mine_address.js";
"./pages/mine_address_add/mine_address_add.js";
"./pages/mine_authentication/mine_authentication.js";
"./pages/mine_authentication_ok/mine_authentication_ok.js";
"./pages/mine_purse/mine_purse.js";
"./pages/mine_order/mine_order.js";
"./pages/mine_order_info/mine_order_info.js";
"./pages/mine_purse_bonus/mine_purse_bonus.js";
"./pages/login/login.js";
"./pages/register/register.js";
"./pages/turntable/turntable.js";
"./pages/search/search.js";
"./pages/preference/preference.js";
"./pages/welcome/welcome.js";
"./pages/invite_friends/invite_friends.js";
"./pages/productInfo/productInfo.js";
"./pages/order_submit/order_submit.js";
"./pages/order_submit_ok/order_submit_ok.js";
}
const _sfc_main = {
onLaunch: function() {
@@ -27,6 +50,7 @@ const i18n = common_vendor.createI18n(i18nConfig);
function createApp() {
const app = common_vendor.createSSRApp(_sfc_main);
app.use(i18n);
app.use(uni_modules_uviewPlus_index.uviewPlus);
return {
app
};
+50 -17
View File
@@ -1,37 +1,70 @@
{
"pages": [
"pages/home/home",
"pages/index/index",
"pages/component/component",
"pages/api/api",
"pages/schema/schema"
"pages/sort/sort",
"pages/hash_union/hash_union",
"pages/shopping_cart/shopping_cart",
"pages/mine/mine",
"pages/mine_bank_card/mine_bank_card",
"pages/mine_bank_add/mine_bank_add",
"pages/mine_address/mine_address",
"pages/mine_address_add/mine_address_add",
"pages/mine_authentication/mine_authentication",
"pages/mine_authentication_ok/mine_authentication_ok",
"pages/mine_purse/mine_purse",
"pages/mine_order/mine_order",
"pages/mine_order_info/mine_order_info",
"pages/mine_purse_bonus/mine_purse_bonus",
"pages/login/login",
"pages/register/register",
"pages/turntable/turntable",
"pages/search/search",
"pages/preference/preference",
"pages/welcome/welcome",
"pages/invite_friends/invite_friends",
"pages/productInfo/productInfo",
"pages/order_submit/order_submit",
"pages/order_submit_ok/order_submit_ok"
],
"window": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "uni-app",
"navigationBarBackgroundColor": "#F8F8F8",
"backgroundColor": "#F8F8F8"
"navigationStyle": "custom"
},
"tabBar": {
"color": "#7A7E83",
"selectedColor": "#007AFF",
"color": "#808080FF",
"selectedColor": "#ff7c41",
"borderStyle": "black",
"backgroundColor": "#F8F8F8",
"list": [
{
"pagePath": "pages/index/index",
"text": "Home"
"pagePath": "pages/home/home",
"text": "主页",
"iconPath": "/static/column/home.png",
"selectedIconPath": "/static/column/home_sel.png"
},
{
"pagePath": "pages/component/component",
"text": "Component"
"pagePath": "pages/sort/sort",
"text": "分类",
"iconPath": "/static/column/sort.png",
"selectedIconPath": "/static/column/sort_sel.png"
},
{
"pagePath": "pages/api/api",
"text": "API"
"pagePath": "pages/hash_union/hash_union",
"text": "哈希联盟",
"iconPath": "/static/column/hx.png",
"selectedIconPath": "/static/column/hx_sel.png"
},
{
"pagePath": "pages/schema/schema",
"text": "Schema"
"pagePath": "pages/shopping_cart/shopping_cart",
"text": "购物车",
"iconPath": "/static/column/shopping.png",
"selectedIconPath": "/static/column/shopping_sel.png"
},
{
"pagePath": "pages/mine/mine",
"text": "我的",
"iconPath": "/static/column/mine.png",
"selectedIconPath": "/static/column/mine_sel.png"
}
]
},
+4581 -5
View File
File diff suppressed because it is too large Load Diff
+6
View File
@@ -0,0 +1,6 @@
"use strict";
const _imports_0 = "/uni_modules/q-turntable/static/s-dial_bg.png";
const _imports_1 = "/uni_modules/q-turntable/static/s-dial_pointer.png";
exports._imports_0 = _imports_0;
exports._imports_1 = _imports_1;
//# sourceMappingURL=../../.sourcemap/mp-weixin/common/assets.js.map
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+71
View File
@@ -0,0 +1,71 @@
"use strict";
const common_vendor = require("../common/vendor.js");
const api_address = require("../api/address.js");
const _sfc_main = {
data() {
return {
addressList: [],
selectAddress: {}
};
},
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;
}
},
checkAddress(item) {
this.selectAddress = item;
this.$emit("valueFunc", item);
}
}
};
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.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.countryName),
b: common_vendor.t(item.provinceName),
c: common_vendor.t(item.cityName),
d: common_vendor.t(item.areaName),
e: common_vendor.t(item.address),
f: common_vendor.t(item.name),
g: common_vendor.t(item.phone),
h: item.id,
i: common_vendor.n($data.selectAddress && $data.selectAddress.id === item.id ? "address_item address_item_sel" : "address_item"),
j: common_vendor.o(($event) => $options.checkAddress(item), item.id)
};
})
} : {
c: common_vendor.p({
src: "/static/common/not_search.png",
width: "100",
height: "100",
bgColor: "#f1f6ff00"
})
});
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-7183a377"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../.sourcemap/mp-weixin/components/address.js.map
+6
View File
@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"up-image": "../uni_modules/uview-plus/components/u-image/u-image"
}
}
+1
View File
@@ -0,0 +1 @@
<view class="mine_address_warp data-v-7183a377"><block wx:if="{{a}}"><view wx:for="{{b}}" wx:for-item="item" wx:key="h" class="{{['data-v-7183a377', item.i]}}" bindtap="{{item.j}}"><view class="address_item_country_name data-v-7183a377">{{item.a}} {{item.b}} {{item.c}} {{item.d}}</view><view class="address_item_address data-v-7183a377">{{item.e}}</view><view class="address_item_info data-v-7183a377"><view class="data-v-7183a377">{{item.f}}</view><view class="data-v-7183a377" style="margin-left:20rpx">{{item.g}}</view></view></view></block><view wx:else class="not_order_warp data-v-7183a377"><view class="not_order_warp_img data-v-7183a377"><up-image wx:if="{{c}}" class="data-v-7183a377" u-i="7183a377-0" bind:__l="__l" u-p="{{c}}"></up-image></view><view class="not_order_msg_warp data-v-7183a377">暂时地址,快去地址管理添加吧~</view></view></view>
+48
View File
@@ -0,0 +1,48 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/* uni.scss */
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
.address_item.data-v-7183a377 {
background: #FFFFFF;
padding: 30rpx;
border-bottom: 1rpx solid #9e9e9e26;
}
.address_item_sel.data-v-7183a377 {
color: #FF7C41 !important;
background-color: #ff57220d;
}
.address_item_info.data-v-7183a377 {
font-size: 26rpx;
color: #868383;
display: flex;
}
.address_item_address.data-v-7183a377 {
font-weight: bold;
font-size: 32rpx;
color: #666666;
margin: 10rpx 0;
}
.address_item_country_name.data-v-7183a377 {
color: #9E9E9E;
font-size: 22rpx;
}
@@ -0,0 +1,93 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
name: "choiceness",
data() {
return {
productList: [
{
id: 1,
url: "/static/common/product_def2.png",
name: "美的双开门冰箱大容量多层速冷冰箱",
price: "7088.",
priceDouble: "00",
sell: "1.4万",
type: 0
},
{
id: 2,
url: "/static/common/product_def2.png",
name: "西门子双开门家庭冰箱大开口设计",
price: "7088.",
priceDouble: "00",
sell: "1.4万",
type: 1
//1 哈希优选
},
{
id: 2,
url: "/static/common/product_def2.png",
name: "西门子双开门家庭冰箱大开口设计",
price: "7088.",
priceDouble: "00",
sell: "1.4万",
type: 1
//1 哈希优选
}
]
};
},
methods: {
//
jumpInfo(item) {
common_vendor.index.__f__("log", "at components/choiceness/choiceness.vue:62", "item", item);
common_vendor.index.navigateTo({
url: "/pages/productInfo/productInfo?id=" + item.id
});
}
}
};
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/jingxuan_left.png",
width: "50",
height: "12",
bgColor: "#f1f6ff00"
}),
b: common_vendor.p({
src: "/static/common/jingxuan_right.png",
width: "50",
height: "12",
bgColor: "#f1f6ff00"
}),
c: common_vendor.f($data.productList, (item, k0, i0) => {
return {
a: "3619806e-2-" + i0,
b: common_vendor.p({
src: item.url,
width: "100%",
height: "140",
bgColor: "#f1f6ff00"
}),
c: common_vendor.t(item.name),
d: common_vendor.t(item.price),
e: common_vendor.t(item.priceDouble),
f: common_vendor.t(item.sell),
g: item.id,
h: common_vendor.o(($event) => $options.jumpInfo(item), item.id)
};
})
};
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-3619806e"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/choiceness/choiceness.js.map
@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image"
}
}
@@ -0,0 +1 @@
<view class="choiceness_warp data-v-3619806e"><view class="choiceness_title data-v-3619806e"><up-image wx:if="{{a}}" class="data-v-3619806e" u-i="3619806e-0" bind:__l="__l" u-p="{{a}}"></up-image><view class="choiceness_title_msg data-v-3619806e">为您精选</view><up-image wx:if="{{b}}" class="data-v-3619806e" u-i="3619806e-1" bind:__l="__l" u-p="{{b}}"></up-image></view><view class="choiceness_product data-v-3619806e"><view wx:for="{{c}}" wx:for-item="item" wx:key="g" class="choiceness_product_item data-v-3619806e" bindtap="{{item.h}}"><up-image wx:if="{{item.b}}" class="data-v-3619806e" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image><view class="product_item_name data-v-3619806e">{{item.c}}</view><view class="product_item_price data-v-3619806e"><view class="price_ data-v-3619806e"><text class="data-v-3619806e">¥</text><text class="data-v-3619806e" style="color:36rpx">{{item.d}}</text><text class="data-v-3619806e">{{item.e}}</text></view><view class="price_sell data-v-3619806e">已售{{item.f}}件</view></view></view></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 */
/* 水平间距 */
/* 垂直间距 */
.choiceness_warp.data-v-3619806e {
margin-top: 100rpx;
}
.choiceness_title.data-v-3619806e {
display: flex;
justify-content: center;
}
.choiceness_title .choiceness_title_msg.data-v-3619806e {
margin: 0 18rpx;
}
.choiceness_product.data-v-3619806e {
margin-top: 40rpx;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.choiceness_product .choiceness_product_item.data-v-3619806e {
background: #FFFFFF;
box-shadow: 0rpx 0rpx 10rpx 0rpx #EEEEEE;
border-radius: 24rpx;
width: 43%;
margin-bottom: 20rpx;
padding: 20rpx;
}
.choiceness_product .product_item_name.data-v-3619806e {
font-weight: bold;
font-size: 26rpx;
color: #333333;
margin-top: 20rpx;
}
.choiceness_product .product_item_price.data-v-3619806e {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 10rpx;
}
.choiceness_product .product_item_price .price_.data-v-3619806e {
font-weight: bold;
font-size: 26rpx;
color: #FF7C41;
}
.choiceness_product .product_item_price .price_sell.data-v-3619806e {
font-weight: 400;
font-size: 18rpx;
color: #999999;
}
@@ -0,0 +1,84 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
common_vendor.ref(null);
const _sfc_main = {
name: "inputComm",
props: ["modelValue", "codeNumberRef", "emptyCountdownRef"],
watch: {
emptyCountdownRef(value, oldValue) {
if (value) {
this.countdown = true;
}
}
},
data() {
return {
countdown: false,
emptyCountdown: this.emptyCountdownRef,
inputCss: {
"height": "80rpx",
"background": "#F3F3F3FF",
"border-radius": "30rpx",
"border": "0rpx",
"padding-left": "16px"
}
};
},
emits: ["update:modelValue"],
mounted() {
},
methods: {
getCode(val) {
this.emptyCountdown;
if (val) {
const codeNumber = this.codeNumberRef;
if (codeNumber) {
this.$emit("getCode");
} else {
this.$refs.uToastRef.show({
type: "error",
message: this.$t("login.comm.email")
});
return;
}
} else {
this.$refs.uToastRef.show({
type: "error",
message: this.$t("login.comm.email")
});
}
}
}
};
if (!Array) {
const _easycom_up_count_down2 = common_vendor.resolveComponent("up-count-down");
const _easycom_up_toast2 = common_vendor.resolveComponent("up-toast");
(_easycom_up_count_down2 + _easycom_up_toast2)();
}
const _easycom_up_count_down = () => "../../uni_modules/uview-plus/components/u-count-down/u-count-down.js";
const _easycom_up_toast = () => "../../uni_modules/uview-plus/components/u-toast/u-toast.js";
if (!Math) {
(_easycom_up_count_down + _easycom_up_toast)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: _ctx.$t("login.comm.code"),
b: $props.modelValue,
c: common_vendor.o(($event) => _ctx.$emit("update:modelValue", $event.target.value)),
d: $data.countdown
}, $data.countdown ? {
e: common_vendor.o(($event) => $options.getCode(false)),
f: common_vendor.p({
time: 60 * 1e3,
format: "ss"
})
} : {
g: common_vendor.t(_ctx.$t("login.comm.get.code")),
h: common_vendor.o(($event) => $options.getCode(true))
}, {
i: common_vendor.sr("uToastRef", "fa3fd76f-1")
});
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-fa3fd76f"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/code-comm/code-comm.js.map
@@ -0,0 +1,7 @@
{
"component": true,
"usingComponents": {
"up-count-down": "../../uni_modules/uview-plus/components/u-count-down/u-count-down",
"up-toast": "../../uni_modules/uview-plus/components/u-toast/u-toast"
}
}
@@ -0,0 +1 @@
<view class="comm-input-warp data-v-fa3fd76f"><input class="data-v-fa3fd76f" placeholder="{{a}}" border="false" v-model="{{b}}" color="#EEEEEE" type="number" bindinput="{{c}}" style="height:64rpx;width:70%"></input><view wx:if="{{d}}" class="code-warp data-v-fa3fd76f"><up-count-down wx:if="{{f}}" class="data-v-fa3fd76f" bindfinish="{{e}}" u-i="fa3fd76f-0" bind:__l="__l" u-p="{{f}}"></up-count-down><text class="data-v-fa3fd76f" style="margin-left:10rpx">s</text></view><view wx:else class="code-warp data-v-fa3fd76f" bindtap="{{h}}"><view class="data-v-fa3fd76f">{{g}}</view></view><up-toast class="r data-v-fa3fd76f" u-r="uToastRef" u-i="fa3fd76f-1" bind:__l="__l"></up-toast></view>
@@ -0,0 +1,9 @@
.code-warp.data-v-fa3fd76f {
width: 30%;
text-align: right;
display: flex;
justify-content: flex-end;
}
.wrap.data-v-fa3fd76f {
padding: 24rpx;
}
+30 -60
View File
@@ -6,10 +6,11 @@ const en = {
"locale.zh-hant": "繁体中文",
"locale.ja": "日语",
"index.title": "Hello i18n",
"index.home": "Home",
"index.component": "Component",
"index.api": "API",
"index.schema": "Schema",
"index.home": "主页",
"index.sort": "分类",
"index.hash.union": "哈希联盟",
"index.shopping.cart": "购物车",
"index.mine": "我的",
"index.demo": "uni-app globalization",
"index.demo-description": "Include uni-framework, manifest.json, pages.json, tabbar, Page, Component, API, Schema",
"index.detail": "Detail",
@@ -21,7 +22,16 @@ const en = {
"api.message": "Message",
"schema.name": "Name",
"schema.add": "Add",
"schema.add-success": "Add success"
"schema.add-success": "Add success",
"bankCard.title": "银行卡管理",
"bankCard.add.title": "添加银行卡",
"address.title": "地址管理",
"address.add.title": "添加地址",
"authentication.title": "实名认证",
"purse.title": "我的钱包",
"purse.bonus.title": "我的奖金",
"invite.friends.title": "邀请好友",
"order.submit.title": "提交订单"
};
const zhHans = {
"locale.auto": "系统",
@@ -31,10 +41,10 @@ const zhHans = {
"locale.ja": "日语",
"index.title": "Hello i18n",
"index.home": "主页",
"index.component": "组件",
"index.api": "API",
"index.schema": "Schema",
"index.demo": "uni-app 国际化演示",
"index.sort": "分类",
"index.hash.union": "哈希联盟",
"index.shopping.cart": "购物车",
"index.mine": "我的",
"index.demo-description": "包含 uni-framework、manifest.json、pages.json、tabbar、页面、组件、API、Schema",
"index.detail": "详情",
"index.language": "语言",
@@ -45,60 +55,20 @@ const zhHans = {
"api.message": "提示",
"schema.name": "姓名",
"schema.add": "新增",
"schema.add-success": "新增成功"
};
const zhHant = {
"locale.auto": "系統",
"locale.en": "English",
"locale.zh-hans": "简体中文",
"locale.zh-hant": "繁體中文",
"locale.ja": "日语",
"index.title": "Hello i18n",
"index.home": "主頁",
"index.component": "組件",
"index.api": "API",
"index.schema": "Schema",
"index.demo": "uni-app 國際化演示",
"index.demo-description": "包含 uni-framework、manifest.json、pages.json、tabbar、頁面、組件、API、Schema",
"index.detail": "詳情",
"index.language": "語言",
"index.language-info": "語言信息",
"index.system-language": "系統語言",
"index.application-language": "應用語言",
"index.language-change-confirm": "應用此設置將重啟App",
"api.message": "提示",
"schema.name": "姓名",
"schema.add": "新增",
"schema.add-success": "新增成功"
};
const ja = {
"locale.auto": "システム",
"locale.en": "英語",
"locale.zh-hans": "简体中文",
"locale.zh-hant": "繁体中文",
"locale.ja": "日语",
"index.title": "Hello i18n",
"index.home": "ホーム",
"index.component": "コンポーネント",
"index.api": "API",
"index.schema": "Schema",
"index.demo": "uni-app globalization",
"index.demo-description": "ユニフレームワーク、manifest.json、pages.json、タブバー、ページ、コンポーネント、APIを含める、Schema",
"index.detail": "詳細",
"index.language": "言語",
"index.language-info": "設定",
"index.system-language": "システム言語",
"index.application-language": "アプリケーション言語",
"index.language-change-confirm": "この設定を適用すると、アプリが再起動します",
"api.message": "メッセージ",
"schema.add": "追加",
"schema.add-success": "成功を追加"
"schema.add-success": "新增成功",
"bankCard.title": "银行卡管理",
"bankCard.add.title": "添加银行卡",
"address.title": "地址管理",
"address.add.title": "添加地址",
"authentication.title": "实名认证",
"purse.title": "我的钱包",
"purse.bonus.title": "我的奖金",
"invite.friends.title": "邀请好友",
"order.submit.title": "提交订单"
};
const messages = {
en,
"zh-Hans": zhHans,
"zh-Hant": zhHant,
ja
"zh-Hans": zhHans
};
exports.messages = messages;
//# sourceMappingURL=../../.sourcemap/mp-weixin/locale/index.js.map
-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>

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