fix(会员中心): 修复点击 diy-listmenu.js 出现TypeError: Cannot read property 'open' of undefined

at a.redirectTo (diy-listmenu.js? [sm]:1)
This commit is contained in:
2025-12-27 16:27:12 +08:00
parent b42af36977
commit 2d9ea88eb2
4 changed files with 4 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-listmenu"],{2313:function(t,n,e){"use strict";e.r(n);var o=e("f030"),r=e("9b4f");for(var i in r)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(i);e("ea8f");var u=e("828b"),a=Object(u["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);n["default"]=a.exports},"9b4f":function(t,n,e){"use strict";e.r(n);var o=e("a006"),r=e.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(i);n["default"]=r.a},a006:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e={name:"diy-listmenu",props:{value:{type:Object}},data:function(){return{loading:!0,lang:t.getStorageSync("lang")}},created:function(){},watch:{componentRefresh:function(t){}},computed:{style:function(){var t="";return t+="background-color:"+this.value.contentBgColor+";","round"==this.value.elementAngle&&(t+="border-top-left-radius:"+2*this.value.topElementAroundRadius+"rpx;",t+="border-top-right-radius:"+2*this.value.topElementAroundRadius+"rpx;",t+="border-bottom-left-radius:"+2*this.value.bottomElementAroundRadius+"rpx;",t+="border-bottom-right-radius:"+2*this.value.bottomElementAroundRadius+"rpx;"),this.value.margin.top>0&&(t+="margin-top:"+2*this.value.margin.top+"rpx;"),t}},methods:{redirectTo:function(t){!t.wap_url||"pages/member/index"!=this.$util.getCurrRoute()||this.storeToken?this.$util.diyRedirectTo(t):this.$refs.login.open(t.wap_url)}}};n.default=e}).call(this,e("df3c")["default"])},ea8f:function(t,n,e){"use strict";var o=e("ff6b"),r=e.n(o);r.a},f030:function(t,n,e){"use strict";e.d(n,"b",(function(){return r})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){return o}));var o={diyIcon:function(){return e.e("components/diy-components/diy-icon").then(e.bind(null,"8ba4"))}},r=function(){var t=this,n=t.$createElement,e=(t._self._c,t.__map(t.value.list,(function(n,e){var o=t.__get_orig(n),r="img"==n.iconType?t.$util.img(n.imageUrl):null;return{$orig:o,g0:r}})));t.$mp.data=Object.assign({},{$root:{l0:e}})},i=[]},ff6b:function(t,n,e){}}]);
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-listmenu"],{2313:function(t,n,e){"use strict";e.r(n);var o=e("f030"),r=e("9b4f");for(var i in r)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(i);e("ea8f");var u=e("828b"),a=Object(u["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);n["default"]=a.exports},"9b4f":function(t,n,e){"use strict";e.r(n);var o=e("a006"),r=e.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(i);n["default"]=r.a},a006:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e={name:"diy-listmenu",props:{value:{type:Object}},data:function(){return{loading:!0,lang:t.getStorageSync("lang")}},created:function(){},watch:{componentRefresh:function(t){}},computed:{style:function(){var t="";return t+="background-color:"+this.value.contentBgColor+";","round"==this.value.elementAngle&&(t+="border-top-left-radius:"+2*this.value.topElementAroundRadius+"rpx;",t+="border-top-right-radius:"+2*this.value.topElementAroundRadius+"rpx;",t+="border-bottom-left-radius:"+2*this.value.bottomElementAroundRadius+"rpx;",t+="border-bottom-right-radius:"+2*this.value.bottomElementAroundRadius+"rpx;"),this.value.margin.top>0&&(t+="margin-top:"+2*this.value.margin.top+"rpx;"),t}},methods:{redirectTo:function(t){!t.wap_url||"pages/member/index"!=this.$util.getCurrRoute()||this.storeToken?this.$util.diyRedirectTo(t):this.$refs.login.open(t.wap_url)}}};n.default=e}).call(this,e("df3c")["default"])},ea8f:function(t,n,e){"use strict";var o=e("ff6b"),r=e.n(o);r.a},f030:function(t,n,e){"use strict";e.d(n,"b",(function(){return r})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){return o}));var o={diyIcon:function(){return e.e("components/diy-components/diy-icon").then(e.bind(null,"8ba4"))},nsLogin:function(){return Promise.all([e.e("common/vendor"),e.e("components/ns-login/ns-login")]).then(e.bind(null,"17d0"))}},r=function(){var t=this,n=t.$createElement,e=(t._self._c,t.__map(t.value.list,(function(n,e){var o=t.__get_orig(n),r="img"==n.iconType?t.$util.img(n.imageUrl):null;return{$orig:o,g0:r}})));t.$mp.data=Object.assign({},{$root:{l0:e}})},i=[]},ff6b:function(t,n,e){}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'components/diy-components/diy-listmenu-create-component',
{

View File

@@ -1 +1 @@
{"component":true,"usingComponents":{"diy-icon":"/components/diy-components/diy-icon"}}
{"component":true,"usingComponents":{"diy-icon":"/components/diy-components/diy-icon","ns-login":"/components/ns-login/ns-login"}}

View File

@@ -1 +1 @@
<view class="diy-picture" style="{{(style)}}"><view class="fui-cell-group"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index"><view data-event-opts="{{[['tap',[['redirectTo',['$0'],[[['value.list','',index,'link']]]]]]]}}" class="{{['fui-cell',item.$orig.iconType=='img'?'img-cell':'']}}" bindtap="__e"><view class="fui-cell-icon" style="color:diyitem.style.iconcolo;"><block wx:if="{{item.$orig.iconType=='icon'}}"><diy-icon style="{{'max-width:'+(value.imageSize*2+'rpx')+';'+('max-height:'+(value.imageSize*2+'rpx')+';')+('width:'+('100%')+';')+('height:'+('100%')+';')}}" vue-id="{{'4ef4311b-1-'+index}}" icon="{{item.$orig.icon}}" value="{{item.$orig.style?item.$orig.style:null}}" bind:__l="__l"></diy-icon></block><block wx:if="{{item.$orig.iconType=='img'}}"><image style="border-radius:6rpx;width:60rpx;" mode="widthFix" src="{{item.g0}}"></image></block></view><view class="fui-cell-text" style="color:#333;">{{item.$orig.title}}</view><view class="fui-cell-remark" style="font-size:24rpx;">{{lang=='en-us'?'view':'查看'}}</view></view></block></view></view>
<view class="diy-picture" style="{{(style)}}"><view class="fui-cell-group"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index"><view data-event-opts="{{[['tap',[['redirectTo',['$0'],[[['value.list','',index,'link']]]]]]]}}" class="{{['fui-cell',item.$orig.iconType=='img'?'img-cell':'']}}" bindtap="__e"><view class="fui-cell-icon" style="color:diyitem.style.iconcolo;"><block wx:if="{{item.$orig.iconType=='icon'}}"><diy-icon style="{{'max-width:'+(value.imageSize*2+'rpx')+';'+('max-height:'+(value.imageSize*2+'rpx')+';')+('width:'+('100%')+';')+('height:'+('100%')+';')}}" vue-id="{{'4ef4311b-1-'+index}}" icon="{{item.$orig.icon}}" value="{{item.$orig.style?item.$orig.style:null}}" bind:__l="__l"></diy-icon></block><block wx:if="{{item.$orig.iconType=='img'}}"><image style="border-radius:6rpx;width:60rpx;" mode="widthFix" src="{{item.g0}}"></image></block></view><view class="fui-cell-text" style="color:#333;">{{item.$orig.title}}</view><view class="fui-cell-remark" style="font-size:24rpx;">{{lang=='en-us'?'view':'查看'}}</view></view></block></view><ns-login class="vue-ref" vue-id="4ef4311b-2" data-ref="login" bind:__l="__l"></ns-login></view>

View File

@@ -1 +1 @@
{"component":true,"usingComponents":{"uni-popup":"/components/uni-popup/uni-popup","register-reward":"/components/register-reward/register-reward"}}
{"component":true,"usingComponents":{"uni-popup":"/components/uni-popup/uni-popup","register-reward":"/components/register-reward/register-reward","privacy-popup":"/components/wx-privacy-popup/privacy-popup"}}