chore: 使用代码从数码喷墨墨水-2285-xcx.aigc-quickapp.com/2025-12-23
This commit is contained in:
217
README.md
Normal file
217
README.md
Normal file
@@ -0,0 +1,217 @@
|
||||
# POCT检测分析平台微信小程序项目
|
||||
|
||||
## 项目介绍
|
||||
|
||||
本项目是为POCT检测分析平台客户定制开发的微信小程序,用于展示和销售POCT检测分析平台产品,提供在线购物、订单管理、用户中心等功能。
|
||||
|
||||
- **客户名称**:POCT检测分析平台
|
||||
- **uniacid**:2281
|
||||
- **后台网站地址**:https://xcx.aigc-quickapp.com
|
||||
|
||||
## 项目结构
|
||||
|
||||
```
|
||||
├── app.js # 小程序入口文件
|
||||
├── app.json # 小程序全局配置
|
||||
├── app.wxss # 小程序全局样式
|
||||
├── common/ # 公共文件目录
|
||||
│ ├── main.js # 主入口文件
|
||||
│ ├── main.wxss # 主样式文件
|
||||
│ ├── runtime.js # 运行时文件
|
||||
│ └── vendor.js # 第三方依赖文件
|
||||
├── components/ # 自定义组件目录
|
||||
│ ├── common-payment/ # 公共支付组件
|
||||
│ ├── diy-components/ # DIY组件
|
||||
│ ├── hover-nav/ # 悬浮导航组件
|
||||
│ ├── loading-cover/ # 加载遮罩组件
|
||||
│ ├── mescroll/ # 滚动加载组件
|
||||
│ ├── ns-adv/ # 广告组件
|
||||
│ ├── ns-contact/ # 联系组件
|
||||
│ ├── ns-copyright/ # 版权组件
|
||||
│ ├── ns-empty/ # 空状态组件
|
||||
│ ├── ns-form/ # 表单组件
|
||||
│ ├── ns-goods-action/# 商品操作组件
|
||||
│ ├── ns-goods-sku/ # 商品SKU组件
|
||||
│ ├── ns-loading/ # 加载组件
|
||||
│ ├── ns-login/ # 登录组件
|
||||
│ ├── ns-navbar/ # 导航栏组件
|
||||
│ ├── ns-new-gift/ # 新手礼品组件
|
||||
│ ├── ns-newform/ # 新表单组件
|
||||
│ ├── ns-payment/ # 支付组件
|
||||
│ ├── ns-select-time/ # 时间选择组件
|
||||
│ ├── ns-switch/ # 开关组件
|
||||
│ ├── payment/ # 支付相关组件
|
||||
│ ├── pick-regions/ # 地区选择组件
|
||||
│ ├── register-reward/# 注册奖励组件
|
||||
│ └── toTop/ # 返回顶部组件
|
||||
├── pages/ # 页面目录
|
||||
│ ├── contact/ # 联系我们页面
|
||||
│ ├── goods/ # 商品相关页面
|
||||
│ ├── index/ # 首页
|
||||
│ ├── member/ # 会员中心
|
||||
│ └── order/ # 订单相关页面
|
||||
├── pages_promotion/ # 促销活动页面
|
||||
├── pages_tool/ # 工具页面
|
||||
├── project.config.json # 微信开发者工具配置
|
||||
├── site.js # 站点配置文件
|
||||
├── static/ # 静态资源目录
|
||||
│ └── img/ # 图片资源
|
||||
└── uni_modules/ # uni_modules模块
|
||||
```
|
||||
|
||||
## 技术栈
|
||||
|
||||
- **开发框架**:微信小程序原生开发
|
||||
- **组件库**:自定义组件 + uni_modules
|
||||
- **数据请求**:微信小程序原生API
|
||||
- **状态管理**:小程序全局状态
|
||||
|
||||
## 安装和运行
|
||||
|
||||
### 环境要求
|
||||
|
||||
- 微信开发者工具
|
||||
- Node.js (可选,用于依赖管理)
|
||||
|
||||
### 安装步骤
|
||||
|
||||
1. 克隆或下载项目到本地
|
||||
2. 打开微信开发者工具
|
||||
3. 导入项目目录
|
||||
4. 配置appid(如果需要)
|
||||
5. 点击编译运行
|
||||
|
||||
## 项目配置
|
||||
|
||||
### 站点配置
|
||||
|
||||
在`site.js`文件中配置站点信息:
|
||||
|
||||
```javascript
|
||||
module.exports={
|
||||
baseUrl: "https://xcx.aigc-quickapp.com", // 后台接口地址
|
||||
uniacid: 2281 // 站点ID
|
||||
};
|
||||
```
|
||||
|
||||
### 全局配置
|
||||
|
||||
在`app.json`文件中配置小程序的全局设置,包括页面路径、窗口样式、tabBar等。
|
||||
|
||||
## 主要功能模块
|
||||
|
||||
### 首页
|
||||
- 轮播图展示
|
||||
- 商品分类导航
|
||||
- 热门商品推荐
|
||||
- 促销活动展示
|
||||
|
||||
### 商品模块
|
||||
- 商品列表展示
|
||||
- 商品详情查看
|
||||
- 商品SKU选择
|
||||
- 商品搜索功能
|
||||
|
||||
### 购物车
|
||||
- 商品添加/删除
|
||||
- 商品数量调整
|
||||
- 购物车结算
|
||||
|
||||
### 订单模块
|
||||
- 订单生成
|
||||
- 订单列表
|
||||
- 订单详情
|
||||
- 订单支付
|
||||
- 订单售后
|
||||
|
||||
### 会员中心
|
||||
- 用户信息管理
|
||||
- 收货地址管理
|
||||
- 优惠券管理
|
||||
- 积分管理
|
||||
- 充值功能
|
||||
|
||||
### 联系我们
|
||||
- 联系方式展示
|
||||
- 在线客服
|
||||
|
||||
## 开发注意事项
|
||||
|
||||
1. 所有接口请求需通过`baseUrl`配置的后台地址
|
||||
2. 组件使用需遵循微信小程序组件规范
|
||||
3. 页面跳转需使用微信小程序导航API
|
||||
4. 数据缓存需使用微信小程序存储API
|
||||
5. 开发过程中需注意小程序的尺寸限制和性能优化
|
||||
|
||||
## 部署说明
|
||||
|
||||
1. 在微信开发者工具中点击"上传"
|
||||
2. 填写版本号和更新日志
|
||||
3. 登录微信公众平台
|
||||
4. 进入版本管理
|
||||
5. 提交审核
|
||||
6. 审核通过后发布上线
|
||||
|
||||
## 项目发布
|
||||
|
||||
### 使用 release.js 脚本发布
|
||||
|
||||
1. 确保已安装 Node.js 环境
|
||||
2. 在项目根目录执行以下命令:
|
||||
```bash
|
||||
# 默认清理dist目录(除zip文件外)并压缩所有文件
|
||||
node release.js
|
||||
|
||||
# 保留dist目录下的所有内容
|
||||
node release.js --keep-dist
|
||||
node release.js -k
|
||||
|
||||
# 查看帮助信息
|
||||
node release.js --help
|
||||
node release.js -h
|
||||
```
|
||||
|
||||
### 命令行选项说明
|
||||
|
||||
| 选项 | 简写 | 说明 |
|
||||
|------|------|------|
|
||||
| `--keep-dist` | `-k` | 保留dist目录下的所有内容,不进行清理 |
|
||||
| `--help` | `-h` | 显示帮助信息 |
|
||||
|
||||
### 生成文件说明
|
||||
|
||||
- **输出目录**:项目根目录下的 `dist/` 文件夹
|
||||
- **主要文件**:
|
||||
- 压缩后的小程序源代码文件
|
||||
- 按日期命名的 ZIP 压缩包(格式:`POCT检测分析平台-定制化-YYYY-MM-DD-mp-weixin.zip`)
|
||||
|
||||
### 文件压缩功能
|
||||
|
||||
release.js脚本支持对以下文件类型进行压缩优化:
|
||||
|
||||
- **WXML**:移除注释和空白字符
|
||||
- **JS**:移除注释和空白字符,保留中文编码
|
||||
- **CSS**:移除注释、空白字符及CSS属性前后空格
|
||||
- **JSON**:移除空白字符,保留中文编码
|
||||
|
||||
### 交付给发布人员的文件格式
|
||||
|
||||
- 交付文件:`dist/` 目录下生成的 ZIP 压缩包
|
||||
- 文件命名:`POCT检测分析平台-定制化-YYYY-MM-DD-mp-weixin.zip`(YYYY-MM-DD 为当前日期)
|
||||
- 交付内容:包含完整的小程序源代码,已进行WXML、JS、CSS、JSON文件的压缩优化
|
||||
|
||||
发布人员可直接使用此 ZIP 压缩包进行小程序上线发布操作。
|
||||
|
||||
## 维护和更新
|
||||
|
||||
- 定期检查后台接口变化
|
||||
- 及时更新小程序版本
|
||||
- 修复用户反馈的问题
|
||||
- 优化用户体验
|
||||
|
||||
## 联系方式
|
||||
|
||||
如有问题或建议,请联系技术支持:
|
||||
- 后台管理地址:https://xcx.aigc-quickapp.com
|
||||
- 客户名称:POCT检测分析平台
|
||||
- uniacid:2281
|
||||
187
app.json
187
app.json
@@ -1,186 +1 @@
|
||||
{
|
||||
"pages": [
|
||||
"pages/index/index",
|
||||
"pages/contact/contact",
|
||||
"pages/goods/cart",
|
||||
"pages/goods/category",
|
||||
"pages/goods/detail",
|
||||
"pages/goods/list",
|
||||
"pages/member/index",
|
||||
"pages/order/payment",
|
||||
"pages/order/list",
|
||||
"pages/order/detail",
|
||||
"pages/order/detail_local_delivery",
|
||||
"pages/order/detail_pickup",
|
||||
"pages/order/detail_point"
|
||||
],
|
||||
"subPackages": [
|
||||
{
|
||||
"root": "pages_promotion",
|
||||
"pages": [
|
||||
"point/list",
|
||||
"point/goods_list",
|
||||
"point/detail",
|
||||
"point/payment",
|
||||
"point/order_list",
|
||||
"point/result",
|
||||
"merch/merchcategory",
|
||||
"merch/detail",
|
||||
"fenxiao/index",
|
||||
"fenxiao/promote",
|
||||
"fenxiao/apply",
|
||||
"fenxiao/order",
|
||||
"fenxiao/relation",
|
||||
"fenxiao/order_detail",
|
||||
"fenxiao/team",
|
||||
"fenxiao/withdraw_apply",
|
||||
"fenxiao/withdraw_list",
|
||||
"fenxiao/withdrawal_detail",
|
||||
"fenxiao/promote_code",
|
||||
"fenxiao/level",
|
||||
"fenxiao/goods_list",
|
||||
"fenxiao/bill",
|
||||
"fenxiao/ranking_list",
|
||||
"fenxiao/child_fenxiao"
|
||||
]
|
||||
},
|
||||
{
|
||||
"root": "pages_tool",
|
||||
"pages": [
|
||||
"seal/medium/search",
|
||||
"seal/medium/detail",
|
||||
"seal/structure",
|
||||
"cases/index",
|
||||
"files/list",
|
||||
"weapp/order_shipping",
|
||||
"agreement/contenr",
|
||||
"vr/index",
|
||||
"webview/webview",
|
||||
"index/diy",
|
||||
"member/modify_face",
|
||||
"member/account",
|
||||
"member/account_edit",
|
||||
"member/apply_withdrawal",
|
||||
"member/balance",
|
||||
"member/balance_detail",
|
||||
"member/collection",
|
||||
"member/coupon",
|
||||
"member/contact",
|
||||
"member/footprint",
|
||||
"member/level",
|
||||
"member/card",
|
||||
"member/card_buy",
|
||||
"member/card_agreement",
|
||||
"member/level_growth_rules",
|
||||
"member/point",
|
||||
"member/point_detail",
|
||||
"member/withdrawal",
|
||||
"member/withdrawal_detail",
|
||||
"member/address",
|
||||
"member/address_edit",
|
||||
"member/pay_password",
|
||||
"member/cancellation",
|
||||
"member/assets",
|
||||
"member/cancelstatus",
|
||||
"member/cancelsuccess",
|
||||
"member/cancelrefuse",
|
||||
"member/info",
|
||||
"member/info_edit",
|
||||
"login/find",
|
||||
"goods/coupon",
|
||||
"goods/coupon_receive",
|
||||
"goods/evaluate",
|
||||
"goods/search",
|
||||
"goods/brand",
|
||||
"goods/not_exist",
|
||||
"help/list",
|
||||
"help/detail",
|
||||
"notice/list",
|
||||
"notice/detail",
|
||||
"article/list",
|
||||
"article/detail",
|
||||
"recharge/list",
|
||||
"recharge/order_list",
|
||||
"member/invite_friends",
|
||||
"pay/index",
|
||||
"pay/wx_pay",
|
||||
"pay/result",
|
||||
"pay/cashier",
|
||||
"storeclose/storeclose",
|
||||
"order/logistics",
|
||||
"order/evaluate",
|
||||
"order/refund",
|
||||
"order/refund_goods_select",
|
||||
"order/refund_type_select",
|
||||
"order/refund_batch",
|
||||
"order/refund_detail",
|
||||
"order/activist",
|
||||
"order/detail_virtual",
|
||||
"login/login",
|
||||
"form/formdata"
|
||||
]
|
||||
}
|
||||
],
|
||||
"window": {
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarTitleText": "",
|
||||
"navigationBarBackgroundColor": "#ffffff",
|
||||
"backgroundColor": "#F7f7f7",
|
||||
"backgroundColorTop": "#f7f7f7",
|
||||
"backgroundColorBottom": "#f7f7f7"
|
||||
},
|
||||
"tabBar": {
|
||||
"color": "#333",
|
||||
"selectedColor": "#FF0036",
|
||||
"backgroundColor": "#fff",
|
||||
"borderStyle": "white",
|
||||
"list": [
|
||||
{
|
||||
"pagePath": "pages/index/index",
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/goods/category",
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/contact/contact",
|
||||
"text": ""
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/member/index",
|
||||
"text": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
"preloadRule": {
|
||||
"pages/index/index": {
|
||||
"network": "all",
|
||||
"packages": [
|
||||
"pages_tool"
|
||||
]
|
||||
}
|
||||
},
|
||||
"permission": {
|
||||
"scope.userLocation": {
|
||||
"desc": "为了更好地为您提供服务"
|
||||
},
|
||||
"scope.writePhotosAlbum": {
|
||||
"desc": "为了更好地为您提供服务"
|
||||
}
|
||||
},
|
||||
"requiredPrivateInfos": [
|
||||
"chooseLocation",
|
||||
"getLocation",
|
||||
"chooseAddress"
|
||||
],
|
||||
"__usePrivacyCheck__": true,
|
||||
"usingComponents": {
|
||||
"loading-cover": "/components/loading-cover/loading-cover",
|
||||
"ns-empty": "/components/ns-empty/ns-empty",
|
||||
"mescroll-uni": "/components/mescroll/my-list-mescroll",
|
||||
"mescroll-body": "/components/mescroll/mescroll-body",
|
||||
"ns-login": "/components/ns-login/ns-login",
|
||||
"privacy-popup": "/components/wx-privacy-popup/privacy-popup"
|
||||
}
|
||||
}
|
||||
{"pages":["pages/index/index","pages/contact/contact","pages/goods/cart","pages/goods/category","pages/goods/detail","pages/goods/list","pages/member/index","pages/order/payment","pages/order/list","pages/order/detail","pages/order/detail_local_delivery","pages/order/detail_pickup","pages/order/detail_point"],"subPackages":[{"root":"pages_promotion","pages":["point/list","point/goods_list","point/detail","point/payment","point/order_list","point/result","merch/merchcategory","merch/detail","fenxiao/index","fenxiao/promote","fenxiao/apply","fenxiao/order","fenxiao/relation","fenxiao/order_detail","fenxiao/team","fenxiao/withdraw_apply","fenxiao/withdraw_list","fenxiao/withdrawal_detail","fenxiao/promote_code","fenxiao/level","fenxiao/goods_list","fenxiao/bill","fenxiao/ranking_list","fenxiao/child_fenxiao"]},{"root":"pages_tool","pages":["seal/medium/search","seal/medium/detail","seal/structure","cases/index","files/list","weapp/order_shipping","agreement/contenr","vr/index","webview/webview","index/diy","member/modify_face","member/account","member/account_edit","member/apply_withdrawal","member/balance","member/balance_detail","member/collection","member/coupon","member/contact","member/footprint","member/level","member/card","member/card_buy","member/card_agreement","member/level_growth_rules","member/point","member/point_detail","member/withdrawal","member/withdrawal_detail","member/address","member/address_edit","member/pay_password","member/cancellation","member/assets","member/cancelstatus","member/cancelsuccess","member/cancelrefuse","member/info","member/info_edit","login/find","goods/coupon","goods/coupon_receive","goods/evaluate","goods/search","goods/brand","goods/not_exist","help/list","help/detail","notice/list","notice/detail","article/list","article/detail","recharge/list","recharge/order_list","member/invite_friends","pay/index","pay/wx_pay","pay/result","pay/cashier","storeclose/storeclose","order/logistics","order/evaluate","order/refund","order/refund_goods_select","order/refund_type_select","order/refund_batch","order/refund_detail","order/activist","order/detail_virtual","login/login","form/formdata"]}],"window":{"navigationBarTextStyle":"black","navigationBarTitleText":"","navigationBarBackgroundColor":"#ffffff","backgroundColor":"#F7f7f7","backgroundColorTop":"#f7f7f7","backgroundColorBottom":"#f7f7f7"},"tabBar":{"color":"#333","selectedColor":"#FF0036","backgroundColor":"#fff","borderStyle":"white","list":[{"pagePath":"pages/index/index","text":""},{"pagePath":"pages/goods/category","text":""},{"pagePath":"pages/contact/contact","text":""},{"pagePath":"pages/member/index","text":""}]},"preloadRule":{"pages/index/index":{"network":"all","packages":["pages_tool"]}},"permission":{"scope.userLocation":{"desc":"为了更好地为您提供服务"},"scope.writePhotosAlbum":{"desc":"为了更好地为您提供服务"}},"requiredPrivateInfos":["chooseLocation","getLocation","chooseAddress"],"__usePrivacyCheck__":true,"usingComponents":{"loading-cover":"/components/loading-cover/loading-cover","ns-empty":"/components/ns-empty/ns-empty","mescroll-uni":"/components/mescroll/my-list-mescroll","mescroll-body":"/components/mescroll/mescroll-body","ns-login":"/components/ns-login/ns-login","privacy-popup":"/components/wx-privacy-popup/privacy-popup"}}
|
||||
1
common/main.js
Normal file
1
common/main.js
Normal file
File diff suppressed because one or more lines are too long
2
common/main.wxss
Normal file
2
common/main.wxss
Normal file
File diff suppressed because one or more lines are too long
4
common/runtime.js
Normal file
4
common/runtime.js
Normal file
File diff suppressed because one or more lines are too long
14
common/vendor.js
Normal file
14
common/vendor.js
Normal file
File diff suppressed because one or more lines are too long
10
components/common-payment/common-payment.js
Normal file
10
components/common-payment/common-payment.js
Normal file
File diff suppressed because one or more lines are too long
1
components/common-payment/common-payment.json
Normal file
1
components/common-payment/common-payment.json
Normal file
@@ -0,0 +1 @@
|
||||
{"component":true,"usingComponents":{"ns-form":"/components/ns-form/ns-form","payment":"/components/payment/payment","uni-popup":"/components/uni-popup/uni-popup","ns-empty":"/components/ns-empty/ns-empty","ns-select-time":"/components/ns-select-time/ns-select-time","ns-login":"/components/ns-login/ns-login","loading-cover":"/components/loading-cover/loading-cover"}}
|
||||
1
components/common-payment/common-payment.wxml
Normal file
1
components/common-payment/common-payment.wxml
Normal file
File diff suppressed because one or more lines are too long
2
components/common-payment/common-payment.wxss
Normal file
2
components/common-payment/common-payment.wxss
Normal file
File diff suppressed because one or more lines are too long
10
components/diy-components/diy-article.js
Normal file
10
components/diy-components/diy-article.js
Normal file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-article"],{"0fe2":function(t,e,o){"use strict";var i=o("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(o("af34")),r={name:"diy-article",props:{value:{type:Object,default:function(){return{count:6,style:"style-1",ornament:{type:""},componentBgColor:"#ffffff",elementBgColor:"#f5f5f5"}}}},data:function(){return{list:[],loading:!0,skeletonConfig:{gridRows:3,gridRowsGap:"20rpx",headWidth:"160rpx",headHeight:"120rpx",textRows:2}}},created:function(){this.getList()},watch:{componentRefresh:function(t){t&&this.getList()}},computed:{warpCss:function(){var t="";return t+="background-color:"+this.value.componentBgColor+";","round"===this.value.componentAngle&&(t+="border-top-left-radius:"+2*(this.value.topAroundRadius||0)+"rpx;",t+="border-top-right-radius:"+2*(this.value.topAroundRadius||0)+"rpx;",t+="border-bottom-left-radius:"+2*(this.value.bottomAroundRadius||0)+"rpx;",t+="border-bottom-right-radius:"+2*(this.value.bottomAroundRadius||0)+"rpx;"),t},itemCss:function(){var t,e,o="";return o+="background-color:"+this.value.elementBgColor+";","round"===this.value.elementAngle&&(o+="border-top-left-radius:"+2*(this.value.topElementAroundRadius||0)+"rpx;",o+="border-top-right-radius:"+2*(this.value.topElementAroundRadius||0)+"rpx;",o+="border-bottom-left-radius:"+2*(this.value.bottomElementAroundRadius||0)+"rpx;",o+="border-bottom-right-radius:"+2*(this.value.bottomElementAroundRadius||0)+"rpx;"),"shadow"===(null===(t=this.value.ornament)||void 0===t?void 0:t.type)&&(o+="box-shadow: 0 0 10rpx "+(this.value.ornament.color||"#ccc")),"stroke"===(null===(e=this.value.ornament)||void 0===e?void 0:e.type)&&(o+="border: 2rpx solid "+(this.value.ornament.color||"#eee")),o}},methods:{getList:function(){var t,e=this;this.loading=!0;var o={num:this.value.count||6};"diy"===this.value.sources&&null!==(t=this.value.articleIds)&&void 0!==t&&t.length&&(o.num=0,o.article_id_arr=this.value.articleIds.toString()),this.$api.sendRequest({url:"/api/article/lists",data:o,success:function(t){0===t.code&&t.data&&(e.list=t.data,e.list.length<6&&(e.list=[].concat((0,n.default)(e.list),(0,n.default)(e.list)))),e.loading=!1},fail:function(){e.loading=!1}})},toDetail:function(t){this.$util.redirectTo("/pages_tool/article/detail",{article_id:t.article_id})},imgError:function(t){this.list[t]&&(this.list[t].cover_img=this.$util.getDefaultImage().article)}}};e.default=r},"4f0d":function(t,e,o){"use strict";o.r(e);var i=o("c331"),n=o("acc0");for(var r in n)["default"].indexOf(r)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(r);o("f135");var a=o("828b"),u=Object(a["a"])(n["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=u.exports},acc0:function(t,e,o){"use strict";o.r(e);var i=o("0fe2"),n=o.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},c0f6:function(t,e,o){},c331:function(t,e,o){"use strict";o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return r})),o.d(e,"a",(function(){return i}));var i={xSkeleton:function(){return Promise.all([o.e("common/vendor"),o.e("uni_modules/x-skeleton/components/x-skeleton/x-skeleton")]).then(o.bind(null,"1226"))}},n=function(){var t=this,e=t.$createElement,o=(t._self._c,t.__map(t.list,(function(e,o){var i=t.__get_orig(e),n=t.$util.img(e.cover_img);return{$orig:i,g0:n}})));t.$mp.data=Object.assign({},{$root:{l0:o}})},r=[]},f135:function(t,e,o){"use strict";var i=o("c0f6"),n=o.n(i);n.a}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/diy-components/diy-article-create-component',
|
||||
{
|
||||
'components/diy-components/diy-article-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("4f0d"))
|
||||
})
|
||||
},
|
||||
[['components/diy-components/diy-article-create-component']]
|
||||
]);
|
||||
1
components/diy-components/diy-article.json
Normal file
1
components/diy-components/diy-article.json
Normal file
@@ -0,0 +1 @@
|
||||
{"component":true,"usingComponents":{"x-skeleton":"/uni_modules/x-skeleton/components/x-skeleton/x-skeleton"}}
|
||||
1
components/diy-components/diy-article.wxml
Normal file
1
components/diy-components/diy-article.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<x-skeleton vue-id="e4cd7724-1" type="list" loading="{{loading}}" configs="{{skeletonConfig}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="article-wrap" style="{{(warpCss)}}"><view class="{{['list-wrap',value.style]}}" style="{{(warpCss)}}"><swiper class="swiper" vertical="{{true}}" duration="{{500}}" autoplay="{{true}}" circular="{{true}}" interval="{{3000}}" display-multiple-items="{{3}}"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><swiper-item data-event-opts="{{[['tap',[['toDetail',['$0'],[[['list','',index]]]]]]]}}" class="{{['item',value.ornament.type]}}" style="{{(itemCss)}}" bindtap="__e"><view class="swiper-item-content"><view class="article-img"><image class="cover-img" src="{{item.g0}}" mode="widthFix" data-event-opts="{{[['error',[['imgError',[index]]]]]}}" binderror="__e"></image></view><view class="info-wrap"><text class="title">{{item.$orig.article_title}}</text><text class="desc">{{''+item.$orig.article_abstract+''}}</text></view></view></swiper-item></block></swiper></view></view></x-skeleton>
|
||||
1
components/diy-components/diy-article.wxss
Normal file
1
components/diy-components/diy-article.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.article-wrap{padding:15rpx}.article-wrap .list-wrap{width:100%}.article-wrap .list-wrap.style-1 .item{margin:10rpx 0;padding:15rpx;box-sizing:border-box}.article-wrap .list-wrap.style-1 .item .swiper-item-content{display:flex;align-items:center}.article-wrap .list-wrap.style-1 .item .article-img{width:120rpx;height:120rpx;margin-right:20rpx;flex-shrink:0;overflow:hidden;border-radius:8rpx}.article-wrap .list-wrap.style-1 .item .article-img .cover-img{width:100%;height:100%;object-fit:cover}.article-wrap .list-wrap.style-1 .item .info-wrap{flex:1;overflow:hidden}.article-wrap .list-wrap.style-1 .item .info-wrap .title{font-size:28rpx;font-weight:500;line-height:1.4;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;margin-bottom:8rpx;display:block}.article-wrap .list-wrap.style-1 .item .info-wrap .desc{color:#888;font-size:24rpx;line-height:1.4;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.swiper{height:480rpx;width:100%}swiper-item{height:160rpx!important}
|
||||
10
components/diy-components/diy-audio.js
Normal file
10
components/diy-components/diy-audio.js
Normal file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-audio"],{"06ff":function(t,i,a){"use strict";a.d(i,"b",(function(){return e})),a.d(i,"c",(function(){return o})),a.d(i,"a",(function(){}));var e=function(){var t=this.$createElement,i=(this._self._c,"style-2"!=this.value.type?this.$util.img(this.value.imageUrl):null);this.$mp.data=Object.assign({},{$root:{g0:i}})},o=[]},6982:function(t,i,a){"use strict";var e=a("eade"),o=a.n(e);o.a},abc0:function(t,i,a){"use strict";a.r(i);var e=a("b482"),o=a.n(e);for(var u in e)["default"].indexOf(u)<0&&function(t){a.d(i,t,(function(){return e[t]}))}(u);i["default"]=o.a},b482:function(t,i,a){"use strict";(function(t){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var a={name:"diy-audio",props:{value:{type:Object}},data:function(){return{audiosObj:[],audios:{},audioContext:null,audiotime:"00:01",audiowidth:0,status:0}},created:function(){this.audios[this.value.id]={audiotime:"00:01",audiowidth:0}},watch:{componentRefresh:function(t){}},computed:{videoWarpCss:function(){var t="";return"round"==this.value.componentAngle&&(t+="border-top-left-radius:"+2*this.value.topAroundRadius+"rpx;",t+="border-top-right-radius:"+2*this.value.topAroundRadius+"rpx;",t+="border-bottom-left-radius:"+2*this.value.bottomAroundRadius+"rpx;",t+="border-bottom-right-radius:"+2*this.value.bottomAroundRadius+"rpx;"),t}},methods:{play:function(){var i=this.value.id,a=this.audiosObj[i]||!1;this.$util.img(this.value.audioUrl);if(!a){a=t.createInnerAudioContext("audio_"+i);var e=this.audiosObj;e[i]=a,this.audiosObj=e;var o=t.getStorageSync("audio_list")?t.getStorageSync("audio_list"):[];0==o.includes(i)&&(o.push(i),t.setStorageSync("audio_list",o))}console.log(t.getStorageSync("audio_list"));var u=this;a.onPlay((function(){var t=setInterval((function(){var e=a.currentTime/a.duration*100+"%",o=Math.floor(Math.ceil(a.currentTime)/60),s=(Math.ceil(a.currentTime)%60/100).toFixed(2).slice(-2),n=Math.ceil(a.currentTime);o<10&&(o="0"+o);var d=o+":"+s,r=u.audios;r[i].audiowidth=e,r[i].Time=t,r[i].audiotime=d,r[i].seconds=n,u.audios=r}),1e3)}));var s=u.$util.img(u.value.audioUrl),n=u.audios[u.value.id].seconds||0,d=u.audios;d[i]||(d[i]={}),a.paused&&0==n?(a.src=s,a.play(),a.loop=!0,d[i].status=!0,u.status=!0,u.pauseOther(i)):a.paused&&n>0?(a.play(),a.seek(n),d[i].status=!0,u.status=!0,u.pauseOther(i)):(a.pause(),d[i].status=!1,u.status=!1),u.audios=d,console.log(u.audios)},pauseOther:function(t){this.audiosObj[this.value.id],this.value.id;var i=document.getElementsByTagName("audio");function a(){var t=this;[].forEach.call(i,(function(i){i!==t&&i.pause()}))}[].forEach.call(i,(function(t){t.addEventListener("play",a.bind(t))}))},play_bak:function(){var i=this,a=this.value.id;this.audioContext=t.createInnerAudioContext("audio_"+this.value.id),this.audioContext.src=this.$util.img(this.value.audioUrl);var e=this;if(1==this.status)return this.audioContext.pause(),this.status=0,!1;this.audioContext.play(),this.status=1,this.audioContext.onCanplay((function(t){var i=setInterval((function(){var t=parseFloat(e.audioContext.currentTime)/parseFloat(e.audioContext.duration)*100+"%",o=Math.floor(Math.ceil(e.audioContext.currentTime)/60),u=(Math.ceil(e.audioContext.currentTime)%60/100).toFixed(2).slice(-2),s=Math.ceil(e.audioContext.currentTime);o<10&&(o="0"+o);var n=o+":"+u,d=e.audios;d[a].audiowidth=t,d[a].Time=i,d[a].audiotime=n,d[a].seconds=s,e.audios=d,console.log(e.audios[e.value.id].audiotime),e.audiotime=e.audios[e.value.id].audiotime,e.audiowidth=e.audios[e.value.id].audiowidth,console.log(t),e.lyg=t}),1e3)})),this.audioContext.onEnded((function(){console.log("播放结束"),i.status=0}))}}};i.default=a}).call(this,a("df3c")["default"])},eade:function(t,i,a){},f585:function(t,i,a){"use strict";a.r(i);var e=a("06ff"),o=a("abc0");for(var u in o)["default"].indexOf(u)<0&&function(t){a.d(i,t,(function(){return o[t]}))}(u);a("6982");var s=a("828b"),n=Object(s["a"])(o["default"],e["b"],e["c"],!1,null,"2b17e9e0",null,!1,e["a"],void 0);i["default"]=n.exports}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/diy-components/diy-audio-create-component',
|
||||
{
|
||||
'components/diy-components/diy-audio-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("f585"))
|
||||
})
|
||||
},
|
||||
[['components/diy-components/diy-audio-create-component']]
|
||||
]);
|
||||
1
components/diy-components/diy-audio.json
Normal file
1
components/diy-components/diy-audio.json
Normal file
@@ -0,0 +1 @@
|
||||
{"component":true,"usingComponents":{}}
|
||||
1
components/diy-components/diy-audio.wxml
Normal file
1
components/diy-components/diy-audio.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<view class="data-v-2b17e9e0"><block wx:if="{{value.type=='style-2'}}"><view class="fui-audio style1 data-v-2b17e9e0" style="{{'background:'+(value.background)+';'}}"><view class="content data-v-2b17e9e0" style="padding-top:20rpx;"><view class="name data-v-2b17e9e0" style="{{'color:'+(value.textcolor)+';'}}">{{value.text}}</view><view class="author data-v-2b17e9e0" style="{{'color:'+(value.subtitlecolor)+';'}}">{{value.desc+"----"+value.id}}</view></view><view class="progress data-v-2b17e9e0"><view class="progressBar data-v-2b17e9e0" style="{{'width:'+(audiowidth)+';'}}"></view></view><view class="time data-v-2b17e9e0" style="{{'color:'+(value.timecolor)+';'}}">{{''+audiotime+''}}</view><view data-event-opts="{{[['tap',[['play']]]]}}" class="{{['start','data-v-2b17e9e0',status?'iconj icon-07zanting':'iconj icon-bofang']}}" style="padding-top:18rpx;" bindtap="__e"></view></view></block><block wx:else><view class="fui-audio style3 data-v-2b17e9e0" style="{{'background:'+(value.background)+';'}}"><view class="img data-v-2b17e9e0"><image src="{{$root.g0}}" class="data-v-2b17e9e0"></image></view><view class="content data-v-2b17e9e0"><view class="name data-v-2b17e9e0" style="{{'color:'+(value.textcolor)+';'}}">{{value.text}}</view><view class="author data-v-2b17e9e0" style="{{'color:'+(value.subtitlecolor)+';'}}">{{value.desc}}</view></view><view class="progress data-v-2b17e9e0"><view class="progressBar data-v-2b17e9e0" style="{{'width:'+(audiowidth)+';'}}"></view></view><view class="time data-v-2b17e9e0" style="{{'color:'+(value.timecolor)+';'}}">{{''+audiotime+''}}</view><view data-event-opts="{{[['tap',[['play']]]]}}" class="{{['start','data-v-2b17e9e0',status?'iconj icon-07zanting':'iconj icon-bofang']}}" bindtap="__e"></view></view></block></view>
|
||||
1
components/diy-components/diy-audio.wxss
Normal file
1
components/diy-components/diy-audio.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.fui-audio.data-v-2b17e9e0{width:100%;border:1rpx solid #eee;padding:0 30rpx 0 20rpx;box-sizing:border-box;position:relative;overflow:hidden;background:#fff}.fui-audio .img.data-v-2b17e9e0{width:100rpx;height:100rpx;background:#000}.fui-audio .img image.data-v-2b17e9e0{width:100%;height:100%}.fui-audio .name.data-v-2b17e9e0{font-size:26rpx;color:#333}.fui-audio .author.data-v-2b17e9e0{font-size:26rpx;color:#666}.fui-audio .time.data-v-2b17e9e0{font-size:24rpx;color:#999}.fui-audio .start.data-v-2b17e9e0{border:0;padding:0;margin:0;font-size:28rpx}.progressBar.data-v-2b17e9e0{height:2rpx;width:0;background:#333}.fui-audio.style1.data-v-2b17e9e0{height:86rpx;line-height:82rpx}.fui-audio.style1 .img.data-v-2b17e9e0,.fui-audio.style2 .img.data-v-2b17e9e0{display:none}.fui-audio.style1 .name.data-v-2b17e9e0,.fui-audio.style2 .name.data-v-2b17e9e0{float:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:300rpx}.fui-audio.style1 .author.data-v-2b17e9e0,.fui-audio.style2 .author.data-v-2b17e9e0{float:left;margin-left:12rpx;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:200rpx}.fui-audio.style1 .time.data-v-2b17e9e0,.fui-audio.style4 .time.data-v-2b17e9e0{display:none}.fui-audio.style1 .start.data-v-2b17e9e0{position:absolute;top:0rpx;right:40rpx;width:40rpx;height:40rpx;color:#000}.fui-audio.style1 .progress.data-v-2b17e9e0{position:absolute;bottom:0;left:0;right:0}.fui-audio.style2.data-v-2b17e9e0{height:86rpx;line-height:82rpx}.fui-audio.style2 .img.data-v-2b17e9e0{display:none}.fui-audio.style2 .time.data-v-2b17e9e0{position:absolute;top:0;right:30rpx}.fui-audio.style2 .name.data-v-2b17e9e0{margin-left:70rpx}.fui-audio.style2 .start.data-v-2b17e9e0{position:absolute;top:0rpx;left:30rpx;width:30rpx;height:30rpx;color:#000}.fui-audio.style2 .progress.data-v-2b17e9e0,.fui-audio.style3 .progress.data-v-2b17e9e0{display:none}.fui-audio.style3.data-v-2b17e9e0{padding:8rpx}.fui-audio.style3 .start.data-v-2b17e9e0{position:absolute;top:30rpx;left:28rpx;width:56rpx;height:56rpx;color:#fff;border-radius:50%;text-indent:18rpx;line-height:56rpx}.fui-audio.style3 .img.data-v-2b17e9e0,.fui-audio.style4 .img.data-v-2b17e9e0{float:left;margin-right:20rpx}.fui-audio.style3 .content.data-v-2b17e9e0{width:468rpx}.fui-audio.style3 .content.data-v-2b17e9e0,.fui-audio.style4 .content.data-v-2b17e9e0{float:left;height:100rpx;display:flex;flex-direction:column;justify-content:center}.fui-audio.style3 .content .name.data-v-2b17e9e0{height:40rpx;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fui-audio.style3 .content .author.data-v-2b17e9e0{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fui-audio.style3 .time.data-v-2b17e9e0{position:absolute;top:40rpx;right:30rpx}.fui-audio.style4.data-v-2b17e9e0{padding:10rpx}.fui-audio.style4 .content.data-v-2b17e9e0{padding-bottom:18rpx;height:82rpx;width:500rpx}.fui-audio.style4 .start.data-v-2b17e9e0{position:absolute;top:32rpx;right:30rpx;width:30rpx;height:30rpx;color:#000}.fui-audio.style4 .name.data-v-2b17e9e0{line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fui-audio.style4 .author.data-v-2b17e9e0{line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fui-audio.style4 .progress.data-v-2b17e9e0{background:#f5f5f5;height:4rpx;position:absolute;bottom:24rpx;left:130rpx;right:30rpx;border-radius:2rpx;overflow:hidden}.fui-audio.style4 .progressBar.data-v-2b17e9e0{height:4rpx}.diy-audio.data-v-2b17e9e0 .uni-video-container{background-color:initial}
|
||||
10
components/diy-components/diy-bargain.js
Normal file
10
components/diy-components/diy-bargain.js
Normal file
File diff suppressed because one or more lines are too long
1
components/diy-components/diy-bargain.json
Normal file
1
components/diy-components/diy-bargain.json
Normal file
@@ -0,0 +1 @@
|
||||
{"component":true,"usingComponents":{"x-skeleton":"/uni_modules/x-skeleton/components/x-skeleton/x-skeleton"}}
|
||||
1
components/diy-components/diy-bargain.wxml
Normal file
1
components/diy-components/diy-bargain.wxml
Normal file
File diff suppressed because one or more lines are too long
1
components/diy-components/diy-bargain.wxss
Normal file
1
components/diy-components/diy-bargain.wxss
Normal file
File diff suppressed because one or more lines are too long
10
components/diy-components/diy-bottom-nav.js
Normal file
10
components/diy-components/diy-bottom-nav.js
Normal file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-bottom-nav"],{"157a":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return a}));var a={diyIcon:function(){return n.e("components/diy-components/diy-icon").then(n.bind(null,"8ba4"))}},i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.tabBarList&&t.tabBarList.list?t.__map(t.tabBarList.list,(function(e,n){var a=t.__get_orig(e),i="/pages/goods/cart"!=e.link.wap_url||1!=t.tabBarList.type&&2!=t.tabBarList.type?null:t.verify(e.link),r="/pages/goods/cart"!=e.link.wap_url||1!=t.tabBarList.type&&2!=t.tabBarList.type||!i||"img"!=e.selected_icon_type?null:t.$util.img(e.selectedIconPath),o="/pages/goods/cart"!=e.link.wap_url||1!=t.tabBarList.type&&2!=t.tabBarList.type||i||"img"!=e.icon_type?null:t.$util.img(e.iconPath),u="/pages/goods/cart"==e.link.wap_url||1!=t.tabBarList.type&&2!=t.tabBarList.type?null:t.verify(e.link),c="/pages/goods/cart"==e.link.wap_url||1!=t.tabBarList.type&&2!=t.tabBarList.type||!u||"img"!=e.selected_icon_type?null:t.$util.img(e.selectedIconPath),s="/pages/goods/cart"==e.link.wap_url||1!=t.tabBarList.type&&2!=t.tabBarList.type||u||"img"!=e.icon_type?null:t.$util.img(e.iconPath),l=1!=t.tabBarList.type&&3!=t.tabBarList.type||"diy"!=t.tabBarList.theme?null:t.verify(e.link),p=1!=t.tabBarList.type&&3!=t.tabBarList.type||"default"!=t.tabBarList.theme?null:t.verify(e.link);return{$orig:a,m0:i,g0:r,g1:o,m1:u,g2:c,g3:s,m2:l,m3:p}})):null);t.$mp.data=Object.assign({},{$root:{l0:n}})},r=[]},"20cf":function(t,e,n){"use strict";var a=n("e74a"),i=n.n(a);i.a},"290b":function(t,e,n){"use strict";n.r(e);var a=n("6697"),i=n.n(a);for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);e["default"]=i.a},6697:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"diy-bottom-nav",props:{value:{type:Object},name:{type:String,default:""}},data:function(){return{lang:t.getStorageSync("lang"),currentRoute:"",jumpFlag:!0,cartAnimation:{}}},mounted:function(){var e=this,n=getCurrentPages()[getCurrentPages().length-1];n&&n.route&&(this.currentRoute=n.route),this.$nextTick((function(){if(!e.$store.state.cartPosition){var n=t.createSelectorQuery().in(e);n.select("#tabbarCart").boundingClientRect((function(t){t&&e.$store.commit("setCartPosition",t)})).exec(),n.select(".tab-bar").boundingClientRect((function(t){t&&e.$store.commit("setTabBarHeight",t.height+"px")})).exec()}}))},computed:{cartChange:function(){return this.$store.state.cartChange}},watch:{cartChange:function(e,n){var a=this;if(e>n){var i=t.createAnimation({duration:200,timingFunction:"ease"});i.scale(1.2).step(),this.cartAnimation=i.export(),setTimeout((function(){i.scale(1).step(),a.cartAnimation=i.export()}),300)}}},methods:{redirectTo:function(t){this.$emit("callback"),this.$util.diyRedirectTo(t)},verify:function(t){if(null==t||""==t||!t.wap_url)return!1;if(this.name)var e=this.currentRoute+"?name="+this.name;else e=this.currentRoute;return"/pages/index/index"==t.wap_url&&"DIY_VIEW_INDEX"==this.name||!(!e||-1==t.wap_url.indexOf(e))}}};e.default=n}).call(this,n("df3c")["default"])},e526:function(t,e,n){"use strict";n.r(e);var a=n("157a"),i=n("290b");for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);n("20cf");var o=n("828b"),u=Object(o["a"])(i["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);e["default"]=u.exports},e74a:function(t,e,n){}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/diy-components/diy-bottom-nav-create-component',
|
||||
{
|
||||
'components/diy-components/diy-bottom-nav-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("e526"))
|
||||
})
|
||||
},
|
||||
[['components/diy-components/diy-bottom-nav-create-component']]
|
||||
]);
|
||||
1
components/diy-components/diy-bottom-nav.json
Normal file
1
components/diy-components/diy-bottom-nav.json
Normal file
@@ -0,0 +1 @@
|
||||
{"component":true,"usingComponents":{"diy-icon":"/components/diy-components/diy-icon"}}
|
||||
1
components/diy-components/diy-bottom-nav.wxml
Normal file
1
components/diy-components/diy-bottom-nav.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<block wx:if="{{tabBarList&&tabBarList.list}}"><view><view class="tab-bar" style="{{'background-color:'+(tabBarList.backgroundColor)+';'}}"><view class="tabbar-border"></view><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="id"><view data-event-opts="{{[['tap',[['redirectTo',['$0'],[[['tabBarList.list','id',item.$orig.id,'link']]]]]]]}}" class="item" bindtap="__e"><view class="bd"><block wx:if="{{item.$orig.link.wap_url=='/pages/goods/cart'}}"><block><block wx:if="{{tabBarList.type==1||tabBarList.type==2}}"><view class="icon" animation="{{cartAnimation}}" id="tabbarCart"><block wx:if="{{item.m0}}"><block><block wx:if="{{item.$orig.selected_icon_type=='img'}}"><image src="{{item.g0}}"></image></block><block wx:if="{{item.$orig.selected_icon_type=='icon'}}"><diy-icon vue-id="{{'251134d2-1-'+index}}" icon="{{item.$orig.selectedIconPath}}" value="{{item.$orig.selected_style?item.$orig.selected_style:null}}" bind:__l="__l"></diy-icon></block></block></block><block wx:else><block><block wx:if="{{item.$orig.icon_type=='img'}}"><image src="{{item.g1}}"></image></block><block wx:if="{{item.$orig.icon_type=='icon'}}"><diy-icon vue-id="{{'251134d2-2-'+index}}" icon="{{item.$orig.iconPath}}" value="{{item.$orig.style?item.$orig.style:null}}" bind:__l="__l"></diy-icon></block></block></block><block wx:if="{{cartNumber>0}}"><view class="{{['cart-count-mark','font-size-activity-tag',(item.$orig.link.wap_url=='/pages/goods/cart'&&cartNumber>99)?'max':'']}}" style="{{'background:'+('var(--price-color)')+';'}}">{{''+(cartNumber>99?'99+':cartNumber)+''}}</view></block></view></block></block></block><block wx:else><block><block wx:if="{{tabBarList.type==1||tabBarList.type==2}}"><view class="icon"><block wx:if="{{item.m1}}"><block><block wx:if="{{item.$orig.selected_icon_type=='img'}}"><image src="{{item.g2}}"></image></block><block wx:if="{{item.$orig.selected_icon_type=='icon'}}"><diy-icon vue-id="{{'251134d2-3-'+index}}" icon="{{item.$orig.selectedIconPath}}" value="{{item.$orig.selected_style?item.$orig.selected_style:null}}" bind:__l="__l"></diy-icon></block></block></block><block wx:else><block><block wx:if="{{item.$orig.icon_type=='img'}}"><image src="{{item.g3}}"></image></block><block wx:if="{{item.$orig.icon_type=='icon'}}"><diy-icon vue-id="{{'251134d2-4-'+index}}" icon="{{item.$orig.iconPath}}" value="{{item.$orig.style?item.$orig.style:null}}" bind:__l="__l"></diy-icon></block></block></block></view></block></block></block><block wx:if="{{(tabBarList.type==1||tabBarList.type==3)&&tabBarList.theme=='diy'}}"><view class="label" style="{{'color:'+(item.m2?tabBarList.textHoverColor:tabBarList.textColor)+';'}}">{{''+(lang=='en-us'?item.$orig.en_text:item.$orig.text)+''}}</view></block><block wx:if="{{(tabBarList.type==1||tabBarList.type==3)&&tabBarList.theme=='default'}}"><view class="label" style="{{'color:'+(item.m3?'var(--base-color)':'#333333')+';'}}">{{''+(lang=='en-us'?item.$orig.en_text:item.$orig.text)+''}}</view></block></view></view></block></view><view class="tab-bar-placeholder"></view></view></block>
|
||||
1
components/diy-components/diy-bottom-nav.wxss
Normal file
1
components/diy-components/diy-bottom-nav.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.placeholder{height:112rpx}.placeholder.bluge{height:180rpx}.safe-area{padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.tab-bar{background-color:#fff;box-sizing:border-box;position:fixed;left:0;bottom:0;width:100%;z-index:998;display:flex;border-top:2rpx solid #f5f5f5;padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.tab-bar .tabbar-border{background-color:hsla(0,0%,100%,.329412);position:absolute;left:0;top:0;width:100%;height:2rpx;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.tab-bar .item{display:flex;align-items:center;flex:1;flex-direction:column;padding-bottom:10rpx;box-sizing:border-box}.tab-bar .item .bd{position:relative;height:100rpx;flex-direction:column;text-align:center;display:flex;justify-content:center;align-items:center}.tab-bar .item .bd .icon{position:relative;display:inline-block;margin-top:10rpx;width:40rpx;height:40rpx;font-size:40rpx;line-height:40rpx}.tab-bar .item .bd .icon image{width:100%;height:100%}.tab-bar .item .bd .icon > view{height:inherit;display:flex;align-items:center}.tab-bar .item .bd .icon .bar-icon{font-size:42rpx}.tab-bar .item .bd .label{position:relative;text-align:center;font-size:24rpx;line-height:1;margin-top:12rpx}.tab-bar .item.bulge .bd{position:relative;height:100rpx;flex-direction:column;text-align:center}.tab-bar .item.bulge .bd .icon{margin-top:-60rpx;margin-bottom:4rpx;border-radius:50%;width:100rpx;height:102rpx;padding:10rpx;border-top:2rpx solid #f5f5f5;background-color:#fff;box-sizing:border-box}.tab-bar .item.bulge .bd .icon image{width:100%;height:100%;border-radius:50%}.tab-bar .item.bulge .bd .label{position:relative;text-align:center;font-size:24rpx;height:40rpx;line-height:40rpx}.tab-bar .item .cart-count-mark{position:absolute;top:-8rpx;right:-18rpx;width:24rpx;height:24rpx!important;display:flex;justify-content:center;align-items:center;color:#fff;padding:6rpx;border-radius:50%;z-index:99}.tab-bar .item .cart-count-mark.max{width:40rpx;border-radius:24rpx;right:-28rpx}.tab-bar-placeholder{padding-bottom:calc(constant(safe-area-inset-bottom) + 112rpx);padding-bottom:calc(env(safe-area-inset-bottom) + 112rpx)}
|
||||
10
components/diy-components/diy-category-item.js
Normal file
10
components/diy-components/diy-category-item.js
Normal file
File diff suppressed because one or more lines are too long
1
components/diy-components/diy-category-item.json
Normal file
1
components/diy-components/diy-category-item.json
Normal file
@@ -0,0 +1 @@
|
||||
{"component":true,"usingComponents":{"uni-popup":"/components/uni-popup/uni-popup","loading-cover":"/components/loading-cover/loading-cover"}}
|
||||
1
components/diy-components/diy-category-item.wxml
Normal file
1
components/diy-components/diy-category-item.wxml
Normal file
File diff suppressed because one or more lines are too long
2
components/diy-components/diy-category-item.wxss
Normal file
2
components/diy-components/diy-category-item.wxss
Normal file
File diff suppressed because one or more lines are too long
10
components/diy-components/diy-category.js
Normal file
10
components/diy-components/diy-category.js
Normal file
File diff suppressed because one or more lines are too long
1
components/diy-components/diy-category.json
Normal file
1
components/diy-components/diy-category.json
Normal file
@@ -0,0 +1 @@
|
||||
{"component":true,"usingComponents":{"uni-popup":"/components/uni-popup/uni-popup","diy-category-item":"/components/diy-components/diy-category-item","ns-goods-sku-category":"/components/ns-goods-sku/ns-goods-sku-category"}}
|
||||
1
components/diy-components/diy-category.wxml
Normal file
1
components/diy-components/diy-category.wxml
Normal file
File diff suppressed because one or more lines are too long
2
components/diy-components/diy-category.wxss
Normal file
2
components/diy-components/diy-category.wxss
Normal file
@@ -0,0 +1,2 @@
|
||||
.single{background:#fff!important}.category-page-wrap{width:100vw;display:flex;flex-direction:column;background-color:#fff}.content-box{flex:1;height:0;display:flex}.content-box .tree-wrap{width:170rpx;height:100%;background-color:#f5f5f5}.content-box .right-flex-wrap{flex:1;width:0;height:100%;background:#f4f6fa;display:flex;flex-direction:column;-webkit-transform:translateX(0);transform:translateX(0)}.content-box .right-flex-wrap .content-wrap{display:flex;flex:1;height:0;width:100%}.content-box .right-flex-wrap .child-category-wrap{width:100%;height:100%}.tree-wrap .category-item-wrap{height:auto;background-color:#fff}.tree-wrap .category-item{line-height:1.5;padding:26rpx 28rpx;font-size:18rpx;text-align:center;box-sizing:border-box;position:relative;background-color:#f5f5f5}.tree-wrap .category-item view{color:#222;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-align:center}.tree-wrap .category-item.border-top{border-bottom-right-radius:12rpx}.tree-wrap .category-item.border-bottom{border-top-right-radius:12rpx}.tree-wrap .category-item.select{background:#fff;font-size:24rpx;color:#333;font-weight:700}.tree-wrap .category-item.select view{color:#333;font-weight:700}.tree-wrap .category-item.select::before{content:" ";width:8rpx;height:34rpx;background:var(--base-color);display:block;position:absolute;left:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.search-box{position:relative;padding:20rpx 30rpx;display:flex;align-items:center;background:#fff}.search-box .search-content{position:relative;height:100%;border-radius:40rpx;flex:1;background-color:#f5f5f5}.search-box .search-content input{box-sizing:border-box;display:block;height:100%;width:100%;padding:0 20rpx 0 40rpx;background:#f5f5f5;color:#333;border-radius:40rpx}.search-box .search-content .iconfont{position:absolute;top:50%;right:10rpx;-webkit-transform:translateY(-50%);transform:translateY(-50%);font-size:32rpx;z-index:10;color:#89899a;width:80rpx;text-align:center}.cart-box{height:100rpx;width:100%;background:#fff;border-top:1px solid #f5f5f5;box-sizing:border-box;padding:0 30rpx;display:flex;align-items:center;justify-content:space-between}.cart-box .left-wrap{display:flex;align-items:center}.cart-box .cart-icon{width:70rpx;height:70rpx;position:relative}.cart-box .cart-icon .iconfont{color:var(--btn-text-color);width:inherit;height:inherit;background-color:var(--base-color);border-radius:50%;display:flex;align-items:center;justify-content:center}.cart-box .cart-icon .num{position:absolute;top:0;right:0;-webkit-transform:translate(60%);transform:translate(60%);display:inline-block;box-sizing:border-box;color:#fff;line-height:1.2;text-align:center;font-size:24rpx;padding:0 6rpx;min-width:30rpx;border-radius:16rpx;background-color:var(--price-color);border:2rpx solid #fff}.cart-box .price{margin-left:30rpx}.cart-box .price .title{color:#333}.cart-box .price .money,
|
||||
.cart-box .price .unit{font-weight:700;color:var(--price-color)}.cart-box .settlement-btn{margin:0 0 0 20rpx;width:200rpx;font-weight:700;border-radius:50rpx;height:70rpx;line-height:70rpx}.cart-point{width:26rpx;height:26rpx;position:fixed;z-index:1000;background:red;border-radius:50%;transition:all .05s}.category-empty{flex:1;display:flex;align-items:center;justify-content:center;flex-direction:column}.category-empty image{width:380rpx}.category-empty .tips{font-size:26rpx;font-weight:500;color:#999;margin-top:50rpx}.end-tips{text-align:center;color:#999;font-size:24rpx;padding:20rpx 0;opacity:0}.category-template-4 .search-box .search-content input{background-color:#f1f1f1}.category-template-4 .cart-box{position:relative;z-index:2}.category-template-4 .template-four{position:relative;z-index:1}.category-template-4 .template-four .template-four-wrap{position:relative;z-index:1;padding-left:20rpx;padding-right:80rpx;padding-bottom:10rpx;display:flex;height:172rpx;align-items:baseline;box-sizing:border-box;box-shadow:0 4rpx 4rpx hsla(0,0%,48.2%,.1)}.category-template-4 .template-four .template-four-popup{display:flex;flex-direction:column;overflow:hidden}.category-template-4 .template-four .template-four-popup .title{line-height:1;margin-bottom:20rpx;font-weight:700}.category-template-4 .template-four .template-four-popup .template-four-scroll{display:flex;flex-wrap:wrap;align-items:baseline;align-content:baseline;padding:20rpx;white-space:nowrap;height:380rpx;box-sizing:border-box}.category-template-4 .template-four .template-four-popup .template-four-scroll .uni-scroll-view-content{flex-wrap:wrap;align-items:baseline;align-content:baseline}.category-template-4 .template-four .template-four-popup .template-four-scroll .item{display:flex;flex-direction:column;align-items:center;padding:4rpx 0;color:#666;margin-right:16rpx;border-radius:40rpx;margin-bottom:10rpx;width:calc((100% - 64rpx) / 5)}.category-template-4 .template-four .template-four-popup .template-four-scroll .item:nth-child(5n + 5){margin-right:0}.category-template-4 .template-four .template-four-popup .template-four-scroll .item .image-warp{margin-bottom:6rpx;padding:4rpx;display:flex;align-items:center;justify-content:center;border-radius:42rpx;border:4rpx solid transparent}.category-template-4 .template-four .template-four-popup .template-four-scroll .item image{width:84rpx;height:84rpx;border-radius:32rpx}.category-template-4 .template-four .template-four-popup .template-four-scroll .item .text{padding:2rpx 16rpx;border-radius:40rpx;font-size:24rpx}.category-template-4 .template-four .template-four-popup .template-four-scroll .item.selected .text{background-color:var(--base-color);color:var(--btn-text-color)}.category-template-4 .template-four .template-four-popup .pack-up{font-size:24rpx;color:#888;height:74rpx;display:flex;align-items:center;justify-content:center;border-top:2rpx solid #f2f2f2}.category-template-4 .template-four .template-four-popup .pack-up .iconfont{font-size:40rpx;margin-left:-4rpx}.category-template-4 .template-four .category-item-all{position:absolute;bottom:0;z-index:1;right:0;top:0;width:72rpx;line-height:1;background-color:#fff}.category-template-4 .template-four .category-item-all .category-item-all-wrap{position:absolute;bottom:0;right:0;top:0;left:0;display:flex;flex-direction:column;justify-content:center;align-items:center;z-index:2}.category-template-4 .template-four .category-item-all .text{-webkit-writing-mode:tb-rl;writing-mode:tb-rl;margin-bottom:6rpx;letter-spacing:4rpx;font-size:24rpx;font-weight:700}.category-template-4 .template-four .category-item-all .img{width:20rpx;height:20rpx}.category-template-4 .template-four .category-item-all::after{content:"";position:absolute;left:0;width:10rpx;top:20%;bottom:20%}.category-template-4 .template-four .uni-scroll-view-content{display:flex}.category-template-4 .template-four .category-item{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:130rpx;flex-shrink:0;margin-right:20rpx;padding:4rpx 0}.category-template-4 .template-four .category-item:last-of-type{margin-right:0}.category-template-4 .template-four .category-item .image-warp{margin-bottom:6rpx;padding:4rpx;display:flex;align-items:center;justify-content:center;border-radius:42rpx;border:4rpx solid transparent}.category-template-4 .template-four .category-item image{width:84rpx;height:84rpx;border-radius:32rpx}.category-template-4 .template-four .category-item .text{font-size:24rpx}.category-template-4 .template-four .select .text{padding:8rpx 16rpx;border-radius:40rpx;color:#fff;font-size:24rpx;line-height:1}.category-template-4 .content-wrap .categoty-goods-wrap .goods-list{margin-top:30rpx}.category-template-4 .tree-wrap .category-item.select::before{border-top-right-radius:8rpx;border-bottom-right-radius:8rpx}
|
||||
10
components/diy-components/diy-comp-extend.js
Normal file
10
components/diy-components/diy-comp-extend.js
Normal file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-comp-extend"],{"0651":function(n,t,e){"use strict";e.r(t);var u=e("cd8e"),c=e.n(u);for(var o in u)["default"].indexOf(o)<0&&function(n){e.d(t,n,(function(){return u[n]}))}(o);t["default"]=c.a},a0d5:function(n,t,e){"use strict";e.r(t);var u=e("b13c"),c=e("0651");for(var o in c)["default"].indexOf(o)<0&&function(n){e.d(t,n,(function(){return c[n]}))}(o);var r=e("828b"),a=Object(r["a"])(c["default"],u["b"],u["c"],!1,null,null,null,!1,u["a"],void 0);t["default"]=a.exports},b13c:function(n,t,e){"use strict";e.d(t,"b",(function(){return u})),e.d(t,"c",(function(){return c})),e.d(t,"a",(function(){}));var u=function(){var n=this.$createElement;this._self._c},c=[]},cd8e:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u={name:"diy-comp-extend",props:{value:{type:Object}},data:function(){return{}},computed:{},created:function(){},methods:{}};t.default=u}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/diy-components/diy-comp-extend-create-component',
|
||||
{
|
||||
'components/diy-components/diy-comp-extend-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("a0d5"))
|
||||
})
|
||||
},
|
||||
[['components/diy-components/diy-comp-extend-create-component']]
|
||||
]);
|
||||
1
components/diy-components/diy-comp-extend.json
Normal file
1
components/diy-components/diy-comp-extend.json
Normal file
@@ -0,0 +1 @@
|
||||
{"component":true,"usingComponents":{}}
|
||||
1
components/diy-components/diy-comp-extend.wxml
Normal file
1
components/diy-components/diy-comp-extend.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<view></view>
|
||||
10
components/diy-components/diy-coupon.js
Normal file
10
components/diy-components/diy-coupon.js
Normal file
File diff suppressed because one or more lines are too long
1
components/diy-components/diy-coupon.json
Normal file
1
components/diy-components/diy-coupon.json
Normal file
@@ -0,0 +1 @@
|
||||
{"component":true,"usingComponents":{"x-skeleton":"/uni_modules/x-skeleton/components/x-skeleton/x-skeleton","ns-login":"/components/ns-login/ns-login"}}
|
||||
1
components/diy-components/diy-coupon.wxml
Normal file
1
components/diy-components/diy-coupon.wxml
Normal file
File diff suppressed because one or more lines are too long
2
components/diy-components/diy-coupon.wxss
Normal file
2
components/diy-components/diy-coupon.wxss
Normal file
File diff suppressed because one or more lines are too long
10
components/diy-components/diy-digit.js
Normal file
10
components/diy-components/diy-digit.js
Normal file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-digit"],{"073e":function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o={components:{uvCountTo:function(){e.e("components/uv-count-to/uv-count-to").then(function(){return resolve(e("2a58"))}.bind(null,e)).catch(e.oe)}},name:"diy-digit",props:{value:{type:Object}},data:function(){return{pageWidth:"",indicatorDots:!1,swiperCurrent:0}},created:function(){},watch:{componentRefresh:function(t){}},computed:{componentStyle:function(){var t="";return t+="background-image:url("+this.$util.img(this.value.imageUrl)+");background-size:100% 100%;","round"==this.value.componentAngle&&(t+="border-top-left-radius:"+2*this.value.topAroundRadius+"rpx;",t+="border-top-right-radius:"+2*this.value.topAroundRadius+"rpx;",t+="border-bottom-left-radius:"+2*this.value.bottomAroundRadius+"rpx;",t+="border-bottom-right-radius:"+2*this.value.bottomAroundRadius+"rpx;"),t+="box-shadow:"+("shadow"==this.value.ornament.type?"0 0 10rpx "+this.value.ornament.color:"")+";",t+="border:"+("stroke"==this.value.ornament.type?"2rpx solid "+this.value.ornament.color:"")+";",t}},methods:{getvalue:function(t){return t%1!==0?2:0},redirectTo:function(t){!t.wap_url||"pages/member/index"!=this.$util.getCurrRoute()||this.storeToken?(console.log(t),this.$util.diyRedirectTo(t)):this.$refs.login.open(t.wap_url)},swiperChange:function(t){this.swiperCurrent=t.detail.current}}};n.default=o},2805:function(t,n,e){},"4c11":function(t,n,e){"use strict";e.r(n);var o=e("073e"),r=e.n(o);for(var u in o)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(u);n["default"]=r.a},"514d":function(t,n,e){"use strict";e.r(n);var o=e("9e9d"),r=e("4c11");for(var u in r)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(u);e("6e11"),e("9572");var i=e("828b"),a=Object(i["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);n["default"]=a.exports},"6e11":function(t,n,e){"use strict";var o=e("c033"),r=e.n(o);r.a},9572:function(t,n,e){"use strict";var o=e("2805"),r=e.n(o);r.a},"9e9d":function(t,n,e){"use strict";e.d(n,"b",(function(){return r})),e.d(n,"c",(function(){return u})),e.d(n,"a",(function(){return o}));var o={uvCountTo:function(){return e.e("components/uv-count-to/uv-count-to").then(e.bind(null,"2a58"))},nsLogin:function(){return Promise.all([e.e("common/vendor"),e.e("components/ns-login/ns-login")]).then(e.bind(null,"17d0"))}},r=function(){var t=this,n=t.$createElement,e=(t._self._c,t.__map(t.value.list,(function(n,e){var o=t.__get_orig(n),r=t.getvalue(n.title);return{$orig:o,m0:r}})));t.$mp.data=Object.assign({},{$root:{l0:e}})},u=[]},c033:function(t,n,e){}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/diy-components/diy-digit-create-component',
|
||||
{
|
||||
'components/diy-components/diy-digit-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("514d"))
|
||||
})
|
||||
},
|
||||
[['components/diy-components/diy-digit-create-component']]
|
||||
]);
|
||||
1
components/diy-components/diy-digit.json
Normal file
1
components/diy-components/diy-digit.json
Normal file
@@ -0,0 +1 @@
|
||||
{"component":true,"usingComponents":{"uv-count-to":"/components/uv-count-to/uv-count-to","ns-login":"/components/ns-login/ns-login"}}
|
||||
1
components/diy-components/diy-digit.wxml
Normal file
1
components/diy-components/diy-digit.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<view style="{{(componentStyle)}}"><scroll-view class="{{['graphic-nav',value.showStyle=='fixed'?'fixed-layout':value.showStyle]}}" scroll-x="{{value.showStyle=='singleSlide'}}"><view class="uni-scroll-view-content"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="{{['graphic-nav-item',value.mode,value.mode==='text'?'newright':'']}}" style="{{'width:'+(100/value.rowCount+'%')+';'}}"><view style="display:flex;"><view style="{{'line-height:1.2;'+('font-size:'+(value.font.titlesize*2+'rpx')+';')+('font-weight:'+('600')+';')+('color:'+(value.font.titlecolor)+';')}}"><uv-count-to vue-id="{{'1e6db817-1-'+index}}" autoplay="{{true}}" startVal="{{30}}" endVal="{{item.$orig.title}}" decimals="{{item.m0}}" decimal="." bind:__l="__l"></uv-count-to><text style="{{'margin-left:4rpx;'+('font-size:'+(value.font.unitsize*2+'rpx')+';')+('font-weight:'+(value.font.weight)+';')+('color:'+(value.font.unitcolor)+';')}}">{{item.$orig.unit}}</text></view></view><view class="graphic-text"><text style="{{'font-size:'+(value.font.descsize*2+'rpx')+';'+('font-weight:'+(value.font.weight)+';')+('color:'+(value.font.desccolor)+';')}}">{{item.$orig.desc}}</text></view></view></block></view></scroll-view><ns-login class="vue-ref" vue-id="1e6db817-2" data-ref="login" bind:__l="__l"></ns-login></view>
|
||||
1
components/diy-components/diy-digit.wxss
Normal file
1
components/diy-components/diy-digit.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.graphic-nav.fixed-layout .uni-scroll-view-content{display:flex;flex-wrap:wrap}.graphic-nav.singleSlide .uni-scroll-view-content{display:flex}.graphic-nav.pageSlide .uni-swiper-dots-horizontal{bottom:0rpx}.graphic-nav.pageSlide.straightLine .uni-swiper-dot{width:30rpx;border-radius:0;height:8rpx}.graphic-nav.pageSlide.circle .uni-swiper-dot{width:14rpx;height:14rpx}.newright{margin-right:16rpx}.graphic-nav{padding:16rpx;box-sizing:border-box}.graphic-nav.singleSlide .graphic-nav-item{flex-shrink:0}.graphic-nav.pageSlide{position:relative}.graphic-nav.pageSlide .graphic-nav-wrap{display:flex;flex-wrap:wrap;width:100%;height:100%}.graphic-nav .graphic-nav-item{display:flex;flex-direction:column;align-items:center;padding:14rpx 0;box-sizing:border-box}.graphic-nav .graphic-nav-item .graphic-text{line-height:1.3;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;width:100%;text-align:center}.graphic-nav .graphic-nav-item .graphic-text.alone{padding-top:0}.graphic-nav .graphic-nav-item.text .graphic-text{padding-top:0}.graphic-nav .graphic-nav-item .graphic-img{position:relative;display:flex;align-items:center;justify-content:center;width:100rpx;height:100rpx;font-size:90rpx}.graphic-nav .graphic-nav-item .graphic-img .tag{position:absolute;top:-10rpx;right:-24rpx;color:#fff;border-radius:24rpx;border-bottom-left-radius:0;-webkit-transform:scale(.8);transform:scale(.8);padding:8rpx 16rpx;line-height:1;font-size:24rpx}.graphic-nav .graphic-nav-item .graphic-img .icon{font-size:50rpx;color:#606266}.swiper-dot-box{width:100%;display:flex;align-items:center;justify-content:center;margin-top:-20rpx;padding-bottom:8rpx}.swiper-dot-box .swiper-dot{background-color:rgba(0,0,0,.3);margin:8rpx}.swiper-dot-box .swiper-dot.active{background-color:#000}.swiper-dot-box.straightLine .swiper-dot{width:30rpx;border-radius:0;height:8rpx}.swiper-dot-box.circle .swiper-dot{width:15rpx;border-radius:50%;height:15rpx}
|
||||
10
components/diy-components/diy-fenxiao-goods-list.js
Normal file
10
components/diy-components/diy-fenxiao-goods-list.js
Normal file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-fenxiao-goods-list"],{"0ecc":function(t,o,e){"use strict";e.r(o);var i=e("6e20"),n=e.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){e.d(o,t,(function(){return i[t]}))}(r);o["default"]=n.a},"1dea":function(t,o,e){},"6a64":function(t,o,e){"use strict";e.r(o);var i=e("8807"),n=e("0ecc");for(var r in n)["default"].indexOf(r)<0&&function(t){e.d(o,t,(function(){return n[t]}))}(r);e("f050");var s=e("828b"),a=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);o["default"]=a.exports},"6e20":function(t,o,e){"use strict";(function(t){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var e={name:"diy-fenxiao-goods-list",props:{value:{type:Object}},data:function(){return{list:[],currentRoute:""}},created:function(){var t=getCurrentPages()[getCurrentPages().length-1];this.currentRoute="/"+t.route,this.storeToken||this.$util.redirectTo("/pages_tool/login/login",{back:this.currentRoute},"redirectTo"),this.getData()},watch:{componentRefresh:function(t){this.getData()}},computed:{goodsListWarpCss:function(){var t="";return t+="background-color:"+this.value.componentBgColor+";","round"==this.value.componentAngle&&(t+="border-top-left-radius:"+2*this.value.topAroundRadius+"rpx;",t+="border-top-right-radius:"+2*this.value.topAroundRadius+"rpx;",t+="border-bottom-left-radius:"+2*this.value.bottomAroundRadius+"rpx;",t+="border-bottom-right-radius:"+2*this.value.bottomAroundRadius+"rpx;"),t},goodsItemCss:function(){var t="";return t+="background-color:"+this.value.elementBgColor+";","round"==this.value.elementAngle&&(t+="border-top-left-radius:"+2*this.value.topElementAroundRadius+"rpx;",t+="border-top-right-radius:"+2*this.value.topElementAroundRadius+"rpx;",t+="border-bottom-left-radius:"+2*this.value.bottomElementAroundRadius+"rpx;",t+="border-bottom-right-radius:"+2*this.value.bottomElementAroundRadius+"rpx;"),"shadow"==this.value.ornament.type&&(t+="box-shadow:0 0 10rpx "+this.value.ornament.color),"stroke"==this.value.ornament.type&&(t+="border:2rpx solid "+this.value.ornament.color),t}},methods:{toDetail:function(t){this.$util.redirectTo("/pages/goods/detail",{goods_id:t.goods_id})},followGoods:function(t,o){var e=this,i=t.goods_id,n=t.sku_id;this.$api.sendRequest({url:"/fenxiao/api/goodscollect/add",data:{goods_id:i,sku_id:n},success:function(t){t.code>=0&&(e.$util.showToast({title:"关注成功"}),e.list[o].is_collect=1,e.list[o].collect_id=t.data),e.$forceUpdate()}})},delFollowTip:function(o,e){var i=this;t.showModal({title:"提示",content:"确认取消关注该商品吗",success:function(t){t.confirm&&i.delFollow(o.collect_id,e)}})},delFollow:function(t,o){var e=this;this.$api.sendRequest({url:"/fenxiao/api/goodscollect/delete",data:{collect_id:t},success:function(t){var i="";i=0==t.code?"取消成功":t.message,e.$util.showToast({title:i});var n=e.list;n[o].is_collect=0,e.list=n,e.$forceUpdate()}})},toMore:function(){this.$util.redirectTo("/pages_promotion/fenxiao/goods_list")},getData:function(){var t=this,o={page:1,page_size:this.value.count};"category"==this.value.sources?(o.category_id=this.value.categoryId,o.category_level=1):"diy"==this.value.sources&&(o.page_size=0,o.goods_id_arr=this.value.goodsId.toString()),this.$api.sendRequest({url:"/fenxiao/api/goods/page",data:o,success:function(o){0==o.code&&(t.list=o.data.list)}})},imgError:function(t){this.list[t]&&(this.list[t].goods_image=this.$util.getDefaultImage().goods)}}};o.default=e}).call(this,e("df3c")["default"])},8807:function(t,o,e){"use strict";e.d(o,"b",(function(){return i})),e.d(o,"c",(function(){return n})),e.d(o,"a",(function(){}));var i=function(){var t=this,o=t.$createElement,e=(t._self._c,t.list.length),i=e?t.__map(t.list,(function(o,e){var i=t.__get_orig(o),n=t.$util.img(o.goods_image,{size:"mid"}),r=(t.value.goodsNameStyle.control||t.value.priceStyle.mainControl||t.value.priceStyle.lineControl||t.value.btnStyle.control)&&t.value.priceStyle.mainControl?o.commission_money.split("."):null,s=(t.value.goodsNameStyle.control||t.value.priceStyle.mainControl||t.value.priceStyle.lineControl||t.value.btnStyle.control)&&t.value.priceStyle.mainControl?o.commission_money.split("."):null;return{$orig:i,g1:n,g2:r,g3:s}})):null;t.$mp.data=Object.assign({},{$root:{g0:e,l0:i}})},n=[]},f050:function(t,o,e){"use strict";var i=e("1dea"),n=e.n(i);n.a}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/diy-components/diy-fenxiao-goods-list-create-component',
|
||||
{
|
||||
'components/diy-components/diy-fenxiao-goods-list-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("6a64"))
|
||||
})
|
||||
},
|
||||
[['components/diy-components/diy-fenxiao-goods-list-create-component']]
|
||||
]);
|
||||
1
components/diy-components/diy-fenxiao-goods-list.json
Normal file
1
components/diy-components/diy-fenxiao-goods-list.json
Normal file
@@ -0,0 +1 @@
|
||||
{"component":true,"usingComponents":{}}
|
||||
1
components/diy-components/diy-fenxiao-goods-list.wxml
Normal file
1
components/diy-components/diy-fenxiao-goods-list.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<block wx:if="{{$root.g0}}"><view class="{{['diy-fenxiao','goods-list',value.template,value.style]}}" style="{{(goodsListWarpCss)}}"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['toDetail',['$0'],[[['list','',index]]]]]]]}}" class="{{['goods-item',value.ornament.type]}}" style="{{(goodsItemCss)}}" bindtap="__e"><view class="goods-img" style="{{'border-radius:'+(value.imgAroundRadius*2+'rpx')+';'}}"><image style="{{'border-radius:'+(value.imgAroundRadius*2+'rpx')+';'}}" src="{{item.g1}}" mode="widthFix" data-event-opts="{{[['error',[['imgError',[index]]]]]}}" binderror="__e"></image></view><block wx:if="{{value.goodsNameStyle.control||value.priceStyle.mainControl||value.priceStyle.lineControl||value.btnStyle.control}}"><view class="info-wrap"><view class="name-wrap"><block wx:if="{{value.goodsNameStyle.control}}"><view class="{{['goods-name',[(value.nameLineMode=='single')?'using-hidden':''],[(value.nameLineMode=='multiple')?'multi-hidden':'']]}}" style="{{'color:'+(value.theme=='diy'?value.goodsNameStyle.color:'')+';'+('font-weight:'+(value.goodsNameStyle.fontWeight?'bold':'')+';')}}">{{''+item.$orig.goods_name+''}}</view></block></view><view class="pro-info"><view class="discount-price"><block wx:if="{{value.priceStyle.mainControl}}"><view class="price-wrap"><text class="unit price-style small" style="{{'color:'+(value.theme=='diy'?value.priceStyle.mainColor:'')+';'}}">赚 ¥</text><text class="price price-style large" style="{{'color:'+(value.theme=='diy'?value.priceStyle.mainColor:'')+';'}}">{{item.g2[0]}}</text><text class="unit price-style small" style="{{'color:'+(value.theme=='diy'?value.priceStyle.mainColor:'')+';'}}">{{'.'+item.g3[1]}}</text></view></block><block wx:if="{{value.btnStyle.control&&item.$orig.is_collect==0}}"><view data-event-opts="{{[['tap',[['followGoods',['$0',index],[[['list','',index]]]]]]]}}" class="sale-btn" style="{{'background:'+(value.btnStyle.theme=='diy'?'linear-gradient(to right,'+value.btnStyle.bgColorStart+','+value.btnStyle.bgColorEnd+')':'')+';'+('color:'+(value.btnStyle.theme=='diy'?value.btnStyle.textColor:'')+';')+('border-radius:'+(value.btnStyle.aroundRadius*2+'rpx')+';')}}" catchtap="__e">关注</view></block><block wx:if="{{value.btnStyle.control&&item.$orig.is_collect==1}}"><view data-event-opts="{{[['tap',[['delFollowTip',['$0',index],[[['list','',index]]]]]]]}}" class="sale-btn" style="{{'background:'+(value.btnStyle.theme=='diy'?'linear-gradient(to right,'+value.btnStyle.bgColorStart+','+value.btnStyle.bgColorEnd+')':'')+';'+('color:'+(value.btnStyle.theme=='diy'?value.btnStyle.textColor:'')+';')+('border-radius:'+(value.btnStyle.aroundRadius*2+'rpx')+';')}}" catchtap="__e">取消关注</view></block></view><block wx:if="{{value.priceStyle.lineControl}}"><view class="delete-price" style="{{'color:'+(value.theme=='diy'?value.priceStyle.lineColor:'')+';'}}">{{'¥'+item.$orig.discount_price+''}}</view></block></view></view></block></view></block></view></block>
|
||||
1
components/diy-components/diy-fenxiao-goods-list.wxss
Normal file
1
components/diy-components/diy-fenxiao-goods-list.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.goods-list.row1-of1 .goods-item{background-color:#fff;display:flex;margin-bottom:20rpx}.goods-list.row1-of1 .goods-item:last-of-type{margin-bottom:0}.goods-list.row1-of1 .goods-item.shadow{margin:8rpx 8rpx 20rpx 8rpx}.goods-list.row1-of1 .goods-item .goods-img{width:180rpx;overflow:hidden;margin-right:20rpx}.goods-list.row1-of1 .goods-item .goods-img image{width:100%}.goods-list.row1-of1 .goods-item .info-wrap{flex:1;display:flex;flex-direction:column;justify-content:space-between;position:relative}.goods-list.row1-of1 .goods-item .info-wrap .name-wrap{flex:1;margin-bottom:10rpx}.goods-list.row1-of1 .goods-item .info-wrap .name-wrap .goods-name{font-size:28rpx;line-height:1.3}.goods-list.row1-of1 .goods-item .info-wrap .name-wrap .goods-name.multi-hidden{height:72rpx}.goods-list.row1-of1 .goods-item .info-wrap .pro-info{display:flex;flex-direction:column;justify-content:space-between}.goods-list.row1-of1 .goods-item .info-wrap .pro-info .sale{font-size:20rpx;line-height:1;color:#999}.goods-list.row1-of1 .goods-item .info-wrap .pro-info .discount-price{display:flex;justify-content:space-between;align-items:center;margin-bottom:10rpx}.goods-list.row1-of1 .goods-item .info-wrap .pro-info .discount-price .price-wrap{white-space:nowrap}.goods-list.row1-of1 .goods-item .info-wrap .pro-info .discount-price .price-wrap .unit{font-size:24rpx;color:var(--base-color)}.goods-list.row1-of1 .goods-item .info-wrap .pro-info .discount-price .price-wrap .price{font-size:32rpx}.goods-list.row1-of1 .goods-item .info-wrap .pro-info .discount-price .price-wrap text{font-weight:700;color:var(--base-color)}.goods-list.row1-of1 .goods-item .info-wrap .pro-info .delete-price{text-decoration:line-through;flex:1;line-height:28rpx;color:#909399;font-size:20rpx}.goods-list.row1-of1 .goods-item .info-wrap .sale-btn{position:absolute;right:20rpx;bottom:26rpx;height:50rpx;line-height:52rpx;color:#fff;width:120rpx;text-align:center;background-color:var(--base-color)}.goods-list.row1-of2{display:flex;flex-wrap:wrap}.goods-list.row1-of2 .goods-item{position:relative;background:#fff;overflow:hidden;margin-right:20rpx;margin-top:20rpx;width:calc(50% - 10rpx)}.goods-list.row1-of2 .goods-item:nth-child(2n + 2){width:calc(50% - 11rpx);margin-right:0}.goods-list.row1-of2 .goods-item:nth-of-type(1), .goods-list.row1-of2 .goods-item:nth-of-type(2){margin-top:0}.goods-list.row1-of2 .goods-item.shadow{width:calc(50% - 18rpx)}.goods-list.row1-of2 .goods-item.shadow:nth-child(2n-1){margin-left:8rpx}.goods-list.row1-of2 .goods-item.shadow:nth-of-type(1), .goods-list.row1-of2 .goods-item.shadow:nth-of-type(2){margin-top:8rpx}.goods-list.row1-of2 .goods-item .goods-img{position:relative;overflow:hidden;height:350rpx}.goods-list.row1-of2 .goods-item .goods-img image{width:100%;height:100%;position:absolute;top:49%;left:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.goods-list.row1-of2 .goods-item .info-wrap{padding:10rpx 20rpx}.goods-list.row1-of2 .goods-item .info-wrap .name-wrap{margin-bottom:10rpx}.goods-list.row1-of2 .goods-item .info-wrap .name-wrap .goods-name{font-size:28rpx;line-height:1.3}.goods-list.row1-of2 .goods-item .info-wrap .name-wrap .goods-name.multi-hidden{height:72rpx}.goods-list.row1-of2 .goods-item .info-wrap .pro-info{margin-top:10rpx;display:flex;flex-direction:column;justify-content:space-between}.goods-list.row1-of2 .goods-item .info-wrap .pro-info .sale{font-size:20rpx;line-height:1;color:#999}.goods-list.row1-of2 .goods-item .info-wrap .pro-info .discount-price{display:flex;justify-content:space-between;align-items:center}.goods-list.row1-of2 .goods-item .info-wrap .pro-info .discount-price .price-wrap{white-space:nowrap}.goods-list.row1-of2 .goods-item .info-wrap .pro-info .discount-price .price-wrap .unit{font-size:24rpx;color:var(--base-color)}.goods-list.row1-of2 .goods-item .info-wrap .pro-info .discount-price .price-wrap .price{font-size:32rpx}.goods-list.row1-of2 .goods-item .info-wrap .pro-info .discount-price .price-wrap text{font-weight:700;color:var(--base-color)}.goods-list.row1-of2 .goods-item .info-wrap .pro-info .delete-price{text-decoration:line-through;flex:1;line-height:28rpx;color:#909399;font-size:20rpx}.goods-list.row1-of2 .goods-item .info-wrap .sale-btn{position:absolute;right:20rpx;bottom:26rpx;height:50rpx;line-height:52rpx;color:#fff;width:120rpx;text-align:center;background-color:var(--base-color)}
|
||||
10
components/diy-components/diy-float-btn.js
Normal file
10
components/diy-components/diy-float-btn.js
Normal file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-float-btn"],{"3d91":function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){return a}));var a={diyIcon:function(){return e.e("components/diy-components/diy-icon").then(e.bind(null,"8ba4"))}},o=function(){var t=this,n=t.$createElement,e=(t._self._c,t.__map(t.value.list,(function(n,e){var a=t.__get_orig(n),o=n.iconType&&"img"!=n.iconType?null:t.$util.img(n.imageUrl);return{$orig:a,g0:o}})));t._isMounted||(t.e0=function(n,e){var a=arguments[arguments.length-1].currentTarget.dataset,o=a.eventParams||a["event-params"];e=o.item;return t.$util.diyRedirectTo(e.link)}),t.$mp.data=Object.assign({},{$root:{l0:e}})},i=[]},7533:function(t,n,e){"use strict";e.r(n);var a=e("7947"),o=e.n(a);for(var i in a)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(i);n["default"]=o.a},7947:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e=t.getSystemInfoSync(),a={name:"diy-float-btn",props:{value:{type:Object,default:function(){return{}}}},data:function(){return{navHeight:0,statusBarHeight:e.statusBarHeight}},created:function(){},watch:{componentRefresh:function(t){}},components:{},methods:{},computed:{style:function(){var t={};switch("ios"==e.platform?54:58,parseInt(this.value.bottomPosition)){case 1:t.top=2*(this.navHeight+this.statusBarHeight+parseInt(this.value.btnBottom))+"rpx";break;case 2:t.top=2*(this.navHeight+this.statusBarHeight+parseInt(this.value.btnBottom))+"rpx";break;case 3:t.bottom=2*(100+parseInt(this.value.btnBottom))+"rpx";break;case 4:t.bottom=2*(100+parseInt(this.value.btnBottom))+"rpx";break}return this.$util.objToStyle(t)}}};n.default=a}).call(this,e("df3c")["default"])},"7c53":function(t,n,e){"use strict";var a=e("d127"),o=e.n(a);o.a},cba9:function(t,n,e){"use strict";e.r(n);var a=e("3d91"),o=e("7533");for(var i in o)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(i);e("7c53");var r=e("828b"),u=Object(r["a"])(o["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);n["default"]=u.exports},d127:function(t,n,e){}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/diy-components/diy-float-btn-create-component',
|
||||
{
|
||||
'components/diy-components/diy-float-btn-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("cba9"))
|
||||
})
|
||||
},
|
||||
[['components/diy-components/diy-float-btn-create-component']]
|
||||
]);
|
||||
1
components/diy-components/diy-float-btn.json
Normal file
1
components/diy-components/diy-float-btn.json
Normal file
@@ -0,0 +1 @@
|
||||
{"component":true,"usingComponents":{"diy-icon":"/components/diy-components/diy-icon"}}
|
||||
1
components/diy-components/diy-float-btn.wxml
Normal file
1
components/diy-components/diy-float-btn.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<view class="{{['float-btn',(value.bottomPosition==1)?'left_top':'',(value.bottomPosition==2)?'right_top':'',(value.bottomPosition==3)?'left_bottom':'',(value.bottomPosition==4)?'right_bottom':'']}}" style="{{(style)}}"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" data-event-params="{{({item:item.$orig})}}" class="button-box" style="{{'width:'+(value.imageSize+'px')+';'+('height:'+(value.imageSize+'px')+';')+('font-size:'+(value.imageSize+'px')+';')}}" bindtap="__e"><block wx:if="{{!item.$orig.iconType||item.$orig.iconType=='img'}}"><image src="{{item.g0}}" mode="aspectFit" show-menu-by-longpress="{{true}}"></image></block><block wx:else><block wx:if="{{item.$orig.iconType&&item.$orig.iconType=='icon'}}"><diy-icon vue-id="{{'78ef1599-1-'+index}}" icon="{{item.$orig.icon}}" value="{{item.$orig.style?item.$orig.style:null}}" bind:__l="__l"></diy-icon></block></block></view></block></block></view>
|
||||
1
components/diy-components/diy-float-btn.wxss
Normal file
1
components/diy-components/diy-float-btn.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.float-btn{position:fixed;bottom:20%;right:40rpx;z-index:990}.float-btn.left_top{top:100rpx;left:30rpx}.float-btn.right_top{top:100rpx;right:30rpx}.float-btn.left_bottom{bottom:160rpx;left:30rpx;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.float-btn.right_bottom{bottom:160rpx;right:30rpx;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.float-btn .button-box{margin-bottom:20rpx;background:#ff0000;border-radius:50%;overflow:hidden}.float-btn .button-box:last-child{margin-bottom:0}.float-btn .button-box image{width:100%;height:100%}
|
||||
10
components/diy-components/diy-follow-official-account.js
Normal file
10
components/diy-components/diy-follow-official-account.js
Normal file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-follow-official-account"],{"5a12":function(n,t,e){"use strict";e.r(t);var o=e("9082"),u=e.n(o);for(var c in o)["default"].indexOf(c)<0&&function(n){e.d(t,n,(function(){return o[n]}))}(c);t["default"]=u.a},8104:function(n,t,e){"use strict";e.d(t,"b",(function(){return o})),e.d(t,"c",(function(){return u})),e.d(t,"a",(function(){}));var o=function(){var n=this.$createElement;this._self._c},u=[]},9082:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={name:"diy-follow-official-account",props:{value:{type:Object}},data:function(){return{}},watch:{componentRefresh:function(n){}},methods:{}};t.default=o},f7c8:function(n,t,e){"use strict";e.r(t);var o=e("8104"),u=e("5a12");for(var c in u)["default"].indexOf(c)<0&&function(n){e.d(t,n,(function(){return u[n]}))}(c);var a=e("828b"),f=Object(a["a"])(u["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);t["default"]=f.exports}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/diy-components/diy-follow-official-account-create-component',
|
||||
{
|
||||
'components/diy-components/diy-follow-official-account-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("f7c8"))
|
||||
})
|
||||
},
|
||||
[['components/diy-components/diy-follow-official-account-create-component']]
|
||||
]);
|
||||
@@ -0,0 +1 @@
|
||||
{"component":true,"usingComponents":{}}
|
||||
@@ -0,0 +1 @@
|
||||
<block wx:if="{{value.isShow}}"><view><official-account></official-account></view></block>
|
||||
10
components/diy-components/diy-form.js
Normal file
10
components/diy-components/diy-form.js
Normal file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-form"],{"052e":function(t,e,n){"use strict";var r=n("d016"),o=n.n(r);o.a},"39a3":function(t,e,n){"use strict";n.r(e);var r=n("630b"),o=n.n(r);for(var u in r)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(u);e["default"]=o.a},"630b":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={name:"diy-from",props:{value:{type:Object}},data:function(){return{loading:!0,markers:[],Form:{realname:"",mobile:"",mailbox:"",citys:"",remark:""}}},created:function(){},watch:{componentRefresh:function(t){}},computed:{markerst:function(){return[{id:1,latitude:this.value.list[0].lat,longitude:this.value.list[0].lng}]},style:function(){var t="";return t+="background-color:"+this.value.contentBgColor+";","round"==this.value.elementAngle&&(t+="border-top-left-radius:"+2*this.value.topElementAroundRadius+"rpx;",t+="border-top-right-radius:"+2*this.value.topElementAroundRadius+"rpx;",t+="border-bottom-left-radius:"+2*this.value.bottomElementAroundRadius+"rpx;",t+="border-bottom-right-radius:"+2*this.value.bottomElementAroundRadius+"rpx;"),t}},methods:{submitform:function(){var t=this;this.$api.sendRequest({url:"/api/member/information",data:this.Form,success:function(e){t.$util.showToast({title:e.message})}})}}};e.default=r},beb7:function(t,e,n){"use strict";n.r(e);var r=n("f274"),o=n("39a3");for(var u in o)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(u);n("052e");var i=n("828b"),a=Object(i["a"])(o["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);e["default"]=a.exports},d016:function(t,e,n){},f274:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var r=function(){var t=this.$createElement;this._self._c},o=[]}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/diy-components/diy-form-create-component',
|
||||
{
|
||||
'components/diy-components/diy-form-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("beb7"))
|
||||
})
|
||||
},
|
||||
[['components/diy-components/diy-form-create-component']]
|
||||
]);
|
||||
1
components/diy-components/diy-form.json
Normal file
1
components/diy-components/diy-form.json
Normal file
@@ -0,0 +1 @@
|
||||
{"component":true,"usingComponents":{}}
|
||||
1
components/diy-components/diy-form.wxml
Normal file
1
components/diy-components/diy-form.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<view class="diy-from" style="{{(style)}}"><view class="fui-cell-group"><view class="fui-cell"><view class="fui-cell-label">您的姓名</view><view class="fui-cell-info"><input class="fui-input" placeholder="请输入您的姓名" value="{{Form.realname}}" data-event-opts="{{[['input',[['__set_model',['$0','realname','$event',[]],['Form']]]]]}}" bindinput="__e"/></view></view><view class="fui-cell"><view class="fui-cell-label">手机号码</view><view class="fui-cell-info"><input class="fui-input" maxlength="11" placeholder="请输入您的手机号" type="number" data-event-opts="{{[['input',[['__set_model',['$0','mobile','$event',[]],['Form']]]]]}}" value="{{Form.mobile}}" bindinput="__e"/></view></view><view class="fui-cell"><view class="fui-cell-label">您的邮箱</view><view class="fui-cell-info"><input class="fui-input" placeholder="请输入您的邮箱" type="text" data-event-opts="{{[['input',[['__set_model',['$0','mailbox','$event',[]],['Form']]]]]}}" value="{{Form.mailbox}}" bindinput="__e"/></view></view><view class="fui-cell"><view class="fui-cell-label">所在城市</view><view class="fui-cell-info"><input class="fui-input" placeholder="请输入您的所在地" value="{{Form.citys}}" data-event-opts="{{[['input',[['__set_model',['$0','citys','$event',[]],['Form']]]]]}}" bindinput="__e"/></view></view><view class="fui-cell"><view class="fui-cell-label">备注</view><view class="fui-cell-info"><input class="fui-input" placeholder="请输入备注" value="{{Form.remark}}" data-event-opts="{{[['input',[['__set_model',['$0','remark','$event',[]],['Form']]]]]}}" bindinput="__e"/></view></view></view><view data-event-opts="{{[['tap',[['submitform',['$event']]]]]}}" class="fui-btn btn-danger block mtop" bindtap="__e">提交信息</view></view>
|
||||
1
components/diy-components/diy-form.wxss
Normal file
1
components/diy-components/diy-form.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.diy-from{background:#fff;padding-bottom:20rpx;border-radius:10rpx}
|
||||
10
components/diy-components/diy-goods-brand.js
Normal file
10
components/diy-components/diy-goods-brand.js
Normal file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-goods-brand"],{"2bf2":function(t,e,n){"use strict";var o=n("a59b"),r=n.n(o);r.a},a59b:function(t,e,n){},a600:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o}));var o={xSkeleton:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/x-skeleton/components/x-skeleton/x-skeleton")]).then(n.bind(null,"1226"))}},r=function(){var t=this,e=t.$createElement,n=(t._self._c,t.__map(t.list,(function(e,n){var o=t.__get_orig(e),r=t.$util.img(e.image_url);return{$orig:o,g0:r}})));t.$mp.data=Object.assign({},{$root:{l0:n}})},i=[]},bafd:function(t,e,n){"use strict";n.r(e);var o=n("d044"),r=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=r.a},bc82:function(t,e,n){"use strict";n.r(e);var o=n("a600"),r=n("bafd");for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);n("2bf2");var u=n("828b"),a=Object(u["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);e["default"]=a.exports},d044:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={name:"diy-goods-brand",props:{value:{type:Object}},components:{uniGrid:function(){n.e("components/uni-grid/uni-grid").then(function(){return resolve(n("d59a"))}.bind(null,n)).catch(n.oe)},uniGridItem:function(){n.e("components/uni-grid-item/uni-grid-item").then(function(){return resolve(n("03c5"))}.bind(null,n)).catch(n.oe)}},data:function(){return{list:[],loading:!0,skeletonConfig:{gridRows:2,gridColumns:4,gridRowsGap:"20rpx",headWidth:"120rpx",headHeight:"120rpx",textShow:!1}}},created:function(){this.getBrandList()},watch:{componentRefresh:function(t){this.getBrandList()}},computed:{warpCss:function(){var t="";return t+="background-color:"+this.value.componentBgColor+";","round"==this.value.componentAngle&&(t+="border-top-left-radius:"+2*this.value.topAroundRadius+"rpx;",t+="border-top-right-radius:"+2*this.value.topAroundRadius+"rpx;",t+="border-bottom-left-radius:"+2*this.value.bottomAroundRadius+"rpx;",t+="border-bottom-right-radius:"+2*this.value.bottomAroundRadius+"rpx;"),"shadow"==this.value.ornament.type&&(t+="box-shadow:0 0 10rpx "+this.value.ornament.color),"stroke"==this.value.ornament.type&&(t+="border:2rpx solid "+this.value.ornament.color),t},itemCss:function(){var t="";return"round"==this.value.elementAngle&&(t+="border-top-left-radius:"+2*this.value.topElementAroundRadius+"rpx;",t+="border-top-right-radius:"+2*this.value.topElementAroundRadius+"rpx;",t+="border-bottom-left-radius:"+2*this.value.bottomElementAroundRadius+"rpx;",t+="border-bottom-right-radius:"+2*this.value.bottomElementAroundRadius+"rpx;"),t}},methods:{getBrandList:function(){var t=this,e={page:1,page_size:this.value.count};"diy"==this.value.sources&&(e.page_size=0,e.brand_id_arr=this.value.brandIds.toString()),this.$api.sendRequest({url:"/api/goodsbrand/page",data:e,success:function(e){if(0==e.code&&e.data){var n=e.data;t.list=n.list}t.loading=!1}})},toDetail:function(t){this.$util.redirectTo("/pages/goods/list",{brand_id:t.brand_id})},imgError:function(t){this.list[t]&&(this.list[t].image_url=this.$util.getDefaultImage().goods)}}};e.default=o}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/diy-components/diy-goods-brand-create-component',
|
||||
{
|
||||
'components/diy-components/diy-goods-brand-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("bc82"))
|
||||
})
|
||||
},
|
||||
[['components/diy-components/diy-goods-brand-create-component']]
|
||||
]);
|
||||
1
components/diy-components/diy-goods-brand.json
Normal file
1
components/diy-components/diy-goods-brand.json
Normal file
@@ -0,0 +1 @@
|
||||
{"component":true,"usingComponents":{"x-skeleton":"/uni_modules/x-skeleton/components/x-skeleton/x-skeleton","uni-grid":"/components/uni-grid/uni-grid","uni-grid-item":"/components/uni-grid-item/uni-grid-item"}}
|
||||
1
components/diy-components/diy-goods-brand.wxml
Normal file
1
components/diy-components/diy-goods-brand.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<x-skeleton vue-id="52983054-1" type="waterfall" loading="{{loading}}" configs="{{skeletonConfig}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="{{['brand-wrap',value.ornament.type]}}" style="{{(warpCss)}}"><view class="{{[value.style]}}"><view hidden="{{!(value.title)}}" class="title-wrap" style="{{'color:'+(value.textColor)+';'+('font-weight:'+(value.fontWeight?'bold':'')+';')}}">{{value.title+''}}</view><view class="ul-wrap"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="li-item"><image class="brand-pic" style="{{(itemCss)}}" src="{{item.g0}}" mode="aspectFit" data-event-opts="{{[['tap',[['toDetail',['$0'],[[['list','',index]]]]]],['error',[['imgError',[index]]]]]}}" bindtap="__e" binderror="__e"></image></view></block></view></view></view></x-skeleton>
|
||||
1
components/diy-components/diy-goods-brand.wxss
Normal file
1
components/diy-components/diy-goods-brand.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.brand-wrap.shadow{margin-left:8rpx;margin-right:8rpx;margin-top:8rpx;margin-bottom:8rpx}.brand-wrap .style-1 .title-wrap{text-align:center;padding:20rpx 0 10rpx}.brand-wrap .style-1 .ul-wrap{display:flex;flex-wrap:wrap;padding:20rpx}.brand-wrap .style-1 .ul-wrap .li-item{display:flex;align-items:center;justify-content:center;width:calc(100% / 4 - 20rpx)!important;height:124rpx;margin:10rpx;background-color:#fff}.brand-wrap .style-1 .ul-wrap .li-item .brand-pic{width:100%;height:100%}
|
||||
10
components/diy-components/diy-goods-list.js
Normal file
10
components/diy-components/diy-goods-list.js
Normal file
File diff suppressed because one or more lines are too long
1
components/diy-components/diy-goods-list.json
Normal file
1
components/diy-components/diy-goods-list.json
Normal file
@@ -0,0 +1 @@
|
||||
{"component":true,"usingComponents":{"x-skeleton":"/uni_modules/x-skeleton/components/x-skeleton/x-skeleton","diy-icon":"/components/diy-components/diy-icon","ns-goods-sku-index":"/components/ns-goods-sku/ns-goods-sku-index"}}
|
||||
1
components/diy-components/diy-goods-list.wxml
Normal file
1
components/diy-components/diy-goods-list.wxml
Normal file
File diff suppressed because one or more lines are too long
1
components/diy-components/diy-goods-list.wxss
Normal file
1
components/diy-components/diy-goods-list.wxss
Normal file
File diff suppressed because one or more lines are too long
10
components/diy-components/diy-goods-recommend.js
Normal file
10
components/diy-components/diy-goods-recommend.js
Normal file
File diff suppressed because one or more lines are too long
1
components/diy-components/diy-goods-recommend.json
Normal file
1
components/diy-components/diy-goods-recommend.json
Normal file
@@ -0,0 +1 @@
|
||||
{"component":true,"usingComponents":{"x-skeleton":"/uni_modules/x-skeleton/components/x-skeleton/x-skeleton"}}
|
||||
1
components/diy-components/diy-goods-recommend.wxml
Normal file
1
components/diy-components/diy-goods-recommend.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<x-skeleton vue-id="372895bf-1" type="waterfall" loading="{{loading}}" configs="{{skeletonConfig}}" class="data-v-0bd9af58" bind:__l="__l" vue-slots="{{['default']}}"><block wx:if="{{$root.g0}}"><view class="{{['data-v-0bd9af58','goods-list',goodsValue.style]}}" style="{{(goodsListWarpCss)}}"><block wx:if="{{goodsValue.topStyle.support}}"><view class="top-wrap data-v-0bd9af58"><text class="{{['data-v-0bd9af58','js-icon',goodsValue.topStyle.icon.value]}}" style="{{'background-color:'+(goodsValue.topStyle.icon.bgColor)+';'+('color:'+(goodsValue.topStyle.icon.color)+';')}}"></text><text class="title data-v-0bd9af58" style="{{'color:'+(goodsValue.topStyle.color)+';'}}">{{goodsValue.topStyle.title}}</text><text class="line data-v-0bd9af58" style="{{'color:'+(goodsValue.topStyle.subColor)+';'}}"></text><text class="sub data-v-0bd9af58" style="{{'color:'+(goodsValue.topStyle.subColor)+';'}}">{{goodsValue.topStyle.subTitle}}</text></view></block><swiper class="swiper data-v-0bd9af58" style="{{'height:'+(swiperHeight)+';'}}" autoplay="{{false}}"><block wx:for="{{$root.l1}}" wx:for-item="item" wx:for-index="index" wx:key="index"><swiper-item class="{{['data-v-0bd9af58','swiper-item',item.g1]}}"><block wx:for="{{item.l0}}" wx:for-item="dataItem" wx:for-index="dataIndex" wx:key="dataIndex"><view data-event-opts="{{[['tap',[['toDetail',['$0'],[[['list.'+index+'','',dataIndex]]]]]]]}}" class="{{['goods-item','data-v-0bd9af58',goodsValue.ornament.type]}}" style="{{(goodsItemCss)}}" bindtap="__e"><view class="goods-img-wrap _div data-v-0bd9af58"><image class="goods-img data-v-0bd9af58" style="{{'border-radius:'+(value.imgAroundRadius*2+'rpx')+';'}}" src="{{dataItem.g2}}" mode="widthFix" lazy-load="{{true}}" data-event-opts="{{[['error',[['imgError',[index,dataIndex]]]]]}}" binderror="__e"></image><block wx:if="{{dataItem.$orig.stock<=0}}"><view class="sell-out data-v-0bd9af58"><text class="iconfont icon-shuqing data-v-0bd9af58"></text></view></block></view><block wx:if="{{goodsValue.goodsNameStyle.control||goodsValue.priceStyle.mainControl||goodsValue.priceStyle.lineControl||goodsValue.labelStyle.support}}"><view class="{{['data-v-0bd9af58','info-wrap',[(value.nameLineMode=='multiple')?'multi-content':'']]}}"><block wx:if="{{goodsValue.goodsNameStyle.control}}"><view class="{{['goods-name','data-v-0bd9af58',[(goodsValue.nameLineMode=='single')?'using-hidden':''],[(goodsValue.nameLineMode=='multiple')?'multi-hidden':'']]}}" style="{{'color:'+(goodsValue.theme=='diy'?goodsValue.goodsNameStyle.color:'')+';'+('font-weight:'+(goodsValue.goodsNameStyle.fontWeight?'bold':'')+';')}}">{{''+dataItem.$orig.goods_name+''}}</view></block><view class="pro-info data-v-0bd9af58"><block wx:if="{{goodsValue.labelStyle.support}}"><view class="label-wrap data-v-0bd9af58" style="{{'background:'+(goodsValue.labelStyle.bgColor)+';'+('color:'+(goodsValue.labelStyle.color)+';')}}"><image src="{{item.g3}}" mode="widthFix" class="data-v-0bd9af58"></image><text class="data-v-0bd9af58">{{goodsValue.labelStyle.title}}</text></view></block><view class="discount-price data-v-0bd9af58"><block wx:if="{{goodsValue.priceStyle.mainControl}}"><view class="price-wrap data-v-0bd9af58"><text class="unit price-style small data-v-0bd9af58" style="{{'color:'+(goodsValue.theme=='diy'?goodsValue.priceStyle.mainColor+'!important':'')+';'}}">¥</text><text class="price price-style large data-v-0bd9af58" style="{{'color:'+(goodsValue.theme=='diy'?goodsValue.priceStyle.mainColor+'!important':'')+';'}}">{{dataItem.g4[0]}}</text><text class="unit price-style small data-v-0bd9af58" style="{{'color:'+(goodsValue.theme=='diy'?goodsValue.priceStyle.mainColor+'!important':'')+';'}}">{{'.'+dataItem.g5[1]}}</text></view></block><block wx:if="{{dataItem.m0}}"><view class="delete-price price-font data-v-0bd9af58" style="{{'color:'+(goodsValue.theme=='diy'?goodsValue.priceStyle.lineColor:'')+';'}}">{{"¥"+dataItem.m1}}</view></block><block wx:if="{{goodsValue.saleStyle.control}}"><view class="sale data-v-0bd9af58" style="{{'color:'+(goodsValue.theme=='diy'?goodsValue.saleStyle.color:'')+';'}}">{{'售'+dataItem.$orig.sale_num+(dataItem.$orig.unit?dataItem.$orig.unit:'件')+''}}</view></block></view></view></view></block></view></block></swiper-item></block></swiper></view></block></x-skeleton>
|
||||
1
components/diy-components/diy-goods-recommend.wxss
Normal file
1
components/diy-components/diy-goods-recommend.wxss
Normal file
File diff suppressed because one or more lines are too long
10
components/diy-components/diy-graphic-nav.js
Normal file
10
components/diy-components/diy-graphic-nav.js
Normal file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-graphic-nav"],{"3f4c":function(e,t,n){},"57d5":function(e,t,n){"use strict";n.r(t);var o=n("814e"),i=n.n(o);for(var u in o)["default"].indexOf(u)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(u);t["default"]=i.a},"814e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={name:"diy-graphic-nav",props:{value:{type:Object}},data:function(){return{pageWidth:"",indicatorDots:!1,swiperCurrent:0}},created:function(){},watch:{componentRefresh:function(e){}},computed:{componentStyle:function(){var e="";return e+="background-color:"+this.value.componentBgColor+";","round"==this.value.componentAngle&&(e+="border-top-left-radius:"+2*this.value.topAroundRadius+"rpx;",e+="border-top-right-radius:"+2*this.value.topAroundRadius+"rpx;",e+="border-bottom-left-radius:"+2*this.value.bottomAroundRadius+"rpx;",e+="border-bottom-right-radius:"+2*this.value.bottomAroundRadius+"rpx;"),e+="box-shadow:"+("shadow"==this.value.ornament.type?"0 0 10rpx "+this.value.ornament.color:"")+";",e+="border:"+("stroke"==this.value.ornament.type?"2rpx solid "+this.value.ornament.color:"")+";",e},swiperHeight:function(){var e="",t=0;return"graphic"==this.value.mode?t=(49+this.value.imageSize)*this.value.pageCount:"img"==this.value.mode?t=(22+this.value.imageSize)*this.value.pageCount:"text"==this.value.mode&&(t=43*this.value.pageCount),e+="height:"+2*t+"rpx",e},isIndicatorDots:function(){var e;return e="hide"!=this.value.carousel.type&&1!=Math.ceil(this.value.list.length/(this.value.pageCount*this.value.rowCount)),e}},methods:{redirectTo:function(e){!e.wap_url||"pages/member/index"!=this.$util.getCurrRoute()||this.storeToken?(console.log(e),this.$util.diyRedirectTo(e)):this.$refs.login.open(e.wap_url)},swiperChange:function(e){this.swiperCurrent=e.detail.current}}};t.default=o},"8aee":function(e,t,n){},a38b:function(e,t,n){"use strict";var o=n("3f4c"),i=n.n(o);i.a},c9d3:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return o}));var o={diyIcon:function(){return n.e("components/diy-components/diy-icon").then(n.bind(null,"8ba4"))},nsLogin:function(){return Promise.all([n.e("common/vendor"),n.e("components/ns-login/ns-login")]).then(n.bind(null,"17d0"))}},i=function(){var e=this,t=e.$createElement,n=(e._self._c,"pageSlide"==e.value.showStyle?e.__map(Math.ceil(e.value.list.length/(e.value.pageCount*e.value.rowCount)),(function(t,n){var o=e.__get_orig(t),i=e.__map(e.value.list,(function(n,o){var i=e.__get_orig(n),u=o>=[t*(e.value.pageCount*e.value.rowCount)]&&o<[(t+1)*(e.value.pageCount*e.value.rowCount)]&&"text"!=e.value.mode&&"img"==n.iconType?e.$util.img(n.imageUrl)||e.$util.img("public/uniapp/default_img/goods.png"):null;return{$orig:i,g0:u}}));return{$orig:o,l0:i}})):null),o="pageSlide"==e.value.showStyle&&e.isIndicatorDots?Math.ceil(e.value.list.length/(e.value.pageCount*e.value.rowCount)):null,i="pageSlide"!=e.value.showStyle?e.__map(e.value.list,(function(t,n){var o=e.__get_orig(t),i="text"!=e.value.mode&&"img"==t.iconType?e.$util.img(t.imageUrl)||e.$util.img("public/uniapp/default_img/goods.png"):null;return{$orig:o,g1:i}})):null;e._isMounted||(e.e0=function(t,n){var o=arguments[arguments.length-1].currentTarget.dataset,i=o.eventParams||o["event-params"];n=i.item;return e.redirectTo(n.link)}),e.$mp.data=Object.assign({},{$root:{l1:n,l2:o,l3:i}})},u=[]},d396:function(e,t,n){"use strict";n.r(t);var o=n("c9d3"),i=n("57d5");for(var u in i)["default"].indexOf(u)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(u);n("d55e"),n("a38b");var a=n("828b"),r=Object(a["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);t["default"]=r.exports},d55e:function(e,t,n){"use strict";var o=n("8aee"),i=n.n(o);i.a}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/diy-components/diy-graphic-nav-create-component',
|
||||
{
|
||||
'components/diy-components/diy-graphic-nav-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("d396"))
|
||||
})
|
||||
},
|
||||
[['components/diy-components/diy-graphic-nav-create-component']]
|
||||
]);
|
||||
1
components/diy-components/diy-graphic-nav.json
Normal file
1
components/diy-components/diy-graphic-nav.json
Normal file
@@ -0,0 +1 @@
|
||||
{"component":true,"usingComponents":{"diy-icon":"/components/diy-components/diy-icon","ns-login":"/components/ns-login/ns-login"}}
|
||||
1
components/diy-components/diy-graphic-nav.wxml
Normal file
1
components/diy-components/diy-graphic-nav.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<view style="{{(componentStyle)}}"><block wx:if="{{value.showStyle=='pageSlide'}}"><block><swiper class="{{['graphic-nav','pageSlide',value.carousel.type]}}" style="{{(swiperHeight)}}" circular="{{true}}" indicator-dots="{{false}}" data-event-opts="{{[['change',[['swiperChange',['$event']]]]]}}" bindchange="__e"><block wx:for="{{$root.l1}}" wx:for-item="numItem" wx:for-index="numIndex"><swiper-item class="graphic-nav-wrap"><block wx:for="{{numItem.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block wx:if="{{index>=[numItem.$orig*(value.pageCount*value.rowCount)]&&index<[(numItem.$orig+1)*(value.pageCount*value.rowCount)]}}"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" data-event-params="{{({item:item.$orig})}}" class="{{['graphic-nav-item',value.mode]}}" style="{{'width:'+(100/value.rowCount+'%')+';'}}" bindtap="__e"><block wx:if="{{value.mode!='text'}}"><view class="graphic-img" style="{{'font-size:'+(value.imageSize*2+'rpx')+';'+('width:'+(value.imageSize*2+'rpx')+';')+('height:'+(value.imageSize*2+'rpx')+';')}}"><block wx:if="{{item.$orig.iconType=='img'}}"><image style="{{'max-width:'+(value.imageSize*2+'rpx')+';'+('max-height:'+(value.imageSize*2+'rpx')+';')+('border-radius:'+(value.aroundRadius*2+'rpx')+';')}}" src="{{item.g0}}" mode="aspectFill" show-menu-by-longpress="{{true}}"></image></block><block wx:if="{{item.$orig.iconType=='icon'}}"><diy-icon style="{{'max-width:'+(value.imageSize*2+'rpx')+';'+('max-height:'+(value.imageSize*2+'rpx')+';')+('width:'+('100%')+';')+('height:'+('100%')+';')}}" vue-id="{{'787286a6-1-'+numIndex+'-'+index}}" icon="{{item.$orig.icon}}" value="{{item.$orig.style?item.$orig.style:null}}" bind:__l="__l"></diy-icon></block><block wx:if="{{item.$orig.label.control}}"><text class="tag" style="{{'color:'+(item.$orig.label.textColor)+';'+('background-image:'+('linear-gradient('+item.$orig.label.bgColorStart+','+item.$orig.label.bgColorEnd+')')+';')}}">{{''+item.$orig.label.text+''}}</text></block></view></block><block wx:if="{{value.mode!='img'}}"><text class="graphic-text" style="{{'font-size:'+(value.font.size*2+'rpx')+';'+('font-weight:'+(value.font.weight)+';')+('color:'+(value.font.color)+';')}}">{{''+item.$orig.title+''}}</text></block></view></block></block></swiper-item></block></swiper><block wx:if="{{isIndicatorDots}}"><view class="{{['swiper-dot-box',value.carousel.type]}}"><block wx:for="{{$root.l2}}" wx:for-item="numItem" wx:for-index="numIndex" wx:key="numIndex"><view><view class="{{['swiper-dot',(numIndex==swiperCurrent)?'active':'']}}"></view></view></block></view></block></block></block><block wx:else><scroll-view class="{{['graphic-nav',value.showStyle=='fixed'?'fixed-layout':value.showStyle]}}" scroll-x="{{value.showStyle=='singleSlide'}}"><view class="uni-scroll-view-content"><block wx:for="{{$root.l3}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['redirectTo',['$0'],[[['value.list','',index,'link']]]]]]]}}" class="{{['graphic-nav-item',value.mode,value.mode==='text'?'newright':'']}}" style="{{'width:'+(100/value.rowCount+'%')+';'}}" bindtap="__e"><block wx:if="{{value.mode!='text'}}"><view class="graphic-img" style="{{'font-size:'+(value.imageSize*2+'rpx')+';'+('width:'+(value.imageSize*2+'rpx')+';')+('height:'+(value.imageSize*2+'rpx')+';')}}"><block wx:if="{{item.$orig.iconType=='img'}}"><image style="{{'max-width:'+(value.imageSize*2+'rpx')+';'+('max-height:'+(value.imageSize*2+'rpx')+';')+('border-radius:'+(value.aroundRadius*2+'rpx')+';')}}" src="{{item.g1}}" mode="aspectFill" show-menu-by-longpress="{{true}}"></image></block><block wx:if="{{item.$orig.iconType=='icon'}}"><diy-icon style="{{'max-width:'+(value.imageSize*2+'rpx')+';'+('max-height:'+(value.imageSize*2+'rpx')+';')+('width:'+('100%')+';')+('height:'+('100%')+';')}}" vue-id="{{'787286a6-2-'+index}}" icon="{{item.$orig.icon}}" value="{{item.$orig.style?item.$orig.style:null}}" bind:__l="__l"></diy-icon></block><block wx:if="{{item.$orig.label.control}}"><text class="{{['tag',[(value.mode=='text')?'alone':'']]}}" style="{{'color:'+(item.$orig.label.textColor)+';'+('background-image:'+('linear-gradient('+item.$orig.label.bgColorStart+','+item.$orig.label.bgColorEnd+')')+';')}}">{{''+item.$orig.label.text+''}}</text></block></view></block><block wx:if="{{value.mode!='img'}}"><text class="graphic-text" style="{{'border-radius:8rpx;'+('font-size:'+(value.font.size*2+'rpx')+';')+('font-weight:'+(value.font.weight)+';')+('color:'+(value.font.color)+';')+('background-color:'+(value.mode=='text'?value.font.bgcolor:'')+';')+('padding:'+(value.mode=='text'?'8rpx 0':'')+';')}}">{{''+item.$orig.title+''}}</text></block></view></block></view></scroll-view></block><ns-login class="vue-ref" vue-id="787286a6-3" data-ref="login" bind:__l="__l"></ns-login></view>
|
||||
1
components/diy-components/diy-graphic-nav.wxss
Normal file
1
components/diy-components/diy-graphic-nav.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.graphic-nav.fixed-layout .uni-scroll-view-content{display:flex;flex-wrap:wrap}.graphic-nav.singleSlide .uni-scroll-view-content{display:flex}.graphic-nav.pageSlide .uni-swiper-dots-horizontal{bottom:0rpx}.graphic-nav.pageSlide.straightLine .uni-swiper-dot{width:30rpx;border-radius:0;height:8rpx}.graphic-nav.pageSlide.circle .uni-swiper-dot{width:14rpx;height:14rpx}.newright{margin-right:16rpx}.graphic-nav{padding:16rpx;box-sizing:border-box}.graphic-nav.singleSlide .graphic-nav-item{flex-shrink:0}.graphic-nav.pageSlide{position:relative}.graphic-nav.pageSlide .graphic-nav-wrap{display:flex;flex-wrap:wrap;width:100%;height:100%}.graphic-nav .graphic-nav-item{display:flex;flex-direction:column;align-items:center;padding:14rpx 0;box-sizing:border-box}.graphic-nav .graphic-nav-item .graphic-text{padding-top:12rpx;line-height:1.5;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;width:100%;text-align:center}.graphic-nav .graphic-nav-item .graphic-text.alone{padding-top:0}.graphic-nav .graphic-nav-item.text .graphic-text{padding-top:0}.graphic-nav .graphic-nav-item .graphic-img{position:relative;display:flex;align-items:center;justify-content:center;width:100rpx;height:100rpx;font-size:90rpx}.graphic-nav .graphic-nav-item .graphic-img .tag{position:absolute;top:-10rpx;right:-24rpx;color:#fff;border-radius:24rpx;border-bottom-left-radius:0;-webkit-transform:scale(.8);transform:scale(.8);padding:8rpx 16rpx;line-height:1;font-size:24rpx}.graphic-nav .graphic-nav-item .graphic-img .icon{font-size:50rpx;color:#606266}.swiper-dot-box{width:100%;display:flex;align-items:center;justify-content:center;margin-top:-20rpx;padding-bottom:8rpx}.swiper-dot-box .swiper-dot{background-color:rgba(0,0,0,.3);margin:8rpx}.swiper-dot-box .swiper-dot.active{background-color:#000}.swiper-dot-box.straightLine .swiper-dot{width:30rpx;border-radius:0;height:8rpx}.swiper-dot-box.circle .swiper-dot{width:15rpx;border-radius:50%;height:15rpx}
|
||||
10
components/diy-components/diy-group.js
Normal file
10
components/diy-components/diy-group.js
Normal file
File diff suppressed because one or more lines are too long
1
components/diy-components/diy-group.json
Normal file
1
components/diy-components/diy-group.json
Normal file
@@ -0,0 +1 @@
|
||||
{"component":true,"usingComponents":{"diy-store":"/components/diy-components/diy-store","diy-kefu":"/components/diy-components/diy-kefu","diy-form":"/components/diy-components/diy-form","diy-image-nav":"/components/diy-components/diy-image-nav","diy-digit":"/components/diy-components/diy-digit","diy-video-list":"/components/diy-components/diy-video-list","diy-store-label":"/components/diy-components/diy-store-label","diy-picture":"/components/diy-components/diy-picture","diy-listmenu":"/components/diy-components/diy-listmenu","diy-text":"/components/diy-components/diy-text","diy-notice":"/components/diy-components/diy-notice","diy-graphic-nav":"/components/diy-components/diy-graphic-nav","diy-img-ads":"/components/diy-components/diy-img-ads","diy-search":"/components/diy-components/diy-search","diy-rich-text":"/components/diy-components/diy-rich-text","diy-horz-line":"/components/diy-components/diy-horz-line","diy-horz-blank":"/components/diy-components/diy-horz-blank","diy-coupon":"/components/diy-components/diy-coupon","diy-goods-list":"/components/diy-components/diy-goods-list","diy-many-goods-list":"/components/diy-components/diy-many-goods-list","diy-rubik-cube":"/components/diy-components/diy-rubik-cube","diy-video":"/components/diy-components/diy-video","diy-seckill":"/components/diy-components/diy-seckill","diy-pintuan":"/components/diy-components/diy-pintuan","diy-groupbuy":"/components/diy-components/diy-groupbuy","diy-pinfan":"/components/diy-components/diy-pinfan","diy-bargain":"/components/diy-components/diy-bargain","diy-presale":"/components/diy-components/diy-presale","diy-notes":"/components/diy-components/diy-notes","diy-float-btn":"/components/diy-components/diy-float-btn","diy-live":"/components/diy-components/diy-live","diy-fenxiao-goods-list":"/components/diy-components/diy-fenxiao-goods-list","diy-goods-recommend":"/components/diy-components/diy-goods-recommend","diy-goods-brand":"/components/diy-components/diy-goods-brand","diy-article":"/components/diy-components/diy-article","diy-merch-list":"/components/diy-components/diy-merch-list","diy-member-info":"/components/diy-components/diy-member-info","diy-member-my-order":"/components/diy-components/diy-member-my-order","diy-quick-nav":"/components/diy-components/diy-quick-nav","diy-payment-qrcode":"/components/diy-components/diy-payment-qrcode","diy-hot-area":"/components/diy-components/diy-hot-area","diy-follow-official-account":"/components/diy-components/diy-follow-official-account","diy-map":"/components/diy-components/diy-map","diy-audio":"/components/diy-components/diy-audio","diy-comp-extend":"/components/diy-components/diy-comp-extend"}}
|
||||
1
components/diy-components/diy-group.wxml
Normal file
1
components/diy-components/diy-group.wxml
Normal file
File diff suppressed because one or more lines are too long
1
components/diy-components/diy-group.wxss
Normal file
1
components/diy-components/diy-group.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.diy-group{width:100%}
|
||||
10
components/diy-components/diy-groupbuy.js
Normal file
10
components/diy-components/diy-groupbuy.js
Normal file
File diff suppressed because one or more lines are too long
1
components/diy-components/diy-groupbuy.json
Normal file
1
components/diy-components/diy-groupbuy.json
Normal file
@@ -0,0 +1 @@
|
||||
{"component":true,"usingComponents":{"x-skeleton":"/uni_modules/x-skeleton/components/x-skeleton/x-skeleton"}}
|
||||
1
components/diy-components/diy-groupbuy.wxml
Normal file
1
components/diy-components/diy-groupbuy.wxml
Normal file
File diff suppressed because one or more lines are too long
1
components/diy-components/diy-groupbuy.wxss
Normal file
1
components/diy-components/diy-groupbuy.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.uni-scroll-view ::-webkit-scrollbar{display:none;width:0;height:0;color:transparent;background:transparent}::-webkit-scrollbar{display:none;width:0;height:0;color:transparent;background:transparent}scroll-view ::-webkit-scrollbar{width:0;height:0;background-color:initial;touch-action:none}.diy-groupbuy.row1-of1 .item{display:flex;margin-bottom:20rpx;padding:16rpx}.diy-groupbuy.row1-of1 .item.shadow{margin:8rpx 8rpx 20rpx 8rpx}.diy-groupbuy.row1-of1 .item:last-child{margin-bottom:0;padding-bottom:20rpx}.diy-groupbuy.row1-of1 .item .img-wrap{width:200rpx;height:200rpx}.diy-groupbuy.row1-of1 .item .img-wrap > image{width:200rpx}.diy-groupbuy.row1-of1 .item .goods-name{margin-top:6rpx;line-height:1.5}.diy-groupbuy.row1-of1 .item .content{flex:1;margin-left:20rpx;position:relative}.diy-groupbuy.row1-of1 .item .content .discount-price{white-space:nowrap;font-weight:700;position:absolute;bottom:20rpx;left:0;display:flex;align-items:baseline;line-height:1}.diy-groupbuy.row1-of1 .item .content .discount-price .unit{font-size:24rpx;margin-right:4rpx;color:var(--base-color)}.diy-groupbuy.row1-of1 .item .content .discount-price .price{font-size:32rpx;color:var(--base-color)}.diy-groupbuy.row1-of1 .item .content button{position:absolute;bottom:10rpx;right:20rpx;margin:0;padding:0 20rpx;background-color:var(--base-color);color:#fff;min-width:112rpx;height:52rpx;line-height:52rpx;font-size:24rpx}.diy-groupbuy.horizontal-slide .scroll{width:calc(100% - 40rpx);padding:20rpx;line-height:1;white-space:nowrap}.diy-groupbuy.horizontal-slide .scroll .item.shadow{margin-bottom:8rpx}.diy-groupbuy.horizontal-slide .flex-between{justify-content:space-between}.diy-groupbuy.horizontal-slide .item{display:inline-block;width:200rpx;overflow:hidden;box-sizing:border-box}.diy-groupbuy.horizontal-slide .item:nth-child(3n + 3){width:198rpx}.diy-groupbuy.horizontal-slide .item.shadow{margin-top:8rpx}.diy-groupbuy.horizontal-slide .item .img-wrap{width:200rpx;height:200rpx;position:relative;overflow:hidden;margin:0 auto}.diy-groupbuy.horizontal-slide .item .img-wrap > image{width:200rpx}.diy-groupbuy.horizontal-slide .item .img-wrap .bg{position:absolute;width:100%;height:60rpx;bottom:0;left:0;z-index:2}.diy-groupbuy.horizontal-slide .item .img-wrap .num{width:180rpx;position:absolute;bottom:10rpx;padding-left:20rpx;font-size:20rpx;line-height:1;color:#fff;z-index:3}.diy-groupbuy.horizontal-slide .item .content{padding:10rpx;display:flex;flex-direction:column;justify-content:space-between}.diy-groupbuy.horizontal-slide .item .content.multi-content{height:158rpx;box-sizing:border-box}.diy-groupbuy.horizontal-slide .item .content .goods-name{line-height:1.3}.diy-groupbuy.horizontal-slide .item .content .goods-name.multi-hidden{white-space:break-spaces}.diy-groupbuy.horizontal-slide .item .content .discount-price{white-space:nowrap;margin-top:auto;font-weight:700;line-height:1}.diy-groupbuy.horizontal-slide .item .content .discount-price .unit{font-size:24rpx;margin-right:4rpx;color:var(--base-color)}.diy-groupbuy.horizontal-slide .item .content .discount-price .price{font-size:32rpx;color:var(--base-color)}.diy-groupbuy.horizontal-slide .item .content .original-price{font-size:24rpx;color:#909399;line-height:1;text-decoration:line-through}.diy-groupbuy.horizontal-slide .swiper{width:100%;white-space:nowrap;padding:20rpx;box-sizing:border-box}.diy-groupbuy.horizontal-slide .swiper .swiper-item{display:flex;align-items:center}.diy-groupbuy.horizontal-slide .swiper .item{width:200rpx}
|
||||
10
components/diy-components/diy-horz-blank.js
Normal file
10
components/diy-components/diy-horz-blank.js
Normal file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-horz-blank"],{2964:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o={name:"diy-horz-blank",props:{value:{type:Object}},data:function(){return{}},watch:{componentRefresh:function(t){}},computed:{horzBlankGaugeWrap:function(){var t="";return t+="background-color:"+this.value.componentBgColor+";","round"==this.value.componentAngle&&(t+="border-top-left-radius:"+2*this.value.topAroundRadius+"rpx;",t+="border-top-right-radius:"+2*this.value.topAroundRadius+"rpx;",t+="border-bottom-left-radius:"+2*this.value.bottomAroundRadius+"rpx;",t+="border-bottom-right-radius:"+2*this.value.bottomAroundRadius+"rpx;"),t+="height:"+2*this.value.height+"rpx",t}},created:function(){},methods:{}};n.default=o},"3aa9":function(t,n,e){"use strict";e.r(n);var o=e("2964"),r=e.n(o);for(var u in o)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(u);n["default"]=r.a},b44d:function(t,n,e){"use strict";e.r(n);var o=e("eaf1"),r=e("3aa9");for(var u in r)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(u);var a=e("828b"),i=Object(a["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);n["default"]=i.exports},eaf1:function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return r})),e.d(n,"a",(function(){}));var o=function(){var t=this.$createElement;this._self._c},r=[]}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/diy-components/diy-horz-blank-create-component',
|
||||
{
|
||||
'components/diy-components/diy-horz-blank-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("b44d"))
|
||||
})
|
||||
},
|
||||
[['components/diy-components/diy-horz-blank-create-component']]
|
||||
]);
|
||||
1
components/diy-components/diy-horz-blank.json
Normal file
1
components/diy-components/diy-horz-blank.json
Normal file
@@ -0,0 +1 @@
|
||||
{"component":true,"usingComponents":{}}
|
||||
1
components/diy-components/diy-horz-blank.wxml
Normal file
1
components/diy-components/diy-horz-blank.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<view style="{{(horzBlankGaugeWrap)}}"></view>
|
||||
10
components/diy-components/diy-horz-line.js
Normal file
10
components/diy-components/diy-horz-line.js
Normal file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-horz-line"],{"265e":function(n,e,t){"use strict";t.r(e);var u=t("b041"),o=t("54e4");for(var r in o)["default"].indexOf(r)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(r);var a=t("828b"),i=Object(a["a"])(o["default"],u["b"],u["c"],!1,null,null,null,!1,u["a"],void 0);e["default"]=i.exports},"54e4":function(n,e,t){"use strict";t.r(e);var u=t("bea8"),o=t.n(u);for(var r in u)["default"].indexOf(r)<0&&function(n){t.d(e,n,(function(){return u[n]}))}(r);e["default"]=o.a},b041:function(n,e,t){"use strict";t.d(e,"b",(function(){return u})),t.d(e,"c",(function(){return o})),t.d(e,"a",(function(){}));var u=function(){var n=this.$createElement;this._self._c},o=[]},bea8:function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u={name:"diy-horz-line",props:{value:{type:Object}},data:function(){return{}},watch:{componentRefresh:function(n){}},methods:{}};e.default=u}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/diy-components/diy-horz-line-create-component',
|
||||
{
|
||||
'components/diy-components/diy-horz-line-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("265e"))
|
||||
})
|
||||
},
|
||||
[['components/diy-components/diy-horz-line-create-component']]
|
||||
]);
|
||||
1
components/diy-components/diy-horz-line.json
Normal file
1
components/diy-components/diy-horz-line.json
Normal file
@@ -0,0 +1 @@
|
||||
{"component":true,"usingComponents":{}}
|
||||
1
components/diy-components/diy-horz-line.wxml
Normal file
1
components/diy-components/diy-horz-line.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<view style="{{'border-top:'+('2rpx '+value.borderStyle+' '+value.color)+';'}}"></view>
|
||||
10
components/diy-components/diy-hot-area.js
Normal file
10
components/diy-components/diy-hot-area.js
Normal file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-hot-area"],{"342b":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={name:"diy-hot-area",props:{value:{type:Object,default:function(){return{}}}},data:function(){return{}},created:function(){},watch:{componentRefresh:function(t){}},computed:{hotAreaWarp:function(){var t="";return t="background-color:"+this.value.componentBgColor+";","round"==this.value.componentAngle&&(t+="border-top-left-radius:"+2*this.value.topAroundRadius+"rpx;",t+="border-top-right-radius:"+2*this.value.topAroundRadius+"rpx;",t+="border-bottom-left-radius:"+2*this.value.bottomAroundRadius+"rpx;",t+="border-bottom-right-radius:"+2*this.value.bottomAroundRadius+"rpx;"),t}},methods:{}};e.default=r},"439a":function(t,e,n){},"441a":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var r=function(){var t=this,e=t.$createElement,n=(t._self._c,t.$util.img(t.value.imageUrl));t._isMounted||(t.e0=function(e,n){var r=arguments[arguments.length-1].currentTarget.dataset,o=r.eventParams||r["event-params"];n=o.mapItem;return e.stopPropagation(),t.$util.diyRedirectTo(n.link)}),t.$mp.data=Object.assign({},{$root:{g0:n}})},o=[]},4734:function(t,e,n){"use strict";n.r(e);var r=n("342b"),o=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=o.a},"502f":function(t,e,n){"use strict";var r=n("439a"),o=n.n(r);o.a},d84a:function(t,e,n){"use strict";n.r(e);var r=n("441a"),o=n("4734");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("502f");var u=n("828b"),i=Object(u["a"])(o["default"],r["b"],r["c"],!1,null,"495ed12e",null,!1,r["a"],void 0);e["default"]=i.exports}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/diy-components/diy-hot-area-create-component',
|
||||
{
|
||||
'components/diy-components/diy-hot-area-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("d84a"))
|
||||
})
|
||||
},
|
||||
[['components/diy-components/diy-hot-area-create-component']]
|
||||
]);
|
||||
1
components/diy-components/diy-hot-area.json
Normal file
1
components/diy-components/diy-hot-area.json
Normal file
@@ -0,0 +1 @@
|
||||
{"component":true,"usingComponents":{}}
|
||||
1
components/diy-components/diy-hot-area.wxml
Normal file
1
components/diy-components/diy-hot-area.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<view class="hot-area-box data-v-495ed12e" style="{{(hotAreaWarp)}}"><view class="simple-graph-wrap data-v-495ed12e"><image style="{{'height:'+(value.imgHeight)+';'}}" src="{{$root.g0}}" mode="widthFix" show-menu-by-longpress="{{true}}" class="data-v-495ed12e"></image><block wx:for="{{value.heatMapData}}" wx:for-item="mapItem" wx:for-index="mapIndex" wx:key="mapIndex"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" data-event-params="{{({mapItem})}}" class="heat-map data-v-495ed12e" style="{{'width:'+(mapItem.width+'%')+';'+('height:'+(mapItem.height+'%')+';')+('left:'+(mapItem.left+'%')+';')+('top:'+(mapItem.top+'%')+';')}}" catchtap="__e"></view></block></view></view>
|
||||
1
components/diy-components/diy-hot-area.wxss
Normal file
1
components/diy-components/diy-hot-area.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.hot-area-box.data-v-495ed12e{position:relative;width:100%;overflow:hidden;box-sizing:border-box}.simple-graph-wrap.data-v-495ed12e{line-height:0;overflow:hidden;position:relative}.simple-graph-wrap image.data-v-495ed12e{width:100%}.simple-graph-wrap .heat-map.data-v-495ed12e{position:absolute}
|
||||
10
components/diy-components/diy-icon.js
Normal file
10
components/diy-components/diy-icon.js
Normal file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-icon"],{3789:function(n,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={name:"diy-icon",props:{icon:{type:String,default:""},value:{type:Object,default:function(){return null}}},computed:{iconClass:function(){var n=" "+this.icon;return this.value&&this.value.iconColor.length>1&&(n+=" gradient"),n},iconBgStyle:function(){if(!this.value)return{};var n={"border-radius":this.value.bgRadius+"%",background:""};return this.value.iconBgImg&&(n["background"]+="url("+this.$util.img(this.value.iconBgImg)+") no-repeat bottom / contain"),this.value.iconBgColor.length&&(n.background&&(n.background+=","),1==this.value.iconBgColor.length?n.background+=this.value.iconBgColor[0]:n["background"]+="linear-gradient("+this.value.iconBgColorDeg+"deg, "+this.value.iconBgColor.join(",")+")"),this.$util.objToStyle(n)},iconStyle:function(){if(!this.value)return{};var n={"font-size":this.value.fontSize+"%"};return 1==this.value.iconColor.length?n.color=this.value.iconColor[0]:n["background"]="linear-gradient("+this.value.iconColorDeg+"deg, "+this.value.iconColor.join(",")+")",this.$util.objToStyle(n)}}};t.default=i},"55d9":function(n,t,o){},"8ba4":function(n,t,o){"use strict";o.r(t);var i=o("b716"),e=o("9dfb");for(var u in e)["default"].indexOf(u)<0&&function(n){o.d(t,n,(function(){return e[n]}))}(u);o("ef6c");var r=o("828b"),a=Object(r["a"])(e["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);t["default"]=a.exports},"9dfb":function(n,t,o){"use strict";o.r(t);var i=o("3789"),e=o.n(i);for(var u in i)["default"].indexOf(u)<0&&function(n){o.d(t,n,(function(){return i[n]}))}(u);t["default"]=e.a},b716:function(n,t,o){"use strict";o.d(t,"b",(function(){return i})),o.d(t,"c",(function(){return e})),o.d(t,"a",(function(){}));var i=function(){var n=this.$createElement;this._self._c},e=[]},ef6c:function(n,t,o){"use strict";var i=o("55d9"),e=o.n(i);e.a}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/diy-components/diy-icon-create-component',
|
||||
{
|
||||
'components/diy-components/diy-icon-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("8ba4"))
|
||||
})
|
||||
},
|
||||
[['components/diy-components/diy-icon-create-component']]
|
||||
]);
|
||||
1
components/diy-components/diy-icon.json
Normal file
1
components/diy-components/diy-icon.json
Normal file
@@ -0,0 +1 @@
|
||||
{"component":true,"usingComponents":{}}
|
||||
1
components/diy-components/diy-icon.wxml
Normal file
1
components/diy-components/diy-icon.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<view class="diy-icon" style="{{(iconBgStyle)}}"><text class="{{['js-icon',iconClass]}}" style="{{(iconStyle)}}"></text></view>
|
||||
1
components/diy-components/diy-icon.wxss
Normal file
1
components/diy-components/diy-icon.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.diy-icon{width:100%;height:100%;font-size:100%;color:#000;display:flex;align-items:center;justify-content:center}.diy-icon .js-icon{font-size:50%;line-height:1;padding:1rpx}.diy-icon .js-icon.gradient{-webkit-background-clip:text!important;-webkit-text-fill-color:transparent}
|
||||
10
components/diy-components/diy-image-nav.js
Normal file
10
components/diy-components/diy-image-nav.js
Normal file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-image-nav"],{"035c":function(t,e,n){},"1abf":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"diy-image-nav",props:{value:{type:Object}},data:function(){return{pageWidth:"",indicatorDots:!1,swiperCurrent:0}},created:function(){},watch:{componentRefresh:function(t){}},computed:{componentStyle:function(){var t="";return t+="background-color:"+this.value.componentBgColor+";","round"==this.value.componentAngle&&(t+="border-top-left-radius:"+2*this.value.topAroundRadius+"rpx;",t+="border-top-right-radius:"+2*this.value.topAroundRadius+"rpx;",t+="border-bottom-left-radius:"+2*this.value.bottomAroundRadius+"rpx;",t+="border-bottom-right-radius:"+2*this.value.bottomAroundRadius+"rpx;"),t+="box-shadow:"+("shadow"==this.value.ornament.type?"0 0 10rpx "+this.value.ornament.color:"")+";",t+="border:"+("stroke"==this.value.ornament.type?"2rpx solid "+this.value.ornament.color:"")+";",t},swiperHeight:function(){var t="",e=0;return"graphic"==this.value.mode?e=(49+this.value.imageSize)*this.value.pageCount:"img"==this.value.mode?e=(22+this.value.imageSize)*this.value.pageCount:"text"==this.value.mode&&(e=43*this.value.pageCount),t+="height:"+2*e+"rpx",t},isIndicatorDots:function(){var t;return t="hide"!=this.value.carousel.type&&1!=Math.ceil(this.value.list.length/(this.value.pageCount*this.value.rowCount)),t}},methods:{previewImg:function(e){t.previewImage({current:0,urls:[this.$util.img(e)],success:function(t){},fail:function(t){},complete:function(t){}})},redirectTo:function(t){!t.wap_url||"pages/member/index"!=this.$util.getCurrRoute()||this.storeToken?this.$util.diyRedirectTo(t):this.$refs.login.open(t.wap_url)},swiperChange:function(t){this.swiperCurrent=t.detail.current}}};e.default=n}).call(this,n("df3c")["default"])},"2ee0d":function(t,e,n){"use strict";n.r(e);var i=n("55ad"),o=n("a025");for(var u in o)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(u);n("b503"),n("c6b8");var r=n("828b"),a=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=a.exports},"55ad":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return i}));var i={nsLogin:function(){return Promise.all([n.e("common/vendor"),n.e("components/ns-login/ns-login")]).then(n.bind(null,"17d0"))}},o=function(){var t=this,e=t.$createElement,n=(t._self._c,t.__map(t.value.list,(function(e,n){var i=t.__get_orig(e),o="text"!=t.value.mode&&e.link.wap_url?t.$util.img(e.imageUrl)||t.$util.img("public/uniapp/default_img/goods.png"):null,u="text"==t.value.mode||e.link.wap_url?null:t.$util.img(e.imageUrl)||t.$util.img("public/uniapp/default_img/goods.png");return{$orig:i,g0:o,g1:u}})));t.$mp.data=Object.assign({},{$root:{l0:n}})},u=[]},a025:function(t,e,n){"use strict";n.r(e);var i=n("1abf"),o=n.n(i);for(var u in i)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(u);e["default"]=o.a},b503:function(t,e,n){"use strict";var i=n("035c"),o=n.n(i);o.a},c6b8:function(t,e,n){"use strict";var i=n("dd2a"),o=n.n(i);o.a},dd2a:function(t,e,n){}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/diy-components/diy-image-nav-create-component',
|
||||
{
|
||||
'components/diy-components/diy-image-nav-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("2ee0d"))
|
||||
})
|
||||
},
|
||||
[['components/diy-components/diy-image-nav-create-component']]
|
||||
]);
|
||||
1
components/diy-components/diy-image-nav.json
Normal file
1
components/diy-components/diy-image-nav.json
Normal file
@@ -0,0 +1 @@
|
||||
{"component":true,"usingComponents":{"ns-login":"/components/ns-login/ns-login"}}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user