添加代码
@@ -56,6 +56,8 @@ if (!Math) {
|
||||
"./pages/news/news.js";
|
||||
"./pages/news_info/news_info.js";
|
||||
"./pages/pointsRedemption/pointsRedemption.js";
|
||||
"./pages/supply_chain/supply_chain.js";
|
||||
"./pages/merchant_settlement_ok/merchant_settlement_ok.js";
|
||||
}
|
||||
const _sfc_main = {
|
||||
onLaunch: function() {
|
||||
|
||||
@@ -51,7 +51,9 @@
|
||||
"pages/payment_processing/payment_processing",
|
||||
"pages/news/news",
|
||||
"pages/news_info/news_info",
|
||||
"pages/pointsRedemption/pointsRedemption"
|
||||
"pages/pointsRedemption/pointsRedemption",
|
||||
"pages/supply_chain/supply_chain",
|
||||
"pages/merchant_settlement_ok/merchant_settlement_ok"
|
||||
],
|
||||
"window": {
|
||||
"navigationStyle": "custom"
|
||||
@@ -71,6 +73,12 @@
|
||||
"iconPath": "/static/column/sort.png",
|
||||
"selectedIconPath": "/static/column/sort_sel.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/supply_chain/supply_chain",
|
||||
"text": "供应链",
|
||||
"iconPath": "/static/column/supply_chain.png",
|
||||
"selectedIconPath": "/static/column/supply_chain_sel.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/shopping_cart/shopping_cart",
|
||||
"text": "购物车",
|
||||
|
||||
@@ -6179,7 +6179,7 @@ function populateParameters(fromRes, toRes) {
|
||||
appId: "__UNI__DA4D660",
|
||||
appName: "德商汇",
|
||||
appVersion: "1.0.1",
|
||||
appVersionCode: 109,
|
||||
appVersionCode: 116,
|
||||
appLanguage: getAppLanguage(hostLanguage),
|
||||
uniCompileVersion: "4.64",
|
||||
uniCompilerVersion: "4.64",
|
||||
@@ -6328,7 +6328,7 @@ const getAppBaseInfo = {
|
||||
appId: "__UNI__DA4D660",
|
||||
appName: "德商汇",
|
||||
appVersion: "1.0.1",
|
||||
appVersionCode: 109,
|
||||
appVersionCode: 116,
|
||||
appLanguage: getAppLanguage(hostLanguage),
|
||||
isUniAppX: false,
|
||||
uniPlatform: "mp-weixin",
|
||||
@@ -7076,7 +7076,7 @@ function isConsoleWritable() {
|
||||
function initRuntimeSocketService() {
|
||||
const hosts = "192.168.1.150,127.0.0.1";
|
||||
const port = "8090";
|
||||
const id = "mp-weixin_fPtj-g";
|
||||
const id = "mp-weixin_q9Dx5k";
|
||||
const lazy = typeof swan !== "undefined";
|
||||
let restoreError = lazy ? () => {
|
||||
} : initOnError();
|
||||
|
||||
@@ -30,6 +30,12 @@ const _sfc_main = {
|
||||
// "iconPath": "/static/column/hx.png",
|
||||
// "selectedIconPath": "/static/column/hx_sel.png"
|
||||
// },
|
||||
{
|
||||
"pagePath": "/pages/supply_chain/supply_chain",
|
||||
"text": "供应链",
|
||||
"iconPath": "/static/column/supply_chain.png",
|
||||
"selectedIconPath": "/static/column/supply_chain_sel.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "/pages/shopping_cart/shopping_cart",
|
||||
"text": "购物车",
|
||||
|
||||
@@ -19,8 +19,12 @@ const _sfc_main = {
|
||||
// 银行卡号
|
||||
bankName: null,
|
||||
// 所属银行
|
||||
bankMobile: null
|
||||
bankMobile: null,
|
||||
// 银行预留手机号码
|
||||
certFimg: null,
|
||||
// 正面
|
||||
certBimg: null
|
||||
// 反面
|
||||
},
|
||||
formList: [
|
||||
{
|
||||
@@ -128,10 +132,17 @@ const _sfc_main = {
|
||||
message: "提交成功"
|
||||
});
|
||||
setTimeout(() => {
|
||||
common_vendor.index.switchTab({
|
||||
url: "/pages/mine/mine"
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/merchant_settlement_ok/merchant_settlement_ok"
|
||||
});
|
||||
}, 1e3);
|
||||
},
|
||||
getValue(type, value) {
|
||||
if (type === "Z") {
|
||||
this.form.certFimg = value;
|
||||
} else if (type === "F") {
|
||||
this.form.certBimg = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -157,7 +168,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
}),
|
||||
c: common_vendor.o(($event) => $data.form.address = $event),
|
||||
d: common_vendor.p({
|
||||
placeholder: "请输入店铺名称",
|
||||
placeholder: "请输入店铺地址",
|
||||
clearable: true,
|
||||
border: "none",
|
||||
modelValue: $data.form.address
|
||||
@@ -178,7 +189,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
f: item.id
|
||||
};
|
||||
}),
|
||||
f: common_vendor.f($data.bankList, (item, k0, i0) => {
|
||||
f: common_vendor.o($options.getValue),
|
||||
g: common_vendor.f($data.bankList, (item, k0, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.title),
|
||||
b: "2001dd84-4-" + i0,
|
||||
@@ -194,8 +206,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
f: item.id
|
||||
};
|
||||
}),
|
||||
g: common_vendor.o((...args) => $options.addFun && $options.addFun(...args)),
|
||||
h: common_vendor.sr("uToastRef", "2001dd84-5")
|
||||
h: common_vendor.o((...args) => $options.addFun && $options.addFun(...args)),
|
||||
i: common_vendor.sr("uToastRef", "2001dd84-5")
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-2001dd84"]]);
|
||||
|
||||
@@ -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><up-toast class="r data-v-2001dd84" u-r="uToastRef" u-i="2001dd84-5" bind:__l="__l"></up-toast></view>
|
||||
<view class="merchant_settlement_warp data-v-2001dd84"><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="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" bindvalueFunc="{{f}}" 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="{{g}}" 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="{{h}}"> 提交 </view><up-toast class="r data-v-2001dd84" u-r="uToastRef" u-i="2001dd84-5" bind:__l="__l"></up-toast></view>
|
||||
@@ -0,0 +1,57 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const Header = () => "../../components/header.js";
|
||||
const _sfc_main = {
|
||||
computed: {},
|
||||
components: { Header },
|
||||
data() {
|
||||
return {};
|
||||
},
|
||||
mounted() {
|
||||
},
|
||||
methods: {
|
||||
/**
|
||||
* 重新认证
|
||||
*/
|
||||
reauthenticationFun() {
|
||||
common_vendor.index.switchTab({
|
||||
url: "/pages/mine/mine"
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _component_Header = common_vendor.resolveComponent("Header");
|
||||
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
|
||||
const _easycom_up_toast2 = common_vendor.resolveComponent("up-toast");
|
||||
(_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_toast)();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.p({
|
||||
leftTitle: "商家入驻",
|
||||
["left-path-type"]: "switchTab",
|
||||
["left-path"]: "/pages/mine/mine"
|
||||
}),
|
||||
b: common_vendor.p({
|
||||
src: "/static/mine/auth_ok.png",
|
||||
mode: "widthFix",
|
||||
shape: "circle",
|
||||
width: "140",
|
||||
height: "140",
|
||||
bgColor: "#f1f6ff00",
|
||||
fade: true,
|
||||
duration: "450"
|
||||
}),
|
||||
c: common_vendor.o((...args) => $options.reauthenticationFun && $options.reauthenticationFun(...args)),
|
||||
d: common_vendor.sr("uToastRef", "b5e8742e-2")
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-b5e8742e"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/merchant_settlement_ok/merchant_settlement_ok.js.map
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"usingComponents": {
|
||||
"header": "../../components/header",
|
||||
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
|
||||
"up-toast": "../../uni_modules/uview-plus/components/u-toast/u-toast"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="authentication_ok_warp data-v-b5e8742e"><header wx:if="{{a}}" class="data-v-b5e8742e" u-i="b5e8742e-0" bind:__l="__l" u-p="{{a}}"/><view class="authentication_ok_content data-v-b5e8742e"><view class="authentication_result data-v-b5e8742e"><up-image wx:if="{{b}}" class="data-v-b5e8742e" u-i="b5e8742e-1" bind:__l="__l" u-p="{{b}}"></up-image><view class="result_value data-v-b5e8742e">提交成功</view></view><view class="reauthentication_warp data-v-b5e8742e"><view class="reauthentication_but_warp data-v-b5e8742e" bindtap="{{c}}"> 返回 </view></view></view><up-toast class="r data-v-b5e8742e" u-r="uToastRef" u-i="b5e8742e-2" bind:__l="__l"></up-toast></view>
|
||||
@@ -0,0 +1,79 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/* uni.scss */
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
.authentication_ok_warp.data-v-b5e8742e {
|
||||
height: 100vh;
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
.authentication_ok_warp .authentication_ok_content.data-v-b5e8742e {
|
||||
padding: 60rpx;
|
||||
}
|
||||
.authentication_ok_warp .authentication_result.data-v-b5e8742e {
|
||||
display: grid;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
margin-top: 100rpx;
|
||||
}
|
||||
.authentication_ok_warp .authentication_result .result_title.data-v-b5e8742e {
|
||||
font-weight: bold;
|
||||
font-size: 40rpx;
|
||||
color: #333333;
|
||||
}
|
||||
.authentication_ok_warp .authentication_result .result_value.data-v-b5e8742e {
|
||||
font-weight: bold;
|
||||
font-size: 30rpx;
|
||||
color: #666666;
|
||||
line-height: 80rpx;
|
||||
}
|
||||
.authentication_ok_warp .reauthentication_warp.data-v-b5e8742e {
|
||||
display: grid;
|
||||
justify-content: center;
|
||||
}
|
||||
.authentication_ok_warp .reauthentication_warp .reauthentication_but_warp.data-v-b5e8742e {
|
||||
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-b5e8742e {
|
||||
background: #F8F8F8;
|
||||
border-radius: 10rpx;
|
||||
padding: 30rpx;
|
||||
margin-top: 30rpx;
|
||||
}
|
||||
.authentication_ok_warp .info_item.data-v-b5e8742e {
|
||||
font-weight: 500;
|
||||
font-size: 28rpx;
|
||||
color: #666666;
|
||||
line-height: 66rpx;
|
||||
}
|
||||
.authentication_ok_warp .info_item_value.data-v-b5e8742e {
|
||||
font-weight: bold;
|
||||
font-size: 28rpx;
|
||||
color: #333333;
|
||||
}
|
||||
@@ -5,8 +5,14 @@ const utils_enumUtils = require("../../utils/enumUtils.js");
|
||||
const utils_index = require("../../utils/index.js");
|
||||
const api_order = require("../../api/order.js");
|
||||
const api_auth = require("../../api/auth.js");
|
||||
const utils_config = require("../../utils/config.js");
|
||||
const CustomTabBar = () => "../../components/custom-tab-bar.js";
|
||||
const _sfc_main = {
|
||||
computed: {
|
||||
CUSTOMER_SERVICE_PHONE_NUMBER() {
|
||||
return utils_config.CUSTOMER_SERVICE_PHONE_NUMBER;
|
||||
}
|
||||
},
|
||||
components: { CustomTabBar },
|
||||
data() {
|
||||
return {
|
||||
@@ -115,12 +121,12 @@ const _sfc_main = {
|
||||
// url:'/static/mine/tool_team.png',
|
||||
// path:"/pages/mine_my_team/mine_my_team",
|
||||
// },
|
||||
{
|
||||
id: 6,
|
||||
title: "卡券",
|
||||
url: "/static/mine/tool_kj.png"
|
||||
// path:"/pages/mine_coupon/mine_coupon",
|
||||
},
|
||||
// {
|
||||
// id:6,
|
||||
// title:"卡券",
|
||||
// url:'/static/mine/tool_kj.png',
|
||||
// // path:"/pages/mine_coupon/mine_coupon",
|
||||
// },
|
||||
{
|
||||
id: 7,
|
||||
title: "联系客服",
|
||||
@@ -237,6 +243,7 @@ const _sfc_main = {
|
||||
copyMobile(mobile) {
|
||||
utils_index.copyData(mobile);
|
||||
this.brandShow = false;
|
||||
this.serviceShow = false;
|
||||
},
|
||||
// 查询统计
|
||||
async getStatistics() {
|
||||
@@ -429,7 +436,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
};
|
||||
}),
|
||||
B: common_vendor.p({
|
||||
tabIndex: 3
|
||||
tabIndex: 4
|
||||
}),
|
||||
C: common_vendor.p({
|
||||
src: "/static/common/close.png",
|
||||
@@ -457,27 +464,28 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
I: common_vendor.o(($event) => {
|
||||
$data.serviceShow = false;
|
||||
}),
|
||||
J: common_vendor.o(($event) => $options.copyMobile("13888888888")),
|
||||
K: common_vendor.o(($event) => {
|
||||
J: common_vendor.t($options.CUSTOMER_SERVICE_PHONE_NUMBER),
|
||||
K: common_vendor.o(($event) => $options.copyMobile($options.CUSTOMER_SERVICE_PHONE_NUMBER)),
|
||||
L: common_vendor.o(($event) => {
|
||||
$data.serviceShow = false;
|
||||
}),
|
||||
L: common_vendor.p({
|
||||
M: common_vendor.p({
|
||||
show: $data.serviceShow,
|
||||
showConfirmButton: false
|
||||
}),
|
||||
M: common_vendor.p({
|
||||
N: common_vendor.p({
|
||||
src: "/static/common/close.png",
|
||||
width: "20",
|
||||
height: "20",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
N: common_vendor.o(($event) => {
|
||||
$data.openShow = false;
|
||||
}),
|
||||
O: common_vendor.o(($event) => {
|
||||
$data.openShow = false;
|
||||
}),
|
||||
P: common_vendor.p({
|
||||
P: common_vendor.o(($event) => {
|
||||
$data.openShow = false;
|
||||
}),
|
||||
Q: common_vendor.p({
|
||||
show: $data.openShow,
|
||||
showConfirmButton: false
|
||||
})
|
||||
|
||||
@@ -37,11 +37,11 @@ const _sfc_main = {
|
||||
{
|
||||
id: utils_enumUtils.MINE_ORDER_TYPE.SUCCEED,
|
||||
title: "已完成"
|
||||
},
|
||||
{
|
||||
id: utils_enumUtils.MINE_ORDER_TYPE.AFTER_SALE,
|
||||
title: "售后"
|
||||
}
|
||||
// {
|
||||
// id:MINE_ORDER_TYPE.AFTER_SALE,
|
||||
// title:"售后",
|
||||
// },
|
||||
],
|
||||
form: {
|
||||
search: null,
|
||||
|
||||
@@ -45,7 +45,6 @@ const _sfc_main = {
|
||||
const curId = option.curId;
|
||||
if (lockId && lockId !== "null") {
|
||||
this.lockId = lockId;
|
||||
this.selectInfo(this.infoList[1]);
|
||||
}
|
||||
if (curId && curId !== "null") {
|
||||
this.curId = curId;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const utils_auth = require("../../utils/auth.js");
|
||||
const api_auth = require("../../api/auth.js");
|
||||
const Header = () => "../../components/header.js";
|
||||
const _sfc_main = {
|
||||
components: { Header },
|
||||
@@ -11,9 +12,17 @@ const _sfc_main = {
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
this.userData = utils_auth.getStorageFun(utils_auth.USER_DATA);
|
||||
this.getUserInfo();
|
||||
},
|
||||
methods: {
|
||||
// 查询用户等级
|
||||
async getUserInfo() {
|
||||
const result = await api_auth.getUserInfo();
|
||||
if (result && result.bizcode === 100) {
|
||||
result.data;
|
||||
this.userData = result.data || {};
|
||||
}
|
||||
},
|
||||
// 退出登录
|
||||
loginOutFun() {
|
||||
utils_auth.clear();
|
||||
|
||||
@@ -69,7 +69,7 @@ const _sfc_main = {
|
||||
this.form.page++;
|
||||
}
|
||||
} catch (error) {
|
||||
common_vendor.index.__f__("error", "at pages/news/news.vue:147", "加载数据失败:", error);
|
||||
common_vendor.index.__f__("error", "at pages/news/news.vue:152", "加载数据失败:", error);
|
||||
} finally {
|
||||
this.loading = false;
|
||||
}
|
||||
@@ -158,12 +158,20 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
k: common_vendor.f($data.newsList, (item, k0, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.title),
|
||||
b: item.content,
|
||||
b: item.subTitle,
|
||||
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)
|
||||
f: "24bc9d41-4-" + i0,
|
||||
g: common_vendor.p({
|
||||
src: item.coverImage,
|
||||
width: "100",
|
||||
height: "100",
|
||||
bgColor: "#f1f6ff00",
|
||||
radius: "8"
|
||||
}),
|
||||
h: item.id,
|
||||
i: common_vendor.o(($event) => $options.jumpInfo(item), item.id)
|
||||
};
|
||||
}),
|
||||
l: common_vendor.p({
|
||||
|
||||
@@ -1 +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>
|
||||
<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="h" class="news_content_item data-v-24bc9d41" bindtap="{{item.i}}"><view class="news_content_item_warp data-v-24bc9d41"><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><view class="data-v-24bc9d41"><up-image wx:if="{{item.g}}" class="data-v-24bc9d41" u-i="{{item.f}}" bind:__l="__l" u-p="{{item.g}}"></up-image></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-5" bind:__l="__l" u-p="{{m}}"></up-image><view class="not_order_msg_warp data-v-24bc9d41">还未发布新闻哦~</view></view></scroll-view></view></view>
|
||||
@@ -60,6 +60,11 @@
|
||||
background: #FFFFFF;
|
||||
padding: 30rpx;
|
||||
margin-top: 20rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.news_warp .content_ .news_content_item_warp.data-v-24bc9d41 {
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
.news_warp .content_ .news_content_item_title.data-v-24bc9d41 {
|
||||
font-weight: 800;
|
||||
|
||||
@@ -2,10 +2,18 @@
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const api_product = require("../../api/product.js");
|
||||
const utils_enumUtils = require("../../utils/enumUtils.js");
|
||||
const utils_index = require("../../utils/index.js");
|
||||
const utils_config = require("../../utils/config.js");
|
||||
const _sfc_main = {
|
||||
computed: {
|
||||
PRODUCT_DELIVERY_TIME() {
|
||||
return utils_enumUtils.PRODUCT_DELIVERY_TIME;
|
||||
},
|
||||
CUSTOMER_SERVICE_PHONE_NUMBER() {
|
||||
return utils_config.CUSTOMER_SERVICE_PHONE_NUMBER;
|
||||
},
|
||||
CLOUD_SERVICE_PHONE_NUMBER() {
|
||||
return utils_config.CLOUD_SERVICE_PHONE_NUMBER;
|
||||
}
|
||||
},
|
||||
data() {
|
||||
@@ -23,19 +31,35 @@ const _sfc_main = {
|
||||
// 选择的规格
|
||||
specificationTempl: [],
|
||||
// 规格模版数据
|
||||
selectSpecificationTempl: {}
|
||||
selectSpecificationTempl: {},
|
||||
// 选择规格模版数据
|
||||
serviceShow: false,
|
||||
// 联系客服弹框
|
||||
openShow: false,
|
||||
source: null
|
||||
// 来源:供应链,自营
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
const id = options.id;
|
||||
const source = options.source;
|
||||
if (id && id !== 0) {
|
||||
this.id = id ? parseInt(id, 10) : 0;
|
||||
this.getById();
|
||||
if (source && source === "supply_chain") {
|
||||
this.source = source;
|
||||
this.getSupplyChainById();
|
||||
} else {
|
||||
this.getById();
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getValue: utils_enumUtils.getValue,
|
||||
copyMobile(mobile) {
|
||||
utils_index.copyData(mobile);
|
||||
this.serviceShow = false;
|
||||
this.openShow = false;
|
||||
},
|
||||
jumpLeft() {
|
||||
common_vendor.index.navigateBack({
|
||||
delta: 1
|
||||
@@ -77,7 +101,53 @@ const _sfc_main = {
|
||||
this.orderInfo = data;
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 来自商城的订单
|
||||
*/
|
||||
getSupplyChainById() {
|
||||
const params = {
|
||||
goods_id: this.id,
|
||||
app_id: "2024111300164927",
|
||||
sign_type: "MD5",
|
||||
sign: "d04be0cedd49608e758458325faecf90"
|
||||
};
|
||||
common_vendor.index.request({
|
||||
url: "https://cyysc.gscm.top/outside/1/atm/goods/detail",
|
||||
method: "get",
|
||||
data: params,
|
||||
header: {},
|
||||
success: (res) => {
|
||||
const data = res.data;
|
||||
if (data && data.result === 1) {
|
||||
const objData = data.data;
|
||||
const content = objData.content.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, "'").replace(/'/g, '"').replace(/\n/g, "<br>");
|
||||
const orderInfo = {
|
||||
detailInfo: content,
|
||||
minPrice: objData.min_price,
|
||||
// maxPrice:objData.max_price,
|
||||
adPrice: objData.price,
|
||||
sales: objData.virtual_sales
|
||||
};
|
||||
const domain = "https://cyysc.gscm.top";
|
||||
let currentThumb = objData.thumb;
|
||||
if (objData.thumb.indexOf("https://") === -1 && objData.thumb.indexOf("http://") === -1) {
|
||||
currentThumb = domain + "/static/upload/" + objData.thumb;
|
||||
}
|
||||
this.swiperList = [currentThumb];
|
||||
this.orderInfo = orderInfo;
|
||||
}
|
||||
},
|
||||
fail: (error) => {
|
||||
common_vendor.index.__f__("log", "at pages/productInfo/productInfo.vue:379", "error", error);
|
||||
}
|
||||
});
|
||||
},
|
||||
async checkSpecification(val, type) {
|
||||
const source = this.source;
|
||||
if (source && source === "supply_chain") {
|
||||
this.openShow = true;
|
||||
return;
|
||||
}
|
||||
if (val) {
|
||||
await this.querySpecification();
|
||||
const data = this.orderInfo;
|
||||
@@ -213,13 +283,17 @@ if (!Array) {
|
||||
const _easycom_up_swiper2 = common_vendor.resolveComponent("up-swiper");
|
||||
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
|
||||
const _easycom_up_popup2 = common_vendor.resolveComponent("up-popup");
|
||||
(_easycom_up_swiper2 + _easycom_up_image2 + _easycom_up_popup2)();
|
||||
const _easycom_up_modal2 = common_vendor.resolveComponent("up-modal");
|
||||
const _easycom_up_overlay2 = common_vendor.resolveComponent("up-overlay");
|
||||
(_easycom_up_swiper2 + _easycom_up_image2 + _easycom_up_popup2 + _easycom_up_modal2 + _easycom_up_overlay2)();
|
||||
}
|
||||
const _easycom_up_swiper = () => "../../uni_modules/uview-plus/components/u-swiper/u-swiper.js";
|
||||
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
|
||||
const _easycom_up_popup = () => "../../uni_modules/uview-plus/components/u-popup/u-popup.js";
|
||||
const _easycom_up_modal = () => "../../uni_modules/uview-plus/components/u-modal/u-modal.js";
|
||||
const _easycom_up_overlay = () => "../../uni_modules/uview-plus/components/u-overlay/u-overlay.js";
|
||||
if (!Math) {
|
||||
(_easycom_up_swiper + _easycom_up_image + _easycom_up_popup)();
|
||||
(_easycom_up_swiper + _easycom_up_image + _easycom_up_popup + _easycom_up_modal + _easycom_up_overlay)();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return common_vendor.e({
|
||||
@@ -289,7 +363,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
height: "20",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
A: common_vendor.o(($event) => $options.jumpOther("share")),
|
||||
A: common_vendor.o(($event) => {
|
||||
$data.serviceShow = true;
|
||||
}),
|
||||
B: common_vendor.p({
|
||||
src: "/static/product/kefu.png",
|
||||
width: "20",
|
||||
@@ -364,6 +440,32 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
closeOnClickOverlay: false,
|
||||
closeable: true,
|
||||
mode: "bottom"
|
||||
}),
|
||||
ae: common_vendor.p({
|
||||
src: "/static/common/close.png",
|
||||
width: "20",
|
||||
height: "20",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
af: common_vendor.o(($event) => {
|
||||
$data.serviceShow = false;
|
||||
}),
|
||||
ag: common_vendor.t($data.source === "supply_chain" ? "云仓客服" : "平台客服"),
|
||||
ah: common_vendor.t($data.source === "supply_chain" ? $options.CLOUD_SERVICE_PHONE_NUMBER : $options.CUSTOMER_SERVICE_PHONE_NUMBER),
|
||||
ai: common_vendor.o(($event) => $options.copyMobile($data.source === "supply_chain" ? $options.CLOUD_SERVICE_PHONE_NUMBER : $options.CUSTOMER_SERVICE_PHONE_NUMBER)),
|
||||
aj: common_vendor.o(($event) => {
|
||||
$data.serviceShow = false;
|
||||
}),
|
||||
ak: common_vendor.p({
|
||||
show: $data.serviceShow,
|
||||
showConfirmButton: false
|
||||
}),
|
||||
al: common_vendor.t($options.CLOUD_SERVICE_PHONE_NUMBER),
|
||||
am: common_vendor.o(($event) => $options.copyMobile($options.CLOUD_SERVICE_PHONE_NUMBER)),
|
||||
an: common_vendor.o(() => {
|
||||
}),
|
||||
ao: common_vendor.p({
|
||||
show: $data.openShow
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
"usingComponents": {
|
||||
"up-swiper": "../../uni_modules/uview-plus/components/u-swiper/u-swiper",
|
||||
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
|
||||
"up-popup": "../../uni_modules/uview-plus/components/u-popup/u-popup"
|
||||
"up-popup": "../../uni_modules/uview-plus/components/u-popup/u-popup",
|
||||
"up-modal": "../../uni_modules/uview-plus/components/u-modal/u-modal",
|
||||
"up-overlay": "../../uni_modules/uview-plus/components/u-overlay/u-overlay"
|
||||
}
|
||||
}
|
||||
@@ -65,7 +65,6 @@ const _sfc_main = {
|
||||
},
|
||||
// 删除历史
|
||||
searchHistoryDelete(item) {
|
||||
common_vendor.index.__f__("log", "at pages/search/search.vue:155", "item", item);
|
||||
this.isShowSearch = false;
|
||||
},
|
||||
/**
|
||||
@@ -73,7 +72,7 @@ const _sfc_main = {
|
||||
*/
|
||||
async searchClick(item) {
|
||||
this.form.keyword = item.name;
|
||||
this.searchClickFun();
|
||||
this.searchGYLMall();
|
||||
},
|
||||
/**
|
||||
* 查询产品
|
||||
@@ -139,7 +138,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
height: "20",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
e: common_vendor.o((...args) => $options.searchClickFun && $options.searchClickFun(...args)),
|
||||
e: common_vendor.o((...args) => _ctx.searchGYLMall && _ctx.searchGYLMall(...args)),
|
||||
f: common_vendor.o(($event) => $data.form.keyword = $event),
|
||||
g: common_vendor.p({
|
||||
placeholder: "搜索关键字(商品、店铺、品牌)",
|
||||
|
||||
@@ -465,7 +465,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
y: common_vendor.sr("uToastRef", "7cc1684a-8"),
|
||||
z: $data.isDataNull ? "calc(100vh - 134rpx)" : "calc(100vh - 410rpx)",
|
||||
A: common_vendor.p({
|
||||
tabIndex: 2
|
||||
tabIndex: 3
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,258 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const CustomTabBar = () => "../../components/custom-tab-bar.js";
|
||||
const _sfc_main = {
|
||||
components: { CustomTabBar },
|
||||
data() {
|
||||
return {
|
||||
swiperList: ["/static/supply_chain/banner01.png"],
|
||||
currentNum: 0,
|
||||
guaranteeList: [
|
||||
{
|
||||
path: "/static/supply_chain/pz.png",
|
||||
title: "品质保障",
|
||||
content: "100%正品"
|
||||
},
|
||||
{
|
||||
path: "/static/supply_chain/ks.png",
|
||||
title: "快速发货",
|
||||
content: "48小时内送出"
|
||||
},
|
||||
{
|
||||
path: "/static/supply_chain/sh.png",
|
||||
title: "售后服务",
|
||||
content: "快速响应"
|
||||
},
|
||||
{
|
||||
path: "/static/supply_chain/th.png",
|
||||
title: "退货无忧",
|
||||
content: "七天无条件退货"
|
||||
}
|
||||
],
|
||||
sortList: [
|
||||
{
|
||||
path: "/static/supply_chain/sort_fs.png",
|
||||
title: "服饰鞋包",
|
||||
category: "258,259,377"
|
||||
},
|
||||
{
|
||||
path: "/static/supply_chain/sort_sm.png",
|
||||
title: "数码家电",
|
||||
category: "255,257"
|
||||
},
|
||||
{
|
||||
path: "/static/supply_chain/sort_mz.png",
|
||||
title: "美妆个护",
|
||||
category: "278,279,280"
|
||||
},
|
||||
{
|
||||
path: "/static/supply_chain/sort_sp.png",
|
||||
title: "食品酒水",
|
||||
category: "274,275"
|
||||
},
|
||||
{
|
||||
path: "/static/supply_chain/sort_jj.png",
|
||||
title: "家居生活",
|
||||
category: "271"
|
||||
},
|
||||
{
|
||||
path: "/static/supply_chain/sort_my.png",
|
||||
title: "母婴用品",
|
||||
category: "379"
|
||||
},
|
||||
{
|
||||
path: "/static/supply_chain/sort_yd.png",
|
||||
title: "运动户外",
|
||||
category: "380"
|
||||
},
|
||||
{
|
||||
path: "/static/supply_chain/sort_qc.png",
|
||||
title: "汽车用品",
|
||||
category: "389"
|
||||
},
|
||||
{
|
||||
path: "/static/supply_chain/sort_ts.png",
|
||||
title: "图书音像",
|
||||
category: "385"
|
||||
},
|
||||
{
|
||||
path: "/static/supply_chain/sort_bg.png",
|
||||
title: "办公用品",
|
||||
category: "386"
|
||||
}
|
||||
],
|
||||
loading: false,
|
||||
form: {
|
||||
page: 1,
|
||||
limit: 20,
|
||||
app_id: "2024111300164927",
|
||||
sign_type: "MD5",
|
||||
sign: "d04be0cedd49608e758458325faecf90",
|
||||
category: null
|
||||
},
|
||||
productList: []
|
||||
// 商品图
|
||||
};
|
||||
},
|
||||
onLoad(option) {
|
||||
this.searchGYLMall();
|
||||
},
|
||||
methods: {
|
||||
/**
|
||||
* 查询供应链的商品
|
||||
*/
|
||||
searchGYLMall() {
|
||||
if (this.loading)
|
||||
return;
|
||||
this.loading = true;
|
||||
try {
|
||||
const params = this.form;
|
||||
common_vendor.index.request({
|
||||
url: "https://cyysc.gscm.top/outside/1/atm/goods/list",
|
||||
method: "get",
|
||||
data: params,
|
||||
header: {},
|
||||
success: (res) => {
|
||||
const data = res.data;
|
||||
if (data && data.result === 1) {
|
||||
const newData = data.data.data;
|
||||
const newArr = newData.map((obj) => {
|
||||
const sales = Math.floor(Math.random() * 5e3) + 700;
|
||||
return { ...obj, sales };
|
||||
});
|
||||
this.productList = [...this.productList, ...newArr];
|
||||
this.form.page++;
|
||||
}
|
||||
},
|
||||
fail: (error) => {
|
||||
common_vendor.index.__f__("log", "at pages/supply_chain/supply_chain.vue:192", "error", error);
|
||||
}
|
||||
});
|
||||
} catch (error) {
|
||||
common_vendor.index.__f__("error", "at pages/supply_chain/supply_chain.vue:196", "加载数据失败:", error);
|
||||
} finally {
|
||||
this.loading = false;
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 分类搜索
|
||||
* @param {Object} item
|
||||
*/
|
||||
sortFun(item) {
|
||||
this.productList = [];
|
||||
this.form.page = 1;
|
||||
this.form.category = item.category;
|
||||
this.searchGYLMall();
|
||||
},
|
||||
// 当滚动到底部时触发的方法
|
||||
loadMore() {
|
||||
this.searchGYLMall();
|
||||
},
|
||||
/**
|
||||
* 详情页面
|
||||
*/
|
||||
jumpInfo(item) {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/productInfo/productInfo?id=" + item.id + "&source=supply_chain"
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _easycom_up_swiper2 = common_vendor.resolveComponent("up-swiper");
|
||||
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
|
||||
const _easycom_up_notice_bar2 = common_vendor.resolveComponent("up-notice-bar");
|
||||
const _component_CustomTabBar = common_vendor.resolveComponent("CustomTabBar");
|
||||
(_easycom_up_swiper2 + _easycom_up_image2 + _easycom_up_notice_bar2 + _component_CustomTabBar)();
|
||||
}
|
||||
const _easycom_up_swiper = () => "../../uni_modules/uview-plus/components/u-swiper/u-swiper.js";
|
||||
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
|
||||
const _easycom_up_notice_bar = () => "../../uni_modules/uview-plus/components/u-notice-bar/u-notice-bar.js";
|
||||
if (!Math) {
|
||||
(_easycom_up_swiper + _easycom_up_image + _easycom_up_notice_bar)();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t($data.currentNum + 1),
|
||||
b: common_vendor.t($data.swiperList.length),
|
||||
c: common_vendor.o((e) => $data.currentNum = e.current),
|
||||
d: common_vendor.p({
|
||||
list: $data.swiperList,
|
||||
height: "160",
|
||||
bgColor: "#ffffff00"
|
||||
}),
|
||||
e: common_vendor.p({
|
||||
src: "/static/common/note.png",
|
||||
width: "16",
|
||||
height: "16",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
f: common_vendor.p({
|
||||
icon: false,
|
||||
bgColor: "#F5F6F8FF",
|
||||
color: "#000000E6",
|
||||
text: "壹点科技全球聚合供应链:整合京东、阿里、唯品会等一手供应链资源,支持API一键导入,为私域电商全品类货源提供一件代发服务。"
|
||||
}),
|
||||
g: common_vendor.f($data.guaranteeList, (item, index, i0) => {
|
||||
return {
|
||||
a: "52071111-3-" + i0,
|
||||
b: common_vendor.p({
|
||||
src: item.path,
|
||||
width: "20",
|
||||
height: "20",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
c: common_vendor.t(item.title),
|
||||
d: common_vendor.t(item.content),
|
||||
e: index
|
||||
};
|
||||
}),
|
||||
h: common_vendor.f($data.sortList, (item, index, i0) => {
|
||||
return {
|
||||
a: "52071111-4-" + i0,
|
||||
b: common_vendor.p({
|
||||
src: item.path,
|
||||
width: "30",
|
||||
height: "30",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
c: common_vendor.t(item.title),
|
||||
d: index,
|
||||
e: common_vendor.o(($event) => $options.sortFun(item), index)
|
||||
};
|
||||
}),
|
||||
i: $data.productList && $data.productList.length !== 0
|
||||
}, $data.productList && $data.productList.length !== 0 ? {
|
||||
j: common_vendor.f($data.productList, (item, k0, i0) => {
|
||||
return {
|
||||
a: "52071111-5-" + i0,
|
||||
b: common_vendor.p({
|
||||
src: item.thumb,
|
||||
width: "100%",
|
||||
height: "140",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
c: common_vendor.t(item.title),
|
||||
d: common_vendor.t(item.price),
|
||||
e: common_vendor.t(item.sales),
|
||||
f: item.id,
|
||||
g: common_vendor.o(($event) => $options.jumpInfo(item), item.id)
|
||||
};
|
||||
})
|
||||
} : {
|
||||
k: common_vendor.p({
|
||||
src: "/static/common/not_order.png",
|
||||
width: "80",
|
||||
height: "80",
|
||||
bgColor: "#f1f6ff00"
|
||||
})
|
||||
}, {
|
||||
l: common_vendor.o((...args) => $options.loadMore && $options.loadMore(...args)),
|
||||
m: common_vendor.p({
|
||||
tabIndex: 2
|
||||
})
|
||||
});
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-52071111"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/supply_chain/supply_chain.js.map
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"usingComponents": {
|
||||
"custom-tab-bar": "../../components/custom-tab-bar",
|
||||
"up-swiper": "../../uni_modules/uview-plus/components/u-swiper/u-swiper",
|
||||
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
|
||||
"up-notice-bar": "../../uni_modules/uview-plus/components/u-notice-bar/u-notice-bar"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="supply_chain_warp data-v-52071111"><view class="_header_warp data-v-52071111">全球聚合供应链</view><up-swiper wx:if="{{d}}" class="data-v-52071111" u-s="{{['indicator']}}" bindchange="{{c}}" u-i="52071111-0" bind:__l="__l" u-p="{{d}}"><view class="indicator-num data-v-52071111" slot="indicator"><text class="indicator-num__text data-v-52071111">{{a}}/{{b}}</text></view></up-swiper><view class="supply_chain_note_warp data-v-52071111"><up-image wx:if="{{e}}" class="data-v-52071111" u-i="52071111-1" bind:__l="__l" u-p="{{e}}"></up-image><up-notice-bar wx:if="{{f}}" class="data-v-52071111" u-i="52071111-2" bind:__l="__l" u-p="{{f}}"></up-notice-bar></view><view class="guarantee_warp data-v-52071111"><view wx:for="{{g}}" wx:for-item="item" wx:key="e" class="guarantee_item_warp data-v-52071111"><view class="data-v-52071111" style="margin-top:10rpx"><up-image wx:if="{{item.b}}" class="data-v-52071111" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image></view><view class="guarantee_item_content_warp data-v-52071111"><view class="title_ data-v-52071111">{{item.c}}</view><view class="content_ data-v-52071111">{{item.d}}</view></view></view></view><view class="sort_warp data-v-52071111"><view wx:for="{{h}}" wx:for-item="item" wx:key="d" class="sort_item_warp data-v-52071111" bindtap="{{item.e}}"><up-image wx:if="{{item.b}}" class="data-v-52071111" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image><view class="sort_item_title_warp data-v-52071111">{{item.c}}</view></view></view><view class="supply_chain_product_warp data-v-52071111"><view class="product_title data-v-52071111"><view class="product_title_msg data-v-52071111">精选好物</view><view class="product_title_bg data-v-52071111"></view></view><scroll-view class="data-v-52071111" scroll-y="true" bindscrolltolower="{{l}}" style="height:calc(100vh - 158px);margin-top:10rpx"><view wx:if="{{i}}" class="supply_chain_product_content data-v-52071111"><view wx:for="{{j}}" wx:for-item="item" wx:key="f" class="product_content_item data-v-52071111" bindtap="{{item.g}}"><up-image wx:if="{{item.b}}" class="data-v-52071111" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image><view class="product_content_item_content data-v-52071111"><view class="product_item_name data-v-52071111">{{item.c}}</view><view class="product_item_price data-v-52071111"><view class="price_ data-v-52071111"><text class="data-v-52071111">¥</text><text class="data-v-52071111" style="color:36rpx">{{item.d}}</text></view><view class="price_sell data-v-52071111">已售{{item.e}}件</view></view></view></view></view><view wx:else class="not_order_warp data-v-52071111"><up-image wx:if="{{k}}" class="data-v-52071111" u-i="52071111-6" bind:__l="__l" u-p="{{k}}"></up-image><view class="not_order_msg_warp data-v-52071111">还未添加商品哦~</view></view></scroll-view></view><custom-tab-bar wx:if="{{m}}" class="data-v-52071111" u-i="52071111-7" bind:__l="__l" u-p="{{m}}"/></view>
|
||||
@@ -0,0 +1,137 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/* uni.scss */
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
.supply_chain_warp.data-v-52071111 {
|
||||
height: calc(100vh - 140rpx);
|
||||
overflow: auto;
|
||||
background-color: #F5F5F5FF;
|
||||
}
|
||||
.supply_chain_warp ._header_warp.data-v-52071111 {
|
||||
margin-top: 60rpx;
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
background-color: #F5F5F5FF;
|
||||
text-align: center;
|
||||
}
|
||||
.supply_chain_warp .supply_chain_note_warp.data-v-52071111 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 0 0 30rpx;
|
||||
}
|
||||
.supply_chain_warp .guarantee_warp.data-v-52071111 {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
background: #FFFFFF;
|
||||
padding: 10rpx 30rpx;
|
||||
}
|
||||
.supply_chain_warp .guarantee_warp .guarantee_item_warp.data-v-52071111 {
|
||||
width: 25%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.supply_chain_warp .guarantee_warp .guarantee_item_content_warp.data-v-52071111 {
|
||||
margin-left: 10rpx;
|
||||
}
|
||||
.supply_chain_warp .guarantee_warp .title_.data-v-52071111 {
|
||||
font-size: 18rpx;
|
||||
color: rgba(0, 0, 0, 0.6);
|
||||
}
|
||||
.supply_chain_warp .guarantee_warp .content_.data-v-52071111 {
|
||||
font-size: 14rpx;
|
||||
color: rgba(0, 0, 0, 0.26);
|
||||
margin-top: 6rpx;
|
||||
}
|
||||
.supply_chain_warp .sort_warp.data-v-52071111 {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
padding: 30rpx 0;
|
||||
}
|
||||
.supply_chain_warp .sort_warp .sort_item_warp.data-v-52071111 {
|
||||
width: 20%;
|
||||
text-align: center;
|
||||
margin-bottom: 10rpx;
|
||||
}
|
||||
.supply_chain_warp .sort_warp .sort_item_title_warp.data-v-52071111 {
|
||||
font-size: 24rpx;
|
||||
color: rgba(0, 0, 0, 0.9);
|
||||
}
|
||||
.supply_chain_warp .supply_chain_product_warp.data-v-52071111 {
|
||||
padding: 0rpx 30rpx 0;
|
||||
}
|
||||
.supply_chain_warp .supply_chain_product_warp .product_title.data-v-52071111 {
|
||||
position: relative;
|
||||
}
|
||||
.supply_chain_warp .supply_chain_product_warp .product_title .product_title_msg.data-v-52071111 {
|
||||
position: relative;
|
||||
font-family: AlimamaFangYuanTiVF-Medium, AlimamaFangYuanTiVF-Medium;
|
||||
font-weight: normal;
|
||||
font-size: 38rpx;
|
||||
color: rgba(0, 0, 0, 0.9);
|
||||
z-index: 2;
|
||||
}
|
||||
.supply_chain_warp .supply_chain_product_warp .product_title .product_title_bg.data-v-52071111 {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
width: 113rpx;
|
||||
height: 15rpx;
|
||||
background: #FFA749FF;
|
||||
border-radius: 8rpx;
|
||||
z-index: 1;
|
||||
}
|
||||
.supply_chain_warp .supply_chain_product_warp .supply_chain_product_content.data-v-52071111 {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
overflow: auto;
|
||||
}
|
||||
.supply_chain_warp .supply_chain_product_warp .supply_chain_product_content .product_content_item.data-v-52071111 {
|
||||
width: 48%;
|
||||
background: #FFFFFF;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
.supply_chain_warp .supply_chain_product_warp .supply_chain_product_content .product_content_item .product_content_item_content.data-v-52071111 {
|
||||
border-radius: 18rpx;
|
||||
padding: 0 20rpx 20rpx;
|
||||
}
|
||||
.supply_chain_warp .supply_chain_product_warp .supply_chain_product_content .product_content_item .product_item_name.data-v-52071111 {
|
||||
font-weight: 500;
|
||||
font-size: 30rpx;
|
||||
color: rgba(0, 0, 0, 0.9);
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
overflow: hidden;
|
||||
}
|
||||
.supply_chain_warp .supply_chain_product_warp .supply_chain_product_content .product_content_item .product_item_price.data-v-52071111 {
|
||||
font-size: 20rpx;
|
||||
color: #FF7C41;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
.supply_chain_warp .supply_chain_product_warp .supply_chain_product_content .product_content_item .product_item_price .price_sell.data-v-52071111 {
|
||||
color: rgba(0, 0, 0, 0.26);
|
||||
}
|
||||
@@ -18,7 +18,7 @@
|
||||
}
|
||||
},
|
||||
"compileType": "miniprogram",
|
||||
"libVersion": "3.7.8",
|
||||
"libVersion": "3.8.6",
|
||||
"appid": "touristappid",
|
||||
"projectname": "德商汇",
|
||||
"condition": {
|
||||
|
||||
@@ -7,6 +7,13 @@
|
||||
"condition": {
|
||||
"miniprogram": {
|
||||
"list": [
|
||||
{
|
||||
"name": "供应链",
|
||||
"pathName": "pages/supply_chain/supply_chain",
|
||||
"query": "",
|
||||
"launchMode": "default",
|
||||
"scene": null
|
||||
},
|
||||
{
|
||||
"name": "订单",
|
||||
"pathName": "pages/mine_order/mine_order",
|
||||
|
||||
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 883 B |
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 36 KiB |
|
After Width: | Height: | Size: 1.4 MiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
@@ -0,0 +1,64 @@
|
||||
"use strict";
|
||||
const uni_modules_uviewPlus_libs_vue = require("../../libs/vue.js");
|
||||
const uni_modules_uviewPlus_libs_config_props = require("../../libs/config/props.js");
|
||||
const props = uni_modules_uviewPlus_libs_vue.defineMixin({
|
||||
props: {
|
||||
// 显示的内容,字符串
|
||||
text: {
|
||||
type: [Array],
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.columnNotice.text
|
||||
},
|
||||
// 是否显示左侧的音量图标
|
||||
icon: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.columnNotice.icon
|
||||
},
|
||||
// 通告模式,link-显示右箭头,closable-显示右侧关闭图标
|
||||
mode: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.columnNotice.mode
|
||||
},
|
||||
// 文字颜色,各图标也会使用文字颜色
|
||||
color: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.columnNotice.color
|
||||
},
|
||||
// 背景颜色
|
||||
bgColor: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.columnNotice.bgColor
|
||||
},
|
||||
// 字体大小,单位px
|
||||
fontSize: {
|
||||
type: [String, Number],
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.columnNotice.fontSize
|
||||
},
|
||||
// 水平滚动时的滚动速度,即每秒滚动多少px(px),这有利于控制文字无论多少时,都能有一个恒定的速度
|
||||
speed: {
|
||||
type: [String, Number],
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.columnNotice.speed
|
||||
},
|
||||
// direction = row时,是否使用步进形式滚动
|
||||
step: {
|
||||
type: Boolean,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.columnNotice.step
|
||||
},
|
||||
// 滚动一个周期的时间长,单位ms
|
||||
duration: {
|
||||
type: [String, Number],
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.columnNotice.duration
|
||||
},
|
||||
// 是否禁止用手滑动切换
|
||||
// 目前HX2.6.11,只支持App 2.5.5+、H5 2.5.5+、支付宝小程序、字节跳动小程序
|
||||
disableTouch: {
|
||||
type: Boolean,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.columnNotice.disableTouch
|
||||
},
|
||||
justifyContent: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.columnNotice.justifyContent
|
||||
}
|
||||
}
|
||||
});
|
||||
exports.props = props;
|
||||
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/uview-plus/components/u-column-notice/props.js.map
|
||||
@@ -0,0 +1,110 @@
|
||||
"use strict";
|
||||
const uni_modules_uviewPlus_components_uColumnNotice_props = require("./props.js");
|
||||
const uni_modules_uviewPlus_libs_mixin_mpMixin = require("../../libs/mixin/mpMixin.js");
|
||||
const uni_modules_uviewPlus_libs_mixin_mixin = require("../../libs/mixin/mixin.js");
|
||||
const uni_modules_uviewPlus_libs_function_index = require("../../libs/function/index.js");
|
||||
const uni_modules_uviewPlus_libs_function_test = require("../../libs/function/test.js");
|
||||
const common_vendor = require("../../../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
mixins: [uni_modules_uviewPlus_libs_mixin_mpMixin.mpMixin, uni_modules_uviewPlus_libs_mixin_mixin.mixin, uni_modules_uviewPlus_components_uColumnNotice_props.props],
|
||||
watch: {
|
||||
text: {
|
||||
immediate: true,
|
||||
handler(newValue, oldValue) {
|
||||
if (!uni_modules_uviewPlus_libs_function_test.test.array(newValue)) {
|
||||
uni_modules_uviewPlus_libs_function_index.error("noticebar组件direction为column时,要求text参数为数组形式");
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
// 文字内容的样式
|
||||
textStyle() {
|
||||
let style = {};
|
||||
style.color = this.color;
|
||||
style.fontSize = uni_modules_uviewPlus_libs_function_index.addUnit(this.fontSize);
|
||||
return style;
|
||||
},
|
||||
// 垂直或者水平滚动
|
||||
vertical() {
|
||||
if (this.mode == "horizontal")
|
||||
return false;
|
||||
else
|
||||
return true;
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
index: 0
|
||||
};
|
||||
},
|
||||
emits: ["click", "close"],
|
||||
methods: {
|
||||
noticeChange(e) {
|
||||
this.index = e.detail.current;
|
||||
},
|
||||
// 点击通告栏
|
||||
clickHandler() {
|
||||
this.$emit("click", this.index);
|
||||
},
|
||||
// 点击关闭按钮
|
||||
close() {
|
||||
this.$emit("close");
|
||||
}
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _easycom_u_icon2 = common_vendor.resolveComponent("u-icon");
|
||||
_easycom_u_icon2();
|
||||
}
|
||||
const _easycom_u_icon = () => "../u-icon/u-icon.js";
|
||||
if (!Math) {
|
||||
_easycom_u_icon();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return common_vendor.e({
|
||||
a: _ctx.icon
|
||||
}, _ctx.icon ? {
|
||||
b: common_vendor.p({
|
||||
name: _ctx.icon,
|
||||
color: _ctx.color,
|
||||
size: "19"
|
||||
})
|
||||
} : {}, {
|
||||
c: common_vendor.f(_ctx.text, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item),
|
||||
b: index
|
||||
};
|
||||
}),
|
||||
d: common_vendor.s($options.textStyle),
|
||||
e: _ctx.justifyContent,
|
||||
f: _ctx.disableTouch,
|
||||
g: _ctx.step ? false : true,
|
||||
h: _ctx.duration,
|
||||
i: common_vendor.o((...args) => $options.noticeChange && $options.noticeChange(...args)),
|
||||
j: ["link", "closable"].includes(_ctx.mode)
|
||||
}, ["link", "closable"].includes(_ctx.mode) ? common_vendor.e({
|
||||
k: _ctx.mode === "link"
|
||||
}, _ctx.mode === "link" ? {
|
||||
l: common_vendor.p({
|
||||
name: "arrow-right",
|
||||
size: 17,
|
||||
color: _ctx.color
|
||||
})
|
||||
} : {}, {
|
||||
m: _ctx.mode === "closable"
|
||||
}, _ctx.mode === "closable" ? {
|
||||
n: common_vendor.o($options.close),
|
||||
o: common_vendor.p({
|
||||
name: "close",
|
||||
size: 16,
|
||||
color: _ctx.color
|
||||
})
|
||||
} : {}) : {}, {
|
||||
p: common_vendor.o((...args) => $options.clickHandler && $options.clickHandler(...args))
|
||||
});
|
||||
}
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-bacc3427"]]);
|
||||
wx.createComponent(Component);
|
||||
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/uview-plus/components/u-column-notice/u-column-notice.js.map
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"u-icon": "../u-icon/u-icon"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="u-notice data-v-bacc3427" bindtap="{{p}}"><block wx:if="{{$slots.icon}}"><slot name="icon"></slot></block><block wx:else><view wx:if="{{a}}" class="u-notice__left-icon data-v-bacc3427"><u-icon wx:if="{{b}}" class="data-v-bacc3427" u-i="bacc3427-0" bind:__l="__l" u-p="{{b}}"></u-icon></view></block><swiper disable-touch="{{f}}" vertical="{{g}}" circular interval="{{h}}" autoplay="{{true}}" class="u-notice__swiper data-v-bacc3427" bindchange="{{i}}"><swiper-item wx:for="{{c}}" wx:for-item="item" wx:key="b" class="u-notice__swiper__item data-v-bacc3427" style="{{'justify-content:' + e}}"><text class="u-notice__swiper__item__text u-line-1 data-v-bacc3427" style="{{d}}">{{item.a}}</text></swiper-item></swiper><view wx:if="{{j}}" class="u-notice__right-icon data-v-bacc3427"><u-icon wx:if="{{k}}" class="data-v-bacc3427" u-i="bacc3427-1" bind:__l="__l" u-p="{{l}}"></u-icon><u-icon wx:if="{{m}}" class="data-v-bacc3427" bindclick="{{n}}" u-i="bacc3427-2" bind:__l="__l" u-p="{{o}}"></u-icon></view></view>
|
||||
@@ -0,0 +1,79 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/* uni.scss */
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
.u-empty.data-v-bacc3427,
|
||||
.u-empty__wrap.data-v-bacc3427,
|
||||
.u-tabs.data-v-bacc3427,
|
||||
.u-tabs__wrapper.data-v-bacc3427,
|
||||
.u-tabs__wrapper__scroll-view-wrapper.data-v-bacc3427,
|
||||
.u-tabs__wrapper__scroll-view.data-v-bacc3427,
|
||||
.u-tabs__wrapper__nav.data-v-bacc3427,
|
||||
.u-tabs__wrapper__nav__line.data-v-bacc3427,
|
||||
.up-empty.data-v-bacc3427,
|
||||
.up-empty__wrap.data-v-bacc3427,
|
||||
.up-tabs.data-v-bacc3427,
|
||||
.up-tabs__wrapper.data-v-bacc3427,
|
||||
.up-tabs__wrapper__scroll-view-wrapper.data-v-bacc3427,
|
||||
.up-tabs__wrapper__scroll-view.data-v-bacc3427,
|
||||
.up-tabs__wrapper__nav.data-v-bacc3427,
|
||||
.up-tabs__wrapper__nav__line.data-v-bacc3427 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-shrink: 0;
|
||||
flex-grow: 0;
|
||||
flex-basis: auto;
|
||||
align-items: stretch;
|
||||
align-content: flex-start;
|
||||
}
|
||||
.u-notice.data-v-bacc3427 {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.u-notice__left-icon.data-v-bacc3427 {
|
||||
align-items: center;
|
||||
margin-right: 5px;
|
||||
}
|
||||
.u-notice__right-icon.data-v-bacc3427 {
|
||||
margin-left: 5px;
|
||||
align-items: center;
|
||||
}
|
||||
.u-notice__swiper.data-v-bacc3427 {
|
||||
height: 16px;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
flex: 1;
|
||||
}
|
||||
.u-notice__swiper__item.data-v-bacc3427 {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
}
|
||||
.u-notice__swiper__item__text.data-v-bacc3427 {
|
||||
font-size: 14px;
|
||||
color: #f9ae3d;
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
"use strict";
|
||||
const uni_modules_uviewPlus_libs_vue = require("../../libs/vue.js");
|
||||
const uni_modules_uviewPlus_libs_config_props = require("../../libs/config/props.js");
|
||||
const props = uni_modules_uviewPlus_libs_vue.defineMixin({
|
||||
props: {
|
||||
// 显示的内容,数组
|
||||
text: {
|
||||
type: [Array, String],
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.noticeBar.text
|
||||
},
|
||||
// 通告滚动模式,row-横向滚动,column-竖向滚动
|
||||
direction: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.noticeBar.direction
|
||||
},
|
||||
// direction = row时,是否使用步进形式滚动
|
||||
step: {
|
||||
type: Boolean,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.noticeBar.step
|
||||
},
|
||||
// 是否显示左侧的音量图标
|
||||
icon: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.noticeBar.icon
|
||||
},
|
||||
// 通告模式,link-显示右箭头,closable-显示右侧关闭图标
|
||||
mode: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.noticeBar.mode
|
||||
},
|
||||
// 文字颜色,各图标也会使用文字颜色
|
||||
color: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.noticeBar.color
|
||||
},
|
||||
// 背景颜色
|
||||
bgColor: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.noticeBar.bgColor
|
||||
},
|
||||
// 水平滚动时的滚动速度,即每秒滚动多少px(px),这有利于控制文字无论多少时,都能有一个恒定的速度
|
||||
speed: {
|
||||
type: [String, Number],
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.noticeBar.speed
|
||||
},
|
||||
// 字体大小
|
||||
fontSize: {
|
||||
type: [String, Number],
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.noticeBar.fontSize
|
||||
},
|
||||
// 滚动一个周期的时间长,单位ms
|
||||
duration: {
|
||||
type: [String, Number],
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.noticeBar.duration
|
||||
},
|
||||
// 是否禁止用手滑动切换
|
||||
// 目前HX2.6.11,只支持App 2.5.5+、H5 2.5.5+、支付宝小程序、字节跳动小程序
|
||||
disableTouch: {
|
||||
type: Boolean,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.noticeBar.disableTouch
|
||||
},
|
||||
// 跳转的页面路径
|
||||
url: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.noticeBar.url
|
||||
},
|
||||
// 页面跳转的类型
|
||||
linkType: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.noticeBar.linkType
|
||||
},
|
||||
justifyContent: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.noticeBar.justifyContent
|
||||
}
|
||||
}
|
||||
});
|
||||
exports.props = props;
|
||||
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/uview-plus/components/u-notice-bar/props.js.map
|
||||
@@ -0,0 +1,85 @@
|
||||
"use strict";
|
||||
const uni_modules_uviewPlus_components_uNoticeBar_props = require("./props.js");
|
||||
const uni_modules_uviewPlus_libs_mixin_mpMixin = require("../../libs/mixin/mpMixin.js");
|
||||
const uni_modules_uviewPlus_libs_mixin_mixin = require("../../libs/mixin/mixin.js");
|
||||
const uni_modules_uviewPlus_libs_function_index = require("../../libs/function/index.js");
|
||||
const common_vendor = require("../../../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
name: "u-notice-bar",
|
||||
mixins: [uni_modules_uviewPlus_libs_mixin_mpMixin.mpMixin, uni_modules_uviewPlus_libs_mixin_mixin.mixin, uni_modules_uviewPlus_components_uNoticeBar_props.props],
|
||||
data() {
|
||||
return {
|
||||
show: true
|
||||
};
|
||||
},
|
||||
emits: ["click", "close"],
|
||||
methods: {
|
||||
addStyle: uni_modules_uviewPlus_libs_function_index.addStyle,
|
||||
// 点击通告栏
|
||||
click(index) {
|
||||
this.$emit("click", index);
|
||||
if (this.url && this.linkType) {
|
||||
this.openPage();
|
||||
}
|
||||
},
|
||||
// 点击关闭按钮
|
||||
close() {
|
||||
this.show = false;
|
||||
this.$emit("close");
|
||||
}
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _easycom_u_column_notice2 = common_vendor.resolveComponent("u-column-notice");
|
||||
const _easycom_u_row_notice2 = common_vendor.resolveComponent("u-row-notice");
|
||||
(_easycom_u_column_notice2 + _easycom_u_row_notice2)();
|
||||
}
|
||||
const _easycom_u_column_notice = () => "../u-column-notice/u-column-notice.js";
|
||||
const _easycom_u_row_notice = () => "../u-row-notice/u-row-notice.js";
|
||||
if (!Math) {
|
||||
(_easycom_u_column_notice + _easycom_u_row_notice)();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return common_vendor.e({
|
||||
a: $data.show
|
||||
}, $data.show ? common_vendor.e({
|
||||
b: _ctx.direction === "column" || _ctx.direction === "row" && _ctx.step
|
||||
}, _ctx.direction === "column" || _ctx.direction === "row" && _ctx.step ? {
|
||||
c: common_vendor.o($options.close),
|
||||
d: common_vendor.o($options.click),
|
||||
e: common_vendor.p({
|
||||
color: _ctx.color,
|
||||
bgColor: _ctx.bgColor,
|
||||
text: _ctx.text,
|
||||
mode: _ctx.mode,
|
||||
step: _ctx.step,
|
||||
icon: _ctx.icon,
|
||||
["disable-touch"]: _ctx.disableTouch,
|
||||
fontSize: _ctx.fontSize,
|
||||
duration: _ctx.duration,
|
||||
justifyContent: _ctx.justifyContent
|
||||
})
|
||||
} : {
|
||||
f: common_vendor.o($options.close),
|
||||
g: common_vendor.o($options.click),
|
||||
h: common_vendor.p({
|
||||
color: _ctx.color,
|
||||
bgColor: _ctx.bgColor,
|
||||
text: _ctx.text,
|
||||
mode: _ctx.mode,
|
||||
fontSize: _ctx.fontSize,
|
||||
speed: _ctx.speed,
|
||||
url: _ctx.url,
|
||||
linkType: _ctx.linkType,
|
||||
icon: _ctx.icon
|
||||
})
|
||||
}, {
|
||||
i: common_vendor.s({
|
||||
backgroundColor: _ctx.bgColor
|
||||
}),
|
||||
j: common_vendor.s($options.addStyle(_ctx.customStyle))
|
||||
}) : {});
|
||||
}
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-54bd9363"]]);
|
||||
wx.createComponent(Component);
|
||||
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/uview-plus/components/u-notice-bar/u-notice-bar.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"u-column-notice": "../u-column-notice/u-column-notice",
|
||||
"u-row-notice": "../u-row-notice/u-row-notice"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view wx:if="{{a}}" class="u-notice-bar data-v-54bd9363" style="{{i + ';' + j}}"><block wx:if="{{b}}"><u-column-notice wx:if="{{e}}" class="data-v-54bd9363" bindclose="{{c}}" bindclick="{{d}}" u-i="54bd9363-0" bind:__l="__l" u-p="{{e}}"></u-column-notice></block><block wx:else><u-row-notice wx:if="{{h}}" class="data-v-54bd9363" bindclose="{{f}}" bindclick="{{g}}" u-i="54bd9363-1" bind:__l="__l" u-p="{{h}}"></u-row-notice></block></view>
|
||||
@@ -0,0 +1,53 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/* uni.scss */
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
.u-empty.data-v-54bd9363,
|
||||
.u-empty__wrap.data-v-54bd9363,
|
||||
.u-tabs.data-v-54bd9363,
|
||||
.u-tabs__wrapper.data-v-54bd9363,
|
||||
.u-tabs__wrapper__scroll-view-wrapper.data-v-54bd9363,
|
||||
.u-tabs__wrapper__scroll-view.data-v-54bd9363,
|
||||
.u-tabs__wrapper__nav.data-v-54bd9363,
|
||||
.u-tabs__wrapper__nav__line.data-v-54bd9363,
|
||||
.up-empty.data-v-54bd9363,
|
||||
.up-empty__wrap.data-v-54bd9363,
|
||||
.up-tabs.data-v-54bd9363,
|
||||
.up-tabs__wrapper.data-v-54bd9363,
|
||||
.up-tabs__wrapper__scroll-view-wrapper.data-v-54bd9363,
|
||||
.up-tabs__wrapper__scroll-view.data-v-54bd9363,
|
||||
.up-tabs__wrapper__nav.data-v-54bd9363,
|
||||
.up-tabs__wrapper__nav__line.data-v-54bd9363 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-shrink: 0;
|
||||
flex-grow: 0;
|
||||
flex-basis: auto;
|
||||
align-items: stretch;
|
||||
align-content: flex-start;
|
||||
}
|
||||
.u-notice-bar.data-v-54bd9363 {
|
||||
overflow: hidden;
|
||||
padding: 9px 12px;
|
||||
flex: 1;
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
"use strict";
|
||||
const uni_modules_uviewPlus_libs_vue = require("../../libs/vue.js");
|
||||
const uni_modules_uviewPlus_libs_config_props = require("../../libs/config/props.js");
|
||||
const props = uni_modules_uviewPlus_libs_vue.defineMixin({
|
||||
props: {
|
||||
// 显示的内容,字符串
|
||||
text: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.rowNotice.text
|
||||
},
|
||||
// 是否显示左侧的音量图标
|
||||
icon: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.rowNotice.icon
|
||||
},
|
||||
// 通告模式,link-显示右箭头,closable-显示右侧关闭图标
|
||||
mode: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.rowNotice.mode
|
||||
},
|
||||
// 文字颜色,各图标也会使用文字颜色
|
||||
color: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.rowNotice.color
|
||||
},
|
||||
// 背景颜色
|
||||
bgColor: {
|
||||
type: String,
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.rowNotice.bgColor
|
||||
},
|
||||
// 字体大小,单位px
|
||||
fontSize: {
|
||||
type: [String, Number],
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.rowNotice.fontSize
|
||||
},
|
||||
// 水平滚动时的滚动速度,即每秒滚动多少px(rpx),这有利于控制文字无论多少时,都能有一个恒定的速度
|
||||
speed: {
|
||||
type: [String, Number],
|
||||
default: () => uni_modules_uviewPlus_libs_config_props.defProps.rowNotice.speed
|
||||
}
|
||||
}
|
||||
});
|
||||
exports.props = props;
|
||||
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/uview-plus/components/u-row-notice/props.js.map
|
||||
@@ -0,0 +1,159 @@
|
||||
"use strict";
|
||||
const uni_modules_uviewPlus_components_uRowNotice_props = require("./props.js");
|
||||
const uni_modules_uviewPlus_libs_mixin_mpMixin = require("../../libs/mixin/mpMixin.js");
|
||||
const uni_modules_uviewPlus_libs_mixin_mixin = require("../../libs/mixin/mixin.js");
|
||||
const uni_modules_uviewPlus_libs_function_index = require("../../libs/function/index.js");
|
||||
const uni_modules_uviewPlus_libs_function_test = require("../../libs/function/test.js");
|
||||
const common_vendor = require("../../../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
name: "u-row-notice",
|
||||
mixins: [uni_modules_uviewPlus_libs_mixin_mpMixin.mpMixin, uni_modules_uviewPlus_libs_mixin_mixin.mixin, uni_modules_uviewPlus_components_uRowNotice_props.props],
|
||||
data() {
|
||||
return {
|
||||
animationDuration: "0",
|
||||
// 动画执行时间
|
||||
animationPlayState: "paused",
|
||||
// 动画的开始和结束执行
|
||||
// nvue下,内容发生变化,导致滚动宽度也变化,需要标志为是否需要重新计算宽度
|
||||
// 不能在内容变化时直接重新计算,因为nvue的animation模块上一次的滚动不是刚好结束,会有影响
|
||||
nvueInit: true,
|
||||
show: true
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
text: {
|
||||
immediate: true,
|
||||
handler(newValue, oldValue) {
|
||||
this.vue();
|
||||
if (!uni_modules_uviewPlus_libs_function_test.test.string(newValue)) {
|
||||
uni_modules_uviewPlus_libs_function_index.error("noticebar组件direction为row时,要求text参数为字符串形式");
|
||||
}
|
||||
}
|
||||
},
|
||||
fontSize() {
|
||||
this.vue();
|
||||
},
|
||||
speed() {
|
||||
this.vue();
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
// 文字内容的样式
|
||||
textStyle() {
|
||||
let style = {};
|
||||
style.whiteSpace = "nowrap !important";
|
||||
style.color = this.color;
|
||||
style.fontSize = uni_modules_uviewPlus_libs_function_index.addUnit(this.fontSize);
|
||||
return style;
|
||||
},
|
||||
animationStyle() {
|
||||
let style = {};
|
||||
style.animationDuration = this.animationDuration;
|
||||
style.animationPlayState = this.animationPlayState;
|
||||
return style;
|
||||
},
|
||||
// 内部对用户传入的数据进一步分割,放到多个text标签循环,否则如果用户传入的字符串很长(100个字符以上)
|
||||
// 放在一个text标签中进行滚动,在低端安卓机上,动画可能会出现抖动现象,需要分割到多个text中可解决此问题
|
||||
innerText() {
|
||||
let result = [], len = 20;
|
||||
const textArr = this.text.split("");
|
||||
for (let i = 0; i < textArr.length; i += len) {
|
||||
result.push(textArr.slice(i, i + len).join(""));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.init();
|
||||
},
|
||||
emits: ["click", "close"],
|
||||
methods: {
|
||||
init() {
|
||||
this.vue();
|
||||
if (!uni_modules_uviewPlus_libs_function_test.test.string(this.text)) {
|
||||
uni_modules_uviewPlus_libs_function_index.error("noticebar组件direction为row时,要求text参数为字符串形式");
|
||||
}
|
||||
},
|
||||
// vue版处理
|
||||
async vue() {
|
||||
let textWidth = 0;
|
||||
await uni_modules_uviewPlus_libs_function_index.sleep();
|
||||
textWidth = (await this.$uGetRect(".u-notice__content__text")).width;
|
||||
(await this.$uGetRect(".u-notice__content")).width;
|
||||
this.animationDuration = `${textWidth / uni_modules_uviewPlus_libs_function_index.getPx(this.speed)}s`;
|
||||
this.animationPlayState = "paused";
|
||||
setTimeout(() => {
|
||||
this.animationPlayState = "running";
|
||||
}, 10);
|
||||
},
|
||||
// nvue版处理
|
||||
async nvue() {
|
||||
},
|
||||
loopAnimation(textWidth, boxWidth) {
|
||||
},
|
||||
getNvueRect(el) {
|
||||
},
|
||||
// 点击通告栏
|
||||
clickHandler(index) {
|
||||
this.$emit("click");
|
||||
},
|
||||
// 点击右侧按钮,需要判断点击的是关闭图标还是箭头图标
|
||||
close() {
|
||||
this.$emit("close");
|
||||
}
|
||||
},
|
||||
beforeUnmount() {
|
||||
this.stopAnimation = true;
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _easycom_u_icon2 = common_vendor.resolveComponent("u-icon");
|
||||
_easycom_u_icon2();
|
||||
}
|
||||
const _easycom_u_icon = () => "../u-icon/u-icon.js";
|
||||
if (!Math) {
|
||||
_easycom_u_icon();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return common_vendor.e({
|
||||
a: _ctx.icon
|
||||
}, _ctx.icon ? {
|
||||
b: common_vendor.p({
|
||||
name: _ctx.icon,
|
||||
color: _ctx.color,
|
||||
size: "19"
|
||||
})
|
||||
} : {}, {
|
||||
c: common_vendor.f($options.innerText, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item),
|
||||
b: index
|
||||
};
|
||||
}),
|
||||
d: common_vendor.s($options.textStyle),
|
||||
e: common_vendor.s($options.animationStyle),
|
||||
f: ["link", "closable"].includes(_ctx.mode)
|
||||
}, ["link", "closable"].includes(_ctx.mode) ? common_vendor.e({
|
||||
g: _ctx.mode === "link"
|
||||
}, _ctx.mode === "link" ? {
|
||||
h: common_vendor.p({
|
||||
name: "arrow-right",
|
||||
size: 17,
|
||||
color: _ctx.color
|
||||
})
|
||||
} : {}, {
|
||||
i: _ctx.mode === "closable"
|
||||
}, _ctx.mode === "closable" ? {
|
||||
j: common_vendor.o($options.close),
|
||||
k: common_vendor.p({
|
||||
name: "close",
|
||||
size: 16,
|
||||
color: _ctx.color
|
||||
})
|
||||
} : {}) : {}, {
|
||||
l: common_vendor.o((...args) => $options.clickHandler && $options.clickHandler(...args))
|
||||
});
|
||||
}
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-ab8dee7b"]]);
|
||||
wx.createComponent(Component);
|
||||
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/uview-plus/components/u-row-notice/u-row-notice.js.map
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"u-icon": "../u-icon/u-icon"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="u-notice data-v-ab8dee7b" bindtap="{{l}}"><block wx:if="{{$slots.icon}}"><slot name="icon"></slot></block><block wx:else><view wx:if="{{a}}" class="u-notice__left-icon data-v-ab8dee7b"><u-icon wx:if="{{b}}" class="data-v-ab8dee7b" u-i="ab8dee7b-0" bind:__l="__l" u-p="{{b}}"></u-icon></view></block><view class="u-notice__content data-v-ab8dee7b" ref="u-notice__content"><view ref="u-notice__content__text" class="u-notice__content__text data-v-ab8dee7b" style="{{e}}"><text wx:for="{{c}}" wx:for-item="item" wx:key="b" class="data-v-ab8dee7b" style="{{d}}">{{item.a}}</text></view></view><view wx:if="{{f}}" class="u-notice__right-icon data-v-ab8dee7b"><u-icon wx:if="{{g}}" class="data-v-ab8dee7b" u-i="ab8dee7b-1" bind:__l="__l" u-p="{{h}}"></u-icon><u-icon wx:if="{{i}}" class="data-v-ab8dee7b" bindclick="{{j}}" u-i="ab8dee7b-2" bind:__l="__l" u-p="{{k}}"></u-icon></view></view>
|
||||
@@ -0,0 +1,89 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/* uni.scss */
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
.u-empty.data-v-ab8dee7b,
|
||||
.u-empty__wrap.data-v-ab8dee7b,
|
||||
.u-tabs.data-v-ab8dee7b,
|
||||
.u-tabs__wrapper.data-v-ab8dee7b,
|
||||
.u-tabs__wrapper__scroll-view-wrapper.data-v-ab8dee7b,
|
||||
.u-tabs__wrapper__scroll-view.data-v-ab8dee7b,
|
||||
.u-tabs__wrapper__nav.data-v-ab8dee7b,
|
||||
.u-tabs__wrapper__nav__line.data-v-ab8dee7b,
|
||||
.up-empty.data-v-ab8dee7b,
|
||||
.up-empty__wrap.data-v-ab8dee7b,
|
||||
.up-tabs.data-v-ab8dee7b,
|
||||
.up-tabs__wrapper.data-v-ab8dee7b,
|
||||
.up-tabs__wrapper__scroll-view-wrapper.data-v-ab8dee7b,
|
||||
.up-tabs__wrapper__scroll-view.data-v-ab8dee7b,
|
||||
.up-tabs__wrapper__nav.data-v-ab8dee7b,
|
||||
.up-tabs__wrapper__nav__line.data-v-ab8dee7b {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-shrink: 0;
|
||||
flex-grow: 0;
|
||||
flex-basis: auto;
|
||||
align-items: stretch;
|
||||
align-content: flex-start;
|
||||
}
|
||||
.u-notice.data-v-ab8dee7b {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.u-notice__left-icon.data-v-ab8dee7b {
|
||||
align-items: center;
|
||||
margin-right: 5px;
|
||||
}
|
||||
.u-notice__right-icon.data-v-ab8dee7b {
|
||||
margin-left: 5px;
|
||||
align-items: center;
|
||||
}
|
||||
.u-notice__content.data-v-ab8dee7b {
|
||||
text-align: right;
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: nowrap;
|
||||
overflow: hidden;
|
||||
}
|
||||
.u-notice__content__text.data-v-ab8dee7b {
|
||||
font-size: 14px;
|
||||
color: #f9ae3d;
|
||||
padding-left: 100%;
|
||||
word-break: keep-all;
|
||||
white-space: nowrap;
|
||||
animation: u-loop-animation-ab8dee7b 10s linear infinite both;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
line-height: 100%;
|
||||
}
|
||||
@keyframes u-loop-animation-ab8dee7b {
|
||||
0% {
|
||||
transform: translate3d(0, 0, 0);
|
||||
}
|
||||
100% {
|
||||
transform: translate3d(-100%, 0, 0);
|
||||
}
|
||||
}
|
||||
@@ -513,6 +513,7 @@ exports.deepClone = deepClone;
|
||||
exports.deepMerge = deepMerge;
|
||||
exports.error = error;
|
||||
exports.formValidate = formValidate;
|
||||
exports.getPx = getPx;
|
||||
exports.getWindowInfo = getWindowInfo;
|
||||
exports.guid = guid;
|
||||
exports.index = index;
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
"use strict";
|
||||
const BASE_URL = "http://cl55un59859.vicp.fun:24346";
|
||||
const Authorization = "JETZ/vKlEkgrxD4f14YBDNjmh2i2KoPF2ToNtDnIqtHV33tZdyZU8YfMBZV+5OT2cCc5URvFuhE9jCbnDScnjV/QtJMZK57dVWL9nmkByJ1epgDjkOO0w9gN8hVmcnDl8Rt415b2PDfagNmTZ6yThBGEjA+9w4rnkDQxec6SI/EcYDjX5EDQC8WQd3+1jyyfSrVpNOktB1/wlkP9B1VUATCD3agxQG5BrUvLWxiCPre12/mHv2N9cnNbgbu698RaWF2LsvULRGNciS0OJJYaKz7RPCZnA4C34C1m85beBgrrvJUaJtimlB9GU9c9NX5atdc3z/gRbVaEXhv24mpQVA==";
|
||||
const BASE_URL = "https://frontend.jdns360.com/api";
|
||||
const Authorization = "bxboAtH04huysyO1DO2E4FNomvQaFItp0gzHRv0aM+Hx4Rb9pijiAlWdRPUtB4HUJrwa1yVGoKFyCmXGZYja9v+GPz+SFVnDJJk/yit2LLMxX85SpnzRzVySJSsDTBLSTrh5BhGPST2iymdcGvQAdNIW9gAQoeDGIr8o3ctgLF08cdJiEQc255Ql7LxdqiHgP/SgY2JUrlGxGzE5iXDETCmXCvBxqbxEzhe4JbgdEMlKjjA0jcFDam0ArHPD2CoHI7WemdJZDw2+OAokFnoSF8dMyt1G9+nHqD40iMcK5bG6BFUNJwVMFgIZvQz5OqotqaNKnq/80UNDyOyeaaj9Lw==";
|
||||
const CUSTOMER_SERVICE_PHONE_NUMBER = "138 8888 8888";
|
||||
const CLOUD_SERVICE_PHONE_NUMBER = "186 5566 5566";
|
||||
exports.Authorization = Authorization;
|
||||
exports.BASE_URL = BASE_URL;
|
||||
exports.CLOUD_SERVICE_PHONE_NUMBER = CLOUD_SERVICE_PHONE_NUMBER;
|
||||
exports.CUSTOMER_SERVICE_PHONE_NUMBER = CUSTOMER_SERVICE_PHONE_NUMBER;
|
||||
//# sourceMappingURL=../../.sourcemap/mp-weixin/utils/config.js.map
|
||||
|
||||
@@ -299,15 +299,15 @@ const NEWS_TYPE = [
|
||||
},
|
||||
{
|
||||
key: 3,
|
||||
value: "全球"
|
||||
},
|
||||
{
|
||||
key: 4,
|
||||
value: "交易币"
|
||||
value: "新闻"
|
||||
},
|
||||
{
|
||||
key: 5,
|
||||
value: "商学院"
|
||||
},
|
||||
{
|
||||
key: 4,
|
||||
value: "RWA资讯"
|
||||
}
|
||||
];
|
||||
exports.ACCOUNT_CATEGORY = ACCOUNT_CATEGORY;
|
||||
|
||||