暂存代码

This commit is contained in:
何江明
2025-05-23 18:03:45 +08:00
parent 8217069b9a
commit a2c87e47bf
313 changed files with 6157 additions and 1102 deletions
@@ -24,7 +24,7 @@
/* 垂直间距 */
.get_prize_warp {
height: 100vh;
background-color: #F5F5F5;
background-color: #F5F5F5FF;
}
.address_select {
display: flex;
@@ -47,7 +47,7 @@
margin: 0 10rpx;
}
.hash_union_warp .hash_union_nearby.data-v-04033f11 {
background-color: #F5F5F5;
background-color: #F5F5F5FF;
border-radius: 30rpx 30rpx 0rpx 0rpx;
padding: 30rpx;
}
+20 -3
View File
@@ -10,8 +10,8 @@ const _sfc_main = {
data() {
return {
swiperList: [
"/static/home/banner01.png",
"/static/home/banner04.png"
// '/static/home/banner01.png',
// '/static/home/banner04.png',
],
currentNum: 0,
sortList: [],
@@ -81,6 +81,7 @@ const _sfc_main = {
this.getSortList();
this.querySearchList(utils_enumUtils.SEARCH_TYPE.SOMETHING);
this.querySearchList(utils_enumUtils.SEARCH_TYPE.EXPLOSIVE);
this.getCarouselImage();
},
mounted() {
},
@@ -148,6 +149,22 @@ const _sfc_main = {
plus.runtime.openURL(updateApkObj.downloadUrl);
}
},
// 查询轮播图
async getCarouselImage() {
const params = {
pageUi: utils_enumUtils.APP_PAGE_TYPE.HOME
};
const resp = await api_common.getCarouselImage(params);
if (resp && resp.bizcode === 100) {
const data = resp.data || [];
this.swiperList = data.length !== 0 ? data.map((obj) => obj.carouselImage) : [];
}
},
jumpIntegral() {
common_vendor.index.navigateTo({
url: "/pages/pointsRedemption/pointsRedemption"
});
},
jumpTurntable() {
common_vendor.index.navigateTo({
url: "/pages/turntable/turntable?backPath=home"
@@ -340,7 +357,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
height: "46",
bgColor: "#f1f6ff00"
}),
w: common_vendor.o((...args) => $options.jumpPrdference && $options.jumpPrdference(...args)),
w: common_vendor.o((...args) => $options.jumpIntegral && $options.jumpIntegral(...args)),
x: common_vendor.p({
src: "/static/home/min_card_hbcj.png",
width: "60",
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -23,7 +23,7 @@
/* 水平间距 */
/* 垂直间距 */
.home_warp.data-v-07e72d3c {
background: #F5F5F5;
background: #F5F5F5FF;
height: calc(100vh - 140rpx);
overflow: auto;
position: relative;
@@ -1,26 +1,35 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const utils_inviteBase64 = require("../../utils/inviteBase64.js");
const api_common = require("../../api/common.js");
const _sfc_main = {
data() {
return {};
return {
inviteImage: null,
imageLoading: false
};
},
mounted() {
this.getSharePoster();
},
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);
// },
// 查询分享模版
async getSharePoster() {
this.imageLoading = true;
const resp = await api_common.getSharePoster();
if (resp && resp.bizcode === 100) {
const data = resp.data[0];
const generateResp = await api_common.generateSharePoster({ id: data.id });
if (generateResp && generateResp.bizcode === 100) {
this.inviteImage = generateResp.data;
}
}
this.imageLoading = false;
},
saveBaseImgFile() {
common_vendor.index.showLoading({
title: "保存中..."
});
const currentBase64 = utils_inviteBase64.base64;
const currentBase64 = this.inviteImage;
const bitmap = new plus.nativeObj.Bitmap("base64");
bitmap.loadBase64Data(
currentBase64,
@@ -30,8 +39,7 @@ const _sfc_main = {
url,
{
overwrite: false
// 是否覆盖
// quality: 'quality' // 图片清晰度
// 是否覆盖
},
(i) => {
common_vendor.index.saveImageToPhotosAlbum({
@@ -48,7 +56,7 @@ const _sfc_main = {
},
(e) => {
common_vendor.index.hideLoading();
common_vendor.index.__f__("log", "at pages/invite_friends/invite_friends.vue:74", "图片保存失败", e);
common_vendor.index.__f__("log", "at pages/invite_friends/invite_friends.vue:72", "图片保存失败", e);
this.$refs.uToastRef.show({
type: "error",
message: "图片保存失败"
@@ -59,7 +67,7 @@ const _sfc_main = {
},
(e) => {
common_vendor.index.hideLoading();
common_vendor.index.__f__("log", "at pages/invite_friends/invite_friends.vue:85", "图片保存失败", e);
common_vendor.index.__f__("log", "at pages/invite_friends/invite_friends.vue:83", "图片保存失败", e);
this.$refs.uToastRef.show({
type: "error",
message: "图片保存失败"
@@ -83,7 +91,8 @@ if (!Math) {
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.p({
src: "/static/invite/bg.png",
loading: $data.imageLoading,
src: $data.inviteImage,
width: "100%",
height: "460",
bgColor: "#f1f6ff00",
@@ -6,7 +6,7 @@ const _sfc_main = {
data() {
return {
form: {
name: "",
storeName: "",
// 店铺名称
address: "",
// 店铺地址
@@ -85,27 +85,75 @@ const _sfc_main = {
methods: {
// 确认提交
addFun() {
common_vendor.index.__f__("log", "at pages/merchant_settlement/merchant_settlement.vue:162", "确认提交....");
const params = {
...this.form
};
if (!params.storeName) {
this.$refs.uToastRef.show({
type: "error",
message: "请输入店铺名称"
});
return;
}
if (!params.address) {
this.$refs.uToastRef.show({
type: "error",
message: "请输入店铺地址"
});
return;
}
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;
}
this.$refs.uToastRef.show({
type: "success",
message: "提交成功"
});
setTimeout(() => {
common_vendor.index.switchTab({
url: "/pages/mine/mine"
});
}, 1e3);
}
}
};
if (!Array) {
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
const _component_CommonCard = common_vendor.resolveComponent("CommonCard");
(_easycom_up_input2 + _component_CommonCard)();
const _easycom_up_toast2 = common_vendor.resolveComponent("up-toast");
(_easycom_up_input2 + _component_CommonCard + _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_input + _easycom_up_toast)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.o(($event) => $data.form.name = $event),
a: common_vendor.o(($event) => $data.form.storeName = $event),
b: common_vendor.p({
placeholder: "请输入店铺名称",
clearable: true,
border: "none",
modelValue: $data.form.name
modelValue: $data.form.storeName
}),
c: common_vendor.o(($event) => $data.form.address = $event),
d: common_vendor.p({
@@ -146,7 +194,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
f: item.id
};
}),
g: common_vendor.o((...args) => $options.addFun && $options.addFun(...args))
g: common_vendor.o((...args) => $options.addFun && $options.addFun(...args)),
h: common_vendor.sr("uToastRef", "2001dd84-5")
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-2001dd84"]]);
@@ -6,6 +6,7 @@
"navigationStyle": "default",
"usingComponents": {
"common-card": "../../components/common_card",
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input"
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
"up-toast": "../../uni_modules/uview-plus/components/u-toast/u-toast"
}
}
@@ -1 +1 @@
<view class="merchant_settlement_warp data-v-2001dd84"><view class="card_comm data-v-2001dd84"><view class="title_ data-v-2001dd84">上传店铺LOGO</view><view class="msg_ data-v-2001dd84">上传店铺LOGO、品牌标志。</view><view class="upload_comm data-v-2001dd84"><view class="upload_msg_ data-v-2001dd84">上传LOGO</view></view></view><view class="card_comm card_hang_comm data-v-2001dd84"><view class="title_ data-v-2001dd84">店铺名称</view><up-input wx:if="{{b}}" class="data-v-2001dd84" u-i="2001dd84-0" bind:__l="__l" bindupdateModelValue="{{a}}" u-p="{{b}}"></up-input></view><view class="card_comm card_hang_comm data-v-2001dd84"><view class="title_ data-v-2001dd84">店铺地址</view><up-input wx:if="{{d}}" class="data-v-2001dd84" u-i="2001dd84-1" bind:__l="__l" bindupdateModelValue="{{c}}" u-p="{{d}}"></up-input></view><view class="card_comm data-v-2001dd84"><view class="title_ data-v-2001dd84">上传店铺环境照片</view><view class="msg_ data-v-2001dd84">上传店铺背景图片,用于装修店铺主页。</view><view class="upload_comm data-v-2001dd84"><view class="upload_msg_ data-v-2001dd84">上传照片</view></view></view><view class="card_comm data-v-2001dd84"><view class="title_ data-v-2001dd84">营业执照</view><view class="msg_ data-v-2001dd84">上传店铺营业执照</view><view class="business_license_upload_comm data-v-2001dd84"><view class="upload_msg_ data-v-2001dd84">上传营业执照</view></view></view><view class="data_common_warp data-v-2001dd84"><view class="data_msg data-v-2001dd84">请填写商户本人的相关信息</view><view wx:for="{{e}}" wx:for-item="item" wx:key="f" class="{{['data-v-2001dd84', item.e]}}"><view class="add_form_title data-v-2001dd84">{{item.a}}</view><up-input wx:if="{{item.d}}" class="data-v-2001dd84" u-i="{{item.b}}" bind:__l="__l" bindupdateModelValue="{{item.c}}" u-p="{{item.d}}"></up-input></view></view><common-card class="data-v-2001dd84" u-i="2001dd84-3" bind:__l="__l"/><view class="data_common_warp data-v-2001dd84"><view class="data_msg data-v-2001dd84">商户银行账户信息</view><view wx:for="{{f}}" wx:for-item="item" wx:key="f" class="{{['data-v-2001dd84', item.e]}}"><view class="add_form_title data-v-2001dd84">{{item.a}}</view><up-input wx:if="{{item.d}}" class="data-v-2001dd84" u-i="{{item.b}}" bind:__l="__l" bindupdateModelValue="{{item.c}}" u-p="{{item.d}}"></up-input></view></view><view class="add_but data-v-2001dd84" bindtap="{{g}}"> 提交 </view></view>
<view class="merchant_settlement_warp data-v-2001dd84"><view class="card_comm data-v-2001dd84"><view class="title_ data-v-2001dd84">上传店铺LOGO</view><view class="msg_ data-v-2001dd84">上传店铺LOGO、品牌标志。</view><view class="upload_comm data-v-2001dd84"><view class="upload_msg_ data-v-2001dd84">上传LOGO</view></view></view><view class="card_comm card_hang_comm data-v-2001dd84"><view class="title_ data-v-2001dd84">店铺名称</view><up-input wx:if="{{b}}" class="data-v-2001dd84" u-i="2001dd84-0" bind:__l="__l" bindupdateModelValue="{{a}}" u-p="{{b}}"></up-input></view><view class="card_comm card_hang_comm data-v-2001dd84"><view class="title_ data-v-2001dd84">店铺地址</view><up-input wx:if="{{d}}" class="data-v-2001dd84" u-i="2001dd84-1" bind:__l="__l" bindupdateModelValue="{{c}}" u-p="{{d}}"></up-input></view><view class="card_comm data-v-2001dd84"><view class="title_ data-v-2001dd84">上传店铺环境照片</view><view class="msg_ data-v-2001dd84">上传店铺背景图片,用于装修店铺主页。</view><view class="upload_comm data-v-2001dd84"><view class="upload_msg_ data-v-2001dd84">上传照片</view></view></view><view class="card_comm data-v-2001dd84"><view class="title_ data-v-2001dd84">营业执照</view><view class="msg_ data-v-2001dd84">上传店铺营业执照</view><view class="business_license_upload_comm data-v-2001dd84"><view class="upload_msg_ data-v-2001dd84">上传营业执照</view></view></view><view class="data_common_warp data-v-2001dd84"><view class="data_msg data-v-2001dd84">请填写商户本人的相关信息</view><view wx:for="{{e}}" wx:for-item="item" wx:key="f" class="{{['data-v-2001dd84', item.e]}}"><view class="add_form_title data-v-2001dd84">{{item.a}}</view><up-input wx:if="{{item.d}}" class="data-v-2001dd84" u-i="{{item.b}}" bind:__l="__l" bindupdateModelValue="{{item.c}}" u-p="{{item.d}}"></up-input></view></view><common-card class="data-v-2001dd84" u-i="2001dd84-3" bind:__l="__l"/><view class="data_common_warp data-v-2001dd84"><view class="data_msg data-v-2001dd84">商户银行账户信息</view><view wx:for="{{f}}" wx:for-item="item" wx:key="f" class="{{['data-v-2001dd84', item.e]}}"><view class="add_form_title data-v-2001dd84">{{item.a}}</view><up-input wx:if="{{item.d}}" class="data-v-2001dd84" u-i="{{item.b}}" bind:__l="__l" bindupdateModelValue="{{item.c}}" u-p="{{item.d}}"></up-input></view></view><view class="add_but data-v-2001dd84" bindtap="{{g}}"> 提交 </view><up-toast class="r data-v-2001dd84" u-r="uToastRef" u-i="2001dd84-5" bind:__l="__l"></up-toast></view>
@@ -24,7 +24,7 @@
/* 垂直间距 */
.merchant_settlement_warp.data-v-2001dd84 {
padding: 30rpx;
background-color: #F5F5F5;
background-color: #F5F5F5FF;
height: calc(100vh - 58rpx);
overflow: auto;
}
+6 -4
View File
@@ -135,7 +135,8 @@ const _sfc_main = {
{
id: 8,
title: "商学院资讯",
url: "/static/mine/tool_sxy.png"
url: "/static/mine/tool_sxy.png",
path: "/pages/news/news"
},
{
id: 11,
@@ -226,7 +227,9 @@ const _sfc_main = {
// 跳转到入驻页面
jumpEnter(type) {
if (type === "merchant") {
this.openShow = true;
common_vendor.index.navigateTo({
url: "/pages/merchant_settlement/merchant_settlement"
});
} else if (type === "brand") {
this.brandShow = true;
}
@@ -264,7 +267,6 @@ const _sfc_main = {
}
},
beforeDestroy() {
common_vendor.index.__f__("log", "at pages/mine/mine.vue:413", "beforeDestry");
this.statisticsObj = {
unPayNum: 0,
//待支付数量
@@ -438,7 +440,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
D: common_vendor.o(($event) => {
$data.brandShow = false;
}),
E: common_vendor.o(($event) => $options.copyMobile("15888880123")),
E: common_vendor.o(($event) => $options.copyMobile("13922786999")),
F: common_vendor.o(($event) => {
$data.brandShow = false;
}),
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -26,7 +26,7 @@
height: calc(100vh - 140rpx);
overflow: auto;
position: relative;
background-color: #F5F5F5;
background-color: #F5F5F5FF;
}
.mine_header {
height: 300rpx;
@@ -23,7 +23,7 @@
/* 水平间距 */
/* 垂直间距 */
.mine_about_us {
background-color: #F5F5F5;
background-color: #F5F5F5FF;
padding: 30rpx;
height: calc(100% - 60rpx);
overflow: auto;
@@ -25,7 +25,7 @@
.mine_address_warp.data-v-1172d71f {
height: calc(100vh - 188rpx);
overflow-y: auto;
background-color: #F5F5F5;
background-color: #F5F5F5FF;
padding: 30rpx;
}
.address_item.data-v-1172d71f {
@@ -24,7 +24,7 @@
/* 垂直间距 */
.authentication_warp.data-v-ff62741c {
height: calc(100vh - 58rpx);
background-color: #F5F5F5;
background-color: #F5F5F5FF;
padding: 30rpx;
}
.cert_.data-v-ff62741c {
@@ -27,10 +27,17 @@ const _sfc_main = {
async getUserInfo() {
const result = await api_auth.getUserInfo();
if (result && result.bizcode === 100) {
const data = result.data;
common_vendor.index.__f__("log", "at pages/mine_authentication_ok/mine_authentication_ok.vue:71", "data", data);
result.data;
this.currentUserData = result.data || {};
}
},
/**
* 重新认证
*/
reauthenticationFun() {
common_vendor.index.navigateTo({
url: "/pages/mine_authentication/mine_authentication"
});
}
}
};
@@ -53,7 +60,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
["left-path"]: "/pages/mine/mine"
}),
b: $data.currentUserData && Object.keys($data.currentUserData).length !== 0
}, $data.currentUserData && Object.keys($data.currentUserData).length !== 0 ? {
}, $data.currentUserData && Object.keys($data.currentUserData).length !== 0 ? common_vendor.e({
c: common_vendor.p({
src: "/static/mine/auth_ok.png",
mode: "widthFix",
@@ -64,16 +71,19 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
fade: true,
duration: "450"
}),
d: common_vendor.t($options.getValue($options.CERT_STATUS_OPTION, $data.currentUserData.certStatus))
} : {
e: common_vendor.p({
d: common_vendor.t($options.getValue($options.CERT_STATUS_OPTION, $data.currentUserData.certStatus)),
e: $data.currentUserData.certStatus === 3
}, $data.currentUserData.certStatus === 3 ? {
f: common_vendor.o((...args) => $options.reauthenticationFun && $options.reauthenticationFun(...args))
} : {}) : {
g: common_vendor.p({
src: "/static/common/not_order.png",
width: "80",
height: "80",
bgColor: "#f1f6ff00"
})
}, {
f: common_vendor.sr("uToastRef", "731ed15b-3")
h: common_vendor.sr("uToastRef", "731ed15b-3")
});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-731ed15b"]]);
@@ -1 +1 @@
<view class="authentication_ok_warp data-v-731ed15b"><header wx:if="{{a}}" class="data-v-731ed15b" u-i="731ed15b-0" bind:__l="__l" u-p="{{a}}"/><view wx:if="{{b}}" class="authentication_ok_content data-v-731ed15b"><view class="authentication_result data-v-731ed15b"><up-image wx:if="{{c}}" class="data-v-731ed15b" u-i="731ed15b-1" bind:__l="__l" u-p="{{c}}"></up-image><view class="result_value data-v-731ed15b">{{d}}</view></view></view><view wx:else class="not_order_warp data-v-731ed15b"><up-image wx:if="{{e}}" class="data-v-731ed15b" u-i="731ed15b-2" bind:__l="__l" u-p="{{e}}"></up-image><view class="not_order_msg_warp data-v-731ed15b">暂无相关认证信息</view></view><up-toast class="r data-v-731ed15b" u-r="uToastRef" u-i="731ed15b-3" bind:__l="__l"></up-toast></view>
<view class="authentication_ok_warp data-v-731ed15b"><header wx:if="{{a}}" class="data-v-731ed15b" u-i="731ed15b-0" bind:__l="__l" u-p="{{a}}"/><view wx:if="{{b}}" class="authentication_ok_content data-v-731ed15b"><view class="authentication_result data-v-731ed15b"><up-image wx:if="{{c}}" class="data-v-731ed15b" u-i="731ed15b-1" bind:__l="__l" u-p="{{c}}"></up-image><view class="result_value data-v-731ed15b">{{d}}</view></view><view wx:if="{{e}}" class="reauthentication_warp data-v-731ed15b"><view class="reauthentication_but_warp data-v-731ed15b" bindtap="{{f}}"> 重新认证 </view></view></view><view wx:else class="not_order_warp data-v-731ed15b"><up-image wx:if="{{g}}" class="data-v-731ed15b" u-i="731ed15b-2" bind:__l="__l" u-p="{{g}}"></up-image><view class="not_order_msg_warp data-v-731ed15b">暂无相关认证信息</view></view><up-toast class="r data-v-731ed15b" u-r="uToastRef" u-i="731ed15b-3" bind:__l="__l"></up-toast></view>
@@ -47,6 +47,19 @@
color: #666666;
line-height: 80rpx;
}
.authentication_ok_warp .reauthentication_warp.data-v-731ed15b {
display: grid;
justify-content: center;
}
.authentication_ok_warp .reauthentication_warp .reauthentication_but_warp.data-v-731ed15b {
margin-top: 100rpx;
border: 1rpx solid #FF7C41;
color: #FF7C41;
padding: 8rpx 10rpx;
width: 200rpx;
border-radius: 10rpx;
text-align: center;
}
.authentication_ok_warp .authentication_info.data-v-731ed15b {
background: #F8F8F8;
border-radius: 10rpx;
@@ -24,7 +24,7 @@
/* 垂直间距 */
.bank_add_warp.data-v-aa18beea {
height: calc(100vh - 58rpx);
background-color: #F5F5F5;
background-color: #F5F5F5FF;
padding: 30rpx;
}
.add_form.data-v-aa18beea {
@@ -2,23 +2,42 @@
const common_vendor = require("../../common/vendor.js");
const api_bank = require("../../api/bank.js");
const utils_index = require("../../utils/index.js");
const api_auth = require("../../api/auth.js");
const Header = () => "../../components/header.js";
const _sfc_main = {
components: { Header },
data() {
return {
bankList: []
bankList: [],
currentUserData: {}
};
},
onLoad() {
this.getBankList();
this.getUserInfo();
},
methods: {
encipherBankNumber: utils_index.encipherBankNumber,
jumpAddBank() {
common_vendor.index.navigateTo({
url: "/pages/mine_bank_add/mine_bank_add"
});
const currentUserData = this.currentUserData;
if (currentUserData && Object.keys(currentUserData).length !== 0 && currentUserData.certStatus && currentUserData.certStatus !== 0) {
common_vendor.index.navigateTo({
url: "/pages/mine_bank_add/mine_bank_add"
});
} else {
this.$refs.uToastRef.show({
type: "error",
message: "还未进行实名认证,认证完才能绑定银行卡信息"
});
}
},
// 查询用户等级
async getUserInfo() {
const result = await api_auth.getUserInfo();
if (result && result.bizcode === 100) {
result.data;
this.currentUserData = result.data || {};
}
},
async getBankList() {
const resp = await api_bank.getBankList();
@@ -54,11 +73,13 @@ const _sfc_main = {
if (!Array) {
const _component_Header = common_vendor.resolveComponent("Header");
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
(_component_Header + _easycom_up_image2)();
const _easycom_up_toast2 = common_vendor.resolveComponent("up-toast");
(_component_Header + _easycom_up_image2 + _easycom_up_toast2)();
}
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
const _easycom_up_toast = () => "../../uni_modules/uview-plus/components/u-toast/u-toast.js";
if (!Math) {
_easycom_up_image();
(_easycom_up_image + _easycom_up_toast)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
@@ -94,7 +115,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
bgColor: "#f1f6ff00"
})
}, {
f: common_vendor.o((...args) => $options.jumpAddBank && $options.jumpAddBank(...args))
f: common_vendor.o((...args) => $options.jumpAddBank && $options.jumpAddBank(...args)),
g: common_vendor.sr("uToastRef", "c1af5562-3")
});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-c1af5562"]]);
@@ -2,6 +2,7 @@
"navigationStyle": "custom",
"usingComponents": {
"header": "../../components/header",
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image"
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
"up-toast": "../../uni_modules/uview-plus/components/u-toast/u-toast"
}
}
@@ -1 +1 @@
<view class="mine_bank_warp data-v-c1af5562"><header wx:if="{{a}}" class="data-v-c1af5562" u-i="c1af5562-0" bind:__l="__l" u-p="{{a}}"/><view class="mine_bank_content_warp data-v-c1af5562"><view class="bank_title data-v-c1af5562"> 银行卡({{b}}张) </view><view class="bank_list data-v-c1af5562"><block wx:if="{{c}}"><view wx:for="{{d}}" wx:for-item="item" wx:key="g" class="bank_item data-v-c1af5562"><view class="bank_data data-v-c1af5562"><up-image wx:if="{{item.b}}" class="data-v-c1af5562" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image><view class="bank_info data-v-c1af5562"><view class="bank_bank_name data-v-c1af5562">{{item.c}}</view><view class="bank_user_name data-v-c1af5562">{{item.d}}</view></view></view><view class="bank_parting_line data-v-c1af5562"></view><view class="operate_item data-v-c1af5562"><view class="data-v-c1af5562">{{item.e}}</view><view class="operate_ data-v-c1af5562" bindtap="{{item.f}}">解绑</view></view></view></block><view wx:else class="not_order_warp data-v-c1af5562"><up-image wx:if="{{e}}" class="data-v-c1af5562" u-i="c1af5562-2" bind:__l="__l" u-p="{{e}}"></up-image><view class="not_order_msg_warp data-v-c1af5562">还未绑定银行卡哦~</view></view></view><view class="add_but data-v-c1af5562" bindtap="{{f}}"> 添加银行卡 </view></view></view>
<view class="mine_bank_warp data-v-c1af5562"><header wx:if="{{a}}" class="data-v-c1af5562" u-i="c1af5562-0" bind:__l="__l" u-p="{{a}}"/><view class="mine_bank_content_warp data-v-c1af5562"><view class="bank_title data-v-c1af5562"> 银行卡({{b}}张) </view><view class="bank_list data-v-c1af5562"><block wx:if="{{c}}"><view wx:for="{{d}}" wx:for-item="item" wx:key="g" class="bank_item data-v-c1af5562"><view class="bank_data data-v-c1af5562"><up-image wx:if="{{item.b}}" class="data-v-c1af5562" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image><view class="bank_info data-v-c1af5562"><view class="bank_bank_name data-v-c1af5562">{{item.c}}</view><view class="bank_user_name data-v-c1af5562">{{item.d}}</view></view></view><view class="bank_parting_line data-v-c1af5562"></view><view class="operate_item data-v-c1af5562"><view class="data-v-c1af5562">{{item.e}}</view><view class="operate_ data-v-c1af5562" bindtap="{{item.f}}">解绑</view></view></view></block><view wx:else class="not_order_warp data-v-c1af5562"><up-image wx:if="{{e}}" class="data-v-c1af5562" u-i="c1af5562-2" bind:__l="__l" u-p="{{e}}"></up-image><view class="not_order_msg_warp data-v-c1af5562">还未绑定银行卡哦~</view></view></view><view class="add_but data-v-c1af5562" bindtap="{{f}}"> 添加银行卡 </view></view><up-toast class="r data-v-c1af5562" u-r="uToastRef" u-i="c1af5562-3" bind:__l="__l"></up-toast></view>
@@ -24,7 +24,7 @@
/* 垂直间距 */
.mine_bank_warp.data-v-c1af5562 {
height: calc(100vh - 58rpx);
background-color: #F5F5F5;
background-color: #F5F5F5FF;
overflow-y: hidden;
}
.mine_bank_warp .mine_bank_content_warp.data-v-c1af5562 {
@@ -24,7 +24,7 @@
/* 垂直间距 */
.mine_coupon {
height: 100vh;
background-color: #F5F5F5;
background-color: #F5F5F5FF;
overflow: hidden;
}
.mine_coupon .tab_header {
@@ -46,7 +46,7 @@ const _sfc_main = {
*/
async getJuniorSummary() {
const resp = await api_team.getJuniorSummary();
common_vendor.index.__f__("log", "at pages/mine_my_team_list/mine_my_team_list.vue:130", "getJuniorSummary", resp);
common_vendor.index.__f__("log", "at pages/mine_my_team_list/mine_my_team_list.vue:154", "getJuniorSummary", resp);
if (resp && resp.bizcode === 100) {
this.juniorSummaryData = resp.data;
}
@@ -59,11 +59,12 @@ const _sfc_main = {
try {
const newData = await this.fetchData();
if (newData.entitys && newData.entitys.length !== 0) {
this.listData = [...this.listData, ...newData.entitys];
const data = newData.entitys.map((item) => ({ ...item, isOpen: false }));
this.listData = [...this.listData, ...data];
this.form.page++;
}
} catch (error) {
common_vendor.index.__f__("error", "at pages/mine_my_team_list/mine_my_team_list.vue:148", "加载数据失败:", error);
common_vendor.index.__f__("error", "at pages/mine_my_team_list/mine_my_team_list.vue:173", "加载数据失败:", error);
} finally {
this.loading = false;
}
@@ -83,6 +84,26 @@ const _sfc_main = {
// 当滚动到底部时触发的方法
loadMore() {
this.loadData();
},
/**
* 查询团队下级数据
* @param {Object} item
* @param {Object} index
*/
async queryLowerFun(item, index) {
const data = this.listData[index];
const type = !data.isOpen;
if (type) {
const params = {
userId: item.userId
};
const resp = await api_team.getJuniorSummary(params);
if (resp && resp.bizcode === 100) {
data.lowerData = resp.data;
}
}
data.isOpen = type;
this.listData[index] = data;
}
}
};
@@ -124,7 +145,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
j: $data.listData && $data.listData.length
}, $data.listData && $data.listData.length ? {
k: common_vendor.f($data.listData, (item, index, i0) => {
return {
return common_vendor.e({
a: "9f12fd33-2-" + i0,
b: common_vendor.p({
src: item.userUrl || "/static/logo.png",
@@ -138,42 +159,61 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
d: common_vendor.t(item.gradeName),
e: common_vendor.t(item.userId),
f: common_vendor.t($options.formatDate(item.registTime)),
g: "9f12fd33-3-" + i0,
h: common_vendor.o(($event) => $options.jumpNextLevel(item), item.id),
i: item.id
};
}),
l: common_vendor.p({
src: "/static/common/right_x.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00",
radius: "16"
g: !item.isOpen
}, !item.isOpen ? {
h: "9f12fd33-3-" + i0,
i: common_vendor.p({
src: "/static/common/right_x.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00",
radius: "16"
})
} : {
j: "9f12fd33-4-" + i0,
k: common_vendor.p({
src: "/static/common/buttom_x.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00",
radius: "16"
})
}, {
l: common_vendor.o(($event) => $options.queryLowerFun(item, index), item.id),
m: item.isOpen && item.lowerData
}, item.isOpen && item.lowerData ? {
n: common_vendor.t(item.lowerData.teamAmount),
o: common_vendor.t(item.lowerData.ztCount),
p: common_vendor.t(item.lowerData.jtCount),
q: common_vendor.t(item.lowerData.teamCount)
} : {}, {
r: item.id
});
})
} : {
m: common_vendor.p({
l: common_vendor.p({
src: "/static/common/not_order.png",
width: "80",
height: "80",
bgColor: "#f1f6ff00"
})
}, {
n: _ctx.royaltyLoading
m: _ctx.royaltyLoading
}, _ctx.royaltyLoading ? {} : {}, {
o: common_vendor.o((...args) => $options.loadMore && $options.loadMore(...args)),
p: common_vendor.p({
n: common_vendor.o((...args) => $options.loadMore && $options.loadMore(...args)),
o: common_vendor.p({
src: "/static/common/close.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
}),
p: common_vendor.o(($event) => {
$data.openTcShow = false;
}),
q: common_vendor.o(($event) => {
$data.openTcShow = false;
}),
r: common_vendor.o(($event) => {
$data.openTcShow = false;
}),
s: common_vendor.p({
r: common_vendor.p({
show: $data.openTcShow,
showConfirmButton: false
})
@@ -1 +1 @@
<view class="my_team_list data-v-9f12fd33"><header wx:if="{{a}}" class="data-v-9f12fd33" u-i="9f12fd33-0" bind:__l="__l" u-p="{{a}}"/><view class="my_team_list_content data-v-9f12fd33"><view class="team_list_card data-v-9f12fd33"><view class="amount_ data-v-9f12fd33">{{b}}</view><view class="amount_sum data-v-9f12fd33">总订单金额</view><view class="comm_fg data-v-9f12fd33"></view><view class="people_number data-v-9f12fd33"><view class="people_number_item data-v-9f12fd33"><view class="title_ data-v-9f12fd33">总人数</view><view class="value_ data-v-9f12fd33">{{c}}</view></view><view class="comm_fg_s data-v-9f12fd33"></view><view class="people_number_item data-v-9f12fd33"><view class="title_ data-v-9f12fd33">直推人数</view><view class="value_ data-v-9f12fd33">{{d}}</view></view><view class="comm_fg_s data-v-9f12fd33"></view><view class="people_number_item data-v-9f12fd33"><view class="title_ data-v-9f12fd33">间推人数</view><view class="value_ data-v-9f12fd33">{{e}}</view></view></view><view wx:if="{{f}}" class="current_user_id data-v-9f12fd33">当前用户ID:{{g}}</view><view class="current_user_tips data-v-9f12fd33"><up-image wx:if="{{i}}" class="data-v-9f12fd33" bindclick="{{h}}" u-i="9f12fd33-1" bind:__l="__l" u-p="{{i}}"/></view></view><view class="team_list_remarks data-v-9f12fd33"><view class="data-v-9f12fd33">注:所有数据均截至到进入页面的时间为止,返回再进入页面数据会更新</view><view class="data-v-9f12fd33" style="margin-left:40rpx">总订单金额统计的为所有已支付的订单金额</view></view><scroll-view class="data-v-9f12fd33" scroll-y="true" bindscrolltolower="{{o}}" style="{{'height:' + 'calc(100vh - 500rpx)'}}"><block wx:if="{{j}}"><view wx:for="{{k}}" wx:for-item="item" wx:key="i" class="team_item data-v-9f12fd33"><view class="team_header data-v-9f12fd33" bindtap="{{item.h}}"><view class="header_left_ data-v-9f12fd33"><view class="data-v-9f12fd33" style="margin-top:10rpx"><up-image wx:if="{{item.b}}" class="data-v-9f12fd33" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image></view><view class="right_data data-v-9f12fd33"><view class="name_ data-v-9f12fd33">{{item.c}}({{item.d}})</view><view class="msg_ data-v-9f12fd33"> ID:{{item.e}}</view><view class="msg_ data-v-9f12fd33"> 注册时间:{{item.f}}</view></view></view><view class="data-v-9f12fd33"><up-image wx:if="{{l}}" class="data-v-9f12fd33" u-i="{{item.g}}" bind:__l="__l" u-p="{{l}}"></up-image></view></view></view></block><view wx:else class="not_order_warp data-v-9f12fd33"><up-image wx:if="{{m}}" class="data-v-9f12fd33" u-i="9f12fd33-4" bind:__l="__l" u-p="{{m}}"></up-image><view class="not_order_msg_warp data-v-9f12fd33">团队暂无数据</view></view><view wx:if="{{n}}" class="data-v-9f12fd33" style="text-align:center">加载中...</view></scroll-view></view><up-modal wx:if="{{s}}" class="data-v-9f12fd33" u-s="{{['d']}}" u-i="9f12fd33-5" bind:__l="__l" u-p="{{s}}"><view class="slot-content data-v-9f12fd33"><view class="close_warp data-v-9f12fd33" bindtap="{{q}}"><up-image wx:if="{{p}}" class="data-v-9f12fd33" u-i="9f12fd33-6,9f12fd33-5" bind:__l="__l" u-p="{{p}}"></up-image></view><view class="content_ data-v-9f12fd33"><view class="content_1 data-v-9f12fd33">温馨提示</view><view class="content_2 data-v-9f12fd33">1、页面数据截至到进入该页面的时间统计</view><view class="content_2 data-v-9f12fd33">2、当前页面数据为主用户的数据</view><view class="content_2 data-v-9f12fd33">3、下方显示为全部的直推用户,点击后可跳转他/她的团队数据页,查看他/她的直推数据(也就是我的间推)</view></view><view class="but_ data-v-9f12fd33"><view class="but_copy data-v-9f12fd33" bindtap="{{r}}">确定</view></view></view></up-modal></view>
<view class="my_team_list data-v-9f12fd33"><header wx:if="{{a}}" class="data-v-9f12fd33" u-i="9f12fd33-0" bind:__l="__l" u-p="{{a}}"/><view class="my_team_list_content data-v-9f12fd33"><view class="team_list_card data-v-9f12fd33"><view class="amount_ data-v-9f12fd33">{{b}}</view><view class="amount_sum data-v-9f12fd33">总订单金额</view><view class="comm_fg data-v-9f12fd33"></view><view class="people_number data-v-9f12fd33"><view class="people_number_item data-v-9f12fd33"><view class="title_ data-v-9f12fd33">总人数</view><view class="value_ data-v-9f12fd33">{{c}}</view></view><view class="comm_fg_s data-v-9f12fd33"></view><view class="people_number_item data-v-9f12fd33"><view class="title_ data-v-9f12fd33">直推人数</view><view class="value_ data-v-9f12fd33">{{d}}</view></view><view class="comm_fg_s data-v-9f12fd33"></view><view class="people_number_item data-v-9f12fd33"><view class="title_ data-v-9f12fd33">间推人数</view><view class="value_ data-v-9f12fd33">{{e}}</view></view></view><view wx:if="{{f}}" class="current_user_id data-v-9f12fd33">当前用户ID:{{g}}</view><view class="current_user_tips data-v-9f12fd33"><up-image wx:if="{{i}}" class="data-v-9f12fd33" bindclick="{{h}}" u-i="9f12fd33-1" bind:__l="__l" u-p="{{i}}"/></view></view><view class="team_list_remarks data-v-9f12fd33"><view class="data-v-9f12fd33">注:所有数据均截至到进入页面的时间为止,返回再进入页面数据会更新</view><view class="data-v-9f12fd33" style="margin-left:40rpx">总订单金额统计的为所有已支付的订单金额</view></view><scroll-view class="data-v-9f12fd33" scroll-y="true" bindscrolltolower="{{n}}" style="{{'height:' + 'calc(100vh - 500rpx)'}}"><block wx:if="{{j}}"><view wx:for="{{k}}" wx:for-item="item" wx:key="r" class="team_item data-v-9f12fd33"><view class="team_header data-v-9f12fd33" bindtap="{{item.l}}"><view class="header_left_ data-v-9f12fd33"><view class="data-v-9f12fd33" style="margin-top:10rpx"><up-image wx:if="{{item.b}}" class="data-v-9f12fd33" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image></view><view class="right_data data-v-9f12fd33"><view class="name_ data-v-9f12fd33">{{item.c}}({{item.d}})</view><view class="msg_ data-v-9f12fd33"> ID:{{item.e}}</view><view class="msg_ data-v-9f12fd33"> 注册时间:{{item.f}}</view></view></view><view class="data-v-9f12fd33"><up-image wx:if="{{item.g}}" class="data-v-9f12fd33" u-i="{{item.h}}" bind:__l="__l" u-p="{{item.i}}"></up-image><up-image wx:else class="data-v-9f12fd33" u-i="{{item.j}}" bind:__l="__l" u-p="{{item.k||''}}"></up-image></view></view><view wx:if="{{item.m}}" class="data-v-9f12fd33" style="padding:10rpx"><view class="team_lower data-v-9f12fd33"><view class="team_lower_item data-v-9f12fd33"><view class="title_ data-v-9f12fd33">总订单金额</view><view class="val_ data-v-9f12fd33">{{item.n}}</view></view><view class="team_lower_fg data-v-9f12fd33"></view><view class="team_lower_item data-v-9f12fd33"><view class="title_ data-v-9f12fd33">直推人数</view><view class="val_ data-v-9f12fd33">{{item.o}}</view></view><view class="team_lower_fg data-v-9f12fd33"></view><view class="team_lower_item data-v-9f12fd33"><view class="title_ data-v-9f12fd33">间推人数</view><view class="val_ data-v-9f12fd33">{{item.p}}</view></view><view class="team_lower_fg data-v-9f12fd33"></view><view class="team_lower_item data-v-9f12fd33"><view class="title_ data-v-9f12fd33">总人数</view><view class="val_ data-v-9f12fd33">{{item.q}}</view></view></view></view></view></block><view wx:else class="not_order_warp data-v-9f12fd33"><up-image wx:if="{{l}}" class="data-v-9f12fd33" u-i="9f12fd33-5" bind:__l="__l" u-p="{{l}}"></up-image><view class="not_order_msg_warp data-v-9f12fd33">团队暂无数据</view></view><view wx:if="{{m}}" class="data-v-9f12fd33" style="text-align:center">加载中...</view></scroll-view></view><up-modal wx:if="{{r}}" class="data-v-9f12fd33" u-s="{{['d']}}" u-i="9f12fd33-6" bind:__l="__l" u-p="{{r}}"><view class="slot-content data-v-9f12fd33"><view class="close_warp data-v-9f12fd33" bindtap="{{p}}"><up-image wx:if="{{o}}" class="data-v-9f12fd33" u-i="9f12fd33-7,9f12fd33-6" bind:__l="__l" u-p="{{o}}"></up-image></view><view class="content_ data-v-9f12fd33"><view class="content_1 data-v-9f12fd33">温馨提示</view><view class="content_2 data-v-9f12fd33">1、页面数据截至到进入该页面的时间统计</view><view class="content_2 data-v-9f12fd33">2、当前页面数据为主用户的数据</view><view class="content_2 data-v-9f12fd33">3、下方显示为全部的直推用户,点击后可跳转他/她的团队数据页,查看他/她的直推数据(也就是我的间推)</view></view><view class="but_ data-v-9f12fd33"><view class="but_copy data-v-9f12fd33" bindtap="{{q}}">确定</view></view></view></up-modal></view>
@@ -23,7 +23,7 @@
/* 水平间距 */
/* 垂直间距 */
.my_team_list.data-v-9f12fd33 {
background-color: #F5F5F5;
background-color: #F5F5F5FF;
}
.my_team_list .my_team_list_content.data-v-9f12fd33 {
padding: 30rpx;
@@ -94,9 +94,6 @@
margin-bottom: 10rpx;
}
.my_team_list .team_item.data-v-9f12fd33 {
padding: 20rpx;
background: #FFFFFF;
border-radius: 30rpx;
margin-bottom: 20rpx;
}
.my_team_list .team_header.data-v-9f12fd33 {
@@ -104,7 +101,9 @@
align-content: center;
justify-content: space-between;
align-items: center;
margin-bottom: 10rpx;
border-radius: 8rpx;
background: #FFFFFF;
padding: 20rpx;
}
.my_team_list .team_header .header_left_.data-v-9f12fd33 {
display: flex;
@@ -125,6 +124,31 @@
color: #999999;
margin-top: 10rpx;
}
.my_team_list .team_lower.data-v-9f12fd33 {
display: flex;
justify-content: space-between;
align-items: center;
background: #E9E9E9;
border-radius: 4px;
padding: 30rpx 20rpx;
}
.my_team_list .team_lower .team_lower_fg.data-v-9f12fd33 {
border-right: 1px solid rgba(0, 0, 0, 0.26);
height: 36rpx;
}
.my_team_list .team_lower .team_lower_item.data-v-9f12fd33 {
text-align: center;
}
.my_team_list .team_lower .title_.data-v-9f12fd33 {
font-size: 10px;
color: rgba(0, 0, 0, 0.6);
}
.my_team_list .team_lower .val_.data-v-9f12fd33 {
font-weight: 500;
font-size: 14px;
color: rgba(0, 0, 0, 0.9);
margin-top: 20rpx;
}
.my_team_list .team_content.data-v-9f12fd33 {
border-top: 1rpx solid #EEEEEE;
padding: 20rpx 0 0;
+59 -4
View File
@@ -88,7 +88,9 @@ const _sfc_main = {
},
loading: false,
// 加载状态标志
openShow: false
openShow: false,
afterShow: false
// 售后申请
};
},
onLoad(options) {
@@ -101,13 +103,17 @@ const _sfc_main = {
getValue: utils_enumUtils.getValue,
formatDate1: utils_index.formatDate1,
copyData: utils_index.copyData,
copyMobile(mobile) {
utils_index.copyData(mobile);
this.afterShow = false;
},
jumpLeft() {
common_vendor.index.switchTab({
url: "/pages/mine/mine"
});
},
searchFun(val) {
common_vendor.index.__f__("log", "at pages/mine_order/mine_order.vue:246", "searchFun", val);
common_vendor.index.__f__("log", "at pages/mine_order/mine_order.vue:296", "searchFun", val);
},
checkType(item) {
this.form.page = 1;
@@ -145,9 +151,10 @@ const _sfc_main = {
if (newData.entitys && newData.entitys.length !== 0) {
this.orderList = [...this.orderList, ...newData.entitys];
this.form.page++;
common_vendor.index.__f__("log", "at pages/mine_order/mine_order.vue:339", "this.orderList", this.orderList);
}
} catch (error) {
common_vendor.index.__f__("error", "at pages/mine_order/mine_order.vue:291", "加载数据失败:", error);
common_vendor.index.__f__("error", "at pages/mine_order/mine_order.vue:342", "加载数据失败:", error);
} finally {
this.loading = false;
}
@@ -338,7 +345,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
}, item.status === $options.ORDER_TYPE.NOT_RECEIVE ? {
p: common_vendor.o(($event) => $options.confirmReceiptOk(item), item.id)
} : {}, {
q: item.id
q: [$options.ORDER_TYPE.NOT_RECEIVE, $options.ORDER_TYPE.UNSHIPPED].includes(item.status)
}, [$options.ORDER_TYPE.NOT_RECEIVE, $options.ORDER_TYPE.UNSHIPPED].includes(item.status) ? {
r: common_vendor.o(($event) => {
$data.afterShow = true;
}, item.id)
} : {}, {
s: item.id
});
}),
h: this.form.type === $options.MINE_ORDER_TYPE.NOT_RECEIVE
@@ -404,6 +417,48 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
A: common_vendor.p({
show: $data.openShow,
showConfirmButton: false
}),
B: common_vendor.p({
src: "/static/common/close.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
}),
C: common_vendor.o(($event) => {
$data.afterShow = false;
}),
D: common_vendor.p({
src: "/static/common/kf_dh.png",
width: "40",
height: "40",
bgColor: "#f1f6ff00"
}),
E: common_vendor.o(($event) => $options.copyMobile(13922786999)),
F: common_vendor.p({
src: "/static/common/copy_c.png",
width: "14",
height: "14",
bgColor: "#f1f6ff00"
}),
G: common_vendor.p({
src: "/static/common/kf_wx.png",
width: "40",
height: "40",
bgColor: "#f1f6ff00"
}),
H: common_vendor.o(($event) => $options.copyMobile(13922786999)),
I: common_vendor.p({
src: "/static/common/copy_c.png",
width: "14",
height: "14",
bgColor: "#f1f6ff00"
}),
J: common_vendor.o(($event) => {
$data.afterShow = false;
}),
K: common_vendor.p({
show: $data.afterShow,
showConfirmButton: false
})
});
}
File diff suppressed because one or more lines are too long
@@ -24,7 +24,7 @@
/* 垂直间距 */
.order_warp.data-v-abc152e3 {
height: calc(100vh - 130rpx);
background-color: #F5F5F5;
background-color: #F5F5F5FF;
padding: 100rpx 30rpx 30rpx;
overflow-y: hidden;
}
@@ -162,4 +162,45 @@
.content_item_yd_msg.data-v-abc152e3 {
font-weight: bold;
font-size: 18rpx;
}
.content_2.data-v-abc152e3 {
font-size: 26rpx;
color: rgba(0, 0, 0, 0.4);
margin-bottom: 40rpx;
}
.content_3.data-v-abc152e3 {
display: flex;
background: #FFFFFF;
box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(0, 0, 0, 0.06);
border-radius: 12rpx;
}
.content_3 .content_info.data-v-abc152e3 {
display: grid;
margin-left: 20rpx;
text-align: left;
}
.content_3 .content_info_title.data-v-abc152e3 {
font-weight: 600;
font-size: 26rpx;
color: rgba(0, 0, 0, 0.9);
line-height: 38rpx;
}
.content_3 .content_info_mobile.data-v-abc152e3 {
font-size: 30rpx;
color: rgba(0, 0, 0, 0.4);
display: flex;
}
.but_.data-v-abc152e3 {
display: flex;
justify-content: center;
margin-top: 40rpx;
}
.but_close.data-v-abc152e3 {
background: #F24A00;
box-shadow: 0rpx 4rpx 8rpx 0rpx rgba(242, 74, 0, 0.5);
border-radius: 41rpx;
width: 60%;
padding: 20rpx 0;
font-size: 30rpx;
color: #FFFFFF;
}
@@ -29,14 +29,19 @@ const _sfc_main = {
wayShow: false,
wayOption: [],
// 支付选项
height: "180rpx"
height: "180rpx",
isShowBalance: false
};
},
onLoad(options) {
const id = options.id;
this.id = id ? parseInt(id, 10) : 0;
this.getOrderInfo();
this.getWayOption();
const payOpen = options.payOpen;
if (payOpen && payOpen !== "null") {
this.getWayOption();
this.wayShow = payOpen;
}
},
methods: {
getValue: utils_enumUtils.getValue,
@@ -49,10 +54,25 @@ const _sfc_main = {
url: "/pages/mine_order/mine_order?type=" + this.orderInfo.status
});
},
wayShowFun(type) {
if (type) {
this.getWayOption();
}
this.wayShow = type;
},
async getWayOption() {
const result = await api_order.getSupportPay();
if (result && result.bizcode === 100) {
this.wayOption = result.data;
const data = result.data || [];
const amount = this.orderInfo.sumAmount;
let flag = data.some((item) => ["wechat", "alipay"].includes(item.type));
if (flag) {
this.isShowBalance = false;
} else {
const balanceFlag = data.some((item) => item.type === "balance" && item.balance < amount);
this.isShowBalance = balanceFlag;
}
this.wayOption = data;
}
},
// 查询订单详情
@@ -115,18 +135,18 @@ const _sfc_main = {
async appWxpay(alipay, orderId, orderNum) {
try {
const result = await utils_payUtils.appWxpayFun(alipay, orderId, orderNum);
common_vendor.index.__f__("log", "at pages/mine_order_info/mine_order_info.vue:307", "支付成功", result);
common_vendor.index.__f__("log", "at pages/mine_order_info/mine_order_info.vue:332", "支付成功", result);
} catch (error) {
common_vendor.index.__f__("error", "at pages/mine_order_info/mine_order_info.vue:310", "支付失败", error);
common_vendor.index.__f__("error", "at pages/mine_order_info/mine_order_info.vue:335", "支付失败", error);
}
},
// 支付宝支付
async zfbPay(alipay, orderId, orderNum) {
try {
const result = await utils_payUtils.zfbPayFun(alipay, orderId, orderNum);
common_vendor.index.__f__("log", "at pages/mine_order_info/mine_order_info.vue:318", "支付成功", result);
common_vendor.index.__f__("log", "at pages/mine_order_info/mine_order_info.vue:343", "支付成功", result);
} catch (error) {
common_vendor.index.__f__("error", "at pages/mine_order_info/mine_order_info.vue:321", "支付失败", error);
common_vendor.index.__f__("error", "at pages/mine_order_info/mine_order_info.vue:346", "支付失败", error);
}
},
/**
@@ -154,6 +174,14 @@ const _sfc_main = {
this.form.page = 1;
this.loadData();
}
},
/**
* 去充值
*/
goRechargeFun(item) {
common_vendor.index.navigateTo({
url: "/pages/mine_purse_recharge/mine_purse_recharge?category=balance&amount=" + item.balance + "&back=orderInfo&id=" + this.id
});
}
}
};
@@ -282,9 +310,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
height: "20",
bgColor: "#f1f6ff00"
}),
E: common_vendor.o(($event) => {
$data.wayShow = true;
})
E: common_vendor.o(($event) => $options.wayShowFun(true))
} : {}, {
F: [$options.ORDER_TYPE.UNPAID, $options.ORDER_TYPE.NOT_RECEIVE].includes($data.orderInfo.status)
}, [$options.ORDER_TYPE.UNPAID, $options.ORDER_TYPE.NOT_RECEIVE].includes($data.orderInfo.status) ? common_vendor.e({
@@ -308,7 +334,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
name: item.type,
activeColor: "#FF7C41"
}),
f: item.type
f: item.type === "balance" && $data.isShowBalance
}, item.type === "balance" && $data.isShowBalance ? {} : {}, {
g: item.id
});
}),
L: common_vendor.o(($event) => $data.wayForm.payway = $event),
File diff suppressed because one or more lines are too long
@@ -23,7 +23,7 @@
/* 水平间距 */
/* 垂直间距 */
.mine_order_info_warp.data-v-e943673c {
background-color: #F5F5F5;
background-color: #F5F5F5FF;
position: relative;
overflow-y: auto;
}
@@ -23,7 +23,7 @@
/* 水平间距 */
/* 垂直间距 */
.privacy_agreement_warp {
background-color: #F5F5F5;
background-color: #F5F5F5FF;
overflow: hidden;
}
.privacy_agreement_warp .privacy_agreement_content_warp {
@@ -23,7 +23,7 @@
/* 水平间距 */
/* 垂直间距 */
.user_agreement_warp.data-v-461f3671 {
background-color: #F5F5F5;
background-color: #F5F5F5FF;
overflow: hidden;
}
.user_agreement_warp .user_agreement_content_warp.data-v-461f3671 {
@@ -25,7 +25,7 @@
.purse_warp.data-v-00f7ce42 {
height: 100%;
overflow-y: hidden;
background-color: #F5F5F5;
background-color: #F5F5F5FF;
}
.purse_warp .purse_content_warp.data-v-00f7ce42 {
padding: 30rpx;
@@ -24,7 +24,7 @@
/* 垂直间距 */
.mine_purse_bonus_warp.data-v-f08a8d54 {
height: 100vh;
background-color: #F5F5F5;
background-color: #F5F5F5FF;
overflow: hidden;
}
.mine_purse_bonus_header.data-v-f08a8d54 {
@@ -23,7 +23,7 @@
/* 水平间距 */
/* 垂直间距 */
.mine_purse_bonus_waithdraw {
background-color: #F5F5F5;
background-color: #F5F5F5FF;
height: calc(100vh - 130rpx);
padding: 100rpx 30rpx 30rpx;
overflow: auto;
@@ -23,7 +23,7 @@
/* 水平间距 */
/* 垂直间距 */
.purse_bonus_withdraw_log.data-v-d522464c {
background-color: #F5F5F5;
background-color: #F5F5F5FF;
padding: 30rpx;
}
.purse_bonus_withdraw_log .log_item.data-v-d522464c {
@@ -16,7 +16,8 @@ const _sfc_main = {
// 支付当时
},
wayOption: [],
proAmount: 0
proAmount: 0,
leftPath: "/pages/mine_purse/mine_purse"
};
},
onLoad(option) {
@@ -28,6 +29,17 @@ const _sfc_main = {
if (amount && amount !== "null") {
this.proAmount = amount;
}
const back = option.back;
if (back && back !== "null") {
if (back === "submit") {
const id = option.id;
this.leftPath = "/pages/order_submit/order_submit?payOpen=true&ids=" + id;
}
if (back === "orderInfo") {
const id = option.id;
this.leftPath = "/pages/mine_order_info/mine_order_info?payOpen=true&id=" + id;
}
}
},
mounted() {
this.getWayOption();
@@ -56,12 +68,12 @@ const _sfc_main = {
});
return;
}
common_vendor.index.__f__("log", "at pages/mine_purse_recharge/mine_purse_recharge.vue:119", "params", params);
common_vendor.index.__f__("log", "at pages/mine_purse_recharge/mine_purse_recharge.vue:130", "params", params);
const result = await api_finance.recharge(params);
common_vendor.index.__f__("log", "at pages/mine_purse_recharge/mine_purse_recharge.vue:121", "result", result);
common_vendor.index.__f__("log", "at pages/mine_purse_recharge/mine_purse_recharge.vue:132", "result", result);
if (result && result.bizcode === 100) {
const item = result.data;
common_vendor.index.__f__("log", "at pages/mine_purse_recharge/mine_purse_recharge.vue:124", "item", item);
common_vendor.index.__f__("log", "at pages/mine_purse_recharge/mine_purse_recharge.vue:135", "item", item);
if (item.wechat && Object.keys(item.wechat).length !== 0) {
this.appWxpay(item.wechat, item.orderId, item.orderNum);
} else if (item.alipay && Object.keys(item.alipay).length !== 0 && item.alipay) {
@@ -78,18 +90,18 @@ const _sfc_main = {
async appWxpay(alipay, orderId, orderNum) {
try {
const result = await utils_payUtils.appWxpayFun(alipay, orderId, orderNum);
common_vendor.index.__f__("log", "at pages/mine_purse_recharge/mine_purse_recharge.vue:142", "支付成功", result);
common_vendor.index.__f__("log", "at pages/mine_purse_recharge/mine_purse_recharge.vue:153", "支付成功", result);
} catch (error) {
common_vendor.index.__f__("error", "at pages/mine_purse_recharge/mine_purse_recharge.vue:145", "支付失败", error);
common_vendor.index.__f__("error", "at pages/mine_purse_recharge/mine_purse_recharge.vue:156", "支付失败", error);
}
},
// 支付宝支付
async zfbPay(alipay, orderId, orderNum) {
try {
const result = await utils_payUtils.zfbPayFun(alipay, orderId, orderNum);
common_vendor.index.__f__("log", "at pages/mine_purse_recharge/mine_purse_recharge.vue:182", "支付成功", result);
common_vendor.index.__f__("log", "at pages/mine_purse_recharge/mine_purse_recharge.vue:193", "支付成功", result);
} catch (error) {
common_vendor.index.__f__("error", "at pages/mine_purse_recharge/mine_purse_recharge.vue:185", "支付失败", error);
common_vendor.index.__f__("error", "at pages/mine_purse_recharge/mine_purse_recharge.vue:196", "支付失败", error);
}
},
// 跳转到支付成功页面
@@ -112,9 +124,9 @@ const _sfc_main = {
status
};
const response = await api_payment.feedback(params);
common_vendor.index.__f__("log", "at pages/mine_purse_recharge/mine_purse_recharge.vue:228", "response", response);
common_vendor.index.__f__("log", "at pages/mine_purse_recharge/mine_purse_recharge.vue:239", "response", response);
if (response && response.bizcode !== 100) {
common_vendor.index.__f__("error", "at pages/mine_purse_recharge/mine_purse_recharge.vue:230", "反馈结果", response);
common_vendor.index.__f__("error", "at pages/mine_purse_recharge/mine_purse_recharge.vue:241", "反馈结果", response);
}
}
}
@@ -141,7 +153,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
a: common_vendor.p({
leftTitle: _ctx.$t("purse.recharge.title"),
["left-path-type"]: "navigateTo",
["left-path"]: "/pages/mine_purse/mine_purse"
["left-path"]: $data.leftPath
}),
b: common_vendor.p({
src: "/static/mine/recharge.png",
@@ -23,7 +23,7 @@
/* 水平间距 */
/* 垂直间距 */
.mine_setting.data-v-2a00f8ac {
background-color: #F5F5F5;
background-color: #F5F5F5FF;
height: calc(100% - 20rpx);
}
.mine_setting .mine_setting_content.data-v-2a00f8ac {
@@ -23,7 +23,7 @@
/* 水平间距 */
/* 垂直间距 */
.user_agreement_warp.data-v-213482f1 {
background-color: #F5F5F5;
background-color: #F5F5F5FF;
overflow: hidden;
}
.user_agreement_warp .user_agreement_content_warp.data-v-213482f1 {
+188
View File
@@ -0,0 +1,188 @@
"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_news = require("../../api/news.js");
const utils_index = require("../../utils/index.js");
const Header = () => "../../components/header.js";
const _sfc_main = {
components: { Header },
data() {
return {
titleList: utils_enumUtils.NEWS_TYPE,
swiperList: [],
currentNum: 0,
form: {
keywork: null,
type: 1,
page: 1,
pageSize: 15
},
inputCss: {
"height": "68rpx",
"background": "#FFFFFF",
"border-radius": "16rpx",
"border": "0rpx",
"padding": "0 0 0 16px"
},
newsList: [],
newsListTotal: 0,
loading: false
};
},
onLoad(option) {
this.getCarouselImage();
this.loadData();
},
methods: {
formatDate: utils_index.formatDate,
// 查询轮播图
async getCarouselImage() {
const params = {
pageUi: utils_enumUtils.APP_PAGE_TYPE.NEWS
};
const resp = await api_common.getCarouselImage(params);
if (resp && resp.bizcode === 100) {
const data = resp.data || [];
this.swiperList = data.length !== 0 ? data.map((obj) => obj.carouselImage) : [];
}
},
headerClick(item) {
this.form.type = item.key;
this.searchTap();
},
// 搜索
searchTap() {
this.newsList = [];
this.form.page = 1;
this.loadData();
},
// 加载数据的方法
async loadData() {
if (this.loading)
return;
this.loading = true;
try {
const newData = await this.fetchData(this.form.page, this.form.pageSize);
if (newData.entitys && newData.entitys.length !== 0) {
this.newsList = [...this.newsList, ...newData.entitys];
this.form.page++;
}
} catch (error) {
common_vendor.index.__f__("error", "at pages/news/news.vue:147", "加载数据失败:", error);
} finally {
this.loading = false;
}
},
// 模拟获取数据的方法,实际应用中应该替换为你的数据获取逻辑,例如从服务器获取数据
async fetchData(page, pageSize) {
const form = this.form;
const params = {
page,
pageSize,
type: form.type
};
if (form.keywork) {
params.keywork = form.keywork;
}
const data = await api_news.getNewsList(params);
if (data && data.bizcode === 100 && data.data) {
return data.data;
} else {
return [];
}
},
// 当滚动到底部时触发的方法
loadMore() {
this.loadData();
},
/**
* 跳转到详情
* @param {Object} item
*/
jumpInfo(item) {
common_vendor.index.navigateTo({
url: "/pages/news_info/news_info?id=" + item.id
});
}
}
};
if (!Array) {
const _component_Header = common_vendor.resolveComponent("Header");
const _easycom_up_swiper2 = common_vendor.resolveComponent("up-swiper");
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
(_component_Header + _easycom_up_swiper2 + _easycom_up_input2 + _easycom_up_image2)();
}
const _easycom_up_swiper = () => "../../uni_modules/uview-plus/components/u-swiper/u-swiper.js";
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_swiper + _easycom_up_input + _easycom_up_image)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: common_vendor.p({
leftTitle: "商学院",
["left-path-type"]: "switchTab",
["left-path"]: "/pages/mine/mine"
}),
b: common_vendor.f($data.titleList, (item, k0, i0) => {
return {
a: common_vendor.t(item.value),
b: item.key,
c: common_vendor.n($data.form.type === item.key ? "heder_item_sel heder_item" : "heder_item"),
d: common_vendor.o(($event) => $options.headerClick(item), item.key)
};
}),
c: common_vendor.t($data.currentNum + 1),
d: common_vendor.t($data.swiperList.length),
e: common_vendor.o((e) => $data.currentNum = e.current),
f: common_vendor.p({
list: $data.swiperList,
height: "120",
radius: "10",
bgColor: "#ffffff00"
}),
g: common_vendor.o((...args) => $options.searchTap && $options.searchTap(...args)),
h: common_vendor.o(($event) => $data.form.keywork = $event),
i: common_vendor.p({
placeholder: "搜索关键字",
prefixIcon: "search",
prefixIconStyle: "font-size: 22px;color: #909399",
customStyle: $data.inputCss,
modelValue: $data.form.keywork
}),
j: $data.newsList && $data.newsList.length !== 0
}, $data.newsList && $data.newsList.length !== 0 ? {
k: common_vendor.f($data.newsList, (item, k0, i0) => {
return {
a: common_vendor.t(item.title),
b: item.content,
c: common_vendor.t($options.formatDate(item.ctdate)),
d: "24bc9d41-3-" + i0,
e: common_vendor.t(item.browses),
f: item.id,
g: common_vendor.o(($event) => $options.jumpInfo(item), item.id)
};
}),
l: common_vendor.p({
src: "/static/login/show.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
})
} : {
m: common_vendor.p({
src: "/static/common/not_order.png",
width: "80",
height: "80",
bgColor: "#f1f6ff00"
})
}, {
n: common_vendor.o((...args) => $options.loadMore && $options.loadMore(...args))
});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-24bc9d41"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/news/news.js.map
+9
View File
@@ -0,0 +1,9 @@
{
"navigationBarTitleText": "",
"usingComponents": {
"header": "../../components/header",
"up-swiper": "../../uni_modules/uview-plus/components/u-swiper/u-swiper",
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image"
}
}
+1
View File
@@ -0,0 +1 @@
<view class="news_warp data-v-24bc9d41"><header wx:if="{{a}}" class="data-v-24bc9d41" style="background-color:#FFFFFF" u-i="24bc9d41-0" bind:__l="__l" u-p="{{a}}"/><view class="news_content_warp data-v-24bc9d41"><view class="heder_ data-v-24bc9d41"><view wx:for="{{b}}" wx:for-item="item" wx:key="b" class="{{['data-v-24bc9d41', item.c]}}" bindtap="{{item.d}}">{{item.a}}</view></view><view class="data-v-24bc9d41" style="padding:20rpx 0"><up-swiper wx:if="{{f}}" class="data-v-24bc9d41" u-s="{{['indicator']}}" bindchange="{{e}}" u-i="24bc9d41-1" bind:__l="__l" u-p="{{f}}"><view class="indicator-num data-v-24bc9d41" slot="indicator"><text class="indicator-num__text data-v-24bc9d41">{{c}}/{{d}}</text></view></up-swiper></view></view><view class="content_ data-v-24bc9d41"><scroll-view class="data-v-24bc9d41" scroll-y="true" bindscrolltolower="{{n}}" style="height:calc(100vh - 560rpx)"><up-input wx:if="{{i}}" class="data-v-24bc9d41" u-s="{{['suffix']}}" u-i="24bc9d41-2" bind:__l="__l" bindupdateModelValue="{{h}}" u-p="{{i}}"><view bindtap="{{g}}" class="search_but data-v-24bc9d41" slot="suffix"> 搜索 </view></up-input><block wx:if="{{j}}"><view wx:for="{{k}}" wx:for-item="item" wx:key="f" class="news_content_item data-v-24bc9d41" bindtap="{{item.g}}"><view class="news_content_item_title data-v-24bc9d41">{{item.a}}</view><view class="news_content_item_content data-v-24bc9d41"><rich-text class="data-v-24bc9d41" nodes="{{item.b}}"/></view><view class="news_content_item_info data-v-24bc9d41"><view class="data-v-24bc9d41">{{item.c}}</view><view class="browses_ data-v-24bc9d41"><view class="data-v-24bc9d41"><up-image wx:if="{{l}}" class="data-v-24bc9d41" u-i="{{item.d}}" bind:__l="__l" u-p="{{l}}"></up-image></view><view class="data-v-24bc9d41" style="margin-left:8rpx">{{item.e}}</view></view></view></view></block><view wx:else class="not_order_warp data-v-24bc9d41"><up-image wx:if="{{m}}" class="data-v-24bc9d41" u-i="24bc9d41-4" bind:__l="__l" u-p="{{m}}"></up-image><view class="not_order_msg_warp data-v-24bc9d41">还未发布新闻哦~</view></view></scroll-view></view></view>
+89
View File
@@ -0,0 +1,89 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/* uni.scss */
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
.news_warp.data-v-24bc9d41 {
overflow: hidden;
}
.news_warp .news_content_warp.data-v-24bc9d41 {
padding: 0 30rpx 30rpx;
}
.news_warp .heder_.data-v-24bc9d41 {
display: flex;
align-items: center;
}
.news_warp .heder_ .heder_item.data-v-24bc9d41 {
font-weight: 500;
font-size: 32rpx;
color: #666666;
margin-right: 30rpx;
}
.news_warp .heder_ .heder_item_sel.data-v-24bc9d41 {
font-weight: bold;
font-size: 36rpx;
color: #000000;
}
.news_warp .content_.data-v-24bc9d41 {
padding: 30rpx;
background: #F5F5F5FF;
border-radius: 30rpx 30rpx 0rpx 0rpx;
}
.news_warp .content_ .search_but.data-v-24bc9d41 {
line-height: 68rpx;
background: #FF7C41;
border-radius: 16rpx;
font-size: 24rpx;
color: #FFFFFF;
padding: 0 40rpx;
}
.news_warp .content_ .news_content_item.data-v-24bc9d41 {
background: #FFFFFF;
padding: 30rpx;
margin-top: 20rpx;
}
.news_warp .content_ .news_content_item_title.data-v-24bc9d41 {
font-weight: 800;
font-size: 36rpx;
color: #000000;
}
.news_warp .content_ .news_content_item_content.data-v-24bc9d41 {
font-weight: 500;
font-size: 24rpx;
color: #666666;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
margin-top: 10rpx;
}
.news_warp .content_ .news_content_item_info.data-v-24bc9d41 {
margin-top: 30rpx;
display: flex;
justify-content: space-between;
font-weight: 500;
font-size: 28rpx;
color: #666666;
}
.news_warp .content_ .news_content_item_info .browses_.data-v-24bc9d41 {
display: flex;
}
@@ -0,0 +1,73 @@
"use strict";
const api_news = require("../../api/news.js");
const utils_index = require("../../utils/index.js");
const common_vendor = require("../../common/vendor.js");
const Header = () => "../../components/header.js";
const _sfc_main = {
components: { Header },
data() {
return {
id: 0,
newsDetail: {}
};
},
onLoad(option) {
const id = option.id;
if (id && id !== "null") {
this.id = id;
this.fetchData();
}
},
methods: {
formatDate: utils_index.formatDate,
async fetchData() {
const id = this.id;
const params = {
id
};
const resp = await api_news.getNewsDetail(params);
if (resp && resp.bizcode === 100) {
this.newsDetail = resp.data || {};
}
}
}
};
if (!Array) {
const _component_Header = common_vendor.resolveComponent("Header");
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
(_component_Header + _easycom_up_image2)();
}
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
if (!Math) {
_easycom_up_image();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.p({
leftTitle: "",
["left-path-type"]: "navigateTo",
["left-path"]: "/pages/news/news"
}),
b: common_vendor.t($data.newsDetail.title),
c: common_vendor.p({
src: $data.newsDetail.avatar_url,
width: "40",
height: "40",
bgColor: "#f1f6ff00",
shape: "circle"
}),
d: common_vendor.t($data.newsDetail.name),
e: common_vendor.t($options.formatDate($data.newsDetail.ctdate)),
f: common_vendor.p({
src: "/static/login/show.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
}),
g: common_vendor.t($data.newsDetail.browses),
h: $data.newsDetail.content
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-5b602ca5"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/news_info/news_info.js.map
@@ -0,0 +1,7 @@
{
"navigationBarTitleText": "",
"usingComponents": {
"header": "../../components/header",
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image"
}
}
@@ -0,0 +1 @@
<view class="news_info_warp data-v-5b602ca5"><header wx:if="{{a}}" class="data-v-5b602ca5" style="background-color:#FFFFFF" u-i="5b602ca5-0" bind:__l="__l" u-p="{{a}}"/><view class="news_info_header_warp data-v-5b602ca5"><view class="title_ data-v-5b602ca5">{{b}}</view><view class="avatar_ data-v-5b602ca5"><view class="data-v-5b602ca5"><up-image wx:if="{{c}}" class="data-v-5b602ca5" u-i="5b602ca5-1" bind:__l="__l" u-p="{{c}}"></up-image></view><view class="data-v-5b602ca5" style="margin-left:12rpx">{{d}}</view></view><view class="time_ data-v-5b602ca5"><view class="data-v-5b602ca5">{{e}}</view><view class="browses_ data-v-5b602ca5"><view class="data-v-5b602ca5"><up-image wx:if="{{f}}" class="data-v-5b602ca5" u-i="5b602ca5-2" bind:__l="__l" u-p="{{f}}"></up-image></view><view class="data-v-5b602ca5" style="margin-left:8rpx">{{g}}</view></view></view></view><view class="news_info_fg_warp data-v-5b602ca5"></view><view class="news_info_content_warp data-v-5b602ca5"><rich-text class="data-v-5b602ca5" nodes="{{h}}"/></view></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 */
/* 水平间距 */
/* 垂直间距 */
.news_info_warp.data-v-5b602ca5 {
overflow: hidden;
}
.news_info_header_warp.data-v-5b602ca5 {
padding: 30rpx;
}
.news_info_header_warp .title_.data-v-5b602ca5 {
font-weight: bold;
font-size: 32rpx;
color: #333333;
}
.news_info_header_warp .avatar_.data-v-5b602ca5 {
display: flex;
align-items: center;
margin-top: 20rpx;
}
.news_info_header_warp .time_.data-v-5b602ca5 {
display: flex;
justify-content: space-between;
font-weight: 500;
font-size: 28rpx;
color: #666666;
margin-top: 10rpx;
}
.news_info_header_warp .time_ .browses_.data-v-5b602ca5 {
display: flex;
}
.news_info_fg_warp.data-v-5b602ca5 {
height: 10rpx;
background-color: #F5F5F5FF;
width: 100%;
}
.news_info_content_warp.data-v-5b602ca5 {
padding: 30rpx;
height: calc(100vh - 524rpx);
overflow: auto;
font-size: 28rpx;
color: #333333;
}
@@ -41,14 +41,12 @@ const _sfc_main = {
// 收件地址数据类型
selectAddress: {},
// 收件地址选择
wayOption: []
// leftPath:'',
// leftPathType:'',
wayOption: [],
isShowBalance: false
};
},
onLoad(option) {
const ids = option.ids;
common_vendor.index.__f__("log", "at pages/order_submit/order_submit.vue:202", "ids", ids);
if (ids && ids !== "null") {
this.ids = ids;
this.getOrder();
@@ -57,9 +55,13 @@ const _sfc_main = {
if (addressShow && addressShow !== "null") {
this.addressShow = addressShow;
}
const payOpen = option.payOpen;
if (payOpen && payOpen !== "null") {
this.getWayOption();
this.wayShow = payOpen;
}
},
mounted() {
this.getWayOption();
},
methods: {
getValue: utils_enumUtils.getValue,
@@ -71,10 +73,25 @@ const _sfc_main = {
url: "/pages/mine_address_add/mine_address_add?ids=" + ids
});
},
wayShowFun(type) {
if (type) {
this.getWayOption();
}
this.wayShow = type;
},
async getWayOption() {
const result = await api_order.getSupportPay();
if (result && result.bizcode === 100) {
this.wayOption = result.data;
const data = result.data || [];
const amount = this.orderInfo.amount;
let flag = data.some((item) => ["wechat", "alipay"].includes(item.type));
if (flag) {
this.isShowBalance = false;
} else {
const balanceFlag = data.some((item) => item.type === "balance" && item.balance < amount);
this.isShowBalance = balanceFlag;
}
this.wayOption = data;
}
},
async getOrder() {
@@ -202,7 +219,7 @@ const _sfc_main = {
remark: JSON.stringify(this.getRemark())
//备注信息'[{"sid":"店铺ID","rmk":"备注内容"},{"sid":"店铺ID","rmk":"备注内容"}]'
};
common_vendor.index.__f__("log", "at pages/order_submit/order_submit.vue:366", "params", params);
common_vendor.index.__f__("log", "at pages/order_submit/order_submit.vue:381", "params", params);
const resp = await api_cart.settle(params);
if (resp && resp.bizcode === 100) {
const item = resp.data;
@@ -231,18 +248,18 @@ const _sfc_main = {
async appWxpay(alipay, orderId, orderNum) {
try {
const result = await utils_payUtils.appWxpayFun(alipay, orderId, orderNum);
common_vendor.index.__f__("log", "at pages/order_submit/order_submit.vue:396", "支付成功", result);
common_vendor.index.__f__("log", "at pages/order_submit/order_submit.vue:411", "支付成功", result);
} catch (error) {
common_vendor.index.__f__("error", "at pages/order_submit/order_submit.vue:399", "支付失败", error);
common_vendor.index.__f__("error", "at pages/order_submit/order_submit.vue:414", "支付失败", error);
}
},
// 支付宝支付
async zfbPay(alipay, orderId, orderNum) {
try {
const result = await utils_payUtils.zfbPayFun(alipay, orderId, orderNum);
common_vendor.index.__f__("log", "at pages/order_submit/order_submit.vue:407", "支付成功", result);
common_vendor.index.__f__("log", "at pages/order_submit/order_submit.vue:422", "支付成功", result);
} catch (error) {
common_vendor.index.__f__("error", "at pages/order_submit/order_submit.vue:410", "支付失败", error);
common_vendor.index.__f__("error", "at pages/order_submit/order_submit.vue:425", "支付失败", error);
}
},
// 地址选中
@@ -271,10 +288,17 @@ const _sfc_main = {
this.shopsIndex = index;
},
jumpProductInfo(item) {
common_vendor.index.__f__("log", "at pages/order_submit/order_submit.vue:440", "item", item);
common_vendor.index.navigateTo({
url: "/pages/productInfo/productInfo?id=" + item.goodsId
});
},
/**
* 去充值
*/
goRechargeFun(item) {
common_vendor.index.navigateTo({
url: "/pages/mine_purse_recharge/mine_purse_recharge?category=balance&amount=" + item.balance + "&back=submit&id=" + this.ids
});
}
}
};
@@ -401,9 +425,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
height: "20",
bgColor: "#f1f6ff00"
}),
o: common_vendor.o(($event) => {
$data.wayShow = true;
}),
o: common_vendor.o(($event) => $options.wayShowFun(true)),
p: common_vendor.t($data.orderInfo.amount),
q: common_vendor.o((...args) => $options.goPay && $options.goPay(...args)),
r: common_vendor.f($data.wayOption, (item, k0, i0) => {
@@ -413,12 +435,19 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
}, item.balance ? {
c: common_vendor.t(item.balance)
} : {}, {
d: "dc7219ba-10-" + i0 + ",dc7219ba-9",
e: common_vendor.p({
d: item.type === "balance" && $data.isShowBalance
}, item.type === "balance" && $data.isShowBalance ? {
e: common_vendor.o(($event) => $options.goRechargeFun(item), item.id)
} : {
f: "dc7219ba-10-" + i0 + ",dc7219ba-9",
g: common_vendor.p({
name: item.type,
activeColor: "#FF7C41"
}),
f: item.id
activeColor: "#03AD27"
})
}, {
h: item.type === "balance" && $data.isShowBalance
}, item.type === "balance" && $data.isShowBalance ? {} : {}, {
i: item.id
});
}),
s: common_vendor.o(($event) => $data.orderInfo.paymentMethod = $event),
File diff suppressed because one or more lines are too long
@@ -23,7 +23,7 @@
/* 水平间距 */
/* 垂直间距 */
.order_submit_warp.data-v-dc7219ba {
background-color: #F5F5F5;
background-color: #F5F5F5FF;
height: calc(100vh - 200rpx);
padding: 20rpx;
overflow-y: auto;
@@ -0,0 +1,138 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_product = require("../../api/product.js");
const utils_enumUtils = require("../../utils/enumUtils.js");
const api_common = require("../../api/common.js");
const _sfc_main = {
data() {
return {
swiperList: [],
productList: [],
productListLoading: false
};
},
onLoad() {
this.getSearchList();
this.getCarouselImage();
},
methods: {
// 查询轮播图
async getCarouselImage() {
const params = {
pageUi: utils_enumUtils.APP_PAGE_TYPE.INTEGRAL
};
const resp = await api_common.getCarouselImage(params);
if (resp && resp.bizcode === 100) {
const data = resp.data || [];
this.swiperList = data.length !== 0 ? data.map((obj) => obj.carouselImage) : [];
}
},
jumpHome() {
common_vendor.index.switchTab({
url: "/pages/home/home"
});
},
// 邀请好友
jumpInviteFriends() {
common_vendor.index.navigateTo({
url: "/pages/invite_friends/invite_friends"
});
},
async getSearchList() {
this.productListLoading = true;
const params = {
type: utils_enumUtils.SEARCH_TYPE.EXPLOSIVE,
page: 1,
pageSize: 99
};
const resp = await api_product.searchList(params);
if (resp && resp.bizcode === 100) {
const data = resp.data || [];
if (data && data.length !== 0) {
data.map((item) => {
const priceN = item.price.split("-");
item.priceN = priceN[0];
});
}
this.productList = data;
}
this.productListLoading = false;
},
/**
* 跳转到商品详情
* @param {Object} item
*/
jumpInfo(item) {
common_vendor.index.navigateTo({
url: "/pages/productInfo/productInfo?id=" + item.id
});
}
}
};
if (!Array) {
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
const _easycom_up_swiper2 = common_vendor.resolveComponent("up-swiper");
const _easycom_up_loading_page2 = common_vendor.resolveComponent("up-loading-page");
(_easycom_up_image2 + _easycom_up_swiper2 + _easycom_up_loading_page2)();
}
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
const _easycom_up_swiper = () => "../../uni_modules/uview-plus/components/u-swiper/u-swiper.js";
const _easycom_up_loading_page = () => "../../uni_modules/uview-plus/components/u-loading-page/u-loading-page.js";
if (!Math) {
(_easycom_up_image + _easycom_up_swiper + _easycom_up_loading_page)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.o($options.jumpHome),
b: common_vendor.p({
src: "/static/common/left.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
}),
c: common_vendor.o($options.jumpInviteFriends),
d: common_vendor.p({
src: "/static/common/share.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
}),
e: common_vendor.p({
list: $data.swiperList,
height: "140"
}),
f: common_vendor.p({
src: "/static/product/bk_l.png",
width: "60",
height: "2",
bgColor: "#f1f6ff00"
}),
g: common_vendor.p({
src: "/static/product/bk_r.png",
width: "60",
height: "2",
bgColor: "#f1f6ff00"
}),
h: common_vendor.p({
loading: $data.productListLoading
}),
i: common_vendor.f($data.productList, (item, index, i0) => {
return {
a: "8f611226-6-" + i0,
b: common_vendor.p({
src: item.url,
width: "100",
height: "100",
bgColor: "#f1f6ff00"
}),
c: common_vendor.t(item.title),
d: common_vendor.t(item.adPrice),
e: index,
f: common_vendor.o(($event) => $options.jumpInfo(item), index)
};
})
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-8f611226"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/pointsRedemption/pointsRedemption.js.map
@@ -0,0 +1,8 @@
{
"navigationBarTitleText": "",
"usingComponents": {
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
"up-swiper": "../../uni_modules/uview-plus/components/u-swiper/u-swiper",
"up-loading-page": "../../uni_modules/uview-plus/components/u-loading-page/u-loading-page"
}
}
@@ -0,0 +1 @@
<view class="preference_warp data-v-8f611226"><view class="header_comm data-v-8f611226"><up-image wx:if="{{b}}" class="data-v-8f611226" bindclick="{{a}}" u-i="8f611226-0" bind:__l="__l" u-p="{{b}}"></up-image><view class="data-v-8f611226">积分兑换专区</view><up-image wx:if="{{d}}" class="data-v-8f611226" bindclick="{{c}}" u-i="8f611226-1" bind:__l="__l" u-p="{{d}}"></up-image></view><view class="preference_content_warp data-v-8f611226"><up-swiper wx:if="{{e}}" class="data-v-8f611226" u-i="8f611226-2" bind:__l="__l" u-p="{{e}}"></up-swiper><view class="preference_title data-v-8f611226"><up-image wx:if="{{f}}" class="data-v-8f611226" u-i="8f611226-3" bind:__l="__l" u-p="{{f}}"></up-image><view class="msg data-v-8f611226">德商汇积分</view><up-image wx:if="{{g}}" class="data-v-8f611226" u-i="8f611226-4" bind:__l="__l" u-p="{{g}}"></up-image></view><view class="preference_product data-v-8f611226"><up-loading-page wx:if="{{h}}" class="data-v-8f611226" u-i="8f611226-5" bind:__l="__l" u-p="{{h}}"></up-loading-page><view wx:for="{{i}}" wx:for-item="item" wx:key="e" class="product_item data-v-8f611226" bindtap="{{item.f}}"><view class="product_item_left data-v-8f611226"><up-image wx:if="{{item.b}}" class="data-v-8f611226" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image><view class="product_item_left_bz product_item_left_bz_img data-v-8f611226"><view class="data-v-8f611226">爆款专区</view></view></view><view class="product_item_right data-v-8f611226"><view class="title_warp data-v-8f611226">{{item.c}}</view><view class="price_warp data-v-8f611226"><view class="price_jf_warp data-v-8f611226">{{item.d}} <text class="data-v-8f611226" style="font-size:18rpx">积分</text></view><view class="price_dh_but data-v-8f611226"> 立即兑换 </view></view></view></view></view></view></view>
File diff suppressed because one or more lines are too long
+14 -3
View File
@@ -2,20 +2,31 @@
const common_vendor = require("../../common/vendor.js");
const api_product = require("../../api/product.js");
const utils_enumUtils = require("../../utils/enumUtils.js");
const api_common = require("../../api/common.js");
const _sfc_main = {
data() {
return {
swiperList: [
"/static/home/banner03.png"
],
swiperList: [],
productList: [],
productListLoading: false
};
},
onLoad() {
this.getSearchList();
this.getCarouselImage();
},
methods: {
// 查询轮播图
async getCarouselImage() {
const params = {
pageUi: utils_enumUtils.APP_PAGE_TYPE.GOOD
};
const resp = await api_common.getCarouselImage(params);
if (resp && resp.bizcode === 100) {
const data = resp.data || [];
this.swiperList = data.length !== 0 ? data.map((obj) => obj.carouselImage) : [];
}
},
jumpHome() {
common_vendor.index.switchTab({
url: "/pages/home/home"
+41 -40
View File
@@ -253,83 +253,84 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
}, {
m: common_vendor.t($data.orderInfo.adPrice),
n: common_vendor.t($data.orderInfo.name),
o: common_vendor.t($data.selectSpecificationTempl.combTypes || "暂未选择规格"),
p: common_vendor.p({
o: common_vendor.t($data.orderInfo.sales),
p: common_vendor.t($data.selectSpecificationTempl.combTypes || "暂未选择规格"),
q: common_vendor.p({
src: "/static/common/right.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
}),
q: common_vendor.o(($event) => $options.checkSpecification(true)),
r: common_vendor.p({
r: common_vendor.o(($event) => $options.checkSpecification(true)),
s: common_vendor.p({
src: "/static/common/address2.png",
width: "10",
height: "10",
bgColor: "#f1f6ff00"
}),
s: common_vendor.t($options.getValue($options.PRODUCT_DELIVERY_TIME, $data.orderInfo.deliveryTime)),
t: common_vendor.p({
t: common_vendor.t($options.getValue($options.PRODUCT_DELIVERY_TIME, $data.orderInfo.deliveryTime)),
v: common_vendor.p({
src: "/static/product/product_b.png",
width: "10",
height: "12",
bgColor: "#f1f6ff00"
}),
v: common_vendor.p({
w: common_vendor.p({
src: "/static/product/product_js.png",
width: "10",
height: "10",
bgColor: "#f1f6ff00"
}),
w: $data.orderInfo.detailInfo,
x: common_vendor.o(($event) => $options.jumpOther("home")),
y: common_vendor.p({
x: $data.orderInfo.detailInfo,
y: common_vendor.o(($event) => $options.jumpOther("home")),
z: common_vendor.p({
src: "/static/product/home.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
}),
z: common_vendor.o(($event) => $options.jumpOther("share")),
A: common_vendor.p({
A: common_vendor.o(($event) => $options.jumpOther("share")),
B: common_vendor.p({
src: "/static/product/kefu.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
}),
B: common_vendor.o(($event) => $options.jumpOther("cart")),
C: common_vendor.p({
C: common_vendor.o(($event) => $options.jumpOther("cart")),
D: common_vendor.p({
src: "/static/product/cart.png",
width: "24",
height: "20",
bgColor: "#f1f6ff00"
}),
D: common_vendor.o(($event) => $options.checkSpecification(true, "addCart")),
E: common_vendor.o(($event) => $options.checkSpecification(true, "buy")),
F: common_vendor.p({
E: common_vendor.o(($event) => $options.checkSpecification(true, "addCart")),
F: common_vendor.o(($event) => $options.checkSpecification(true, "buy")),
G: common_vendor.p({
src: $data.orderInfo.mainGraph,
width: "100",
height: "100",
bgColor: "#f1f6ff00"
}),
G: $data.selectSpecificationTempl && Object.keys($data.selectSpecificationTempl).length !== 0
H: $data.selectSpecificationTempl && Object.keys($data.selectSpecificationTempl).length !== 0
}, $data.selectSpecificationTempl && Object.keys($data.selectSpecificationTempl).length !== 0 ? {
H: common_vendor.t($data.selectSpecificationTempl.price)
I: common_vendor.t($data.selectSpecificationTempl.price)
} : common_vendor.e({
I: common_vendor.t($data.orderInfo.minPrice),
J: $data.orderInfo.maxPrice
J: common_vendor.t($data.orderInfo.minPrice),
K: $data.orderInfo.maxPrice
}, $data.orderInfo.maxPrice ? {
K: common_vendor.t($data.orderInfo.maxPrice)
L: common_vendor.t($data.orderInfo.maxPrice)
} : {}), {
L: $data.orderInfo.couponPrice && $data.orderInfo.couponPrice !== 0
M: $data.orderInfo.couponPrice && $data.orderInfo.couponPrice !== 0
}, $data.orderInfo.couponPrice && $data.orderInfo.couponPrice !== 0 ? {
M: common_vendor.t($data.orderInfo.couponPrice)
N: common_vendor.t($data.orderInfo.couponPrice)
} : {}, {
N: common_vendor.t($data.orderInfo.adPrice),
O: $data.orderInfo.couponPrice && $data.orderInfo.couponPrice !== 0
O: common_vendor.t($data.orderInfo.adPrice),
P: $data.orderInfo.couponPrice && $data.orderInfo.couponPrice !== 0
}, $data.orderInfo.couponPrice && $data.orderInfo.couponPrice !== 0 ? {
P: common_vendor.t($data.orderInfo.couponPrice)
Q: common_vendor.t($data.orderInfo.couponPrice)
} : {}, {
Q: common_vendor.t($data.orderInfo.inventory || 0),
R: common_vendor.f($data.specificationList, (item, index, i0) => {
R: common_vendor.t($data.orderInfo.inventory || 0),
S: common_vendor.f($data.specificationList, (item, index, i0) => {
return {
a: common_vendor.t(item.type),
b: common_vendor.f(item.items, (oItem, oIndex, i1) => {
@@ -343,21 +344,21 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
c: item.id
};
}),
S: common_vendor.o(($event) => $options.quantityFun("minus")),
T: common_vendor.t($data.orderInfo.quantity),
U: common_vendor.o(($event) => $options.quantityFun("add")),
V: $data.specificationShowType === "buy"
T: common_vendor.o(($event) => $options.quantityFun("minus")),
U: common_vendor.t($data.orderInfo.quantity),
V: common_vendor.o(($event) => $options.quantityFun("add")),
W: $data.specificationShowType === "buy"
}, $data.specificationShowType === "buy" ? {
W: common_vendor.o(($event) => $options.addCart(true))
X: common_vendor.o(($event) => $options.addCart(true))
} : $data.specificationShowType === "addCart" ? {
Y: common_vendor.o(($event) => $options.addCart(false))
Z: common_vendor.o(($event) => $options.addCart(false))
} : {
Z: common_vendor.o(($event) => $options.addCart(false)),
aa: common_vendor.o(($event) => $options.addCart(true))
aa: common_vendor.o(($event) => $options.addCart(false)),
ab: common_vendor.o(($event) => $options.addCart(true))
}, {
X: $data.specificationShowType === "addCart",
ab: common_vendor.o(($event) => $data.specificationShow = false),
ac: common_vendor.p({
Y: $data.specificationShowType === "addCart",
ac: common_vendor.o(($event) => $data.specificationShow = false),
ad: common_vendor.p({
show: $data.specificationShow,
round: 10,
closeOnClickOverlay: false,
File diff suppressed because one or more lines are too long
@@ -24,7 +24,7 @@
/* 垂直间距 */
.product_info_warp.data-v-ceb0d096 {
height: calc(100vh - 196rpx);
background-color: #F5F5F5;
background-color: #F5F5F5FF;
}
.product_info_header_warp.data-v-ceb0d096 {
position: relative;
@@ -173,7 +173,7 @@
border-radius: 0rpx 16rpx 16rpx 0rpx;
}
.specification_warp.data-v-ceb0d096 {
background-color: #F5F5F5;
background-color: #F5F5F5FF;
}
.specification_warp .specification_adress_warp.data-v-ceb0d096 {
padding: 30rpx;
@@ -279,7 +279,7 @@
}
.specification_warp .specification_list_warp .item_Warp.data-v-ceb0d096 {
width: 48%;
background: #F5F5F5;
background: #F5F5F5FF;
border-radius: 10rpx;
color: #333333;
text-align: center;
+6 -4
View File
@@ -211,8 +211,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
}),
c: common_vendor.t(item.title),
d: common_vendor.t(item.adPrice),
e: item.id,
f: common_vendor.o(($event) => $options.jumpInfo(item), item.id)
e: common_vendor.t(item.sales),
f: item.id,
g: common_vendor.o(($event) => $options.jumpInfo(item), item.id)
};
})
} : {}, {
@@ -230,8 +231,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
}),
c: common_vendor.t(item.title),
d: common_vendor.t(item.adPrice),
e: item.id,
f: common_vendor.o(($event) => $options.jumpInfo(item), item.id)
e: common_vendor.t(item.sales),
f: item.id,
g: common_vendor.o(($event) => $options.jumpInfo(item), item.id)
};
})
} : {}) : {
+1 -1
View File
@@ -1 +1 @@
<view class="search_warp data-v-c10c040c"><view class="header_comm data-v-c10c040c"><up-image wx:if="{{b}}" class="data-v-c10c040c" bindclick="{{a}}" u-i="c10c040c-0" bind:__l="__l" u-p="{{b}}"></up-image><view class="data-v-c10c040c"><up-input wx:if="{{g}}" class="data-v-c10c040c" u-s="{{['prefix','suffix']}}" u-i="c10c040c-1" bind:__l="__l" bindupdateModelValue="{{f}}" u-p="{{g}}"><up-image class="data-v-c10c040c" bindclick="{{c}}" u-i="c10c040c-2,c10c040c-1" bind:__l="__l" u-p="{{d}}" slot="prefix"></up-image><view class="search_but_warp data-v-c10c040c" bindtap="{{e}}" slot="suffix">搜索</view></up-input></view></view><view wx:if="{{h}}" class="search_history data-v-c10c040c"><view class="search_history_title data-v-c10c040c"><view class="data-v-c10c040c">猜你喜欢</view><up-image wx:if="{{j}}" class="data-v-c10c040c" bindclick="{{i}}" u-i="c10c040c-3" bind:__l="__l" u-p="{{j}}"></up-image></view><view wx:if="{{k}}" class="search_history_cotent data-v-c10c040c"><view wx:for="{{l}}" wx:for-item="item" wx:key="e" class="data-v-c10c040c" style="margin:0 10rpx 10rpx 0"><up-tag wx:if="{{item.d}}" class="data-v-c10c040c" bindclose="{{item.a}}" bindclick="{{item.b}}" u-i="{{item.c}}" bind:__l="__l" u-p="{{item.d}}"></up-tag></view></view><view wx:else class="not_order_warp data-v-c10c040c"><view class="not_order_warp_img data-v-c10c040c"><up-image wx:if="{{m}}" class="data-v-c10c040c" u-i="c10c040c-5" bind:__l="__l" u-p="{{m}}"></up-image></view><view class="not_order_msg_warp data-v-c10c040c">暂无搜索记录</view></view></view><view wx:else class="poduct_list data-v-c10c040c"><view class="poduct_search_warp data-v-c10c040c"><view class="data-v-c10c040c">综合</view><view class="data-v-c10c040c">销量</view><view class="data-v-c10c040c">优惠卷</view><view class="data-v-c10c040c"><up-image wx:if="{{o}}" class="data-v-c10c040c" bindclick="{{n}}" u-i="c10c040c-6" bind:__l="__l" u-p="{{o}}"></up-image></view></view><view class="poduct_content_warp data-v-c10c040c"><view wx:if="{{p}}" class="data-v-c10c040c"><view wx:if="{{q}}" class="big_warp data-v-c10c040c"><view wx:for="{{r}}" wx:for-item="item" wx:key="e" class="big_item_warp data-v-c10c040c" bindtap="{{item.f}}"><up-image wx:if="{{item.b}}" class="data-v-c10c040c" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image><view class="big_item_content_warp data-v-c10c040c"><view class="title data-v-c10c040c">{{item.c}}</view><view class="total_or_quantity data-v-c10c040c"><view class="total_ data-v-c10c040c"><text class="data-v-c10c040c">¥</text><text class="data-v-c10c040c" style="font-size:36rpx">{{item.d}}</text></view><view class="data-v-c10c040c">已售9999件</view></view></view></view></view><view wx:if="{{s}}" class="min_warp data-v-c10c040c"><view wx:for="{{t}}" wx:for-item="item" wx:key="e" class="min_item_warp data-v-c10c040c" bindtap="{{item.f}}"><up-image wx:if="{{item.b}}" class="data-v-c10c040c" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image><view class="min_item_content_warp data-v-c10c040c"><view class="title data-v-c10c040c">{{item.c}}</view><view class="total_or_quantity data-v-c10c040c"><view class="total_ data-v-c10c040c"><text class="data-v-c10c040c">¥</text><text class="data-v-c10c040c" style="font-size:36rpx">{{item.d}}</text></view><view class="data-v-c10c040c">已售9999件</view></view></view></view></view></view><view wx:else class="not_order_warp data-v-c10c040c"><view class="not_order_warp_img data-v-c10c040c"><up-image wx:if="{{v}}" class="data-v-c10c040c" u-i="c10c040c-9" bind:__l="__l" u-p="{{v}}"></up-image></view><view class="not_order_msg_warp data-v-c10c040c">抱歉没有搜索此类商品~</view></view></view></view></view>
<view class="search_warp data-v-c10c040c"><view class="header_comm data-v-c10c040c"><up-image wx:if="{{b}}" class="data-v-c10c040c" bindclick="{{a}}" u-i="c10c040c-0" bind:__l="__l" u-p="{{b}}"></up-image><view class="data-v-c10c040c"><up-input wx:if="{{g}}" class="data-v-c10c040c" u-s="{{['prefix','suffix']}}" u-i="c10c040c-1" bind:__l="__l" bindupdateModelValue="{{f}}" u-p="{{g}}"><up-image class="data-v-c10c040c" bindclick="{{c}}" u-i="c10c040c-2,c10c040c-1" bind:__l="__l" u-p="{{d}}" slot="prefix"></up-image><view class="search_but_warp data-v-c10c040c" bindtap="{{e}}" slot="suffix">搜索</view></up-input></view></view><view wx:if="{{h}}" class="search_history data-v-c10c040c"><view class="search_history_title data-v-c10c040c"><view class="data-v-c10c040c">猜你喜欢</view><up-image wx:if="{{j}}" class="data-v-c10c040c" bindclick="{{i}}" u-i="c10c040c-3" bind:__l="__l" u-p="{{j}}"></up-image></view><view wx:if="{{k}}" class="search_history_cotent data-v-c10c040c"><view wx:for="{{l}}" wx:for-item="item" wx:key="e" class="data-v-c10c040c" style="margin:0 10rpx 10rpx 0"><up-tag wx:if="{{item.d}}" class="data-v-c10c040c" bindclose="{{item.a}}" bindclick="{{item.b}}" u-i="{{item.c}}" bind:__l="__l" u-p="{{item.d}}"></up-tag></view></view><view wx:else class="not_order_warp data-v-c10c040c"><view class="not_order_warp_img data-v-c10c040c"><up-image wx:if="{{m}}" class="data-v-c10c040c" u-i="c10c040c-5" bind:__l="__l" u-p="{{m}}"></up-image></view><view class="not_order_msg_warp data-v-c10c040c">暂无搜索记录</view></view></view><view wx:else class="poduct_list data-v-c10c040c"><view class="poduct_search_warp data-v-c10c040c"><view class="data-v-c10c040c">综合</view><view class="data-v-c10c040c">销量</view><view class="data-v-c10c040c">优惠卷</view><view class="data-v-c10c040c"><up-image wx:if="{{o}}" class="data-v-c10c040c" bindclick="{{n}}" u-i="c10c040c-6" bind:__l="__l" u-p="{{o}}"></up-image></view></view><view class="poduct_content_warp data-v-c10c040c"><view wx:if="{{p}}" class="data-v-c10c040c"><view wx:if="{{q}}" class="big_warp data-v-c10c040c"><view wx:for="{{r}}" wx:for-item="item" wx:key="f" class="big_item_warp data-v-c10c040c" bindtap="{{item.g}}"><up-image wx:if="{{item.b}}" class="data-v-c10c040c" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image><view class="big_item_content_warp data-v-c10c040c"><view class="title data-v-c10c040c">{{item.c}}</view><view class="total_or_quantity data-v-c10c040c"><view class="total_ data-v-c10c040c"><text class="data-v-c10c040c">¥</text><text class="data-v-c10c040c" style="font-size:36rpx">{{item.d}}</text></view><view class="data-v-c10c040c">已售{{item.e}}件</view></view></view></view></view><view wx:if="{{s}}" class="min_warp data-v-c10c040c"><view wx:for="{{t}}" wx:for-item="item" wx:key="f" class="min_item_warp data-v-c10c040c" bindtap="{{item.g}}"><up-image wx:if="{{item.b}}" class="data-v-c10c040c" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image><view class="min_item_content_warp data-v-c10c040c"><view class="title data-v-c10c040c">{{item.c}}</view><view class="total_or_quantity data-v-c10c040c"><view class="total_ data-v-c10c040c"><text class="data-v-c10c040c">¥</text><text class="data-v-c10c040c" style="font-size:36rpx">{{item.d}}</text></view><view class="data-v-c10c040c">已售{{item.e}}件</view></view></view></view></view></view><view wx:else class="not_order_warp data-v-c10c040c"><view class="not_order_warp_img data-v-c10c040c"><up-image wx:if="{{v}}" class="data-v-c10c040c" u-i="c10c040c-9" bind:__l="__l" u-p="{{v}}"></up-image></view><view class="not_order_msg_warp data-v-c10c040c">抱歉没有搜索此类商品~</view></view></view></view></view>
+1 -1
View File
@@ -23,7 +23,7 @@
/* 水平间距 */
/* 垂直间距 */
.search_warp.data-v-c10c040c {
background-color: #F5F5F5;
background-color: #F5F5F5FF;
height: 100vh;
overflow-y: hidden;
}
@@ -23,7 +23,7 @@
/* 水平间距 */
/* 垂直间距 */
.shopping_cart_warp.data-v-7cc1684a {
background-color: #F5F5F5;
background-color: #F5F5F5FF;
padding: 104rpx 30rpx 30rpx;
overflow: hidden;
}
+14 -7
View File
@@ -1,6 +1,7 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_common = require("../../api/common.js");
const utils_enumUtils = require("../../utils/enumUtils.js");
const CustomTabBar = () => "../../components/custom-tab-bar.js";
const _sfc_main = {
components: { CustomTabBar },
@@ -15,11 +16,7 @@ const _sfc_main = {
// 左边菜单的高度
menuItemHeight: 0,
// 左边菜单item的高度
bannerList: [
"/static/common/product_def_banner.png",
"/static/common/product_def_banner.png",
"/static/common/product_def_banner.png"
],
bannerList: [],
tabbarList: [],
// 左侧的主分类
tabbarContentList: [],
@@ -27,8 +24,6 @@ const _sfc_main = {
tabbarContentLoading: false
};
},
onShow() {
},
onShow() {
this.getSort(0).then((resp) => {
if (resp && resp.length !== 0) {
@@ -51,11 +46,23 @@ const _sfc_main = {
}
}
});
this.getCarouselImage();
},
methods: {
checkCategory(val) {
this.selCategory = val;
},
// 查询轮播图
async getCarouselImage() {
const params = {
pageUi: utils_enumUtils.APP_PAGE_TYPE.SORT
};
const resp = await api_common.getCarouselImage(params);
if (resp && resp.bizcode === 100) {
const data = resp.data || [];
this.bannerList = data.length !== 0 ? data.map((obj) => obj.carouselImage) : [];
}
},
jumpSearch(item) {
let path = "/pages/search/search";
if (item && Object.keys(item).length !== 0) {
+14 -3
View File
@@ -2,20 +2,31 @@
const common_vendor = require("../../common/vendor.js");
const api_product = require("../../api/product.js");
const utils_enumUtils = require("../../utils/enumUtils.js");
const api_common = require("../../api/common.js");
const _sfc_main = {
data() {
return {
swiperList: [
"/static/home/banner05.png"
],
swiperList: [],
productList: [],
productListLoading: false
};
},
onLoad() {
this.getSearchList();
this.getCarouselImage();
},
methods: {
// 查询轮播图
async getCarouselImage() {
const params = {
pageUi: utils_enumUtils.APP_PAGE_TYPE.HOT
};
const resp = await api_common.getCarouselImage(params);
if (resp && resp.bizcode === 100) {
const data = resp.data || [];
this.swiperList = data.length !== 0 ? data.map((obj) => obj.carouselImage) : [];
}
},
jumpHome() {
common_vendor.index.switchTab({
url: "/pages/home/home"