diff --git a/application/plugins/petscms/Pets.php b/application/plugins/petscms/Pets.php index 4261fb094a4f131a36505d7b21f8fca2b7314b4e..e9a77ce9d4ca05ffbfb4a32040f3a87129b40432 100644 --- a/application/plugins/petscms/Pets.php +++ b/application/plugins/petscms/Pets.php @@ -83,8 +83,8 @@ class Pets extends Controller ); $data = Service::PetsList($data_params); $this->assign('data_list', $data['data']); - //print_r($data['data']); + $this->assign('pets_attribute_status_list', Service::$pets_attribute_status_list); $this->assign('pets_attribute_is_text_list', Service::$pets_attribute_is_text_list); $this->assign('pets_attribute_gender_list', Service::$pets_attribute_gender_list); $this->assign('pets_attribute_type_list', Service::$pets_attribute_type_list); @@ -101,7 +101,22 @@ class Pets extends Controller */ public function saveinfo($params = []) { - $this->assign('data', []); + // 获取数据 + $data = []; + if(!empty($params['id'])) + { + $data_params = array( + 'm' => 0, + 'n' => 1, + 'where' => ['id' => intval($params['id'])], + ); + $ret = Service::PetsList($data_params); + $data = empty($ret['data'][0]) ? [] : $ret['data'][0]; + unset($params['id']); + } + $this->assign('data', $data); + $this->assign('params', $params); + $this->assign('pets_attribute_status_list', Service::$pets_attribute_status_list); $this->assign('pets_attribute_is_text_list', Service::$pets_attribute_is_text_list); $this->assign('pets_attribute_gender_list', Service::$pets_attribute_gender_list); $this->assign('pets_attribute_type_list', Service::$pets_attribute_type_list); diff --git a/application/plugins/petscms/Service.php b/application/plugins/petscms/Service.php index 57c8cec5a1c58f9d1e6487cc4ff69b651d7abb5b..a77049f43edb716ce3a328e7353e648f048be17d 100644 --- a/application/plugins/petscms/Service.php +++ b/application/plugins/petscms/Service.php @@ -41,6 +41,14 @@ class Service 1 => ['value' => 1, 'name' => '母'], ]; + // 状态(0正常, 1丢失, 2去世, 3关闭) + public static $pets_attribute_status_list = [ + 0 => ['value' => 0, 'name' => '正常'], + 1 => ['value' => 1, 'name' => '丢失'], + 2 => ['value' => 2, 'name' => '去世'], + 3 => ['value' => 3, 'name' => '关闭'], + ]; + /** * 宠物列表 * @author Devil @@ -75,6 +83,9 @@ class Service // 是否疫苗 $v['vaccine_name'] = self::$pets_attribute_is_text_list[$v['vaccine']]['name']; + // 状态 + $v['status_name'] = self::$pets_attribute_status_list[$v['status']]['name']; + // 生日/年龄 if(empty($v['birthday'])) { @@ -92,6 +103,9 @@ class Service // 相册 $v['photo'] = empty($v['photo']) ? null : self::GetPestPhotoHandle($v['photo']); + // 二维码 + $v['qrcode_url'] = MyUrl('index/qrcode/index', ['content'=>urlencode(base64_encode(MyUrl('index/goods/index', ['id'=>$v['id']], true, true)))]); + // 时间 $v['add_time_time'] = date('Y-m-d H:i:s', $v['add_time']); $v['add_time_date'] = date('Y-m-d', $v['add_time']); @@ -114,8 +128,12 @@ class Service private static function GetPestPhotoHandle($photo) { $result = []; - if(!empty($photo) && is_array($photo)) + if(!empty($photo)) { + if(is_string($photo)) + { + $photo = json_decode($photo, true); + } foreach($photo as &$v) { $result[] = [ @@ -161,6 +179,10 @@ class Service { $where[] = ['type', '=', $params['type']]; } + if(isset($params['status']) && $params['status'] > -1) + { + $where[] = ['status', '=', intval($params['status'])]; + } if(isset($params['gender']) && $params['gender'] > -1) { $where[] = ['gender', '=', intval($params['gender'])]; @@ -327,8 +349,31 @@ class Service 'person_weixin' => isset($params['person_weixin']) ? $params['person_weixin'] : '', ]; + // 绑定编号 + $edit_msg_title = '编辑'; + if(empty($params['id']) && !empty($params['pest_no'])) + { + $pets = Db::name('PluginsPetscmsPets')->where(['pest_no'=>$params['pest_no']])->field('id,pest_no,user_id')->find(); + if(empty($pets)) + { + return DataReturn('宠物编号不存在['.$params['pest_no'].']', -10); + } + + // 是否被其他用户绑定 + if(!empty($pets['user_id'])) + { + return DataReturn('宠物编号已被绑定['.$params['pest_no'].']', -11); + } + + // 使用编辑模式 + $params['id'] = $pets['id']; + $edit_msg_title = '绑定'; + } + + // 添加/编辑 if(empty($params['id'])) { + $data['pest_no'] = date('YmdHis').GetNumberCode(6); $data['add_time'] = time(); if(Db::name('PluginsPetscmsPets')->insertGetId($data) > 0) { @@ -339,9 +384,9 @@ class Service $data['upd_time'] = time(); if(Db::name('PluginsPetscmsPets')->where(['id'=>intval($params['id'])])->update($data)) { - return DataReturn('编辑成功', 0); + return DataReturn($edit_msg_title.'成功', 0); } - return DataReturn('编辑失败', -100); + return DataReturn($edit_msg_title.'失败', -100); } } diff --git a/application/plugins/view/petscms/pets/index.html b/application/plugins/view/petscms/pets/index.html index ffb90f96d905d4caf0e2da0ec596c522d3e238b4..88b2280efb962b0f9ee204e740d97f3c9372acf0 100644 --- a/application/plugins/view/petscms/pets/index.html +++ b/application/plugins/view/petscms/pets/index.html @@ -42,7 +42,7 @@ 类型: - 性别: - + + {{if !empty($pets_attribute_status_list)}} + {{foreach $pets_attribute_status_list as $v}} + {{/foreach}} {{/if}} @@ -74,6 +74,20 @@ {{/if}} + + 性别: + + + + + 清除条件 @@ -85,7 +99,7 @@
- 新增 + 新增 / 绑定
@@ -94,15 +108,12 @@ - - - - - - - - - + + + + + + @@ -110,29 +121,68 @@ {{if !empty($data_list)}} {{foreach $data_list as $v}} - - - - - - - + + + + + - {{/foreach}} {{/if}} {{if empty($data_list)}} - diff --git a/application/plugins/view/petscms/pets/saveinfo.html b/application/plugins/view/petscms/pets/saveinfo.html index bc50a08c9357689c670bdc2df0b59d7a11afa583..76c25ad6d722b5f9e220da261a0664d8271c98a1 100644 --- a/application/plugins/view/petscms/pets/saveinfo.html +++ b/application/plugins/view/petscms/pets/saveinfo.html @@ -23,106 +23,165 @@
-
- - -
+ + 我的宠物 + 返回 + + + +
+ {{if empty($data['id'])}} +
+ + +
+ {{/if}} -
- - -
+
+ + +
-
- - -
+
+ + +
-
- - -
+
+ + +
-
- - -
+
+ + +
-
- - -
+
+ + +
-
- - -
+
+ + +
-
- - -
+
+ + +
- -
- -
    - {{if !empty($data['photo'])}} - {{foreach $data.photo as $v}} -
  • - - - × -
  • +
    + + +
    - -
    - - + +
    + +
      + {{if !empty($data['photo'])}} + {{foreach $data.photo as $v}} +
    • + + + × +
    • + {{/foreach}} + {{/if}} +
    +
    +上传相册
    +
    + + +
    + + +
    +

    主人信息

    +
    - +
    - +
    - +
    + +
    +

    丢失信息(丢失状态下有效)

    +
    +
    + + +
    +
    + + +
    +
    + + +
    + {{include file="lib/region_linkage" /}} +
    + +
    + + + + + + +
    +
    +
    +
    + +
    + + +
    +
    +
    @@ -133,4 +192,43 @@ {{include file="public/footer" /}} - \ No newline at end of file + + + + + + \ No newline at end of file diff --git a/config/shopxo.sql b/config/shopxo.sql index 236fdd2e6c0418f58e19ca2202fbcb8d1a2ac975..aa9973eedc266c3604a784d92353c9209a130302 100644 --- a/config/shopxo.sql +++ b/config/shopxo.sql @@ -1,18 +1,20 @@ /* - Navicat MySQL Data Transfer + Navicat Premium Data Transfer Source Server : 本机 - Source Server Version : 50716 + Source Server Type : MySQL + Source Server Version : 50722 Source Host : localhost - Source Database : shopxo_ttt + Source Database : shopxo_test - Target Server Version : 50716 + Target Server Type : MySQL + Target Server Version : 50722 File Encoding : utf-8 - Date: 04/12/2019 00:43:17 AM + Date: 04/12/2019 18:40:50 PM */ -SET NAMES utf8; +SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- @@ -38,7 +40,7 @@ CREATE TABLE `s_admin` ( -- Records of `s_admin` -- ---------------------------- BEGIN; -INSERT INTO `s_admin` VALUES ('1', 'admin', 'e1ebceb943dc4b95370cbbc6016592c1', '175070', '17688888888', '0', '391', '1554963106', '1', '1481350313', '1551341520'), ('3', 'testtest', 'a3a3368a4a310b29cd6662e386a46b19', '580271', '13222333333', '2', '51', '1551341548', '13', '1483947758', '1551341720'); +INSERT INTO `s_admin` VALUES ('1', 'admin', '3df06bdcb7e667876800f1feb1eaf32d', '582077', '17688888888', '0', '392', '1555038080', '1', '1481350313', '1551341520'), ('3', 'testtest', 'a3a3368a4a310b29cd6662e386a46b19', '580271', '13222333333', '2', '51', '1551341548', '13', '1483947758', '1551341720'); COMMIT; -- ---------------------------- @@ -363,7 +365,7 @@ CREATE TABLE `s_goods` ( -- Records of `s_goods` -- ---------------------------- BEGIN; -INSERT INTO `s_goods` VALUES ('1', '1', 'MIUI/小米 小米手机4 小米4代 MI4智能4G手机包邮 黑色 D-LTE(4G)/TD-SCD', '', '', '0', '125', '步', '/static/upload/images/goods/2019/01/14/1547450781101144.jpg', '3200.00', '3200.00', '3200.00', '2100.00', '2100.00', '2100.00', '10', '1', '0', '1', '1', '1', '


    ', '2', '0', '27', '', '/static/upload/images/goods/2019/01/14/1547450781101144.jpg', '0', '1547450921', '1554556830'), ('2', '2', '苹果(Apple)iPhone 6 Plus (A1524)移动联通电信4G手机 金色 16G', '', 'iPhone 6 Plus', '0', '1701', '步', '/static/upload/images/goods/2019/01/14/1547451274847894.jpg', '6000.00-7600.00', '6000.00', '7600.00', '4500.00-6800.00', '4500.00', '6800.00', '30', '1', '0', '1', '1', '1', '


    ', '2', '0', '89', '/static/upload/video/goods/2019/01/14/1547458876723311.mp4', '/static/upload/images/goods/2019/01/14/1547451274847894.jpg', '0', '1547451624', '1554555460'), ('3', '2', 'Samsung/三星 SM-G8508S GALAXY Alpha四核智能手机 新品 闪耀白', '', '', '0', '235', '步', '/static/upload/images/goods/2019/01/14/1547451909951171.jpg', '6866.00', '6866.00', '6866.00', '3888.00', '3888.00', '3888.00', '20', '1', '0', '1', '1', '1', '


    ', '2', '0', '29', '', '/static/upload/images/goods/2019/01/14/1547451909951171.jpg', '0', '1547452007', '1547452007'), ('4', '1', 'Huawei/华为 H60-L01 荣耀6 移动4G版智能手机 安卓', '', '', '0', '537', '步', '/static/upload/images/goods/2019/01/14/1547452474332334.jpg', '2300.00', '2300.00', '2300.00', '1999.00', '1999.00', '1999.00', '19', '1', '0', '1', '1', '1', '


    ', '2', '0', '62', '', '/static/upload/images/goods/2019/01/14/1547452474332334.jpg', '0', '1547452553', '1547452553'), ('5', '2', 'Meizu/魅族 MX4 Pro移动版 八核大屏智能手机 黑色 16G', '', '', '0', '435', '步', '/static/upload/images/goods/2019/01/14/1547452714324599.jpg', '3200.00', '3200.00', '3200.00', '2499.00', '2499.00', '2499.00', '56', '1', '0', '1', '1', '1', '


    ', '2', '1', '217', '', '/static/upload/images/goods/2019/01/14/1547452714324599.jpg', '0', '1547452798', '1547452798'), ('6', '1', 'vivo X5MAX L 移动4G 八核超薄大屏5.5吋双卡手机vivoX5max', '', '', '0', '319', '步', '/static/upload/images/goods/2019/01/14/1547453000703308.jpg', '3200.00', '3200.00', '3200.00', '2998.90', '2998.90', '2998.90', '65', '1', '0', '1', '1', '1', '

     X5L/SL/V/M (5.0寸)  X5max钢化膜(5.5寸)  X5pro钢化膜(5.2寸) 



    ', '2', '0', '72', '', '/static/upload/images/goods/2019/01/14/1547453000703308.jpg', '0', '1547453135', '1547453157'), ('7', '1', '纽芝兰包包女士2018新款潮百搭韩版时尚单肩斜挎包少女小挎包链条', '', '', '0', '320', '件', '/static/upload/images/goods/2019/01/14/1547453895416529.jpg', '760.00', '760.00', '760.00', '168.00', '168.00', '168.00', '11', '1', '0', '1', '1', '1', '


    ', '2', '0', '9', '', '/static/upload/images/goods/2019/01/15/1547540603500383.jpg', '0', '1547453967', '1554485498'), ('8', '1', 'MARNI Trunk 女士 中号拼色十字纹小牛皮 斜挎风琴包', '', '', '0', '35', '件', '/static/upload/images/goods/2019/01/14/1547454145355962.jpg', '672.00', '672.00', '672.00', '356.00', '356.00', '356.00', '8', '1', '0', '1', '1', '1', '


    ', '2', '0', '17', '', '/static/upload/images/goods/2019/01/14/1547454145355962.jpg', '0', '1547454269', '1554485486'), ('9', '2', '睡衣女长袖春秋季纯棉韩版女士大码薄款春夏季全棉家居服两件套装', '', '', '0', '596', '件', '/static/upload/images/goods/2019/01/14/1547454702543219.jpg', '160.00-216.00', '160.00', '216.00', '120.00-158.00', '120.00', '158.00', '2', '1', '0', '1', '1', '1', '


    ', '3', '0', '105', '', '/static/upload/images/goods/2019/01/14/1547454567172116.jpg', '0', '1547454786', '1554555420'), ('10', '0', '夏装女装古力娜扎明星同款一字领露肩蓝色蕾丝修身显瘦连衣裙礼服', '', '', '0', '36', '件', '/static/upload/images/goods/2019/01/14/1547455240794230.jpg', '568.00', '568.00', '568.00', '228.00', '228.00', '228.00', '28', '1', '0', '1', '1', '1', '

    【品牌】欧单 学媛风 猫咪良品

    【吊牌】xueyuanfeng 猫咪良品

    【面料质地】涤棉拼接蕾丝  后中拉链 有内衬(非专业机构鉴定,介意请慎拍)

    好的衣服需要好好呵护,务必请冷水手洗(切记别浸泡)拧干就晾晒或则干洗哦~

    【商品颜色】实物拍摄 蓝色 颜色很难拍有小色差属正常现象哦

    【商品尺寸】XS/S/M/L 小高腰设计 胸口纽扣是装饰的哦


    XS码尺寸: 悬挂衣长81CM.胸围80内合适.腰围63CM.臀围86CM


    S码尺寸: 悬挂衣长82CM.胸围84内合适.腰围67CM.臀围90CM

    M码尺寸: 悬挂衣长83CM.胸围88内合适.腰围71CM.臀围94CM

    L码尺寸: 悬挂衣长84CM.胸围92内合适.腰围75CM.臀围98CM


    (测量单位是CM,每个人的测量方式不一样,测量的尺寸数据可能会有1~3厘米的差异,请MM们谅解哦)

    PS:常规码数,可按平时号选择哦。修身版型~如果上身偏大可以适当考虑大1号~下摆蕾丝拼接不会很平整的哦~

    蕾丝花是手工修剪出来的,每件都有不同和不规则的哦,有小线头和节点是正常现象哦~请亲们谅解哦~


    ', '2', '0', '134', '', '/static/upload/images/goods/2019/01/14/1547455222990904.jpg', '0', '1547455375', '1554555406'), ('11', '0', '夏季复古ins风格网红SP同款 短袖大圆领香槟色蕾丝绣花钉珠连衣裙', '', '', '0', '36665655', '件', '/static/upload/images/goods/2019/01/14/1547455601314107.jpg', '268.00', '268.00', '268.00', '258.00', '258.00', '258.00', '1', '1', '0', '1', '1', '1', '

    【品牌】欧单 学媛风 猫咪良品

    【吊牌】xueyuanfeng 猫咪良品

    【面料质地】网纱绣花钉珠拼接蕾丝 拉链有内衬(非专业机构鉴定,介意请慎拍)

    好的衣服需要好好呵护,务必请冷水手洗(切记别浸泡)拧干就晾晒或则干洗哦~

    【商品颜色】实物拍摄 香槟色 颜色很难拍有小色差属正常现象哦

    【商品尺寸】XS/S/M/L 小高腰设计 胸那考虑撑开因素哦 微弹的哦


    XS码尺寸: 衣长82CM.胸围80内合适.腰围63CM.臀围86CM


    S码尺寸: 衣长83CM.胸围84内合适.腰围67CM.臀围90CM

    M码尺寸: 衣长84CM.胸围88内合适.腰围71CM.臀围94CM

    L码尺寸: 衣长85CM.胸围92内合适.腰围75CM.臀围98CM


    (测量单位是CM,每个人的测量方式不一样,测量的尺寸数据可能会有1~3厘米的差异,请MM们谅解哦)

    PS:常规码数,可按平时号选择哦。修身版型,如果腰粗可以适当考虑大1号哦~

    大圆领,每个人的身材曲线不同,领口不会很平的哦,请谅解~

    肩膀那有暗扣哦,可以很好的隐藏了内衣的肩带哦~袖子那略硬哦~



    ', '4', '1', '66', '', '/static/upload/images/goods/2019/01/14/1547455566118614.jpg', '0', '1547455700', '1554555398'), ('12', '2', 'ZK星星绣花雪纺连衣裙中长款sukol裙少女心温柔超仙女chic裙子夏', '', 'xxxxhhhhhh商品型号', '0', '244', '件', '/static/upload/images/goods/2019/01/14/1547455890402147.jpg', '150.00-188.00', '150.00', '188.00', '0.01-128.00', '0.01', '128.00', '3', '1', '0', '1', '1', '1', '

    \"d-1.jpg\"/

    \"d-2.jpg\"/

    ', '3', '0', '280', '', '/static/upload/images/goods/2019/01/14/1547455890402147.jpg', '0', '1547456230', '1554992248'); +INSERT INTO `s_goods` VALUES ('1', '1', 'MIUI/小米 小米手机4 小米4代 MI4智能4G手机包邮 黑色 D-LTE(4G)/TD-SCD', '', '', '0', '125', '步', '/static/upload/images/goods/2019/01/14/1547450781101144.jpg', '3200.00', '3200.00', '3200.00', '2100.00', '2100.00', '2100.00', '10', '1', '0', '1', '1', '1', '


    ', '2', '0', '27', '', '/static/upload/images/goods/2019/01/14/1547450781101144.jpg', '0', '1547450921', '1554556830'), ('2', '2', '苹果(Apple)iPhone 6 Plus (A1524)移动联通电信4G手机 金色 16G', '', 'iPhone 6 Plus', '0', '1701', '步', '/static/upload/images/goods/2019/01/14/1547451274847894.jpg', '6000.00-7600.00', '6000.00', '7600.00', '4500.00-6800.00', '4500.00', '6800.00', '30', '1', '0', '1', '1', '1', '


    ', '2', '0', '89', '/static/upload/video/goods/2019/01/14/1547458876723311.mp4', '/static/upload/images/goods/2019/01/14/1547451274847894.jpg', '0', '1547451624', '1554555460'), ('3', '2', 'Samsung/三星 SM-G8508S GALAXY Alpha四核智能手机 新品 闪耀白', '', '', '0', '235', '步', '/static/upload/images/goods/2019/01/14/1547451909951171.jpg', '6866.00', '6866.00', '6866.00', '3888.00', '3888.00', '3888.00', '20', '1', '0', '1', '1', '1', '


    ', '2', '0', '29', '', '/static/upload/images/goods/2019/01/14/1547451909951171.jpg', '0', '1547452007', '1547452007'), ('4', '1', 'Huawei/华为 H60-L01 荣耀6 移动4G版智能手机 安卓', '', '', '0', '537', '步', '/static/upload/images/goods/2019/01/14/1547452474332334.jpg', '2300.00', '2300.00', '2300.00', '1999.00', '1999.00', '1999.00', '19', '1', '0', '1', '1', '1', '


    ', '2', '0', '62', '', '/static/upload/images/goods/2019/01/14/1547452474332334.jpg', '0', '1547452553', '1547452553'), ('5', '2', 'Meizu/魅族 MX4 Pro移动版 八核大屏智能手机 黑色 16G', '', '', '0', '435', '步', '/static/upload/images/goods/2019/01/14/1547452714324599.jpg', '3200.00', '3200.00', '3200.00', '2499.00', '2499.00', '2499.00', '56', '1', '0', '1', '1', '1', '


    ', '2', '1', '217', '', '/static/upload/images/goods/2019/01/14/1547452714324599.jpg', '0', '1547452798', '1547452798'), ('6', '1', 'vivo X5MAX L 移动4G 八核超薄大屏5.5吋双卡手机vivoX5max', '', '', '0', '319', '步', '/static/upload/images/goods/2019/01/14/1547453000703308.jpg', '3200.00', '3200.00', '3200.00', '2998.90', '2998.90', '2998.90', '65', '1', '0', '1', '1', '1', '

     X5L/SL/V/M (5.0寸)  X5max钢化膜(5.5寸)  X5pro钢化膜(5.2寸) 



    ', '2', '0', '72', '', '/static/upload/images/goods/2019/01/14/1547453000703308.jpg', '0', '1547453135', '1547453157'), ('7', '1', '纽芝兰包包女士2018新款潮百搭韩版时尚单肩斜挎包少女小挎包链条', '', '', '0', '320', '件', '/static/upload/images/goods/2019/01/14/1547453895416529.jpg', '760.00', '760.00', '760.00', '168.00', '168.00', '168.00', '11', '1', '0', '1', '1', '1', '


    ', '2', '0', '9', '', '/static/upload/images/goods/2019/01/15/1547540603500383.jpg', '0', '1547453967', '1554485498'), ('8', '1', 'MARNI Trunk 女士 中号拼色十字纹小牛皮 斜挎风琴包', '', '', '0', '35', '件', '/static/upload/images/goods/2019/01/14/1547454145355962.jpg', '672.00', '672.00', '672.00', '356.00', '356.00', '356.00', '8', '1', '0', '1', '1', '1', '


    ', '2', '0', '17', '', '/static/upload/images/goods/2019/01/14/1547454145355962.jpg', '0', '1547454269', '1554485486'), ('9', '2', '睡衣女长袖春秋季纯棉韩版女士大码薄款春夏季全棉家居服两件套装', '', '', '0', '596', '件', '/static/upload/images/goods/2019/01/14/1547454702543219.jpg', '160.00-216.00', '160.00', '216.00', '120.00-158.00', '120.00', '158.00', '2', '1', '0', '1', '1', '1', '


    ', '3', '0', '106', '', '/static/upload/images/goods/2019/01/14/1547454567172116.jpg', '0', '1547454786', '1554555420'), ('10', '0', '夏装女装古力娜扎明星同款一字领露肩蓝色蕾丝修身显瘦连衣裙礼服', '', '', '0', '36', '件', '/static/upload/images/goods/2019/01/14/1547455240794230.jpg', '568.00', '568.00', '568.00', '228.00', '228.00', '228.00', '28', '1', '0', '1', '1', '1', '

    【品牌】欧单 学媛风 猫咪良品

    【吊牌】xueyuanfeng 猫咪良品

    【面料质地】涤棉拼接蕾丝  后中拉链 有内衬(非专业机构鉴定,介意请慎拍)

    好的衣服需要好好呵护,务必请冷水手洗(切记别浸泡)拧干就晾晒或则干洗哦~

    【商品颜色】实物拍摄 蓝色 颜色很难拍有小色差属正常现象哦

    【商品尺寸】XS/S/M/L 小高腰设计 胸口纽扣是装饰的哦


    XS码尺寸: 悬挂衣长81CM.胸围80内合适.腰围63CM.臀围86CM


    S码尺寸: 悬挂衣长82CM.胸围84内合适.腰围67CM.臀围90CM

    M码尺寸: 悬挂衣长83CM.胸围88内合适.腰围71CM.臀围94CM

    L码尺寸: 悬挂衣长84CM.胸围92内合适.腰围75CM.臀围98CM


    (测量单位是CM,每个人的测量方式不一样,测量的尺寸数据可能会有1~3厘米的差异,请MM们谅解哦)

    PS:常规码数,可按平时号选择哦。修身版型~如果上身偏大可以适当考虑大1号~下摆蕾丝拼接不会很平整的哦~

    蕾丝花是手工修剪出来的,每件都有不同和不规则的哦,有小线头和节点是正常现象哦~请亲们谅解哦~


    ', '2', '0', '136', '', '/static/upload/images/goods/2019/01/14/1547455222990904.jpg', '0', '1547455375', '1554555406'), ('11', '0', '夏季复古ins风格网红SP同款 短袖大圆领香槟色蕾丝绣花钉珠连衣裙', '', '', '0', '36665655', '件', '/static/upload/images/goods/2019/01/14/1547455601314107.jpg', '268.00', '268.00', '268.00', '258.00', '258.00', '258.00', '1', '1', '0', '1', '1', '1', '

    【品牌】欧单 学媛风 猫咪良品

    【吊牌】xueyuanfeng 猫咪良品

    【面料质地】网纱绣花钉珠拼接蕾丝 拉链有内衬(非专业机构鉴定,介意请慎拍)

    好的衣服需要好好呵护,务必请冷水手洗(切记别浸泡)拧干就晾晒或则干洗哦~

    【商品颜色】实物拍摄 香槟色 颜色很难拍有小色差属正常现象哦

    【商品尺寸】XS/S/M/L 小高腰设计 胸那考虑撑开因素哦 微弹的哦


    XS码尺寸: 衣长82CM.胸围80内合适.腰围63CM.臀围86CM


    S码尺寸: 衣长83CM.胸围84内合适.腰围67CM.臀围90CM

    M码尺寸: 衣长84CM.胸围88内合适.腰围71CM.臀围94CM

    L码尺寸: 衣长85CM.胸围92内合适.腰围75CM.臀围98CM


    (测量单位是CM,每个人的测量方式不一样,测量的尺寸数据可能会有1~3厘米的差异,请MM们谅解哦)

    PS:常规码数,可按平时号选择哦。修身版型,如果腰粗可以适当考虑大1号哦~

    大圆领,每个人的身材曲线不同,领口不会很平的哦,请谅解~

    肩膀那有暗扣哦,可以很好的隐藏了内衣的肩带哦~袖子那略硬哦~



    ', '4', '1', '66', '', '/static/upload/images/goods/2019/01/14/1547455566118614.jpg', '0', '1547455700', '1554555398'), ('12', '2', 'ZK星星绣花雪纺连衣裙中长款sukol裙少女心温柔超仙女chic裙子夏', '', 'xxxxhhhhhh商品型号', '0', '244', '件', '/static/upload/images/goods/2019/01/14/1547455890402147.jpg', '150.00-188.00', '150.00', '188.00', '0.01-128.00', '0.01', '128.00', '3', '1', '0', '1', '1', '1', '

    \"d-1.jpg\"/

    \"d-2.jpg\"/

    ', '3', '0', '280', '', '/static/upload/images/goods/2019/01/14/1547455890402147.jpg', '0', '1547456230', '1554992248'); COMMIT; -- ---------------------------- @@ -377,13 +379,13 @@ CREATE TABLE `s_goods_browse` ( `add_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '添加时间', `upd_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间', PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='用户商品浏览'; +) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='用户商品浏览'; -- ---------------------------- -- Records of `s_goods_browse` -- ---------------------------- BEGIN; -INSERT INTO `s_goods_browse` VALUES ('1', '7', '91', '1554803230', '1554805470'), ('2', '11', '90', '1554966398', '1554967727'); +INSERT INTO `s_goods_browse` VALUES ('1', '7', '91', '1554803230', '1554805470'), ('2', '11', '90', '1554966398', '1554967727'), ('3', '10', '90', '1555048568', '1555048841'), ('4', '9', '90', '1555058265', '1555058265'); COMMIT; -- ---------------------------- @@ -951,6 +953,8 @@ DROP TABLE IF EXISTS `s_plugins_petscms_pets`; CREATE TABLE `s_plugins_petscms_pets` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id', `user_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用户id', + `pest_no` char(60) NOT NULL DEFAULT '' COMMENT '宠物编号', + `status` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '状态(0正常, 1丢失, 2去世, 3关闭)', `title` char(60) NOT NULL DEFAULT '' COMMENT '标题', `name` char(30) NOT NULL DEFAULT '' COMMENT '名字', `birthday` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '出生日期', @@ -964,9 +968,19 @@ CREATE TABLE `s_plugins_petscms_pets` ( `person_name` char(30) NOT NULL DEFAULT '' COMMENT '主人姓名', `person_tel` char(30) NOT NULL DEFAULT '' COMMENT '主人电话', `person_weixin` char(30) NOT NULL DEFAULT '' COMMENT '主人微信', + `lose_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '丢失-丢失时间', + `lose_reward_amount` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '丢失-悬赏金额', + `lose_features` char(255) NOT NULL DEFAULT '' COMMENT '丢失-宠物特征', + `lose_province` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '丢失-所在省', + `lose_city` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '丢失-所在市', + `lose_county` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '丢失-所在县/区', + `lose_address` char(8) NOT NULL DEFAULT '' COMMENT '丢失-详细地址', + `lose_lng` decimal(13,10) unsigned NOT NULL DEFAULT '0.0000000000' COMMENT '丢失-经度', + `lose_lat` decimal(13,10) unsigned NOT NULL DEFAULT '0.0000000000' COMMENT '丢失-纬度', `add_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '添加时间', `upd_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间', PRIMARY KEY (`id`), + UNIQUE KEY `pest_no` (`pest_no`), KEY `type` (`type`), KEY `gender` (`gender`), KEY `user_id` (`user_id`) @@ -976,7 +990,7 @@ CREATE TABLE `s_plugins_petscms_pets` ( -- Records of `s_plugins_petscms_pets` -- ---------------------------- BEGIN; -INSERT INTO `s_plugins_petscms_pets` VALUES ('1', '90', '我最爱的宠物哦', '大王', '0', 'cat', '金猫', '0', '0', '1', '[\"\\/static\\/upload\\/images\\/plugins_petscms\\/2019\\/04\\/09\\/1554814711403578.jpg\",\"\\/static\\/upload\\/images\\/plugins_petscms\\/2019\\/04\\/09\\/1554814711403578.jpg\"]', '

    hello world

    ', 'Devil', '17600222222', 'weixin-888', '1554993544', '0'), ('2', '90', '我最爱的宠物哦2222', '大王', '1460131200', 'cat', '金猫', '0', '0', '1', '[\"\\/static\\/upload\\/images\\/plugins_petscms\\/2019\\/04\\/09\\/1554814711403578.jpg\",\"\\/static\\/upload\\/images\\/plugins_petscms\\/2019\\/04\\/09\\/1554814711403578.jpg\"]', '

    hello world

    ', 'Devil', '17600222222', 'weixin-888', '1554993595', '0'), ('3', '90', '我最爱的宠物哦2222', '大王', '1460131200', 'cat', '金猫', '0', '0', '1', '[\"\\/static\\/upload\\/images\\/plugins_petscms\\/2019\\/04\\/09\\/1554814711403578.jpg\",\"\\/static\\/upload\\/images\\/plugins_petscms\\/2019\\/04\\/09\\/1554814711403578.jpg\"]', '

    hello world

    ', 'Devil', '17600222222', 'weixin-888', '1554993754', '0'); +INSERT INTO `s_plugins_petscms_pets` VALUES ('1', '90', '20180411876652', '0', '标题测试', '绿色校园', '1549123200', 'other', '123', '1', '0', '1', '[\"\\/static\\/upload\\/images\\/plugins_petscms\\/2019\\/04\\/09\\/1554814711403578.jpg\"]', '', '222', '15666666666', 'yyyy', '0', '0.00', '', '0', '0', '0', '', '0.0000000000', '0.0000000000', '1554993544', '1555061126'), ('2', '90', '20180412345561', '0', '我最爱的宠物哦2222', '大王', '1460131200', 'cat', '金猫', '0', '0', '1', '[\"\\/static\\/upload\\/images\\/plugins_petscms\\/2019\\/04\\/09\\/1554814711403578.jpg\",\"\\/static\\/upload\\/images\\/plugins_petscms\\/2019\\/04\\/09\\/1554814711403578.jpg\"]', '

    hello world

    ', 'Devil', '17600222222', 'weixin-888', '0', '0.00', '', '0', '0', '0', '', '0.0000000000', '0.0000000000', '1554993595', '0'), ('3', '90', '20180412984620', '0', '我最爱的宠物哦2222', '大王', '1460131200', 'cat', '金猫', '0', '0', '1', '[\"\\/static\\/upload\\/images\\/plugins_petscms\\/2019\\/04\\/09\\/1554814711403578.jpg\",\"\\/static\\/upload\\/images\\/plugins_petscms\\/2019\\/04\\/09\\/1554814711403578.jpg\"]', '

    hello world333

    ', 'Devil', '17600222222', 'weixin-888', '0', '0.00', '', '0', '0', '0', '', '0.0000000000', '0.0000000000', '1554993754', '1555064019'); COMMIT; -- ---------------------------- @@ -1150,7 +1164,14 @@ CREATE TABLE `s_search_history` ( `ymd` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '日期 ymd', `add_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '添加时间', PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='搜索日志'; +) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='搜索日志'; + +-- ---------------------------- +-- Records of `s_search_history` +-- ---------------------------- +BEGIN; +INSERT INTO `s_search_history` VALUES ('1', '90', '0', '0', '', '0-0', 'default', 'asc', '20190412', '1555048567'), ('2', '90', '0', '0', '', '0-0', 'default', 'asc', '20190412', '1555058264'); +COMMIT; -- ---------------------------- -- Table structure for `s_slide` @@ -1239,7 +1260,7 @@ CREATE TABLE `s_user_address` ( `address` char(80) NOT NULL DEFAULT '' COMMENT '详细地址', `lng` decimal(13,10) unsigned NOT NULL DEFAULT '0.0000000000' COMMENT '经度', `lat` decimal(13,10) unsigned NOT NULL DEFAULT '0.0000000000' COMMENT '纬度', - `is_default` tinyint(1) unsigned DEFAULT '0' COMMENT '是否默认地址(0否, 1是)', + `is_default` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否默认地址(0否, 1是)', `is_delete_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '是否删除(0否,1删除时间戳)', `add_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '添加时间', `upd_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间', diff --git a/public/static/index/default/css/common.css b/public/static/index/default/css/common.css index 21ee54b2732ec26fc2ababbb359cfd71aedbd66f..6d2c25918f8fc630c1f447decd93badf328c9f6a 100755 --- a/public/static/index/default/css/common.css +++ b/public/static/index/default/css/common.css @@ -737,7 +737,7 @@ background:url(../images/ibar_sprites.png) no-repeat;background-position:0px -23 /** - * 用户中心布局样式 + * 用户中心左侧菜单 */ .user-menu {position:fixed;z-index:10;bottom:70px;right:10px;} .user-sidebar {width:145px;min-height:100%;float:left;} @@ -817,4 +817,22 @@ button { outline: none !important; } padding: 5px 8px; border-radius: 3px; border: 1px solid #ffd4d4; +} + +/** + * 公共 + */ +legend { + padding-bottom: 0.2rem; + margin-bottom: 1rem; + border-bottom: 1px solid #e5e5e5; +} +legend .legend-title { + font-size: 14px; +} +legend a { + color: #e7747f; +} +.items-value-empty { + color: #999; } \ No newline at end of file diff --git a/public/static/index/default/css/message.css b/public/static/index/default/css/message.css index a3fc3ca782cbf71d39234c6a222c03c1a0ee42ec..df9904db5a0e92b49b32414caa6bfb7785c7caee 100755 --- a/public/static/index/default/css/message.css +++ b/public/static/index/default/css/message.css @@ -10,7 +10,7 @@ .time i { position:absolute; margin:4px 0px 0px -15px; } .price input { width:101px !important; } .time, .time { width:50%; } -.so-list tr+tr>td:first-child { padding-top:10px; } +.so-list tr+tr>td { padding-top:10px; } .so-list .chosen-container { border-radius:2px; } .text-grey { color: #999; } .chosen-container-single .chosen-single, .so-list select { height: 28px; line-height: 28px; width: 100%; } diff --git a/public/static/index/default/css/personal.css b/public/static/index/default/css/personal.css index ca3d46d02f695efa61737616a75848897a260e2a..47d803d8b6d5b6a37168ecee69bf1ec9468cda66 100755 --- a/public/static/index/default/css/personal.css +++ b/public/static/index/default/css/personal.css @@ -1,17 +1,6 @@ -.user-content-body legend { - padding-bottom: 0.2rem; - margin-bottom: 1rem; - border-bottom: 1px solid #e5e5e5; -} -.user-content-body .legend-title { - font-size: 16px; -} -.user-content-body a { +.user-content-body .dl-content a { color: #e7747f; } -.user-content-body .items-value-empty { - color: #999; -} .user-content-body .span-edit { margin-left: 15px; } \ No newline at end of file diff --git a/public/static/index/default/css/userintegral.css b/public/static/index/default/css/userintegral.css index a3fc3ca782cbf71d39234c6a222c03c1a0ee42ec..df9904db5a0e92b49b32414caa6bfb7785c7caee 100755 --- a/public/static/index/default/css/userintegral.css +++ b/public/static/index/default/css/userintegral.css @@ -10,7 +10,7 @@ .time i { position:absolute; margin:4px 0px 0px -15px; } .price input { width:101px !important; } .time, .time { width:50%; } -.so-list tr+tr>td:first-child { padding-top:10px; } +.so-list tr+tr>td { padding-top:10px; } .so-list .chosen-container { border-radius:2px; } .text-grey { color: #999; } .chosen-container-single .chosen-single, .so-list select { height: 28px; line-height: 28px; width: 100%; } diff --git a/public/static/plugins/css/petscms/pets.css b/public/static/plugins/css/petscms/pets.css index b93268f6e1b29b6e8a290ce54901a20889a2a912..a5a1377d764e4ee459da33219401e11a43fb5fed 100644 --- a/public/static/plugins/css/petscms/pets.css +++ b/public/static/plugins/css/petscms/pets.css @@ -10,13 +10,20 @@ .time i { position:absolute; margin:4px 0px 0px -15px; } .price input { width:101px !important; } .time, .time { width:50%; } -.so-list tr+tr>td:first-child { padding-top:10px; } +.so-list tr+tr>td { padding-top:10px; } .so-list .chosen-container { border-radius:2px; } .text-grey { color: #999; } .chosen-container-single .chosen-single, .so-list select { height: 28px; line-height: 28px; width: 100%; } .reset-submit { margin-left: 20px; } .so-list select { padding: 0 0 0 8px; } -.operation-nav { margin-top: 15px; } +.operation-nav { margin: 15px 0 10px 0; } +.row-qucode img { max-width: 100px; } +.row-qucode p { margin-top: 5px; } +.row-qucode a:hover, .row-qucode a:focus { text-decoration: none; } +.row-first { width: 20%; } +.row-first p { font-weight: 500; max-width: 240px; } +.row-first .am-slider { max-height: 130px; } +.am-slider .am-slides img { width: auto; max-height: 100%; margin: 0 auto; } @media only screen and (min-width: 641px){ .so-list .chosen-container, .so-list select { width:217px !important; display: -webkit-inline-box; } .thin_sub:hover { color:#F60; } @@ -35,4 +42,30 @@ /** * 添加/编辑页面 */ -.person-view .am-form-group:last-child {border-bottom: 0; } \ No newline at end of file +.base-view .am-form-group:last-child, .person-view .am-form-group:last-child, .lose-view .am-form-group:last-child {border-bottom: 0; } +form.form-validation h2 { font-weight: 700; font-size: 14px; } +form.form-validation .am-divider { margin: 10px auto; } +.lose-view { margin-top: 30px; } +form.form-validation .am-alert-secondary { background-color: #f8f8f8; } +form.form-validation .am-alert-warning { background-color: #fffbf7; } + + +/** + * 地图、联动地址 + */ +form.form-validation .map-address { + border-bottom: 0; + padding-bottom: 0; + margin-bottom: 10px; +} +form.form-validation .region-linkage .chosen-select { + display: -webkit-inline-box; + width: calc(33.3% - 3px) !important; +} +form.form-validation .region-linkage .chosen-select .chosen-single { + width: 100%; +} +form.form-validation #map { + width: 100%; + height: 350px; +} \ No newline at end of file
标题姓名类型性别品种是否绝育是否疫苗生日/年龄时间标题/相册宠物信息主人信息二维码状态操作时间 操作
{{$v.title}}{{$v.name}}{{$v.type_name}}{{$v.gender_name}}{{$v.varieties}}{{$v.sterilization_name}}{{$v.vaccine_name}} +

{{$v.title}}

+ {{if !empty($v['photo'])}} +
+
    + {{foreach $v.photo as $photo}} +
  • + +
  • + {{/foreach}} +
+
+ {{/if}} +
+ 编号:{{if empty($v['pest_no'])}}未填写{{else /}}{{$v.pest_no}}{{/if}}
+ + 名字:{{if empty($v['name'])}}未填写{{else /}}{{$v.name}}{{/if}}
+ + 类型:{{if empty($v['type_name'])}}未填写{{else /}}{{$v.type_name}}{{/if}}
+ + 性别:{{if empty($v['gender_name'])}}未填写{{else /}}{{$v.gender_name}}{{/if}}
+ + 生日:{{if empty($v['birthday_name'])}}未填写{{else /}}{{$v.birthday_name}}{{/if}}
+ + 年龄:{{if empty($v['age'])}}未填写{{else /}}{{$v.age}}{{/if}}
+ + 品种:{{if empty($v['varieties'])}}未填写{{else /}}{{$v.varieties}}{{/if}}
+ + 绝育:{{$v.sterilization_name}}
+ 疫苗:{{$v.vaccine_name}}
+
+ 姓名:{{if empty($v['person_name'])}}未填写{{else /}}{{$v.person_name}}{{/if}}
+ + 电话:{{if empty($v['person_tel'])}}未填写{{else /}}{{$v.person_tel}}{{/if}}
+ + 微信:{{if empty($v['person_weixin'])}}未填写{{else /}}{{$v.person_weixin}}{{/if}}
+
+ {{$v.title}} + +

下载二维码

+
+
{{$v.status_name}} - {{if !empty($v['birthday_name'])}} - {{$v.birthday_name}}
+ 添加:{{$v.add_time_time}} + {{if !empty($v['upd_time_time'])}} +
更新:{{$v.upd_time_time}} {{/if}} - {{$v.age}}
{{$v.add_time_time}} - edit + 编辑 + 详情
+
没有相关数据