代码拉取完成,页面将自动刷新
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script>
</head>
<body>
<table>
<tr>
<td><input type="button" value="模拟小程序接口请求(先看代码,别乱点)" onclick="setOp();"/></td>
<td><a href="/addons/zjhj_mall/core/web/index.php?r=gii">GII自动生成</a></td>
<td><input type="button" value="去商户管理后台" onclick="gotoShp();"/></td>
<td><input type="button" value="去总管理后台" onclick="gotoAdmin();"/></td>
</tr>
</table>
<script type="application/javascript">
function gotoShp(){
var url = '/addons/zjhj_mall/core/web/index.php?r=admin/passport/login';
window.location = url;
}
function gotoAdmin(){
var url = '/addons/zjhj_mall/core/web/index.php?r=admin/passport/admin-login';
window.location = url;
}
function setOp()
{
var url = '/addons/zjhj_mall/core/web/index.php?store_id=1&r=api/default/test';
//提交基本资料
//var url = "/addons/zjhj_mall/core/web/index.php?store_id=1&r=api/user/save-profile";
//短信
// var url = "/addons/zjhj_mall/core/web/index.php?store_id=1&r=api/user/send-sms";
//完善商户资料
// var url = "/addons/zjhj_mall/core/web/index.php?store_id=1&r=api/share/join-mch";
//获取拼团分享二维码
// var url ="addons/zjhj_mall/core/web/index.php?store_id=1&r=api/group/index/poster-qrcode&goods_id=1&access_token=9hiFPRvAGNv0giYFy--YSF_wV1prd5xW&_uniacid=-1&_acid=-1";
// var url = "/addons/zjhj_mall/core/web/index.php?store_id=1&r=api/share/test-sms&access_token=9hiFPRvAGNv0giYFy--YSF_wV1prd5xW&_uniacid=-1&_acid=-1";
// var url ="/addons/zjhj_mall/core/web/index.php?store_id=1&r=api/group/order/create-order";
// var url ="/addons/zjhj_mall/core/web/index.php?v=2.0&store_id=1&r=api/group/order/create-order-two";
// var url ="/addons/zjhj_mall/core/web/index.php?store_id=1&mch_id=117&r=api/default/store";
//首页
// var url = '/addons/zjhj_mall/core/web/index.php?store_id=1&r=api/default/index';
// var url = '/addons/zjhj_mall/core/web/pay-notify.php';
// var url = '/addons/zjhj_mall/core/web/index.php?store_id=1&r=api/passport/login';
// var url = '/addons/zjhj_mall/core/web/index.php?store_id=1&r=api/passport/app-login';
// var url = '/addons/zjhj_mall/core/web/index.php?store_id=1&r=api/packets/show-red-packets';
// var url = '/addons/zjhj_mall/core/web/index.php?store_id=1&r=api/passport/login-by-phone';
// var url = '/addons/zjhj_mall/core/web/index.php?store_id=1&r=api/default/shop-list';
// var url = '/addons/zjhj_mall/core/web/index.php?store_id=1&r=api/group/index/get-question';
// var url = '/addons/zjhj_mall/core/web/index.php?store_id=1&r=api/group/index/save-answer';
//var url = '/addons/zjhj_mall/core/web/index.php?store_id=1&r=api/group/index/good-list-two';
// var url = '/addons/zjhj_mall/core/web/index.php?store_id=1&r=api/group/order/app-pay-data';
// var url = '/addons/zjhj_mall/core/web/index.php?store_id=1&r=api/share-user/poster-qrcode';
// var url = '/addons/zjhj_mall/core/web/index.php?store_id=1&r=api/wei-xin/reply';
var json ='{}';
var data = JSON.parse(json);
data.access_token = 'ABBhjI3T04U0Q2C2QkO7pWv8hKP6URPu';
data._uniacid = -1;
data._acid = -1;
//微信支付
// data.pay_type = 'WECHAT_PAY';
// data.order_id = 689;
//保存问卷
// data.content = '[{"id":123}]';
// data.cid = 1;
//获取问答列表
// data.goods_id = 68;
//2.0创建订单
// data.longitude = 120.18002;
// data.latitude = 30.242235;
// data.longitude = 120.17534637451172;
// data.latitude = 30.24441146850586;
// data.offline = 2;
// data.shop_id = 1;
// data.goods_info = '{"goods_id":"1","say":"你好","latitude":30.24025,"longitude":120.17089,"price":"8.00","people":"2","num":1,"type":"GROUP_BUY"}';
// data.type = 'GROUP_BUY';
// data.address_name = '未知';
// data.address_mobile = '18268918636';
// data.children_id = 145;
// data.user_coupon_id = '';
// data.latitude = 30.24259;
// data.longitude = 120.16929;
// data.say = '你好';
// data.people = 2;
//微信授权登录
// data.user_info = '{"openid":"oYQqy0sX_8_A3QeUXucP6iUAt8v4","nickname":"A 电影助手","sex":1,"province":"浙江","city":"杭州","country":"中国","headimgurl":"http://thirdwx.qlogo.cn/mmopen/vi_32/x6161fP5vC6tAS5orFt1ib79LEAtDRZRENpI0FJ5gYmtVseNr8ZOf5oa3eMVlJgdxktJYkdUqaQib9qtZibbDcdXA/132","privilege":[],"unionid":"oY1zS1N3kp9rnMTarks5b85ErxNs","status":true,"code":0}';
//手机号登录
// data.mobile = '18268918636';
// data.password = 'yanjiao123456';
//经纬度
// data.longitude = '120.1536';
// data.latitude = '30.26555';
//提交基本资料
// data.code = '5969';
// data.mobile = '18268918636';
// data.realname = '李炜程';
// data.password = 'yanjiao123456';
// data.idcard = '332526199911114444';
// data.children = '[{"name":"小炜程","sex":"1","age":"19","grade":"4"}]';
//短信
// data.mobile = '18268918636';
//机构资料填写
// data.name = '测试机构';
// data.mobile = '18268918636';
// data.boss_phone = '18268918636';
// data.longitude = '120.21201';
// data.latitude = '30.2084';
// data.address = '详细地址';
// data.company_desc = '公司简介';
// data.address_array = '["浙江省","杭州市","上城区"]';
// data.label_list = '["0-3岁","小学"]';
//提交订单
// data.offline = '2';
// data.shop_id = '1';
// data.goods_info = '{"goods_id":"3","attr":[],"num":1,"type":"ONLY_BUY"}';
// data.type = 'ONLY_BUY';
// data.address_name = '123';
// data.address_mobile = '18200000000';
// data.children_id = '1';
// data.user_coupon_id = '';
// data.label_list = '["0-3岁","小学"]';
//充值
// data.money = '1';
//测试商户小程序
// data.mch_id = '117';
$.get(url,data,function(ret){
console.log(ret);
});
}
</script>
</body>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。