PageSourceSearch

https://yidu.ink/js/src_mobile_screens_chinesepark_VipFeaturesScreen_js.4f7a6ecb.chunk.js

js yidu.ink collected 2026-09-30 09:48:47 UTC 13,074 bytes, 2 lines download raw bytes

1(self.webpackChunkaichiense=self.webpackChunkaichiense||[]).push([["src_mobile_screens_chinesepark_VipFeaturesScreen_js"],{426674:function(e,t,n){"use strict";n.r(t),n.d(t,{ActionTypes:function(){return a}});var r=n("244223").default.screens.chinesepark.vipFeatures,a={LOAD_SCREEN_VIEW_ASYNC:"".concat(r,".loadScreenViewAsync"),LOAD_SCREEN_VIEW_SUCCESS:"".concat(r,".loadScreenViewSuccess"),LOAD_SCREEN_VIEW_FAILURE:"".concat(r,".loadScreenViewFailure"),SET_ROOM_ASYNC:"".concat(r,".setRoomAsync"),SET_ROOM_SUCCESS:"".concat(r,".setRoomSuccess"),SET_ROOM_FAILURE:"".concat(r,".setRoomFailure"),SAVE_CLASS_ASYNC:"".concat(r,".saveClassAsync"),SAVE_CLASS_SUCCESS:"".concat(r,".saveClassSuccess"),SAVE_CLASS_FAILURE:"".concat(r,".saveClassFailure")}},336570:function(e,t,n){"use strict";n.r(t),n.d(t,{ActionTypes:function(){return d.ActionTypes},Actions:function(){return h},reducer:function(){return y},INITIAL_STATE:function(){return _}});var r,a=n("629232"),i=n("171697"),o=n("926690"),s=n("246695"),c=n("244223"),l=n("44020"),u=n("875357"),p=n("372237"),d=n("426674"),S=n("214136"),f=c.default.screens.chinesepark.vipFeatures,h={loadScreenViewAsync:function(e){return function(t){t({type:d.ActionTypes.LOAD_SCREEN_VIEW_ASYNC}),u.default.loadScreenView(function(n){t(h.loadScreenViewSuccess(e))},function(e){t(h.loadScreenViewFailure(e))})}},loadScreenViewSuccess:function(e){return{type:d.ActionTypes.LOAD_SCREEN_VIEW_SUCCESS,parentType:d.ActionTypes.LOAD_SCREEN_VIEW_ASYNC,postReducer:loadScreenViewSuccessPostReducer,data:e}},loadScreenViewFailure:function(e){return{type:d.ActionTypes.LOAD_SCREEN_VIEW_FAILURE,parentType:d.ActionTypes.LOAD_SCREEN_VIEW_ASYNC,error:e}},setRoomAsync:function(e){return function(t){t({type:d.ActionTypes.SET_ROOM_ASYNC}),p.default.updateSetting(e,function(e){e.error?t(h.setRoomFailure(e)):t(h.setRoomSuccess(e))})}},setRoomSuccess:function(e){return{type:d.ActionTypes.SET_ROOM_SUCCESS,parentType:d.ActionTypes.SET_ROOM_ASYNC,postReducer:setRoomSuccessPostReducer,data:e}},setRoomFailure:function(e){return{type:d.ActionTypes.SET_ROOM_FAILURE,parentType:d.ActionTypes.SET_ROOM_ASYNC,error:e}},saveClassAsync:function(e){return function(t){t({type:d.ActionTypes.SAVE_CLASS_ASYNC,vo:e}),p.default.saveClass(e,function(e){t(h.saveClassSuccess(e))},function(e){t(h.saveClassFailure(e))})}},saveClassSuccess:function(e){return{type:d.ActionTypes.SAVE_CLASS_SUCCESS,parentType:d.ActionTypes.SAVE_CLASS_ASYNC,data:e}},saveClassFailure:function(e){return{type:d.ActionTypes.SAVE_CLASS_FAILURE,parentType:d.ActionTypes.SAVE_CLASS_ASYNC,error:e}}},_={roomInfo:{}},loadScreenViewSuccessPostReducer=function(e,t){var n=t.data;return(0,o._)((0,i._)({},e),{roomInfo:n})},setRoomSuccessPostReducer=function(e,t){var n=t.data;return(0,o._)((0,i._)({},e),{roomInfo:n.data})},m=(0,s.createReducer)(_,(r={},(0,a._)(r,d.ActionTypes.LOAD_SCREEN_VIEW_ASYNC,S.default.actionReducer),(0,a._)(r,d.ActionTypes.LOAD_SCREEN_VIEW_SUCCESS,S.default.successReducer),(0,a._)(r,d.ActionTypes.LOAD_SCREEN_VIEW_FAILURE,S.default.failureReducer),(0,a._)(r,d.ActionTypes.SET_ROOM_ASYNC,S.default.actionReducer),(0,a._)(r,d.ActionTypes.SET_ROOM_SUCCESS,S.default.successReducer),(0,a._)(r,d.ActionTypes.SET_ROOM_FAILURE,S.default.failureReducer),(0,a._)(r,d.ActionTypes.SAVE_CLASS_ASYNC,S.default.actionReducer),(0,a._)(r,d.ActionTypes.SAVE_CLASS_SUCCESS,S.default.successReducer),(0,a._)(r,d.ActionTypes.SAVE_CLASS_FAILURE,S.default.failureReducer),r)),y=new l.default(f,m)},355813:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return D}});var r=n("212939"),a=n("831113"),i=n("975471"),o=n("629232"),s=n("157934"),c=n("16171"),l=n("972768"),u=n("709580"),p=n("250490"),d=n.n(p),S=n("261692"),f=n("862605");n("927103");var h=n("830749"),_=n("612302");n("509002");var m=n("718606"),y=n("131158"),E=n("337817");n("206726");var A=n("297562"),v=n("580142"),T=n("327769"),C=n("336570"),g=n("104038"),V=n("244223"),R=n("47314"),F=V.default.screens.chinesepark.vipFeatures,w=-1!==window.location.href.indexOf("/mobile/chinesepark/");function normalizePrice(e){return String(Math.abs(parseInt(e))||0)}var I=function(e){(0,l._)(VipFeaturesScreen,e);var t=(0,u._)(VipFeaturesScreen);function VipFeaturesScreen(e){(0,a._)(this,VipFeaturesScreen),n=t.call(this,e),(0,o._)((0,r._)(n),"_handleLoadScreenViewAsyncDone",function(){}),(0,o._)((0,r._)(n),"_handleSetRoomAsyncDone",function(){n._handleGoBack()}),(0,o._)((0,r._)(n),"_handleAsyncActionError",function(e){n.displayError(e.error)}),(0,o._)((0,r._)(n),"_handleSave",function(){if(!n.state.vipSeasonFee||!n.state.vipHalfYearFee||!n.state.vipYearFee){_.default.danger({text:n.props.t("pleaseInputVipPrice"),position:"top",duration:5e3});return}var e=parseInt(n.state.vipSeasonFee)/n.state.targetRate,t=parseInt(n.state.vipHalfYearFee)/n.state.targetRate,r=parseInt(n.state.vipYearFee)/n.state.targetRate,a=e/3;if(!(e>0&&t>0&&r>0)){_.default.danger({text:n.props.t("invalidVipPrice"),position:"top",duration:5e3});return}var i=n.localVars.navParams.roomId,o={roomId:i,keys:["enableVip","ownerDesc","vipDesc","trialTime","vipMonthFee","vipSeasonFee","vipHalfYearFee","vipYearFee"],values:[]};if(o.values.push(1),o.values.push(n.state.ownerDesc),o.values.push(n.state.vipDesc),o.values.push(n.state.trialTime),o.values.push(a),o.values.push(e),o.values.push(t),o.values.push(r),n.props.setRoomAsync(o),1!==n.state.enableVip&&n.props.partner){var s={name:"成员班级",partnerId:n.props.partner?n.props.partner.id:null,roomId:i};n.props.saveClassAsync(s)}}),(0,o._)((0,r._)(n),"_handleGoBack",function(){v.NavigationService.navigateByAction((0,r._)(n),A.default.BACK)}),n.localVars={},n.localVars.navParams=v.NavigationService.getNavParams(e),n.localVars.isInChina=g.default.getIsInChina();var n,i=n.localVars.navParams.roomInfo,s=i.usdCurrency,c=i.cnyCurrency,l=n.localVars.isInChina?c:s,u=l&&l.targetRate>0?l.targetRate:1;return n.state={ownerDesc:i.ownerDesc,vipDesc:i.vipDesc,trialTime:i.trialTime,vipMonthFee:i.vipMonthFee>0?Math.round(i.vipMonthFee*u)+"":"",vipSeasonFee:i.vipSeasonFee>0?Math.round(i.vipSeasonFee*u)+"":"",vipHalfYearFee:i.vipHalfYearFee>0?Math.round(i.vipHalfYearFee*u)+"":"",vipYearFee:i.vipYearFee>0?Math.round(i.vipYearFee*u)+"":"",targetRate:u,enableVip:i.enableVip},n.backHandler=new E.default((0,r._)(n)),n}return(0,i._)(VipFeaturesScreen,[{key:"routeName",get:function(){return F}},{key:"reducer",get:function(){return C.reducer}},{key:"actionHandlers",get:function(){var e;return e={},(0,o._)(e,C.ActionTypes.LOAD_SCREEN_VIEW_ASYNC,{done:this._handleLoadScreenViewAsyncDone,error:this._handleAsyncActionError}),(0,o._)(e,C.ActionTypes.SET_ROOM_ASYNC,{done:this._handleSetRoomAsyncDone,error:this._handleAsyncActionError}),e}},{key:"componentDidMount",value:function(){(0,s._)((0,c._)(VipFeaturesScreen.prototype),"componentDidMount",this).call(this),this.backHandler.install();var e=this.localVars.navParams.roomInfo;this.props.loadScreenViewAsync(e)}},{key:"componentWillUnmount",value:function(){this.backHandler.uninstall(),(0,s._)((0,c._)(VipFeaturesScreen.prototype),"componentWillUnmount",this).call(this)}},{key:"componentDidUpdate",value:function(e,t){(0,s._)((0,c._)(VipFeaturesScreen.prototype),"componentDidUpdate",this).call(this,e,t);var n=this.props.localState.roomInfo;
1if(e.localState.roomInfo!==n){var r=n.usdCurrency,a=n.cnyCurrency,i=this.localVars.isInChina?a:r,o=i&&i.targetRate>0?i.targetRate:1;this.setState({ownerDesc:n.ownerDesc,vipDesc:n.vipDesc,trialTime:n.trialTime,vipMonthFee:n.vipMonthFee>0?Math.round(n.vipMonthFee*o)+"":"",vipSeasonFee:n.vipSeasonFee>0?Math.round(n.vipSeasonFee*o)+"":"",vipHalfYearFee:n.vipHalfYearFee>0?Math.round(n.vipHalfYearFee*o)+"":"",vipYearFee:n.vipYearFee>0?Math.round(n.vipYearFee*o)+"":"",targetRate:o})}}},{key:"renderRadio",value:function(e){return e?d.createElement("input",{type:"radio",checked:!0}):d.createElement("input",{type:"radio",checked:!1})}},{key:"render",value:function(){var e=this;if(this.isActionExecuting(C.ActionTypes.LOAD_SCREEN_VIEW_ASYNC))return d.createElement(y.default,null);this.props.localState.roomInfo;var t=this.localVars.isInChina?this.props.t("yuan"):this.props.t("dollar");return d.createElement(h.Container,{className:"chinesepark",fluid:!0,style:{marginTop:w?0:-115}},d.createElement(h.Card,{className:"shadow",style:{marginTop:20,paddingBottom:15}},d.createElement(h.CardHeader,null,d.createElement("div",{style:{float:"left",fontSize:18,color:"#242424",fontWeight:"bold",marginTop:11}},this.props.t("vipFeaturesTitle")),d.createElement("div",{style:{float:"right",display:"flex",flexDirection:"row"}},d.createElement(h.Button,{size:"sm",onClick:function(){e._handleSave()},color:"primary"},this.props.t("save")),d.createElement(h.Button,{size:"sm",onClick:function(){e._handleGoBack()},color:"default"},this.props.t("back")))),d.createElement(h.CardBody,null,d.createElement(f.View,null,d.createElement(f.View,{style:L.headbg1},this.props.t("vipPrice")),d.createElement(f.View,null,d.createElement(f.View,{style:L.price},d.createElement(f.Text,null,this.props.t("seasonVipPrice")),d.createElement(f.View,{style:L.priceinput},d.createElement(f.TextInput,{style:{width:40,paddingTop:0,paddingBottom:0},maxLength:6,keyboardType:"numeric",value:this.state.vipSeasonFee,onChangeText:function(t){return e.setState({vipSeasonFee:normalizePrice(t)})}})),d.createElement(f.Text,{style:{color:"#999"}},t)),d.createElement(f.View,{style:L.price},d.createElement(f.Text,null,this.props.t("halfYearVipPrice")),d.createElement(f.View,{style:L.priceinput},d.createElement(f.TextInput,{style:{width:40,paddingTop:0,paddingBottom:0},maxLength:6,keyboardType:"numeric",value:this.state.vipHalfYearFee,onChangeText:function(t){return e.setState({vipHalfYearFee:normalizePrice(t)})}})),d.createElement(f.Text,{style:{color:"#999"}},t)),d.createElement(f.View,{style:L.price},d.createElement(f.Text,null,this.props.t("oneYearVipPrice")),d.createElement(f.View,{style:L.priceinput},d.createElement(f.TextInput,{style:{width:40,paddingTop:0,paddingBottom:0},maxLength:6,keyboardType:"numeric",value:this.state.vipYearFee,onChangeText:function(t){return e.setState({vipYearFee:normalizePrice(t)})}})),d.createElement(f.Text,{style:{color:"#999"}},t))),d.createElement(f.View,{style:{height:1,backgroundColor:"#f0f0f0",marginTop:10}}),d.createElement(f.View,{style:L.headbg},this.props.t("ownerDesc")),d.createElement(f.View,{style:L.cardbg},d.createElement(f.TextInput,{multiline:!0,maxLength:200,value:this.state.ownerDesc,onChangeText:function(t){return e.setState({ownerDesc:t})},style:{height:100,textAlignVertical:"top"}})),d.createElement(f.View,{style:L.headbg},this.props.t("vipDesc")),d.createElement(f.View,{style:L.cardbg},d.createElement(f.TextInput,{multiline:!0,maxLength:200,value:this.state.vipDesc,onChangeText:function(t){return e.setState({vipDesc:t})},style:{height:100,textAlignVertical:"top"}})),d.createElement(f.View,{style:{height:1,backgroundColor:"#f0f0f0",marginTop:30}}),d.createElement(f.View,{style:L.headbg},this.props.t("trialSetting")),d.createElement(f.View,{style:L.row},d.createElement(f.TouchableHighlight,{underlayColor:"#f1f1f1",onPress:function(){e.setState({trialTime:10})}},d.createElement(f.View,{style:L.row},this.renderRadio(10===this.state.trialTime),d.createElement(f.Text,null,"\xa0\xa0",this.props.t("trial10Minutes")))),d.createElement(f.TouchableHighlight,{underlayColor:"#f1f1f1",onPress:function(){e.setState({trialTime:0})}},d.createElement(f.View,{style:L.row},this.renderRadio(0===this.state.trialTime),d.createElement(f.Text,null,"\xa0\xa0",this.props.t("noTrial")))))))),this.isActionExecuting(C.ActionTypes.SET_ROOM_ASYNC)?d.createElement(m.default,{text:this.props.t("requesting"),barStyle:"dark-content",barColor:"#fff"}):null)}}]),VipFeaturesScreen}(T.default),L=f.StyleSheet.create({row:{flexDirection:"row",alignItems:"center",backgroundColor:"#fff",height:46,paddingRight:20},headbg1:{color:"#000000",fontSize:18},headbg:{color:"#000000",fontSize:18,paddingTop:20,paddingBottom:10},cardbg:{border:"1px solid #d5d5d5",marginTop:10,borderRadius:6,paddingLeft:10,paddingRight:10,paddingTop:5,paddingBottom:5},price:{flexDirection:"row",alignItems:"center",marginRight:12,height:50},priceinput:{flexDirection:"row",alignItems:"center",border:"1px solid #d5d5d5",borderRadius:6,paddingLeft:8,paddingRight:8,height:36,marginRight:10,marginLeft:10}}),D=(0,S.connect)(function(e){return{localState:e.screens[C.reducer.key]?e.screens[C.reducer.key]:C.INITIAL_STATE,userId:e.session.userId,partner:e.session.partner}},function(e){return{loadScreenViewAsync:function(t){return e(C.Actions.loadScreenViewAsync(t))},setRoomAsync:function(t){return e(C.Actions.setRoomAsync(t))},saveClassAsync:function(t){return e(C.Actions.saveClassAsync(t))}}})((0,R.withTranslation)(F)(I))},875357:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n("463704"),a={loadScreenView:function(e,t){r.default.post("/mobile/app/loadscreenview",{},e,t)}}}}]);
2//# sourceMappingURL=src_mobile_screens_chinesepark_VipFeaturesScreen_js.4f7a6ecb.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.