Browse Source

feedback

master
ZLW-PC\Administrator 7 years ago
parent
commit
ec0738c212
  1. 2
      app/Http/Controllers/Api/FeedBackController.php
  2. 11
      app/Http/Controllers/Api/UserController.php
  3. 20
      app/Http/Controllers/Weixin/FeedbackController.php
  4. 3
      app/Http/Controllers/Weixin/UserController.php
  5. 8
      app/Http/Model/User.php
  6. 7
      app/Http/Model/UserMoney.php
  7. 22
      lqycms.sql
  8. 650
      public/css/weixin/style.css
  9. BIN
      public/images/weixin/w10.png
  10. BIN
      public/images/weixin/w11.png
  11. BIN
      public/images/weixin/w9.png
  12. 120
      resources/views/weixin/feedback/userFeedbackAdd.blade.php
  13. 113
      resources/views/weixin/user/index.blade.php
  14. 6
      resources/views/weixin/user/register.blade.php
  15. 2
      resources/views/weixin/user/userinfo.blade.php
  16. 2
      routes/web.php

2
app/Http/Controllers/Api/FeedBackController.php

@ -35,6 +35,8 @@ class FeedBackController extends CommonController
//参数
$data['content'] = $request->input('content',null);
if($request->input('title', null) !== null){$data['title'] = $request->input('title');}
if($request->input('mobile', null) !== null){$data['mobile'] = $request->input('mobile');}
if($request->input('type', null) !== null){$data['type'] = $request->input('type');}
$data['user_id'] = Token::$uid;
if($data['content']===null)

11
app/Http/Controllers/Api/UserController.php

@ -7,6 +7,7 @@ use App\Common\ReturnData;
use App\Common\Token;
use App\Common\Helper;
use App\Http\Model\User;
use DB;
class UserController extends CommonController
{
@ -182,14 +183,14 @@ class UserController extends CommonController
$data['user_name'] = $request->input('user_name','');
$data['password'] = $request->input('password','');
$data['parent_id'] = $request->input('parent_id','');
$parent_mobile = $request->input('parent_mobile','');
$parent_mobile = $request->input('parent_mobile',null);
if (($data['mobile']=='' && $data['user_name']=='') || $data['password']=='')
{
return ReturnData::create(ReturnData::PARAMS_ERROR);
}
if ($parent_mobile!='')
if ($parent_mobile!=null)
{
if($user = User::getOneUser(array('mobile'=>$parent_mobile)))
{
@ -232,6 +233,7 @@ class UserController extends CommonController
public function wxOauthRegister(Request $request)
{
$data['openid'] = $request->input('openid','');
$data['unionid'] = $request->input('unionid','');
$data['sex'] = $request->input('sex','');
$data['head_img'] = $request->input('head_img','');
$data['nickname'] = $request->input('nickname','');
@ -239,6 +241,7 @@ class UserController extends CommonController
$parent_mobile = $request->input('parent_mobile','');
$data['mobile'] = $request->input('mobile','');
$data['user_name'] = date('YmdHis').dechex(rand(1000,9999));
$data['password'] = md5('123456');
if ($data['openid']=='')
{
@ -281,6 +284,10 @@ class UserController extends CommonController
return ReturnData::create(ReturnData::SYSTEM_FAIL);
}
//更新用户名user_name,微信登录没有用户名
$uid = DB::table('user')->where(array('openid'=>$data['openid']))->value('id');
if($uid){User::modify(array('openid'=>$data['openid']),array('user_name'=>'a'.$uid));}
return ReturnData::create(ReturnData::SUCCESS,User::wxLogin(array('openid'=>$data['openid'])));
}

20
app/Http/Controllers/Weixin/FeedbackController.php

@ -0,0 +1,20 @@
<?php
namespace App\Http\Controllers\Weixin;
use App\Http\Controllers\Weixin\CommonController;
use Illuminate\Http\Request;
use App\Common\ReturnCode;
class FeedbackController extends CommonController
{
public function __construct()
{
parent::__construct();
}
//意见反馈添加
public function userFeedbackAdd(Request $request)
{
return view('weixin.feedback.userFeedbackAdd');
}
}

3
app/Http/Controllers/Weixin/UserController.php

@ -568,10 +568,11 @@ class UserController extends CommonController
$postdata = array(
'openid' => $_SESSION['weixin_oauth']['token']['openid'],
'unionid' => isset($_SESSION['weixin_oauth']['userinfo']['unionid']) ? $_SESSION['weixin_oauth']['userinfo']['unionid'] : '',
'nickname' => $_SESSION['weixin_oauth']['userinfo']['nickname'],
'sex' => $_SESSION['weixin_oauth']['userinfo']['sex'],
'head_img' => $_SESSION['weixin_oauth']['userinfo']['headimgurl'],
'parent_id' => '',
'parent_id' => isset($_SESSION['weixin_user_invite_code']) ? $_SESSION['weixin_user_invite_code'] : '',
'parent_mobile' => '',
'mobile' => ''
);

8
app/Http/Model/User.php

@ -184,6 +184,7 @@ class User extends BaseModel
if(isset($password)){$data['password'] = $password;} //md5加密
if(isset($parent_id) && !empty($parent_id)){$data['parent_id'] = $parent_id;}
if(isset($openid)){$data['openid'] = $openid;}
if(isset($unionid)){$data['unionid'] = $unionid;}
if(isset($sex)){$data['sex'] = $sex;}
if(isset($head_img)){$data['head_img'] = $head_img;}
if(isset($nickname)){$data['nickname'] = $nickname;}
@ -244,6 +245,13 @@ class User extends BaseModel
return $res;
}
//描述-文字
public function getSexAttr($data)
{
$arr = [0 => '不限', 1 => '黑色', 2 => '白色', 3 => '银色', 4 => '橙色', 5 => '绿色', 6 => '红色', 7 => '蓝色', 8 => '紫色', 9 => '黄色', 10 => '香槟色', 11 => '咖啡色'];
return $arr[$data['des']];
}
//获取用户状态文字:1正常 2 删除 3锁定
public static function getStatusText($where)
{

7
app/Http/Model/UserMoney.php

@ -80,4 +80,11 @@ class UserMoney extends BaseModel
return true;
}
//描述-文字
public function getDesAttr($data)
{
$arr = [0 => '不限', 1 => '黑色', 2 => '白色', 3 => '银色', 4 => '橙色', 5 => '绿色', 6 => '红色', 7 => '蓝色', 8 => '紫色', 9 => '黄色', 10 => '香槟色', 11 => '咖啡色'];
return $arr[$data['des']];
}
}

22
lqycms.sql

@ -325,14 +325,16 @@ CREATE TABLE `fl_feedback` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`content` text NOT NULL COMMENT '意见反馈内容',
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '添加时间',
`user_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '用户id',
`title` varchar(150) NOT NULL DEFAULT '' COMMENT '标题',
`user_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用户id',
`title` varchar(150) NOT NULL DEFAULT '' COMMENT '标题,选填',
`mobile` varchar(20) NOT NULL DEFAULT '' COMMENT '手机号码,选填',
`type` varchar(20) NOT NULL DEFAULT '' COMMENT '意见反馈类型,选填',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 CHECKSUM=1 DELAY_KEY_WRITE=1 ROW_FORMAT=DYNAMIC COMMENT='意见反馈表';
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
/*Data for the table `fl_feedback` */
insert into `fl_feedback`(`id`,`content`,`created_at`,`user_id`,`title`) values (1,'发过火对光反射','2017-07-27 14:13:31',127,''),(3,'content六角恐龙','2017-08-08 15:46:49',1,'title螺丝款计划');
insert into `fl_feedback`(`id`,`content`,`created_at`,`user_id`,`title`,`mobile`,`type`) values (1,'发过火对光反射','2017-07-27 14:13:31',127,'','',''),(3,'content六角恐龙','2017-08-08 15:46:49',1,'title螺丝款计划','',''),(4,'asfa','2018-03-30 11:40:44',3,'','',''),(5,'sdgsd','2018-03-30 11:43:06',3,'','15280719685','积分/优惠券'),(6,'dgsg','2018-03-30 11:43:33',3,'','','购物流程');
/*Table structure for table `fl_friendlink` */
@ -876,11 +878,11 @@ CREATE TABLE `fl_sysconfig` (
`is_show` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否显示,默认0显示,让客户看不到',
PRIMARY KEY (`id`),
UNIQUE KEY `varname` (`varname`)
) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf8 CHECKSUM=1 DELAY_KEY_WRITE=1 ROW_FORMAT=DYNAMIC COMMENT='系统参数配置表';
) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8 CHECKSUM=1 DELAY_KEY_WRITE=1 ROW_FORMAT=DYNAMIC COMMENT='系统参数配置表';
/*Data for the table `fl_sysconfig` */
insert into `fl_sysconfig`(`id`,`varname`,`info`,`value`,`is_show`) values (1,'CMS_WEBNAME','网站名称','LQYCMS企业建站系统',0),(2,'CMS_BASEHOST','站点根网址','http://www.lqycms.com',0),(3,'CMS_UPLOADS','图片/上传文件默认路径','/uploads',0),(4,'CMS_CSS','css默认存放路径','/css',0),(5,'CMS_JS','js默认存放路径','/js',0),(6,'CMS_INDEXNAME','主页链接名','首页',0),(7,'CMS_POWERBY','网站版权信息','Copyright &copy; LQYCMS 版权所有',0),(8,'CMS_IMGWIDTH','缩略图默认宽度','240',0),(9,'CMS_IMGHEIGHT','缩略图默认高度','180',0),(10,'CMS_SEOTITLE','网站seotitle','lqycms是一套完全免费、开源、无授权限制的网站管理系统',0),(11,'CMS_KEYWORDS','网站关键词Keywords','lqycms,无授权限制网站系统cms,免费cms系统,开源网站管理系统,开源cms',0),(12,'CMS_DESCRIPTION','网站描述','lqycms完全免费、开源、无授权限制,您可以使用lqycms在任何商业或者非商业网站上使用而不必支付任何费用,系统采用主流的mvc架构开发,更加容易进行二次开发。',0),(13,'CMS_ISCACHE','是否开启缓存,1开启,0关闭','1',0),(14,'CMS_MAXARC','最大返回列表结果数,默认300','300',0),(15,'CMS_PAGESIZE','列表每页显示的数量,默认15','15',0),(16,'CMS_SIGN_POINT','签到积分','5',0),(17,'CMS_WX_APPID','微信appid','wx2ac97c40c4050e24',0),(18,'CMS_WX_APPSECRET','微信appsecret','a0aad71844bbacbe8928447741c82a43',0),(19,'CMS_WX_MCHID','微信支付商户号','1331184301',0),(20,'CMS_WXSHAER_TITLE','微信分享标题','微信分享测试-标题',0),(21,'CMS_WXSHAER_DESC','微信分享描述','微信分享描述',0),(22,'CMS_WXSHAER_LINK','微信分享链接','http://www.lqycms.com/weixin',0),(23,'CMS_WXSHAER_IMGURL','微信分享图标','http://www.lqycms.com/images/weixin/no_user.jpg',0),(24,'CMS_MIN_WITHDRAWAL_MONEY','最低提现金额(元)','100',0),(25,'CMS_SHOPPING_POINT','购物赠送积分','10',0);
insert into `fl_sysconfig`(`id`,`varname`,`info`,`value`,`is_show`) values (1,'CMS_WEBNAME','网站名称','LQYCMS企业建站系统',0),(2,'CMS_BASEHOST','站点根网址','http://www.lqycms.com',0),(3,'CMS_UPLOADS','图片/上传文件默认路径','/uploads',0),(4,'CMS_CSS','css默认存放路径','/css',0),(5,'CMS_JS','js默认存放路径','/js',0),(6,'CMS_INDEXNAME','主页链接名','首页',0),(7,'CMS_POWERBY','网站版权信息','Copyright &copy; LQYCMS 版权所有',0),(8,'CMS_IMGWIDTH','缩略图默认宽度','240',0),(9,'CMS_IMGHEIGHT','缩略图默认高度','180',0),(10,'CMS_SEOTITLE','网站seotitle','lqycms是一套完全免费、开源、无授权限制的网站管理系统',0),(11,'CMS_KEYWORDS','网站关键词Keywords','lqycms,无授权限制网站系统cms,免费cms系统,开源网站管理系统,开源cms',0),(12,'CMS_DESCRIPTION','网站描述','lqycms完全免费、开源、无授权限制,您可以使用lqycms在任何商业或者非商业网站上使用而不必支付任何费用,系统采用主流的mvc架构开发,更加容易进行二次开发。',0),(13,'CMS_ISCACHE','是否开启缓存,1开启,0关闭','1',0),(14,'CMS_MAXARC','最大返回列表结果数,默认300','300',0),(15,'CMS_PAGESIZE','列表每页显示的数量,默认15','15',0),(16,'CMS_SIGN_POINT','签到积分','5',0),(17,'CMS_WX_APPID','微信appid','wx2ac97c40c4050e24',0),(18,'CMS_WX_APPSECRET','微信appsecret','a0aad71844bbacbe8928447741c82a43',0),(19,'CMS_WX_MCHID','微信支付商户号','1331184301',0),(20,'CMS_WXSHAER_TITLE','微信分享标题','微信分享测试-标题',0),(21,'CMS_WXSHAER_DESC','微信分享描述','微信分享描述',0),(22,'CMS_WXSHAER_LINK','微信分享链接','http://www.lqycms.com/weixin',0),(23,'CMS_WXSHAER_IMGURL','微信分享图标','http://www.lqycms.com/images/weixin/no_user.jpg',0),(24,'CMS_MIN_WITHDRAWAL_MONEY','最低提现金额(元)','100',0),(25,'CMS_SHOPPING_POINT','购物赠送积分','10',0),(26,'CMS_COMMISSION_PERCENT','推介赚钱计划-提成比例(5%)','0.05',0);
/*Table structure for table `fl_tagindex` */
@ -934,11 +936,11 @@ CREATE TABLE `fl_token` (
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`expired_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='token表';
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='token表';
/*Data for the table `fl_token` */
insert into `fl_token`(`id`,`token`,`type`,`uid`,`data`,`created_at`,`expired_at`) values (1,'72d623d26a1a6d61186a97f9ccf752f7',1,1,'','2017-08-07 13:29:01','2018-05-22 11:15:27'),(2,'70a0c1ba8fb4a4c394dd2bdf7d6106ec',2,3,'','2018-03-09 12:22:03','2018-04-08 12:22:03');
insert into `fl_token`(`id`,`token`,`type`,`uid`,`data`,`created_at`,`expired_at`) values (1,'72d623d26a1a6d61186a97f9ccf752f7',1,1,'','2017-08-07 13:29:01','2018-05-22 11:15:27'),(2,'70a0c1ba8fb4a4c394dd2bdf7d6106ec',2,3,'','2018-03-09 12:22:03','2018-04-08 12:22:03'),(3,'0ecd2dd522d64f10d39ba95d4fb6adc2',2,3,'','2018-03-30 14:38:19','2018-04-29 14:38:19');
/*Table structure for table `fl_user` */
@ -969,7 +971,7 @@ CREATE TABLE `fl_user` (
`updated_at` timestamp NULL DEFAULT NULL COMMENT '更新时间',
`signin_time` timestamp NULL DEFAULT NULL COMMENT '签到时间',
`openid` varchar(100) NOT NULL DEFAULT '' COMMENT 'openid',
`unionid` varchar(100) NOT NULL DEFAULT '' COMMENT 'unionid',
`unionid` varchar(128) NOT NULL DEFAULT '' COMMENT 'unionid',
`push_id` varchar(30) NOT NULL DEFAULT '' COMMENT '推送id',
`refund_account` varchar(30) NOT NULL DEFAULT '' COMMENT '退款账户,支付宝账号',
`refund_name` varchar(20) NOT NULL DEFAULT '' COMMENT '退款姓名',
@ -1073,7 +1075,7 @@ CREATE TABLE `fl_user_money` (
`type` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0增加,1减少',
`money` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '金额',
`add_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '添加时间',
`des` varchar(250) NOT NULL DEFAULT '' COMMENT '描述',
`des` varchar(100) NOT NULL DEFAULT '' COMMENT '描述',
`user_money` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '余额,每次增减后面的金额记录',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 CHECKSUM=1 DELAY_KEY_WRITE=1 ROW_FORMAT=DYNAMIC COMMENT='用户余额明细';

650
public/css/weixin/style.css

@ -253,451 +253,415 @@ margin:5px 0
.signup-find span,.radio span {font-size:24px;cursor: pointer}
.sc_list {
padding:10px;
overflow: hidden;
border-bottom: 1px solid #f8f8f8
padding:10px;
overflow: hidden;
border-bottom: 1px solid #f8f8f8
}
.sc_list .radio-img{
width:120px;
height:80px;
float: left;
margin-right:5px;
display: block;
width:120px;
height:80px;
float: left;
margin-right:5px;
display: block;
}
.sc_list .radio {
padding-top:24px;
margin-right:10px;
padding-top:24px;
margin-right:10px;
}
.sc_list .shopimg img {
width:80px;
height:80px;
width:80px;
height:80px;
}
.sc_list .deleshow .deletes {
position: relative;
position: relative;
}
.sc_list .deleshow .deletes .tit{
padding-right:28px;
font-size: 1rem;
height:28px;overflow: hidden;
line-height:28px;
padding-right:28px;
font-size: 1rem;
height:28px;overflow: hidden;
line-height:28px;
}
.sc_list .deleshow .deletes a.delescj {
position: absolute;
top:4px;
right:0;
position: absolute;
top:4px;
right:0;
}
.sc_list .deleshow .deletes a.delescj img {
width:18px;
height:18px;
width:18px;
height:18px;
}
.sc_list .deleshow .weight {
font-size:16px;
color:#999999
font-size:16px;
color:#999999
}
.sc_list .deleshow .prices {
overflow: hidden;
margin-top:8px;
overflow: hidden;
margin-top:8px;
}
.sc_list .deleshow .prices .sc_pri {
color: #f23030;
font-size:18px;
color: #f23030;
font-size:18px;
}
.plus span {
width:28px;
height:28px;
line-height:28px;
font-size:16px;
display: block;
float: left;
border: 1px solid #f1f1f1;
margin-left: -1px;
text-align:center;
color: #686868;
cursor: pointer
width:28px;
height:28px;
line-height:28px;
font-size:16px;
display: block;
float: left;
border: 1px solid #f1f1f1;
margin-left: -1px;
text-align:center;
color: #686868;
cursor: pointer
}
.plus span input {
font-size:14px;
outline: none;
border: 0;
color: #686868;
width: 100%;
text-align: center
font-size:14px;
outline: none;
border: 0;
color: #686868;
width: 100%;
text-align: center
}
.payallb {
position: fixed;
z-index: 99;
bottom: 0;
background-color: #f3f5f7
position: fixed;
z-index: 99;
bottom: 0;
background-color: #f3f5f7
}
.payallb .radio {
padding-top:14px;
margin-right:8px;
padding-top:14px;
margin-right:8px;
}
.payallb .radio .all {
font-size:14px;
position: relative;
top:-12px;
margin-left:6px
font-size:14px;
position: relative;
top:-12px;
margin-left:6px
}
.payallb .youbia {
overflow: hidden;line-height:52px;
overflow: hidden;line-height:52px;
}
.payallb .youbia p {
text-align: right;margin-right:10px;
text-align: right;margin-right:10px;
}
.payit {border-top:1px solid #efefef;
height:52px;width:100%;
background-color: white;
overflow: hidden;
padding-left:10px;
height:52px;width:100%;
background-color: white;
overflow: hidden;
padding-left:10px;
}
.payit .fl {
line-height:40px;
line-height:40px;
}
.payit .youbia p {
font-size:16px;
color: #f23030
font-size:16px;
color: #f23030
}
.payit .youbia p .pmo {
color: #222222
color: #222222
}
.payit .youbia .lastime {
color: #666666
color: #666666
}
.payit .fr {
width:120px;
width:120px;
}
.payit .fr a {
color: white;
font-size:18px;
text-align: center;
background-color: #f23030;
display: block;
height:52px;line-height:52px;
color: white;
font-size:18px;
text-align: center;
background-color: #f23030;
display: block;
height:52px;line-height:52px;
}
.myhearder {
position: relative;
height:180px;
position: relative;
/* height:180px; */
}
.myhearder .user_bg{position: absolute;left: 0;top: 0;z-index:-999;}
.myhearder .person {
position: absolute;
top:40px;
left:20px
text-align:center;
}
.myhearder .person .personicon {
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
border-radius: 50%;
overflow: hidden;
width:72px;
height:72px;
}
.myhearder .person .personicon img {
width:72px;
height:72px;
width:72px;
height:72px;margin-bottom:10px;margin-top:50px;
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
border-radius: 50%;
}
.myhearder .person .lors {
margin-top:10px;
margin-left:8px;
color: #fff;
font-size:18px;
width: 220px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis
.myhearder .person .lors{
color:#fff;
font-size:16px;
padding-bottom:25px;
}
.myhearder .set {
position: absolute;
right:15px;
top:15px
position: absolute;
right:15px;
top:15px
}
.myhearder .set a {
display: block;
float: left
display: block;
float: left
}
.myhearder .set a i {
background-image: url("../../images/weixin/set.png");
background-repeat: no-repeat;
background-size: cover;
width:28px;
height:28px;
display: block;
background-image: url("../../images/weixin/set.png");
background-repeat: no-repeat;
background-size: cover;
width:28px;
height:28px;
display: block;
}
.myhearder .set .setting i {
background-position: 0 0
background-position: 0 0
}
.myhearder .set .massage {
margin-left:15px;
margin-left:15px;
}
.myhearder .set .massage i {
background-position: -38px 0;
background-position: -38px 0;
}
.myhearder .scgz {
position: absolute;
bottom: 0;
width: 100%
position: absolute;
bottom: 0;
width: 100%
}
.myhearder .scgz ul li {
float: left;
text-align: center;
width: 50%
float: left;
text-align: center;
width: 50%
}
.myhearder .scgz ul li a h2 {
font-size:18px;
font-weight: normal;
height:24px;
line-height:24px;
color: #fff
font-size:18px;
font-weight: normal;
height:24px;
line-height:24px;
color: #fff
}
.myhearder .scgz ul li a p {
font-size:14px;
color: #fff;
margin-bottom:5px;
font-size:14px;
color: #fff;
margin-bottom:5px;
}
.bankhearder {
background-image: url(../../images/zjgl.jpg);
height: 11.73333rem
background-image: url(../../images/zjgl.jpg);
height: 11.73333rem
}
.bankhearder .hh {
color: white;
text-align: center;
padding-top: 3.2rem
color: white;
text-align: center;
padding-top: 3.2rem
}
.bankhearder .hh h2 {
font-size: .64rem;
font-weight: normal
font-size: .64rem;
font-weight: normal
}
.bankhearder .hh h1 {
font-size: .768rem;
font-weight: normal
font-size: .768rem;
font-weight: normal
}
.bankhearder .scgz ul li {
position: relative;
top: -.64rem
position: relative;
top: -.64rem
}
.bankhearder .scgz ul li a img {
display: inline-block;
width: .59733rem;
height: .59733rem
display: inline-block;
width: .59733rem;
height: .59733rem
}
.bankhearder .scgz ul li a p {
display: inline-block;
position: relative;
top: .10667rem
display: inline-block;
position: relative;
top: .10667rem
}
.myorder {
padding:0 20px;
height:44px;
line-height:44px;
background-color: #fff;
border-bottom: 1px solid #f4f4f4
padding:0 20px;
height:44px;
line-height:44px;
background-color: #fff;
border-bottom: 1px solid #f4f4f4
}
.myorder a {
overflow: hidden;
display: block
overflow: hidden;
display: block
}
.myorder .order {
overflow: hidden
}
.myorder .order .fl img {
width:20px;
height:22px;
vertical-align: middle
}
.myorder .order .fl span {
font-size:18px;
vertical-align: middle;
font-weight: normal;
margin-left:5px
}
.myorder .order {overflow: hidden}
.myorder .order .fr a {
display: block;
overflow: hidden
}
.myorder .order .fl img {width:20px;/* height:22px; */height:20px;vertical-align: middle}
.myorder .order .fr span {
font-size:14px;
color: #4c4c4c;
float: left;
}
.myorder .order .fl span {font-size:18px;vertical-align: middle;font-weight: normal;margin-left:5px}
.myorder .order .fr i {
margin-top:14px;
margin-left:8px
}
.myorder .order .fr a {display:block;overflow:hidden}
.myorder .order .fr span {font-size:14px;color:#9b9b9b;/* color: #4c4c4c; */float:left;}
.myorder .order .fr i {margin-top:14px;margin-left:8px}
.list7 .myorder {
height:50px;
line-height:50px;
height:50px;
line-height:50px;
}
.list7 .myorder .fr i {
margin-top:18px;
margin-top:18px;
}
.Mright {
background-image: url(../../images/weixin/yr.png);
background-repeat: no-repeat;
background-size: cover;
width:8px;
height:15px;
display: block;
float: left;
background-image: url(../../images/weixin/yr.png);
background-repeat: no-repeat;
background-size: cover;
width:8px;
height:15px;
display: block;
float: left;
}
.my {background-color: #f1f1f1;}
.my .content {
margin: 0
}
.my .content {margin: 0}
.my .content .floor {
background-color: #fff
background-color: #fff
}
.my .content .floor ul .fr {
float: right
float: right
}
.my .content .floor ul li.br {
border-left: 0 !important
border-left: 0 !important
}
.my .content .floor ul li.br:before {
content: "";
background-image: inherit !important
content: "";
background-image: inherit !important
}
.my .content .floor ul li {
position: relative;
float: left;
width: 25%;
text-align: center
position: relative;
float: left;
width: 25%;
text-align: center
}
.my .content .floor ul li a {
padding:15px 0 20px 0;
display: block
padding:15px 0 20px 0;
display: block
}
.my .content .floor ul li a span {
background-color: rgba(217,81,99,0.9);
border-radius: 50%;
font-size:14px;
width:24px;
height:24px;
display: block;
line-height:24px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
position: absolute;
right:15px;
top:8px;
color: white
background-color: rgba(217,81,99,0.9);
border-radius: 50%;
font-size:14px;
width:24px;
height:24px;
display: block;
line-height:24px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
position: absolute;
right:15px;
top:8px;
color: white
}
.my .content .floor ul li a img {
height:36px
height:36px
}
.my .content .floor ul li a .tit{
font-size:18px;
font-weight: normal;
height:32px;
line-height:32px;
color: #e3110b
font-size:18px;
font-weight: normal;
height:32px;
line-height:32px;
color: #e3110b
}
.my .content .floor ul li a p {
font-size:12px;
margin-top:2px;
color: #4c4c4c;
font-weight: normal
font-size:12px;
margin-top:2px;
color: #4c4c4c;
font-weight: normal
}
.my .content .floor ul li a p.or:after {
content: "";
background-image: url(../../images/weixin/or.png);
width: .17067rem;
height: .29867rem;
background-repeat: no-repeat;
position: absolute;
margin-top: .08533rem;
margin-left: .04267rem;
background-size: .17067rem
content: "";
background-image: url(../../images/weixin/or.png);
width: .17067rem;
height: .29867rem;
background-repeat: no-repeat;
position: absolute;
margin-top: .08533rem;
margin-left: .04267rem;
background-size: .17067rem
}
.my .content .w3 {
width: inherit
width: inherit
}
.my .content .w3 ul li {
width: 33.33333%
width: 33.33333%
}
.my .content .action {
background-image: url(../../images/weixin/rb.png);
background-repeat: no-repeat;
background-position: 0 1.96267rem;
width: 100%;
background-size: 16rem
background-image: url(../../images/weixin/rb.png);
background-repeat: no-repeat;
background-position: 0 1.96267rem;
width: 100%;
background-size: 16rem
}
.my .content .action ul li {
width: 25%
width: 25%
}
.my .content .tyby {
background-image: inherit
background-image: inherit
}
.setting .close {
margin:15px 20px
margin:15px 20px
}
.setting .close a{display: block;background: #ec5151;text-align: center;padding:10px;color: #fff;font-size:18px;border-radius:2px;}
@ -722,89 +686,89 @@ h1.arc_tit, h2.arc_tit{font-weight: normal;font-size: 1.4em;padding: 10px;}
/*商品详情*/
.goods-header {
display: block;
height: auto;
padding: 10px 0 0;
-webkit-tap-highlight-color: transparent;
border-top: 1px solid #f2f2f2;
background-color: #fff;
margin-bottom: 10px;
position: relative;
display: block;
height: auto;
padding: 10px 0 0;
-webkit-tap-highlight-color: transparent;
border-top: 1px solid #f2f2f2;
background-color: #fff;
margin-bottom: 10px;
position: relative;
}
.goods-header .title {
font-weight: normal;
padding: 0 10px;
font-size:18px;
line-height: 1.3;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
font-weight: normal;
padding: 0 10px;
font-size:18px;
line-height: 1.3;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.goods-header .wish-add {
position: relative;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
color:#ea6f5a;
background-color: transparent;
border: 1px solid #ea6f5a;
border-radius:2px;
font-size:14px;
padding:0 3px;
display: inline-block;
margin-right:10px;
position: relative;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
color:#ea6f5a;
background-color: transparent;
border: 1px solid #ea6f5a;
border-radius:2px;
font-size:14px;
padding:0 3px;
display: inline-block;
margin-right:10px;
}
.goods-header .wish-add-activate{color:#fff;background-color:#ea6f5a;}
.goods-header .goods-price {
padding: 10px 10px 2px;
text-align: left;
padding: 10px 10px 2px;
text-align: left;
}
.goods-header .current-price {
color: #f60;
display: inline-block;
color: #f60;
display: inline-block;
}
.goods-header .current-price span {
font-size: 16px;
display: inline-block;
vertical-align: middle;
font-size: 16px;
display: inline-block;
vertical-align: middle;
}
.goods-header .current-price .price {
display: inline-block;
vertical-align: middle;
font-size: 20px;
display: inline-block;
vertical-align: middle;
font-size: 20px;
}
.goods-header .btn-retail {
padding: 0 3px;
border-radius:2px;
color: #fff;
background-color: #1cbb7f;
display: inline-block;
text-align: center;
font-size: 12px;
cursor: pointer;
line-height: 1.5;
-webkit-appearance: none;
padding: 0 3px;
border-radius:2px;
color: #fff;
background-color: #1cbb7f;
display: inline-block;
text-align: center;
font-size: 12px;
cursor: pointer;
line-height: 1.5;
-webkit-appearance: none;
}
.goods-header .stock-detail {
position: relative;
line-height:1.5;
color: #999;
background-color: #fff;
padding:5px 10px;
position: relative;
line-height:1.5;
color: #999;
background-color: #fff;
padding:5px 10px;
}
.goods-header .stock-detail dl {display:table-cell;
margin-top: 10px;
margin-bottom: 10px;
font-size: 14px;
zoom: 1;
margin-top: 10px;
margin-bottom: 10px;
font-size: 14px;
zoom: 1;
}
.goods-header .stock-detail dt {
display: inline-block;
display: inline-block;
}
.goods-header .stock-detail dd {
display: inline-block;
word-wrap: break-word;
display: inline-block;
word-wrap: break-word;
}
.goods-header .goods-comment{margin-top:10px;border-top:10px solid #f1f1f1;height: 44px;line-height: 44px;padding: 0 10px 0 10px;}
.goods-header .goods-comment span{float:right;color:#999;}
@ -879,57 +843,57 @@ top: 0;
.cart_sum{color:#ff5000; font-size:16px; font-weight:700;}
.goods_type {
display: block;
line-height: 20px;
color: #999;
margin: 0;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
display: block;
line-height: 20px;
color: #999;
margin: 0;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.pop_num {
margin-left: 10px;margin-right: 10px;
height: 48px;
display: block;
border-bottom: 1px solid #e1e1e1;border-top: 1px solid #e1e1e1;
margin-left: 10px;margin-right: 10px;
height: 48px;
display: block;
border-bottom: 1px solid #e1e1e1;border-top: 1px solid #e1e1e1;
}
.pop_num span{ color:#999; display:inline-block; float:left; line-height:48px;}
.pop_sum{ display:inline-block; float:left; margin-left:15px; margin-top:5px; position:relative !important;}
.pop_btn{ margin-top:10px; margin-bottom:10px;}
.cart_num_control {
border: 1px solid #DADADA;
height: 24px;
display: inline-block;
margin: 7px 0px;
border: 1px solid #DADADA;
height: 24px;
display: inline-block;
margin: 7px 0px;
}
.cart_num_button {
width: 24px;
height: 24px;
display: inline-block;
border: 0px solid #DADADA;
text-decoration: none;
color: #585858;
font-size: 16px;
background-color: #f0f0f0;
width: 24px;
height: 24px;
display: inline-block;
border: 0px solid #DADADA;
text-decoration: none;
color: #585858;
font-size: 16px;
background-color: #f0f0f0;
}
.cart_num_text {
width: 24px;
text-align: center;
font-size: 12px;
height: 16px;
display: inline-block;
border: 0px solid #DADADA;
width: 24px;
text-align: center;
font-size: 12px;
height: 16px;
display: inline-block;
border: 0px solid #DADADA;
}
.registered_btn {
display: block;
margin:10px;
height: 42px;
line-height: 42px;
background-color: #ff5000;
text-align: center;
border-radius:2px;
color: #fff;
font-size: 16px;
display: block;
margin:10px;
height: 42px;
line-height: 42px;
background-color: #ff5000;
text-align: center;
border-radius:2px;
color: #fff;
font-size: 16px;
}
.banner_headline{height:30px;overflow:hidden;background-color:#f1f1f1;padding-bottom:20px;}

BIN
public/images/weixin/w10.png

Binary file not shown.

After

Width: 36  |  Height: 36  |  Size: 3.3 KiB

BIN
public/images/weixin/w11.png

Binary file not shown.

After

Width: 36  |  Height: 36  |  Size: 2.4 KiB

BIN
public/images/weixin/w9.png

Binary file not shown.

After

Width: 36  |  Height: 36  |  Size: 2.2 KiB

120
resources/views/weixin/feedback/userFeedbackAdd.blade.php

@ -0,0 +1,120 @@
<!DOCTYPE html><html><head><meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<title>意见与反馈</title><meta content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport">
<link href="<?php echo env('APP_URL'); ?>/css/weixin/style.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/weixin/mobile.js"></script>
<meta name="keywords" content="关键词"><meta name="description" content="描述"></head><body style="background-color:#f1f1f1;">
<div class="classreturn loginsignup ">
<div class="ds-in-bl return"><a href="javascript:history.back(-1);"><img src="<?php echo env('APP_URL'); ?>/images/weixin/return.png" alt="返回"></a></div>
<div class="ds-in-bl tit center"><span>意见与反馈</span></div>
<div class="ds-in-bl nav_menu"><a href="javascript:void(0);"><img src="<?php echo env('APP_URL'); ?>/images/weixin/class1.png" alt="菜单"></a></div>
</div>
@include('weixin.common.headerNav')
<style>
.adr_add{margin:0 10px;}
.adr-form-group{margin-top:10px;}
.adr-form-group input[type=text],.adr-form-group textarea{display: block;width: 100%;font-size:16px;padding:10px;color: #777;vertical-align: middle;background-color: #fff;background-image: none;border: 1px solid #ddd;border-radius: 0;box-sizing:border-box;}
.adr-form-group select{padding:5px;margin-right:10px;}
.bottoma{display:block;font-size:18px;padding:10px;color:white;background-color: #f23030;text-align:center;}
</style>
<div class="adr_add">
<div class="adr-form-group">
问题类型:
<select id="type" name="type">
<option value ="购物流程">购物流程</option>
<option value ="物流问题">物流问题</option>
<option value ="售后服务">售后服务</option>
<option value ="积分/优惠券">积分/优惠券</option>
<option value ="新品建议">新品建议</option>
<option value ="其他意见">其他意见</option>
</select>
</div>
<div class="adr-form-group">
<label for="doc-ta-1" style="border-left:2px solid #f23030;padding-left:4px;margin-bottom:2px;">详细地址(必填)</label>
<textarea style="margin-top:4px;" name="content" class="" rows="3" id="content" placeholder="提优质意见可得大礼哦"></textarea>
</div>
<div class="adr-form-group">
<label for="doc-ipt-mobile-1" style="border-left:2px solid #f23030;padding-left:4px;margin-bottom:2px;">您的联系方式(选填)</label>
<input style="margin-top:4px;" type="text" name="mobile" class="" id="mobile" placeholder="输入手机号码" value="">
</div>
</div>
<a style="margin:10px;" class="bottoma" href="javascript:dosubmit();">提交</a>
<script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/layer/mobile/layer.js"></script>
<script>
function dosubmit()
{
var access_token = '<?php echo $_SESSION['weixin_user_info']['access_token']; ?>';
var url = '<?php echo env('APP_API_URL').'/feedback_add'; ?>';
var type = $("#type").val();
var mobile = $("#mobile").val();
var content = $("#content").val();
if(type == '')
{
//提示
layer.open({
content: '问题类型必填'
,skin: 'msg'
,time: 2 //2秒后自动关闭
});
return false;
}
if(content == '')
{
//提示
layer.open({
content: '反馈内容不能为空'
,skin: 'msg'
,time: 2 //2秒后自动关闭
});
return false;
}
if(mobile!='' && validatemobile(mobile) == false)
{
//提示
layer.open({
content: '手机号格式不正确'
,skin: 'msg'
,time: 2 //2秒后自动关闭
});
return false;
}
$.post(url,{access_token:access_token,type:type,mobile:mobile,content:content},function(res)
{
if(res.code==0)
{
//提示
layer.open({
content: res.msg
,skin: 'msg'
,time: 2 //2秒后自动关闭
});
window.history.back();
}
else
{
//提示
layer.open({
content: res.msg
,skin: 'msg'
,time: 2 //2秒后自动关闭
});
var url = "http://www.baidu.com";
location.href = url;
}
},'json');
}
</script>
</body></html>

113
resources/views/weixin/user/index.blade.php

@ -3,16 +3,14 @@
<link href="<?php echo env('APP_URL'); ?>/css/weixin/style.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/weixin/mobile.js"></script></head><body>
<div class="myhearder">
<div class="myhearder" style="background:#ec5151;color:#fff;">
<div class="person">
<a href="<?php echo route('weixin_userinfo'); ?>">
<div class="fl personicon">
<div class="personicon">
<img src="<?php echo $user_info['head_img']; ?>" onerror="this.src='<?php echo env('APP_URL'); ?>/images/weixin/no_user.jpg'">
</div>
<div class="personicon">
<img src="<?php echo $user_info['head_img']; ?>" onerror="this.src='<?php echo env('APP_URL'); ?>/images/weixin/no_user.jpg'">
</div>
<div class="fl lors">
<span><?php if($user_info['user_name']){echo $user_info['user_name'];}else{echo $user_info['mobile'];} ?></span>
<div class="lors">
<?php if($user_info['user_name']){echo $user_info['user_name'];}else{echo $user_info['mobile'];} ?>
</div>
</a>
</div>
@ -20,9 +18,9 @@
<!--设置-->
<a class="setting" href="<?php echo route('weixin_userinfo'); ?>"><i></i></a>
<!--我的留言-->
<a class="massage" href="<?php echo route('weixin_user_message_list'); ?>"><i></i></a>
<!--<a class="massage" href="<?php echo route('weixin_user_message_list'); ?>"><i></i></a>-->
</div>
<div class="scgz">
<!-- <div class="scgz">
<ul>
<li>
<a href="<?php echo route('weixin_user_collect_goods'); ?>">
@ -38,13 +36,13 @@
</li>
</ul>
</div>
<img src="<?php echo env('APP_URL'); ?>/images/weixin/bjm.jpg" width="100%" height="100%" class="user_bg">
<img src="<?php echo env('APP_URL'); ?>/images/weixin/bjm.jpg" width="100%" height="100%" class="user_bg"> -->
</div>
<div class="floor my g4">
<div class="content">
<!--订单管理模块-s-->
<div class="floor myorder mt10">
<div class="floor myorder">
<div class="content30">
<div class="order">
<div class="fl">
@ -152,13 +150,13 @@
</a>
</div>
</div>
<!-- <div class="myorder p">
<div class="myorder p">
<div class="content30">
<a href="/index.php/Mobile/User/comment/status/1.html">
<a href="<?php echo route('weixin_user_collect_goods'); ?>">
<div class="order">
<div class="fl">
<img src="<?php echo env('APP_URL'); ?>/images/weixin/w2.png">
<span>我的评价</span>
<img src="<?php echo env('APP_URL'); ?>/images/weixin/w9.png">
<span>我的收藏</span>
</div>
<div class="fr">
<i class="Mright"></i>
@ -166,14 +164,14 @@
</div>
</a>
</div>
</div> -->
<!-- <div class="myorder p">
</div>
<div class="myorder p">
<div class="content30">
<a href="/index.php/Mobile/Goods/integralMall.html">
<a href="<?php echo route('weixin_user_goods_history'); ?>">
<div class="order">
<div class="fl">
<img src="<?php echo env('APP_URL'); ?>/images/weixin/w5.png">
<span>积分商城</span>
<img src="<?php echo env('APP_URL'); ?>/images/weixin/w3.png">
<span>我的足迹</span>
</div>
<div class="fr">
<i class="Mright"></i>
@ -181,14 +179,14 @@
</div>
</a>
</div>
</div> -->
</div>
<div class="myorder p">
<div class="content30">
<a href="<?php echo route('weixin_bonus_list',array('parent_id'=>$_SESSION['weixin_user_info']['id'])); ?>">
<a href="<?php echo route('weixin_user_address_list'); ?>">
<div class="order">
<div class="fl">
<img src="<?php echo env('APP_URL'); ?>/images/weixin/w7.png">
<span>领券中心</span>
<img src="<?php echo env('APP_URL'); ?>/images/weixin/w10.png">
<span>地址管理</span>
</div>
<div class="fr">
<i class="Mright"></i>
@ -199,11 +197,11 @@
</div>
<div class="myorder p">
<div class="content30">
<a href="<?php echo route('weixin_user_goods_history'); ?>">
<a href="">
<div class="order">
<div class="fl">
<img src="<?php echo env('APP_URL'); ?>/images/weixin/w3.png">
<span>我的足迹</span>
<img src="<?php echo env('APP_URL'); ?>/images/weixin/w11.png"/>
<span>推介赚钱</span>
</div>
<div class="fr">
<i class="Mright"></i>
@ -214,11 +212,11 @@
</div>
<div class="myorder p">
<div class="content30">
<a href="<?php echo route('weixin_user_address_list'); ?>">
<a href="">
<div class="order">
<div class="fl">
<img src="<?php echo env('APP_URL'); ?>/images/weixin/w8.png">
<span>地址管理</span>
<img src="<?php echo env('APP_URL'); ?>/images/weixin/w6.png"/>
<span>帮助中心</span>
</div>
<div class="fr">
<i class="Mright"></i>
@ -227,15 +225,13 @@
</a>
</div>
</div>
<!--
<div class="myorder p">
<div class="content30">
<a href="">
<a href="<?php echo route('weixin_user_feedback_add'); ?>">
<div class="order">
<div class="fl">
<img src="images/w3.png"/>
<span>我的预售</span>
<img src="<?php echo env('APP_URL'); ?>/images/weixin/w7.png"/>
<span>意见反馈</span>
</div>
<div class="fr">
<i class="Mright"></i>
@ -244,13 +240,44 @@
</a>
</div>
</div>
<div class="myorder p">
<!-- <div class="myorder p">
<div class="content30">
<a href="">
<a href="/index.php/Mobile/User/comment/status/1.html">
<div class="order">
<div class="fl">
<img src="images/w4.png"/>
<span>我的拼团</span>
<img src="<?php echo env('APP_URL'); ?>/images/weixin/w2.png">
<span>我的评价</span>
</div>
<div class="fr">
<i class="Mright"></i>
</div>
</div>
</a>
</div>
</div> -->
<!-- <div class="myorder p">
<div class="content30">
<a href="/index.php/Mobile/Goods/integralMall.html">
<div class="order">
<div class="fl">
<img src="<?php echo env('APP_URL'); ?>/images/weixin/w5.png">
<span>积分商城</span>
</div>
<div class="fr">
<i class="Mright"></i>
</div>
</div>
</a>
</div>
</div> -->
<!-- <div class="myorder p">
<div class="content30">
<a href="<?php echo route('weixin_bonus_list',array('parent_id'=>$_SESSION['weixin_user_info']['id'])); ?>">
<div class="order">
<div class="fl">
<img src="<?php echo env('APP_URL'); ?>/images/weixin/w7.png">
<span>领券中心</span>
</div>
<div class="fr">
<i class="Mright"></i>
@ -264,8 +291,8 @@
<a href="">
<div class="order">
<div class="fl">
<img src="images/w6.png"/>
<span>帮助中心</span>
<img src="images/w3.png"/>
<span>我的预售</span>
</div>
<div class="fr">
<i class="Mright"></i>
@ -279,8 +306,8 @@
<a href="">
<div class="order">
<div class="fl">
<img src="images/w7.png"/>
<span>意见反馈</span>
<img src="images/w4.png"/>
<span>我的拼团</span>
</div>
<div class="fr">
<i class="Mright"></i>

6
resources/views/weixin/user/register.blade.php

@ -41,7 +41,7 @@
<input type="password" name="re_password" class="" id="re_password" placeholder="确认密码">
</div>
<div class="adr-form-group">
<input value="<?php if(isset($_SESSION['weixin_user_invite_code'])){echo $_SESSION['weixin_user_invite_code'];} ?>" type="text" name="parent_mobile" class="" id="parent_mobile" placeholder="请输入推荐人手机号,选填">
<input value="<?php if(isset($_SESSION['weixin_user_invite_code'])){echo $_SESSION['weixin_user_invite_code'];} ?>" type="text" name="parent_id" class="" id="parent_id" placeholder="请输入推荐,选填">
</div>
</div>
</form>
@ -60,7 +60,7 @@ function submit()
var mobile = $("#mobile").val();
var password = $("#password").val();
var re_password = $("#re_password").val();
var parent_mobile = $("#parent_mobile").val();
var parent_id = $("#parent_id").val();
if(user_name == '')
{
@ -118,7 +118,7 @@ function submit()
}
//$("#login").submit();
$.post('<?php echo env('APP_API_URL').'/wx_register'; ?>',{user_name:user_name,mobile:mobile,parent_mobile:parent_mobile,password:md5(password)},function(res)
$.post('<?php echo env('APP_API_URL').'/wx_register'; ?>',{user_name:user_name,mobile:mobile,parent_id:parent_id,password:md5(password)},function(res)
{
if(res.code==0)
{

2
resources/views/weixin/user/userinfo.blade.php

@ -248,7 +248,7 @@ function qrcode_layer()
{
//询问框
layer.open({
content: '<div><div><img style="width:100%;" class="imgzsy" src="<?php echo get_erweima(route('weixin',array('invite_code'=>$_SESSION['weixin_user_info']['mobile'])),240); ?>"></div><p style="color:#999;">扫一扫,你懂得</p></div>'
content: '<div><div><img style="width:100%;" class="imgzsy" src="<?php echo get_erweima(route('weixin',array('invite_code'=>$_SESSION['weixin_user_info']['id'])),240); ?>"></div><p style="color:#999;">扫一扫,你懂得</p></div>'
});
}
</script>

2
routes/web.php

@ -119,6 +119,8 @@ Route::group(['prefix' => 'weixin', 'namespace' => 'Weixin', 'middleware' => ['w
Route::get('/user_address', 'AddressController@index')->name('weixin_user_address_list');
Route::get('/user_address_add', 'AddressController@userAddressAdd')->name('weixin_user_address_add');
Route::get('/user_address_update', 'AddressController@userAddressUpdate')->name('weixin_user_address_update');
//意见反馈
Route::get('/user_feedback_add', 'FeedbackController@userFeedbackAdd')->name('weixin_user_feedback_add');
});

Loading…
Cancel
Save