@using MySystem.Models; @{Coupons editData = ViewBag.data as Coupons;} @{ string RightInfo = ViewBag.RightInfo as string; string right = ViewBag.right as string; } 优惠券(修改)
  • 基本信息
  • 使用范围
  • 开关设置
  • 时间限制
  • SEO设置
@{string MerchantsJson = "[";} @{Dictionary MerchantsDic = new MySystem.MerchantDictionary().getMerchantsDic();} @foreach (string key in MerchantsDic.Keys) { MerchantsJson += "{\"value\": \"" + key + "\", \"title\": \"" + MerchantsDic[key] + "\"},"; } @{MerchantsJson = MerchantsJson.TrimEnd(','); MerchantsJson += "]";}
@{string ColJson = "[";} @{Dictionary ColDic = new MySystem.DictionaryClass().getColDic("002");} @foreach (string key in ColDic.Keys) { string kg = ""; for (int i = 1; i < key.Length / 3 - 1; i++) { kg += "  "; } ColJson += "{\"value\": \"" + key + "\", \"title\": \"" + kg + ColDic[key] + "\" },"; } @{ColJson = ColJson.TrimEnd(','); ColJson += "]";}
@{string ProductsJson = "[";} @{Dictionary ProductsDic = new MySystem.ProductDictionary().getProductsDic();} @foreach (string key in ProductsDic.Keys) { ProductsJson += "{\"value\": \"" + key + "\", \"title\": \"" + ProductsDic[key] + "\"},"; } @{ProductsJson = ProductsJson.TrimEnd(','); ProductsJson += "]";}
-
-
-
-
-
@for(int day=1;day<=31;day++) { }
@for(int day=1;day<=12;day++) { }
@if(editData.RepeatType > 1) { }