/** * Creates data provider instance with search query applied * * @param array $params * * @return ActiveDataProvider */ public function search($params) { $query = MHd201509t4::find(); $dataProvider = new ActiveDataProvider(['query' => $query]); if (!($this->load($params) && $this->validate())) { return $dataProvider; } $query->andFilterWhere(['hd201509t4_id' => $this->hd201509t4_id, 'score' => $this->score, 'create_time' => $this->create_time, 'status' => $this->status]); $query->andFilterWhere(['like', 'gh_id', $this->gh_id])->andFilterWhere(['like', 'openid', $this->openid])->andFilterWhere(['like', 'mobile', $this->mobile]); return $dataProvider; }
<?php use yii\helpers\Html; use yii\helpers\Url; use app\models\U; include '../models/utils/emoji.php'; \Yii::$app->wx->setGhId($observer->gh_id); $gh = \Yii::$app->wx->getGh(); $jssdk = new \app\models\JSSDK($gh['appid'], $gh['appsecret']); $signPackage = $jssdk->GetSignPackage(); $lists = \app\models\MHd201509t4::find()->where(['openid' => $observer->openid, 'status' => 2])->orderBy(['create_time' => SORT_ASC])->all(); ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>捐献积分献爱心</title> <!-- Sets initial viewport load and disables zooming --> <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui"> <!-- Makes your prototype chrome-less once bookmarked to your phone's home screen --> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <!-- Include the compiled Ratchet CSS --> <link href="/wx/web/ratchet/dist/css/ratchet.css" rel="stylesheet"> <link href="./php-emoji/emoji.css" rel="stylesheet"> <link rel="stylesheet" href="http://libs.useso.com/js/font-awesome/4.2.0/css/font-awesome.min.css">