| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- use addons\RandFee\backend\assets\AppAsset;
- use common\helpers\Html;
- AppAsset::register($this);
- ?>
- <?php $this->beginPage() ?>
- <!DOCTYPE html>
- <html lang="<?= Yii::$app->language ?>">
- <head>
- <meta charset="<?= Yii::$app->charset ?>">
- <meta name="keywords" content="">
- <meta name="description" content="">
- <meta name="format-detection" content="telephone=no" />
- <meta name="format-detection" content="address=no" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <?php $this->registerCsrfMetaTags() ?>
- <title><?= Html::encode($this->title) ?></title>
- <?php $this->head() ?>
- </head>
- <script>
- var validateMoney = (rule, value, callback) => {
- console.log("1111")
- if(!value){
- callback(new Error('价格不能为空'))
- }else if(value.indexOf(".") != -1 && value.split('.').length > 2){
- callback(new Error('请输入正确格式的金额')) //防止输入多个小数点
- }else if(value.indexOf(".") != -1 && value.split('.')[1].length > 2){
- callback(new Error('请输入正确的小数位数')) //小数点后两位
- }else{
- callback();
- }
- };
- </script>
- <body>
- <?php $this->beginBody() ?>
- <?= $content ?>
- <?php $this->endBody() ?>
- </body>
- </html>
- <?php $this->endPage() ?>
|