mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2026-06-07 02:12:25 +08:00
log
This commit is contained in:
@ -11,6 +11,8 @@
|
||||
* 支付宝小程序:https://shopxo.net/alipay.html (已发布)
|
||||
* 微信小程序:https://shopxo.net/weixin.html (已发布)
|
||||
* 百度小程序:https://shopxo.net/baidu.html (已发布)
|
||||
* 头条&抖音小程序:https://shopxo.net/zijietiaodong.html (已发布)
|
||||
* QQ小程序:https://shopxo.net/qq.html (已发布)
|
||||
|
||||
### 小程序体验码
|
||||

|
||||
@ -124,6 +126,12 @@ ThinkPHP是一个快速、简单的基于MVC和面向对象的轻量级PHP开发
|
||||
百度小程序
|
||||
> 基础配置
|
||||
> 小程序源码包
|
||||
头条小程序
|
||||
> 基础配置
|
||||
> 小程序源码包
|
||||
QQ小程序
|
||||
> 基础配置
|
||||
> 小程序源码包
|
||||
支付宝生活号(仅v1.1.0版本有,后续版本已移除)
|
||||
> 生活号管理
|
||||
> 生活号分类
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
ShopXO 1.7.0 Release 20191106 http://shopxo.net
|
||||
+=========================================================+
|
||||
web端
|
||||
1. 新增 商品规格自动生成
|
||||
1. 新增 商品规格自动生成以及批量操作
|
||||
2. 新增 订单商品评论支持图片
|
||||
3. 新增 QQ钱包支付
|
||||
4. 优化 插件管理
|
||||
@ -18,6 +18,7 @@ web端
|
||||
6. 新增 头条/抖音小程序
|
||||
7. 新增 QQ小程序
|
||||
8. 新增 限时秒杀优化
|
||||
9. 新增 展示型
|
||||
|
||||
插件
|
||||
1. 新增 商城报价单(打印/导出)
|
||||
|
||||
@ -67,7 +67,7 @@ App({
|
||||
// 请求地址
|
||||
request_url: "{{request_url}}",
|
||||
// request_url: 'http://tp5-dev.com/',
|
||||
// request_url: 'https://test.shopxo.net/',
|
||||
request_url: 'https://test.shopxo.net/',
|
||||
|
||||
// 基础信息
|
||||
application_title: "{{application_title}}",
|
||||
@ -171,7 +171,6 @@ App({
|
||||
* auth_data 授权数据
|
||||
*/
|
||||
user_auth_login(object, method, auth_data) {
|
||||
qq.showLoading({ title: "授权中..." });
|
||||
var self = this;
|
||||
qq.checkSession({
|
||||
success: function () {
|
||||
@ -197,6 +196,7 @@ App({
|
||||
*/
|
||||
user_login(object, method, auth_data) {
|
||||
var self = this;
|
||||
qq.showLoading({ title: "授权中..." });
|
||||
qq.login({
|
||||
success: (res) => {
|
||||
if (res.code) {
|
||||
@ -207,14 +207,17 @@ App({
|
||||
dataType: 'json',
|
||||
header: { 'content-type': 'application/x-www-form-urlencoded' },
|
||||
success: (res) => {
|
||||
qq.hideLoading();
|
||||
if (res.data.code == 0) {
|
||||
qq.setStorage({
|
||||
key: self.data.cache_user_login_key,
|
||||
data: res.data.data
|
||||
});
|
||||
self.get_user_login_info(object, method, res.data.data, auth_data);
|
||||
if((auth_data || null) != null && (auth_data.encryptedData || null) != null && (auth_data.iv || null) != null)
|
||||
{
|
||||
self.get_user_login_info(object, method, res.data.data, auth_data);
|
||||
}
|
||||
} else {
|
||||
qq.hideLoading();
|
||||
self.showToast(res.data.msg);
|
||||
}
|
||||
},
|
||||
@ -246,6 +249,7 @@ App({
|
||||
|
||||
// 远程解密数据
|
||||
var self = this;
|
||||
qq.showLoading({ title: "授权中..." });
|
||||
qq.request({
|
||||
url: self.get_request_url('qquserinfo', 'user'),
|
||||
method: 'POST',
|
||||
|
||||
@ -24,36 +24,29 @@ Page({
|
||||
|
||||
// 标题设置
|
||||
qq.setNavigationBarTitle({ title: (this.data.user == null) ? '授权用户信息' : '手机绑定' });
|
||||
|
||||
// 用户授权
|
||||
app.user_login();
|
||||
},
|
||||
|
||||
/**
|
||||
* 登录授权事件
|
||||
*/
|
||||
get_user_info_event(e) {
|
||||
this.user_auth_code(null, null, e.detail);
|
||||
this.user_auth_code(e.detail);
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户授权
|
||||
* object 回调操作对象
|
||||
* method 回调操作对象的函数
|
||||
* auth_data 授权数据
|
||||
*/
|
||||
user_auth_code(object, method, auth_data) {
|
||||
// 请求授权接口
|
||||
var self = this;
|
||||
qq.getSetting({
|
||||
success(res) {
|
||||
if (!res.authSetting['scope.userInfo']) {
|
||||
self.setData({ user: null});
|
||||
} else {
|
||||
app.user_auth_login(self, 'user_auth_back_event', auth_data);
|
||||
}
|
||||
},
|
||||
fail: (e) => {
|
||||
app.showToast("授权校验失败");
|
||||
}
|
||||
});
|
||||
user_auth_code(auth_data) {
|
||||
if((auth_data.encryptedData || null) != null && (auth_data.iv || null) != null)
|
||||
{
|
||||
app.user_auth_login(this, 'user_auth_back_event', auth_data);
|
||||
} else {
|
||||
app.showToast("授权失败");
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user