diff --git a/app/Common/WechatAuth.php b/app/Common/WechatAuth.php index bd3d6ec..107720d 100644 --- a/app/Common/WechatAuth.php +++ b/app/Common/WechatAuth.php @@ -3,7 +3,6 @@ namespace App\Common; /** * OAuth2.0微信授权登录实现 - * */ class WechatAuth { diff --git a/app/Http/Controllers/Api/UserRechargeController.php b/app/Http/Controllers/Api/UserRechargeController.php index 550ed0a..da2f9b3 100644 --- a/app/Http/Controllers/Api/UserRechargeController.php +++ b/app/Http/Controllers/Api/UserRechargeController.php @@ -18,7 +18,7 @@ class UserRechargeController extends CommonController public function userRechargeList(Request $request) { //参数 - $data['limit'] = $request->input('limit', 10); + $data['limit'] = $request->input('limit', 10); $data['offset'] = $request->input('offset', 0); $data['status'] = $request->input('status', -1); diff --git a/app/Http/Controllers/Weixin/CommonController.php b/app/Http/Controllers/Weixin/CommonController.php index 4d282f1..33acb80 100644 --- a/app/Http/Controllers/Weixin/CommonController.php +++ b/app/Http/Controllers/Weixin/CommonController.php @@ -2,12 +2,18 @@ namespace App\Http\Controllers\Weixin; use App\Http\Controllers\Controller; +use App\Common\Helper; class CommonController extends Controller { + protected $isWechatBrowser; + public function __construct() { parent::__construct(); + + $this->isWechatBrowser = Helper::isWechatBrowser(); + view()->share('isWechatBrowser', $this->isWechatBrowser); } /** @@ -63,4 +69,4 @@ class CommonController extends Controller exit($str); } } -} +} \ No newline at end of file diff --git a/app/Http/Controllers/Weixin/IndexController.php b/app/Http/Controllers/Weixin/IndexController.php index 0c3db28..06a414a 100644 --- a/app/Http/Controllers/Weixin/IndexController.php +++ b/app/Http/Controllers/Weixin/IndexController.php @@ -21,6 +21,12 @@ class IndexController extends CommonController //首页 public function index() { + //分享到首页,把推荐id存下来 + if(isset($_GET['parent_id']) && !empty($_GET['parent_id'])) + { + $_SESSION['weixin_user_parent_id'] = intval($_GET['parent_id']); + } + //banner轮播图 $postdata = array( 'limit' => 5, diff --git a/public/css/weixin/style.css b/public/css/weixin/style.css index 4f5fb52..a906a3b 100644 --- a/public/css/weixin/style.css +++ b/public/css/weixin/style.css @@ -74,11 +74,12 @@ background:none; .goods_list_small li:nth-child(even) a{margin-right:0;margin-left:2px;} .goods_list_s li{color:#333;border-bottom:1px solid #eee;overflow:hidden;margin-left:10px;margin-right:10px;padding:15px 5px 15px 5px;} -.goods_list_s li span{color:#333;display:block;font-size:1rem;}.goods_list_s a:last-child li{border-bottom:0} +.goods_list_s li .btn{color:#333;display:block;font-size:1rem;cursor:pointer;}.goods_list_s a:last-child li{border-bottom:0} .goods_list_s .goods_thumb{width:100px;height:100px;float:left;margin-right:10px;display:block;}.goods_list_s .goods_thumb img{width:100px;height:100px;border:none;} .goods_list_s .goods_tit{line-height:24px;overflow:hidden;} .goods_list_s .goods_price{color:#f23030;}.goods_list_s .goods_price b{font-size:1rem;font-weight:normal;} .goods_list_s .goods_des{color:#999999;font-size:0.875rem;} +.goods_list_s .buy{border:1px solid #f23030;border-radius:2px;padding:0 3px;color:#fff;background-color:#f23030;} .classreturn{ background-color:#f8f8f8; @@ -292,9 +293,9 @@ margin:5px 0 .banner_headline .tit{border-top:1px dashed #dedede;text-align:center;margin:25px 0;} .banner_headline .tit h4{color:#666666;background-color:#f1f1f1;font-size:18px;font-weight:normal;position:relative;top:-14px;display:inline;padding:0 20px;} -.radio .check_t i {background-position: -30px 0} +.radio .check_t i{background-position:-29px 0;} -.radio i {width:22px;height:22px;display: block;float: left;background-image: url("../../images/weixin/check.png");background-repeat: no-repeat;background-size: cover;background-position: 0} +.radio i{width:22px;height:22px;display: block;float: left;background-image: url("../../images/weixin/check.png");background-repeat: no-repeat;background-size: cover;background-position: 0} .signup-find span,.radio span {font-size:24px;cursor: pointer} .sc_list { diff --git a/resources/org/wxJsSdk/jssdk.php b/resources/org/wxJsSdk/jssdk.php index df19068..fa1778d 100644 --- a/resources/org/wxJsSdk/jssdk.php +++ b/resources/org/wxJsSdk/jssdk.php @@ -122,12 +122,14 @@ class JSSDK private function get_php_file($filename) { - return trim(substr(file_get_contents($filename), 15)); + //return trim(substr(file_get_contents($filename), 15)); //原版 + return trim(substr(file_get_contents(resource_path('org/wxJsSdk/'.$filename)), 15)); //Laravel版 } private function set_php_file($filename, $content) { - $fp = fopen($filename, "w"); + //$fp = fopen($filename, "w"); //原版 + $fp = fopen(resource_path('org/wxJsSdk/'.$filename), "w"); //Laravel版 fwrite($fp, "" . $content); fclose($fp); } diff --git a/resources/views/weixin/article/detail.blade.php b/resources/views/weixin/article/detail.blade.php index 601246c..bdcf649 100644 --- a/resources/views/weixin/article/detail.blade.php +++ b/resources/views/weixin/article/detail.blade.php @@ -5,7 +5,7 @@
diff --git a/resources/views/weixin/cart/cartCheckout.blade.php b/resources/views/weixin/cart/cartCheckout.blade.php index 039be0f..20a3dc0 100644 --- a/resources/views/weixin/cart/cartCheckout.blade.php +++ b/resources/views/weixin/cart/cartCheckout.blade.php @@ -15,14 +15,15 @@+ +
共1件商品
diff --git a/resources/views/weixin/cart/index.blade.php b/resources/views/weixin/cart/index.blade.php index 19f30a2..7a2609e 100644 --- a/resources/views/weixin/cart/index.blade.php +++ b/resources/views/weixin/cart/index.blade.php @@ -56,7 +56,7 @@