iOS Client Discovery _ Animation House Activities Award-winning presentation and award-winning module development summary

Source: Internet
Author: User

Recently looking at the web2.0 strategy guide, the beginning of the Flicker DVD leasing business model analysis, it seems that the business model is still very strong, and since last year, after the card house, flicker led a wave of its own content, Hunan satellite TV in the future, such as Dad where to go, Happy Base Camp and other programs, CCTV World Cup alone broadcast, Iqiyi Art Xiao said, Liu Chun joined the Unknown Big thing program. After the upsurge, is artificial to the entrance of the audio-visual cutting, this entrance gradually increased, to the user and the entrance of the parties are not very good, audio and video entrance into the Warring States period, not long the risk of this model will appear, only by its own content to retain users is far from the end, Perhaps the domestic entrance can continue to see flicker next how to go.

Le Emperor Internship unit sat a functional customer service sister, daily work content in accordance with user complaints, communication with users, to the bug, feedback to the technology side, the technical side can solve all the users to return, explain the reason or remind users to update the version. Yue Timor's work is the development of the Mobile Discovery Activity page, which will be launched every week, giving back to VIP users, ordinary users and users of specific cooperative operators. And regardless of customer service eventually reported the results of bad feedback, activity planning implementation of good or bad. Daily, daily feedback, you from the bottom of the heart or to such a company has a positive evaluation, because they value users, constantly improve the quality of business, improve the user experience. This is a breakout method outside of self-made content.

The book belongs to the story, and the main thing this week is three pieces:

    • Animation House Activities award-winning display page
    • New events Huawei Iqiyi mobile two pages
    • Award-winning Display module development

Project Introduction

(i). Development of the award-winning display page of animation house activities

Animation House This activity, is Yue Timor came to the internship unit, completed the first project, from the beginning of the event, the award of statistics, to the present award-winning display are independent development and testing completed. Since the previous end of the page has been developed, the product over the award results, Yue Timor just follow the data provided by the product to find out the winner's user name and avatar for formatting display. Here, Le Emperor wrote two ways to remove the target object.


function UserObject (data,useruid) {    var userobj = [];    for (j = 0;j <useruid.length;j++) {    userobj[j]=searchuid (data,useruid[j]);    }    return userobj;} Return the corresponding array of comment objects by entering the UID array
function Searchuid (data,uid) {var comments = data[' data '] [' comments '];var len = comments.length;for (i = 0;i < len;i++) { if (comments[i][' userInfo ' [' uid '] = = UID) {return comments[i][' UserInfo '];}}} Get the comment object under the corresponding UID

First, the Yue Timor award-winning user ID is saved to an array. Then call the above function, the comment JSON object will be obtained through Ajax, and in the object to find the user ID and the winning ID of the same user information object, stored in the target array, and then call the comment module to show.

This project highlights the Yue Timor's understanding of caching. And formed a further release, testing solutions. Because the iOS system itself does not have cache cleanup. The server also caches the old content, and the new publication may not be displayed immediately.

so the online modification of the page needs to start from four aspects to see if it works.

    • Uninstall App Reload
    • Close app Process
    • Server-side Cleanup cache
    • Use the alert function to see if there are any real-time modifications

Through the above four methods, the basic can ensure that the changes can take effect.

In addition I learned that this activity is specifically for the ipad activities, so before adjusting the other mobile phone adaptation is not necessary, future activities should pay attention to inquiries, the scope of activities. Learned from Bin, that he adapted only to the iphone and ipad adaptation , this time Yue Timor specifically to adjust the adaptation of the time recorded a variety of compatible phone resolution, basically 320-480, the iphone is 320-360 and this is the mainstream model in the range, ipad resolution above 1024, normal reference adapter can be, no need to adjust separately. It makes sense to just tune the iphone and ipad.


(b). Development of the award-winning display module

Development process, especially the current mobile Activity page development, do a long time will find the page pattern is very fixed, can save writing the underlying code, and directly modular "take doctrine", only need to do a bit of positioning work. Award-winning show this module is often used, so it comes out alone and writes a function. To prevent naming conflicts, here are some specific formats for naming.

function H5_winnerarea (winnerobject,total) {//parameter is an array object with the number of bars to show if (! (        Arrayobject instanceof Array) {Return};var viewport = $ (". Viewport") [0];var length = winnerobject.length;//award-winning object lengths Winnerobject = Winnerobject.slice (0,total);//intercept an array of objects to show var H5_winner = $ ("<div class= ' H5_winner ' ></div        > "); H5_winner.appendto (viewport);//Select the first viewport, append this section of the winning code to the subsequent var H5_winneruser = $ ("<div class= ' H5_winneruser ' >        <span> Total </span><span> "+length+" </span><span> winners </span></div> "); H5_winneruser.appendto (H5_winner); var H5_winnerarea = $ ("<div></div>"); H5_winnerarea.attr ("Class", "H5 _winnerarea "); H5_winnerarea.appendto (H5_winner); var h5_winnerarea_list = $ (" <div></div> "); h5_ Winnerarea_list.attr ("Class", "h5_winnerarea_list"); H5_winnerarea.append (h5_winnerarea_list); var H5_winnerArea_    Header = $ ("<div></div>");    H5_winnerarea_header.attr ("Class", "H5_winnerarea_header"); H5_winnerarea_liSt.append (H5_winnerarea_header); var h2 = $ ("
corresponding CSS style:

. h5_winneruser {text-align:center;margin-top:40px;font-size:24px;font-weight:bold;color: #542004; width:100%;}. H5_winnerarea {margin-top:30px;width:100%;}. h5_winnerarea_list {background-color: #ffffff; margin:0 10px 100px 10px;border-radius:6px;}. H5_winnerarea_header {padding:10px 15px 0 15px;}. H5_winnerarea_header H2 {font-size:24px;font-weight:bold;color: #4d4d4d; border-bottom:1px solid #e7e7e7; padding-bottom:10px;}. H5_winnerarea_item Ul,.h5_winnerarea_item li {list-style:none}.h5_winnerarea_textoverflow {overflow:hidden;/* Overflow element Hide */text-overflow:ellipsis;/* overflow element hide show ' ... ' */white-space:nowrap;/* do not wrap, this three is the processing of the word */}.h5_winnerarea_item ul { Padding:0 15px;}. H5_winnerarea_item Li {border-bottom:1px solid #e7e7e7; overflow:hidden;padding:5px 0 5px 0;line-height:60px;height:60 px;} . h5_winnerarea_item_icon {float:left;width:40px;margin-right:20px;}. H5_winnerarea_item_icon img {border-radius:20px;width:40px;height:40px;}. h5_winnerarea_item_name {float:left; Font-size:24px; Font-weight:bold;color: #000000;}. h5_winnerarea_item_prize {float:right;text-align:right;display:inline;font-size:20px;color: #4d4d4d;}

This module can modify the content as needed at any time, from the process of development of this module, from Bin brother learned that the native code for different browsers will be incompatible with the problem, so the module as far as possible using the jquery framework to write.

Huawei Iqiyi Mobile phone activity has not been launched yet. There is no introduction to the development situation here. Here special thanks to bin brother, bin Brother as a senior programmer, to my patience to guide the standardization of programming, to solve some of my problems, I am very grateful.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.