@ -0,0 +1,13 @@ | |||
# 默认忽略的文件 | |||
/shelf/ | |||
/workspace.xml | |||
# 基于编辑器的 HTTP 客户端请求 | |||
/httpRequests/ | |||
# Datasource local storage ignored files | |||
/dataSources/ | |||
/dataSources.local.xml | |||
.idea | |||
package-lock.json | |||
node_modules/ | |||
unpackage/ | |||
pages/index/index.vue |
@ -0,0 +1,3 @@ | |||
 | |||
 |
@ -0,0 +1,15 @@ | |||
<template> | |||
<view class="test"> | |||
test | |||
</view> | |||
</template> | |||
<script setup> | |||
</script> | |||
<style lang="scss" scoped> | |||
.test { | |||
} | |||
</style> |
@ -1,3 +0,0 @@ | |||
 | |||
 |
@ -1,8 +0,0 @@ | |||
{ | |||
"hash": "d50560ef", | |||
"configHash": "327fc1ed", | |||
"lockfileHash": "e3b0c442", | |||
"browserHash": "0b09f77d", | |||
"optimized": {}, | |||
"chunks": {} | |||
} |
@ -1,3 +0,0 @@ | |||
{ | |||
"type": "module" | |||
} |
@ -1,27 +0,0 @@ | |||
"use strict"; | |||
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); | |||
const common_vendor = require("./common/vendor.js"); | |||
if (!Math) { | |||
"./pages/login/login.js"; | |||
"./pages/payment/payment.js"; | |||
"./pages/center/center.js"; | |||
} | |||
const _sfc_main = { | |||
onLaunch: function() { | |||
console.log("App Launch"); | |||
}, | |||
onShow: function() { | |||
console.log("App Show"); | |||
}, | |||
onHide: function() { | |||
console.log("App Hide"); | |||
} | |||
}; | |||
function createApp() { | |||
const app = common_vendor.createSSRApp(_sfc_main); | |||
return { | |||
app | |||
}; | |||
} | |||
createApp().app.mount("#app"); | |||
exports.createApp = createApp; |
@ -1,33 +0,0 @@ | |||
{ | |||
"pages": [ | |||
"pages/login/login", | |||
"pages/payment/payment", | |||
"pages/center/center" | |||
], | |||
"window": { | |||
"navigationBarTextStyle": "black", | |||
"navigationBarTitleText": "uni-app", | |||
"navigationBarBackgroundColor": "#F8F8F8", | |||
"backgroundColor": "#F8F8F8", | |||
"navigationStyle": "custom" | |||
}, | |||
"tabBar": { | |||
"backgroundColor": "white", | |||
"selectedColor": "#33a5fc", | |||
"list": [ | |||
{ | |||
"pagePath": "pages/payment/payment", | |||
"iconPath": "static/tabbar/1.png", | |||
"selectedIconPath": "static/tabbar/2.png", | |||
"text": "加油" | |||
}, | |||
{ | |||
"pagePath": "pages/center/center", | |||
"iconPath": "static/tabbar/3.png", | |||
"selectedIconPath": "static/tabbar/4.png", | |||
"text": "个人中心" | |||
} | |||
] | |||
}, | |||
"usingComponents": {} | |||
} |
@ -1,7 +0,0 @@ | |||
/*每个页面公共css */ | |||
.page { | |||
/* 手机状态栏高度 */ | |||
padding-top: var(--status-bar-height); | |||
} | |||
page{--status-bar-height:25px;--top-window-height:0px;--window-top:0px;--window-bottom:0px;--window-left:0px;--window-right:0px;--window-magin:0px}[data-c-h="true"]{display: none !important;} |
@ -1,3 +0,0 @@ | |||
"use strict"; | |||
const _imports_0 = "/static/payment/money.png"; | |||
exports._imports_0 = _imports_0; |
@ -1,40 +0,0 @@ | |||
"use strict"; | |||
const common_vendor = require("../../common/vendor.js"); | |||
const _sfc_main = { | |||
data() { | |||
return {}; | |||
}, | |||
methods: {} | |||
}; | |||
if (!Array) { | |||
const _easycom_uni_nav_bar2 = common_vendor.resolveComponent("uni-nav-bar"); | |||
const _easycom_uni_section2 = common_vendor.resolveComponent("uni-section"); | |||
(_easycom_uni_nav_bar2 + _easycom_uni_section2)(); | |||
} | |||
const _easycom_uni_nav_bar = () => "../../uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar.js"; | |||
const _easycom_uni_section = () => "../../uni_modules/uni-section/components/uni-section/uni-section.js"; | |||
if (!Math) { | |||
(_easycom_uni_nav_bar + _easycom_uni_section)(); | |||
} | |||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { | |||
return common_vendor.e({ | |||
a: common_vendor.p({ | |||
dark: true, | |||
fixed: true, | |||
["background-color"]: "#00aaff", | |||
border: false, | |||
["status-bar"]: true, | |||
title: "个人中心" | |||
}), | |||
b: common_vendor.p({ | |||
title: "我的订单", | |||
type: "line", | |||
titleFontSize: "34rpx" | |||
}), | |||
c: common_vendor.f(10, (item, k0, i0) => { | |||
return {}; | |||
}) | |||
}, {}); | |||
} | |||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-3f122818"]]); | |||
wx.createPage(MiniProgramPage); |
@ -1,7 +0,0 @@ | |||
{ | |||
"navigationBarTitleText": "个人中心", | |||
"usingComponents": { | |||
"uni-nav-bar": "../../uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar", | |||
"uni-section": "../../uni_modules/uni-section/components/uni-section/uni-section" | |||
} | |||
} |
@ -1 +0,0 @@ | |||
<uni-nav-bar wx:if="{{a}}" class="data-v-3f122818" u-i="3f122818-0" bind:__l="__l" u-p="{{a}}"/><view class="content data-v-3f122818"><view class="topBox data-v-3f122818"><view class="users data-v-3f122818"><view class="u-top data-v-3f122818"><image class="data-v-3f122818" src="https://img2.baidu.com/it/u=2953585264,744730101&fm=253&fmt=auto&app=138&f=JPEG?w=360&h=360" mode=""></image><view class="tit data-v-3f122818"> 登录 / 注册 </view></view></view></view><view class="listBox data-v-3f122818"><view class="lists data-v-3f122818"><uni-section wx:if="{{b}}" class="data-v-3f122818" style="border-radius:10rpx" u-i="3f122818-1" bind:__l="__l" u-p="{{b}}"></uni-section><view class="order-list data-v-3f122818"><view wx:for="{{c}}" wx:for-item="item" class="order-item data-v-3f122818"><view class="order-item-top data-v-3f122818"><view class="order-id data-v-3f122818">420000243620240</view><view class="time data-v-3f122818">2024-12-12 12:12</view></view><view class="order-item-main data-v-3f122818"><view class="title data-v-3f122818">付款金额</view><view class="money-detail data-v-3f122818"><view class="unie data-v-3f122818">¥</view><view class="number data-v-3f122818">666</view></view></view></view></view><view wx:if="{{false}}" class="no-data data-v-3f122818"><image class="data-v-3f122818" src="{{d}}" mode=""></image></view></view></view></view> |
@ -1,142 +0,0 @@ | |||
.content.data-v-3f122818 { | |||
background: #F1F5F8; | |||
min-height: 100vh; | |||
} | |||
/* 弧形背景 */ | |||
.topBox.data-v-3f122818 { | |||
width: 100%; | |||
position: relative; | |||
z-index: 1; | |||
overflow: hidden; | |||
padding: 60rpx 20rpx 20rpx; | |||
box-sizing: border-box; | |||
} | |||
.topBox.data-v-3f122818::after { | |||
content: ""; | |||
width: 140%; | |||
height: 100px; | |||
position: absolute; | |||
left: -20%; | |||
top: 0; | |||
z-index: -1; | |||
border-radius: 0 0 30% 50%; | |||
background: #00aaff; | |||
} | |||
.txt.data-v-3f122818 { | |||
color: #fff; | |||
font-size: 30rpx; | |||
} | |||
.set-right .uni-icons.data-v-3f122818 { | |||
margin-right: 10rpx; | |||
} | |||
.users.data-v-3f122818 { | |||
display: flex; | |||
align-items: center; | |||
margin-top: 0rpx; | |||
padding: 0rpx 30rpx; | |||
box-sizing: border-box; | |||
height: 200rpx; | |||
background-color: #fff; | |||
box-shadow: 1px 10rpx 20rpx #ececec; | |||
border-radius: 12rpx; | |||
} | |||
.u-top.data-v-3f122818 { | |||
display: flex; | |||
justify-content: flex-start; | |||
align-items: center; | |||
} | |||
.users .u-top image.data-v-3f122818 { | |||
width: 130rpx; | |||
height: 130rpx; | |||
border-radius: 50%; | |||
margin-right: 20rpx; | |||
} | |||
.u-top .tit.data-v-3f122818 { | |||
font-size: 30rpx; | |||
font-weight: 700; | |||
color: #333; | |||
} | |||
.u-item.data-v-3f122818 { | |||
text-align: center; | |||
} | |||
.u-item .u-tit.data-v-3f122818 { | |||
color: #757575; | |||
font-size: 26rpx; | |||
margin-top: 10rpx; | |||
} | |||
.u-item .num.data-v-3f122818 { | |||
color: #000000; | |||
font-size: 33rpx; | |||
font-weight: 700; | |||
} | |||
.bottomBox.data-v-3f122818 { | |||
padding: 20rpx; | |||
box-sizing: border-box; | |||
} | |||
.order-list.data-v-3f122818 { | |||
padding-top: 20rpx; | |||
} | |||
.order-item.data-v-3f122818 { | |||
width: 100%; | |||
background: white; | |||
border-radius: 20rpx; | |||
margin-bottom: 20rpx; | |||
} | |||
.order-item .order-item-top.data-v-3f122818 { | |||
display: flex; | |||
align-items: center; | |||
justify-content: space-between; | |||
height: 80rpx; | |||
font-size: 24rpx; | |||
box-sizing: border-box; | |||
padding: 0rpx 20rpx; | |||
} | |||
.order-item .order-item-main.data-v-3f122818 { | |||
padding: 60rpx 0rpx; | |||
display: flex; | |||
flex-direction: column; | |||
align-items: center; | |||
} | |||
.order-item-main .title.data-v-3f122818 { | |||
color: #5a5a5a; | |||
} | |||
.order-item-main .money-detail.data-v-3f122818 { | |||
display: flex; | |||
align-items: center; | |||
margin-top: 20rpx; | |||
} | |||
.money-detail .unit.data-v-3f122818 { | |||
font-size: 34rpx; | |||
} | |||
.money-detail .number.data-v-3f122818 { | |||
font-size: 60rpx; | |||
} | |||
.no-data.data-v-3f122818 { | |||
padding: 30rpx; | |||
box-sizing: border-box; | |||
background-color: #fff; | |||
display: flex; | |||
justify-content: space-around; | |||
align-items: center; | |||
} | |||
.o-item.data-v-3f122818 { | |||
width: 25%; | |||
text-align: center; | |||
} | |||
.o-item image.data-v-3f122818 { | |||
width: 65rpx; | |||
height: 55rpx; | |||
} | |||
.o-item .tit.data-v-3f122818 { | |||
font-size: 28rpx; | |||
margin-top: 10rpx; | |||
} | |||
.listBox.data-v-3f122818 { | |||
margin: -10rpx auto 0; | |||
padding: 20rpx; | |||
box-sizing: border-box; | |||
border-radius: 12rpx; | |||
border-radius: 20rpx; | |||
} |
@ -1,50 +0,0 @@ | |||
"use strict"; | |||
const common_vendor = require("../../common/vendor.js"); | |||
const _sfc_main = { | |||
data() { | |||
return {}; | |||
}, | |||
methods: { | |||
//登录 | |||
login() { | |||
common_vendor.index.switchTab({ | |||
url: "/pages/payment/payment" | |||
}); | |||
} | |||
} | |||
}; | |||
if (!Array) { | |||
const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); | |||
_easycom_uni_icons2(); | |||
} | |||
const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; | |||
if (!Math) { | |||
_easycom_uni_icons(); | |||
} | |||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { | |||
return { | |||
a: common_vendor.p({ | |||
type: "contact", | |||
size: "24", | |||
color: "rgb(66,157,250)" | |||
}), | |||
b: common_vendor.p({ | |||
type: "eye", | |||
size: "24", | |||
color: "rgb(66,157,250)" | |||
}), | |||
c: common_vendor.p({ | |||
type: "checkmarkempty", | |||
size: "24", | |||
color: "rgb(66,157,250)" | |||
}), | |||
d: common_vendor.o((...args) => $options.login && $options.login(...args)), | |||
e: common_vendor.p({ | |||
type: "weixin", | |||
size: "40", | |||
color: "rgb(2,187,17)" | |||
}) | |||
}; | |||
} | |||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-e4e4508d"]]); | |||
wx.createPage(MiniProgramPage); |
@ -1,6 +0,0 @@ | |||
{ | |||
"navigationBarTitleText": "登录", | |||
"usingComponents": { | |||
"uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons" | |||
} | |||
} |
@ -1 +0,0 @@ | |||
<view class="content data-v-e4e4508d"><view class="loginBox data-v-e4e4508d"><view class="data-v-e4e4508d" style="text-align:center;margin-bottom:120rpx">欢迎登录</view><view class="inputBox data-v-e4e4508d"><view class="ipt data-v-e4e4508d"><uni-icons wx:if="{{a}}" class="data-v-e4e4508d" u-i="e4e4508d-0" bind:__l="__l" u-p="{{a}}"></uni-icons><input class="data-v-e4e4508d" type="text" value="" placeholder="请输入手机号"/></view><view class="ipt data-v-e4e4508d"><uni-icons wx:if="{{b}}" class="data-v-e4e4508d" u-i="e4e4508d-1" bind:__l="__l" u-p="{{b}}"></uni-icons><input class="data-v-e4e4508d" type="passsword" value="" placeholder="请输入密码"/></view><view class="ipt data-v-e4e4508d"><uni-icons wx:if="{{c}}" class="data-v-e4e4508d" u-i="e4e4508d-2" bind:__l="__l" u-p="{{c}}"></uni-icons><input class="data-v-e4e4508d" type="text" value="" placeholder="请输入验证码"/><view class="yzm data-v-e4e4508d"> 验证码 </view></view><button class="data-v-e4e4508d" bindtap="{{d}}">登录</button><view class="forgetPwd data-v-e4e4508d"></view></view><view class="tipbox data-v-e4e4508d"><view class="txt data-v-e4e4508d"> —— 其他账号登录 —— </view><view class="otherUser data-v-e4e4508d"><uni-icons wx:if="{{e}}" class="data-v-e4e4508d" u-i="e4e4508d-3" bind:__l="__l" u-p="{{e}}"></uni-icons></view></view></view></view> |
@ -1,99 +0,0 @@ | |||
svg.data-v-e4e4508d { | |||
position: absolute; | |||
bottom: 0; | |||
left: 0; | |||
width: 100%; | |||
height: 40%; | |||
box-sizing: border-box; | |||
display: block; | |||
background-color: #ffffff; | |||
} | |||
.loginBox.data-v-e4e4508d { | |||
position: absolute; | |||
top: 50%; | |||
left: 50%; | |||
transform: translate(-50%, -60%); | |||
width: 90%; | |||
border-radius: 20rpx; | |||
padding: 60rpx; | |||
box-sizing: border-box; | |||
} | |||
h3.data-v-e4e4508d { | |||
color: rgb(66, 157, 250); | |||
font-size: 40rpx; | |||
letter-spacing: 10rpx; | |||
margin-bottom: 40rpx; | |||
} | |||
.inputBox.data-v-e4e4508d {} | |||
.ipt.data-v-e4e4508d { | |||
height: 86rpx; | |||
display: flex; | |||
justify-content: flex-start; | |||
align-items: center; | |||
margin-bottom: 40rpx; | |||
background-color: #f5f5f5; | |||
border-radius: 10rpx; | |||
padding-left: 10rpx; | |||
} | |||
.ipt input.data-v-e4e4508d { | |||
margin-left: 20rpx; | |||
font-size: 28rpx; | |||
} | |||
.ipt input.data-v-e4e4508d { | |||
margin-left: 20rpx; | |||
} | |||
.forgetPwd.data-v-e4e4508d { | |||
margin-top: 30rpx; | |||
font-size: 26rpx; | |||
color: #b5b5b5; | |||
text-align: end; | |||
padding: 0 10rpx; | |||
display: flex; | |||
justify-content: space-between; | |||
} | |||
button.data-v-e4e4508d { | |||
margin-top: 20rpx; | |||
line-height: 85rpx; | |||
text-align: center; | |||
background: rgb(66, 157, 250); | |||
border-radius: 40rpx; | |||
color: #fff; | |||
margin-top: 40rpx; | |||
} | |||
.tip.data-v-e4e4508d { | |||
text-align: center; | |||
font-size: 28rpx; | |||
position: fixed; | |||
bottom: 50rpx; | |||
left: 50%; | |||
transform: translate(-50%, -50%); | |||
color: #f4f4f4; | |||
} | |||
.tipbox.data-v-e4e4508d { | |||
text-align: center; | |||
margin-top: 100rpx; | |||
} | |||
.otherUser.data-v-e4e4508d { | |||
margin-top: 30rpx; | |||
display: flex; | |||
justify-content: center; | |||
} | |||
.txt.data-v-e4e4508d { | |||
font-size: 28rpx; | |||
color: #cbcbcb; | |||
} | |||
.otherUser .uni-icons.data-v-e4e4508d { | |||
margin-left: 20rpx; | |||
} | |||
.yzm.data-v-e4e4508d { | |||
text-align: end; | |||
font-size: 24rpx; | |||
background: linear-gradient(to right, rgb(66, 157, 250), rgb(0, 170, 127)); | |||
height: 60rpx; | |||
width: 150rpx; | |||
line-height: 60rpx; | |||
text-align: center; | |||
border-radius: 10rpx; | |||
color: #fff; | |||
} |
@ -1,62 +0,0 @@ | |||
"use strict"; | |||
const common_vendor = require("../../common/vendor.js"); | |||
const common_assets = require("../../common/assets.js"); | |||
if (!Array) { | |||
const _easycom_uni_nav_bar2 = common_vendor.resolveComponent("uni-nav-bar"); | |||
const _easycom_uni_section2 = common_vendor.resolveComponent("uni-section"); | |||
(_easycom_uni_nav_bar2 + _easycom_uni_section2)(); | |||
} | |||
const _easycom_uni_nav_bar = () => "../../uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar.js"; | |||
const _easycom_uni_section = () => "../../uni_modules/uni-section/components/uni-section/uni-section.js"; | |||
if (!Math) { | |||
(_easycom_uni_nav_bar + _easycom_uni_section)(); | |||
} | |||
const _sfc_main = { | |||
__name: "payment", | |||
setup(__props) { | |||
const form = common_vendor.reactive({ | |||
money: "" | |||
}); | |||
const index = common_vendor.ref(0); | |||
function selectMoney(money, item) { | |||
form.money = money; | |||
index.value = item; | |||
} | |||
function focus() { | |||
} | |||
return (_ctx, _cache) => { | |||
return common_vendor.e({ | |||
a: common_vendor.p({ | |||
dark: true, | |||
fixed: true, | |||
["background-color"]: "#00aaff", | |||
border: false, | |||
["status-bar"]: true, | |||
title: "加油" | |||
}), | |||
b: common_vendor.p({ | |||
title: "输入金额", | |||
type: "line", | |||
titleFontSize: "34rpx" | |||
}), | |||
c: common_assets._imports_0, | |||
d: common_vendor.o(focus), | |||
e: form.money, | |||
f: common_vendor.o(($event) => form.money = $event.detail.value), | |||
g: form.money | |||
}, form.money ? { | |||
h: common_vendor.t(form.money * 0.99) | |||
} : {}, { | |||
i: common_vendor.f(3, (item, k0, i0) => { | |||
return { | |||
a: common_vendor.t(item * 100), | |||
b: common_vendor.o(($event) => selectMoney(item * 100, item)), | |||
c: index.value == item ? 1 : "" | |||
}; | |||
}) | |||
}); | |||
}; | |||
} | |||
}; | |||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-eade9ab2"]]); | |||
wx.createPage(MiniProgramPage); |
@ -1,7 +0,0 @@ | |||
{ | |||
"navigationBarTitleText": "支付", | |||
"usingComponents": { | |||
"uni-nav-bar": "../../uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar", | |||
"uni-section": "../../uni_modules/uni-section/components/uni-section/uni-section" | |||
} | |||
} |
@ -1 +0,0 @@ | |||
<view class="payment data-v-eade9ab2"><uni-nav-bar wx:if="{{a}}" class="data-v-eade9ab2" u-i="eade9ab2-0" bind:__l="__l" u-p="{{a}}"/><view class="container data-v-eade9ab2"><uni-section wx:if="{{b}}" class="data-v-eade9ab2" u-i="eade9ab2-1" bind:__l="__l" u-p="{{b}}"></uni-section><view class="money-input data-v-eade9ab2"><image class="data-v-eade9ab2" src="{{c}}" mode="widthFix"></image><input class="data-v-eade9ab2" bindfocus="{{d}}" placeholder="请输入加油金额" type="number" value="{{e}}" bindinput="{{f}}"/></view><view wx:if="{{g}}" class="tip data-v-eade9ab2"> 折后共计{{h}}元 </view><view class="select-money data-v-eade9ab2"><view wx:for="{{i}}" wx:for-item="item" class="money-item data-v-eade9ab2"><view bindtap="{{item.b}}" class="{{[item.c && 'active-money', 'money', 'data-v-eade9ab2']}}"><view class="unit data-v-eade9ab2">¥</view><view class="number data-v-eade9ab2">{{item.a}}</view></view></view></view><view class="sumit data-v-eade9ab2">提交订单</view></view></view> |
@ -1,75 +0,0 @@ | |||
.payment.data-v-eade9ab2 { | |||
height: 100vh; | |||
background: #F1F5F8; | |||
width: 750rpx; | |||
margin: 0 auto; | |||
} | |||
.container.data-v-eade9ab2 { | |||
width: 96%; | |||
margin: 0rpx auto; | |||
border-radius: 20rpx; | |||
box-sizing: border-box; | |||
padding: 20rpx; | |||
overflow: hidden; | |||
background: white; | |||
margin-top: 20rpx; | |||
} | |||
.money-input.data-v-eade9ab2 { | |||
display: flex; | |||
align-items: center; | |||
background: #F6F7FB; | |||
padding: 30rpx 10rpx; | |||
border-radius: 20rpx; | |||
} | |||
.tip.data-v-eade9ab2 { | |||
color: #00aaff; | |||
margin-top: 10rpx; | |||
} | |||
.money-input image.data-v-eade9ab2 { | |||
width: 45rpx; | |||
} | |||
.money-input input.data-v-eade9ab2 { | |||
font-size: 36rpx; | |||
} | |||
.select-money.data-v-eade9ab2 { | |||
display: flex; | |||
justify-content: space-between; | |||
flex-wrap: wrap; | |||
margin: 30rpx 0rpx; | |||
} | |||
.select-money .money-item.data-v-eade9ab2 { | |||
width: 32.33%; | |||
background: #F1F5F8; | |||
border-radius: 20rpx; | |||
margin-bottom: 20rpx; | |||
overflow: hidden; | |||
} | |||
.select-money .money.data-v-eade9ab2 { | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
padding: 30rpx 0rpx; | |||
box-sizing: border-box; | |||
color: #5D5C61; | |||
} | |||
.select-money .active-money.data-v-eade9ab2 { | |||
background: #00aaff; | |||
color: white; | |||
} | |||
.select-money .unit.data-v-eade9ab2 { | |||
font-size: 26rpx; | |||
} | |||
.select-money .number.data-v-eade9ab2 { | |||
font-size: 34rpx; | |||
} | |||
.sumit.data-v-eade9ab2 { | |||
background: #33a5fc; | |||
color: white; | |||
font-size: 36rpx; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
height: 80rpx; | |||
border-radius: 20rpx; | |||
} |
@ -1,29 +0,0 @@ | |||
{ | |||
"description": "项目配置文件。", | |||
"packOptions": { | |||
"ignore": [], | |||
"include": [] | |||
}, | |||
"setting": { | |||
"urlCheck": false, | |||
"es6": true, | |||
"postcss": false, | |||
"minified": false, | |||
"newFeature": true, | |||
"bigPackageSizeSupport": true, | |||
"babelSetting": { | |||
"ignore": [], | |||
"disablePlugins": [], | |||
"outputPath": "" | |||
} | |||
}, | |||
"compileType": "miniprogram", | |||
"libVersion": "3.5.5", | |||
"appid": "touristappid", | |||
"projectname": "gas-station-applet", | |||
"condition": {}, | |||
"editorSetting": { | |||
"tabIndent": "insertSpaces", | |||
"tabSize": 2 | |||
} | |||
} |
@ -1,7 +0,0 @@ | |||
{ | |||
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", | |||
"projectname": "gas-station-applet", | |||
"setting": { | |||
"compileHotReLoad": true | |||
} | |||
} |
@ -1,72 +0,0 @@ | |||
"use strict"; | |||
const uni_modules_uniIcons_components_uniIcons_uniicons_file_vue = require("./uniicons_file_vue.js"); | |||
const common_vendor = require("../../../../common/vendor.js"); | |||
const getVal = (val) => { | |||
const reg = /^[0-9]*$/g; | |||
return typeof val === "number" || reg.test(val) ? val + "px" : val; | |||
}; | |||
const _sfc_main = { | |||
name: "UniIcons", | |||
emits: ["click"], | |||
props: { | |||
type: { | |||
type: String, | |||
default: "" | |||
}, | |||
color: { | |||
type: String, | |||
default: "#333333" | |||
}, | |||
size: { | |||
type: [Number, String], | |||
default: 16 | |||
}, | |||
customPrefix: { | |||
type: String, | |||
default: "" | |||
}, | |||
fontFamily: { | |||
type: String, | |||
default: "" | |||
} | |||
}, | |||
data() { | |||
return { | |||
icons: uni_modules_uniIcons_components_uniIcons_uniicons_file_vue.fontData | |||
}; | |||
}, | |||
computed: { | |||
unicode() { | |||
let code = this.icons.find((v) => v.font_class === this.type); | |||
if (code) { | |||
return code.unicode; | |||
} | |||
return ""; | |||
}, | |||
iconSize() { | |||
return getVal(this.size); | |||
}, | |||
styleObj() { | |||
if (this.fontFamily !== "") { | |||
return `color: ${this.color}; font-size: ${this.iconSize}; font-family: ${this.fontFamily};`; | |||
} | |||
return `color: ${this.color}; font-size: ${this.iconSize};`; | |||
} | |||
}, | |||
methods: { | |||
_onClick() { | |||
this.$emit("click"); | |||
} | |||
} | |||
}; | |||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { | |||
return { | |||
a: common_vendor.s($options.styleObj), | |||
b: common_vendor.n("uniui-" + $props.type), | |||
c: common_vendor.n($props.customPrefix), | |||
d: common_vendor.n($props.customPrefix ? $props.type : ""), | |||
e: common_vendor.o((...args) => $options._onClick && $options._onClick(...args)) | |||
}; | |||
} | |||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]); | |||
wx.createComponent(Component); |
@ -1,4 +0,0 @@ | |||
{ | |||
"component": true, | |||
"usingComponents": {} | |||
} |
@ -1 +0,0 @@ | |||
<text style="{{a}}" class="{{['uni-icons', b, c, d]}}" bindtap="{{e}}"><slot></slot></text> |
@ -1,648 +0,0 @@ | |||
"use strict"; | |||
const fontData = [ | |||
{ | |||
"font_class": "arrow-down", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "arrow-left", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "arrow-right", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "arrow-up", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "auth", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "auth-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "back", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "bars", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "calendar", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "calendar-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "camera", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "camera-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "cart", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "cart-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "chat", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "chat-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "chatboxes", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "chatboxes-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "chatbubble", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "chatbubble-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "checkbox", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "checkbox-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "checkmarkempty", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "circle", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "circle-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "clear", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "close", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "closeempty", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "cloud-download", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "cloud-download-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "cloud-upload", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "cloud-upload-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "color", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "color-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "compose", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "contact", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "contact-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "down", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "bottom", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "download", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "download-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "email", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "email-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "eye", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "eye-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "eye-slash", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "eye-slash-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "fire", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "fire-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "flag", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "flag-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "folder-add", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "folder-add-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "font", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "forward", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "gear", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "gear-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "gift", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "gift-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "hand-down", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "hand-down-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "hand-up", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "hand-up-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "headphones", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "heart", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "heart-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "help", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "help-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "home", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "home-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "image", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "image-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "images", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "images-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "info", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "info-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "left", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "link", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "list", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "location", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "location-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "locked", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "locked-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "loop", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "mail-open", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "mail-open-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "map", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "map-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "map-pin", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "map-pin-ellipse", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "medal", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "medal-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "mic", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "mic-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "micoff", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "micoff-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "minus", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "minus-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "more", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "more-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "navigate", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "navigate-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "notification", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "notification-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "paperclip", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "paperplane", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "paperplane-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "person", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "person-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "personadd", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "personadd-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "personadd-filled-copy", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "phone", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "phone-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "plus", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "plus-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "plusempty", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "pulldown", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "pyq", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "qq", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "redo", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "redo-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "refresh", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "refresh-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "refreshempty", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "reload", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "right", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "scan", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "search", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "settings", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "settings-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "shop", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "shop-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "smallcircle", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "smallcircle-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "sound", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "sound-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "spinner-cycle", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "staff", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "staff-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "star", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "star-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "starhalf", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "trash", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "trash-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "tune", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "tune-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "undo", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "undo-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "up", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "top", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "upload", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "upload-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "videocam", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "videocam-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "vip", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "vip-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "wallet", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "wallet-filled", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "weibo", | |||
"unicode": "" | |||
}, | |||
{ | |||
"font_class": "weixin", | |||
"unicode": "" | |||
} | |||
]; | |||
exports.fontData = fontData; |
@ -1,194 +0,0 @@ | |||
"use strict"; | |||
const common_vendor = require("../../../../common/vendor.js"); | |||
const statusBar = () => "./uni-status-bar.js"; | |||
const getVal = (val) => typeof val === "number" ? val + "px" : val; | |||
const _sfc_main = { | |||
name: "UniNavBar", | |||
components: { | |||
statusBar | |||
}, | |||
emits: ["clickLeft", "clickRight", "clickTitle"], | |||
props: { | |||
dark: { | |||
type: Boolean, | |||
default: false | |||
}, | |||
title: { | |||
type: String, | |||
default: "" | |||
}, | |||
leftText: { | |||
type: String, | |||
default: "" | |||
}, | |||
rightText: { | |||
type: String, | |||
default: "" | |||
}, | |||
leftIcon: { | |||
type: String, | |||
default: "" | |||
}, | |||
rightIcon: { | |||
type: String, | |||
default: "" | |||
}, | |||
fixed: { | |||
type: [Boolean, String], | |||
default: false | |||
}, | |||
color: { | |||
type: String, | |||
default: "" | |||
}, | |||
backgroundColor: { | |||
type: String, | |||
default: "" | |||
}, | |||
statusBar: { | |||
type: [Boolean, String], | |||
default: false | |||
}, | |||
shadow: { | |||
type: [Boolean, String], | |||
default: false | |||
}, | |||
border: { | |||
type: [Boolean, String], | |||
default: true | |||
}, | |||
height: { | |||
type: [Number, String], | |||
default: 44 | |||
}, | |||
leftWidth: { | |||
type: [Number, String], | |||
default: 60 | |||
}, | |||
rightWidth: { | |||
type: [Number, String], | |||
default: 60 | |||
}, | |||
stat: { | |||
type: [Boolean, String], | |||
default: "" | |||
} | |||
}, | |||
computed: { | |||
themeBgColor() { | |||
if (this.dark) { | |||
if (this.backgroundColor) { | |||
return this.backgroundColor; | |||
} else { | |||
return this.dark ? "#333" : "#FFF"; | |||
} | |||
} | |||
return this.backgroundColor || "#FFF"; | |||
}, | |||
themeColor() { | |||
if (this.dark) { | |||
if (this.color) { | |||
return this.color; | |||
} else { | |||
return this.dark ? "#fff" : "#333"; | |||
} | |||
} | |||
return this.color || "#333"; | |||
}, | |||
navbarHeight() { | |||
return getVal(this.height); | |||
}, | |||
leftIconWidth() { | |||
return getVal(this.leftWidth); | |||
}, | |||
rightIconWidth() { | |||
return getVal(this.rightWidth); | |||
} | |||
}, | |||
mounted() { | |||
if (common_vendor.index.report && this.stat && this.title !== "") { | |||
common_vendor.index.report("title", this.title); | |||
} | |||
}, | |||
methods: { | |||
onClickLeft() { | |||
this.$emit("clickLeft"); | |||
}, | |||
onClickRight() { | |||
this.$emit("clickRight"); | |||
}, | |||
onClickTitle() { | |||
this.$emit("clickTitle"); | |||
} | |||
} | |||
}; | |||
if (!Array) { | |||
const _component_status_bar = common_vendor.resolveComponent("status-bar"); | |||
const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); | |||
(_component_status_bar + _easycom_uni_icons2)(); | |||
} | |||
const _easycom_uni_icons = () => "../../../uni-icons/components/uni-icons/uni-icons.js"; | |||
if (!Math) { | |||
_easycom_uni_icons(); | |||
} | |||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { | |||
return common_vendor.e({ | |||
a: $props.statusBar | |||
}, $props.statusBar ? {} : {}, { | |||
b: $props.leftIcon.length > 0 | |||
}, $props.leftIcon.length > 0 ? { | |||
c: common_vendor.p({ | |||
color: $options.themeColor, | |||
type: $props.leftIcon, | |||
size: "20" | |||
}) | |||
} : {}, { | |||
d: $props.leftText.length | |||
}, $props.leftText.length ? { | |||
e: common_vendor.t($props.leftText), | |||
f: $options.themeColor, | |||
g: !$props.leftIcon.length > 0 ? 1 : "" | |||
} : {}, { | |||
h: common_vendor.o((...args) => $options.onClickLeft && $options.onClickLeft(...args)), | |||
i: $options.leftIconWidth, | |||
j: $props.title.length > 0 | |||
}, $props.title.length > 0 ? { | |||
k: common_vendor.t($props.title), | |||
l: $options.themeColor | |||
} : {}, { | |||
m: common_vendor.o((...args) => $options.onClickTitle && $options.onClickTitle(...args)), | |||
n: $props.rightIcon.length | |||
}, $props.rightIcon.length ? { | |||
o: common_vendor.p({ | |||
color: $options.themeColor, | |||
type: $props.rightIcon, | |||
size: "22" | |||
}) | |||
} : {}, { | |||
p: $props.rightText.length && !$props.rightIcon.length | |||
}, $props.rightText.length && !$props.rightIcon.length ? { | |||
q: common_vendor.t($props.rightText), | |||
r: $options.themeColor | |||
} : {}, { | |||
s: common_vendor.o((...args) => $options.onClickRight && $options.onClickRight(...args)), | |||
t: $options.rightIconWidth, | |||
v: $options.themeColor, | |||
w: $options.themeBgColor, | |||
x: $options.navbarHeight, | |||
y: $props.fixed ? 1 : "", | |||
z: $props.shadow ? 1 : "", | |||
A: $props.border ? 1 : "", | |||
B: $options.themeBgColor, | |||
C: $options.themeColor, | |||
D: $props.fixed | |||
}, $props.fixed ? common_vendor.e({ | |||
E: $props.statusBar | |||
}, $props.statusBar ? {} : {}, { | |||
F: $options.navbarHeight | |||
}) : {}, { | |||
G: $props.dark ? 1 : "", | |||
H: $props.fixed ? 1 : "" | |||
}); | |||
} | |||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-26544265"]]); | |||
wx.createComponent(Component); |
@ -1,7 +0,0 @@ | |||
{ | |||
"component": true, | |||
"usingComponents": { | |||
"status-bar": "./uni-status-bar", | |||
"uni-icons": "../../../uni-icons/components/uni-icons/uni-icons" | |||
} | |||
} |
@ -1 +0,0 @@ | |||
<view class="{{['uni-navbar', 'data-v-26544265', G && 'uni-dark', H && 'uni-nvue-fixed']}}"><view class="{{['uni-navbar__content', 'data-v-26544265', y && 'uni-navbar--fixed', z && 'uni-navbar--shadow', A && 'uni-navbar--border']}}" style="{{'background-color:' + B + ';' + ('border-bottom-color:' + C)}}"><status-bar wx:if="{{a}}" class="data-v-26544265" u-i="26544265-0" bind:__l="__l"/><view style="{{'color:' + v + ';' + ('background-color:' + w) + ';' + ('height:' + x)}}" class="uni-navbar__header data-v-26544265"><view bindtap="{{h}}" class="uni-navbar__header-btns uni-navbar__header-btns-left data-v-26544265" style="{{'width:' + i}}"><block wx:if="{{$slots.left}}"><slot name="left"></slot></block><block wx:else><view wx:if="{{b}}" class="uni-navbar__content_view data-v-26544265"><uni-icons wx:if="{{c}}" class="data-v-26544265" u-i="26544265-1" bind:__l="__l" u-p="{{c}}"/></view><view wx:if="{{d}}" class="{{[g && 'uni-navbar-btn-icon-left', 'uni-navbar-btn-text', 'data-v-26544265']}}"><text class="data-v-26544265" style="{{'color:' + f + ';' + ('font-size:' + '12px')}}">{{e}}</text></view></block></view><view class="uni-navbar__header-container data-v-26544265" bindtap="{{m}}"><block wx:if="{{$slots.d}}"><slot></slot></block><block wx:else><view wx:if="{{j}}" class="uni-navbar__header-container-inner data-v-26544265"><text class="uni-nav-bar-text uni-ellipsis-1 data-v-26544265" style="{{'color:' + l}}">{{k}}</text></view></block></view><view bindtap="{{s}}" class="uni-navbar__header-btns uni-navbar__header-btns-right data-v-26544265" style="{{'width:' + t}}"><block wx:if="{{$slots.right}}"><slot name="right"></slot></block><block wx:else><view wx:if="{{n}}" class="data-v-26544265"><uni-icons wx:if="{{o}}" class="data-v-26544265" u-i="26544265-2" bind:__l="__l" u-p="{{o}}"/></view><view wx:if="{{p}}" class="uni-navbar-btn-text data-v-26544265"><text class="uni-nav-bar-right-text data-v-26544265" style="{{'color:' + r}}">{{q}}</text></view></block></view></view></view><view wx:if="{{D}}" class="uni-navbar__placeholder data-v-26544265"><status-bar wx:if="{{E}}" class="data-v-26544265" u-i="26544265-3" bind:__l="__l"/><view class="uni-navbar__placeholder-view data-v-26544265" style="{{'height:' + F}}"/></view></view> |
@ -1,107 +0,0 @@ | |||
/** | |||
* 这里是uni-app内置的常用样式变量 | |||
* | |||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 | |||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App | |||
* | |||
*/ | |||
/** | |||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 | |||
* | |||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 | |||
*/ | |||
/* 颜色变量 */ | |||
/* 行为相关颜色 */ | |||
/* 文字基本颜色 */ | |||
/* 背景颜色 */ | |||
/* 边框颜色 */ | |||
/* 尺寸变量 */ | |||
/* 文字尺寸 */ | |||
/* 图片尺寸 */ | |||
/* Border Radius */ | |||
/* 水平间距 */ | |||
/* 垂直间距 */ | |||
/* 透明度 */ | |||
/* 文章场景相关 */ | |||
.uni-nav-bar-text.data-v-26544265 { | |||
font-size: 14px; | |||
} | |||
.uni-nav-bar-right-text.data-v-26544265 { | |||
font-size: 12px; | |||
} | |||
.uni-navbar__content.data-v-26544265 { | |||
position: relative; | |||
background-color: transparent; | |||
} | |||
.uni-navbar-btn-text.data-v-26544265 { | |||
display: flex; | |||
flex-direction: column; | |||
justify-content: flex-start; | |||
align-items: center; | |||
line-height: 12px; | |||
} | |||
.uni-navbar__header.data-v-26544265 { | |||
display: flex; | |||
padding: 0 10px; | |||
flex-direction: row; | |||
height: 44px; | |||
font-size: 12px; | |||
} | |||
.uni-navbar__header-btns.data-v-26544265 { | |||
overflow: hidden; | |||
display: flex; | |||
flex-wrap: nowrap; | |||
flex-direction: row; | |||
width: 120rpx; | |||
justify-content: center; | |||
align-items: center; | |||
} | |||
.uni-navbar__header-btns-left.data-v-26544265 { | |||
display: flex; | |||
width: 120rpx; | |||
justify-content: flex-start; | |||
align-items: center; | |||
} | |||
.uni-navbar__header-btns-right.data-v-26544265 { | |||
display: flex; | |||
flex-direction: row; | |||
justify-content: flex-end; | |||
align-items: center; | |||
} | |||
.uni-navbar__header-container.data-v-26544265 { | |||
display: flex; | |||
flex: 1; | |||
padding: 0 10px; | |||
overflow: hidden; | |||
} | |||
.uni-navbar__header-container-inner.data-v-26544265 { | |||
display: flex; | |||
flex: 1; | |||
flex-direction: row; | |||
align-items: center; | |||
justify-content: center; | |||
font-size: 12px; | |||
overflow: hidden; | |||
} | |||
.uni-navbar__placeholder-view.data-v-26544265 { | |||
height: 44px; | |||
} | |||
.uni-navbar--fixed.data-v-26544265 { | |||
position: fixed; | |||
z-index: 998; | |||
left: 0; | |||
right: 0; | |||
} | |||
.uni-navbar--shadow.data-v-26544265 { | |||
box-shadow: 0 1px 6px #ccc; | |||
} | |||
.uni-navbar--border.data-v-26544265 { | |||
border-bottom-width: 1rpx; | |||
border-bottom-style: solid; | |||
border-bottom-color: #eee; | |||
} | |||
.uni-ellipsis-1.data-v-26544265 { | |||
overflow: hidden; | |||
white-space: nowrap; | |||
text-overflow: ellipsis; | |||
} |
@ -1,17 +0,0 @@ | |||
"use strict"; | |||
const common_vendor = require("../../../../common/vendor.js"); | |||
const _sfc_main = { | |||
name: "UniStatusBar", | |||
data() { | |||
return { | |||
statusBarHeight: common_vendor.index.getSystemInfoSync().statusBarHeight + "px" | |||
}; | |||
} | |||
}; | |||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { | |||
return { | |||
a: $data.statusBarHeight | |||
}; | |||
} | |||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]); | |||
wx.createComponent(Component); |
@ -1,4 +0,0 @@ | |||
{ | |||
"component": true, | |||
"usingComponents": {} | |||
} |
@ -1 +0,0 @@ | |||
<view style="{{'height:' + a}}" class="uni-status-bar"><slot/></view> |
@ -1,28 +0,0 @@ | |||
/** | |||
* 这里是uni-app内置的常用样式变量 | |||
* | |||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 | |||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App | |||
* | |||
*/ | |||
/** | |||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 | |||
* | |||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 | |||
*/ | |||
/* 颜色变量 */ | |||
/* 行为相关颜色 */ | |||
/* 文字基本颜色 */ | |||
/* 背景颜色 */ | |||
/* 边框颜色 */ | |||
/* 尺寸变量 */ | |||
/* 文字尺寸 */ | |||
/* 图片尺寸 */ | |||
/* Border Radius */ | |||
/* 水平间距 */ | |||
/* 垂直间距 */ | |||
/* 透明度 */ | |||
/* 文章场景相关 */ | |||
.uni-status-bar { | |||
height: 20px; | |||
} |
@ -1,83 +0,0 @@ | |||
"use strict"; | |||
const common_vendor = require("../../../../common/vendor.js"); | |||
const _sfc_main = { | |||
name: "UniSection", | |||
emits: ["click"], | |||
props: { | |||
type: { | |||
type: String, | |||
default: "" | |||
}, | |||
title: { | |||
type: String, | |||
required: true, | |||
default: "" | |||
}, | |||
titleFontSize: { | |||
type: String, | |||
default: "14px" | |||
}, | |||
titleColor: { | |||
type: String, | |||
default: "#333" | |||
}, | |||
subTitle: { | |||
type: String, | |||
default: "" | |||
}, | |||
subTitleFontSize: { | |||
type: String, | |||
default: "12px" | |||
}, | |||
subTitleColor: { | |||
type: String, | |||
default: "#999" | |||
}, | |||
padding: { | |||
type: [Boolean, String], | |||
default: false | |||
} | |||
}, | |||
computed: { | |||
_padding() { | |||
if (typeof this.padding === "string") { | |||
return this.padding; | |||
} | |||
return this.padding ? "10px" : ""; | |||
} | |||
}, | |||
watch: { | |||
title(newVal) { | |||
if (common_vendor.index.report && newVal !== "") { | |||
common_vendor.index.report("title", newVal); | |||
} | |||
} | |||
}, | |||
methods: { | |||
onClick() { | |||
this.$emit("click"); | |||
} | |||
} | |||
}; | |||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { | |||
return common_vendor.e({ | |||
a: $props.type | |||
}, $props.type ? { | |||
b: common_vendor.n($props.type) | |||
} : {}, { | |||
c: common_vendor.t($props.title), | |||
d: $props.titleFontSize, | |||
e: $props.titleColor, | |||
f: !$props.subTitle ? 1 : "", | |||
g: $props.subTitle | |||
}, $props.subTitle ? { | |||
h: common_vendor.t($props.subTitle), | |||
i: $props.subTitleFontSize, | |||
j: $props.subTitleColor | |||
} : {}, { | |||
k: common_vendor.o((...args) => $options.onClick && $options.onClick(...args)), | |||
l: $options._padding | |||
}); | |||
} | |||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]); | |||
wx.createComponent(Component); |
@ -1,4 +0,0 @@ | |||
{ | |||
"component": true, | |||
"usingComponents": {} | |||
} |
@ -1 +0,0 @@ | |||
<view class="uni-section"><view class="uni-section-header" bindtap="{{k}}"><view wx:if="{{a}}" class="{{['uni-section-header__decoration', b]}}"/><slot wx:else name="decoration"></slot><view class="uni-section-header__content"><text style="{{'font-size:' + d + ';' + ('color:' + e)}}" class="{{['uni-section__content-title', f && 'distraction']}}">{{c}}</text><text wx:if="{{g}}" style="{{'font-size:' + i + ';' + ('color:' + j)}}" class="uni-section-header__content-sub">{{h}}</text></view><view class="uni-section-header__slot-right"><slot name="right"></slot></view></view><view class="uni-section-content" style="{{'padding:' + l}}"><slot/></view></view> |
@ -1,76 +0,0 @@ | |||
/** | |||
* 这里是uni-app内置的常用样式变量 | |||
* | |||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 | |||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App | |||
* | |||
*/ | |||
/** | |||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 | |||
* | |||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 | |||
*/ | |||
/* 颜色变量 */ | |||
/* 行为相关颜色 */ | |||
/* 文字基本颜色 */ | |||
/* 背景颜色 */ | |||
/* 边框颜色 */ | |||
/* 尺寸变量 */ | |||
/* 文字尺寸 */ | |||
/* 图片尺寸 */ | |||
/* Border Radius */ | |||
/* 水平间距 */ | |||
/* 垂直间距 */ | |||
/* 透明度 */ | |||
/* 文章场景相关 */ | |||
.uni-section { | |||
background-color: #fff; | |||
} | |||
.uni-section .uni-section-header { | |||
position: relative; | |||
display: flex; | |||
flex-direction: row; | |||
align-items: center; | |||
padding: 12px 10px; | |||
font-weight: normal; | |||
} | |||
.uni-section .uni-section-header__decoration { | |||
margin-right: 6px; | |||
background-color: #2979ff; | |||
} | |||
.uni-section .uni-section-header__decoration.line { | |||
width: 4px; | |||
height: 12px; | |||
border-radius: 10px; | |||
} | |||
.uni-section .uni-section-header__decoration.circle { | |||
width: 8px; | |||
height: 8px; | |||
border-top-right-radius: 50px; | |||
border-top-left-radius: 50px; | |||
border-bottom-left-radius: 50px; | |||
border-bottom-right-radius: 50px; | |||
} | |||
.uni-section .uni-section-header__decoration.square { | |||
width: 8px; | |||
height: 8px; | |||
} | |||
.uni-section .uni-section-header__content { | |||
display: flex; | |||
flex-direction: column; | |||
flex: 1; | |||
color: #333; | |||
} | |||
.uni-section .uni-section-header__content .distraction { | |||
flex-direction: row; | |||
align-items: center; | |||
} | |||
.uni-section .uni-section-header__content-sub { | |||
margin-top: 2px; | |||
} | |||
.uni-section .uni-section-header__slot-right { | |||
font-size: 14px; | |||
} | |||
.uni-section .uni-section-content { | |||
font-size: 14px; | |||
} |