| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-chat-message-hand"],{"1bac":function(t,n,a){"use strict";a.r(n);var e=a("7c88"),i=a("5800");for(var s in i)["default"].indexOf(s)<0&&function(t){a.d(n,t,(function(){return i[t]}))}(s);a("b91f");var o=a("f0c5"),r=Object(o["a"])(i["default"],e["b"],e["c"],!1,null,"5a43d915",null,!1,e["a"],void 0);n["default"]=r.exports},5800:function(t,n,a){"use strict";a.r(n);var e=a("90d88"),i=a.n(e);for(var s in e)["default"].indexOf(s)<0&&function(t){a.d(n,t,(function(){return e[t]}))}(s);n["default"]=i.a},5927:function(t,n,a){var e=a("24fb");n=e(!1),n.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */uni-page-body[data-v-5a43d915]{background-color:#f3f3f3}body.?%PAGE?%[data-v-5a43d915]{background-color:#f3f3f3}uni-view[data-v-5a43d915]{display:flex;flex-wrap:wrap}.tabr[data-v-5a43d915]{width:94%;height:%?105?%;padding:0 3%;border-bottom:solid %?1?% #dedede}.tabr uni-view[data-v-5a43d915]{width:50%;height:%?100?%;justify-content:center;align-items:center;font-size:%?28?%;color:#999}.tabr .on[data-v-5a43d915]{color:#cf3c35}.tabr .border[data-v-5a43d915]{height:%?4?%;background-color:#cf3c35;transition:all .3s ease-out}.tabr .border.normal[data-v-5a43d915]{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.content[data-v-5a43d915]{width:100%;height:80vh;overflow:hidden}.content.normal .luck[data-v-5a43d915]{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.content.normal .normal[data-v-5a43d915]{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}.content .luck[data-v-5a43d915], .content .normal[data-v-5a43d915]{transition:all .3s ease-out}.content .normal[data-v-5a43d915]{-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}.content .row[data-v-5a43d915], .content .tis[data-v-5a43d915], .content .blessing[data-v-5a43d915], .content .hand[data-v-5a43d915]{width:94%}.content .row[data-v-5a43d915], .content .tis[data-v-5a43d915], .content .blessing[data-v-5a43d915]{border-bottom:#dedede solid %?1?%}.content .row[data-v-5a43d915], .content .blessing[data-v-5a43d915]{padding:0 3%;background-color:#fff}.content .row[data-v-5a43d915], .content .blessing[data-v-5a43d915], .content .hand[data-v-5a43d915]{height:%?100?%;align-items:center}.content .row[data-v-5a43d915]{justify-content:space-between;flex-wrap:nowrap}.content .row .term[data-v-5a43d915], .content .row .input[data-v-5a43d915]{width:50%}.content .row .input[data-v-5a43d915]{flex-shrink:0;flex-wrap:nowrap;justify-content:flex-end;align-items:center}.content .row .input uni-input[data-v-5a43d915]{height:%?50?%;display:flex;justify-content:flex-end;align-items:center;text-align:right;margin-right:%?20?%;font-size:%?30?%}.content .tis[data-v-5a43d915]{height:%?60?%;padding:%?20?% 3%;font-size:%?30?%;color:#999}.content .blessing uni-input[data-v-5a43d915]{width:100%;height:%?50?%;font-size:%?32?%}.content .hand[data-v-5a43d915]{margin:%?30?% 3%;background-color:#cf3c35;color:#fff;font-size:%?34?%;justify-content:center;border-radius:%?10?%;height:%?90?%}',""]),t.exports=n},"7c88":function(t,n,a){"use strict";a.d(n,"b",(function(){return e})),a.d(n,"c",(function(){return i})),a.d(n,"a",(function(){}));var e=function(){var t=this,n=t.$createElement,a=t._self._c||n;return a("v-uni-view",[a("v-uni-view",{staticClass:"content",class:t.typeClass},[a("v-uni-view",{staticClass:"luck"},[a("v-uni-view",{staticClass:"row"},[a("v-uni-view",{staticClass:"term"},[t._v("红包个数")]),a("v-uni-view",{staticClass:"input"},[a("v-uni-input",{attrs:{type:"number",placeholder:"输入红包个数"},model:{value:t.number,callback:function(n){t.number=n},expression:"number"}}),t._v("个")],1)],1),a("v-uni-view",{staticClass:"row"},[a("v-uni-view",{staticClass:"term"},[t._v("总金额")]),a("v-uni-view",{staticClass:"input"},[a("v-uni-input",{attrs:{type:"number",placeholder:"输入金额"},model:{value:t.luckMoney,callback:function(n){t.luckMoney=n},expression:"luckMoney"}}),t._v("元")],1)],1),a("v-uni-view",{staticClass:"tis"},[t._v("小伙伴领取的金额随机")]),a("v-uni-view",{staticClass:"blessing"},[a("v-uni-input",{attrs:{type:"text",maxlength:"12",placeholder:"恭喜发财"},model:{value:t.blessing,callback:function(n){t.blessing=n},expression:"blessing"}})],1),a("v-uni-view",{staticClass:"hand",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.hand("luck")}}},[t._v("发红包")])],1),a("v-uni-view",{staticClass:"normal"},[a("v-uni-view",{staticClass:"row"},[a("v-uni-view",{staticClass:"term"},[t._v("红包个数")]),a("v-uni-view",{staticClass:"input"},[a("v-uni-input",{attrs:{type:"number",disabled:t.disable,placeholder:"输入红包个数"},model:{value:t.number,callback:function(n){t.number=n},expression:"number"}}),t._v("个")],1)],1),a("v-uni-view",{staticClass:"row"},[a("v-uni-view",{staticClass:"term"},[t._v("单个金额")]),a("v-uni-view",{staticClass:"input"},[a("v-uni-input",{attrs:{type:"number",placeholder:"输入金额"},model:{value:t.money,callback:function(n){t.money=n},expression:"money"}}),t._v("元")],1)],1),a("v-uni-view",{staticClass:"tis"},[t._v("小伙伴领取的金额相同")]),a("v-uni-view",{staticClass:"blessing"},[a("v-uni-input",{attrs:{type:"text",maxlength:"12",placeholder:"恭喜发财"},model:{value:t.blessing,callback:function(n){t.blessing=n},expression:"blessing"}})],1),a("v-uni-view",{staticClass:"hand",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.hand("normal")}}},[t._v("发红包")])],1)],1)],1)},i=[]},"90d88":function(t,n,a){"use strict";a("7a82");var e=a("4ea4").default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,a("e25e");var i=e(a("1552")),s=e(a("a620")),o=e(a("e89f")),r={data:function(){return{typeClass:"luck",number:"",money:"",luckMoney:"",blessing:"",click:!0,disable:!1,page_params:{}}},onLoad:function(t){this.page_params=t,1==this.page_params.msg_type?this.typeClass="luck":(this.number=1,this.disable=!0,this.typeClass="normal")},onShow:function(){s.default.routeTabBarHook()},methods:{switchType:function(t){if(0==this.page_params.msg_type)return!1;this.typeClass=t},hand:function(t){var n={type:"luck"==t?2:1,num:this.number,hongbao_msg:this.blessing,amount:this.money};return"luck"==t&&(n.amount=this.luckMoney),!n.amount||n.amount<=0?uni.showToast({title:"金额不能为空",icon:"none"}):n.num!=Math.abs(parseInt(n.num))?uni.showToast({title:"数量填写大于0的整数",icon:"none"}):(n.hongbao_msg=n.hongbao_msg||"恭喜发财",n=Object.assign(this.page_params,n),void i.default.checkBeforePay(n,(function(t){uni.redirectTo({url:"input_password?"+o.default.pageParam(n)})}),(function(t){console.log("fail callback"),uni.showToast({title:t.msg,icon:"none"})})))},getPassword:function(t){console.log("参数传递",t);var n=this;if(!n.click)return!1;n.click=!1,uni.showLoading({title:"提交中"}),i.default.createHongBao(t,(function(t){uni.navigateTo({url:"../message?list_id="+n.page_params.list_id})}),(function(t){n.click=!0}))}}};n.default=r},a620:function(t,n,a){"use strict";a("7a82");var e=a("4ea4").default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=e(a("c44c")),s={routeTabBarHook:function(){i.default.routeTool(),i.default.setStatusTips(),i.default.getWebUrl()},routeSonHook:function(){i.default.routeTool()}};n.default=s},b91f:function(t,n,a){"use strict";var e=a("e970"),i=a.n(e);i.a},e970:function(t,n,a){var e=a("5927");e.__esModule&&(e=e.default),"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var i=a("4f06").default;i("369525d8",e,!0,{sourceMap:!1,shadowMode:!1})}}]);
|