-
- 详情页衣服id{{ this.$route.query.id }} 详情页衣服title{{
- this.$route.query.title
- }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{title}}
+
销量:{{sales}}件
+
价格:¥{{price}}
+
优惠:{{favour}}
+
促销:{{sell}}详情>>>
+
+
颜色:{{color}}
+
+
+ 黑
+
+
+ 灰
+
+
+ 橙
+
+
+
+
+ {{item.size}}
+
+
+
免费配送与退货服务更多详情
+
+
使用花呗分期,最低每月¥1182.50。详细说明
+
+
+
+
+
+
+
已选
+
+
+
+
{{item.text}}
+
+
+
+
+
+ 商品介绍
+ 加入购物车
+
+
+
+ 商品名称:{{clothDetail.name}} |
+ 商品编号:{{clothDetail.num}} |
+ 风格:{{clothDetail.style}} |
+ 商品毛重:{{clothDetail.weight}} |
+
+
+ 货号:{{clothDetail.itemNo}} |
+ 领型:{{clothDetail.collar}} |
+ 材质:{{clothDetail.material}} |
+ 适用场景:{{clothDetail.scene}} |
+
+
+ 版型:{{clothDetail.type}} |
+ 衣门襟:{{clothDetail.placket}} |
+ 开衩设计:{{clothDetail.slit}} |
+ 适用人群:{{clothDetail.people}} |
+
+
+
+
@@ -24,9 +207,224 @@
}
+
diff --git a/ant-design-vue-jeecg/src/views/shopping/pages/gerenzhongxin.vue b/ant-design-vue-jeecg/src/views/shopping/pages/gerenzhongxin.vue
new file mode 100644
index 00000000..824682e7
--- /dev/null
+++ b/ant-design-vue-jeecg/src/views/shopping/pages/gerenzhongxin.vue
@@ -0,0 +1,93 @@
+
+
+
+
+
+
+
welcome, 用户名
+
量体数据
+
+
+
+
+ 我的账户
+
+
+ 我的收藏
+
+
+ 地址管理
+
+
+ 发票管理
+
+
+
+ 全部订单
+
+
+ 全部订单
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerpayment/controller/CustomerPaymentController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerpayment/controller/CustomerPaymentController.java
index a8362916..ce6f561a 100644
--- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerpayment/controller/CustomerPaymentController.java
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerpayment/controller/CustomerPaymentController.java
@@ -12,6 +12,7 @@ import javax.servlet.http.HttpServletResponse;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.common.util.oConvertUtils;
+import org.jeecg.modules.demo.customermeasure.entity.CustomerMeasure;
import org.jeecg.modules.demo.customerpayment.entity.CustomerPayment;
import org.jeecg.modules.demo.customerpayment.service.ICustomerPaymentService;
@@ -73,6 +74,23 @@ public class CustomerPaymentController extends JeecgController
queryPageList1(CustomerPayment customerPayment,
+ @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+ @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+ HttpServletRequest req) {
+ QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(customerPayment, req.getParameterMap());
+ queryWrapper.eq("user_id",customerPayment.getUserId());
+ Page page = new Page(pageNo, pageSize);
+ IPage pageList = customerPaymentService.page(page, queryWrapper);
+ return Result.OK(pageList);
+ }
+
/**
* 添加
*
@@ -192,4 +210,26 @@ public class CustomerPaymentController extends JeecgController shang(@RequestParam(name="id",required=true) String id) {
+ customerPaymentService.up(id);
+ return Result.ok("升序成功");
+ }
+
+
+ @AutoLog(value = "排序")
+ @ApiOperation(value="排序", notes="排序")
+ @GetMapping(value = "/down")
+ public Result> xia(@RequestParam(name="id",required=true) String id) {
+ int a=customerPaymentService.findSort(id);
+ if(a==0){
+ return Result.error("当前已经是最低级别!!!");}else {
+ customerPaymentService.down(id);
+ return Result.ok("降序成功");
+ }
+ }
+
}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerpayment/entity/CustomerPayment.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerpayment/entity/CustomerPayment.java
index 3f337bdf..369f1084 100644
--- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerpayment/entity/CustomerPayment.java
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerpayment/entity/CustomerPayment.java
@@ -86,4 +86,8 @@ public class CustomerPayment implements Serializable {
@Excel(name = "开户支行", width = 15)
@ApiModelProperty(value = "开户支行")
private java.lang.String bankzh;
+ /**排序*/
+ @Excel(name = "排序", width = 15)
+ @ApiModelProperty(value = "排序")
+ private java.lang.Integer sort;
}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerpayment/mapper/CustomerPaymentMapper.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerpayment/mapper/CustomerPaymentMapper.java
index 18baa625..13a07c5a 100644
--- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerpayment/mapper/CustomerPaymentMapper.java
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerpayment/mapper/CustomerPaymentMapper.java
@@ -5,6 +5,8 @@ import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Select;
+import org.apache.ibatis.annotations.Update;
import org.jeecg.modules.demo.customerpayment.entity.CustomerPayment;
/**
@@ -15,4 +17,18 @@ import org.jeecg.modules.demo.customerpayment.entity.CustomerPayment;
*/
public interface CustomerPaymentMapper extends BaseMapper {
+ @Select("select sort from customer_payment where id=#{id} ")
+ Integer upfindsort(String id);
+
+ @Select("select id from customer_payment where sort=#{i} ")
+ String findproid(int i);
+
+ @Update("update customer_payment set sort =#{i} where id = #{id} ")
+ void innew(String id, int i);
+
+ @Update("update customer_payment set sort =#{sort} where id = #{proid} ")
+ void innewpro(String proid, Integer sort);
+
+ @Select("select sort from customer_payment where id=#{id} ")
+ int findSort(String id);
}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerpayment/service/ICustomerPaymentService.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerpayment/service/ICustomerPaymentService.java
index a01a559e..a549c4e2 100644
--- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerpayment/service/ICustomerPaymentService.java
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerpayment/service/ICustomerPaymentService.java
@@ -11,4 +11,9 @@ import com.baomidou.mybatisplus.extension.service.IService;
*/
public interface ICustomerPaymentService extends IService {
+ void up(String id);
+
+ int findSort(String id);
+
+ void down(String id);
}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerpayment/service/impl/CustomerPaymentServiceImpl.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerpayment/service/impl/CustomerPaymentServiceImpl.java
index 7ec889c6..58d88097 100644
--- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerpayment/service/impl/CustomerPaymentServiceImpl.java
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerpayment/service/impl/CustomerPaymentServiceImpl.java
@@ -3,6 +3,7 @@ package org.jeecg.modules.demo.customerpayment.service.impl;
import org.jeecg.modules.demo.customerpayment.entity.CustomerPayment;
import org.jeecg.modules.demo.customerpayment.mapper.CustomerPaymentMapper;
import org.jeecg.modules.demo.customerpayment.service.ICustomerPaymentService;
+import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
@@ -16,4 +17,38 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
@Service
public class CustomerPaymentServiceImpl extends ServiceImpl implements ICustomerPaymentService {
+ @Autowired
+ CustomerPaymentMapper customerPaymentMapper;
+
+
+ @Override
+ public void up(String id) {
+ Integer sort = customerPaymentMapper.upfindsort(id);
+ if (sort>0) {
+ //升序前找到后一个排序
+ String proid = customerPaymentMapper.findproid(sort + 1);
+ if (proid!="") {
+ //调换排序
+ customerPaymentMapper.innew(id,sort+1);
+ customerPaymentMapper.innewpro(proid,sort);
+ }
+ }
+ }
+
+ @Override
+ public int findSort(String id) {
+ return customerPaymentMapper.findSort(id);
+ }
+
+ @Override
+ public void down(String id) {
+ Integer sort = customerPaymentMapper.upfindsort(id);
+ if (sort>0) {
+ String proid = customerPaymentMapper.findproid(sort - 1);
+ if (proid!="") {
+ customerPaymentMapper.innew(id,sort-1);
+ customerPaymentMapper.innewpro(proid,sort);
+ }
+ }
+ }
}