store-page-application-vip-application-vip.c13e3e06.js 18 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["store-page-application-vip-application-vip"],{"031f":function(t,e,i){var o=i("f8eb");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var n=i("967d").default;n("56c0f2ee",o,!0,{sourceMap:!1,shadowMode:!1})},"19a7":function(t,e,i){"use strict";var o=i("031f"),n=i.n(o);n.a},"20f3":function(t,e,i){"use strict";var o=i("8bdb"),n=i("5145");o({target:"Array",proto:!0,forced:n!==[].lastIndexOf},{lastIndexOf:n})},4466:function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-button",{staticClass:"tn-btn-class tn-btn",class:[t.buttonClass,t.backgroundColorClass,t.fontColorClass],style:[t.buttonStyle],attrs:{"hover-class":"tn-hover",loading:t.loading,disabled:t.disabled,"form-type":t.formType,"open-type":t.openType},on:{getuserinfo:function(e){arguments[0]=e=t.$handleEvent(e),t.handleGetUserInfo.apply(void 0,arguments)},getphonenumber:function(e){arguments[0]=e=t.$handleEvent(e),t.handleGetPhoneNumber.apply(void 0,arguments)},contact:function(e){arguments[0]=e=t.$handleEvent(e),t.handleContact.apply(void 0,arguments)},error:function(e){arguments[0]=e=t.$handleEvent(e),t.handleError.apply(void 0,arguments)},click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleClick.apply(void 0,arguments)}}},[t._t("default")],2)},n=[]},"4b48":function(t,e,i){"use strict";i.r(e);var o=i("d22d"),n=i.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(r);e["default"]=n.a},"70bc":function(t,e,i){"use strict";i.r(e);var o=i("4466"),n=i("83fb");for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);i("19a7");var a=i("828b"),s=Object(a["a"])(n["default"],o["b"],o["c"],!1,null,"1b9df1f2",null,!1,o["a"],void 0);e["default"]=s.exports},"74ff":function(t,e,i){i("64aa"),t.exports={data:function(){},props:{backgroundColor:{type:String,default:""},fontColor:{type:String,default:""},fontSize:{type:Number,default:0},fontUnit:{type:String,default:"rpx"}},computed:{backgroundColorStyle:function(){return this.$tn.color.getBackgroundColorStyle(this.backgroundColor)},backgroundColorClass:function(){return this.$tn.color.getBackgroundColorInternalClass(this.backgroundColor)},fontColorStyle:function(){return this.$tn.color.getFontColorStyle(this.fontColor)},fontColorClass:function(){return this.$tn.color.getFontColorInternalClass(this.fontColor)},fontSizeStyle:function(){return this.$tn.string.getLengthUnitValue(this.fontSize,this.fontUnit)}},methods:{}}},"78b4":function(t,e,i){"use strict";i("6a54");var o=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.searchRecordApi=e.postTuangouquanReceive=e.postTuangouquanList=e.postTuangouquanDetail=e.postStoreCouponApi=e.postStoreCollectApi=e.myStoreApi=e.joinStoreVipApi=e.isShopBusinessApi=e.getStoreVipInfoApi=e.getStoreTangshiGoodsListApi=e.getStoreShoppingCartDataApi=e.getStoreInfoApi=e.getStoreGoodsListApi=e.getStoreCommentListApi=e.getOrderDinnerStoreListApi=e.getOrderDinnerStoreIdApi=e.getMyCommentListApi=e.getIsBrandStoreApi=e.getFaviateBrandStoreListApi=e.getCodeInfoByCodeApi=e.getClassChild=e.getCategorys=e.getBrandStoreListApi=e.getBrandMasterApi=e.getBrandGoodsApi=e.getBrandApi=e.delCommentApi=void 0,i("5c47"),i("af8f");var n=o(i("7653"));e.getStoreInfoApi=function(t){var e=t.sid,i=t.table_id,o=t.storeCode,r=t.brand;return n.default.get("api/user.store.store/index",{sid:e,table_id:i,storeCode:o,brand:r})};e.getStoreVipInfoApi=function(t){return n.default.get("api/user.store.store/storeVip",t)};e.joinStoreVipApi=function(t){return n.default.post("api/user.store.store/joinStoreVip",t)};e.getStoreGoodsListApi=function(t){var e=t.sid,i=t.search,o=t.orderId,r=t.cid,a=t.child_id,s=t.page,d=t.is_api_shop,u=t.storeCode,l=t.api_brand,c=t.order_type,f=t.encrypted_data,p=t.write_off_type,g=t.is_promotion,h=t.goodsC,v=t.chrid,b=t.is_takeout;return n.default.get("api/user.store.goods/goods",{sid:e,child_id:a||"",search:i||"",order_id:o||"",cid:r||"",page:s||1,is_api_shop:d||"",storeCode:u||"",api_brand:l||"",order_type:c||"",encrypted_data:f||"",write_off_type:p||"",is_promotion:g||-1,goodsC:h,chrid:v||"",is_takeout:b>=0?b:-1})};e.getStoreShoppingCartDataApi=function(t){var e=t.sid,i=t.tableId,o=t.encrypted_data,r=t.is_takeout;return n.default.get("api/user.store.goods/cartIndex",{sid:e,table_id:i||"",encrypted_data:o||"",is_takeout:r>=0?r:-1})};e.getStoreCommentListApi=function(t){var e=t.sid,i=t.type,o=t.note,r=t.page,a=t.pSize;return n.default.get("api/user.store.store/comment",{sid:e,type:i||"",note:o||0,page:r,psize:a})};e.getMyCommentListApi=function(t){var e=t.page,i=t.pSize;return n.default.get("api/user.store.store/myComment",{page:e,psize:i})};e.delCommentApi=function(t){return n.default.post("api/user.store.store/delComment",t)};e.getStoreTangshiGoodsListApi=function(t){var e=t.sid,i=t.search,o=t.tableId,r=t.clear;return n.default.get("api/user.store.table/goods",{sid:e,search:i||"",table_id:o,clear:r||!1})};e.postStoreCouponApi=function(t){var e=t.sid;return n.default.post("api/user.channel.coupon/receive",{sid:e})};e.postStoreCollectApi=function(t){var e=t.sid,i=t.type,o=t.storeCode;return n.default.get("api/user.member.favorite/operate",{sid:e,type:i,storeCode:o})};e.getCategorys=function(t){var e=t.template_id;return n.default.get("api/user.store.goods/plugin_categorys",{template_id:e})};e.getClassChild=function(t){var e=t.cid;return n.default.get("api/user.store.goods/plugin_goods",{cid:e})};e.getOrderDinnerStoreListApi=function(t){return n.default.get("api/user.store.store/getOrderDinnerStoreList",t)};e.getOrderDinnerStoreIdApi=function(t){return n.default.get("api/user.store.store/getOrderDinnerStoreId",t)};e.getBrandApi=function(t){return n.default.get("api/user.store.store/getBrand?sid="+t)};e.getCodeInfoByCodeApi=function(t){return n.default.get("api/user.store.store/getCodeInfo?code="+t,{})};e.searchRecordApi=function(t){return n.default.post("api/user.tuangouquan.write_off/searchRecords",t)};e.getIsBrandStoreApi=function(t){return n.default.get("api/user.store.store/getIsBrandStore?sid="+t)};e.getBrandStoreListApi=function(t){return n.default.post("api/user.store.store/getBrandStoreList",t)};e.getFaviateBrandStoreListApi=function(t){return n.default.get("api/user.store.store/getFaviateBrandStoreList",t)};e.getBrandMasterApi=function(t){return n.default.get("api/user.appointment.index/index?sid="+t)};e.getBrandGoodsApi=function(t){return n.default.get("api/user.appointment.index/goods?sid="+t)};e.myStoreApi=function(){return n.default.get("api/user.store.store/myStore")};e.postTuangouquanList=function(t){return n.default.post("api/user.tuangouquan.index/index",t)};e.postTuangouquanReceive=function(t){return n.default.post("api/user.tuangouquan.index/receive",t)};e.postTuangouquanDetail=function(t){return n.default.post("api/user.tuangouquan.index/detail",t)};e.isShopBusinessApi=function(t){return n.default.get("api/user.store.store/isShopBusiness?sid="+t)}},"7e0d":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return o}));var o={tnButton:i("70bc").default},n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("custom-page",{attrs:{"custom-navbar":!0,navbarBack2:!0,transparentNavbar:!0,navbarBack:!1,navbarTitle:"申请会员",wrapperBgColor:"rgba(240, 240, 240, 1)"}},[i("v-uni-view",{staticClass:"box"},[i("v-uni-view",{staticClass:"top-vipInfo",style:{backgroundImage:"url("+t.storeInfo.user_vip_info.image+")"}},[i("v-uni-view",{staticClass:"itmes"},[t.storeInfo.user_vip_info?i("v-uni-view",{staticClass:"head"},[i("v-uni-image",{staticStyle:{width:"70rpx",height:"70rpx","border-radius":"50%"},attrs:{src:t.storeInfo.store_info.logo,mode:"aspectFill"}}),i("v-uni-text",{staticClass:"title"},[t._v(t._s(t.storeInfo.store_info.title))])],1):t._e(),i("v-uni-view",{staticClass:"lv-tip"},[i("v-uni-image",{staticClass:"lvs",attrs:{src:t.storeInfo.user_vip_info.leve_icon,mode:"widthFix"}}),i("v-uni-view",{staticClass:"tips"},[t._v("尊贵身份 会员特享")])],1),i("v-uni-image",{staticClass:"huangg",attrs:{src:"https://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/spshop/vip/huangguan.png",mode:"widthFix"}})],1)],1),i("v-uni-view",{staticClass:"tn-margin-top"},[i("v-uni-text",{staticClass:"tlt"},[t._v("优惠说明")]),i("v-uni-view",{staticClass:"remark tn-margin-top"},[t._v("本会员卡免费开通,是以消费累计的形式计算会员等级,消费越多,会员等级越高,价格更优惠,线上线下均可使用,也不受时间段限制,开通会员后,如6个月内未在本店进行第二次消费,将会降为普通会员(商家有有权修改权益规则,商家保留最终解释权)。")])],1),i("v-uni-view",{staticClass:"tn-margin-top-xl"},[i("v-uni-text",{staticClass:"tlt"},[t._v("折扣等级")]),i("v-uni-view",{staticClass:"remark tn-margin-top"},t._l(t.storeInfo.vip_config,(function(e,o){return i("v-uni-view",[t._v(t._s(e.name)+","),0==e.price_sum?i("v-uni-text",[t._v("加入即为"+t._s(e.name))]):i("v-uni-text",[t._v("累计消费满"+t._s(e.price_sum)+"元")]),t._v(",买单可享"+t._s(e.discount/10)+"折")],1)})),1)],1),i("v-uni-view",{staticStyle:{padding:"0 50rpx",position:"fixed",bottom:"40rpx",width:"100%",left:"0"}},[i("tn-button",{attrs:{width:"100%",height:"85rpx",fontSize:40,backgroundColor:t.storeInfo.is_vip?"rgb(108,104,104)":"rgba(214, 2, 0, 1)",fontColor:"#fff",disabled:t.storeInfo.is_vip},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.joinStoreVip.apply(void 0,arguments)}}},[t._v(t._s(1==t.storeInfo.is_vip?"您已经是会员":"申请会员"))])],1)],1)],1)},r=[]},"83fb":function(t,e,i){"use strict";i.r(e);var o=i("e871"),n=i.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(r);e["default"]=n.a},"85e4":function(t,e,i){var o=i("c86c");e=o(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.box[data-v-e800a1f4]{padding:0 %?16?%}.top-vipInfo[data-v-e800a1f4]{width:100%;height:%?284?%;background-repeat:no-repeat;background-size:100% 100%;position:relative}.top-vipInfo .huangg[data-v-e800a1f4]{position:absolute;width:%?270?%;height:%?270?%;right:%?30?%;top:0}.top-vipInfo .itmes[data-v-e800a1f4]{padding:%?26?% %?20?%}.top-vipInfo .itmes .head[data-v-e800a1f4]{display:flex;align-items:center}.top-vipInfo .itmes .head .title[data-v-e800a1f4]{font-size:%?28?%;font-weight:700;letter-spacing:0;line-height:%?42?%;color:#6d2406;margin-left:%?20?%}.top-vipInfo .itmes .lv-tip .lvs[data-v-e800a1f4]{margin-top:%?-20?%;width:%?140?%;height:%?70?%}.top-vipInfo .itmes .lv-tip .tips[data-v-e800a1f4]{margin-top:%?-20?%;font-size:%?28?%;font-weight:700;letter-spacing:0;line-height:%?42?%;color:#6d2406}.tlt[data-v-e800a1f4]{font-size:%?44?%;font-weight:700;letter-spacing:%?1?%;line-height:%?60?%;color:#333}.remark[data-v-e800a1f4]{font-size:%?32?%;font-weight:400;letter-spacing:0;line-height:%?44?%;color:#333}.font-color[data-v-e800a1f4]{font-size:%?54?%;font-weight:bolder;background-image:linear-gradient(90deg,#f3ae6e,#fff);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;width:%?190?%;font-style:italic\n /* 使字体倾斜 */}',""]),t.exports=e},"88ed":function(t,e,i){var o=i("c86c");e=o(!1),e.push([t.i,"uni-page-body[data-v-e800a1f4]{background-color:#f0f0f0}body.?%PAGE?%[data-v-e800a1f4]{background-color:#f0f0f0}",""]),t.exports=e},a00c:function(t,e,i){"use strict";var o=i("ba28"),n=i.n(o);n.a},a5cc:function(t,e,i){"use strict";var o=i("b79b"),n=i.n(o);n.a},b79b:function(t,e,i){var o=i("85e4");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var n=i("967d").default;n("21001d28",o,!0,{sourceMap:!1,shadowMode:!1})},ba28:function(t,e,i){var o=i("88ed");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var n=i("967d").default;n("82c43fb8",o,!0,{sourceMap:!1,shadowMode:!1})},d22d:function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i("78b4"),n={data:function(){return{storeInfo:{},sid:""}},methods:{joinStoreVip:function(){var t=this;(0,o.joinStoreVipApi)({sid:this.sid}).then((function(e){uni.showToast({title:"加入成功"}),t.getStoreInfo()})).catch((function(t){uni.hideLoading(),console.error("获取商户信息失败",t)}))},getStoreInfo:function(){var t=this;(0,o.getStoreVipInfoApi)({sid:this.sid}).then((function(e){t.storeInfo=e})).catch((function(t){console.error("获取商户信息失败",t)}))}},onLoad:function(t){this.sid=t.sid,this.getStoreInfo()}};e.default=n},e871:function(t,e,i){"use strict";i("6a54");var o=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("64aa"),i("5ef2"),i("f7a5"),i("20f3"),i("4626"),i("5ac7");var n=o(i("74ff")),r={mixins:[n.default],name:"tn-button",behaviors:["wx://form-field-button"],props:{index:{type:[Number,String],default:0},shape:{type:String,default:"default"},shadow:{type:Boolean,default:!1},width:{type:String,default:"auto"},height:{type:String,default:""},size:{type:String,default:""},fontBold:{type:Boolean,default:!1},padding:{type:String,default:"0 30rpx"},margin:{type:String,default:""},plain:{type:Boolean,default:!1},border:{type:Boolean,default:!0},borderBold:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},formType:{type:String,default:""},openType:{type:String,default:""},blockRepeatClick:{type:Boolean,default:!1}},computed:{buttonClass:function(){var t="";switch(this.shape){case"icon":case"round":t+=" tn-round";break}if(this.shadow)if(""!==this.backgroundColorClass&&-1!=this.backgroundColorClass.indexOf("tn-bg")){var e=this.backgroundColor.slice(this.backgroundColor.lastIndexOf("-")+1);t+=" tn-shadow-".concat(e)}else t+=" tn-shadow-blur";if(this.fontBold&&(t+=" tn-text-bold"),this.plain&&(t+=" tn-btn--plain",this.border&&(t+=" tn-border-solid",this.borderBold&&(t+=" tn-bold-border"),""!==this.backgroundColor&&this.backgroundColor.includes("tn-bg")))){var i=this.backgroundColor.slice(this.backgroundColor.lastIndexOf("-")+1);t+=" tn-border-".concat(i)}return t},buttonStyle:function(){var t={};switch(this.size){case"sm":t.padding="0 20rpx",t.fontSize="22rpx",t.height=this.height||"48rpx";break;case"lg":t.padding="0 40rpx",t.fontSize="32rpx",t.height=this.height||"80rpx";break;default:t.padding="0 30rpx",t.fontSize="28rpx",t.height=this.height||"64rpx"}return this.padding&&(t.padding=this.padding),this.margin&&(t.margin=this.margin),this.fontSize&&(t.fontSize=this.fontSize+this.fontUnit),t.width="icon"===this.shape?t.height:this.width,t.padding="icon"===this.shape?"0":t.padding,this.fontColorStyle&&(t.color=this.fontColorStyle),this.backgroundColorClass||(this.plain?t.borderColor=this.backgroundColorStyle||"#080808":t.background=this.backgroundColorStyle||"#FFFFFF"),this.shadow&&!this.backgroundColorClass&&(-1!=this.backgroundColorStyle.indexOf("#")?t.boxShadow="6rpx 6rpx 8rpx ".concat(this.backgroundColorStyle||"#000000","10"):-1==this.backgroundColorStyle.indexOf("rgb")&&-1==this.backgroundColorStyle.indexOf("rgba")&&this.backgroundColorStyle||(t.boxShadow="6rpx 6rpx 8rpx ".concat(this.backgroundColorStyle||"rgba(0, 0, 0, 0.1)"))),t}},data:function(){return{clickTime:0,clickIntervalTime:200}},methods:{handleClick:function(){var t=this;if(!this.disabled){if(this.blockRepeatClick){var e=(new Date).getTime();if(e-this.clickTime<=this.clickIntervalTime)return;this.clickTime=e,setTimeout((function(){t.clickTime=0}),this.clickIntervalTime)}this.$emit("click",{index:Number(this.index)}),this.$emit("tap",{index:Number(this.index)})}},handleGetUserInfo:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.detail,i=void 0===e?{}:e;this.$emit("getuserinfo",i)},handleContact:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.detail,i=void 0===e?{}:e;this.$emit("contact",i)},handleGetPhoneNumber:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.detail,i=void 0===e?{}:e;this.$emit("getphonenumber",i)},handleError:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.detail,i=void 0===e?{}:e;this.$emit("error",i)}}};e.default=r},f879:function(t,e,i){"use strict";i.r(e);var o=i("7e0d"),n=i("4b48");for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);i("a00c"),i("a5cc");var a=i("828b"),s=Object(a["a"])(n["default"],o["b"],o["c"],!1,null,"e800a1f4",null,!1,o["a"],void 0);e["default"]=s.exports},f8eb:function(t,e,i){var o=i("c86c");e=o(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.tn-btn[data-v-1b9df1f2]{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;line-height:1;text-align:center;text-decoration:none;overflow:visible;-webkit-transform:translate(%?0?%,%?0?%);transform:translate(%?0?%,%?0?%);border-radius:%?12?%;margin:0}.tn-btn--plain[data-v-1b9df1f2]{background-color:initial!important;background-image:none}.tn-btn--plain.tn-round[data-v-1b9df1f2]{border-radius:%?1000?%!important}',""]),t.exports=e}}]);