<wxs module="m1">
  var LotteryAttendIconMap = {
    lotteryBox: 'https://p1-live.byteimg.com/tos-cn-i-gjr78lqtd0/d0886daf61274e689f22bfd8d3a10999~tplv-gjr78lqtd0-z75.image',
    slotMachine: 'https://p1-live.byteimg.com/tos-cn-i-gjr78lqtd0/157f2d4469f3475d9fa3db104eb75ea0~tplv-gjr78lqtd0-z75.image',
  };
  var getImage = function(AwardThemeUrl, IsUseDarkTheme) {
    return LotteryAttendIconMap[AwardThemeUrl] || 'https://p1-live.byteimg.com/tos-cn-i-gjr78lqtd0/ca5dd7c55b844699bee908bbdf3cc943~tplv-gjr78lqtd0-z75.image';
  }
  module.exports.getImage = getImage;
</wxs>
<mp-dialog
  show="{{animationAwardId}}"
  mask="{{true}}"
  mask-closable="{{false}}"
  ext-class="lottery-animation-dialog"
> 
  <image src="{{m1.getImage(AwardThemeUrl)}}" />
</mp-dialog>