Skip to content

Commit

Permalink
修复导入饼时取消选择错误问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Mfweb committed Oct 4, 2018
1 parent 054baa4 commit 7e2f677
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
6 changes: 6 additions & 0 deletions AdaoMemberSystem/pages/app-cookie/app-cookie.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ Page({
},
onTapCheckbox: function(res) {
var detail = this.data.CookieList[res.currentTarget.id].detail;
if (this.data.CookieList[res.currentTarget.id].checked == true) {
this.data.CookieList[res.currentTarget.id].checked = false;
this.setData({ CookieList: this.data.CookieList});
console.log(this.data.returnJson);
return;
}
if (detail == undefined || detail == null || detail == '') {
this.setData({ disableCheckbox: true, disableLaunch: true});
this.getDetail(res.currentTarget.id);
Expand Down
3 changes: 3 additions & 0 deletions AdaoMemberSystem/pages/app-cookie/app-cookie.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,8 @@
<view class='message'>
请注意,如果确定导入饼干,则APP可以获取饼干内容(不会获得饼干显示名以及实名内容),请确定调用小程序的APP是否是需要导入饼干的APP,否则可能有变RBQ的风险。
</view>
<view class='message'>
紫岛只支持导入1个饼干,如果点击导入后没有返回APP请重新从APP调用。
</view>
<button open-type="launchApp" app-parameter="{{returnJson}}" binderror="onLaunchAppError" bindtap='onTapReturn' disabled="{{disableLaunch}}" class="nButton" type="primary">确认导入选中的饼干</button>
</view>
6 changes: 5 additions & 1 deletion AdaoMemberSystem/pages/index/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ Page({
this.switchPage(0);
wx.showNavigationBarLoading();
this.showNotice(function () {
//app.globalData.SystemInfo.Scene = 1069;
//1078用来测试的,因为小程序调试工具不支持1069
if (app.globalData.SystemInfo.Scene == 1078) {
app.globalData.SystemInfo.Scene = 1069;
pageEvent.mode = 'cookie';
}
memberMode = 0;
if (app.globalData.SystemInfo.Scene == 1069) {//通过APP拉起
if (pageEvent.mode != undefined && pageEvent.mode == 'reg') {
Expand Down
4 changes: 2 additions & 2 deletions AdaoMemberSystem/project.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"list": []
},
"miniprogram": {
"current": 3,
"current": 1,
"list": [
{
"id": -1,
Expand All @@ -44,7 +44,7 @@
"name": "APP调用获取饼干",
"pathName": "pages/index/index",
"query": "mode=cookie",
"scene": "1054"
"scene": "1078"
},
{
"id": -1,
Expand Down

0 comments on commit 7e2f677

Please sign in to comment.