完成简易版的充值和充值记录查询页面,简单的我的页面
This commit is contained in:
1
miniprogram_npm/@vant/weapp/icon/index.d.ts
vendored
1
miniprogram_npm/@vant/weapp/icon/index.d.ts
vendored
@@ -1 +0,0 @@
|
||||
export {};
|
@@ -1,23 +0,0 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var component_1 = require("../common/component");
|
||||
(0, component_1.VantComponent)({
|
||||
classes: ['info-class'],
|
||||
props: {
|
||||
dot: Boolean,
|
||||
info: null,
|
||||
size: null,
|
||||
color: String,
|
||||
customStyle: String,
|
||||
classPrefix: {
|
||||
type: String,
|
||||
value: 'van-icon',
|
||||
},
|
||||
name: String,
|
||||
},
|
||||
methods: {
|
||||
onClick: function () {
|
||||
this.$emit('click');
|
||||
},
|
||||
},
|
||||
});
|
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"van-info": "../info/index"
|
||||
}
|
||||
}
|
@@ -1,20 +0,0 @@
|
||||
<wxs src="./index.wxs" module="computed" />
|
||||
|
||||
<view
|
||||
class="{{ computed.rootClass({ classPrefix, name }) }}"
|
||||
style="{{ computed.rootStyle({ customStyle, color, size }) }}"
|
||||
bindtap="onClick"
|
||||
>
|
||||
<van-info
|
||||
wx:if="{{ info !== null || dot }}"
|
||||
dot="{{ dot }}"
|
||||
info="{{ info }}"
|
||||
custom-class="van-icon__info info-class"
|
||||
/>
|
||||
<image
|
||||
wx:if="{{ computed.isImage(name) }}"
|
||||
src="{{ name }}"
|
||||
mode="aspectFit"
|
||||
class="van-icon__image"
|
||||
/>
|
||||
</view>
|
@@ -1,43 +0,0 @@
|
||||
/* eslint-disable */
|
||||
var style = require('../wxs/style.wxs');
|
||||
var addUnit = require('../wxs/add-unit.wxs');
|
||||
|
||||
function isImage(name) {
|
||||
return name.indexOf('/') !== -1;
|
||||
}
|
||||
|
||||
function rootClass(data) {
|
||||
var classes = ['custom-class'];
|
||||
|
||||
if (data.classPrefix !== 'van-icon') {
|
||||
classes.push('van-icon--custom')
|
||||
}
|
||||
|
||||
if (data.classPrefix != null) {
|
||||
classes.push(data.classPrefix);
|
||||
}
|
||||
|
||||
if (isImage(data.name)) {
|
||||
classes.push('van-icon--image');
|
||||
} else if (data.classPrefix != null) {
|
||||
classes.push(data.classPrefix + '-' + data.name);
|
||||
}
|
||||
|
||||
return classes.join(' ');
|
||||
}
|
||||
|
||||
function rootStyle(data) {
|
||||
return style([
|
||||
{
|
||||
color: data.color,
|
||||
'font-size': addUnit(data.size),
|
||||
},
|
||||
data.customStyle,
|
||||
]);
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
isImage: isImage,
|
||||
rootClass: rootClass,
|
||||
rootStyle: rootStyle,
|
||||
};
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user