Onebound技术规范文档


前端中级

<ol> <li>请使用vue-cli创建vue项目</li> <li>请给新建的vue项目安装axios库</li> <li>请使用uni-app或者vue实现素材1页面</li> <li>请使用mockjs模拟接口<code>/api/obapi/getItem?num_iid=601954727753</code>,返回数据为【素材2】</li> <li>请使用题目1实现的页面对接题目2实现的接口数据</li> <li> <p>复原IP地址【附加算法题】 有效 IP 地址 正好由四个整数(每个整数位于 0 到 255 之间组成,且不能含有前导 0),整数之间用 '.' 分隔。 例如:&quot;0.1.2.201&quot; 和 &quot;192.168.1.1&quot; 是 有效 IP 地址,但是 &quot;0.011.255.245&quot;、&quot;192.168.1.312&quot; 和 &quot;192.168@1.1&quot; 是 无效 IP 地址。 给定一个只包含数字的字符串 s ,用以表示一个 IP 地址,返回所有可能的有效 IP 地址,这些地址可以通过在 s 中插入 '.' 来形成。你 不能 重新排序或删除 s 中的任何数字。你可以按 任何 顺序返回答案。</p> <p>示例:</p> <pre><code>输入:s = "25525511135" 输出:["255.255.11.135","255.255.111.35"]</code></pre> <p>示例2:</p> <pre><code>输入:s = "0000" 输出:["0.0.0.0"]</code></pre> <p>示例3:</p> <pre><code>输入:s = "101023" 输出:["1.0.10.23","1.0.102.3","10.1.0.23","10.10.2.3","101.0.2.3"]</code></pre> <p>提示:</p> <ul> <li>1 &lt;= s.length &lt;= 20</li> <li>s 仅由数字组成</li> </ul> </li> </ol> <p>素材1 <img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=eadbde65af0b41c8399b16470c17d042" alt="" /></p> <p>素材2</p> <pre><code class="language-json">{ "item": { "num_iid": "601954727753", "title": "sincethen清茉 法式收腰雪纺连衣裙长裙光感在逃公主仙女裙秋冬", "desc_short": "", "price": 289, "total_price": "", "suggestive_price": "", "orginal_price": 289, "nick": "欧美专卖ilu", "num": 552, "detail_url": "https://item.taobao.com/item.htm?id=601954727753", "pic_url": "https://gw.alicdn.com/imgextra/O1CN01nCDhxO1x0Xt4e7rIR_!!267096381.jpg", "brand": null, "brandId": "", "rootCatId": "", "cid": 50010850, "desc": "", "item_imgs": [ { "url": "https://gw.alicdn.com/imgextra/O1CN01nCDhxO1x0Xt4e7rIR_!!267096381.jpg" }, { "url": "https://img.alicdn.com/imgextra/i3/267096381/O1CN01FoEwEO1x0XxQU4cU6_!!267096381.jpg" }, { "url": "https://img.alicdn.com/imgextra/i2/267096381/O1CN01Ovb2H61x0Xt9hGtDX_!!267096381.jpg" }, { "url": "https://img.alicdn.com/imgextra/i3/267096381/O1CN01OCP7FG1x0Xt7GBPcR_!!267096381.jpg" }, { "url": "https://img.alicdn.com/imgextra/i4/267096381/O1CN01ULpj7R1x0Xt5RP9N9_!!267096381.jpg" } ], "item_weight": "", "post_fee": "", "freight": "", "express_fee": "", "ems_fee": "", "shipping_to": "", "video": [], "sample_id": "", "props_name": "20509:28315:尺码:M;20509:28316:尺码:L;20509:28316:尺码:L;20509:28315:尺码:M;20509:28314:尺码:S;20509:28314:尺码:S;1627207:46874:颜色分类:现货;1627207:46874:颜色分类:现货;1627207:11863853:颜色分类:预售 7-15天;1627207:11863853:颜色分类:预售 7-15天;1627207:46874:颜色分类:现货;1627207:11863853:颜色分类:预售 7-15天", "prop_imgs": { "prop_img": [ { "properties": "1627207:46874", "url": "http://img.alicdn.com/imgextra/i2/267096381/O1CN01pX6TDY1x0XuKkknHa_!!267096381.jpg" }, { "properties": "1627207:11863853", "url": "http://img.alicdn.com/imgextra/i2/267096381/O1CN01hqgcJe1x0XyNhv786_!!267096381.jpg" } ] }, "props_imgs": { "prop_img": [ { "properties": "1627207:46874", "url": "http://img.alicdn.com/imgextra/i2/267096381/O1CN01pX6TDY1x0XuKkknHa_!!267096381.jpg" }, { "properties": "1627207:11863853", "url": "http://img.alicdn.com/imgextra/i2/267096381/O1CN01hqgcJe1x0XyNhv786_!!267096381.jpg" } ] }, "property_alias": "", "props": [ { "name": "品牌", "value": "since then" }, { "name": "适用年龄", "value": "25-29周岁" }, { "name": "材质", "value": "涤纶" }, { "name": "尺码", "value": "S,M,L" }, { "name": "风格", "value": "通勤" }, { "name": "通勤", "value": "复古" }, { "name": "腰型", "value": "高腰" }, { "name": "衣门襟", "value": "拉链" }, { "name": "颜色分类", "value": "现货,预售" }, { "name": "袖型", "value": "泡泡袖" }, { "name": "组合形式", "value": "单件" }, { "name": "货号", "value": "CQ181218" }, { "name": "年份季节", "value": "2019年秋季" }, { "name": "袖长", "value": "长袖" }, { "name": "裙长", "value": "长裙" }, { "name": "款式", "value": "吊带" }, { "name": "廓形", "value": "A型" } ], "total_sold": "", "skus": { "sku": [ { "price": 289, "total_price": 0, "orginal_price": 289, "properties": "20509:28315;1627207:46874", "properties_name": "20509:28315:尺码:M;1627207:46874:颜色分类:现货", "quantity": 187, "sku_id": "4358643797032" }, { "price": 289, "total_price": 0, "orginal_price": 289, "properties": "20509:28316;1627207:46874", "properties_name": "20509:28316:尺码:L;1627207:46874:颜色分类:现货", "quantity": 34, "sku_id": "4358643797033" }, { "price": 289, "total_price": 0, "orginal_price": 289, "properties": "20509:28316;1627207:11863853", "properties_name": "20509:28316:尺码:L;1627207:11863853:颜色分类:预售 7-15天", "quantity": 52, "sku_id": "4630334636749" }, { "price": 289, "total_price": 0, "orginal_price": 289, "properties": "20509:28315;1627207:11863853", "properties_name": "20509:28315:尺码:M;1627207:11863853:颜色分类:预售 7-15天", "quantity": 71, "sku_id": "4630334636748" }, { "price": 289, "total_price": 0, "orginal_price": 289, "properties": "20509:28314;1627207:46874", "properties_name": "20509:28314:尺码:S;1627207:46874:颜色分类:现货", "quantity": 110, "sku_id": "4358643797031" }, { "price": 289, "total_price": 0, "orginal_price": 289, "properties": "20509:28314;1627207:11863853", "properties_name": "20509:28314:尺码:S;1627207:11863853:颜色分类:预售 7-15天", "quantity": 98, "sku_id": "4630334636747" } ] }, "seller_id": "267096381", "sales": 33, "shop_id": "58641442", "props_list": { "20509:28314": "尺码:S", "20509:28315": "尺码:M", "20509:28316": "尺码:L", "1627207:46874": "颜色分类:现货", "1627207:11863853": "颜色分类:预售 7-15天" }, "seller_info": { "nick": "欧美专卖ilu", "item_score": "", "score_p": "", "delivery_score": "", "shop_type": "", "user_num_id": "267096381", "sid": "58641442", "title": "", "zhuy": "https://shop58641442.taobao.com", "shop_name": "SINCETHEN从那以后" }, "tmall": false, "error": "", "data_from": "Ha", "has_discount": "false", "is_promotion": "false", "promo_type": null, "props_img": { "1627207:46874": "http://img.alicdn.com/imgextra/i2/267096381/O1CN01pX6TDY1x0XuKkknHa_!!267096381.jpg", "1627207:11863853": "http://img.alicdn.com/imgextra/i2/267096381/O1CN01hqgcJe1x0XyNhv786_!!267096381.jpg" }, "desc_img": [], "shop_item": [], "relate_items": [] }, "secache": "d55a6fa736ae6290c81e182d448e9cc5", "secache_time": 1647051843, "secache_date": "2022-03-12 10:24:03", "translate_status": "", "translate_time": 0, "language": { "default_lang": "cn", "current_lang": "cn" }, "error": "", "reason": "", "error_code": "0000", "cache": 0, "api_info": "today:6 max:11000", "execution_time": "6.233", "server_time": "Beijing/2022-03-12 10:24:03", "client_ip": "106.6.32.9", "call_args": { "num_iid": "601954727753", "is_promotion": "1" }, "api_type": "taobao", "translate_language": "zh-CN", "translate_engine": "google_new", "server_memory": "5.82MB", "request_id": "1.622c043d9ebc9", "last_id": "799350078" } </code></pre>

页面列表

ITEM_HTML