Merge remote-tracking branch 'origin/master'
| | |
| | | @ExcelColumn(name="åºå") |
| | | private String areaName; |
| | | |
| | | @ApiModelProperty(value = "åºåç¼ç ") |
| | | @ExcelColumn(name="åºåç¼ç ") |
| | | private String areaCode; |
| | | @ApiModelProperty(value = "ç³»ç»çæ¬") |
| | | @ExcelColumn(name="ç³»ç»çæ¬") |
| | | private String sysVersion; |
| | |
| | | @ExcelColumn(name="ç份ç¼ç ") |
| | | private String provinceCode; |
| | | |
| | | @ApiModelProperty(value = "åºåç¼ç ") |
| | | @ExcelColumn(name="åºåç¼ç ") |
| | | private String areaCode; |
| | | |
| | | } |
| | |
| | | @ExcelColumn(name="crmæäº¤å¤æ³¨") |
| | | private String crmInfo; |
| | | |
| | | @ApiModelProperty(value = "åºå") |
| | | @ExcelColumn(name="åºå") |
| | | private String areaName; |
| | | |
| | | @ApiModelProperty(value = "åºåç¼ç ") |
| | | @ExcelColumn(name="åºåç¼ç ") |
| | | private String areaCode; |
| | | |
| | | @ApiModelProperty(value = "å§å") |
| | | @ExcelColumn(name="å§å") |
| | | private String name; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.web.reqeust; |
| | | |
| | | import com.doumee.core.annotation.excel.ExcelColumn; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * Created by IntelliJ IDEA. |
| | | * |
| | | * @Author : Rk |
| | | * @create 2024/7/11 17:19 |
| | | */ |
| | | @Data |
| | | @ApiModel("0å
å®å¶æ¥å请æ±ç±»") |
| | | public class FreeCustomizationDTO { |
| | | |
| | | @ApiModelProperty(value = "ç¨æ·ä¸»é®", hidden = true) |
| | | private long memberId; |
| | | |
| | | @ApiModelProperty(value = "ç¨æ·å§å") |
| | | private String name; |
| | | |
| | | @ApiModelProperty(value = "ææºå·") |
| | | private String phone; |
| | | |
| | | |
| | | @ApiModelProperty(value = "ç份") |
| | | private String provinceName; |
| | | |
| | | @ApiModelProperty(value = "åå¸") |
| | | private String cityName; |
| | | |
| | | @ApiModelProperty(value = "åºå") |
| | | private String areaName; |
| | | |
| | | @ApiModelProperty(value = "åå¸ç¼ç ") |
| | | private String cityCode; |
| | | |
| | | @ApiModelProperty(value = "ç份ç¼ç ") |
| | | private String provinceCode; |
| | | |
| | | @ApiModelProperty(value = "åºåç¼ç ") |
| | | private String areaCode; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.web.reqeust; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * Created by IntelliJ IDEA. |
| | | * |
| | | * @Author : Rk |
| | | * @create 2024/7/11 17:19 |
| | | */ |
| | | @Data |
| | | @ApiModel("è£
修计ç®è¯·æ±ç±»") |
| | | public class RenovationCalculatorDTO { |
| | | |
| | | @ApiModelProperty(value = "ç¨æ·ä¸»é®", hidden = true) |
| | | private long memberId; |
| | | |
| | | @ApiModelProperty(value = "æ¿å±ç±»åï¼0ç²¾è£
1æ¯å¯") |
| | | private String houseStatus; |
| | | |
| | | @ApiModelProperty(value = "æ·åä¿¡æ¯ï¼0ä¸å®¤ä¸å
1两室ä¸å
2两室两å
3ä¸å®¤ä¸¤å
4å室两å
5äºå®¤ä¸¤å
å以ä¸") |
| | | private String houseType; |
| | | |
| | | @ApiModelProperty(value = "æ¿å±é¢ç§¯") |
| | | private String area; |
| | | |
| | | @ApiModelProperty(value = "è£
ä¿®é¢ç®ï¼ä¸å
ï¼") |
| | | private BigDecimal budget; |
| | | |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.web.reqeust; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * Created by IntelliJ IDEA. |
| | | * |
| | | * @Author : Rk |
| | | * @create 2024/7/11 17:19 |
| | | */ |
| | | @Data |
| | | @ApiModel("æµè¯è£
ä¿®é£æ ¼è¯·æ±ç±»") |
| | | public class TestTrimStyleDTO { |
| | | |
| | | @ApiModelProperty(value = "ç¨æ·ä¸»é®", hidden = true) |
| | | private long memberId; |
| | | |
| | | @ApiModelProperty(value = "æ¿åæ·åï¼0ä¸å±
1两å±
2ä¸å±
3åå±
å以ä¸") |
| | | private String houseType; |
| | | |
| | | @ApiModelProperty(value = "ææºå·") |
| | | private String phone; |
| | | |
| | | @ApiModelProperty(value = "æ§å« 0ç· 1女") |
| | | private Integer sex; |
| | | |
| | | @ApiModelProperty(value = "年龿®µ 0-70å 1-80å 2-90å 3-00å") |
| | | private String ageInfo; |
| | | |
| | | @ApiModelProperty(value = "飿 ¼ï¼é£æ ¼æµè¯ç¨ï¼ 0-5") |
| | | private String styleInfo; |
| | | |
| | | @ApiModelProperty(value = "ç份") |
| | | private String provinceName; |
| | | |
| | | @ApiModelProperty(value = "åå¸") |
| | | private String cityName; |
| | | |
| | | @ApiModelProperty(value = "åå¸ç¼ç ") |
| | | private String cityCode; |
| | | |
| | | @ApiModelProperty(value = "ç份ç¼ç ") |
| | | private String provinceCode; |
| | | |
| | | |
| | | } |
| | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.dao.business.model.Customer; |
| | | import com.doumee.dao.web.reqeust.FreeCustomizationDTO; |
| | | import com.doumee.dao.web.reqeust.RenovationCalculatorDTO; |
| | | import com.doumee.dao.web.reqeust.TestTrimStyleDTO; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | * @return long |
| | | */ |
| | | long count(Customer customer); |
| | | |
| | | /** |
| | | * æ¿å±è£
修计ç®å¨ä¿¡æ¯åå¨ |
| | | * @param renovationCalculatorDTO |
| | | */ |
| | | void saveRenovationCalculator(RenovationCalculatorDTO renovationCalculatorDTO); |
| | | |
| | | /** |
| | | * 0å
å®å¶ä¿¡æ¯ |
| | | * @param freeCustomizationDTO |
| | | */ |
| | | void saveFreeCustomizationApply(FreeCustomizationDTO freeCustomizationDTO); |
| | | |
| | | /** |
| | | * æµè¯è£
ä¿®é£æ ¼ |
| | | * @param testTrimStyleDTO |
| | | */ |
| | | void saveTestTrimStyle(TestTrimStyleDTO testTrimStyleDTO); |
| | | } |
| | |
| | | package com.doumee.service.business.impl; |
| | | |
| | | import com.alibaba.druid.sql.visitor.functions.Concat; |
| | | import com.doumee.core.constants.ResponseStatus; |
| | | import com.doumee.core.exception.BusinessException; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.dao.business.CustomerLogMapper; |
| | | import com.doumee.dao.business.CustomerMapper; |
| | | import com.doumee.dao.business.MemberMapper; |
| | | import com.doumee.dao.business.model.Customer; |
| | | import com.doumee.dao.business.model.CustomerLog; |
| | | import com.doumee.dao.business.model.Member; |
| | | import com.doumee.dao.web.reqeust.FreeCustomizationDTO; |
| | | import com.doumee.dao.web.reqeust.RenovationCalculatorDTO; |
| | | import com.doumee.dao.web.reqeust.TestTrimStyleDTO; |
| | | import com.doumee.service.business.CustomerLogService; |
| | | import com.doumee.service.business.CustomerService; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import org.checkerframework.checker.units.qual.A; |
| | | import org.checkerframework.checker.units.qual.C; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.util.StringUtils; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * 客æ·ä¿¡æ¯è¡¨Serviceå®ç° |
| | |
| | | |
| | | @Autowired |
| | | private CustomerMapper customerMapper; |
| | | |
| | | @Autowired |
| | | private CustomerLogMapper customerLogMapper; |
| | | |
| | | @Autowired |
| | | private MemberMapper memberMapper; |
| | | |
| | | |
| | | @Override |
| | | public Long create(Customer customer) { |
| | |
| | | |
| | | |
| | | |
| | | public void saveRenovationCalculator(){ |
| | | @Override |
| | | public void saveRenovationCalculator(RenovationCalculatorDTO renovationCalculatorDTO){ |
| | | if(Objects.isNull(renovationCalculatorDTO) |
| | | || Objects.isNull(renovationCalculatorDTO.getMemberId()) |
| | | || Objects.isNull(renovationCalculatorDTO.getHouseStatus()) |
| | | || Objects.isNull(renovationCalculatorDTO.getHouseType()) |
| | | || Objects.isNull(renovationCalculatorDTO.getBudget()) |
| | | || StringUtils.isEmpty(renovationCalculatorDTO.getArea()) |
| | | ){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST); |
| | | } |
| | | Member member = memberMapper.selectById(renovationCalculatorDTO.getMemberId()); |
| | | if(Objects.isNull(member)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"æªæ¥è¯¢å°ç¨æ·ä¿¡æ¯"); |
| | | } |
| | | if(StringUtils.isEmpty(member.getPhone())){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"æªææææºå·"); |
| | | } |
| | | Customer customer = customerMapper.selectOne(new QueryWrapper<Customer>().lambda().eq(Customer::getPhone,member.getPhone()).eq(Customer::getIsdeleted, Constants.ZERO).last("limit 1")); |
| | | if(Objects.isNull(customer)){ |
| | | customer = new Customer(); |
| | | customer.setIsdeleted(Constants.ZERO); |
| | | customer.setPhone(member.getPhone()); |
| | | customer.setCreateDate(new Date()); |
| | | } else{ |
| | | customer.setEditDate(new Date()); |
| | | } |
| | | customer.setOpenid(member.getOpenid()); |
| | | customer.setMemberId(member.getId()); |
| | | |
| | | customerMapper.insertOrUpdate(customer); |
| | | |
| | | |
| | | //åå¨ customerLog æ°æ® |
| | | CustomerLog customerLog = new CustomerLog(); |
| | | customerLog.setCreateDate(new Date()); |
| | | customerLog.setIsdeleted(Constants.ZERO); |
| | | customerLog.setType(Constants.TWO); |
| | | customerLog.setCrmStatus(Constants.ZERO); |
| | | customerLog.setPhone(customer.getPhone()); |
| | | customerLog.setBudget(renovationCalculatorDTO.getBudget().multiply(new BigDecimal(10000)).toString()); |
| | | customerLog.setHouseStatus(renovationCalculatorDTO.getHouseStatus()); |
| | | customerLog.setArea(renovationCalculatorDTO.getArea()); |
| | | customerLog.setHouseType(renovationCalculatorDTO.getHouseType()); |
| | | customerLog.setCostomerId(customer.getId().toString()); |
| | | customerLogMapper.insert(customerLog); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public void saveFreeCustomizationApply(FreeCustomizationDTO freeCustomizationDTO){ |
| | | if(Objects.isNull(freeCustomizationDTO) |
| | | || Objects.isNull(freeCustomizationDTO.getMemberId()) |
| | | || StringUtils.isEmpty(freeCustomizationDTO.getName()) |
| | | || StringUtils.isEmpty(freeCustomizationDTO.getPhone()) |
| | | || StringUtils.isEmpty(freeCustomizationDTO.getCityCode()) |
| | | || StringUtils.isEmpty(freeCustomizationDTO.getCityName()) |
| | | || StringUtils.isEmpty(freeCustomizationDTO.getProvinceName()) |
| | | || StringUtils.isEmpty(freeCustomizationDTO.getProvinceCode()) |
| | | || StringUtils.isEmpty(freeCustomizationDTO.getAreaCode()) |
| | | || StringUtils.isEmpty(freeCustomizationDTO.getAreaName()) |
| | | ){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST); |
| | | } |
| | | Member member = memberMapper.selectById(freeCustomizationDTO.getMemberId()); |
| | | if(Objects.isNull(member)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"æªæ¥è¯¢å°ç¨æ·ä¿¡æ¯"); |
| | | } |
| | | if(StringUtils.isEmpty(member.getPhone())){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"æªææææºå·"); |
| | | } |
| | | Customer customer = customerMapper.selectOne(new QueryWrapper<Customer>().lambda() |
| | | .eq(Customer::getPhone,freeCustomizationDTO.getPhone()).eq(Customer::getIsdeleted, Constants.ZERO).last("limit 1")); |
| | | if(Objects.isNull(customer)){ |
| | | customer = new Customer(); |
| | | customer.setPhone(freeCustomizationDTO.getPhone()); |
| | | customer.setCreateDate(new Date()); |
| | | customer.setIsdeleted(Constants.ZERO); |
| | | } else{ |
| | | customer.setEditDate(new Date()); |
| | | } |
| | | customer.setOpenid(member.getOpenid()); |
| | | customer.setMemberId(member.getId()); |
| | | customer.setName(freeCustomizationDTO.getName()); |
| | | |
| | | customer.setProName(freeCustomizationDTO.getProvinceName()); |
| | | customer.setCityName(freeCustomizationDTO.getCityName()); |
| | | customer.setAreaName(freeCustomizationDTO.getAreaName()); |
| | | customer.setProvinceCode(freeCustomizationDTO.getProvinceCode()); |
| | | customer.setCityCode(freeCustomizationDTO.getCityCode()); |
| | | customer.setAreaCode(freeCustomizationDTO.getAreaCode()); |
| | | customerMapper.insertOrUpdate(customer); |
| | | |
| | | //åå¨ customerLog æ°æ® |
| | | CustomerLog customerLog = new CustomerLog(); |
| | | customerLog.setCreateDate(new Date()); |
| | | customerLog.setIsdeleted(Constants.ZERO); |
| | | customerLog.setType(Constants.ONE); |
| | | customerLog.setCrmStatus(Constants.ZERO); |
| | | customerLog.setPhone(customer.getPhone()); |
| | | customerLog.setCostomerId(customer.getId().toString()); |
| | | |
| | | customerLog.setProvinceName(freeCustomizationDTO.getProvinceName()); |
| | | customerLog.setCityName(freeCustomizationDTO.getCityName()); |
| | | customerLog.setAreaCode(freeCustomizationDTO.getAreaName()); |
| | | customerLog.setProvicneCode(freeCustomizationDTO.getProvinceCode()); |
| | | customerLog.setCityCode(freeCustomizationDTO.getCityCode()); |
| | | customerLog.setAreaCode(freeCustomizationDTO.getAreaCode()); |
| | | customerLog.setName(freeCustomizationDTO.getName()); |
| | | customerLog.setPhone(freeCustomizationDTO.getPhone()); |
| | | customerLogMapper.insert(customerLog); |
| | | } |
| | | |
| | | @Override |
| | | public void saveTestTrimStyle(TestTrimStyleDTO testTrimStyleDTO){ |
| | | if(Objects.isNull(testTrimStyleDTO) |
| | | || Objects.isNull(testTrimStyleDTO.getMemberId()) |
| | | |
| | | || StringUtils.isEmpty(testTrimStyleDTO.getStyleInfo()) |
| | | || StringUtils.isEmpty(testTrimStyleDTO.getAgeInfo()) |
| | | || Objects.isNull(testTrimStyleDTO.getSex()) |
| | | || StringUtils.isEmpty(testTrimStyleDTO.getHouseType()) |
| | | || StringUtils.isEmpty(testTrimStyleDTO.getAgeInfo()) |
| | | || StringUtils.isEmpty(testTrimStyleDTO.getPhone()) |
| | | |
| | | || StringUtils.isEmpty(testTrimStyleDTO.getCityCode()) |
| | | || StringUtils.isEmpty(testTrimStyleDTO.getCityName()) |
| | | || StringUtils.isEmpty(testTrimStyleDTO.getProvinceName()) |
| | | || StringUtils.isEmpty(testTrimStyleDTO.getProvinceCode()) |
| | | ){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST); |
| | | } |
| | | Member member = memberMapper.selectById(testTrimStyleDTO.getMemberId()); |
| | | if(Objects.isNull(member)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"æªæ¥è¯¢å°ç¨æ·ä¿¡æ¯"); |
| | | } |
| | | if(StringUtils.isEmpty(member.getPhone())){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"æªææææºå·"); |
| | | } |
| | | Customer customer = customerMapper.selectOne(new QueryWrapper<Customer>().lambda() |
| | | .eq(Customer::getPhone,testTrimStyleDTO.getPhone()).eq(Customer::getIsdeleted, Constants.ZERO).last("limit 1")); |
| | | if(Objects.isNull(customer)){ |
| | | customer = new Customer(); |
| | | customer.setPhone(testTrimStyleDTO.getPhone()); |
| | | customer.setCreateDate(new Date()); |
| | | customer.setIsdeleted(Constants.ZERO); |
| | | } else{ |
| | | customer.setEditDate(new Date()); |
| | | } |
| | | customer.setOpenid(member.getOpenid()); |
| | | customer.setMemberId(member.getId()); |
| | | |
| | | customer.setProName(testTrimStyleDTO.getProvinceName()); |
| | | customer.setCityName(testTrimStyleDTO.getCityName()); |
| | | customer.setProvinceCode(testTrimStyleDTO.getProvinceCode()); |
| | | customer.setCityCode(testTrimStyleDTO.getCityCode()); |
| | | customerMapper.insertOrUpdate(customer); |
| | | |
| | | //åå¨ customerLog æ°æ® |
| | | CustomerLog customerLog = new CustomerLog(); |
| | | customerLog.setCreateDate(new Date()); |
| | | customerLog.setIsdeleted(Constants.ZERO); |
| | | customerLog.setType(Constants.ZERO); |
| | | customerLog.setCrmStatus(Constants.ZERO); |
| | | customerLog.setPhone(customer.getPhone()); |
| | | customerLog.setCostomerId(customer.getId().toString()); |
| | | |
| | | customerLog.setProvinceName(testTrimStyleDTO.getProvinceName()); |
| | | customerLog.setCityName(testTrimStyleDTO.getCityName()); |
| | | customerLog.setProvicneCode(testTrimStyleDTO.getProvinceCode()); |
| | | customerLog.setCityCode(testTrimStyleDTO.getCityCode()); |
| | | |
| | | customerLog.setAgeInfo(testTrimStyleDTO.getAgeInfo()); |
| | | customerLog.setHouseType(testTrimStyleDTO.getHouseType()); |
| | | customerLog.setStyleInfo(testTrimStyleDTO.getStyleInfo()); |
| | | customerLog.setSex(testTrimStyleDTO.getSex()); |
| | | customerLog.setAgeInfo(testTrimStyleDTO.getAgeInfo()); |
| | | customerLog.setPhone(testTrimStyleDTO.getPhone()); |
| | | customerLogMapper.insert(customerLog); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | |
| | | import com.doumee.core.annotation.trace.Trace; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.dao.business.model.Member; |
| | | import com.doumee.dao.web.reqeust.EditMemberRequest; |
| | | import com.doumee.dao.web.reqeust.WxPhoneRequest; |
| | | import com.doumee.dao.web.reqeust.*; |
| | | import com.doumee.dao.web.response.AccountResponse; |
| | | import com.doumee.dao.web.response.BjParamConfigResponse; |
| | | import com.doumee.service.business.BjParamService; |
| | |
| | | } |
| | | |
| | | |
| | | @LoginRequired |
| | | @ApiOperation(value = "è£
修计ç®å¨ä¿¡æ¯åå¨", notes = "客æ·ç«¯å°ç¨åº") |
| | | @PostMapping("/saveRenovationCalculator") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "ç¨æ·tokenå¼", required = true) |
| | | }) |
| | | public ApiResponse saveRenovationCalculator(@RequestBody RenovationCalculatorDTO renovationCalculatorDTO) { |
| | | renovationCalculatorDTO.setMemberId(getMemberId()); |
| | | customerService.saveRenovationCalculator(renovationCalculatorDTO); |
| | | return ApiResponse.success("æä½æå"); |
| | | } |
| | | |
| | | |
| | | @LoginRequired |
| | | @ApiOperation(value = "0å
å®å¶ä¿¡æ¯", notes = "客æ·ç«¯å°ç¨åº") |
| | | @PostMapping("/saveFreeCustomizationApply") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "ç¨æ·tokenå¼", required = true) |
| | | }) |
| | | public ApiResponse saveFreeCustomizationApply(@RequestBody FreeCustomizationDTO freeCustomizationDTO) { |
| | | freeCustomizationDTO.setMemberId(getMemberId()); |
| | | customerService.saveFreeCustomizationApply(freeCustomizationDTO); |
| | | return ApiResponse.success("æä½æå"); |
| | | } |
| | | |
| | | @LoginRequired |
| | | @ApiOperation(value = "æµè¯è£
ä¿®é£æ ¼", notes = "客æ·ç«¯å°ç¨åº") |
| | | @PostMapping("/saveTestTrimStyle") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "ç¨æ·tokenå¼", required = true) |
| | | }) |
| | | public ApiResponse saveTestTrimStyle(@RequestBody TestTrimStyleDTO testTrimStyleDTO) { |
| | | testTrimStyleDTO.setMemberId(getMemberId()); |
| | | customerService.saveTestTrimStyle(testTrimStyleDTO); |
| | | return ApiResponse.success("æä½æå"); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | "pages/store/staff", |
| | | "pages/store/staffList", |
| | | "pages/calculator/index", |
| | | "pages/webView/index" |
| | | "pages/webView/index", |
| | | "pages/detailDis/product", |
| | | "pages/detailDis/case", |
| | | "pages/detailDis/realpic", |
| | | "pages/userinfo/index", |
| | | "pages/userinfo/mysub", |
| | | "pages/userinfo/collect", |
| | | "pages/userinfo/favorite", |
| | | "pages/sets/index", |
| | | "pages/sets/protocol" |
| | | ], |
| | | "window": { |
| | | "navigationBarTitleText": "å¿é¦å®¶é", |
| | | "navigationBarTextStyle": "black", |
| | | "navigationBarBackgroundColor": "#fff" |
| | | }, |
| | | "renderer": "skyline", |
| | | "rendererOptions": { |
| | | "skyline": { |
| | | "defaultDisplayBlock": true, |
| | | "disableABTest": true, |
| | | "sdkVersionBegin": "3.0.0", |
| | | "sdkVersionEnd": "15.255.255" |
| | | } |
| | | "navigationBarBackgroundColor": "#fff", |
| | | "navigationStyle": "default" |
| | | }, |
| | | "tabBar": { |
| | | "color": "#999", |
| | |
| | | "van-empty": "@vant/weapp/empty/index", |
| | | "navBar": "./components/navBar/navBar" |
| | | }, |
| | | "requiredPrivateInfos": [ |
| | | "getLocation", |
| | | "chooseLocation" |
| | | ], |
| | | "permission": { |
| | | "scope.userLocation": { |
| | | "desc": "ä½ çä½ç½®ä¿¡æ¯å°ç¨äºå°ç¨åºä½ç½®æ¥å£çææå±ç¤º" |
¶Ô±ÈÐÂÎļþ |
| | |
| | | // components/disCase/index.js |
| | | Component({ |
| | | /** |
| | | * ç»ä»¶ç屿§å表 |
| | | */ |
| | | properties: { |
| | | |
| | | }, |
| | | data: { |
| | | showParams: false, |
| | | activeStatus: '0' |
| | | }, |
| | | methods: { |
| | | handleDetail(e) { |
| | | wx.navigateTo({ |
| | | url: '/pages/detailDis/case', |
| | | }) |
| | | }, |
| | | changeShowParams(){ |
| | | const showParams = !this.data.showParams |
| | | this.setData({showParams}) |
| | | // this.setData({showTwo: false}) |
| | | }, |
| | | changeTwo(){ |
| | | const showTwo = !this.data.showTwo |
| | | this.setData({showTwo}) |
| | | this.setData({showOne: false}) |
| | | }, |
| | | statusChange(e) { |
| | | const activeStatus = e.currentTarget.dataset.status |
| | | this.setData({activeStatus}) |
| | | } |
| | | } |
| | | }) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "component": true, |
| | | "usingComponents": {} |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | .search_wrap { |
| | | width: 670rpx; |
| | | height: 72rpx; |
| | | margin: 24rpx auto; |
| | | background: #F7F7F7; |
| | | border-radius: 8rpx; |
| | | padding: 0 40rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | background-color: #F7F7F7; |
| | | |
| | | image { |
| | | width: 28rpx; |
| | | margin-right: 16rpx; |
| | | } |
| | | } |
| | | |
| | | .app { |
| | | height: 100%; |
| | | width: 100%; |
| | | } |
| | | |
| | | .main_content { |
| | | height: calc(100% - 120rpx); |
| | | .query_wrap { |
| | | display: flex; |
| | | padding: 0 16rpx; |
| | | .item { |
| | | height: 88rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | color: #666666; |
| | | flex: 1; |
| | | .name { |
| | | margin-right: 6rpx; |
| | | } |
| | | } |
| | | } |
| | | .query_param { |
| | | position: absolute; |
| | | z-index: 99; |
| | | background-color: #fff; |
| | | width: 100%; |
| | | .list { |
| | | width: 100%; |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | padding: 30rpx 40rpx; |
| | | .item { |
| | | width: 202rpx; |
| | | height: 72rpx; |
| | | text-align: center; |
| | | line-height: 70rpx; |
| | | background: #F7F7F7; |
| | | border-radius: 8rpx; |
| | | font-size: 26rpx; |
| | | color: #333333; |
| | | white-space: nowrap; |
| | | overflow: hidden; //ææ¬è¶
åºéè |
| | | text-overflow: ellipsis; |
| | | margin-right: 24rpx; |
| | | margin-bottom: 24rpx; |
| | | |
| | | &:nth-of-type(3n) { |
| | | margin-right: 0; |
| | | } |
| | | } |
| | | .active { |
| | | color: var(--themeColor); |
| | | background: rgba(176, 135, 113, 0.08); |
| | | } |
| | | } |
| | | .btns { |
| | | display: flex; |
| | | .btn { |
| | | flex: 1; |
| | | height: 88rpx; |
| | | background: #E5E5E5; |
| | | color: #666666; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | } |
| | | |
| | | .sub { |
| | | background: var(--themeColor); |
| | | color: #fff; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .status { |
| | | display: flex; |
| | | padding: 0rpx 40rpx; |
| | | margin: 20rpx 0; |
| | | align-items: center; |
| | | |
| | | .active { |
| | | color: var(--themeColor); |
| | | } |
| | | |
| | | .separate { |
| | | margin: 0 12rpx; |
| | | width: 1rpx; |
| | | height: 28rpx; |
| | | background-color: #333333; |
| | | } |
| | | } |
| | | .goods_list{ |
| | | padding: 12rpx 40rpx; |
| | | .item{ |
| | | width: 100%; |
| | | margin-bottom: 32rpx; |
| | | .img_wrap{ |
| | | width: 100%; |
| | | height: 376rpx; |
| | | border-radius: 8rpx; |
| | | overflow: hidden; |
| | | position: relative; |
| | | .img{ |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | .new{ |
| | | width: 72rpx; |
| | | position: absolute; |
| | | left: 0; |
| | | top: 0; |
| | | z-index: 10; |
| | | } |
| | | } |
| | | .content{ |
| | | display: flex; |
| | | justify-content: space-between; |
| | | padding: 0 10rpx; |
| | | } |
| | | .name{ |
| | | margin: 12rpx 0 8rpx; |
| | | white-space: nowrap; |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | flex: 1; |
| | | } |
| | | .info{ |
| | | display: flex; |
| | | align-items: center; |
| | | color: #666666; |
| | | margin-left: 12rpx; |
| | | .icon{ |
| | | width: 28rpx; |
| | | margin-right: 8rpx; |
| | | } |
| | | .num{ |
| | | margin-right: 28rpx; |
| | | } |
| | | .primary{ |
| | | color: var(--themeColor); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <view class="app"> |
| | | <view class="search_wrap"> |
| | | <image src="../../static/icon/ic_search@2x.png" mode="widthFix"></image> |
| | | <input type="text" placeholder="æç´¢äº§ååç§°" /> |
| | | </view> |
| | | <!-- --> |
| | | <view class="main_content"> |
| | | <view class="query_wrap"> |
| | | <view class="item" bindtap="changeShowParams"> |
| | | <view class="name">飿 ¼</view> |
| | | <van-icon name="{{ showParams ? 'arrow-up' : 'arrow-down' }}" /> |
| | | </view> |
| | | <view class="item" bindtap="changeShowParams"> |
| | | <view class="name">空é´</view> |
| | | <van-icon name="{{ showParams ? 'arrow-up' : 'arrow-down' }}" /> |
| | | </view> |
| | | <view class="item" bindtap="changeShowParams"> |
| | | <view class="name">é´å</view> |
| | | <van-icon name="{{ showParams ? 'arrow-up' : 'arrow-down' }}" /> |
| | | </view> |
| | | <view class="item" bindtap="changeShowParams"> |
| | | <view class="name">é´ç§°</view> |
| | | <van-icon name="{{ showParams ? 'arrow-up' : 'arrow-down' }}" /> |
| | | </view> |
| | | <view class="item" bindtap="changeShowParams"> |
| | | <view class="name">空称</view> |
| | | <van-icon name="{{ showParams ? 'arrow-up' : 'arrow-down' }}" /> |
| | | </view> |
| | | </view> |
| | | <view wx:if="{{ showParams }}" class="query_param"> |
| | | <view class="list"> |
| | | <view class="item active">ä¸èçµè§</view> |
| | | <view class="item">ä¸èåçæ¶æç代çµè§</view> |
| | | <view class="item">ä¸èçµè§</view> |
| | | <view class="item">ä¸èçµè§</view> |
| | | <view class="item">ä¸èçµè§</view> |
| | | </view> |
| | | <view class="btns"> |
| | | <view class="btn" bindtap="changeShowParams">åæ¶</view> |
| | | <view class="btn sub">确认</view> |
| | | </view> |
| | | </view> |
| | | <view class="status"> |
| | | <view class="item {{ activeStatus == '0' ? 'active' : '' }}" data-status="0" bindtap="statusChange">é»è®¤</view> |
| | | <view class="separate"></view> |
| | | <view class="item {{ activeStatus == '1' ? 'active' : '' }}" data-status="1" bindtap="statusChange">æç</view> |
| | | <view class="separate"></view> |
| | | <view class="item {{ activeStatus == '2' ? 'active' : '' }}" data-status="2" bindtap="statusChange">ææ°</view> |
| | | </view> |
| | | <!-- goods_list --> |
| | | <view class="goods_list"> |
| | | <view class="item" bindtap="handleDetail"> |
| | | <view class="img_wrap"> |
| | | <image src="../../static/icon/test.png" class="img"></image> |
| | | <image wx:if="{{ false }}" class="new" src="../../static/icon/chanpin_ic_new@2x.png" mode="widthFix"></image> |
| | | </view> |
| | | <view class="content"> |
| | | <view class="name">é¢ç´æ²é¢ç´æ²é¢ç´æ²é¢ç´æ²é¢ç´æ²é¢ç´æ²é¢ç´æ²é¢ç´æ²</view> |
| | | <view class="info"> |
| | | <image wx:if="{{ false }}" class="icon" src="../../static/icon/detail_nav_collect.png" mode="widthFix"></image> |
| | | <image wx:else="" class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image> |
| | | <text class="num {{true ? 'primary' : ''}}">34</text> |
| | | <image class="icon" src="../../static/icon/zixun_ic_liulan.png" mode="widthFix"></image> |
| | | <text>1000</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="img_wrap"> |
| | | <image src="../../static/icon/test.png" class="img"></image> |
| | | <image wx:if="{{ false }}" class="new" src="../../static/icon/chanpin_ic_new@2x.png" mode="widthFix"></image> |
| | | </view> |
| | | <view class="content"> |
| | | <view class="name">é¢ç´æ²é¢ç´æ²é¢ç´æ²é¢ç´æ²é¢ç´æ²é¢ç´æ²é¢ç´æ²é¢ç´æ²</view> |
| | | <view class="info"> |
| | | <image wx:if="{{ false }}" class="icon" src="../../static/icon/detail_nav_collect.png" mode="widthFix"></image> |
| | | <image wx:else="" class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image> |
| | | <text class="num {{true ? 'primary' : ''}}">34</text> |
| | | <image class="icon" src="../../static/icon/zixun_ic_liulan.png" mode="widthFix"></image> |
| | | <text>1000</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="img_wrap"> |
| | | <image src="../../static/icon/test.png" class="img"></image> |
| | | <image wx:if="{{ false }}" class="new" src="../../static/icon/chanpin_ic_new@2x.png" mode="widthFix"></image> |
| | | </view> |
| | | <view class="content"> |
| | | <view class="name">é¢ç´æ²é¢ç´æ²é¢ç´æ²é¢ç´æ²é¢ç´æ²é¢ç´æ²é¢ç´æ²é¢ç´æ²</view> |
| | | <view class="info"> |
| | | <image wx:if="{{ false }}" class="icon" src="../../static/icon/detail_nav_collect.png" mode="widthFix"></image> |
| | | <image wx:else="" class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image> |
| | | <text class="num {{true ? 'primary' : ''}}">34</text> |
| | | <image class="icon" src="../../static/icon/zixun_ic_liulan.png" mode="widthFix"></image> |
| | | <text>1000</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="img_wrap"> |
| | | <image src="../../static/icon/test.png" class="img"></image> |
| | | <image wx:if="{{ false }}" class="new" src="../../static/icon/chanpin_ic_new@2x.png" mode="widthFix"></image> |
| | | </view> |
| | | <view class="content"> |
| | | <view class="name">é¢ç´æ²é¢ç´æ²é¢ç´æ²é¢ç´æ²é¢ç´æ²é¢ç´æ²é¢ç´æ²é¢ç´æ²</view> |
| | | <view class="info"> |
| | | <image wx:if="{{ false }}" class="icon" src="../../static/icon/detail_nav_collect.png" mode="widthFix"></image> |
| | | <image wx:else="" class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image> |
| | | <text class="num {{true ? 'primary' : ''}}">34</text> |
| | | <image class="icon" src="../../static/icon/zixun_ic_liulan.png" mode="widthFix"></image> |
| | | <text>1000</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | </view> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | .search_wrap { |
| | | width: 670rpx; |
| | | height: 72rpx; |
| | | margin: 24rpx auto; |
| | | background: #F7F7F7; |
| | | border-radius: 8rpx; |
| | | padding: 0 40rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | background-color: #F7F7F7; |
| | | } |
| | | .search_wrap image { |
| | | width: 28rpx; |
| | | margin-right: 16rpx; |
| | | } |
| | | .app { |
| | | height: 100%; |
| | | width: 100%; |
| | | } |
| | | .main_content { |
| | | height: calc(100% - 120rpx); |
| | | } |
| | | .main_content .query_wrap { |
| | | display: flex; |
| | | padding: 0 16rpx; |
| | | } |
| | | .main_content .query_wrap .item { |
| | | height: 88rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | color: #666666; |
| | | flex: 1; |
| | | } |
| | | .main_content .query_wrap .item .name { |
| | | margin-right: 6rpx; |
| | | } |
| | | .main_content .query_param { |
| | | position: absolute; |
| | | z-index: 99; |
| | | background-color: #fff; |
| | | width: 100%; |
| | | } |
| | | .main_content .query_param .list { |
| | | width: 100%; |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | padding: 30rpx 40rpx; |
| | | } |
| | | .main_content .query_param .list .item { |
| | | width: 202rpx; |
| | | height: 72rpx; |
| | | text-align: center; |
| | | line-height: 70rpx; |
| | | background: #F7F7F7; |
| | | border-radius: 8rpx; |
| | | font-size: 26rpx; |
| | | color: #333333; |
| | | white-space: nowrap; |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | margin-right: 24rpx; |
| | | margin-bottom: 24rpx; |
| | | } |
| | | .main_content .query_param .list .item:nth-of-type(3n) { |
| | | margin-right: 0; |
| | | } |
| | | .main_content .query_param .list .active { |
| | | color: var(--themeColor); |
| | | background: rgba(176, 135, 113, 0.08); |
| | | } |
| | | .main_content .query_param .btns { |
| | | display: flex; |
| | | } |
| | | .main_content .query_param .btns .btn { |
| | | flex: 1; |
| | | height: 88rpx; |
| | | background: #E5E5E5; |
| | | color: #666666; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | } |
| | | .main_content .query_param .btns .sub { |
| | | background: var(--themeColor); |
| | | color: #fff; |
| | | } |
| | | .main_content .status { |
| | | display: flex; |
| | | padding: 0rpx 40rpx; |
| | | margin: 20rpx 0; |
| | | align-items: center; |
| | | } |
| | | .main_content .status .active { |
| | | color: var(--themeColor); |
| | | } |
| | | .main_content .status .separate { |
| | | margin: 0 12rpx; |
| | | width: 1rpx; |
| | | height: 28rpx; |
| | | background-color: #333333; |
| | | } |
| | | .main_content .goods_list { |
| | | padding: 12rpx 40rpx; |
| | | } |
| | | .main_content .goods_list .item { |
| | | width: 100%; |
| | | margin-bottom: 32rpx; |
| | | } |
| | | .main_content .goods_list .item .img_wrap { |
| | | width: 100%; |
| | | height: 376rpx; |
| | | border-radius: 8rpx; |
| | | overflow: hidden; |
| | | position: relative; |
| | | } |
| | | .main_content .goods_list .item .img_wrap .img { |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | .main_content .goods_list .item .img_wrap .new { |
| | | width: 72rpx; |
| | | position: absolute; |
| | | left: 0; |
| | | top: 0; |
| | | z-index: 10; |
| | | } |
| | | .main_content .goods_list .item .content { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | padding: 0 10rpx; |
| | | } |
| | | .main_content .goods_list .item .name { |
| | | margin: 12rpx 0 8rpx; |
| | | white-space: nowrap; |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | flex: 1; |
| | | } |
| | | .main_content .goods_list .item .info { |
| | | display: flex; |
| | | align-items: center; |
| | | color: #666666; |
| | | margin-left: 12rpx; |
| | | } |
| | | .main_content .goods_list .item .info .icon { |
| | | width: 28rpx; |
| | | margin-right: 8rpx; |
| | | } |
| | | .main_content .goods_list .item .info .num { |
| | | margin-right: 28rpx; |
| | | } |
| | | .main_content .goods_list .item .info .primary { |
| | | color: var(--themeColor); |
| | | } |
| | |
| | | activeStatus: '0' |
| | | }, |
| | | methods: { |
| | | handleDetail(e) { |
| | | wx.navigateTo({ |
| | | url: '/pages/detailDis/product', |
| | | }) |
| | | }, |
| | | changeOne(){ |
| | | const showOne = !this.data.showOne |
| | | this.setData({showOne}) |
| | |
| | | } |
| | | .query_form{ |
| | | position: absolute; |
| | | z-index: 99; |
| | | background-color: #fff; |
| | | .list{ |
| | | width: 100%; |
| | |
| | | font-size: 26rpx; |
| | | color: #333333; |
| | | white-space: nowrap; |
| | | overflow: hidden;//ææ¬è¶
åºéè |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | margin-right: 24rpx; |
| | | margin-bottom: 24rpx; |
| | |
| | | position: absolute; |
| | | left: 0; |
| | | top: 0; |
| | | z-index: 100; |
| | | z-index: 10; |
| | | } |
| | | } |
| | | .name{ |
| | |
| | | <view class="item {{ activeStatus == '2' ? 'active' : '' }}" data-status="2" bindtap="statusChange">ææ°</view> |
| | | </view> |
| | | <view class="goods_list"> |
| | | <view class="item"> |
| | | <view class="item" bindtap="handleDetail"> |
| | | <view class="img_wrap"> |
| | | <image src="../../static/icon/test.png" class="img"></image> |
| | | <image wx:if="{{ true }}" class="new" src="../../static/icon/chanpin_ic_new@2x.png" mode="widthFix"></image> |
| | |
| | | } |
| | | .main_content .main_right .query_form { |
| | | position: absolute; |
| | | z-index: 99; |
| | | background-color: #fff; |
| | | } |
| | | .main_content .main_right .query_form .list { |
| | |
| | | position: absolute; |
| | | left: 0; |
| | | top: 0; |
| | | z-index: 100; |
| | | z-index: 10; |
| | | } |
| | | .main_content .main_right .goods_list .item .name { |
| | | margin: 12rpx 0 8rpx; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | // components/disCase/index.js |
| | | Component({ |
| | | /** |
| | | * ç»ä»¶ç屿§å表 |
| | | */ |
| | | properties: { |
| | | |
| | | }, |
| | | data: { |
| | | showParams: false, |
| | | activeStatus: '0' |
| | | }, |
| | | methods: { |
| | | handleDetail(e) { |
| | | wx.navigateTo({ |
| | | url: '/pages/detailDis/realpic', |
| | | }) |
| | | }, |
| | | changeShowParams(){ |
| | | const showParams = !this.data.showParams |
| | | this.setData({showParams}) |
| | | // this.setData({showTwo: false}) |
| | | }, |
| | | changeTwo(){ |
| | | const showTwo = !this.data.showTwo |
| | | this.setData({showTwo}) |
| | | this.setData({showOne: false}) |
| | | }, |
| | | statusChange(e) { |
| | | const activeStatus = e.currentTarget.dataset.status |
| | | this.setData({activeStatus}) |
| | | } |
| | | } |
| | | }) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "component": true, |
| | | "usingComponents": {} |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | .search_wrap { |
| | | width: 670rpx; |
| | | height: 72rpx; |
| | | margin: 24rpx auto; |
| | | background: #F7F7F7; |
| | | border-radius: 8rpx; |
| | | padding: 0 40rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | background-color: #F7F7F7; |
| | | |
| | | image { |
| | | width: 28rpx; |
| | | margin-right: 16rpx; |
| | | } |
| | | } |
| | | |
| | | .app { |
| | | height: 100%; |
| | | width: 100%; |
| | | } |
| | | |
| | | .main_content { |
| | | height: calc(100% - 120rpx); |
| | | .query_wrap { |
| | | display: flex; |
| | | padding: 0 16rpx; |
| | | .item { |
| | | height: 88rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | color: #666666; |
| | | flex: 1; |
| | | .name { |
| | | margin-right: 6rpx; |
| | | } |
| | | } |
| | | } |
| | | .query_param { |
| | | position: absolute; |
| | | z-index: 99; |
| | | background-color: #fff; |
| | | width: 100%; |
| | | .list { |
| | | width: 100%; |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | padding: 30rpx 40rpx; |
| | | .item { |
| | | width: 202rpx; |
| | | height: 72rpx; |
| | | text-align: center; |
| | | line-height: 70rpx; |
| | | background: #F7F7F7; |
| | | border-radius: 8rpx; |
| | | font-size: 26rpx; |
| | | color: #333333; |
| | | white-space: nowrap; |
| | | overflow: hidden; //ææ¬è¶
åºéè |
| | | text-overflow: ellipsis; |
| | | margin-right: 24rpx; |
| | | margin-bottom: 24rpx; |
| | | |
| | | &:nth-of-type(3n) { |
| | | margin-right: 0; |
| | | } |
| | | } |
| | | .active { |
| | | color: var(--themeColor); |
| | | background: rgba(176, 135, 113, 0.08); |
| | | } |
| | | } |
| | | .btns { |
| | | display: flex; |
| | | .btn { |
| | | flex: 1; |
| | | height: 88rpx; |
| | | background: #E5E5E5; |
| | | color: #666666; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | } |
| | | |
| | | .sub { |
| | | background: var(--themeColor); |
| | | color: #fff; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .status { |
| | | display: flex; |
| | | padding: 0rpx 40rpx; |
| | | margin: 20rpx 0; |
| | | align-items: center; |
| | | |
| | | .active { |
| | | color: var(--themeColor); |
| | | } |
| | | |
| | | .separate { |
| | | margin: 0 12rpx; |
| | | width: 1rpx; |
| | | height: 28rpx; |
| | | background-color: #333333; |
| | | } |
| | | } |
| | | .goods_list{ |
| | | padding: 12rpx 40rpx; |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | justify-content: space-between; |
| | | .item{ |
| | | width: 324rpx; |
| | | margin-bottom: 60rpx; |
| | | .img_wrap{ |
| | | width: 100%; |
| | | height: 182rpx; |
| | | border-radius: 8rpx; |
| | | overflow: hidden; |
| | | position: relative; |
| | | .img{ |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | .tag{ |
| | | padding: 0 10rpx; |
| | | height: 46rpx; |
| | | line-height: 46rpx; |
| | | text-align: center; |
| | | background: rgba(0,0,0,0.4); |
| | | border-radius: 8rpx; |
| | | position: absolute; |
| | | left: 12rpx; |
| | | top: 16rpx; |
| | | color: #fff; |
| | | font-size: 24rpx; |
| | | z-index: 10; |
| | | } |
| | | } |
| | | .name{ |
| | | margin: 12rpx 0 8rpx; |
| | | white-space: nowrap; |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | flex: 1; |
| | | } |
| | | .info{ |
| | | display: flex; |
| | | align-items: center; |
| | | color: #666666; |
| | | margin-left: 12rpx; |
| | | .icon{ |
| | | width: 28rpx; |
| | | margin-right: 8rpx; |
| | | } |
| | | .num{ |
| | | margin-right: 28rpx; |
| | | } |
| | | .primary{ |
| | | color: var(--themeColor); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <view class="app"> |
| | | <view class="search_wrap"> |
| | | <image src="../../static/icon/ic_search@2x.png" mode="widthFix"></image> |
| | | <input type="text" placeholder="æç´¢äº§ååç§°" /> |
| | | </view> |
| | | <!-- --> |
| | | <view class="main_content"> |
| | | <view class="query_wrap"> |
| | | <view class="item" bindtap="changeShowParams"> |
| | | <view class="name">飿 ¼</view> |
| | | <van-icon name="{{ showParams ? 'arrow-up' : 'arrow-down' }}" /> |
| | | </view> |
| | | <view class="item" bindtap="changeShowParams"> |
| | | <view class="name">空é´</view> |
| | | <van-icon name="{{ showParams ? 'arrow-up' : 'arrow-down' }}" /> |
| | | </view> |
| | | <view class="item" bindtap="changeShowParams"> |
| | | <view class="name">é´å</view> |
| | | <van-icon name="{{ showParams ? 'arrow-up' : 'arrow-down' }}" /> |
| | | </view> |
| | | <view class="item" bindtap="changeShowParams"> |
| | | <view class="name">é´ç§°</view> |
| | | <van-icon name="{{ showParams ? 'arrow-up' : 'arrow-down' }}" /> |
| | | </view> |
| | | <view class="item" bindtap="changeShowParams"> |
| | | <view class="name">空称</view> |
| | | <van-icon name="{{ showParams ? 'arrow-up' : 'arrow-down' }}" /> |
| | | </view> |
| | | </view> |
| | | <view wx:if="{{ showParams }}" class="query_param"> |
| | | <view class="list"> |
| | | <view class="item active">ä¸èçµè§</view> |
| | | <view class="item">ä¸èåçæ¶æç代çµè§</view> |
| | | <view class="item">ä¸èçµè§</view> |
| | | <view class="item">ä¸èçµè§</view> |
| | | <view class="item">ä¸èçµè§</view> |
| | | </view> |
| | | <view class="btns"> |
| | | <view class="btn" bindtap="changeShowParams">åæ¶</view> |
| | | <view class="btn sub">确认</view> |
| | | </view> |
| | | </view> |
| | | <view class="status"> |
| | | <view class="item {{ activeStatus == '0' ? 'active' : '' }}" data-status="0" bindtap="statusChange">é»è®¤</view> |
| | | <view class="separate"></view> |
| | | <view class="item {{ activeStatus == '1' ? 'active' : '' }}" data-status="1" bindtap="statusChange">æç</view> |
| | | <view class="separate"></view> |
| | | <view class="item {{ activeStatus == '2' ? 'active' : '' }}" data-status="2" bindtap="statusChange">ææ°</view> |
| | | </view> |
| | | <!-- goods_list --> |
| | | <view class="goods_list"> |
| | | <view class="item" bindtap="handleDetail"> |
| | | <view class="img_wrap"> |
| | | <image src="../../static/icon/test.png" class="img"></image> |
| | | <view class="tag">宿</view> |
| | | </view> |
| | | <view class="content"> |
| | | <view class="name">é¢ç´æ²é¢ç´æ²é¢ç´æ²é¢ç´æ²é¢ç´æ²é¢ç´æ²é¢ç´æ²é¢ç´æ²</view> |
| | | <view class="info"> |
| | | <image wx:if="{{ false }}" class="icon" src="../../static/icon/detail_nav_collect.png" mode="widthFix"></image> |
| | | <image wx:else="" class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image> |
| | | <text class="num {{true ? 'primary' : ''}}">34</text> |
| | | <image class="icon" src="../../static/icon/zixun_ic_liulan.png" mode="widthFix"></image> |
| | | <text>1000</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="img_wrap"> |
| | | <image src="../../static/icon/test.png" class="img"></image> |
| | | <image wx:if="{{ false }}" class="new" src="../../static/icon/chanpin_ic_new@2x.png" mode="widthFix"></image> |
| | | </view> |
| | | <view class="content"> |
| | | <view class="name">é¢ç´æ²é¢ç´æ²é¢ç´æ²é¢ç´æ²é¢ç´æ²é¢ç´æ²é¢ç´æ²é¢ç´æ²</view> |
| | | <view class="info"> |
| | | <image wx:if="{{ false }}" class="icon" src="../../static/icon/detail_nav_collect.png" mode="widthFix"></image> |
| | | <image wx:else="" class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image> |
| | | <text class="num {{true ? 'primary' : ''}}">34</text> |
| | | <image class="icon" src="../../static/icon/zixun_ic_liulan.png" mode="widthFix"></image> |
| | | <text>1000</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="img_wrap"> |
| | | <image src="../../static/icon/test.png" class="img"></image> |
| | | <image wx:if="{{ false }}" class="new" src="../../static/icon/chanpin_ic_new@2x.png" mode="widthFix"></image> |
| | | </view> |
| | | <view class="content"> |
| | | <view class="name">é¢ç´æ²é¢ç´æ²é¢ç´æ²é¢ç´æ²é¢ç´æ²é¢ç´æ²é¢ç´æ²é¢ç´æ²</view> |
| | | <view class="info"> |
| | | <image wx:if="{{ false }}" class="icon" src="../../static/icon/detail_nav_collect.png" mode="widthFix"></image> |
| | | <image wx:else="" class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image> |
| | | <text class="num {{true ? 'primary' : ''}}">34</text> |
| | | <image class="icon" src="../../static/icon/zixun_ic_liulan.png" mode="widthFix"></image> |
| | | <text>1000</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="img_wrap"> |
| | | <image src="../../static/icon/test.png" class="img"></image> |
| | | <image wx:if="{{ false }}" class="new" src="../../static/icon/chanpin_ic_new@2x.png" mode="widthFix"></image> |
| | | </view> |
| | | <view class="content"> |
| | | <view class="name">é¢ç´æ²é¢ç´æ²é¢ç´æ²é¢ç´æ²é¢ç´æ²é¢ç´æ²é¢ç´æ²é¢ç´æ²</view> |
| | | <view class="info"> |
| | | <image wx:if="{{ false }}" class="icon" src="../../static/icon/detail_nav_collect.png" mode="widthFix"></image> |
| | | <image wx:else="" class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image> |
| | | <text class="num {{true ? 'primary' : ''}}">34</text> |
| | | <image class="icon" src="../../static/icon/zixun_ic_liulan.png" mode="widthFix"></image> |
| | | <text>1000</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | </view> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | .search_wrap { |
| | | width: 670rpx; |
| | | height: 72rpx; |
| | | margin: 24rpx auto; |
| | | background: #F7F7F7; |
| | | border-radius: 8rpx; |
| | | padding: 0 40rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | background-color: #F7F7F7; |
| | | } |
| | | .search_wrap image { |
| | | width: 28rpx; |
| | | margin-right: 16rpx; |
| | | } |
| | | .app { |
| | | height: 100%; |
| | | width: 100%; |
| | | } |
| | | .main_content { |
| | | height: calc(100% - 120rpx); |
| | | } |
| | | .main_content .query_wrap { |
| | | display: flex; |
| | | padding: 0 16rpx; |
| | | } |
| | | .main_content .query_wrap .item { |
| | | height: 88rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | color: #666666; |
| | | flex: 1; |
| | | } |
| | | .main_content .query_wrap .item .name { |
| | | margin-right: 6rpx; |
| | | } |
| | | .main_content .query_param { |
| | | position: absolute; |
| | | z-index: 99; |
| | | background-color: #fff; |
| | | width: 100%; |
| | | } |
| | | .main_content .query_param .list { |
| | | width: 100%; |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | padding: 30rpx 40rpx; |
| | | } |
| | | .main_content .query_param .list .item { |
| | | width: 202rpx; |
| | | height: 72rpx; |
| | | text-align: center; |
| | | line-height: 70rpx; |
| | | background: #F7F7F7; |
| | | border-radius: 8rpx; |
| | | font-size: 26rpx; |
| | | color: #333333; |
| | | white-space: nowrap; |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | margin-right: 24rpx; |
| | | margin-bottom: 24rpx; |
| | | } |
| | | .main_content .query_param .list .item:nth-of-type(3n) { |
| | | margin-right: 0; |
| | | } |
| | | .main_content .query_param .list .active { |
| | | color: var(--themeColor); |
| | | background: rgba(176, 135, 113, 0.08); |
| | | } |
| | | .main_content .query_param .btns { |
| | | display: flex; |
| | | } |
| | | .main_content .query_param .btns .btn { |
| | | flex: 1; |
| | | height: 88rpx; |
| | | background: #E5E5E5; |
| | | color: #666666; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | } |
| | | .main_content .query_param .btns .sub { |
| | | background: var(--themeColor); |
| | | color: #fff; |
| | | } |
| | | .main_content .status { |
| | | display: flex; |
| | | padding: 0rpx 40rpx; |
| | | margin: 20rpx 0; |
| | | align-items: center; |
| | | } |
| | | .main_content .status .active { |
| | | color: var(--themeColor); |
| | | } |
| | | .main_content .status .separate { |
| | | margin: 0 12rpx; |
| | | width: 1rpx; |
| | | height: 28rpx; |
| | | background-color: #333333; |
| | | } |
| | | .main_content .goods_list { |
| | | padding: 12rpx 40rpx; |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | justify-content: space-between; |
| | | } |
| | | .main_content .goods_list .item { |
| | | width: 324rpx; |
| | | margin-bottom: 60rpx; |
| | | } |
| | | .main_content .goods_list .item .img_wrap { |
| | | width: 100%; |
| | | height: 182rpx; |
| | | border-radius: 8rpx; |
| | | overflow: hidden; |
| | | position: relative; |
| | | } |
| | | .main_content .goods_list .item .img_wrap .img { |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | .main_content .goods_list .item .img_wrap .tag { |
| | | padding: 0 10rpx; |
| | | height: 46rpx; |
| | | line-height: 46rpx; |
| | | text-align: center; |
| | | background: rgba(0, 0, 0, 0.4); |
| | | border-radius: 8rpx; |
| | | position: absolute; |
| | | left: 12rpx; |
| | | top: 16rpx; |
| | | color: #fff; |
| | | font-size: 24rpx; |
| | | z-index: 10; |
| | | } |
| | | .main_content .goods_list .item .name { |
| | | margin: 12rpx 0 8rpx; |
| | | white-space: nowrap; |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | flex: 1; |
| | | } |
| | | .main_content .goods_list .item .info { |
| | | display: flex; |
| | | align-items: center; |
| | | color: #666666; |
| | | margin-left: 12rpx; |
| | | } |
| | | .main_content .goods_list .item .info .icon { |
| | | width: 28rpx; |
| | | margin-right: 8rpx; |
| | | } |
| | | .main_content .goods_list .item .info .num { |
| | | margin-right: 28rpx; |
| | | } |
| | | .main_content .goods_list .item .info .primary { |
| | | color: var(--themeColor); |
| | | } |
| | |
| | | .main_content { |
| | | padding: 40rpx 40rpx 100rpx; |
| | | padding: 40rpx 40rpx 160rpx; |
| | | |
| | | .main_title { |
| | | font-weight: 500; |
| | |
| | | } |
| | | |
| | | .footer { |
| | | display: flex; |
| | | align-items: center; |
| | | height: 100rpx; |
| | | position: fixed; |
| | | bottom: 0; |
| | | left: 40rpx; |
| | | width: 670rpx; |
| | | left: 0; |
| | | width: 750rpx; |
| | | background-color: #fff; |
| | | box-shadow: 0rpx -1rpx 0rpx 0rpx #EEEEEE; |
| | | .btns{ |
| | | display: flex; |
| | | align-items: center; |
| | | height: 100rpx; |
| | | padding: 12rpx 40rpx; |
| | | } |
| | | .sub_btn { |
| | | display: flex; |
| | | justify-content: center; |
| | |
| | | </view> |
| | | </view> |
| | | <!-- footer --> |
| | | <view class="footer" style="bottom: {{bottomLift}}px;"> |
| | | <view class="item"> |
| | | <image class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image> |
| | | <view class="name">æ¶è</view> |
| | | </view> |
| | | <view class="item"> |
| | | <image class="icon" src="../../static/icon/detail_nav_share.png" mode="widthFix"></image> |
| | | <view class="name">å享</view> |
| | | </view> |
| | | <view class="sub_btn"> |
| | | <image class="sheji" src="../../static/icon/ic_sheji.png" mode="widthFix"></image> |
| | | <view>å
è´¹é¢çº¦ä¸å±è®¾è®¡</view> |
| | | <view class="footer" style="padding-bottom: {{bottomLift}}px;"> |
| | | <view class="btns"> |
| | | <view class="item"> |
| | | <image class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image> |
| | | <view class="name">æ¶è</view> |
| | | </view> |
| | | <view class="item"> |
| | | <image class="icon" src="../../static/icon/detail_nav_share.png" mode="widthFix"></image> |
| | | <view class="name">å享</view> |
| | | </view> |
| | | <view class="sub_btn"> |
| | | <image class="sheji" src="../../static/icon/ic_sheji.png" mode="widthFix"></image> |
| | | <view>å
è´¹é¢çº¦ä¸å±è®¾è®¡</view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | .main_content { |
| | | padding: 40rpx 40rpx 100rpx; |
| | | padding: 40rpx 40rpx 160rpx; |
| | | } |
| | | .main_content .main_title { |
| | | font-weight: 500; |
| | |
| | | color: #999999; |
| | | } |
| | | .footer { |
| | | position: fixed; |
| | | bottom: 0; |
| | | left: 0; |
| | | width: 750rpx; |
| | | background-color: #fff; |
| | | box-shadow: 0rpx -1rpx 0rpx 0rpx #EEEEEE; |
| | | } |
| | | .footer .btns { |
| | | display: flex; |
| | | align-items: center; |
| | | height: 100rpx; |
| | | position: fixed; |
| | | bottom: 0; |
| | | left: 40rpx; |
| | | width: 670rpx; |
| | | padding: 12rpx 40rpx; |
| | | } |
| | | .footer .sub_btn { |
| | | display: flex; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | // pages/detailDis/case.js |
| | | Page({ |
| | | |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | bottomLift: 0 |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å è½½ |
| | | */ |
| | | onLoad(options) { |
| | | var app = getApp().globalData |
| | | this.setData({ |
| | | bottomLift: app.bottomLift |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å次渲æå®æ |
| | | */ |
| | | onReady() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢æ¾ç¤º |
| | | */ |
| | | onShow() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢éè |
| | | */ |
| | | onHide() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å¸è½½ |
| | | */ |
| | | onUnload() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ç¸å
³äºä»¶å¤ç彿°--çå¬ç¨æ·ä¸æå¨ä½ |
| | | */ |
| | | onPullDownRefresh() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ä¸æè§¦åºäºä»¶çå¤ç彿° |
| | | */ |
| | | onReachBottom() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * ç¨æ·ç¹å»å³ä¸è§å享 |
| | | */ |
| | | onShareAppMessage() { |
| | | |
| | | } |
| | | }) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "usingComponents": {}, |
| | | "navigationBarTitleText": "æ¡ä¾è¯¦æ
" |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | .container { |
| | | padding: 0 40rpx 220rpx; |
| | | |
| | | .main_title { |
| | | font-weight: 500; |
| | | font-size: 44rpx; |
| | | color: #222222; |
| | | margin: 32rpx 0; |
| | | } |
| | | |
| | | .time { |
| | | font-size: 26rpx; |
| | | color: #999999; |
| | | margin-bottom: 48rpx; |
| | | } |
| | | |
| | | .fullview_wrap { |
| | | .banner { |
| | | width: 100%; |
| | | border-radius: 8rpx; |
| | | } |
| | | } |
| | | |
| | | .img { |
| | | width: 100%; |
| | | border-radius: 8rpx; |
| | | } |
| | | |
| | | .h1 { |
| | | margin: 80rpx 0 48rpx; |
| | | font-weight: 600; |
| | | font-size: 36rpx; |
| | | } |
| | | |
| | | .analysis { |
| | | background: #F7F7F7; |
| | | border-radius: 10rpx; |
| | | padding: 28rpx 30rpx; |
| | | margin-top: 66rpx; |
| | | .h2 { |
| | | font-weight: 500; |
| | | margin-bottom: 20rpx; |
| | | .text{ |
| | | font-size: 26rpx; |
| | | font-weight: 300; |
| | | color: #333333; |
| | | } |
| | | } |
| | | } |
| | | .list{ |
| | | .item{ |
| | | .content{ |
| | | font-weight: 300; |
| | | font-size: 28rpx; |
| | | color: #333333; |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | | .footer { |
| | | position: fixed; |
| | | box-shadow: 0rpx -1rpx 0rpx 0rpx #EEEEEE; |
| | | bottom: 0; |
| | | left: 0; |
| | | width: 750rpx; |
| | | padding: 0rpx 40rpx; |
| | | background-color: #fff; |
| | | .btns{ |
| | | display: flex; |
| | | align-items: center; |
| | | height: 100rpx; |
| | | } |
| | | .sub_btn { |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | height: 72rpx; |
| | | flex: 1; |
| | | background-color: var(--themeColor); |
| | | font-weight: 500; |
| | | color: #FFFFFF; |
| | | font-style: 28rpx; |
| | | box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(176,135,113,0.3), inset 0rpx 2rpx 2rpx 0rpx rgba(255,255,255,0.33); |
| | | border-radius: 8rpx; |
| | | .sheji{ |
| | | width: 28rpx; |
| | | margin-right: 8rpx; |
| | | } |
| | | } |
| | | .item { |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: center; |
| | | align-items: center; |
| | | font-size: 20rpx; |
| | | color: #666666; |
| | | margin-right: 48rpx; |
| | | .icon { |
| | | width: 44rpx; |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <view class="container"> |
| | | <view class="main_title">ç®æ¬§é£æ ¼70m²两å±
室</view> |
| | | <view class="time">å叿¶é´ï¼2021-08-21 10:0</view> |
| | | <view class="fullview_wrap"> |
| | | <image class="banner" src="../../static/icon/test.png" mode="widthFix"></image> |
| | | </view> |
| | | <view class="h1">å¸ç½®å¾</view> |
| | | <image class="img" src="../../static/icon/test.png" mode="widthFix"></image> |
| | | <view class="analysis"> |
| | | <view class="h2">æ¡ä¾è§£æ</view> |
| | | <view class="text">为ä¿çå
¥æ·çå¨çº³ç©ºé´ï¼å°å«çé´çé¨ç§»å¨ä¸æ®µè·ç¦»ï¼æ¹ä¾¿äºå
¥æ·è´µç设置ï¼å¨ç©é´å°éå主å§è¡£å¸½é´ï¼å¢å 空é´ä½¿ç¨çåæ¿å±æ´ä½æ§ã客å
çæ ¼å±è®¾è®¡å¢å äºç©ºé´ç屿¬¡æã</view> |
| | | </view> |
| | | <view class="list"> |
| | | <view class="item"> |
| | | <view class="h1">01.客å
</view> |
| | | <image src="" mode="widthFix" /> |
| | | <view class="content">çæ¯äºæ´é½åä¸çç»çåæï¼éè²æ¡åç»é¨åæåæ¯ä¸ä¸æ ·ç审ç¾ï¼è¾¹æ¡å¾®æåå
¥ï¼å·¦å³å¯¹ç§°åå¸ï¼ç¯å
æ 衬ä¸ï¼ç¾å³ç»ä¸½å¤å§¿</view> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="h1">01.客å
</view> |
| | | <image src="" mode="widthFix" /> |
| | | <view class="content">çæ¯äºæ´é½åä¸çç»çåæï¼éè²æ¡åç»é¨åæåæ¯ä¸ä¸æ ·ç审ç¾ï¼è¾¹æ¡å¾®æåå
¥ï¼å·¦å³å¯¹ç§°åå¸ï¼ç¯å
æ 衬ä¸ï¼ç¾å³ç»ä¸½å¤å§¿</view> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="h1">01.客å
</view> |
| | | <image src="" mode="widthFix" /> |
| | | <view class="content">çæ¯äºæ´é½åä¸çç»çåæï¼éè²æ¡åç»é¨åæåæ¯ä¸ä¸æ ·ç审ç¾ï¼è¾¹æ¡å¾®æåå
¥ï¼å·¦å³å¯¹ç§°åå¸ï¼ç¯å
æ 衬ä¸ï¼ç¾å³ç»ä¸½å¤å§¿</view> |
| | | </view> |
| | | </view> |
| | | <!-- footer --> |
| | | <view class="footer" style="padding-bottom: {{bottomLift}}px;"> |
| | | <view class="btns"> |
| | | <view class="item"> |
| | | <image class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image> |
| | | <view class="name">æ¶è</view> |
| | | </view> |
| | | <view class="item"> |
| | | <image class="icon" src="../../static/icon/detail_nav_share.png" mode="widthFix"></image> |
| | | <view class="name">å享</view> |
| | | </view> |
| | | <view class="sub_btn"> |
| | | <image class="sheji" src="../../static/icon/ic_sheji.png" mode="widthFix"></image> |
| | | <view>å
è´¹é¢çº¦ä¸å±è®¾è®¡</view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | </view> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | .container { |
| | | padding: 0 40rpx 220rpx; |
| | | } |
| | | .container .main_title { |
| | | font-weight: 500; |
| | | font-size: 44rpx; |
| | | color: #222222; |
| | | margin: 32rpx 0; |
| | | } |
| | | .container .time { |
| | | font-size: 26rpx; |
| | | color: #999999; |
| | | margin-bottom: 48rpx; |
| | | } |
| | | .container .fullview_wrap .banner { |
| | | width: 100%; |
| | | border-radius: 8rpx; |
| | | } |
| | | .container .img { |
| | | width: 100%; |
| | | border-radius: 8rpx; |
| | | } |
| | | .container .h1 { |
| | | margin: 80rpx 0 48rpx; |
| | | font-weight: 600; |
| | | font-size: 36rpx; |
| | | } |
| | | .container .analysis { |
| | | background: #F7F7F7; |
| | | border-radius: 10rpx; |
| | | padding: 28rpx 30rpx; |
| | | margin-top: 66rpx; |
| | | } |
| | | .container .analysis .h2 { |
| | | font-weight: 500; |
| | | margin-bottom: 20rpx; |
| | | } |
| | | .container .analysis .h2 .text { |
| | | font-size: 26rpx; |
| | | font-weight: 300; |
| | | color: #333333; |
| | | } |
| | | .container .list .item .content { |
| | | font-weight: 300; |
| | | font-size: 28rpx; |
| | | color: #333333; |
| | | } |
| | | .footer { |
| | | position: fixed; |
| | | box-shadow: 0rpx -1rpx 0rpx 0rpx #EEEEEE; |
| | | bottom: 0; |
| | | left: 0; |
| | | width: 750rpx; |
| | | padding: 0rpx 40rpx; |
| | | background-color: #fff; |
| | | } |
| | | .footer .btns { |
| | | display: flex; |
| | | align-items: center; |
| | | height: 100rpx; |
| | | } |
| | | .footer .sub_btn { |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | height: 72rpx; |
| | | flex: 1; |
| | | background-color: var(--themeColor); |
| | | font-weight: 500; |
| | | color: #FFFFFF; |
| | | font-style: 28rpx; |
| | | box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(176, 135, 113, 0.3), inset 0rpx 2rpx 2rpx 0rpx rgba(255, 255, 255, 0.33); |
| | | border-radius: 8rpx; |
| | | } |
| | | .footer .sub_btn .sheji { |
| | | width: 28rpx; |
| | | margin-right: 8rpx; |
| | | } |
| | | .footer .item { |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: center; |
| | | align-items: center; |
| | | font-size: 20rpx; |
| | | color: #666666; |
| | | margin-right: 48rpx; |
| | | } |
| | | .footer .item .icon { |
| | | width: 44rpx; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | // pages/detailDis/product.js |
| | | Page({ |
| | | |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | bottomLift: 0 |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å è½½ |
| | | */ |
| | | onLoad(options) { |
| | | var app = getApp().globalData |
| | | this.setData({ |
| | | bottomLift: app.bottomLift |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å次渲æå®æ |
| | | */ |
| | | onReady() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢æ¾ç¤º |
| | | */ |
| | | onShow() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢éè |
| | | */ |
| | | onHide() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å¸è½½ |
| | | */ |
| | | onUnload() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ç¸å
³äºä»¶å¤ç彿°--çå¬ç¨æ·ä¸æå¨ä½ |
| | | */ |
| | | onPullDownRefresh() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ä¸æè§¦åºäºä»¶çå¤ç彿° |
| | | */ |
| | | onReachBottom() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * ç¨æ·ç¹å»å³ä¸è§å享 |
| | | */ |
| | | onShareAppMessage() { |
| | | |
| | | } |
| | | }) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "usingComponents": {} |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | .user { |
| | | width: 750rpx; |
| | | padding: 0 40rpx; |
| | | height: 148rpx; |
| | | background: #FFFFFF; |
| | | border-radius: 8rpx; |
| | | padding: 0 30rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | |
| | | .content { |
| | | flex: 1; |
| | | |
| | | .name { |
| | | font-size: 30rpx; |
| | | margin-bottom: 12rpx; |
| | | } |
| | | |
| | | .desc { |
| | | font-size: 24rpx; |
| | | color: #999999; |
| | | } |
| | | } |
| | | |
| | | .avatar { |
| | | width: 80rpx; |
| | | border-radius: 50%; |
| | | margin-right: 24rpx; |
| | | } |
| | | |
| | | .btn { |
| | | width: 118rpx; |
| | | height: 56rpx; |
| | | line-height: 52rpx; |
| | | text-align: center; |
| | | background: var(--themeColor); |
| | | border-radius: 8rpx; |
| | | font-weight: 500; |
| | | font-size: 26rpx; |
| | | color: #fff; |
| | | } |
| | | } |
| | | |
| | | page { |
| | | background-color: #f7f7f7; |
| | | } |
| | | |
| | | .main_content { |
| | | padding: 52rpx 40rpx 40rpx; |
| | | border-radius: 16rpx 16rpx 0rpx 0rpx; |
| | | background-color: #fff; |
| | | margin-bottom: 20rpx; |
| | | |
| | | .title { |
| | | font-weight: 500; |
| | | font-size: 36rpx; |
| | | } |
| | | |
| | | .desc { |
| | | font-size: 26rpx; |
| | | color: #555555; |
| | | margin: 16rpx 0 26rpx; |
| | | } |
| | | |
| | | .text { |
| | | font-size: 26rpx; |
| | | color: #555555; |
| | | margin-bottom: 40rpx; |
| | | } |
| | | } |
| | | |
| | | .counselor { |
| | | width: 670rpx; |
| | | padding: 0 0 0 30rpx; |
| | | box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(176, 135, 113, 0.2); |
| | | |
| | | .content { |
| | | .name { |
| | | margin-bottom: 0; |
| | | } |
| | | |
| | | .desc { |
| | | margin: 0; |
| | | } |
| | | } |
| | | |
| | | .avatar_wrap { |
| | | width: 80rpx; |
| | | height: 80rpx; |
| | | background: rgba(176, 135, 113, 0.14); |
| | | border-radius: 50%; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | margin-right: 24rpx; |
| | | |
| | | .avatar { |
| | | width: 52rpx; |
| | | margin: 0; |
| | | } |
| | | } |
| | | |
| | | .btn { |
| | | width: 68rpx; |
| | | height: 100%; |
| | | font-size: 26rpx; |
| | | color: #FFFFFF; |
| | | font-weight: 400; |
| | | padding: 20rpx; |
| | | line-height: 34rpx; |
| | | border-radius: 0rpx 8rpx 8rpx 0rpx; |
| | | } |
| | | } |
| | | |
| | | .video { |
| | | padding: 52rpx 40rpx 40rpx; |
| | | background-color: #fff; |
| | | |
| | | .title { |
| | | font-weight: 600; |
| | | font-size: 36rpx; |
| | | margin-bottom: 32rpx; |
| | | } |
| | | |
| | | video { |
| | | width: 100%; |
| | | border: 1px solid; |
| | | border-radius: 8rpx; |
| | | } |
| | | } |
| | | |
| | | .detail { |
| | | padding: 52rpx 40rpx 40rpx; |
| | | background-color: #fff; |
| | | |
| | | .title { |
| | | font-weight: 600; |
| | | font-size: 36rpx; |
| | | margin-bottom: 32rpx; |
| | | } |
| | | |
| | | .line { |
| | | display: flex; |
| | | height: 62rpx; |
| | | margin-bottom: 24rpx; |
| | | |
| | | .label { |
| | | font-size: 24rpx; |
| | | color: #666666; |
| | | } |
| | | |
| | | .val { |
| | | font-size: 24rpx; |
| | | color: #333333; |
| | | } |
| | | } |
| | | } |
| | | .footer { |
| | | position: fixed; |
| | | box-shadow: 0rpx -1rpx 0rpx 0rpx #EEEEEE; |
| | | bottom: 0; |
| | | left: 0; |
| | | width: 750rpx; |
| | | padding: 0rpx 40rpx; |
| | | background-color: #fff; |
| | | .btns{ |
| | | display: flex; |
| | | align-items: center; |
| | | height: 100rpx; |
| | | } |
| | | .sub_btn { |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | height: 72rpx; |
| | | flex: 1; |
| | | background-color: var(--themeColor); |
| | | font-weight: 500; |
| | | color: #FFFFFF; |
| | | font-style: 28rpx; |
| | | box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(176,135,113,0.3), inset 0rpx 2rpx 2rpx 0rpx rgba(255,255,255,0.33); |
| | | border-radius: 8rpx; |
| | | .sheji{ |
| | | width: 28rpx; |
| | | margin-right: 8rpx; |
| | | } |
| | | } |
| | | .item { |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: center; |
| | | align-items: center; |
| | | font-size: 20rpx; |
| | | color: #666666; |
| | | margin-right: 48rpx; |
| | | .icon { |
| | | width: 44rpx; |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <view> |
| | | <view class="user"> |
| | | <view class="avatar"></view> |
| | | <view class="content"> |
| | | <view class="name">䏿¢æ</view> |
| | | <view class="desc">导è´ï½5å¹´ç»éª</view> |
| | | </view> |
| | | <view class="btn">èç³»TA</view> |
| | | </view> |
| | | <view class="main_content"> |
| | | <view class="title">è«è¥¿åæ¥-é¤å
</view> |
| | | <view class="desc">ç®æ¬§é£æ ¼</view> |
| | | <view class="text">å®¶å±
飿 ¼ä¸å¿äºåºæå½¢å¼ï¼å¨æ¿åè½ä¸å±éäºä¸æ¥ä¸é¤ã |
| | | å
ç´ ä¸æè´¨ç¢°æåºçä¸ä»
æ¯è®¾è®¡æï¼æ´æ¯ä¸ç§é²æç䏿 |
| | | 䏿 ¼çç°ä»£æåº¦ï¼èåå½ä¸æµè¡ç¾å¦ï¼æè®¾ç©ºé´çæ 飿 ¼ |
| | | åã</view> |
| | | <view class="user counselor"> |
| | | <view class="avatar_wrap"> |
| | | <image class="avatar" mode="widthFix" src="../../static/icon/home_ic_guwen@2x.png"></image> |
| | | </view> |
| | | <view class="content"> |
| | | <view class="name">æ¨çä¸å±å®¶å±
顾é®</view> |
| | | <view class="desc">æ¨èº«è¾¹çå
¨å±è®¾è®¡ä¸å®¶</view> |
| | | </view> |
| | | <view class="btn">å»çç</view> |
| | | </view> |
| | | </view> |
| | | <!-- video --> |
| | | <view class="video"> |
| | | <view class="title">产åè§é¢</view> |
| | | <video src=""></video> |
| | | </view> |
| | | <view class="detail"> |
| | | <view class="title">产å详æ
</view> |
| | | <view class="line"> |
| | | <view class="label">ååï¼</view> |
| | | <view class="val">è«è¥¿åæ¥-é¤å
</view> |
| | | </view> |
| | | <view class="line"> |
| | | <view class="label">å·¥èºï¼</view> |
| | | <view class="val">è«è¥¿åæ¥-é¤å
</view> |
| | | </view> |
| | | </view> |
| | | <!-- footer --> |
| | | <view class="footer" style="padding-bottom: {{bottomLift}}px;"> |
| | | <view class="btns"> |
| | | <view class="item"> |
| | | <image class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image> |
| | | <view class="name">æ¶è</view> |
| | | </view> |
| | | <view class="item"> |
| | | <image class="icon" src="../../static/icon/detail_nav_share.png" mode="widthFix"></image> |
| | | <view class="name">å享</view> |
| | | </view> |
| | | <view class="sub_btn"> |
| | | <image class="sheji" src="../../static/icon/ic_sheji.png" mode="widthFix"></image> |
| | | <view>å
è´¹é¢çº¦ä¸å±è®¾è®¡</view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | .user { |
| | | width: 750rpx; |
| | | padding: 0 40rpx; |
| | | height: 148rpx; |
| | | background: #FFFFFF; |
| | | border-radius: 8rpx; |
| | | padding: 0 30rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | } |
| | | .user .content { |
| | | flex: 1; |
| | | } |
| | | .user .content .name { |
| | | font-size: 30rpx; |
| | | margin-bottom: 12rpx; |
| | | } |
| | | .user .content .desc { |
| | | font-size: 24rpx; |
| | | color: #999999; |
| | | } |
| | | .user .avatar { |
| | | width: 80rpx; |
| | | border-radius: 50%; |
| | | margin-right: 24rpx; |
| | | } |
| | | .user .btn { |
| | | width: 118rpx; |
| | | height: 56rpx; |
| | | line-height: 52rpx; |
| | | text-align: center; |
| | | background: var(--themeColor); |
| | | border-radius: 8rpx; |
| | | font-weight: 500; |
| | | font-size: 26rpx; |
| | | color: #fff; |
| | | } |
| | | page { |
| | | background-color: #f7f7f7; |
| | | } |
| | | .main_content { |
| | | padding: 52rpx 40rpx 40rpx; |
| | | border-radius: 16rpx 16rpx 0rpx 0rpx; |
| | | background-color: #fff; |
| | | margin-bottom: 20rpx; |
| | | } |
| | | .main_content .title { |
| | | font-weight: 500; |
| | | font-size: 36rpx; |
| | | } |
| | | .main_content .desc { |
| | | font-size: 26rpx; |
| | | color: #555555; |
| | | margin: 16rpx 0 26rpx; |
| | | } |
| | | .main_content .text { |
| | | font-size: 26rpx; |
| | | color: #555555; |
| | | margin-bottom: 40rpx; |
| | | } |
| | | .counselor { |
| | | width: 670rpx; |
| | | padding: 0 0 0 30rpx; |
| | | box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(176, 135, 113, 0.2); |
| | | } |
| | | .counselor .content .name { |
| | | margin-bottom: 0; |
| | | } |
| | | .counselor .content .desc { |
| | | margin: 0; |
| | | } |
| | | .counselor .avatar_wrap { |
| | | width: 80rpx; |
| | | height: 80rpx; |
| | | background: rgba(176, 135, 113, 0.14); |
| | | border-radius: 50%; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | margin-right: 24rpx; |
| | | } |
| | | .counselor .avatar_wrap .avatar { |
| | | width: 52rpx; |
| | | margin: 0; |
| | | } |
| | | .counselor .btn { |
| | | width: 68rpx; |
| | | height: 100%; |
| | | font-size: 26rpx; |
| | | color: #FFFFFF; |
| | | font-weight: 400; |
| | | padding: 20rpx; |
| | | line-height: 34rpx; |
| | | border-radius: 0rpx 8rpx 8rpx 0rpx; |
| | | } |
| | | .video { |
| | | padding: 52rpx 40rpx 40rpx; |
| | | background-color: #fff; |
| | | } |
| | | .video .title { |
| | | font-weight: 600; |
| | | font-size: 36rpx; |
| | | margin-bottom: 32rpx; |
| | | } |
| | | .video video { |
| | | width: 100%; |
| | | border: 1px solid; |
| | | border-radius: 8rpx; |
| | | } |
| | | .detail { |
| | | padding: 52rpx 40rpx 40rpx; |
| | | background-color: #fff; |
| | | } |
| | | .detail .title { |
| | | font-weight: 600; |
| | | font-size: 36rpx; |
| | | margin-bottom: 32rpx; |
| | | } |
| | | .detail .line { |
| | | display: flex; |
| | | height: 62rpx; |
| | | margin-bottom: 24rpx; |
| | | } |
| | | .detail .line .label { |
| | | font-size: 24rpx; |
| | | color: #666666; |
| | | } |
| | | .detail .line .val { |
| | | font-size: 24rpx; |
| | | color: #333333; |
| | | } |
| | | .footer { |
| | | position: fixed; |
| | | box-shadow: 0rpx -1rpx 0rpx 0rpx #EEEEEE; |
| | | bottom: 0; |
| | | left: 0; |
| | | width: 750rpx; |
| | | padding: 0rpx 40rpx; |
| | | background-color: #fff; |
| | | } |
| | | .footer .btns { |
| | | display: flex; |
| | | align-items: center; |
| | | height: 100rpx; |
| | | } |
| | | .footer .sub_btn { |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | height: 72rpx; |
| | | flex: 1; |
| | | background-color: var(--themeColor); |
| | | font-weight: 500; |
| | | color: #FFFFFF; |
| | | font-style: 28rpx; |
| | | box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(176, 135, 113, 0.3), inset 0rpx 2rpx 2rpx 0rpx rgba(255, 255, 255, 0.33); |
| | | border-radius: 8rpx; |
| | | } |
| | | .footer .sub_btn .sheji { |
| | | width: 28rpx; |
| | | margin-right: 8rpx; |
| | | } |
| | | .footer .item { |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: center; |
| | | align-items: center; |
| | | font-size: 20rpx; |
| | | color: #666666; |
| | | margin-right: 48rpx; |
| | | } |
| | | .footer .item .icon { |
| | | width: 44rpx; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | // pages/detailDis/realpic.js |
| | | Page({ |
| | | |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | bottomLift: 0 |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å è½½ |
| | | */ |
| | | onLoad(options) { |
| | | var app = getApp().globalData |
| | | this.setData({ |
| | | bottomLift: app.bottomLift |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å次渲æå®æ |
| | | */ |
| | | onReady() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢æ¾ç¤º |
| | | */ |
| | | onShow() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢éè |
| | | */ |
| | | onHide() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å¸è½½ |
| | | */ |
| | | onUnload() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ç¸å
³äºä»¶å¤ç彿°--çå¬ç¨æ·ä¸æå¨ä½ |
| | | */ |
| | | onPullDownRefresh() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ä¸æè§¦åºäºä»¶çå¤ç彿° |
| | | */ |
| | | onReachBottom() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * ç¨æ·ç¹å»å³ä¸è§å享 |
| | | */ |
| | | onShareAppMessage() { |
| | | |
| | | } |
| | | }) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "usingComponents": {}, |
| | | "navigationBarTitleText": "宿¯è¯¦æ
" |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | .container { |
| | | padding: 0 40rpx 220rpx; |
| | | |
| | | .main_title { |
| | | font-weight: 500; |
| | | font-size: 44rpx; |
| | | color: #222222; |
| | | margin: 32rpx 0; |
| | | } |
| | | |
| | | .time { |
| | | font-size: 26rpx; |
| | | color: #999999; |
| | | margin-bottom: 48rpx; |
| | | } |
| | | .img { |
| | | width: 100%; |
| | | border-radius: 8rpx; |
| | | } |
| | | .list{ |
| | | .item{ |
| | | .content{ |
| | | font-weight: 300; |
| | | font-size: 28rpx; |
| | | color: #333333; |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | | .footer { |
| | | position: fixed; |
| | | box-shadow: 0rpx -1rpx 0rpx 0rpx #EEEEEE; |
| | | bottom: 0; |
| | | left: 0; |
| | | width: 750rpx; |
| | | padding: 0rpx 40rpx; |
| | | background-color: #fff; |
| | | .btns{ |
| | | display: flex; |
| | | align-items: center; |
| | | height: 100rpx; |
| | | } |
| | | .sub_btn { |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | height: 72rpx; |
| | | flex: 1; |
| | | background-color: var(--themeColor); |
| | | font-weight: 500; |
| | | color: #FFFFFF; |
| | | font-style: 28rpx; |
| | | box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(176,135,113,0.3), inset 0rpx 2rpx 2rpx 0rpx rgba(255,255,255,0.33); |
| | | border-radius: 8rpx; |
| | | .sheji{ |
| | | width: 28rpx; |
| | | margin-right: 8rpx; |
| | | } |
| | | } |
| | | .item { |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: center; |
| | | align-items: center; |
| | | font-size: 20rpx; |
| | | color: #666666; |
| | | margin-right: 48rpx; |
| | | .icon { |
| | | width: 44rpx; |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <view class="container"> |
| | | <view class="main_title">ç®æ¬§é£æ ¼70m²两å±
室</view> |
| | | <view class="time">å叿¶é´ï¼2021-08-21 10:0</view> |
| | | <view class="list"> |
| | | <view class="item"> |
| | | <image src="" mode="widthFix" /> |
| | | <view class="content">çæ¯äºæ´é½åä¸çç»çåæï¼éè²æ¡åç»é¨åæåæ¯ä¸ä¸æ ·ç审ç¾ï¼è¾¹æ¡å¾®æåå
¥ï¼å·¦å³å¯¹ç§°åå¸ï¼ç¯å
æ 衬ä¸ï¼ç¾å³ç»ä¸½å¤å§¿</view> |
| | | </view> |
| | | <view class="item"> |
| | | <image src="" mode="widthFix" /> |
| | | <view class="content">çæ¯äºæ´é½åä¸çç»çåæï¼éè²æ¡åç»é¨åæåæ¯ä¸ä¸æ ·ç审ç¾ï¼è¾¹æ¡å¾®æåå
¥ï¼å·¦å³å¯¹ç§°åå¸ï¼ç¯å
æ 衬ä¸ï¼ç¾å³ç»ä¸½å¤å§¿</view> |
| | | </view> |
| | | <view class="item"> |
| | | <image src="" mode="widthFix" /> |
| | | <view class="content">çæ¯äºæ´é½åä¸çç»çåæï¼éè²æ¡åç»é¨åæåæ¯ä¸ä¸æ ·ç审ç¾ï¼è¾¹æ¡å¾®æåå
¥ï¼å·¦å³å¯¹ç§°åå¸ï¼ç¯å
æ 衬ä¸ï¼ç¾å³ç»ä¸½å¤å§¿</view> |
| | | </view> |
| | | </view> |
| | | <!-- footer --> |
| | | <view class="footer" style="padding-bottom: {{bottomLift}}px;"> |
| | | <view class="btns"> |
| | | <view class="item"> |
| | | <image class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image> |
| | | <view class="name">æ¶è</view> |
| | | </view> |
| | | <view class="item"> |
| | | <image class="icon" src="../../static/icon/detail_nav_share.png" mode="widthFix"></image> |
| | | <view class="name">å享</view> |
| | | </view> |
| | | <view class="sub_btn"> |
| | | <image class="sheji" src="../../static/icon/ic_sheji.png" mode="widthFix"></image> |
| | | <view>å
è´¹é¢çº¦ä¸å±è®¾è®¡</view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | </view> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | .container { |
| | | padding: 0 40rpx 220rpx; |
| | | } |
| | | .container .main_title { |
| | | font-weight: 500; |
| | | font-size: 44rpx; |
| | | color: #222222; |
| | | margin: 32rpx 0; |
| | | } |
| | | .container .time { |
| | | font-size: 26rpx; |
| | | color: #999999; |
| | | margin-bottom: 48rpx; |
| | | } |
| | | .container .img { |
| | | width: 100%; |
| | | border-radius: 8rpx; |
| | | } |
| | | .container .list .item .content { |
| | | font-weight: 300; |
| | | font-size: 28rpx; |
| | | color: #333333; |
| | | } |
| | | .footer { |
| | | position: fixed; |
| | | box-shadow: 0rpx -1rpx 0rpx 0rpx #EEEEEE; |
| | | bottom: 0; |
| | | left: 0; |
| | | width: 750rpx; |
| | | padding: 0rpx 40rpx; |
| | | background-color: #fff; |
| | | } |
| | | .footer .btns { |
| | | display: flex; |
| | | align-items: center; |
| | | height: 100rpx; |
| | | } |
| | | .footer .sub_btn { |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | height: 72rpx; |
| | | flex: 1; |
| | | background-color: var(--themeColor); |
| | | font-weight: 500; |
| | | color: #FFFFFF; |
| | | font-style: 28rpx; |
| | | box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(176, 135, 113, 0.3), inset 0rpx 2rpx 2rpx 0rpx rgba(255, 255, 255, 0.33); |
| | | border-radius: 8rpx; |
| | | } |
| | | .footer .sub_btn .sheji { |
| | | width: 28rpx; |
| | | margin-right: 8rpx; |
| | | } |
| | | .footer .item { |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: center; |
| | | align-items: center; |
| | | font-size: 20rpx; |
| | | color: #666666; |
| | | margin-right: 48rpx; |
| | | } |
| | | .footer .item .icon { |
| | | width: 44rpx; |
| | | } |
| | |
| | | { |
| | | "usingComponents": { |
| | | "disProduct": "../../components/disProduct" |
| | | "disProduct": "../../components/disProduct", |
| | | "disCase": "../../components/disCase", |
| | | "disRealpic": "../../components/disRealpic" |
| | | }, |
| | | "navigationStyle": "custom", |
| | | "navigationBarTextStyle": "white" |
| | |
| | | <!-- --> |
| | | <view class="main_content" style="height: calc( 100vh - {{menuButtonInfo.top}}px - 88rpx )"> |
| | | <disProduct wx:if="{{ activeTabs == '0' }}" /> |
| | | <disCase wx:if="{{ activeTabs == '1' }}" /> |
| | | <disRealpic wx:if="{{ activeTabs == '2' }}" /> |
| | | </view> |
| | | </view> |
| | |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | |
| | | clientHeight: 0, |
| | | clientTop: 0, |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å è½½ |
| | | */ |
| | | onLoad(options) { |
| | | |
| | | const res = wx.getMenuButtonBoundingClientRect() |
| | | this.setData({clientHeight: res.height}) |
| | | this.setData({clientTop: res.top}) |
| | | }, |
| | | |
| | | changePath(e) { |
| | | // 页é¢è·³è½¬ |
| | | let temp = ['mysub', 'collect', 'favorite', 'index'] |
| | | const index = e.currentTarget.dataset.index |
| | | wx.navigateTo({ |
| | | url: `/pages/userinfo/${temp[index]}`, |
| | | }) |
| | | }, |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å次渲æå®æ |
| | | */ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | .container { |
| | | background-color: #aca9a6; |
| | | |
| | | .navbar { |
| | | padding-left: 30rpx; |
| | | font-weight: 600; |
| | | font-size: 38rpx; |
| | | color: #FFFFFF; |
| | | } |
| | | |
| | | .userinfo { |
| | | display: flex; |
| | | padding: 72rpx 40rpx 48rpx; |
| | | color: #fff; |
| | | font-size: 26rpx; |
| | | |
| | | .content { |
| | | flex: 1; |
| | | |
| | | .header { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | |
| | | .name { |
| | | font-weight: 600; |
| | | font-size: 36rpx; |
| | | } |
| | | |
| | | .edit { |
| | | width: 92rpx; |
| | | height: 52rpx; |
| | | line-height: 50rpx; |
| | | text-align: center; |
| | | border-radius: 32rpx; |
| | | border: 1rpx solid rgba(255, 255, 255, 0.5); |
| | | } |
| | | } |
| | | |
| | | .addr { |
| | | margin: 10rpx 0 12rpx; |
| | | } |
| | | } |
| | | |
| | | .avatar { |
| | | width: 112rpx; |
| | | height: 112rpx; |
| | | background: #FFFFFF; |
| | | box-shadow: 0rpx 2rpx 12rpx 0rpx rgba(0, 0, 0, 0.08); |
| | | border-radius: 50%; |
| | | border: 4rpx solid #FFFFFF; |
| | | margin-right: 30rpx; |
| | | } |
| | | } |
| | | .main_content{ |
| | | background-color: #fff; |
| | | border-radius: 16rpx 16rpx 0rpx 0rpx; |
| | | padding: 40rpx; |
| | | .func_list{ |
| | | background: #F7F7F7; |
| | | border-radius: 8rpx; |
| | | margin-bottom: 40rpx; |
| | | .line{ |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | padding: 0 40rpx; |
| | | height: 108rpx; |
| | | .icon{ |
| | | width: 40rpx; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | <!--pages/mine/mine.wxml--> |
| | | <text>pages/mine/mine.wxml</text> |
| | | <view class="container"> |
| | | <view class="navbar" style="padding-top: {{ clientTop }}px;height: {{clientHeight + clientTop}}px;">æçå®¶</view> |
| | | <view class="userinfo"> |
| | | <image class="avatar" src=""></image> |
| | | <view class="content"> |
| | | <view class="header"> |
| | | <view class="name">èç¿</view> |
| | | <view data-index="3" bindtap="changePath" class="edit">ç¼è¾</view> |
| | | </view> |
| | | <view class="addr">åè¥è²è±å°åº</view> |
| | | <view class="detail">120m² ï½3室1å
1å¨1å«</view> |
| | | </view> |
| | | </view> |
| | | <view class="main_content"> |
| | | <view class="func_list"> |
| | | <view class="line" data-index="0" bindtap="changePath"> |
| | | <view class="name">æé¢çº¦ç</view> |
| | | <image class="icon" src="../../static/icon/mine_ic_ar.png" mode="widthFix"></image> |
| | | </view> |
| | | <view class="line" data-index="1" bindtap="changePath"> |
| | | <view class="name">ææ¶èç</view> |
| | | <image class="icon" src="../../static/icon/mine_ic_ar.png" mode="widthFix"></image> |
| | | </view> |
| | | <view class="line" data-index="2" bindtap="changePath"> |
| | | <view class="name">æå欢ç</view> |
| | | <image class="icon" src="../../static/icon/mine_ic_ar.png" mode="widthFix"></image> |
| | | </view> |
| | | </view> |
| | | <view class="func_list"> |
| | | <view class="line"> |
| | | <view class="name">åå·¥ç»å®</view> |
| | | <image class="icon" src="../../static/icon/mine_ic_ar.png" mode="widthFix"></image> |
| | | </view> |
| | | <view class="line"> |
| | | <view class="name">æ´å¤è®¾ç½®</view> |
| | | <image class="icon" src="../../static/icon/mine_ic_ar.png" mode="widthFix"></image> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | .container { |
| | | background-color: #aca9a6; |
| | | } |
| | | .container .navbar { |
| | | padding-left: 30rpx; |
| | | font-weight: 600; |
| | | font-size: 38rpx; |
| | | color: #FFFFFF; |
| | | } |
| | | .container .userinfo { |
| | | display: flex; |
| | | padding: 72rpx 40rpx 48rpx; |
| | | color: #fff; |
| | | font-size: 26rpx; |
| | | } |
| | | .container .userinfo .content { |
| | | flex: 1; |
| | | } |
| | | .container .userinfo .content .header { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | } |
| | | .container .userinfo .content .header .name { |
| | | font-weight: 600; |
| | | font-size: 36rpx; |
| | | } |
| | | .container .userinfo .content .header .edit { |
| | | width: 92rpx; |
| | | height: 52rpx; |
| | | line-height: 50rpx; |
| | | text-align: center; |
| | | border-radius: 32rpx; |
| | | border: 1rpx solid rgba(255, 255, 255, 0.5); |
| | | } |
| | | .container .userinfo .content .addr { |
| | | margin: 10rpx 0 12rpx; |
| | | } |
| | | .container .userinfo .avatar { |
| | | width: 112rpx; |
| | | height: 112rpx; |
| | | background: #FFFFFF; |
| | | box-shadow: 0rpx 2rpx 12rpx 0rpx rgba(0, 0, 0, 0.08); |
| | | border-radius: 50%; |
| | | border: 4rpx solid #FFFFFF; |
| | | margin-right: 30rpx; |
| | | } |
| | | .container .main_content { |
| | | background-color: #fff; |
| | | border-radius: 16rpx 16rpx 0rpx 0rpx; |
| | | padding: 40rpx; |
| | | } |
| | | .container .main_content .func_list { |
| | | background: #F7F7F7; |
| | | border-radius: 8rpx; |
| | | margin-bottom: 40rpx; |
| | | } |
| | | .container .main_content .func_list .line { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | padding: 0 40rpx; |
| | | height: 108rpx; |
| | | } |
| | | .container .main_content .func_list .line .icon { |
| | | width: 40rpx; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | // pages/sets/index.js |
| | | Page({ |
| | | |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | show: false |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å è½½ |
| | | */ |
| | | onLoad(options) { |
| | | |
| | | }, |
| | | showLogout() { |
| | | this.setData({show: true}) |
| | | }, |
| | | onClose() { |
| | | this.setData({show: false}) |
| | | }, |
| | | changeDeal(){ |
| | | wx.navigateTo({ |
| | | url: '/pages/sets/protocol', |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å次渲æå®æ |
| | | */ |
| | | onReady() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢æ¾ç¤º |
| | | */ |
| | | onShow() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢éè |
| | | */ |
| | | onHide() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å¸è½½ |
| | | */ |
| | | onUnload() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ç¸å
³äºä»¶å¤ç彿°--çå¬ç¨æ·ä¸æå¨ä½ |
| | | */ |
| | | onPullDownRefresh() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ä¸æè§¦åºäºä»¶çå¤ç彿° |
| | | */ |
| | | onReachBottom() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * ç¨æ·ç¹å»å³ä¸è§å享 |
| | | */ |
| | | onShareAppMessage() { |
| | | |
| | | } |
| | | }) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "usingComponents": { |
| | | "van-popup": "@vant/weapp/popup/index" |
| | | }, |
| | | "navigationBarTitleText": "设置" |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | .list{ |
| | | padding: 12rpx 32rpx; |
| | | .line{ |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | height: 100rpx; |
| | | border-bottom: 2rpx solid #E5E5E5; |
| | | .name{ |
| | | font-size: 30rpx; |
| | | } |
| | | .icon{ |
| | | width: 40rpx; |
| | | } |
| | | } |
| | | } |
| | | .modal{ |
| | | width: 610rpx; |
| | | height: 450rpx; |
| | | background: #FFFFFF; |
| | | border-radius: 8rpx; |
| | | padding: 60rpx 40rpx 30rpx; |
| | | .title{ |
| | | font-weight: 500; |
| | | font-size: 36rpx; |
| | | color: #222222; |
| | | margin-bottom: 30rpx; |
| | | } |
| | | .text{ |
| | | color: #555555; |
| | | margin-bottom: 30rpx; |
| | | padding-bottom: 40rpx; |
| | | border-bottom: 2rpx solid #E5E5E5; |
| | | } |
| | | .btns{ |
| | | display: flex; |
| | | justify-content: space-between; |
| | | .btn{ |
| | | width: 254rpx; |
| | | height: 88rpx; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | background: #F7F7F7; |
| | | border-radius: 8rpx; |
| | | font-weight: 500; |
| | | font-size: 30rpx; |
| | | color: #555555; |
| | | } |
| | | .cancel{ |
| | | color: #fff; |
| | | background-color: var(--themeColor); |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <view class="container"> |
| | | <view class="list"> |
| | | <view class="line" bindtap="changeDeal"> |
| | | <view class="name">ãZBOMç¨æ·æå¡åè®®ã</view> |
| | | <image class="icon" src="../../static/icon/home_ar@2x.png" mode="widthFix"></image> |
| | | </view> |
| | | <view class="line" bindtap="changeDeal"> |
| | | <view class="name">ãZBOMç¨æ·éç§åè®®ã</view> |
| | | <image class="icon" src="../../static/icon/home_ar@2x.png" mode="widthFix"></image> |
| | | </view> |
| | | <view class="line" bindtap="showLogout"> |
| | | <view class="name">注éè´¦å·</view> |
| | | <image class="icon" src="../../static/icon/home_ar@2x.png" mode="widthFix"></image> |
| | | </view> |
| | | </view> |
| | | <!-- --> |
| | | <van-popup show="{{ show }}" bind:close="onClose"> |
| | | <view class="modal"> |
| | | <view class="title">注éæé</view> |
| | | <view class="text">妿¨ä¸åä½¿ç¨æ¤è´¦å·ï¼å¯ä»¥å°å
¶æ³¨éãè´¦å·æåæ³¨éåï¼å
¶ä¸æææ°æ®å°ä¼è¢«å é¤å¹¶å°æ æ³æ¢å¤ï¼è¯·è°¨æ
æä½</view> |
| | | <view class="btns"> |
| | | <view class="btn">确认注é</view> |
| | | <view class="btn cancel" bindtap="onClose">è¿æ¯ç®äº</view> |
| | | </view> |
| | | </view> |
| | | </van-popup> |
| | | </view> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | .list { |
| | | padding: 12rpx 32rpx; |
| | | } |
| | | .list .line { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | height: 100rpx; |
| | | border-bottom: 2rpx solid #E5E5E5; |
| | | } |
| | | .list .line .name { |
| | | font-size: 30rpx; |
| | | } |
| | | .list .line .icon { |
| | | width: 40rpx; |
| | | } |
| | | .modal { |
| | | width: 610rpx; |
| | | height: 450rpx; |
| | | background: #FFFFFF; |
| | | border-radius: 8rpx; |
| | | padding: 60rpx 40rpx 30rpx; |
| | | } |
| | | .modal .title { |
| | | font-weight: 500; |
| | | font-size: 36rpx; |
| | | color: #222222; |
| | | margin-bottom: 30rpx; |
| | | } |
| | | .modal .text { |
| | | color: #555555; |
| | | margin-bottom: 30rpx; |
| | | padding-bottom: 40rpx; |
| | | border-bottom: 2rpx solid #E5E5E5; |
| | | } |
| | | .modal .btns { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | } |
| | | .modal .btns .btn { |
| | | width: 254rpx; |
| | | height: 88rpx; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | background: #F7F7F7; |
| | | border-radius: 8rpx; |
| | | font-weight: 500; |
| | | font-size: 30rpx; |
| | | color: #555555; |
| | | } |
| | | .modal .btns .cancel { |
| | | color: #fff; |
| | | background-color: var(--themeColor); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | // pages/sets/protocol.js |
| | | Page({ |
| | | |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å è½½ |
| | | */ |
| | | onLoad(options) { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å次渲æå®æ |
| | | */ |
| | | onReady() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢æ¾ç¤º |
| | | */ |
| | | onShow() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢éè |
| | | */ |
| | | onHide() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å¸è½½ |
| | | */ |
| | | onUnload() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ç¸å
³äºä»¶å¤ç彿°--çå¬ç¨æ·ä¸æå¨ä½ |
| | | */ |
| | | onPullDownRefresh() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ä¸æè§¦åºäºä»¶çå¤ç彿° |
| | | */ |
| | | onReachBottom() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * ç¨æ·ç¹å»å³ä¸è§å享 |
| | | */ |
| | | onShareAppMessage() { |
| | | |
| | | } |
| | | }) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "usingComponents": {} |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!--pages/sets/protocol.wxml--> |
| | | <text>pages/sets/protocol.wxml</text> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* pages/sets/protocol.wxss */ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | // pages/userinfo/collect.js |
| | | Page({ |
| | | |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | activeTabs: '0' |
| | | }, |
| | | |
| | | tabsChange(e) { |
| | | const activeTabs = e.currentTarget.dataset.val |
| | | this.setData({ activeTabs }) |
| | | }, |
| | | handleDetail(e) { |
| | | wx.navigateTo({ |
| | | url: '/pages/detailDis/product', |
| | | }) |
| | | }, |
| | | onLoad(options) { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å次渲æå®æ |
| | | */ |
| | | onReady() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢æ¾ç¤º |
| | | */ |
| | | onShow() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢éè |
| | | */ |
| | | onHide() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å¸è½½ |
| | | */ |
| | | onUnload() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ç¸å
³äºä»¶å¤ç彿°--çå¬ç¨æ·ä¸æå¨ä½ |
| | | */ |
| | | onPullDownRefresh() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ä¸æè§¦åºäºä»¶çå¤ç彿° |
| | | */ |
| | | onReachBottom() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * ç¨æ·ç¹å»å³ä¸è§å享 |
| | | */ |
| | | onShareAppMessage() { |
| | | |
| | | } |
| | | }) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "usingComponents": {}, |
| | | "navigationBarTitleText": "ææ¶èç" |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | |
| | | .tabs{ |
| | | background-color: #fff; |
| | | padding: 0 40rpx; |
| | | height: 88rpx; |
| | | display: flex; |
| | | justify-content: space-around; |
| | | align-items: center; |
| | | .item{ |
| | | font-size: 30rpx; |
| | | color: #666666; |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: center; |
| | | align-items: center; |
| | | .border{ |
| | | width: 40rpx; |
| | | height: 6rpx; |
| | | background-color: #fff; |
| | | margin-top: 16rpx; |
| | | border-radius: 3rpx; |
| | | } |
| | | } |
| | | .active{ |
| | | font-weight: 600; |
| | | font-size: 34rpx; |
| | | color: #222222; |
| | | .border{ |
| | | background: #F4CA1C; |
| | | } |
| | | } |
| | | } |
| | | .list{ |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | justify-content: space-between; |
| | | padding: 40rpx; |
| | | width: 100%; |
| | | .item{ |
| | | flex-shrink: 0; |
| | | margin-bottom: 60rpx; |
| | | width: 324rpx; |
| | | .img_wrap{ |
| | | width: 324rpx; |
| | | height: 182rpx; |
| | | border-radius: 8rpx; |
| | | overflow: hidden; |
| | | position: relative; |
| | | .img{ |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | .new{ |
| | | width: 72rpx; |
| | | position: absolute; |
| | | left: 0; |
| | | top: 0; |
| | | z-index: 10; |
| | | } |
| | | } |
| | | .name{ |
| | | margin: 26rpx 0 14rpx; |
| | | } |
| | | .info{ |
| | | display: flex; |
| | | align-items: center; |
| | | color: #666666; |
| | | .icon{ |
| | | width: 28rpx; |
| | | margin-right: 8rpx; |
| | | } |
| | | .num{ |
| | | margin-right: 16rpx; |
| | | } |
| | | .primary{ |
| | | color: var(--themeColor); |
| | | } |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <view class="container"> |
| | | <view class="tabs"> |
| | | <view class="item {{ activeTabs == '0' ? 'active' : '' }}" data-val="0" bindtap="tabsChange"> |
| | | <view class="name">产å</view> |
| | | <view class="border"></view> |
| | | </view> |
| | | <view class="item {{ activeTabs == '1' ? 'active' : '' }}" data-val="1" bindtap="tabsChange"> |
| | | <view class="name">æ¡ä¾</view> |
| | | <view class="border"></view> |
| | | </view> |
| | | <view class="item {{ activeTabs == '2' ? 'active' : '' }}" data-val="2" bindtap="tabsChange"> |
| | | <view class="name">宿¯</view> |
| | | <view class="border"></view> |
| | | </view> |
| | | </view> |
| | | <view class="list"> |
| | | <view class="item" bindtap="handleDetail"> |
| | | <view class="img_wrap"> |
| | | <image src="../../static/icon/test.png" class="img"></image> |
| | | <image wx:if="{{ true }}" class="new" src="../../static/icon/chanpin_ic_new@2x.png" mode="widthFix"></image> |
| | | </view> |
| | | <view class="name">é¢ç´æ²</view> |
| | | <view class="info"> |
| | | <image wx:if="{{ false }}" class="icon" src="../../static/icon/detail_nav_collect.png" mode="widthFix"></image> |
| | | <image wx:else="" class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image> |
| | | <text class="num {{true ? 'primary' : ''}}">34</text> |
| | | <image class="icon" src="../../static/icon/zixun_ic_liulan.png" mode="widthFix"></image> |
| | | <text>1000</text> |
| | | </view> |
| | | </view> |
| | | <view class="item" bindtap="handleDetail"> |
| | | <view class="img_wrap"> |
| | | <image src="../../static/icon/test.png" class="img"></image> |
| | | <image wx:if="{{ true }}" class="new" src="../../static/icon/chanpin_ic_new@2x.png" mode="widthFix"></image> |
| | | </view> |
| | | <view class="name">é¢ç´æ²</view> |
| | | <view class="info"> |
| | | <image wx:if="{{ false }}" class="icon" src="../../static/icon/detail_nav_collect.png" mode="widthFix"></image> |
| | | <image wx:else="" class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image> |
| | | <text class="num {{true ? 'primary' : ''}}">34</text> |
| | | <image class="icon" src="../../static/icon/zixun_ic_liulan.png" mode="widthFix"></image> |
| | | <text>1000</text> |
| | | </view> |
| | | </view> |
| | | <view class="item" bindtap="handleDetail"> |
| | | <view class="img_wrap"> |
| | | <image src="../../static/icon/test.png" class="img"></image> |
| | | <image wx:if="{{ true }}" class="new" src="../../static/icon/chanpin_ic_new@2x.png" mode="widthFix"></image> |
| | | </view> |
| | | <view class="name">é¢ç´æ²</view> |
| | | <view class="info"> |
| | | <image wx:if="{{ false }}" class="icon" src="../../static/icon/detail_nav_collect.png" mode="widthFix"></image> |
| | | <image wx:else="" class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image> |
| | | <text class="num {{true ? 'primary' : ''}}">34</text> |
| | | <image class="icon" src="../../static/icon/zixun_ic_liulan.png" mode="widthFix"></image> |
| | | <text>1000</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | .tabs { |
| | | background-color: #fff; |
| | | padding: 0 40rpx; |
| | | height: 88rpx; |
| | | display: flex; |
| | | justify-content: space-around; |
| | | align-items: center; |
| | | } |
| | | .tabs .item { |
| | | font-size: 30rpx; |
| | | color: #666666; |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: center; |
| | | align-items: center; |
| | | } |
| | | .tabs .item .border { |
| | | width: 40rpx; |
| | | height: 6rpx; |
| | | background-color: #fff; |
| | | margin-top: 16rpx; |
| | | border-radius: 3rpx; |
| | | } |
| | | .tabs .active { |
| | | font-weight: 600; |
| | | font-size: 34rpx; |
| | | color: #222222; |
| | | } |
| | | .tabs .active .border { |
| | | background: #F4CA1C; |
| | | } |
| | | .list { |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | justify-content: space-between; |
| | | padding: 40rpx; |
| | | width: 100%; |
| | | } |
| | | .list .item { |
| | | flex-shrink: 0; |
| | | margin-bottom: 60rpx; |
| | | width: 324rpx; |
| | | } |
| | | .list .item .img_wrap { |
| | | width: 324rpx; |
| | | height: 182rpx; |
| | | border-radius: 8rpx; |
| | | overflow: hidden; |
| | | position: relative; |
| | | } |
| | | .list .item .img_wrap .img { |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | .list .item .img_wrap .new { |
| | | width: 72rpx; |
| | | position: absolute; |
| | | left: 0; |
| | | top: 0; |
| | | z-index: 10; |
| | | } |
| | | .list .item .name { |
| | | margin: 26rpx 0 14rpx; |
| | | } |
| | | .list .item .info { |
| | | display: flex; |
| | | align-items: center; |
| | | color: #666666; |
| | | } |
| | | .list .item .info .icon { |
| | | width: 28rpx; |
| | | margin-right: 8rpx; |
| | | } |
| | | .list .item .info .num { |
| | | margin-right: 16rpx; |
| | | } |
| | | .list .item .info .primary { |
| | | color: var(--themeColor); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | // pages/userinfo/collect.js |
| | | Page({ |
| | | |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | activeTabs: '0' |
| | | }, |
| | | |
| | | tabsChange(e) { |
| | | const activeTabs = e.currentTarget.dataset.val |
| | | this.setData({ activeTabs }) |
| | | }, |
| | | handleDetail(e) { |
| | | wx.navigateTo({ |
| | | url: '/pages/detailDis/product', |
| | | }) |
| | | }, |
| | | onLoad(options) { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å次渲æå®æ |
| | | */ |
| | | onReady() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢æ¾ç¤º |
| | | */ |
| | | onShow() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢éè |
| | | */ |
| | | onHide() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å¸è½½ |
| | | */ |
| | | onUnload() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ç¸å
³äºä»¶å¤ç彿°--çå¬ç¨æ·ä¸æå¨ä½ |
| | | */ |
| | | onPullDownRefresh() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ä¸æè§¦åºäºä»¶çå¤ç彿° |
| | | */ |
| | | onReachBottom() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * ç¨æ·ç¹å»å³ä¸è§å享 |
| | | */ |
| | | onShareAppMessage() { |
| | | |
| | | } |
| | | }) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "usingComponents": {}, |
| | | "navigationBarTitleText": "æå欢ç" |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* pages/userinfo/favorite.wxss */ |
| | | .tabs{ |
| | | background-color: #fff; |
| | | padding: 0 40rpx; |
| | | height: 88rpx; |
| | | display: flex; |
| | | justify-content: space-around; |
| | | align-items: center; |
| | | .item{ |
| | | font-size: 30rpx; |
| | | color: #666666; |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: center; |
| | | align-items: center; |
| | | .border{ |
| | | width: 40rpx; |
| | | height: 6rpx; |
| | | background-color: #fff; |
| | | margin-top: 16rpx; |
| | | border-radius: 3rpx; |
| | | } |
| | | } |
| | | .active{ |
| | | font-weight: 600; |
| | | font-size: 34rpx; |
| | | color: #222222; |
| | | .border{ |
| | | background: #F4CA1C; |
| | | } |
| | | } |
| | | } |
| | | .list{ |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | justify-content: space-between; |
| | | padding: 40rpx; |
| | | width: 100%; |
| | | .item{ |
| | | flex-shrink: 0; |
| | | margin-bottom: 60rpx; |
| | | width: 324rpx; |
| | | .img_wrap{ |
| | | width: 324rpx; |
| | | height: 182rpx; |
| | | border-radius: 8rpx; |
| | | overflow: hidden; |
| | | position: relative; |
| | | .img{ |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | .new{ |
| | | width: 72rpx; |
| | | position: absolute; |
| | | left: 0; |
| | | top: 0; |
| | | z-index: 10; |
| | | } |
| | | } |
| | | .name{ |
| | | margin: 26rpx 0 14rpx; |
| | | } |
| | | .info{ |
| | | display: flex; |
| | | align-items: center; |
| | | color: #666666; |
| | | .icon{ |
| | | width: 28rpx; |
| | | margin-right: 8rpx; |
| | | } |
| | | .num{ |
| | | margin-right: 16rpx; |
| | | } |
| | | .primary{ |
| | | color: var(--themeColor); |
| | | } |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <view class="container"> |
| | | <view class="tabs"> |
| | | <view class="item {{ activeTabs == '0' ? 'active' : '' }}" data-val="0" bindtap="tabsChange"> |
| | | <view class="name">产å</view> |
| | | <view class="border"></view> |
| | | </view> |
| | | <view class="item {{ activeTabs == '1' ? 'active' : '' }}" data-val="1" bindtap="tabsChange"> |
| | | <view class="name">æ¡ä¾</view> |
| | | <view class="border"></view> |
| | | </view> |
| | | <view class="item {{ activeTabs == '2' ? 'active' : '' }}" data-val="2" bindtap="tabsChange"> |
| | | <view class="name">宿¯</view> |
| | | <view class="border"></view> |
| | | </view> |
| | | </view> |
| | | <view class="list"> |
| | | <view class="item" bindtap="handleDetail"> |
| | | <view class="img_wrap"> |
| | | <image src="../../static/icon/test.png" class="img"></image> |
| | | <image wx:if="{{ true }}" class="new" src="../../static/icon/chanpin_ic_new@2x.png" mode="widthFix"></image> |
| | | </view> |
| | | <view class="name">é¢ç´æ²</view> |
| | | <view class="info"> |
| | | <image wx:if="{{ false }}" class="icon" src="../../static/icon/detail_nav_collect.png" mode="widthFix"></image> |
| | | <image wx:else="" class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image> |
| | | <text class="num {{true ? 'primary' : ''}}">34</text> |
| | | <image class="icon" src="../../static/icon/zixun_ic_liulan.png" mode="widthFix"></image> |
| | | <text>1000</text> |
| | | </view> |
| | | </view> |
| | | <view class="item" bindtap="handleDetail"> |
| | | <view class="img_wrap"> |
| | | <image src="../../static/icon/test.png" class="img"></image> |
| | | <image wx:if="{{ true }}" class="new" src="../../static/icon/chanpin_ic_new@2x.png" mode="widthFix"></image> |
| | | </view> |
| | | <view class="name">é¢ç´æ²</view> |
| | | <view class="info"> |
| | | <image wx:if="{{ false }}" class="icon" src="../../static/icon/detail_nav_collect.png" mode="widthFix"></image> |
| | | <image wx:else="" class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image> |
| | | <text class="num {{true ? 'primary' : ''}}">34</text> |
| | | <image class="icon" src="../../static/icon/zixun_ic_liulan.png" mode="widthFix"></image> |
| | | <text>1000</text> |
| | | </view> |
| | | </view> |
| | | <view class="item" bindtap="handleDetail"> |
| | | <view class="img_wrap"> |
| | | <image src="../../static/icon/test.png" class="img"></image> |
| | | <image wx:if="{{ true }}" class="new" src="../../static/icon/chanpin_ic_new@2x.png" mode="widthFix"></image> |
| | | </view> |
| | | <view class="name">é¢ç´æ²</view> |
| | | <view class="info"> |
| | | <image wx:if="{{ false }}" class="icon" src="../../static/icon/detail_nav_collect.png" mode="widthFix"></image> |
| | | <image wx:else="" class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image> |
| | | <text class="num {{true ? 'primary' : ''}}">34</text> |
| | | <image class="icon" src="../../static/icon/zixun_ic_liulan.png" mode="widthFix"></image> |
| | | <text>1000</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* pages/userinfo/favorite.wxss */ |
| | | .tabs { |
| | | background-color: #fff; |
| | | padding: 0 40rpx; |
| | | height: 88rpx; |
| | | display: flex; |
| | | justify-content: space-around; |
| | | align-items: center; |
| | | } |
| | | .tabs .item { |
| | | font-size: 30rpx; |
| | | color: #666666; |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: center; |
| | | align-items: center; |
| | | } |
| | | .tabs .item .border { |
| | | width: 40rpx; |
| | | height: 6rpx; |
| | | background-color: #fff; |
| | | margin-top: 16rpx; |
| | | border-radius: 3rpx; |
| | | } |
| | | .tabs .active { |
| | | font-weight: 600; |
| | | font-size: 34rpx; |
| | | color: #222222; |
| | | } |
| | | .tabs .active .border { |
| | | background: #F4CA1C; |
| | | } |
| | | .list { |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | justify-content: space-between; |
| | | padding: 40rpx; |
| | | width: 100%; |
| | | } |
| | | .list .item { |
| | | flex-shrink: 0; |
| | | margin-bottom: 60rpx; |
| | | width: 324rpx; |
| | | } |
| | | .list .item .img_wrap { |
| | | width: 324rpx; |
| | | height: 182rpx; |
| | | border-radius: 8rpx; |
| | | overflow: hidden; |
| | | position: relative; |
| | | } |
| | | .list .item .img_wrap .img { |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | .list .item .img_wrap .new { |
| | | width: 72rpx; |
| | | position: absolute; |
| | | left: 0; |
| | | top: 0; |
| | | z-index: 10; |
| | | } |
| | | .list .item .name { |
| | | margin: 26rpx 0 14rpx; |
| | | } |
| | | .list .item .info { |
| | | display: flex; |
| | | align-items: center; |
| | | color: #666666; |
| | | } |
| | | .list .item .info .icon { |
| | | width: 28rpx; |
| | | margin-right: 8rpx; |
| | | } |
| | | .list .item .info .num { |
| | | margin-right: 16rpx; |
| | | } |
| | | .list .item .info .primary { |
| | | color: var(--themeColor); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | // pages/userinfo/index.js |
| | | Page({ |
| | | |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | name: "", |
| | | // åå¸ãå°å |
| | | region: [], |
| | | address: '' |
| | | }, |
| | | onLoad(options) { |
| | | |
| | | }, |
| | | onSubmit() { |
| | | |
| | | }, |
| | | changeAddr() { |
| | | console.log('ç¹å»äº'); |
| | | wx.chooseLocation({ |
| | | type: 'wgs84', |
| | | success: (res) => { |
| | | console.log('res', res); |
| | | } |
| | | }) |
| | | }, |
| | | bindRegionChange(e) { |
| | | console.log('pickeråééæ©æ¹åï¼æºå¸¦å¼ä¸º', e.detail.value) |
| | | this.setData({ |
| | | region: e.detail.value |
| | | }) |
| | | }, |
| | | selMedia() { |
| | | console.log('dianjile'); |
| | | wx.chooseMedia({ |
| | | count: 1, |
| | | mediaType: ['image'], |
| | | sourceType: ['album', 'camera'], |
| | | maxDuration: 16, |
| | | camera: 'back', |
| | | success(res) { |
| | | console.log(res.tempFiles[0].tempFilePath) |
| | | console.log(res.tempFiles[0].size) |
| | | } |
| | | }) |
| | | }, |
| | | onReady() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢æ¾ç¤º |
| | | */ |
| | | onShow() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢éè |
| | | */ |
| | | onHide() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å¸è½½ |
| | | */ |
| | | onUnload() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ç¸å
³äºä»¶å¤ç彿°--çå¬ç¨æ·ä¸æå¨ä½ |
| | | */ |
| | | onPullDownRefresh() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ä¸æè§¦åºäºä»¶çå¤ç彿° |
| | | */ |
| | | onReachBottom() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * ç¨æ·ç¹å»å³ä¸è§å享 |
| | | */ |
| | | onShareAppMessage() { |
| | | |
| | | } |
| | | }) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "usingComponents": { |
| | | "van-field": "@vant/weapp/field/index" |
| | | }, |
| | | "navigationBarTitleText": "ä¸ªäººèµæ" |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | .avatar{ |
| | | margin: 52rpx auto 40rpx; |
| | | width: 160rpx; |
| | | height: 160rpx; |
| | | border-radius: 50%; |
| | | box-shadow: 0rpx 2rpx 12rpx 0rpx rgba(0,0,0,0.08); |
| | | border: 4rpx solid #FFFFFF; |
| | | border: 1px solid; |
| | | } |
| | | .avatar_btn{ |
| | | width: 168rpx; |
| | | height: 60rpx; |
| | | margin: 0 auto 40rpx; |
| | | line-height: 58rpx; |
| | | text-align: center; |
| | | border-radius: 30rpx; |
| | | border: 1rpx solid #CDA38D; |
| | | font-size: 26rpx; |
| | | color: var(--themeColor); |
| | | } |
| | | .list{ |
| | | padding: 0 40rpx; |
| | | .line{ |
| | | height: 78rpx; |
| | | margin-bottom: 40rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | .label{ |
| | | width: 110rpx; |
| | | font-size: 30rpx; |
| | | color: #777777; |
| | | } |
| | | .input{ |
| | | flex: 1; |
| | | color: #111111; |
| | | } |
| | | .icon{ |
| | | width: 40rpx; |
| | | } |
| | | } |
| | | .val{ |
| | | flex: 1; |
| | | height: 78rpx; |
| | | padding-left: 32rpx; |
| | | border-bottom: 1rpx solid #f7f7f7; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | } |
| | | .save{ |
| | | color: #fff; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | width: 670rpx; |
| | | height: 88rpx; |
| | | background: var(--themeColor); |
| | | border-radius: 8rpx; |
| | | font-weight: 500; |
| | | font-size: 32rpx; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <view class="container"> |
| | | <image class="avatar" src="" mode="widthFix"></image> |
| | | <view bindtap="selMedia" class="avatar_btn">æ´æ¢å¤´å</view> |
| | | <view class="list"> |
| | | <view class="line"> |
| | | <view class="label">æµç§°</view> |
| | | <van-field type="text" class="input" model:value="{{ name }}" maxlength="{{ 18 }}" clearable /> |
| | | </view> |
| | | <view class="line"> |
| | | <view class="label">å§å</view> |
| | | <van-field type="text" class="input" model:value="{{ name }}" maxlength="{{ 18 }}" clearable /> |
| | | </view> |
| | | <view class="line"> |
| | | <view class="label">çµè¯</view> |
| | | <van-field type="number" class="input" model:value="{{ name }}" maxlength="{{ 11 }}" clearable /> |
| | | </view> |
| | | <view class="line"> |
| | | <view class="label">åå¸</view> |
| | | <view class="val"> |
| | | <view class="input"> |
| | | <picker mode="region" bindchange="bindRegionChange" value="{{region}}"> |
| | | <view class="picker {{ region.length > 0 ? '' : 'placeholder9' }}"> |
| | | {{ region.length == 0 ? 'éæ©åå¸' : '' }}{{region[0]}}{{region[1]}}{{region[2]}} |
| | | </view> |
| | | </picker> |
| | | </view> |
| | | <image class="icon" src="../../static/icon/home_ar@2x.png" mode="widthFix"></image> |
| | | </view> |
| | | </view> |
| | | <view class="line"> |
| | | <view class="label">å°å</view> |
| | | <view class="val" bindtap="changeAddr"> |
| | | <view class="input">{{ address }}</view> |
| | | <image class="icon" src="../../static/icon/home_ar@2x.png" mode="widthFix"></image> |
| | | </view> |
| | | </view> |
| | | <view class="line"> |
| | | <view class="label">å°åº</view> |
| | | <van-field type="text" class="input" model:value="{{ name }}" maxlength="{{ 15 }}" clearable /> |
| | | </view> |
| | | <view class="line"> |
| | | <view class="label">é¢ç§¯</view> |
| | | <van-field type="text" class="input" model:value="{{ name }}" maxlength="{{ 15 }}" clearable /> |
| | | </view> |
| | | <view class="line"> |
| | | <view class="label">æ·å</view> |
| | | <van-field type="text" class="input" model:value="{{ name }}" maxlength="{{ 15 }}" clearable /> |
| | | </view> |
| | | <view bindtap="onSubmit" class="save">ä¿å</view> |
| | | </view> |
| | | <!-- --> |
| | | </view> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | .avatar { |
| | | margin: 52rpx auto 40rpx; |
| | | width: 160rpx; |
| | | height: 160rpx; |
| | | border-radius: 50%; |
| | | box-shadow: 0rpx 2rpx 12rpx 0rpx rgba(0, 0, 0, 0.08); |
| | | border: 4rpx solid #FFFFFF; |
| | | border: 1px solid; |
| | | } |
| | | .avatar_btn { |
| | | width: 168rpx; |
| | | height: 60rpx; |
| | | margin: 0 auto 40rpx; |
| | | line-height: 58rpx; |
| | | text-align: center; |
| | | border-radius: 30rpx; |
| | | border: 1rpx solid #CDA38D; |
| | | font-size: 26rpx; |
| | | color: var(--themeColor); |
| | | } |
| | | .list { |
| | | padding: 0 40rpx; |
| | | } |
| | | .list .line { |
| | | height: 78rpx; |
| | | margin-bottom: 40rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | } |
| | | .list .line .label { |
| | | width: 110rpx; |
| | | font-size: 30rpx; |
| | | color: #777777; |
| | | } |
| | | .list .line .input { |
| | | flex: 1; |
| | | color: #111111; |
| | | } |
| | | .list .line .icon { |
| | | width: 40rpx; |
| | | } |
| | | .list .val { |
| | | flex: 1; |
| | | height: 78rpx; |
| | | padding-left: 32rpx; |
| | | border-bottom: 1rpx solid #f7f7f7; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | } |
| | | .list .save { |
| | | color: #fff; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | width: 670rpx; |
| | | height: 88rpx; |
| | | background: var(--themeColor); |
| | | border-radius: 8rpx; |
| | | font-weight: 500; |
| | | font-size: 32rpx; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | // pages/userinfo/mysub.js |
| | | Page({ |
| | | |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | activeTabs: '0' |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å è½½ |
| | | */ |
| | | onLoad(options) { |
| | | |
| | | }, |
| | | tabsChange(e) { |
| | | const activeTabs = e.currentTarget.dataset.val |
| | | this.setData({ activeTabs }) |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å次渲æå®æ |
| | | */ |
| | | onReady() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢æ¾ç¤º |
| | | */ |
| | | onShow() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢éè |
| | | */ |
| | | onHide() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å¸è½½ |
| | | */ |
| | | onUnload() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ç¸å
³äºä»¶å¤ç彿°--çå¬ç¨æ·ä¸æå¨ä½ |
| | | */ |
| | | onPullDownRefresh() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ä¸æè§¦åºäºä»¶çå¤ç彿° |
| | | */ |
| | | onReachBottom() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * ç¨æ·ç¹å»å³ä¸è§å享 |
| | | */ |
| | | onShareAppMessage() { |
| | | |
| | | } |
| | | }) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "usingComponents": {}, |
| | | "navigationBarTitleText": "æçé¢çº¦" |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | .container{ |
| | | background-color: #f7f7f7; |
| | | } |
| | | .tabs{ |
| | | background-color: #fff; |
| | | padding: 0 40rpx; |
| | | height: 88rpx; |
| | | display: flex; |
| | | justify-content: space-around; |
| | | align-items: center; |
| | | .item{ |
| | | font-size: 30rpx; |
| | | color: #666666; |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: center; |
| | | align-items: center; |
| | | .border{ |
| | | width: 40rpx; |
| | | height: 6rpx; |
| | | background-color: #fff; |
| | | margin-top: 16rpx; |
| | | border-radius: 3rpx; |
| | | } |
| | | } |
| | | .active{ |
| | | font-weight: 600; |
| | | font-size: 34rpx; |
| | | color: #222222; |
| | | .border{ |
| | | background: #F4CA1C; |
| | | } |
| | | } |
| | | } |
| | | .list{ |
| | | padding: 30rpx 40rpx; |
| | | .item{ |
| | | width: 670rpx; |
| | | background: linear-gradient( 180deg, #F2E7E1 0%, #FEFEFD 30%, #FFFFFF 100%); |
| | | border-radius: 8rpx; |
| | | padding: 30rpx; |
| | | margin-bottom: 30rpx; |
| | | .header{ |
| | | font-size: 26rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | margin-bottom: 30rpx; |
| | | .name{ |
| | | font-weight: 500; |
| | | font-size: 32rpx; |
| | | margin-right: 18rpx; |
| | | } |
| | | } |
| | | .line{ |
| | | display: flex; |
| | | align-items: center; |
| | | min-height: 40rpx; |
| | | margin-bottom: 20rpx; |
| | | .label{ |
| | | color: #666666; |
| | | width: 140rpx; |
| | | font-size: 28rpx; |
| | | } |
| | | .spe{ |
| | | letter-spacing: 56rpx; |
| | | } |
| | | .val{ |
| | | color: #333333; |
| | | } |
| | | } |
| | | .time{ |
| | | display: flex; |
| | | color: #999999; |
| | | font-size: 24rpx; |
| | | margin-top: 0rpx; |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <view class="container"> |
| | | <view class="tabs"> |
| | | <view class="item {{ activeTabs == '0' ? 'active' : '' }}" data-val="0" bindtap="tabsChange"> |
| | | <view class="name">éæ±</view> |
| | | <view class="border"></view> |
| | | </view> |
| | | <view class="item {{ activeTabs == '1' ? 'active' : '' }}" data-val="1" bindtap="tabsChange"> |
| | | <view class="name">é¢çº¦éå°º</view> |
| | | <view class="border"></view> |
| | | </view> |
| | | <view class="item {{ activeTabs == '2' ? 'active' : '' }}" data-val="2" bindtap="tabsChange"> |
| | | <view class="name">é¢ç®</view> |
| | | <view class="border"></view> |
| | | </view> |
| | | </view> |
| | | <view class="list"> |
| | | <view class="item"> |
| | | <view class="header"> |
| | | <view class="name">name</view> |
| | | <view class="phone">198898</view> |
| | | </view> |
| | | <block wx:if="{{ false }}"> |
| | | <view class="line"> |
| | | <view class="label"><text class="spe">æ§</text>å«</view> |
| | | <view class="val">ç·</view> |
| | | </view> |
| | | <view class="line"> |
| | | <view class="label"><text class="spe">å¹´</text>é¾</view> |
| | | <view class="val">ç·</view> |
| | | </view> |
| | | <view class="line"> |
| | | <view class="label">æå¨åå¸</view> |
| | | <view class="val">ç·</view> |
| | | </view> |
| | | <view class="line"> |
| | | <view class="label">æ·åä¿¡æ¯</view> |
| | | <view class="val">ç·</view> |
| | | </view> |
| | | </block> |
| | | <!-- é¢ç® --> |
| | | <block wx:if="{{ true }}"> |
| | | <view class="line"> |
| | | <view class="label">æ¿å±ç±»å</view> |
| | | <view class="val">ç·</view> |
| | | </view> |
| | | <view class="line"> |
| | | <view class="label">æ·åä¿¡æ¯</view> |
| | | <view class="val">ç·</view> |
| | | </view> |
| | | <view class="line"> |
| | | <view class="label">æ¿å±é¢ç§¯</view> |
| | | <view class="val">ç·</view> |
| | | </view> |
| | | <view class="line"> |
| | | <view class="label">è£
ä¿®é¢ç®</view> |
| | | <view class="val">ç·</view> |
| | | </view> |
| | | </block> |
| | | <view class="time"> |
| | | <view>æäº¤æ¶é´ï¼123213</view> |
| | | </view> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="header"> |
| | | <view class="name">name</view> |
| | | <view class="phone">198898</view> |
| | | </view> |
| | | <block wx:if="{{ false }}"> |
| | | <view class="line"> |
| | | <view class="label"><text class="spe">æ§</text>å«</view> |
| | | <view class="val">ç·</view> |
| | | </view> |
| | | <view class="line"> |
| | | <view class="label"><text class="spe">å¹´</text>é¾</view> |
| | | <view class="val">ç·</view> |
| | | </view> |
| | | <view class="line"> |
| | | <view class="label">æå¨åå¸</view> |
| | | <view class="val">ç·</view> |
| | | </view> |
| | | <view class="line"> |
| | | <view class="label">æ·åä¿¡æ¯</view> |
| | | <view class="val">ç·</view> |
| | | </view> |
| | | </block> |
| | | <!-- é¢ç® --> |
| | | <block wx:if="{{ true }}"> |
| | | <view class="line"> |
| | | <view class="label">æ¿å±ç±»å</view> |
| | | <view class="val">ç·</view> |
| | | </view> |
| | | <view class="line"> |
| | | <view class="label">æ·åä¿¡æ¯</view> |
| | | <view class="val">ç·</view> |
| | | </view> |
| | | <view class="line"> |
| | | <view class="label">æ¿å±é¢ç§¯</view> |
| | | <view class="val">ç·</view> |
| | | </view> |
| | | <view class="line"> |
| | | <view class="label">è£
ä¿®é¢ç®</view> |
| | | <view class="val">ç·</view> |
| | | </view> |
| | | </block> |
| | | <view class="time"> |
| | | <view>æäº¤æ¶é´ï¼123213</view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | .container { |
| | | background-color: #f7f7f7; |
| | | } |
| | | .tabs { |
| | | background-color: #fff; |
| | | padding: 0 40rpx; |
| | | height: 88rpx; |
| | | display: flex; |
| | | justify-content: space-around; |
| | | align-items: center; |
| | | } |
| | | .tabs .item { |
| | | font-size: 30rpx; |
| | | color: #666666; |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: center; |
| | | align-items: center; |
| | | } |
| | | .tabs .item .border { |
| | | width: 40rpx; |
| | | height: 6rpx; |
| | | background-color: #fff; |
| | | margin-top: 16rpx; |
| | | border-radius: 3rpx; |
| | | } |
| | | .tabs .active { |
| | | font-weight: 600; |
| | | font-size: 34rpx; |
| | | color: #222222; |
| | | } |
| | | .tabs .active .border { |
| | | background: #F4CA1C; |
| | | } |
| | | .list { |
| | | padding: 30rpx 40rpx; |
| | | } |
| | | .list .item { |
| | | width: 670rpx; |
| | | background: linear-gradient(180deg, #F2E7E1 0%, #FEFEFD 30%, #FFFFFF 100%); |
| | | border-radius: 8rpx; |
| | | padding: 30rpx; |
| | | margin-bottom: 30rpx; |
| | | } |
| | | .list .item .header { |
| | | font-size: 26rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | margin-bottom: 30rpx; |
| | | } |
| | | .list .item .header .name { |
| | | font-weight: 500; |
| | | font-size: 32rpx; |
| | | margin-right: 18rpx; |
| | | } |
| | | .list .item .line { |
| | | display: flex; |
| | | align-items: center; |
| | | min-height: 40rpx; |
| | | margin-bottom: 20rpx; |
| | | } |
| | | .list .item .line .label { |
| | | color: #666666; |
| | | width: 140rpx; |
| | | font-size: 28rpx; |
| | | } |
| | | .list .item .line .spe { |
| | | letter-spacing: 56rpx; |
| | | } |
| | | .list .item .line .val { |
| | | color: #333333; |
| | | } |
| | | .list .item .time { |
| | | display: flex; |
| | | color: #999999; |
| | | font-size: 24rpx; |
| | | margin-top: 0rpx; |
| | | } |
| | |
| | | { |
| | | "projectname": "wechat_jiaxuan", |
| | | "setting": { |
| | | "compileHotReLoad": true |
| | | "compileHotReLoad": true, |
| | | "urlCheck": false |
| | | }, |
| | | "description": "项ç®ç§æé
ç½®æä»¶ãæ¤æä»¶ä¸çå
容å°è¦ç project.config.json ä¸çç¸ååæ®µã项ç®çæ¹å¨ä¼å
忥尿¤æä»¶ä¸ãè¯¦è§ææ¡£ï¼https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", |
| | | "libVersion": "3.4.9", |
| | | "libVersion": "2.22.1", |
| | | "condition": { |
| | | "miniprogram": { |
| | | "list": [ |
| | | { |
| | | "name": "", |
| | | "pathName": "pages/discover/discover", |
| | | "pathName": "pages/index/index", |
| | | "query": "", |
| | | "launchMode": "default", |
| | | "scene": null |
| | |
| | | }, |
| | | { |
| | | "name": "", |
| | | "pathName": "pages/consult/detail", |
| | | "pathName": "pages/mine/mine", |
| | | "query": "", |
| | | "launchMode": "default", |
| | | "scene": null |
| | | }, |
| | | { |
| | | "name": "", |
| | | "pathName": "pages/store/store", |
| | | "query": "", |
| | | "launchMode": "default", |
| | | "scene": null |
| | | }, |
| | | { |
| | | "name": "", |
| | | "pathName": "pages/store/info", |
| | | "pathName": "pages/sets/index", |
| | | "query": "", |
| | | "launchMode": "default", |
| | | "scene": null |