Skip to content

Commit

Permalink
重新修改了体验的webView,拦截了html的数据进行修改
Browse files Browse the repository at this point in the history
MacBook committed Sep 6, 2015
1 parent 46662d7 commit 4d7ece3
Showing 12 changed files with 759 additions and 50 deletions.
4 changes: 4 additions & 0 deletions SmallDay.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
/* Begin PBXBuildFile section */
C77A947D053834766E60FE0D /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 86F5ADE0EEBE83D978559884 /* libPods.a */; };
FA23E3C81B9317D20071C22A /* glass.wav in Resources */ = {isa = PBXBuildFile; fileRef = FA23E3C71B9317D20071C22A /* glass.wav */; };
FA296CD81B9C898800A967D9 /* More in Resources */ = {isa = PBXBuildFile; fileRef = FA296CD71B9C898800A967D9 /* More */; };
FA40ED961B84C5530049DE19 /* SettingViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA40ED951B84C5530049DE19 /* SettingViewController.swift */; };
FA40ED991B84D1090049DE19 /* SettingCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA40ED971B84D1090049DE19 /* SettingCell.swift */; };
FA40ED9A1B84D1090049DE19 /* SettingCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = FA40ED981B84D1090049DE19 /* SettingCell.xib */; };
@@ -132,6 +133,7 @@
ECB01C5432962A7FB10FD474 /* Pods.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.release.xcconfig; path = "Pods/Target Support Files/Pods/Pods.release.xcconfig"; sourceTree = "<group>"; };
FA23E3C71B9317D20071C22A /* glass.wav */ = {isa = PBXFileReference; lastKnownFileType = audio.wav; path = glass.wav; sourceTree = "<group>"; };
FA23E3C91B9318A90071C22A /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; };
FA296CD71B9C898800A967D9 /* More */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = More; sourceTree = "<group>"; };
FA40ED951B84C5530049DE19 /* SettingViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SettingViewController.swift; sourceTree = "<group>"; };
FA40ED971B84D1090049DE19 /* SettingCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SettingCell.swift; sourceTree = "<group>"; };
FA40ED981B84D1090049DE19 /* SettingCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = SettingCell.xib; sourceTree = "<group>"; };
@@ -339,6 +341,7 @@
FA7387651B8B8164009D08C8 /* Classify */,
FA73876D1B8B9901009D08C8 /* Details */,
FA66A4011B8EC842005DF017 /* Experience */,
FA296CD71B9C898800A967D9 /* More */,
);
path = CustomData;
sourceTree = "<group>";
@@ -761,6 +764,7 @@
FA82B1301B87A1F4003A2264 /* ThemeCell.xib in Resources */,
FA7387661B8B8164009D08C8 /* Classify in Resources */,
FAD582BE1B935AD0007EEEE0 /* UMSCommentInputControlleriPad.xib in Resources */,
FA296CD81B9C898800A967D9 /* More in Resources */,
FAD582C41B935AD0007EEEE0 /* UMSocialSDKResourcesNew.bundle in Resources */,
FAA0F9CA1B7DC74900B5EA08 /* LaunchScreen.xib in Resources */,
FAD583381B94BF76007EEEE0 /* 南锣鼓巷 in Resources */,
Original file line number Diff line number Diff line change
@@ -2,16 +2,4 @@
<Bucket
type = "0"
version = "2.0">
<Breakpoints>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.ExceptionBreakpoint">
<BreakpointContent
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
scope = "0"
stopOnStyle = "0">
</BreakpointContent>
</BreakpointProxy>
</Breakpoints>
</Bucket>
10 changes: 10 additions & 0 deletions SmallDay/Classes/BusinessModel/ClassifyModel.swift
Original file line number Diff line number Diff line change
@@ -66,6 +66,16 @@ class DetailModel: NSObject, DictModelProtocol {
completion(data: datas, error: nil)
}
}

class func loadMore(completion: (data: DetailModel?, error: NSError?) -> ()) {
let path = NSBundle.mainBundle().pathForResource("More", ofType: nil)
if let data = NSData(contentsOfFile: path!) {
let dict = NSJSONSerialization.JSONObjectWithData(data, options: .AllowFragments, error: nil) as! NSDictionary
var modelTool = DictModelManager.sharedManager
var datas = modelTool.objectWithDictionary(dict, cls: DetailModel.self) as? DetailModel
completion(data: datas, error: nil)
}
}
}

class SearchsModel: NSObject, DictModelProtocol {
2 changes: 1 addition & 1 deletion SmallDay/Classes/CustomData/Experience
Original file line number Diff line number Diff line change
@@ -364,7 +364,7 @@
"islongtime": 1,
"remark": "尚美色彩自助画室",
"enddate": 3015489976,
"mobileURL": "<body><html><head></head><body><p>油画对你来说只是个名词?是挂在墙上的装饰?还是一种高高在上的艺术?</p><p>如果你厌倦了唱歌、逛街、看电影,希望尝试新的休闲娱乐方式, 培养一个优雅的爱好,有自我创作的欲望,尚美色彩自助画室是你最佳的选择!</p><p><img alt=\"\" data-cke-saved-src=\"http://pic.huodongjia.com/event/2015-08-04/event133426.jpg\" height=\"220\" src=\"http://pic.huodongjia.com/event/2015-08-04/event133426.jpg\" width=\"352\"></img></p><p>尚美色彩自助画室位于北京CBD核心商业圈双井商业区,国贸南十号线双井站,朝阳区双井优士阁大厦B座606,10号线地铁西南口出,交通银行上面入口。</p><p>画室为对绘画感兴趣的人士提供了一个无拘无束自由自在的绘画空间。我们为你准备了绘画所需的一切工具,并有专业老师指导。</p><p><img alt=\"\" data-cke-saved-src=\"http://pic.huodongjia.com/event/2015-08-04/event133427.jpg\" height=\"512\" src=\"http://pic.huodongjia.com/event/2015-08-04/event133427.jpg\" width=\"605\"></img></p><p>无论你是否有绘画基础,在尚美色彩自助画室都可以发掘自己的艺术天分,并在艺术创作的同时舒展情绪,摆脱压力和烦恼,用色彩和线条表现真正的自我。</p><p>你的创作,无论是临摹还是个性涂鸦,都会是全球限量版的艺术品!  </p><p><img alt=\"\" data-cke-saved-src=\"http://pic.huodongjia.com/event/2015-08-04/event133428.png\" height=\"519\" src=\"http://pic.huodongjia.com/event/2015-08-04/event133428.png\" width=\"453\"></img>               </p><p><strong>油画体验套餐包括:</strong></p><p>实木框艺术家专用油画画布</p><p>全色系无毒无害环保颜料及全套作画工具、材料,无需自己准备任何额外物品</p><p>店内有彩图画册供参考选择,顾客也可自带参考图或自由创作</p><p><img alt=\"\" data-cke-saved-src=\"http://pic.huodongjia.com/event/2015-08-04/event133432.jpg\" height=\"460\" src=\"http://pic.huodongjia.com/event/2015-08-04/event133432.jpg\" width=\"690\"></img></p><p>驻店专业指导老师针对零基础的绘画者进行免费指导:画前理论讲解、绘画工具使用及注意事项、绘画过程中难点答疑和绘画技巧讲解演示,协助体验者完成一副漂亮的作品,作品可带走。</p><p>免费饮料(柠檬水、菊花茶、咖啡、小吃零食、应季水果)</p><p>免费提供特制便携包装,方便携带</p><p><img alt=\"\" data-cke-saved-src=\"http://pic.huodongjia.com/event/2015-08-04/event133433.jpg\" height=\"699\" src=\"http://pic.huodongjia.com/event/2015-08-04/event133433.jpg\" width=\"1057\"></img></p><p><strong>画框大小</strong>30*30cm   </p><p><strong>体验时长</strong> 3-4小时</p><p><strong>价格 </strong>99元  </p><p><img alt=\"\" data-cke-saved-src=\"http://pic.huodongjia.com/event/2015-08-04/event133430.jpg\" height=\"1334\" src=\"http://pic.huodongjia.com/event/2015-08-04/event133430.jpg\" width=\"1001\"></img></p><p><strong>地址:</strong> 北京市朝阳区广渠门外大街8号东B座606(地下停车场:每小时5元)</p><p><strong>预约电话:</strong>18601204990(手机)请提前3个小时预约</p><p><strong>营业时间:</strong></p><p>周日至周四 10:00 — 22:00</p><p>周五、周六 10:00 — 23:00</p></body></html></body>",
"mobileURL": "<body><html><head></head><body><p>油画对你来说只是个名词?是挂在墙上的装饰?还是一种高高在上的艺术?</p><p>如果你厌倦了唱歌、逛街、看电影,希望尝试新的休闲娱乐方式, 培养一个优雅的爱好,有自我创作的欲望,尚美色彩自助画室是你最佳的选择!</p><p><img alt=\"\" data-cke-saved-src=\"http://pic.huodongjia.com/event/2015-08-04/event133426.jpg\" height=\"220\" src=\"http://pic.huodongjia.com/event/2015-08-04/event133426.jpg\" width=\"352\"></img></p><p>尚美色彩自助画室位于北京CBD核心商业圈双井商业区,国贸南十号线双井站,朝阳区双井优士阁大厦B座606,10号线地铁西南口出,交通银行上面入口。</p><p>画室为对绘画感兴趣的人士提供了一个无拘无束自由自在的绘画空间。我们为你准备了绘画所需的一切工具,并有专业老师指导。</p><p><img alt=\"\" data-cke-saved-src=\"http://pic.huodongjia.com/event/2015-08-04/event133427.jpg\" height=\"512\" src=\"http://pic.huodongjia.com/event/2015-08-04/event133427.jpg\" width=\"605\"></img></p><p>无论你是否有绘画基础,在尚美色彩自助画室都可以发掘自己的艺术天分,并在艺术创作的同时舒展情绪,摆脱压力和烦恼,用色彩和线条表现真正的自我。</p><p>你的创作,无论是临摹还是个性涂鸦,都会是全球限量版的艺术品!  </p><p><img alt=\"\" data-cke-saved-src=\"http://pic.huodongjia.com/event/2015-08-04/event133428.png\" height=\"519\" src=\"http://pic.huodongjia.com/event/2015-08-04/event133428.png\" width=\"453\"></img>               </p><p><strong>油画体验套餐包括:</strong></p><p>实木框艺术家专用油画画布</p><p>全色系无毒无害环保颜料及全套作画工具、材料,无需自己准备任何额外物品</p><p>店内有彩图画册供参考选择,顾客也可自带参考图或自由创作</p><p><img alt=\"\" data-cke-saved-src=\"http://pic.huodongjia.com/event/2015-08-04/event133432.jpg\" height=\"460\" src=\"http://pic.huodongjia.com/event/2015-08-04/event133432.jpg\" width=\"690\"></img></p><p>驻店专业指导老师针对零基础的绘画者进行免费指导:画前理论讲解、绘画工具使用及注意事项、绘画过程中难点答疑和绘画技巧讲解演示,协助体验者完成一副漂亮的作品,作品可带走。</p><p>免费饮料(柠檬水、菊花茶、咖啡、小吃零食、应季水果)</p><p>免费提供特制便携包装,方便携带</p><p><img alt=\"\" data-cke-saved-src=\"http://pic.huodongjia.com/event/2015-08-04/event133433.jpg\" height=\"699\" src=\"http://pic.huodongjia.com/event/2015-08-04/event133433.jpg\" width=\"1057\"></img></p><p><strong>画框大小</strong>30*30cm   </p><p><strong>体验时长</strong> 3-4小时</p><p><strong>价格 </strong>99元  </p><p><img alt=\"\" data-cke-saved-src=\"http://pic.huodongjia.com/event/2015-08-04/event133430.jpg\" height=\"1334\" src=\"http://pic.huodongjia.com/event/2015-08-04/event133430.jpg\" width=\"1001\"></img></p><p><strong>地址:</strong> 北京市朝阳区广渠门外大街8号东B座606(地下停车场:每小时5元)</p><p><strong>预约电话:</strong>18601204990(手机)请提前3个小时预约</p><p><strong>营业时间:</strong></p><p>周日至周四 10:00 — 22:00</p><p>周五、周六 10:00 — 23:00</p></body></html></body>",
"cat": {
"name": "",
"img": "",
Loading

0 comments on commit 4d7ece3

Please sign in to comment.