[background technology]
Along with the develop rapidly of internet, for consumer, shopping online has become and to have become more and more popular and general consumption and shopping mode.Mobile terminal (as smart mobile phone, panel computer etc.) becomes the requisite equipment that people carry with, and the one that the shopping based on mobile terminal also day by day becomes people's consumption is selected.The application of current online shopping mall generally adopts shopping cart model to help user and selects and clearing commodity, namely first user selects the commodity admired to put into Network Shopcart (items list to be purchased), and in shopping cart, commodity are screened, finally the commodity of shopping cart are paid and settled accounts, thus complete the process of consumption.
The existing purchase method by mobile terminal is scanned the bar code of (material object) commodity under line or Quick Response Code by mobile terminal, and rely on mobile network communication channel (Wifi network, GSM mobile network etc.) identification code is delivered to store service end, in service end, identification code is mapped with concrete commodity, thus completes on backstage commodity are added into the operation such as shopping cart and clearing.Although the method can help consumer to do shopping on the net for physical commodity easily, decrease the processes such as commercial articles searching, improve experience and the convenience of consumer, there is following problem:
Commodity barcode scanning is owing to needing to report the bar code of identification and the merchandise news corresponding to passback to system service end, and period needs to rely on good network condition, once communication failure, follow-up step is difficult to proceed.And a lot of actual application scenarios, as supermarket, warehouse etc., its network condition is not fine.
The bar code or the Quick Response Code that often scan commodity all need to carry out alternately with service end, and all need to be confirmed by consumer.When batch scanning commodity bar code, mobile terminal and service end interaction times very many, easily cause the performance issue of system when consumer measures large.Meanwhile, consumer needs to confirm that the number of times of commodity is also very many, and operating efficiency is not high.
[summary of the invention]
The technical problem to be solved in the present invention is to provide a kind of purchase system, purchase method and mobile terminal.Even if this purchase system and purchase method are when network condition is bad, user still can realize shopping online.
The present invention adopts following technical scheme:
A kind of purchase system, be applied in mobile terminal, described mobile terminal comprises housing, is fixed on the screen in described housing and camera.Described purchase system comprises: judge module, memory module, the first detecting module, receiver module and the second detecting module.When described camera is activated, whether described judge module is bar code or Quick Response Code for the image judging described camera and capture, and scans captured bar code or Quick Response Code.Described memory module is for storing bar code or the Quick Response Code of described scanning; Described first detecting module for detecting the operation of user, and when after the operation detecting user, described bar code or Quick Response Code being sent to system end.Described receiver module is used for the list of articles sent of receiving system end and is shown in described display screen by this inventory.Described list of articles for detecting the operation of user, and is added into shopping cart when detecting after user operates accordingly by described second detecting module.
A kind of purchase method, be applied in mobile terminal, described mobile terminal comprises housing, is fixed on the screen in described housing and camera.Described purchase method comprises the steps: when described camera is activated, and judges whether the image that described camera captures is bar code or Quick Response Code; If the image that described camera captures is bar code or Quick Response Code, scans when the image captured and store; The operation of detecting user, and when bar code described after the operation detecting user or Quick Response Code are sent to system end; This inventory is also shown in described screen by the list of articles that receiving system end is sent; The operation of detecting user, and when detecting after user operates accordingly, described list of articles is added into shopping cart.
A kind of mobile terminal, described mobile terminal comprises housing, is fixed on the screen in described housing and camera.Described mobile terminal also comprises purchase system, and described purchase system comprises: judge module, memory module, the first detecting module, receiver module and the second detecting module.When described camera is activated, whether described judge module is bar code or Quick Response Code for the image judging described camera and capture, and scans captured bar code or Quick Response Code.Described memory module is for storing bar code or the Quick Response Code of described scanning.Described first detecting module for detecting the operation of user, and when after the operation detecting user, described bar code or Quick Response Code being sent to system end.Described receiver module is used for the list of articles sent of receiving system end and is shown in described display screen by this inventory.Described list of articles for detecting the operation of user, and is added into shopping cart when detecting after user operates accordingly by described second detecting module.
Compared with prior art, beneficial effect of the present invention is: the bar code that the present invention scans mobile terminal or Quick Response Code store and confirm barcode scanning result when network condition is good, thus the corresponding goods in online shopping mall is added to the shopping cart of corresponding account, avoid because networking situation is bad and affect shopping online.
[embodiment]
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Refer to Fig. 1 and Fig. 2, it is the schematic diagram of a mobile terminal 100 provided by the invention.Mobile terminal 100 comprises housing 110, be fixed on screen 120 in housing 110 and camera 130.Described screen 120 is watched for user for display frame information.Described camera 130 be arranged on housing 110 with the opposing setting of screen 120 (also known as " post-positioned pick-up head ").Described camera 130 is for catching image information and being shown for user's preview in screen 120 by captured image information.In the present embodiment, described mobile terminal 100 is mobile phone.Described camera 130 is for the bar code of items scanning.In other embodiments, mobile terminal also can be panel computer or other electronic products with camera.
Refer to Fig. 3, it is the functional block diagram of mobile terminal 100 provided by the invention.Mobile terminal 100 also comprises purchase system 10, storer 11 and processor 12.Purchase system 10 comprises judge module 101, decoder module 102, memory module 103, first detecting module 104, receiver module 105 and the second detecting module 106.Above-mentioned each functional module can be stored in storer 11 with the form of software program, and is performed by processor 12.In alternative embodiments, above-mentioned each functional module also can be the hardware with specific function, and such as, burning has the chip of particular software application.
Below in conjunction with Fig. 3 and Fig. 4, above-mentioned each functional module is described in detail.
As shown in Figure 4, be in the embodiment of the present invention, use mobile terminal 100 to carry out the method flow diagram of doing shopping.It should be noted that method of the present invention is not limited to the order of following step, and in other embodiments, method of the present invention can only include a wherein part for the following stated step, or part steps wherein can be deleted.
Step S01, when the camera 130 of mobile terminal 100 is activated, judge module 101 judges whether the image that described camera 130 captures is bar code or Quick Response Code.If the image that described camera 130 captures is bar code or Quick Response Code, then enter step S02.If the image that described camera 130 captures is not bar code or Quick Response Code, continue to judge current image.
Step S02, judge module 101 to when the image captured be bar code or Quick Response Code time scan.
Particularly, after purchase system 10 is activated, user can select to open camera 130 pairs of current image to be scanned.
Step S03, scanned bar code or Quick Response Code are decoded by decoder module 102, and decoded bar code or Quick Response Code are stored in memory module 103.
Particularly, decoder module 102 form that the bar code of Current Scan or Quick Response Code carried out decode to make it meet memory module 103 and can identify.
Step S04, judge module 101 detects the state of camera 130, and judges whether to proceed barcode scanning according to the current state of camera 130.If detect camera 130 be still in open mode, then enter step S01.If detect camera 130 to be in " shut " mode", then stop barcode scanning, and enter step S05.
Particularly, if when user has multiple commodity to carry out barcode scanning, then camera 130 still can be in opening to continue barcode scanning.If user only has commodity to scan, then when camera 130 being closed after the bar code having swept commodity or Quick Response Code.Therefore, whether barcode scanning can be carried out by the condition adjudgement of camera 130.
Step S05, the first detecting module 104 detects the operation of user, and when after the operation detecting user, decoded bar code or Quick Response Code being sent to system end.
When network condition is good, user can start purchase system 10 and the bar code be stored in memory module 103 or Quick Response Code are sent to system end.Particularly, the operation of user can be, after purchase system 10 is activated, the markd prompt user of a band can be shown and whether the bar code stored or Quick Response Code are sent to system end, user can be decided by click "Yes" or "No", when user clicks "Yes", mobile terminal 100 is stored in local bar code or Quick Response Code list is submitted to system end by network by all.In the present embodiment, screen 120 can be touch-screen.System end is database or the server in store.
Step S06, this inventory is also shown in described screen 120 by the list of articles that receiver module 105 receiving system end is sent.
Particularly, system end receives the commodity that barcode scanning result (identification code) arrives data base querying coupling one by one, the inventory of all couplings is returned to mobile terminal 100 and is shown to user's confirmation.
Step S07, the second detecting module 106 detects the operation of user, and when detecting after user operates accordingly, described list of articles is added into shopping cart.
Particularly, after receiving inventory, the second detecting module 106 forms an acknowledgement window in screen 120, and this window can with the mark of "Yes" and "No", when user clicks "Yes", the items list of confirmation is added in the shopping cart of store by system end.Be appreciated that the operation of user of the present invention be not limited to the present invention for embodiment, also can be other operational motions to screen 120.Content in described display window is also not limited to this.
In sum, the present invention is by utilizing mobile terminal 100 local buffer technology to carry out barcode scanning to commodity under line and the process being added into online shopping mall's shopping cart is optimized, and decoding is carried out to scanned bar code or Quick Response Code be stored in mobile terminal 100, thus the degree of dependence be reduced in network in commodity barcode scanning process, improve the efficiency of barcode scanning process.And finally decrease the interaction times of mobile terminal 100 and system end, and user confirms the number of times of commodity, improves the performance of system and the experience of user simultaneously.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.