Browse Source

协议相关,默认值相关

master
max 3 years ago
parent
commit
42461b4386
  1. 2
      pages/index/activeDetail/activeDetail.wxml
  2. 24
      pages/index/myjoin/myjoin.js
  3. 6
      pages/index/myjoin/myjoin.wxml
  4. 3
      pages/index/myjoin/myjoin.wxss
  5. 6
      pages/index/order/order.js
  6. 2
      pages/index/order/order.wxml
  7. 3
      pages/index/order/order.wxss
  8. 12
      pages/release/addactive/addactive.js
  9. 24
      pages/release/addactive/addactive.wxml
  10. 6
      project.config.json
  11. 22
      project.private.config.json

2
pages/index/activeDetail/activeDetail.wxml

@ -120,7 +120,7 @@
<view class="other-right"> <view class="other-right">
<view class="other-name">{{item.activityName}}</view> <view class="other-name">{{item.activityName}}</view>
<view class="other-time">{{item.startRegisterTime+'至'+item.endRegisterTime}}</view> <view class="other-time">{{item.startRegisterTime+'至'+item.endRegisterTime}}</view>
<view class="other-people"><text>报名:{{item.totalRegister}}人</text></view> <view class="other-people"><text>报名:{{item.totalRegister || '0'}}人</text></view>
</view> </view>
</view> </view>
</block> </block>

24
pages/index/myjoin/myjoin.js

@ -22,7 +22,6 @@ Page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
Agreement:'http://api.tuleduo.cn/privacy_agreement.html',
genderdata: '', genderdata: '',
joiner: [{ joiner: [{
clubId: '', clubId: '',
@ -43,6 +42,14 @@ Page({
info: {}, info: {},
checked: false checked: false
}, },
xieyi(e){
this.setData({checked: e.detail.value.length > 0})
},
seexcieyi(){
wx.navigateTo({
url: '/pages/xieyi/xieyi?path=' + decodeURIComponent('http://api.tuleduo.cn/privacy_agreement.html'),
});
},
history: function () { history: function () {
wx.navigateTo({ wx.navigateTo({
url: '../history/history' url: '../history/history'
@ -53,7 +60,7 @@ Page({
*/ */
onLoad: function (options) { onLoad: function (options) {
var that = this; var that = this;
//console.log(options); console.log(options);
that.setData({ that.setData({
clubId: options.clubId, clubId: options.clubId,
activityId: options.acId, activityId: options.acId,
@ -61,23 +68,12 @@ Page({
}) })
that.init(); that.init();
}, },
xieyi(e){
this.setData({
checked: e.detail.value.length > 0
});
},
init: function () { init: function () {
let that = this; let that = this;
this.setData({ this.setData({
info: new Info(), info: new Info(),
}); });
}, },
seexcieyi:function(e){
var webview= e.target.dataset.webview
wx.navigateTo({
url: '/pages/webview/webview?webview='+webview,
})
},
deteleItem : function(e){ deteleItem : function(e){
var that = this; var that = this;
let info = this.data.info; let info = this.data.info;
@ -244,8 +240,6 @@ Page({
postData[i].cost = that.data.price; postData[i].cost = that.data.price;
} }
postData = JSON.stringify(postData); postData = JSON.stringify(postData);
console.log(postData); console.log(postData);
let lastData = { let lastData = {
req: postData req: postData

6
pages/index/myjoin/myjoin.wxml

@ -74,8 +74,10 @@
</view> </view>
<view class="agree"> <view class="agree">
<checkbox-group bindchange="xieyi"> <checkbox-group bindchange="xieyi">
<checkbox name="box_check" checked="{{checked}}"></checkbox> <label>
我已阅读并同意<text bindtap='seexcieyi' data-webview="{{Agreement}}">《**活动报名协议》</text> <checkbox name="box_check" checked="{{checked}}"></checkbox>我已阅读并同意
</label>
<text class="xy" bindtap='seexcieyi'>《活动报名协议》</text>
</checkbox-group> </checkbox-group>
</view> </view>
</view> </view>

3
pages/index/myjoin/myjoin.wxss

@ -30,3 +30,6 @@ checkbox{transform:scale(0.6);}
.bottom .price text{color:#F66A01;font-size:50rpx;} .bottom .price text{color:#F66A01;font-size:50rpx;}
.bottom .price text text{font-size:24rpx;} .bottom .price text text{font-size:24rpx;}
.bottom .join{width:35%;text-align: center;color:#fff;background: #F66A01;} .bottom .join{width:35%;text-align: center;color:#fff;background: #F66A01;}
.xy{
color: blue;
}

6
pages/index/order/order.js

@ -14,6 +14,12 @@ Page({
orderId:'', orderId:'',
theOrderDetail: {} theOrderDetail: {}
}, },
toxypage(){
wx.navigateTo({
url: '/pages/xieyi/xieyi?path=' + encodeURIComponent('http://api.tuleduo.cn/pay_privacy_agreement.html'),
});
return false;
},
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载

2
pages/index/order/order.wxml

@ -72,7 +72,7 @@
<checkbox-group bindchange="checkboxChange"> <checkbox-group bindchange="checkboxChange">
<label class="xieyi-class"> <label class="xieyi-class">
<checkbox checked="{{checked}}" name="box_check" value="{{checked}}" bind></checkbox> <checkbox checked="{{checked}}" name="box_check" value="{{checked}}" bind></checkbox>
并同意<text bindtap='seexcieyi' data-webview="{{Agreement}}">《报名了服务协议》</text>,并确认活动真实性,同意支付报名 同意<text class="xy" catchtap="toxypage">《服务协议》</text>,并确认活动真实性,同意支付报名
</label> </label>
</checkbox-group> </checkbox-group>
</view> </view>

3
pages/index/order/order.wxss

@ -27,3 +27,6 @@ radio,checkbox{transform:scale(0.6);}
display: flex; display: flex;
align-items: center; align-items: center;
} }
.xy{
color: blue !important;
}

12
pages/release/addactive/addactive.js

@ -426,15 +426,15 @@ console.log(startT);
}) })
}, },
//查看协议 //查看协议
seexcieyi: function (e) { seexcieyi: function () {
wx.navigateTo({
url: '/pages/xieyi/xieyi?path=' + encodeURIComponent('http://api.tuleduo.cn/pay_privacy_agreement.html'),
})
// var that = this; // var that = this;
// that.setData({ // that.setData({
// flag: false // flag: false
// }) // })
var webview= e.target.dataset.webview // that.self();
wx.navigateTo({
url: '/pages/webview/webview?webview='+webview,
})
}, },
//看完协议了 //看完协议了
know: function () { know: function () {
@ -649,7 +649,7 @@ uploadfront: function (e) {
}; };
if(!this.data.checked){ if(!this.data.checked){
wx.showToast({ wx.showToast({
title: '请先阅读并同意服务协议', title: '请先阅读并同意协议',
icon: 'none', icon: 'none',
duration: 1500 duration: 1500
}) })

24
pages/release/addactive/addactive.wxml

@ -194,8 +194,8 @@
<text>是否显示报名列表</text> <text>是否显示报名列表</text>
<view class="authright"> <view class="authright">
<radio-group name="isShowRegister" bindchange="showregisterChange" > <radio-group name="isShowRegister" bindchange="showregisterChange" >
<label><radio value="0" checked="true" color="#FFCB12"/>不显示</label> <label><radio value="0" color="#FFCB12"/>不显示</label>
<label><radio value="1" color="#FFCB12"/>显示</label> <label><radio value="1" checked="true" color="#FFCB12"/>显示</label>
</radio-group> </radio-group>
</view> </view>
</view> </view>
@ -203,8 +203,8 @@
<text>是否显示主办方信息</text> <text>是否显示主办方信息</text>
<view class="authright"> <view class="authright">
<radio-group name="isShowSponsor" bindchange="sponsorChange" > <radio-group name="isShowSponsor" bindchange="sponsorChange" >
<label><radio value="0" checked="true" color="#FFCB12"/>不显示</label> <label><radio value="0" color="#FFCB12"/>不显示</label>
<label><radio value="1" color="#FFCB12"/>显示</label> <label><radio value="1" checked="true" color="#FFCB12"/>显示</label>
</radio-group> </radio-group>
</view> </view>
</view> </view>
@ -226,8 +226,8 @@
<text>小程序通知</text> <text>小程序通知</text>
<view class="authright"> <view class="authright">
<radio-group name="isAppletNotify" bindchange="appleChange" > <radio-group name="isAppletNotify" bindchange="appleChange" >
<label><radio value="0" checked="true" color="#FFCB12"/>不通知</label> <label><radio value="0" color="#FFCB12"/>不通知</label>
<label><radio value="1" color="#FFCB12"/>通知</label> <label><radio value="1" checked="true" color="#FFCB12"/>通知</label>
</radio-group> </radio-group>
</view> </view>
</view> </view>
@ -235,8 +235,8 @@
<text>短信通知</text> <text>短信通知</text>
<view class="authright"> <view class="authright">
<radio-group name="isSmsNotify" bindchange="smsChange" > <radio-group name="isSmsNotify" bindchange="smsChange" >
<label><radio value="0" checked="true" color="#FFCB12"/>不通知</label> <label><radio value="0" color="#FFCB12"/>不通知</label>
<label><radio value="1" color="#FFCB12"/>通知</label> <label><radio value="1" checked="true" color="#FFCB12"/>通知</label>
</radio-group> </radio-group>
</view> </view>
</view> </view>
@ -244,8 +244,8 @@
<text>报名后自动加入俱乐部</text> <text>报名后自动加入俱乐部</text>
<view class="authright"> <view class="authright">
<radio-group name="isJoin" bindchange="isJoinChange" > <radio-group name="isJoin" bindchange="isJoinChange" >
<label><radio value="0" checked="true" color="#FFCB12"/>不通知</label> <label><radio value="0" color="#FFCB12"/>不自动加入</label>
<label><radio value="1" color="#FFCB12"/>通知</label> <label><radio value="1" checked="true" color="#FFCB12"/>自动加入</label>
</radio-group> </radio-group>
</view> </view>
</view> </view>
@ -255,8 +255,10 @@
</view> </view>
<view class="agree"> <view class="agree">
<checkbox-group bindchange="xieyi"> <checkbox-group bindchange="xieyi">
<label>
<checkbox name="box_check" value="{{checked}}"></checkbox> <checkbox name="box_check" value="{{checked}}"></checkbox>
我已阅读并同意<text bindtap='seexcieyi' data-webview="{{Agreement}}">《报名了服务协议》</text> 我已阅读并同意<text catchtap='seexcieyi'>《服务协议》</text>
</label>
</checkbox-group> </checkbox-group>
</view> </view>
</view> </view>

6
project.config.json

@ -23,9 +23,9 @@
"uploadWithSourceMap": true, "uploadWithSourceMap": true,
"compileHotReLoad": false, "compileHotReLoad": false,
"lazyloadPlaceholderEnable": false, "lazyloadPlaceholderEnable": false,
"useMultiFrameRuntime": true, "useMultiFrameRuntime": false,
"useApiHook": true, "useApiHook": false,
"useApiHostProcess": true, "useApiHostProcess": false,
"babelSetting": { "babelSetting": {
"ignore": [], "ignore": [],
"disablePlugins": [], "disablePlugins": [],

22
project.private.config.json

@ -2,7 +2,18 @@
"setting": { "setting": {
"compileHotReLoad": true "compileHotReLoad": true
}, },
"projectname": "bml_travel_applets",
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
"condition": { "condition": {
"plugin": {
"list": []
},
"game": {
"list": []
},
"gamePlugin": {
"list": []
},
"miniprogram": { "miniprogram": {
"list": [ "list": [
{ {
@ -346,10 +357,15 @@
"pathName": "pages/release/quan/quan", "pathName": "pages/release/quan/quan",
"query": "", "query": "",
"scene": null "scene": null
},
{
"name": "",
"pathName": "pages/release/addactive/addactive",
"query": "",
"scene": null,
"launchMode": "default"
} }
] ]
} }
}, }
"projectname": "bml_travel_applets",
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html"
} }
Loading…
Cancel
Save