shop-php/public/static/js/pages-users-user_coupon-index.0eac7fa3.js

1 line
19 KiB
JavaScript
Raw Normal View History

2023-09-13 20:20:20 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_coupon-index"],{"0cf8":function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n("5530")),a=(i(n("bc32")),n("c6da"),n("cf53"),n("26cb")),s=(i(n("e92e")),n("0cdc")),u=(i(n("80a6")),n("42d4")),r=(getApp(),{name:"Authorize",props:{isAuto:{type:Boolean,default:!0},isGoIndex:{type:Boolean,default:!0},isShowAuth:{type:Boolean,default:!1}},components:{},data:function(){return{title:"用户登录",info:"请登录,将为您提供更好的服务!",isWeixin:this.$wechat.isWeixin(),canUseGetUserProfile:!1,code:null,top:0,mp_is_new:this.$Cache.get("MP_VERSION_ISNEW")||!1,editModal:!1}},computed:(0,o.default)((0,o.default)({},(0,a.mapGetters)(["isLogin","userInfo","viewColor"])),(0,s.configMap)(["routine_logo"])),watch:{isLogin:function(t){!0===t&&this.$emit("onLoadFun",this.userInfo)},isShowAuth:function(t){this.getCode(this.isShowAuth)}},created:function(){this.top=uni.getSystemInfoSync().windowHeight/2-70,wx.getUserProfile&&(this.canUseGetUserProfile=!0),this.setAuthStatus(),this.getCode(this.isShowAuth)},methods:{setAuthStatus:function(){},getCode:function(t){t&&(this.code=1)},toWecahtAuth:function(){(0,u.toLogin)(!0)},getUserProfile:function(){(0,u.toLogin)(!0),uni.navigateTo({url:"/pages/users/login/login_copy"})},close:function(){var t=getCurrentPages();t[t.length-1];this.$emit("authColse",!1),this.isGoIndex?uni.switchTab({url:"/pages/index/index"}):this.$emit("authColse",!1)}}});e.default=r},"101d":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{style:t.viewColor},[n("v-uni-view",{staticClass:"navTabBox"},[n("v-uni-view",{staticClass:"longTab"},t._l(t.tabList,(function(e,i){return n("v-uni-view",{key:i,staticClass:"tab-item",class:{on:i==t.tabIndex-1},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.bindTab(i)}}},[n("v-uni-text",[t._v(t._s(e.title))])],1)})),1)],1),t.couponsList.length?n("v-uni-view",{staticClass:"coupon-list"},t._l(t.couponsList,(function(e,i){return n("v-uni-view",{key:i},[e.merchant&&0==e.status?n("v-uni-view",{staticClass:"store-info acea-row row-between-wrapper"},[n("v-uni-view",{staticClass:"store_name acea-row row-between-wrapper"},[n("v-uni-image",{staticClass:"image",attrs:{src:e.merchant.mer_avatar}}),n("v-uni-text",{staticClass:"name"},[t._v(t._s(e.merchant.mer_name))])],1),0==t.hide_mer_status&&0==e.status?n("v-uni-view",{staticClass:"store",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.goStore(e)}}},[t._v("进店")]):t._e()],1):t._e(),n("v-uni-view",{staticClass:"item acea-row row-center-wrapper"},[0==e.status?[5==e.coupon.send_type?n("v-uni-view",{staticClass:"money vip-coupon"},[n("v-uni-view",[t._v("¥"),n("v-uni-text",{staticClass:"num"},[t._v(t._s(e.coupon_price))])],1),n("v-uni-view",{staticClass:"pic-num"},[t._v("满"+t._s(e.use_min_price)+"元可用")])],1):n("v-uni-view",{staticClass:"money",style:{"background-image":"url("+t.domain+"/static/diy/couponBg"+t.keyColor+".png)"}},[n("v-uni-view",[t._v("¥"),n("v-uni-text",{staticClass:"num"},[t._v(t._s(e.coupon_price))])],1),n("v-uni-view",{staticClass:"pic-num"},[t._v("满"+t._s(e.use_min_price)+"元可用")])],1)]:n("v-uni-view",{staticClass:"money moneyGray"},[n("v-uni-view",[t._v("¥"),n("v-uni-text",{staticClass:"num"},[t._v(t._s(e.coupon_price))])],1),n("v-uni-view",{staticClass:"pic-num"},[t._v("满"+t._s(e.use_min_price)+"元可用")])],1),n("v-uni-view",{staticClass:"text"},[n("v-uni-view",{staticClass:"condition line1"},[e.coupon&&0===e.coupon.type?n("v-uni-view",{staticClass:"line-title",class:0===e.status?"bg-color-huic":"bg-color-check"},[t._v("店铺券")]):e.coupon&&1===e.coupon.type?n("v-uni-view",{staticClass:"line-title",class:0===e._type?"bg-color-huic":"bg-color-check"},[t._v("商品券")]):e.coupon&&11===e.coupon.type?n("v-uni-view",{staticClass:"line-title",class:0===e._type?"bg-co