美文网首页
快速设置模板里某一渠道的设置项

快速设置模板里某一渠道的设置项

作者: wilischen | 来源:发表于2018-07-23 21:40 被阅读0次

    这个需求主要来自smt里当要快速设置某一渠道所有国家的首重等运费情况。

    思路来源:https://m.weibo.cn/status/4245409952432074?wm=3333_2001&from=1084393010&sourcetype=weixin&featurecode=newtitle

    看了一下界面代码,一开始没找到视频里配置的地方。

    后来自己想了一下,因为这个配置之前就没有配啊,所以当然没数据啊,所以随便去勾了一个国家的运费配置,并最终确定发布后,再回来300G模板的这个渠道运费模板,发现就有了一串JSon数据。(上面只是拿e邮宝截图,给大家看看原始状态,实际这个是以无忧物流为例)

    将Json字符串格式化后,可以看到下图:

    具体Json数据如下:

    {"defines":[{"addFreight":"","defineWeights":[{"endWeight":"1.0","intervalPrice":"2.00","intervalWeight":"1.0","startWeight":"0.0"},{"endWeight":"100.0","intervalPrice":"0.02","intervalWeight":"0.01","startWeight":"1.0"}],"endOrderNum":"","id":890803184,"minFreight":"","perAddNum":"","shippingCountry":"AF,ALA,AU","startOrderNum":"","type":"weight"}],"freeShipCountry":"","id":877000090,"notShippedCountries":"AM,AR","standardShipCountry":"ES,FR,NL,CL,UK,RU,DZ,AO,AI,AQ,AG,AW,ASC,BB,BZ,BJ,BM,BO,BW,BV,VG,BF,BI,CM,CV,KY,CF,TD,CO,KM,CR,CI,CU,CW,DJ,DM,DO,EC,SV,GQ,ER,ET,FK,TF,GA,GM,GH,GD,GP,GN,GW,GY,GF,HT,HN,IQ,JM,KE,LS,LR,LY,MG,MW,ML,MQ,MR,MU,YT,MS,MZ,NA,AN,NI,NE,PS,PA,PY,PR,MD,RE,RW,BLM,SH,KN,LC,PM,VC,ST,SN,SC,SL,SX,SS,SD,SR,SZ,SY,BS,ZR,CG,TG,TT,TN,TC,VI,UG,TZ,UY,VE,WF,EH,ZM,EAZ,ZW,AL,GBA,AD,GGY,BA,IO,BQ,FO,GI,GL,IC,IM,JEY,KS,KG,LI,MAF,MK,MT,MC,MNE,SM,SGS,SJ,TJ,VA,TM,UM,UZ,AS,AT,AZ,BH,BD,LA,LK,BY,BE,BT,MN,SB,BR,BG,CA,CX,CC,NF,HM,CK,PN,TK,HR,CY,LU,CZ,DK,EG,IR,JO,EE,GE,FJ,FI,PF,GU,KI,MO,FM,NR,NP,NC,NU,KP,MP,PW,PG,WS,MH,TLS,TO,TV,VU,DE,GR,HU,IS,IN,ID,IE,IL,IT,JP,KH,HK,KZ,KW,OM,QA,SA,AE,LV,LB,LT,MY,MV,MX,MA,NG,ZA,MM,NZ,NO,PK,PE,PH,PL,PT,RO,SRB,SG,SK,SI,SO,KR,SE,CH,TH,TR,UA,US,VN,BN,TW","standardShipDiscount":"0","standards":[]}

    所以我们要做的是,直接编辑上面的Json数据即可,常见就是同类型的直接国家都填上,例如将ES移到shipping country即可

    相关文章

      网友评论

          本文标题:快速设置模板里某一渠道的设置项

          本文链接:https://www.haomeiwen.com/subject/hshsmftx.html