1 line
16 KiB
JavaScript
1 line
16 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-plantGrass-plant_detail-index~pages-short_video-nvueSwiper-index"],{"06e1":function(t,i,e){"use strict";e("6a54");var n=e("f5bd").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,e("5c47"),e("0506");var a=n(e("2634")),o=n(e("2fdc")),c=n(e("9b1b")),s=n(e("1ab3")),r=e("02aa"),d=e("672a"),u=e("8f59"),l=e("96e0"),p=n(e("283c")),f={props:{isCommuity:{type:Boolean,default:!1}},mixins:[s.default],components:{Verify:p.default},data:function(){return{phone:"",captcha:"",key:"",codeVal:"",popup:{show:!1}}},computed:(0,c.default)((0,c.default)({},(0,u.mapGetters)(["isLogin","viewColor"])),(0,l.configMap)(["wechat_phone_switch"])),onLoad:function(){},methods:{closePopup:function(){this.$emit("close")},editPwd:function(){var t=this;return t.phone?/^1(3|4|5|7|8|9|6)\d{9}$/i.test(t.phone)?t.captcha?void(0,r.bindingPhone)({phone:t.phone,sms_code:t.captcha}).then((function(i){return void 0!==i.data&&i.data.is_bind?uni.showModal({title:"是否绑定手机号",content:i.message,confirmText:"绑定",success:function(i){if(i.confirm)(0,r.bindingPhone)({phone:t.phone,captcha:t.captcha,step:1}).then((function(i){return t.$emit("close"),t.$util.Tips({title:i.message,icon:"success"})})).catch((function(i){return t.$util.Tips({title:i})}));else if(i.cancel)return t.$util.Tips({title:"您已取消绑定!"},{tab:5,url:"/pages/users/user_info/index"})}}):t.$emit("close"),t.$util.Tips({title:"绑定成功!",icon:"success"})})).catch((function(i){return t.$util.Tips({title:i})})):t.$util.Tips({title:"请填写验证码"}):t.$util.Tips({title:"请输入正确的手机号码!"}):t.$util.Tips({title:"请输入手机号码!"})},code:function(t){var i=this;return(0,o.default)((0,a.default)().mark((function e(){var n;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=i,n.phone){e.next=3;break}return e.abrupt("return",n.$util.Tips({title:"请填写手机号码!"}));case 3:if(/^1(3|4|5|7|8|9|6)\d{9}$/i.test(n.phone)){e.next=5;break}return e.abrupt("return",n.$util.Tips({title:"请输入正确的手机号码!"}));case 5:return i.disabled=!0,e.next=8,(0,d.registerVerify)({phone:n.phone,key:n.key,code:n.captcha,type:"binding",captchaType:"blockPuzzle",captchaVerification:t.captchaVerification}).then((function(t){i.disabled=!1,n.$util.Tips({title:t.message}),n.sendCode()})).catch((function(t){return i.disabled=!1,n.$util.Tips({title:t})}));case 8:case"end":return e.stop()}}),e)})))()},success:function(t){this.$refs.verify.hide(),this.code(t)},handleVerify:function(){return this.phone?/^1(3|4|5|7|8|9|6)\d{9}$/i.test(this.phone)?void this.$refs.verify.show():this.$util.Tips({title:"请输入正确的手机号码!"}):this.$util.Tips({title:"请填写手机号码!"})}}};i.default=f},"1ab3":function(t,i,e){"use strict";e("6a54"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n={data:function(){return{disabled:!1,text:"获取验证码"}},methods:{sendCode:function(){var t=this;if(!this.disabled){this.disabled=!0;var i=60;this.text="剩余 "+i+"s";var e=setInterval((function(){i-=1,i<0&&clearInterval(e),t.text="剩余 "+i+"s",t.text<"剩余 0s"&&(t.disabled=!1,t.text="重新获取")}),1e3)}}}};i.default=n},"1d7e":function(t,i,e){"use strict";e.r(i);var n=e("8e2b"),a=e.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){e.d(i,t,(function(){return n[t]}))}(o);i["default"]=a.a},"2cc3":function(t,i,e){"use strict";var n=e("8bb9"),a=e.n(n);a.a},"2d6a":function(t,i,e){"use strict";e.d(i,"b",(function(){return n})),e.d(i,"c",(function(){return a})),e.d(i,"a",(function(){}));var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",{style:t.viewColor},[e("v-uni-view",{staticClass:"container"},[e("v-uni-view",{staticClass:"header"},[e("v-uni-text",{staticClass:"title"},[t._v("绑定手机号")]),e("v-uni-text",{staticClass:"iconfont icon-guanbi5",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.closePopup.apply(void 0,arguments)}}})],1),e("v-uni-view",{staticClass:"main_counts"},[e("v-uni-form",{attrs:{"report-submit":"true"}},[e("v-uni-view",{staticClass:"ChangePassword"},[e("v-uni-view",{staticClass:"list"},[e("v-uni-view",{staticClass:"item"},[e("v-uni-input",{attrs:{type:"number",placeholder:"输入手机号码","placeholder-class":"placeholder"},model:{value:t.phone,callback:function(i){t.phone=i},expression:"phone"}})],1),e("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[e("v-uni-input",{staticClass:"codeIput",attrs:{type:"number",placeholder:"输入验证码","placeholder-class":"placeholder"},model:{value:t.captcha,callback:function(i){t.captcha=i},expression:"captcha"}}),e("v-uni-button",{staticClass:"code",class:!0===t.disabled?"on":"",attrs:{disabled:t.disabled},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.handleVerify.apply(void 0,arguments)}}},[t._v(t._s(t.text))])],1)],1),e("v-uni-button",{staticClass:"confirmBnt",attrs:{"form-type":"submit"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.editPwd.apply(void 0,arguments)}}},[t._v("确认绑定")])],1)],1)],1)],1),e("Verify",{ref:"verify",attrs:{captchaType:"blockPuzzle",imgSize:{width:"330px",height:"155px"}},on:{success:function(i){arguments[0]=i=t.$handleEvent(i),t.success.apply(void 0,arguments)}}}),e("v-uni-view",{staticClass:"mask",attrs:{catchtouchmove:"true",hidden:0==t.popup.show},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.closePopup.apply(void 0,arguments)}}})],1)},a=[]},"395f":function(t,i,e){var n=e("c86c");i=n(!1),i.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.container[data-v-c73a2dd4]{position:fixed;bottom:0;width:100%;left:0;background-color:#fff;z-index:77;border-radius:%?16?% %?16?% 0 0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);transition:all .3s cubic-bezier(.25,.5,.5,.9);max-height:%?1000?%}.container.on[data-v-c73a2dd4]{-webkit-transform:translateZ(0);transform:translateZ(0)}.container .header[data-v-c73a2dd4]{position:relative;padding:%?40?% %?30?%}.container .header .title[data-v-c73a2dd4]{color:#282828;font-size:%?30?%}.container .header .iconfont[data-v-c73a2dd4]{color:#8a8a8a;font-size:%?28?%;position:absolute;top:0;right:0}.container .header .icon-guanbi5[data-v-c73a2dd4]{right:%?20?%;color:#8a8a8a;font-size:%?30?%;line-height:%?30?%;top:%?20?%;background-color:initial;font-weight:400}.container uni-scroll-view[data-v-c73a2dd4]{max-height:%?800?%}.container .main_count[data-v-c73a2dd4]{padding:0 %?30?% %?30?%;max-height:%?800?%;overflow-y:scroll}.container .main_count.mb90[data-v-c73a2dd4]{margin-bottom:%?90?%}.container .main_count .list[data-v-c73a2dd4]{margin-bottom:%?40?%;height:auto;flex-direction:row}.container .main_count .list[data-v-c73a2dd4]:last-child{margin-bottom:0}.container .main_count .pro_list[data-v-c73a2dd4]{display:flex;flex-direction:row}.container .main_count .pro_list .picture[data-v-c73a2dd4], .container .main_count .pro_list .image[data-v-c73a2dd4], .container .main_count .pro_list uni-image[data-v-c73a2dd4]{width:%?200?%;height:%?200?%;border-radius:%?16?%}.container .main_count .pro_list .info[data-v-c73a2dd4]{margin-left:%?30?%;position:relative}.container .main_count .pro_list .info .bottom[data-v-c73a2dd4]{display:flex;justify-content:space-between;align-items:center;width:%?460?%;position:absolute;left:0;bottom:%?10?%;flex-direction:row}.container .main_count .pro_list .info .name[data-v-c73a2dd4]{color:#282828;font-size:%?30?%;line-height:%?45?%;display:-webkit-box;width:%?460?%}.container .main_count .pro_list .info .price[data-v-c73a2dd4]{color:var(--view-priceColor);font-size:%?26?%;font-weight:700;flex-direction:row;align-items:flex-end}.container .main_count .pro_list .info .price uni-text[data-v-c73a2dd4]{font-size:%?34?%}.container .main_count .pro_list .info .buy-btn[data-v-c73a2dd4]{color:#fff;background:var(--view-theme);border-radius:%?26?%;width:%?140?%;height:%?48?%;display:flex;align-items:center;justify-content:center;font-size:%?22?%}',""]),t.exports=i},4273:function(t,i,e){"use strict";e.r(i);var n=e("ced6"),a=e("1d7e");for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(o);e("2cc3");var c=e("828b"),s=Object(c["a"])(a["default"],n["b"],n["c"],!1,null,"c73a2dd4",null,!1,n["a"],void 0);i["default"]=s.exports},"4a82":function(t,i,e){"use strict";e("6a54"),Object.defineProperty(i,"__esModule",{value:!0}),i.goShopDetail=function(t,i){return new Promise((function(i){1===t.product_type?uni.navigateTo({url:"/pages/activity/goods_seckill_details/index?id=".concat(t.product_id,"&time=").concat(t.stop_time)}):2===t.product_type?uni.navigateTo({url:"/pages/activity/presell_details/index?id=".concat(t.activity_id)}):0===t.product_type||10===t.product_type?uni.navigateTo({url:"/pages/goods_details/index?id=".concat(t.product_id)}):4===t.product_type?uni.navigateTo({url:"/pages/activity/combination_details/index?id=".concat(t.activity_id)}):40===t.product_type?uni.navigateTo({url:"/pages/activity/combination_status/index?id=".concat(t.activity_id)}):i(t)}))},e("bf0f"),e("c223")},"571d":function(t,i,e){var n=e("c86c");i=n(!1),i.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.container[data-v-2b4be284]{background-color:#fff;border-radius:%?16?% %?16?% 0 0;position:relative;padding-bottom:%?30?%}.container .header[data-v-2b4be284]{position:relative;padding:%?40?% %?30?%;text-align:center}.container .header .title[data-v-2b4be284]{color:#282828;font-size:%?32?%}.container .header .iconfont[data-v-2b4be284]{color:#8a8a8a;font-size:%?28?%;position:absolute;top:0;right:0}.container .header .icon-guanbi5[data-v-2b4be284]{right:%?20?%;color:#8a8a8a;font-size:%?30?%;line-height:%?30?%;top:%?20?%;background-color:initial;font-weight:400}.ChangePassword[data-v-2b4be284]{padding:0 %?30?% %?100?%}.ChangePassword .phone[data-v-2b4be284]{font-size:%?32?%;font-weight:700;text-align:center;margin-top:%?55?%}.ChangePassword .list .item[data-v-2b4be284]{height:%?86?%;margin-bottom:%?30?%;flex-direction:row}.ChangePassword .list .item uni-input[data-v-2b4be284]{height:100%;font-size:%?32?%;border:1px solid #dcdcdc;border-radius:%?43?%;padding:0 %?40?%}.ChangePassword .list .item .placeholder[data-v-2b4be284]{color:#b9b9bc}.ChangePassword .list .item uni-input.codeIput[data-v-2b4be284]{max-width:%?400?%}.ChangePassword .list .item .code[data-v-2b4be284]{font-size:%?28?%;background-color:var(--view-minorColor);color:var(--view-theme);width:%?230?%;height:%?86?%;border-radius:%?43?%;display:flex;align-items:center;justify-content:center}.ChangePassword .list .item .code.on[data-v-2b4be284]{color:#b9b9bc}.ChangePassword .confirmBnt[data-v-2b4be284]{font-size:%?32?%;width:%?580?%;height:%?90?%;border-radius:%?45?%;color:#fff;margin:%?60?% auto 0 auto;text-align:center;line-height:%?90?%;background-color:var(--view-theme)}.getPhoneBtn[data-v-2b4be284]{font-size:%?32?%;width:%?580?%;height:%?90?%;border-radius:%?45?%;border:1px solid #3cb625;color:#3cb625;margin:%?40?% auto 0 auto;text-align:center;line-height:%?90?%}.getPhoneBtn .iconfont[data-v-2b4be284]{font-size:%?32?%;margin-right:%?12?%}[data-v-2b4be284] .verifybox{top:auto!important}',""]),t.exports=i},6641:function(t,i,e){"use strict";e.r(i);var n=e("06e1"),a=e.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){e.d(i,t,(function(){return n[t]}))}(o);i["default"]=a.a},"6fbe":function(t,i,e){"use strict";e.r(i);var n=e("2d6a"),a=e("6641");for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(o);e("71de");var c=e("828b"),s=Object(c["a"])(a["default"],n["b"],n["c"],!1,null,"2b4be284",null,!1,n["a"],void 0);i["default"]=s.exports},"71de":function(t,i,e){"use strict";var n=e("7b68"),a=e.n(n);a.a},"7b68":function(t,i,e){var n=e("571d");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=e("967d").default;a("18f31f19",n,!0,{sourceMap:!1,shadowMode:!1})},"8bb9":function(t,i,e){var n=e("395f");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=e("967d").default;a("574286b2",n,!0,{sourceMap:!1,shadowMode:!1})},"8e2b":function(t,i,e){"use strict";e("6a54");var n=e("f5bd").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,e("64aa"),e("c223");var a=n(e("9b1b")),o=(e("4a82"),e("8f59")),c={computed:(0,a.default)({},(0,o.mapGetters)(["viewColor"])),props:{list:{type:Array,default:[]},uid:{type:Number},isHome:{type:Boolean,default:!1}},data:function(){return{popup:{show:!1}}},methods:{closePopup:function(){this.$set(this.popup,"show",!1)},showPopup:function(){this.$set(this.popup,"show",!0)},goDetail:function(t){1===t.product_type?uni.navigateTo({url:"/pages/activity/goods_seckill_details/index?id=".concat(t.product_id,"&time=").concat(t.stop_time,"&spid=").concat(this.uid)}):2===t.product_type?uni.navigateTo({url:"/pages/activity/presell_details/index?id=".concat(t.activity_id,"&spid=").concat(this.uid)}):0===t.product_type?uni.navigateTo({url:"/pages/goods_details/index?id=".concat(t.product_id,"&spid=").concat(this.uid)}):4===t.product_type?uni.navigateTo({url:"/pages/activity/combination_details/index?id=".concat(t.activity_id,"&spid=").concat(this.uid)}):40===t.product_type&&uni.navigateTo({url:"/pages/activity/combination_status/index?id=".concat(t.activity_id,"&spid=").concat(this.uid)})}}};i.default=c},ced6:function(t,i,e){"use strict";e.d(i,"b",(function(){return n})),e.d(i,"c",(function(){return a})),e.d(i,"a",(function(){}));var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",{style:t.viewColor},[e("v-uni-view",{staticClass:"container",class:1==t.popup.show?"on":""},[e("v-uni-view",{staticClass:"header"},[e("v-uni-text",{staticClass:"title"},[t._v("TA提到的宝贝")]),e("v-uni-text",{staticClass:"iconfont icon-guanbi5",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.closePopup.apply(void 0,arguments)}}})],1),e("v-uni-view",{staticClass:"main_count",class:t.isHome?"mb90":""},[e("v-uni-scroll-view",{attrs:{"scroll-y":"true"}},t._l(t.list,(function(i,n){return e("v-uni-view",{key:n,staticClass:"list",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goDetail(i.spu)}}},[e("v-uni-view",{staticClass:"pro_list"},[e("v-uni-view",{staticClass:"picture"},[e("v-uni-image",{staticClass:"image",attrs:{src:i.spu&&i.spu.image}})],1),e("v-uni-view",{staticClass:"info"},[e("v-uni-view",{staticClass:"name line2"},[t._v(t._s(i.spu&&i.spu.store_name))]),e("v-uni-view",{staticClass:"bottom"},[e("v-uni-view",{staticClass:"price"},[t._v("¥"),e("v-uni-text",[t._v(t._s(i.spu&&i.spu.price))])],1),e("v-uni-view",{staticClass:"buy-btn"},[t._v("立即购买")])],1)],1)],1)],1)})),1)],1)],1),e("v-uni-view",{staticClass:"mask",attrs:{catchtouchmove:"true",hidden:0==t.popup.show},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.closePopup.apply(void 0,arguments)}}})],1)},a=[]}}]); |