feat(mp-harmony): 完善鸿蒙小程序项目适配与新增功能
1. 新增MP-HARMONY平台编译支持 2. 新增大量自定义组件、页面与工具页面 3. 调整站点配置与应用名称 4. 清理冗余静态资源与旧组件配置
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// 发行版本,配置说明
|
||||
let releaseCfg = undefined;
|
||||
|
||||
// #ifdef APP-PLUS || MP-WEIXIN || MP-ALIPAY || MP-BAIDU || MP-QQ || MP-TOUTIAO
|
||||
// #ifdef APP-PLUS || MP-WEIXIN || MP-ALIPAY || MP-BAIDU || MP-QQ || MP-TOUTIAO || MP-HARMONY
|
||||
try {
|
||||
if (site) { // 从site.js文件中获取配置, 针对微信小程序类
|
||||
releaseCfg = {
|
||||
|
||||
@@ -19,6 +19,22 @@ const path = require('path');
|
||||
const { openFileDirectory } = require('./open-directory');
|
||||
const { createZipWithSystemCommand } = require('./create-zip');
|
||||
|
||||
async function syncSiteToStub(mode = 'production') {
|
||||
try {
|
||||
const cwd = path.join(__dirname, '..');
|
||||
const srcSitePath = path.join(cwd, 'site.js');
|
||||
const stubSitePath = path.join(cwd, 'stub-app-projects', 'mp-harmony', 'ascf', 'ascf_src', 'site.js');
|
||||
|
||||
if (await exists(srcSitePath)) {
|
||||
await fsp.copyFile(srcSitePath, stubSitePath);
|
||||
console.log('site.js 已同步到 stub 项目源码目录');
|
||||
}
|
||||
} catch (err) {
|
||||
console.error('同步 site.js 到 stub 失败:', err);
|
||||
process.exitCode = 1;
|
||||
}
|
||||
}
|
||||
|
||||
async function copyAssets(mode = 'production') {
|
||||
try {
|
||||
const cwd = path.join(__dirname, '..');
|
||||
@@ -71,6 +87,9 @@ async function main() {
|
||||
options.mode = argv[modeIndex + 1];
|
||||
}
|
||||
|
||||
// 同步 site.js 到 stub 项目源码目录,确保编译时能动态导入
|
||||
await syncSiteToStub(options.mode);
|
||||
|
||||
await copyAssets(options.mode);
|
||||
|
||||
if (!options.noZip && options.mode === 'production') {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"app": {
|
||||
"bundleName": "com.atomicservice.6917600346243947691",
|
||||
"bundleName": "com.atomicservice.6917600524822452448",
|
||||
"bundleType": "atomicService",
|
||||
"vendor": "example",
|
||||
"versionCode": 1000000,
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 88 KiB After Width: | Height: | Size: 56 KiB |
@@ -1,30 +1,107 @@
|
||||
{
|
||||
"pages": [
|
||||
"pages/index/index",
|
||||
"pages/contact/contact",
|
||||
"pages/goods/cart",
|
||||
"pages/goods/category",
|
||||
"pages/goods/detail",
|
||||
"pages/goods/list",
|
||||
"pages/order/payment",
|
||||
"pages/order/list",
|
||||
"pages/order/detail",
|
||||
"pages/order/detail_local_delivery",
|
||||
"pages/order/detail_pickup",
|
||||
"pages/order/detail_point",
|
||||
"pages/member/index"
|
||||
"pages/empty/index"
|
||||
],
|
||||
"subPackages": [
|
||||
"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/empty/index",
|
||||
"text": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
"preloadRule": {
|
||||
"pages/index/index": {
|
||||
"network": "all",
|
||||
"packages": [
|
||||
"pages_tool"
|
||||
]
|
||||
}
|
||||
},
|
||||
"distribute": {
|
||||
"bundleName": "com.atomicservice.6917577984608507983"
|
||||
},
|
||||
"component2": true,
|
||||
"subpackages": [
|
||||
{
|
||||
"root": "pages_goods",
|
||||
"pages": [
|
||||
"category",
|
||||
"cart",
|
||||
"detail",
|
||||
"list"
|
||||
],
|
||||
"resource": "pages_goods"
|
||||
},
|
||||
{
|
||||
"root": "pages_order",
|
||||
"pages": [
|
||||
"payment",
|
||||
"list",
|
||||
"detail",
|
||||
"detail_local_delivery",
|
||||
"detail_pickup",
|
||||
"detail_point"
|
||||
],
|
||||
"resource": "pages_order"
|
||||
},
|
||||
{
|
||||
"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"
|
||||
],
|
||||
"resource": "pages_promotion"
|
||||
},
|
||||
{
|
||||
"root": "pages_tool",
|
||||
"pages": [
|
||||
"cases/index",
|
||||
"files/list",
|
||||
"weapp/order_shipping",
|
||||
"ai-chat/index",
|
||||
"agreement/contenr",
|
||||
"vr/index",
|
||||
"contact/contact",
|
||||
"webview/webview",
|
||||
"index/diy",
|
||||
"member/index",
|
||||
"member/modify_face",
|
||||
"member/account",
|
||||
"member/account_edit",
|
||||
@@ -65,6 +142,7 @@
|
||||
"help/detail",
|
||||
"notice/list",
|
||||
"notice/detail",
|
||||
"article/list",
|
||||
"article/detail",
|
||||
"recharge/list",
|
||||
"recharge/order_list",
|
||||
@@ -84,66 +162,18 @@
|
||||
"order/activist",
|
||||
"order/detail_virtual",
|
||||
"login/login",
|
||||
"form/formdata"
|
||||
"form/form",
|
||||
"form/formdata",
|
||||
"weapp/order_shipping",
|
||||
"seal/structure",
|
||||
"seal/medium/search",
|
||||
"seal/medium/detail",
|
||||
"cases/index",
|
||||
"files/list",
|
||||
"file-preview/file-preview"
|
||||
],
|
||||
"resource": "pages_tool",
|
||||
"common": true
|
||||
"resource": "pages_tool"
|
||||
}
|
||||
],
|
||||
"window": {
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarTitleText": "",
|
||||
"navigationBarBackgroundColor": "#F8F8F8",
|
||||
"backgroundColor": "#F8F8F8"
|
||||
},
|
||||
"tabBar": {
|
||||
"custom": true,
|
||||
"color": "#333",
|
||||
"selectedColor": "#FF0036",
|
||||
"backgroundColor": "#fff",
|
||||
"borderStyle": "white",
|
||||
"list": [
|
||||
{
|
||||
"pagePath": "pages/index/index",
|
||||
"iconPath": "/static/tabbar/home.png",
|
||||
"selectedIconPath": "/static/tabbar/home.png",
|
||||
"text": "首页"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/goods/category",
|
||||
"text": "商品分类",
|
||||
"iconPath": "/static/tabbar/cate.png",
|
||||
"selectedIconPath": "/static/tabbar/cate.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/contact/contact",
|
||||
"iconPath": "/static/tabbar/mp.png",
|
||||
"selectedIconPath": "/static/tabbar/mp.png",
|
||||
"text": "电子名片"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/goods/cart",
|
||||
"iconPath": "/static/tabbar/mp.png",
|
||||
"selectedIconPath": "/static/tabbar/mp.png",
|
||||
"text": "购物车"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/member/index",
|
||||
"iconPath": "/static/tabbar/mp.png",
|
||||
"selectedIconPath": "/static/tabbar/mp.png",
|
||||
"text": "会员中心"
|
||||
}
|
||||
]
|
||||
},
|
||||
"distribute": {
|
||||
"bundleName": "com.atomicservice.6917577984608507983"
|
||||
},
|
||||
"component2": 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"
|
||||
}
|
||||
"usingComponents": {}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
||||
|
||||
!function(){try{var a=Function("return this")();a&&!a.Math&&(Object.assign(a,{isFinite:isFinite,Array:Array,Date:Date,Error:Error,Function:Function,Math:Math,Object:Object,RegExp:RegExp,String:String,TypeError:TypeError,setTimeout:setTimeout,clearTimeout:clearTimeout,setInterval:setInterval,clearInterval:clearInterval}),"undefined"!=typeof Reflect&&(a.Reflect=Reflect))}catch(a){}}();
|
||||
(function(e){function r(r){for(var n,a,i=r[0],l=r[1],c=r[2],p=0,s=[];p<i.length;p++)a=i[p],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&s.push(o[a][0]),o[a]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n]);f&&f(r);while(s.length)s.shift()();return u.push.apply(u,c||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,i=1;i<t.length;i++){var l=t[i];0!==o[l]&&(n=!1)}n&&(u.splice(r--,1),e=a(a.s=t[0]))}return e}var n={},o={"common/runtime":0},u=[];function a(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,a),t.l=!0,t.exports}a.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var u,i=document.createElement("script");i.charset="utf-8",i.timeout=120,a.nc&&i.setAttribute("nonce",a.nc),i.src=function(e){return a.p+""+e+".js"}(e);var l=new Error;u=function(r){i.onerror=i.onload=null,clearTimeout(c);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;l.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",l.name="ChunkLoadError",l.type=n,l.request=u,t[1](l)}o[e]=void 0}};var c=setTimeout((function(){u({type:"timeout",target:i})}),12e4);i.onerror=i.onload=u,document.head.appendChild(i)}return Promise.all(r)},a.m=e,a.c=n,a.d=function(e,r,t){a.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},a.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,r){if(1&r&&(e=a(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(a.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)a.d(t,n,function(r){return e[r]}.bind(null,n));return t},a.n=function(e){var r=e&&e.__esModule?function(){return e["default"]}:function(){return e};return a.d(r,"a",r),r},a.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},a.p="/",a.oe=function(e){throw console.error(e),e};var i=global["webpackJsonp"]=global["webpackJsonp"]||[],l=i.push.bind(i);i.push=r,i=i.slice();for(var c=0;c<i.length;c++)r(i[c]);var f=l;t()})([]);
|
||||
!function(e){function r(r){for(var n,a,i=r[0],l=r[1],c=r[2],p=0,s=[];p<i.length;p++)a=i[p],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&s.push(o[a][0]),o[a]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n]);for(f&&f(r);s.length;)s.shift()();return u.push.apply(u,c||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,i=1;i<t.length;i++)0!==o[t[i]]&&(n=!1);n&&(u.splice(r--,1),e=a(a.s=t[0]))}return e}var n={},o={"common/runtime":0},u=[];function a(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,a),t.l=!0,t.exports}a.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var u,i=document.createElement("script");i.charset="utf-8",i.timeout=120,a.nc&&i.setAttribute("nonce",a.nc),i.src=function(e){return a.p+""+e+".js"}(e);var l=new Error;u=function(r){i.onerror=i.onload=null,clearTimeout(c);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;l.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",l.name="ChunkLoadError",l.type=n,l.request=u,t[1](l)}o[e]=void 0}};var c=setTimeout((function(){u({type:"timeout",target:i})}),12e4);i.onerror=i.onload=u,document.head.appendChild(i)}return Promise.all(r)},a.m=e,a.c=n,a.d=function(e,r,t){a.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,r){if(1&r&&(e=a(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(a.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)a.d(t,n,function(r){return e[r]}.bind(null,n));return t},a.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(r,"a",r),r},a.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},a.p="/",a.oe=function(e){throw e};var i=global.webpackJsonp=global.webpackJsonp||[],l=i.push.bind(i);i.push=r,i=i.slice();for(var c=0;c<i.length;c++)r(i[c]);var f=l;t()}([]);
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
.article-wrap .list-wrap .auto-scroll-swiper{height:600rpx;width:100%}.article-wrap .list-wrap .auto-scroll-swiper .swiper-item-content{padding:10rpx 20rpx;box-sizing:border-box}.article-wrap .list-wrap .item{margin:0;margin-bottom:24rpx}.article-wrap .list-wrap .style-1 .item{padding:20rpx}.article-wrap .list-wrap.style-1 .item{display:flex;margin-top:0}.article-wrap .list-wrap.style-1 .item:first-of-type{margin-top:0}.article-wrap .list-wrap.style-1 .item .article-img{margin-right:20rpx;width:160rpx;height:160rpx;overflow:hidden;display:flex;align-items:center;justify-content:center}.article-wrap .list-wrap.style-1 .item .article-img image{width:100%}.article-wrap .list-wrap.style-1 .item .info-wrap{flex:1;display:flex;flex-direction:column;justify-content:space-between}.article-wrap .list-wrap.style-1 .item .info-wrap .title{font-weight:700;margin-bottom:10rpx;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:30rpx;line-height:1.5}.article-wrap .list-wrap.style-1 .item .info-wrap .abstract{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:24rpx}.article-wrap .list-wrap.style-1 .item .info-wrap .read-wrap{display:flex;color:#999ca7;justify-content:flex-start;align-items:center;margin-top:10rpx;line-height:1}.article-wrap .list-wrap.style-1 .item .info-wrap .read-wrap text{font-size:24rpx}.article-wrap .list-wrap.style-1 .item .info-wrap .read-wrap .iconfont{font-size:36rpx;vertical-align:bottom;margin-right:10rpx}.article-wrap .list-wrap.style-1 .item .info-wrap .read-wrap .category-icon{width:8rpx;height:8rpx;border-radius:50%;background:var(--base-color);margin-right:10rpx}.article-wrap .list-wrap.style-1 .item .info-wrap .read-wrap .date{margin-left:20rpx}
|
||||
@@ -0,0 +1 @@
|
||||
<x-skeleton vue-id="278d58fc-1" data-component-name="diy-article" type="list" loading="{{loading}}" configs="{{skeletonConfig}}" vue-slots="{{['default']}}"><view class="article-wrap" style="{{(warpCss)}}"><view class="{{['list-wrap',value.style]}}" style="{{(warpCss)}}"><block has:if="{{list.length>0}}"><swiper class="auto-scroll-swiper" style="{{$root.s0}}" vertical="{{swiperConfig.vertical!==false}}" autoplay="{{swiperConfig.autoplay!==false}}" circular="{{swiperConfig.circular!==false}}" interval="{{swiperConfig.interval||3000}}" duration="{{swiperConfig.duration||500}}" display-multiple-items="{{safeDisplayMultipleItems}}"><block has:for="{{$root.l0}}" has:for-item="item" has:for-index="index" has:key="index"><swiper-item data-event-opts="{{[['tap',[['toDetail',['$0'],[[['list','',index]]]]]]]}}" catchtap="__e"><view class="swiper-item-content"><view class="{{['item',value.ornament.type]}}" style="{{(itemCss)}}"><view class="article-img"><image class="cover-img" src="{{item.g0}}" mode="widthFix" show-menu-by-longpress="{{true}}" 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" style="color:#888;font-size:24rpx;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis;">{{item.$orig.article_abstract}}</text><view class="read-wrap"><block has:if="{{item.$orig.category_name}}"><block><text class="category-icon"></text><text>{{item.$orig.category_name}}</text></block></block><text class="date">{{item.g1}}</text></view></view></view></view></swiper-item></block></swiper></block></view></view></x-skeleton>
|
||||
@@ -0,0 +1,10 @@
|
||||
(global.webpackJsonp=global.webpackJsonp||[]).push([["components-diy/diy-article"],{2339:function(t,e,i){"use strict";i.r(e);var r=i("f49f"),o=i("298a");for(var n in o)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(n);i("fb82");var u=i("s3"),s=Object(u.a)(o.default,r.b,r.c,!1,null,null,null,!1,r.a,void 0);e.default=s.exports},"298a":function(t,e,i){"use strict";i.r(e);var r=i("3e313"),o=i.n(r);for(var n in r)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return r[t]}))}(n);e.default=o.a},"3e313":function(t,e,i){"use strict";var r=i("s4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(i("/components-diy/minx.js"));e.default={name:"diy-article",props:{value:{type:Object}},mixins:[o.default],data:function(){return{list:[],loading:!0,skeletonConfig:{gridRows:1,gridRowsGap:"40rpx",headWidth:"160rpx",headHeight:"160rpx",textRows:2}}},created:function(){this.getList()},watch:{componentRefresh:function(){this.getList()}},computed:{swiperConfig:function(){var t;return(null===(t=this.value)||void 0===t?void 0:t.swiperConfig)||{}},safeDisplayMultipleItems:function(){var t=this.list.length;return t>0?Math.min(this.swiperConfig.displayMultipleItems||3,t):1},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;"),t},swiperStyle:function(){return{height:(this.swiperConfig.swiperHeight||600)+"rpx",width:"100%"}},itemCss: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:{getList:function(){var t=this,e={num:this.value.count};"diy"==this.value.sources&&(e.num=0,e.article_id_arr=this.value.articleIds.toString()),this.$api.sendRequest({url:"/api/article/lists",data:e,success:function(e){0==e.code&&e.data&&(t.list=e.data),t.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)}}}},"521d":function(){},f49f:function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){return r}));var r={xSkeleton:function(){return Promise.all([i.e("common/vendor"),i.e("uni_modules/x-skeleton/components/x-skeleton/x-skeleton")]).then(i.bind(null,"73c5"))}},o=function(){var t=this,e=t.list.length>0?t.__get_style([t.swiperStyle]):null,i=t.list.length>0?t.__map(t.list,(function(e){return{$orig:t.__get_orig(e),g0:t.$util.img(e.cover_img),g1:t.$util.timeStampTurnTime(e.create_time,"date")}})):null;t.$mp.data=Object.assign({},{$root:{s0:e,l0:i}})},n=[]},fb82:function(t,e,i){"use strict";i("521d")}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components-diy/diy-article-create-component',
|
||||
{
|
||||
'components-diy/diy-article-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('s2')['createComponent'](__webpack_require__("2339"))
|
||||
})
|
||||
},
|
||||
[['components-diy/diy-article-create-component']]
|
||||
]);
|
||||
@@ -0,0 +1,8 @@
|
||||
.fui-audio.data-v-fe0dfc34{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-fe0dfc34{width:100rpx;height:100rpx;background:#000}.fui-audio .img image.data-v-fe0dfc34{width:100%;height:100%}.fui-audio .name.data-v-fe0dfc34{font-size:26rpx;color:#333}.fui-audio .author.data-v-fe0dfc34{font-size:26rpx;color:#666}.fui-audio .time.data-v-fe0dfc34{font-size:24rpx;color:#999}.fui-audio .start.data-v-fe0dfc34{border:0;padding:0;margin:0;font-size:28rpx}.progressBar.data-v-fe0dfc34{height:2rpx;width:0;background:#333}.fui-audio.style1.data-v-fe0dfc34{height:86rpx;line-height:82rpx}.fui-audio.style1 .img.data-v-fe0dfc34,
|
||||
.fui-audio.style2 .img.data-v-fe0dfc34{display:none}.fui-audio.style1 .name.data-v-fe0dfc34,
|
||||
.fui-audio.style2 .name.data-v-fe0dfc34{float:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:300rpx}.fui-audio.style1 .author.data-v-fe0dfc34,
|
||||
.fui-audio.style2 .author.data-v-fe0dfc34{float:left;margin-left:12rpx;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:200rpx}.fui-audio.style1 .time.data-v-fe0dfc34,
|
||||
.fui-audio.style4 .time.data-v-fe0dfc34{display:none}.fui-audio.style1 .start.data-v-fe0dfc34{position:absolute;top:0rpx;right:40rpx;width:40rpx;height:40rpx;color:#000}.fui-audio.style1 .progress.data-v-fe0dfc34{position:absolute;bottom:0;left:0;right:0}.fui-audio.style2.data-v-fe0dfc34{height:86rpx;line-height:82rpx}.fui-audio.style2 .img.data-v-fe0dfc34{display:none}.fui-audio.style2 .time.data-v-fe0dfc34{position:absolute;top:0;right:30rpx}.fui-audio.style2 .name.data-v-fe0dfc34{margin-left:70rpx}.fui-audio.style2 .start.data-v-fe0dfc34{position:absolute;top:0rpx;left:30rpx;width:30rpx;height:30rpx;color:#000}.fui-audio.style2 .progress.data-v-fe0dfc34,
|
||||
.fui-audio.style3 .progress.data-v-fe0dfc34{display:none}.fui-audio.style3.data-v-fe0dfc34{padding:8rpx}.fui-audio.style3 .start.data-v-fe0dfc34{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-fe0dfc34,
|
||||
.fui-audio.style4 .img.data-v-fe0dfc34{float:left;margin-right:20rpx}.fui-audio.style3 .content.data-v-fe0dfc34{width:468rpx}.fui-audio.style3 .content.data-v-fe0dfc34,
|
||||
.fui-audio.style4 .content.data-v-fe0dfc34{float:left;height:100rpx;display:flex;flex-direction:column;justify-content:center}.fui-audio.style3 .content .name.data-v-fe0dfc34{height:40rpx;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fui-audio.style3 .content .author.data-v-fe0dfc34{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fui-audio.style3 .time.data-v-fe0dfc34{position:absolute;top:40rpx;right:30rpx}.fui-audio.style4.data-v-fe0dfc34{padding:10rpx}.fui-audio.style4 .content.data-v-fe0dfc34{padding-bottom:18rpx;height:82rpx;width:500rpx}.fui-audio.style4 .start.data-v-fe0dfc34{position:absolute;top:32rpx;right:30rpx;width:30rpx;height:30rpx;color:#000}.fui-audio.style4 .name.data-v-fe0dfc34{line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fui-audio.style4 .author.data-v-fe0dfc34{line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fui-audio.style4 .progress.data-v-fe0dfc34{background:#f5f5f5;height:4rpx;position:absolute;bottom:24rpx;left:130rpx;right:30rpx;border-radius:2rpx;overflow:hidden}.fui-audio.style4 .progressBar.data-v-fe0dfc34{height:4rpx}.diy-audio.data-v-fe0dfc34 .uni-video-container{background-color:initial}
|
||||
@@ -0,0 +1 @@
|
||||
<view data-component-name="diy-audio" class="data-v-fe0dfc34"><block has:if="{{value.type=='style-2'}}"><view class="fui-audio style1 data-v-fe0dfc34" style="{{'background:'+(value.background)+';'}}"><view class="content data-v-fe0dfc34" style="padding-top:20rpx;"><view class="name data-v-fe0dfc34" style="{{'color:'+(value.textcolor)+';'}}">{{value.text}}</view><view class="author data-v-fe0dfc34" style="{{'color:'+(value.subtitlecolor)+';'}}">{{value.desc+"----"+value.id}}</view></view><view class="progress data-v-fe0dfc34"><view class="progressBar data-v-fe0dfc34" style="{{'width:'+(audiowidth)+';'}}"></view></view><view class="time data-v-fe0dfc34" style="{{'color:'+(value.timecolor)+';'}}">{{''+audiotime+''}}</view><view data-event-opts="{{[['tap',[['play']]]]}}" class="{{['start','data-v-fe0dfc34',status?'iconj icon-07zanting':'iconj icon-bofang']}}" style="padding-top:18rpx;" catchtap="__e"></view></view></block><block has:else><view class="fui-audio style3 data-v-fe0dfc34" style="{{'background:'+(value.background)+';'}}"><view class="img data-v-fe0dfc34"><image src="{{$root.g0}}" show-menu-by-longpress="{{true}}" class="data-v-fe0dfc34"></image></view><view class="content data-v-fe0dfc34"><view class="name data-v-fe0dfc34" style="{{'color:'+(value.textcolor)+';'}}">{{value.text}}</view><view class="author data-v-fe0dfc34" style="{{'color:'+(value.subtitlecolor)+';'}}">{{value.desc}}</view></view><view class="progress data-v-fe0dfc34"><view class="progressBar data-v-fe0dfc34" style="{{'width:'+(audiowidth)+';'}}"></view></view><view class="time data-v-fe0dfc34" style="{{'color:'+(value.timecolor)+';'}}">{{''+audiotime+''}}</view><view data-event-opts="{{[['tap',[['play']]]]}}" class="{{['start','data-v-fe0dfc34',status?'iconj icon-07zanting':'iconj icon-bofang']}}" catchtap="__e"></view></view></block></view>
|
||||
@@ -0,0 +1,10 @@
|
||||
(global.webpackJsonp=global.webpackJsonp||[]).push([["components-diy/diy-audio"],{"152e":function(t,i,a){"use strict";a("a374")},"3b78":function(t,i,a){"use strict";a.r(i);var u=a("5586"),e=a("6edf");for(var o in e)["default"].indexOf(o)<0&&function(t){a.d(i,t,(function(){return e[t]}))}(o);a("152e");var n=a("s3"),s=Object(n.a)(e.default,u.b,u.c,!1,null,"fe0dfc34",null,!1,u.a,void 0);i.default=s.exports},5586:function(t,i,a){"use strict";a.d(i,"b",(function(){return u})),a.d(i,"c",(function(){return e})),a.d(i,"a",(function(){}));var u=function(){var t="style-2"!=this.value.type?this.$util.img(this.value.imageUrl):null;this.$mp.data=Object.assign({},{$root:{g0:t}})},e=[]},"614b":function(t,i,a){"use strict";(function(t){var u=a("s4");Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var e=u(a("/components-diy/minx.js"));i.default={name:"diy-audio",props:{value:{type:Object}},mixins:[e.default],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(){}},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;if(this.$util.img(this.value.audioUrl),!a){a=t.createInnerAudioContext("audio_"+i);var u=this.audiosObj;u[i]=a,this.audiosObj=u;var e=t.getStorageSync("audio_list")?t.getStorageSync("audio_list"):[];0==e.includes(i)&&(e.push(i),t.setStorageSync("audio_list",e))}var o=this;a.onPlay((function(){var t=setInterval((function(){var u=a.currentTime/a.duration*100+"%",e=Math.floor(Math.ceil(a.currentTime)/60),n=(Math.ceil(a.currentTime)%60/100).toFixed(2).slice(-2),s=Math.ceil(a.currentTime);e<10&&(e="0"+e);var d=e+":"+n,r=o.audios;r[i].audiowidth=u,r[i].Time=t,r[i].audiotime=d,r[i].seconds=s,o.audios=r}),1e3)}));var n=o.$util.img(o.value.audioUrl),s=o.audios[o.value.id].seconds||0,d=o.audios;d[i]||(d[i]={}),a.paused&&0==s?(a.src=n,a.play(),a.loop=!0,d[i].status=!0,o.status=!0,o.pauseOther(i)):a.paused&&s>0?(a.play(),a.seek(s),d[i].status=!0,o.status=!0,o.pauseOther(i)):(a.pause(),d[i].status=!1,o.status=!1),o.audios=d},pauseOther:function(){var t=document.getElementsByTagName("audio");function i(){var i=this;[].forEach.call(t,(function(t){t!==i&&t.pause()}))}[].forEach.call(t,(function(t){t.addEventListener("play",i.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 u=this;if(1==this.status)return this.audioContext.pause(),this.status=0,!1;this.audioContext.play(),this.status=1,this.audioContext.onCanplay((function(){var t=setInterval((function(){var i=parseFloat(u.audioContext.currentTime)/parseFloat(u.audioContext.duration)*100+"%",e=Math.floor(Math.ceil(u.audioContext.currentTime)/60),o=(Math.ceil(u.audioContext.currentTime)%60/100).toFixed(2).slice(-2),n=Math.ceil(u.audioContext.currentTime);e<10&&(e="0"+e);var s=e+":"+o,d=u.audios;d[a].audiowidth=i,d[a].Time=t,d[a].audiotime=s,d[a].seconds=n,u.audios=d,u.audiotime=u.audios[u.value.id].audiotime,u.audiowidth=u.audios[u.value.id].audiowidth,u.lyg=i}),1e3)})),this.audioContext.onEnded((function(){i.status=0}))}}}}).call(this,a("s2").default)},"6edf":function(t,i,a){"use strict";a.r(i);var u=a("614b"),e=a.n(u);for(var o in u)["default"].indexOf(o)<0&&function(t){a.d(i,t,(function(){return u[t]}))}(o);i.default=e.a},a374:function(){}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components-diy/diy-audio-create-component',
|
||||
{
|
||||
'components-diy/diy-audio-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('s2')['createComponent'](__webpack_require__("3b78"))
|
||||
})
|
||||
},
|
||||
[['components-diy/diy-audio-create-component']]
|
||||
]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +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{color:#000!important;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)}
|
||||
.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)}
|
||||
@@ -0,0 +1 @@
|
||||
<block has:if="{{tabBarList&&tabBarList.list}}"><view data-component-name="diy-bottom-nav"><view class="tab-bar" style="{{'background-color:'+(tabBarList.backgroundColor)+';'}}"><view class="tabbar-border"></view><block has:for="{{$root.l0}}" has:for-item="item" has:for-index="index" has:key="id"><view data-event-opts="{{[['tap',[['redirectTo',['$0'],[[['tabBarList.list','id',item.$orig.id,'link']]]]]]]}}" class="item" catchtap="__e"><view class="bd"><block has:if="{{item.$orig.link.wap_url=='/pages_goods/cart'}}"><block><block has:if="{{tabBarList.type==1||tabBarList.type==2}}"><view class="icon" animation="{{cartAnimation}}" id="tabbarCart"><block has:if="{{item.m0}}"><block><block has:if="{{item.$orig.selected_icon_type=='img'}}"><image src="{{item.g0}}"></image></block><block has:if="{{item.$orig.selected_icon_type=='icon'}}"><diy-icon vue-id="{{'7c5bf4f2-1-'+index}}" icon="{{item.$orig.selectedIconPath}}" value="{{item.$orig.selected_style?item.$orig.selected_style:null}}"></diy-icon></block></block></block><block has:else><block><block has:if="{{item.$orig.icon_type=='img'}}"><image src="{{item.g1}}"></image></block><block has:if="{{item.$orig.icon_type=='icon'}}"><diy-icon vue-id="{{'7c5bf4f2-2-'+index}}" icon="{{item.$orig.iconPath}}" value="{{item.$orig.style?item.$orig.style:null}}"></diy-icon></block></block></block><block has: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 has:else><block><block has:if="{{tabBarList.type==1||tabBarList.type==2}}"><view class="icon"><block has:if="{{item.m1}}"><block><block has:if="{{item.$orig.selected_icon_type=='img'}}"><image src="{{item.g2}}"></image></block><block has:if="{{item.$orig.selected_icon_type=='icon'}}"><diy-icon vue-id="{{'7c5bf4f2-3-'+index}}" icon="{{item.$orig.selectedIconPath}}" value="{{item.$orig.selected_style?item.$orig.selected_style:null}}"></diy-icon></block></block></block><block has:else><block><block has:if="{{item.$orig.icon_type=='img'}}"><image src="{{item.g3}}"></image></block><block has:if="{{item.$orig.icon_type=='icon'}}"><diy-icon vue-id="{{'7c5bf4f2-4-'+index}}" icon="{{item.$orig.iconPath}}" value="{{item.$orig.style?item.$orig.style:null}}"></diy-icon></block></block></block></view></block></block></block><block has: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 has: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>
|
||||
File diff suppressed because one or more lines are too long
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"uni-popup": "/components/uni-popup/uni-popup"
|
||||
"diy-icon": "/components-diy/diy-icon"
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"uni-popup": "/components/uni-popup/uni-popup",
|
||||
"uni-popup": "/uni_modules/uni-popup/components/uni-popup/uni-popup",
|
||||
"loading-cover": "/components/loading-cover/loading-cover"
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"uni-popup": "/uni_modules/uni-popup/components/uni-popup/uni-popup",
|
||||
"diy-category-item": "/components-diy/diy-category-item",
|
||||
"ns-goods-sku-category": "/components/ns-goods-sku/ns-goods-sku-category"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
.data-v-a23317fa:root{--channel-play-btn-size:80rpx;--channel-play-btn-small-size:60rpx;--channel-play-btn-icon-size:40rpx;--channel-play-btn-icon-small-size:30rpx;--channel-border-radius:12rpx;--channel-stats-padding:10rpx;--channel-info-wrap-padding:10rpx 0;--channel-name-font-size:28rpx;--video-title-font-size:28rpx;--video-title-small-font-size:24rpx;--video-stats-font-size:24rpx;--channel-stats-font-size:20rpx;--channel-name-color:#333;--video-title-color:#333;--video-title-small-color:#666;--video-stats-color:#999;--channel-stats-color:#fff;--channel-border-color:#f0f0f0;--channel-play-btn-bg:rgba(0,0,0,0.4);--channel-stats-bg:linear-gradient(transparent,rgba(0,0,0,0.6));--channel-name-margin-bottom:4rpx;--video-title-margin-bottom:8rpx}@media (max-width:375px){.data-v-a23317fa:root{--channel-play-btn-size:70rpx;--channel-play-btn-small-size:50rpx;--channel-play-btn-icon-size:35rpx;--channel-play-btn-icon-small-size:25rpx;--channel-name-font-size:24rpx;--video-title-font-size:24rpx}}@media (min-width:750px){.data-v-a23317fa:root{--channel-play-btn-size:90rpx;--channel-play-btn-small-size:70rpx;--channel-play-btn-icon-size:45rpx;--channel-play-btn-icon-small-size:35rpx;--channel-name-font-size:32rpx;--video-title-font-size:32rpx}}.channel-play-btn.data-v-a23317fa{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;width:var(--channel-play-btn-size);height:var(--channel-play-btn-size);background-color:var(--channel-play-btn-bg);border-radius:50%}.channel-play-btn .play-icon.data-v-a23317fa{width:var(--channel-play-btn-icon-size);height:var(--channel-play-btn-icon-size)}.channel-play-btn.small.data-v-a23317fa{width:var(--channel-play-btn-small-size);height:var(--channel-play-btn-small-size)}.channel-play-btn.small .play-icon.data-v-a23317fa{width:var(--channel-play-btn-icon-small-size);height:var(--channel-play-btn-icon-small-size)}.channel-stats.data-v-a23317fa{position:absolute;bottom:0;left:0;right:0;background:var(--channel-stats-bg);padding:var(--channel-stats-padding);color:var(--channel-stats-color);font-size:var(--channel-stats-font-size)}.channel-info-wrap.data-v-a23317fa{display:flex;flex-direction:column;flex:1;padding:var(--channel-info-wrap-padding)}.channel-info-wrap .channel-name.data-v-a23317fa{margin-bottom:var(--channel-name-margin-bottom);white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:var(--channel-name-font-size);font-weight:500;color:var(--channel-name-color)}.channel-info-wrap .video-title.data-v-a23317fa{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:var(--video-title-small-font-size);color:var(--video-title-small-color)}.video-title.data-v-a23317fa{font-size:var(--video-title-font-size);font-weight:500;color:var(--video-title-color);margin-bottom:var(--video-title-margin-bottom);line-height:1.4}.video-stats.data-v-a23317fa{font-size:var(--video-stats-font-size);color:var(--video-stats-color)}.channel-list-container.data-v-a23317fa{padding:16px 16px 0}.channel-list.data-v-a23317fa{display:grid;grid-template-columns:repeat(var(--row-count,2),1fr);gap:8px}.channel-nav.data-v-a23317fa{box-sizing:border-box;padding:16rpx;overflow-x:auto;white-space:nowrap;scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;scroll-behavior:smooth}.channel-nav.data-v-a23317fa ::-webkit-scrollbar{display:none}.channel-nav .uni-scroll-view-content.data-v-a23317fa{display:grid;grid-template-columns:repeat(var(--row-count,2),1fr);gap:16rpx}.channel-nav.singleSlide .uni-scroll-view-content.data-v-a23317fa{display:flex;flex-wrap:nowrap;gap:16rpx;white-space:nowrap}.channel-nav.singleSlide .channel-nav-item.data-v-a23317fa{flex-shrink:0;width:280rpx}.channel-nav .channel-nav-item.data-v-a23317fa{display:flex;flex-direction:column;box-sizing:border-box}.channel-nav.row1-of1 .uni-scroll-view-content.data-v-a23317fa{grid-template-columns:1fr}.channel-nav.row1-of2 .uni-scroll-view-content.data-v-a23317fa{grid-template-columns:repeat(2,1fr)}.channel-nav.row1-of3 .uni-scroll-view-content.data-v-a23317fa{grid-template-columns:repeat(3,1fr)}.channel-nav.row1-of4 .uni-scroll-view-content.data-v-a23317fa{grid-template-columns:repeat(4,1fr)}.channel-item.data-v-a23317fa,
|
||||
.channel-nav-item.data-v-a23317fa{display:flex;flex-direction:column}.channel-swiper.data-v-a23317fa{width:100%;box-sizing:border-box}.channel-swiper .swiper-slide-content.data-v-a23317fa{display:grid;grid-template-columns:repeat(var(--row-count,2),1fr);gap:16rpx;box-sizing:border-box}.channel-swiper .swiper-slide-content .channel-item.data-v-a23317fa{display:flex;flex-direction:column;box-sizing:border-box}.channel-swiper .swiper-slide-content.row1-of1.data-v-a23317fa{grid-template-columns:1fr}.channel-swiper .swiper-slide-content.row1-of2.data-v-a23317fa{grid-template-columns:repeat(2,1fr)}.channel-swiper .swiper-slide-content.row1-of3.data-v-a23317fa{grid-template-columns:repeat(3,1fr)}.channel-swiper .swiper-slide-content.row1-of4.data-v-a23317fa{grid-template-columns:repeat(4,1fr)}@media (max-width:375px){.channel-list.data-v-a23317fa,
|
||||
.channel-nav.data-v-a23317fa,
|
||||
.channel-swiper .swiper-slide-content.data-v-a23317fa{gap:12rpx;padding:12rpx}.channel-nav.singleSlide .uni-scroll-view-content.data-v-a23317fa{gap:12rpx}.channel-nav.singleSlide .channel-nav-item.data-v-a23317fa{width:240rpx}}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="channel-list-container data-v-a23317fa" style="{{$root.s0}}"><block has:if="{{value.showStyle=='carousel'&&carouselConfig.type!='hide'}}"><swiper class="channel-swiper data-v-a23317fa" style="{{(swiperHeight)}}" indicator-dots="{{isIndicatorDots}}" autoplay="{{carouselConfig.autoplay||false}}" interval="{{carouselConfig.interval||3000}}" duration="{{carouselConfig.duration||500}}" circular="{{carouselConfig.circular||false}}"><block has:for="{{swiperSlides}}" has:for-item="slide" has:for-index="slideIndex" has:key="slideIndex"><swiper-item class="data-v-a23317fa"><view class="{{['data-v-a23317fa','swiper-slide-content','row1-of'+value.rowCount]}}"><block has:for="{{slide}}" has:for-item="item" has:for-index="index" has:key="index"><view class="{{['data-v-a23317fa','channel-item',value.mode]}}"><diy-channel-video vue-id="{{'bdc26b00-1-'+slideIndex+'-'+index}}" value="{{item}}" list-mode="{{true}}" title-line-clamp="{{value.titleLineClamp}}" show-play-btn="{{value.showPlayBtn}}" show-view-count="{{value.showViewCount}}" cover-style="{{computedCoverStyle}}" play-btn-style="{{value.playBtnStyle}}" aspect-ratio="{{value.aspectRatio}}" data-event-opts="{{[['^videoPlay',[['playVideo']]]]}}" bind:videoPlay="__e" class="data-v-a23317fa"></diy-channel-video></view></block></view></swiper-item></block></swiper></block><block has:else><block has:if="{{value.showStyle=='fixed'}}"><view class="{{['data-v-a23317fa','channel-list','row1-of'+value.rowCount]}}"><block has:for="{{value.list}}" has:for-item="item" has:for-index="index" has:key="index"><view class="channel-item data-v-a23317fa"><diy-channel-video vue-id="{{'bdc26b00-2-'+index}}" value="{{item}}" list-mode="{{true}}" title-line-clamp="{{value.titleLineClamp}}" show-play-btn="{{value.showPlayBtn}}" show-view-count="{{value.showViewCount}}" cover-style="{{computedCoverStyle}}" play-btn-style="{{value.playBtnStyle}}" aspect-ratio="{{value.aspectRatio}}" data-event-opts="{{[['^videoPlay',[['playVideo']]]]}}" bind:videoPlay="__e" class="data-v-a23317fa"></diy-channel-video></view></block></view></block><block has:else><scroll-view class="{{['data-v-a23317fa','channel-nav',value.showStyle=='fixed'?'fixed-layout':'singleSlide','row1-of'+value.rowCount]}}" scroll-x="{{true}}" scroll-y="{{false}}" enhanced="{{true}}" bounces="{{false}}"><view class="uni-scroll-view-content data-v-a23317fa"><block has:for="{{value.list}}" has:for-item="item" has:for-index="index" has:key="index"><view class="{{['data-v-a23317fa','channel-nav-item',value.mode,'row1-of'+value.rowCount]}}"><diy-channel-video vue-id="{{'bdc26b00-3-'+index}}" value="{{item}}" list-mode="{{true}}" title-line-clamp="{{value.titleLineClamp}}" show-play-btn="{{value.showPlayBtn}}" show-view-count="{{value.showViewCount}}" cover-style="{{computedCoverStyle}}" play-btn-style="{{value.playBtnStyle}}" aspect-ratio="{{value.aspectRatio}}" data-event-opts="{{[['^videoPlay',[['playVideo']]]]}}" bind:videoPlay="__e" class="data-v-a23317fa"></diy-channel-video></view></block></view></scroll-view></block></block></view>
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"diy-channel-video": "/components-diy/diy-channel-video"
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
<view class="{{['channel-video','data-v-6535e4fd',(listMode)?'list-mode':'']}}"><block has:if="{{canUseEmbedMode}}"><view class="embed-video-container data-v-6535e4fd"><view class="video-cover-wrap data-v-6535e4fd" style="{{$root.s0}}"></view><view class="video-info data-v-6535e4fd"><view class="video-title data-v-6535e4fd" style="{{'--title-line-clamp:'+(titleLineClamp)+';'}}">{{value.videoTitle+''}}</view><block has:if="{{showViewCount&&value.showViewCount}}"><view class="video-stats data-v-6535e4fd">{{value.viewCount+"次观看"}}</view></block></view></view></block><block has:else><view data-event-opts="{{[['tap',[['playVideo',['$event']]]]]}}" class="video-container data-v-6535e4fd" catchtap="__e"><view class="video-cover-wrap data-v-6535e4fd" style="{{$root.s1}}"><image class="video-cover data-v-6535e4fd" src="{{$root.g0}}" mode="aspectFill" show-menu-by-longpress="{{true}}"></image><block has:if="{{showPlayBtn}}"><view class="channel-play-btn data-v-6535e4fd" style="{{$root.s2}}"><view class="play-icon-css data-v-6535e4fd"></view></view></block><block has:if="{{showViewCount&&value.showViewCount}}"><view class="video-stats-overlay data-v-6535e4fd">{{''+value.viewCount+'次观看'}}</view></block></view><view class="video-info data-v-6535e4fd"><view class="video-title data-v-6535e4fd" style="{{'--title-line-clamp:'+(titleLineClamp)+';'}}">{{value.videoTitle+''}}</view><block has:if="{{showViewCount&&value.showViewCount&&!listMode}}"><view class="video-stats data-v-6535e4fd">{{value.viewCount+"次观看"}}</view></block></view></view></block></view>
|
||||
@@ -0,0 +1,10 @@
|
||||
(global.webpackJsonp=global.webpackJsonp||[]).push([["components-diy/diy-channel-video"],{"2be8":function(e,t,n){"use strict";n.r(t);var a=n("d03b"),o=n("f4a2");for(var u in o)["default"].indexOf(u)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(u);n("526d");var l=n("s3"),d=Object(l.a)(o.default,a.b,a.c,!1,null,"6535e4fd",null,!1,a.a,void 0);t.default=d.exports},"526d":function(e,t,n){"use strict";n("8c592")},"8c592":function(){},bc3c:function(e,t,n){"use strict";var a=n("s4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n("s7")),u=a(n("s8")),l=(n("/components-diy/js/wechat-channel.js"),{name:"diy-channel-video",props:{value:{type:Object,required:!0},listMode:{type:Boolean,default:!1},showViewCount:{type:Boolean,default:!0},titleLineClamp:{type:Number,default:1},showPlayBtn:{type:Boolean,default:!0},coverStyle:{type:Object,default:function(){return{width:"100%",height:"0",paddingTop:"56.25%"}}},playBtnStyle:{type:Object,default:function(){return{width:"60rpx",height:"60rpx",borderRadius:"30rpx",backgroundColor:"rgba(0, 0, 0, 0.6)"}}},autoPlay:{type:Boolean,default:!1}},computed:{canUseEmbedMode:function(){return!1}},methods:{playVideo:function(){var e=this;return(0,u.default)(o.default.mark((function t(){return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$emit("video-play",e.value);case 1:case"end":return t.stop()}}),t)})))()}}});t.default=l},d03b:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){}));var a=function(){var e=this,t=e.canUseEmbedMode?e.__get_style([e.coverStyle]):null,n=e.canUseEmbedMode?null:e.__get_style([e.coverStyle]),a=e.canUseEmbedMode?null:e.$util.img(e.value.coverUrl),o=!e.canUseEmbedMode&&e.showPlayBtn?e.__get_style([e.playBtnStyle]):null;e.$mp.data=Object.assign({},{$root:{s0:t,s1:n,g0:a,s2:o}})},o=[]},f4a2:function(e,t,n){"use strict";n.r(t);var a=n("bc3c"),o=n.n(a);for(var u in a)["default"].indexOf(u)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(u);t.default=o.a}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components-diy/diy-channel-video-create-component',
|
||||
{
|
||||
'components-diy/diy-channel-video-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('s2')['createComponent'](__webpack_require__("2be8"))
|
||||
})
|
||||
},
|
||||
[['components-diy/diy-channel-video-create-component']]
|
||||
]);
|
||||
@@ -0,0 +1 @@
|
||||
<view data-component-name="diy-comp-extend"></view>
|
||||
@@ -0,0 +1,10 @@
|
||||
(global.webpackJsonp=global.webpackJsonp||[]).push([["components-diy/diy-comp-extend"],{"3b5f":function(n,t,e){"use strict";var u=e("s4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=u(e("/components-diy/minx.js"));t.default={name:"diy-comp-extend",props:{value:{type:Object}},mixins:[o.default],data:function(){return{}},computed:{},created:function(){},methods:{}}},"3df2":function(n,t,e){"use strict";e.r(t);var u=e("ed85"),o=e("695c");for(var c in o)["default"].indexOf(c)<0&&function(n){e.d(t,n,(function(){return o[n]}))}(c);var d=e("s3"),i=Object(d.a)(o.default,u.b,u.c,!1,null,null,null,!1,u.a,void 0);t.default=i.exports},"695c":function(n,t,e){"use strict";e.r(t);var u=e("3b5f"),o=e.n(u);for(var c in u)["default"].indexOf(c)<0&&function(n){e.d(t,n,(function(){return u[n]}))}(c);t.default=o.a},ed85:function(n,t,e){"use strict";e.d(t,"b",(function(){return u})),e.d(t,"c",(function(){return o})),e.d(t,"a",(function(){}));var u=function(){},o=[]}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components-diy/diy-comp-extend-create-component',
|
||||
{
|
||||
'components-diy/diy-comp-extend-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('s2')['createComponent'](__webpack_require__("3df2"))
|
||||
})
|
||||
},
|
||||
[['components-diy/diy-comp-extend-create-component']]
|
||||
]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
.graphic-nav.data-v-dde51352{padding:16rpx;box-sizing:border-box}.graphic-nav.fixed-layout .uni-scroll-view-content.data-v-dde51352{display:flex;flex-wrap:wrap}.graphic-nav.singleSlide .uni-scroll-view-content.data-v-dde51352{display:flex}.graphic-nav.singleSlide .graphic-nav-item.data-v-dde51352{flex-shrink:0}.graphic-nav.pageSlide.data-v-dde51352{position:relative}.graphic-nav.pageSlide .uni-swiper-dots-horizontal.data-v-dde51352{bottom:0rpx}.graphic-nav.pageSlide.straightLine .uni-swiper-dot.data-v-dde51352{width:30rpx;border-radius:0;height:8rpx}.graphic-nav.pageSlide.circle .uni-swiper-dot.data-v-dde51352{width:14rpx;height:14rpx}.graphic-nav .graphic-nav-wrap.data-v-dde51352{display:flex;flex-wrap:wrap;width:100%;height:100%}.graphic-nav .graphic-nav-item.data-v-dde51352{display:flex;flex-direction:column;align-items:center;padding:14rpx 0;box-sizing:border-box}.graphic-nav .graphic-nav-item .graphic-text.data-v-dde51352{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.data-v-dde51352{padding-top:0}.graphic-nav .graphic-nav-item.text .graphic-text.data-v-dde51352{padding-top:0}.graphic-nav .graphic-nav-item .graphic-img.data-v-dde51352{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.data-v-dde51352{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.data-v-dde51352{font-size:50rpx;color:#606266}.graphic-nav.pageSlide .graphic-nav-item.data-v-dde51352{flex-shrink:0}.newright.data-v-dde51352{margin-right:16rpx}.swiper-dot-box.data-v-dde51352{width:100%;display:flex;align-items:center;justify-content:center;margin-top:-20rpx;padding-bottom:8rpx}.swiper-dot-box .swiper-dot.data-v-dde51352{background-color:rgba(0,0,0,.3);margin:8rpx}.swiper-dot-box .swiper-dot.active.data-v-dde51352{background-color:#000}.swiper-dot-box.straightLine .swiper-dot.data-v-dde51352{width:30rpx;border-radius:0;height:8rpx}.swiper-dot-box.circle .swiper-dot.data-v-dde51352{width:15rpx;border-radius:50%;height:15rpx}
|
||||
@@ -0,0 +1 @@
|
||||
<view style="{{(componentStyle)}}" data-component-name="diy-digit" class="data-v-dde51352"><scroll-view class="{{['data-v-dde51352','graphic-nav',value.showStyle=='fixed'?'fixed-layout':value.showStyle]}}" scroll-x="{{value.showStyle=='singleSlide'}}"><view class="uni-scroll-view-content data-v-dde51352"><block has:for="{{$root.l0}}" has:for-item="item" has:for-index="index" has:key="index"><view class="{{['data-v-dde51352','graphic-nav-item',value.mode,value.mode==='text'?'newright':'']}}" style="{{'width:'+(100/value.rowCount+'%'+';')+';'}}"><view style="display:flex;" class="data-v-dde51352"><view style="{{'line-height:'+('1.2;')+';'+('font-size:'+(value.font.titlesize*2+'rpx'+';')+';')+('font-weight:'+('600;')+';')+('color:'+(value.font.titlecolor+';')+';')}}" class="data-v-dde51352"><uv-count-to vue-id="{{'63d2c865-1-'+index}}" autoplay="{{true}}" startVal="{{30}}" endVal="{{item.$orig.title}}" decimals="{{item.m0}}" decimal="." data-ref="{{'countTo-'+index}}" class="data-v-dde51352 vue-ref-in-for"></uv-count-to><text style="{{'margin-left:'+('4rpx;')+';'+('font-size:'+(value.font.unitsize*2+'rpx'+';')+';')+('font-weight:'+(value.font.weight+';')+';')+('color:'+(value.font.unitcolor+';')+';')}}" class="data-v-dde51352">{{item.$orig.unit}}</text></view></view><view class="graphic-text data-v-dde51352"><text style="{{'font-size:'+(value.font.descsize*2+'rpx'+';')+';'+('font-weight:'+(value.font.weight+';')+';')+('color:'+(value.font.desccolor+';')+';')}}" class="data-v-dde51352">{{item.$orig.desc}}</text></view></view></block></view></scroll-view><ns-login vue-id="63d2c865-2" data-ref="login" class="data-v-dde51352 vue-ref"></ns-login></view>
|
||||
@@ -0,0 +1,10 @@
|
||||
(global.webpackJsonp=global.webpackJsonp||[]).push([["components-diy/diy-digit"],{"003f":function(t,n,e){"use strict";e("af0f")},"5d8c":function(t,n,e){"use strict";e.r(n);var o=e("fc06"),r=e("919a");for(var i in r)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(i);e("003f");var u=e("s3"),a=Object(u.a)(r.default,o.b,o.c,!1,null,"dde51352",null,!1,o.a,void 0);n.default=a.exports},"919a":function(t,n,e){"use strict";e.r(n);var o=e("e29f"),r=e.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(i);n.default=r.a},af0f:function(){},e29f:function(t,n,e){"use strict";var o=e("s4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=o(e("/components-diy/minx.js"));n.default={name:"diy-digit",props:{value:{type:Object,default:function(){return{}}}},mixins:[r.default],data:function(){return{pageWidth:"",indicatorDots:!1,swiperCurrent:0}},created:function(){},watch:{componentRefresh:function(){}},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:"")+";")+"border:"+("stroke"==this.value.ornament.type?"2rpx solid "+this.value.ornament.color:"")+";"}},methods:{getvalue:function(t){return t%1!=0?2:0},redirectTo:function(t){!t.wap_url||this.$util.getCurrRoute()!=this.$util.MEMBER_PAGE_URL||this.storeToken?this.$util.diyRedirectTo(t):this.$refs.login.open(t.wap_url)},swiperChange:function(t){this.swiperCurrent=t.detail.current}}}},fc06:function(t,n,e){"use strict";e.d(n,"b",(function(){return r})),e.d(n,"c",(function(){return i})),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,"33b4"))},nsLogin:function(){return Promise.all([e.e("common/vendor"),e.e("components/ns-login/ns-login")]).then(e.bind(null,"35ce"))}},r=function(){var t=this,n=t.__map(t.value.list,(function(n){return{$orig:t.__get_orig(n),m0:t.getvalue(n.title)}}));t.$mp.data=Object.assign({},{$root:{l0:n}})},i=[]}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components-diy/diy-digit-create-component',
|
||||
{
|
||||
'components-diy/diy-digit-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('s2')['createComponent'](__webpack_require__("5d8c"))
|
||||
})
|
||||
},
|
||||
[['components-diy/diy-digit-create-component']]
|
||||
]);
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"uv-count-to": "/components/uv-count-to/uv-count-to",
|
||||
"ns-login": "/components/ns-login/ns-login"
|
||||
}
|
||||
}
|
||||
@@ -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% - 10rpx);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)}
|
||||
@@ -0,0 +1 @@
|
||||
<block has:if="{{list.length}}"><view class="{{['diy-fenxiao','goods-list',value.template,value.style]}}" style="{{(goodsListWarpCss)}}" data-component-name="diy-fenxiao-goods-list"><block has:for="{{$root.l0}}" has:for-item="item" has:for-index="index" has:key="index"><view data-event-opts="{{[['tap',[['toDetail',['$0'],[[['list','',index]]]]]]]}}" class="{{['goods-item',value.ornament.type]}}" style="{{(goodsItemCss)}}" catchtap="__e"><view class="goods-img" style="{{'border-radius:'+(value.imgAroundRadius*2+'rpx')+';'}}"><image style="{{'border-radius:'+(value.imgAroundRadius*2+'rpx')+';'}}" src="{{item.g0}}" mode="widthFix" show-menu-by-longpress="{{true}}" data-event-opts="{{[['error',[['imgError',[index]]]]]}}" binderror="__e"></image></view><block has:if="{{value.goodsNameStyle.control||value.priceStyle.mainControl||value.priceStyle.lineControl||value.btnStyle.control}}"><view class="info-wrap"><view class="name-wrap"><block has: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':'')+';')}}">{{''+(isEnEnv?item.$orig.en_goods_name:item.$orig.goods_name)+''}}</view></block></view><view class="pro-info"><view class="discount-price"><block has: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.g1[0]}}</text><text class="unit price-style small" style="{{'color:'+(value.theme=='diy'?value.priceStyle.mainColor:'')+';'}}">{{'.'+item.g2[1]}}</text></view></block><block has: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 has: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 has: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>
|
||||
@@ -0,0 +1,10 @@
|
||||
(global.webpackJsonp=global.webpackJsonp||[]).push([["components-diy/diy-fenxiao-goods-list"],{"0908":function(t,o,e){"use strict";e("ce8f")},"306b":function(t,o,e){"use strict";e.d(o,"b",(function(){return i})),e.d(o,"c",(function(){return s})),e.d(o,"a",(function(){}));var i=function(){var t=this,o=t.list.length?t.__map(t.list,(function(o){return{$orig:t.__get_orig(o),g0:t.$util.img(o.goods_image,{size:"mid"}),g1:(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,g2:(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}})):null;t.$mp.data=Object.assign({},{$root:{l0:o}})},s=[]},5702:function(t,o,e){"use strict";e.r(o);var i=e("306b"),s=e("f5cb");for(var n in s)["default"].indexOf(n)<0&&function(t){e.d(o,t,(function(){return s[t]}))}(n);e("0908");var r=e("s3"),l=Object(r.a)(s.default,i.b,i.c,!1,null,null,null,!1,i.a,void 0);o.default=l.exports},ba58:function(t,o,e){"use strict";(function(t){var i=e("s4");Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var s=i(e("/components-diy/minx.js"));o.default={name:"diy-fenxiao-goods-list",props:{value:{type:Object}},mixins:[s.default],data:function(){return{list:[],currentRoute:""}},created:function(){var t=getCurrentPages()[getCurrentPages().length-1];this.currentRoute="/"+t.route,this.storeToken||this.$util.redirectTo(this.$util.LOGIN_PAGE_URL,{back:this.currentRoute},"redirectTo"),this.getData()},watch:{componentRefresh:function(){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;this.$api.sendRequest({url:"/fenxiao/api/goodscollect/add",data:{goods_id:t.goods_id,sku_id:t.sku_id},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){e.$util.showToast({title:0==t.code?"取消成功":t.message});var i=e.list;i[o].is_collect=0,e.list=i,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)}}}}).call(this,e("s2").default)},ce8f:function(){},f5cb:function(t,o,e){"use strict";e.r(o);var i=e("ba58"),s=e.n(i);for(var n in i)["default"].indexOf(n)<0&&function(t){e.d(o,t,(function(){return i[t]}))}(n);o.default=s.a}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components-diy/diy-fenxiao-goods-list-create-component',
|
||||
{
|
||||
'components-diy/diy-fenxiao-goods-list-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('s2')['createComponent'](__webpack_require__("5702"))
|
||||
})
|
||||
},
|
||||
[['components-diy/diy-fenxiao-goods-list-create-component']]
|
||||
]);
|
||||
@@ -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}.float-btn .button-box:last-child{margin-bottom:0}.float-btn .button-box image{width:100%;height:100%}
|
||||
@@ -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)}}" data-component-name="diy-float-btn"><block has:for="{{$root.l0}}" has:for-item="item" has:for-index="index" has: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')+';')}}" catchtap="__e"><block has:if="{{!item.$orig.iconType||item.$orig.iconType=='img'}}"><image src="{{item.g0}}" mode="aspectFit" show-menu-by-longpress="{{true}}"></image></block><block has:else><block has:if="{{item.$orig.iconType&&item.$orig.iconType=='icon'}}"><diy-icon vue-id="{{'7fc21e67-1-'+index}}" icon="{{item.$orig.icon}}" value="{{item.$orig.style?item.$orig.style:null}}"></diy-icon></block></block></view></block></block></view>
|
||||
@@ -0,0 +1,10 @@
|
||||
(global.webpackJsonp=global.webpackJsonp||[]).push([["components-diy/diy-float-btn"],{"0884":function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){return i}));var i={diyIcon:function(){return Promise.all([e.e("common/vendor"),e.e("components-diy/diy-icon")]).then(e.bind(null,"aed4"))}},o=function(){var t=this,n=t.__map(t.value.list,(function(n){return{$orig:t.__get_orig(n),g0:n.iconType&&"img"!=n.iconType?null:t.$util.img(n.imageUrl)}}));t._isMounted||(t.e0=function(n,e){var i;return e=((i=arguments[arguments.length-1].currentTarget.dataset).eventParams||i["event-params"]).item,n.stopPropagation(),t.$util.diyRedirectTo(e.link)}),t.$mp.data=Object.assign({},{$root:{l0:n}})},a=[]},5489:function(t,n,e){"use strict";e.r(n);var i=e("6eb3"),o=e.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(a);n.default=o.a},"67bb":function(t,n,e){"use strict";e.r(n);var i=e("0884"),o=e("5489");for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(a);e("d331");var u=e("s3"),r=Object(u.a)(o.default,i.b,i.c,!1,null,null,null,!1,i.a,void 0);n.default=r.exports},"6eb3":function(t,n,e){"use strict";(function(t){var i=e("s4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i(e("/components-diy/minx.js")),a=t.getSystemInfoSync();n.default={name:"diy-float-btn",props:{value:{type:Object,default:function(){return{}}}},mixins:[o.default],data:function(){return{navHeight:0,statusBarHeight:a.statusBarHeight}},created:function(){},watch:{componentRefresh:function(){}},components:{},methods:{},computed:{style:function(){var t={};switch(parseInt(this.value.bottomPosition)){case 1:case 2:t.top=2*(this.navHeight+this.statusBarHeight+parseInt(this.value.btnBottom))+"rpx";break;case 3:case 4:t.bottom=2*(100+parseInt(this.value.btnBottom))+"rpx"}return this.$util.objToStyle(t)}}}}).call(this,e("s2").default)},8479:function(){},d331:function(t,n,e){"use strict";e("8479")}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components-diy/diy-float-btn-create-component',
|
||||
{
|
||||
'components-diy/diy-float-btn-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('s2')['createComponent'](__webpack_require__("67bb"))
|
||||
})
|
||||
},
|
||||
[['components-diy/diy-float-btn-create-component']]
|
||||
]);
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"uni-popup": "/components/uni-popup/uni-popup"
|
||||
"diy-icon": "/components-diy/diy-icon"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<block has:if="{{value.isShow}}"><view data-component-name="diy-follow-official-account"><official-account></official-account></view></block>
|
||||
@@ -0,0 +1,10 @@
|
||||
(global.webpackJsonp=global.webpackJsonp||[]).push([["components-diy/diy-follow-official-account"],{"02d9":function(n,t,o){"use strict";o.d(t,"b",(function(){return e})),o.d(t,"c",(function(){return u})),o.d(t,"a",(function(){}));var e=function(){},u=[]},3964:function(n,t,o){"use strict";o.r(t);var e=o("7089"),u=o.n(e);for(var i in e)["default"].indexOf(i)<0&&function(n){o.d(t,n,(function(){return e[n]}))}(i);t.default=u.a},7089:function(n,t,o){"use strict";var e=o("s4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u=e(o("/components-diy/minx.js"));t.default={name:"diy-follow-official-account",props:{value:{type:Object}},mixins:[u.default],data:function(){return{}},watch:{componentRefresh:function(){}},methods:{}}},f967:function(n,t,o){"use strict";o.r(t);var e=o("02d9"),u=o("3964");for(var i in u)["default"].indexOf(i)<0&&function(n){o.d(t,n,(function(){return u[n]}))}(i);var c=o("s3"),f=Object(c.a)(u.default,e.b,e.c,!1,null,null,null,!1,e.a,void 0);t.default=f.exports}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components-diy/diy-follow-official-account-create-component',
|
||||
{
|
||||
'components-diy/diy-follow-official-account-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('s2')['createComponent'](__webpack_require__("f967"))
|
||||
})
|
||||
},
|
||||
[['components-diy/diy-follow-official-account-create-component']]
|
||||
]);
|
||||
@@ -0,0 +1 @@
|
||||
<view class="diy-from" style="{{(style)}}" data-component-name="diy-form"><block has:if="{{formMode&&jsonData}}"><ns-newform class="vue-ref" vue-id="bc204d38-1" data="{{jsonData}}" data-ref="form"></ns-newform><view data-event-opts="{{[['tap',[['submitFormByNewForm',['$event']]]]]}}" class="fui-btn btn-danger block mtop" catchtap="__e">提交信息</view></block><block has:else><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" catchtap="__e">提交信息</view></block></view>
|
||||
@@ -0,0 +1,10 @@
|
||||
(global.webpackJsonp=global.webpackJsonp||[]).push([["components-diy/diy-form"],{"25aa":function(t,e,o){"use strict";o("906c")},"473d":function(t,e,o){"use strict";o.r(e);var n=o("6124"),r=o.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(i);e.default=r.a},6124:function(t,e,o){"use strict";var n=o("s4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(o("/components-diy/minx.js"));e.default={name:"diy-from",components:{nsNewform:function(){o.e("pages_tool/_components/ns-newform/ns-newform").then(function(){return resolve(o("c03a"))}.bind(null,o)).catch(o.oe)}},props:{value:{type:Object}},mixins:[r.default],data:function(){return{loading:!0,markers:[],Form:{realname:"",mobile:"",mailbox:"",citys:"",remark:""}}},created:function(){},watch:{componentRefresh:function(){}},computed:{jsonData:function(){var t,e,o,n,r;return null!==(t=this.value)&&void 0!==t&&t.form_data||null!==(e=this.value)&&void 0!==e&&e.json_data?(null===(n=this.value)||void 0===n?void 0:n.form_data)||(null===(r=this.value)||void 0===r?void 0:r.json_data):null!==(o=this.value)&&void 0!==o&&o.formComponents&&this.value.formComponents.length?this.convertFormComponents(this.value.formComponents):null},formMode:function(){var t,e;return"newform"===(null===(t=this.value)||void 0===t?void 0:t.form_mode)||!(null===(e=this.value)||void 0===e||!e.formComponents)},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:{convertFormComponents:function(t){if(!t||!Array.isArray(t))return[];var e={text:"Text",textarea:"Textarea",checkbox:"Checkbox",select:"Select",image:"Img",radio:"Radio",date:"Date"};return t.map((function(t){return{controller:e[t.type]||"Text",value:{title:t.label||"",placeholder:t.placeholder||"请输入".concat(t.label||""),options:t.options||[],required:t.required||!1,default:t.default||""},val:""}}))},submitFormByNewForm:function(){var t=this;this.$refs.form.verify()&&this.$api.sendRequest({url:"/api/member/information",data:{form_data:JSON.stringify(this.$refs.form.formData)},success:function(e){t.$util.showToast({title:e.message})}})},submitform:function(){var t=this;this.$api.sendRequest({url:"/api/member/information",data:this.Form,success:function(e){t.$util.showToast({title:e.message})}})}}}},"62ae":function(t,e,o){"use strict";o.r(e);var n=o("9802"),r=o("473d");for(var i in r)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return r[t]}))}(i);o("25aa");var a=o("s3"),u=Object(a.a)(r.default,n.b,n.c,!1,null,null,null,!1,n.a,void 0);e.default=u.exports},"906c":function(){},9802: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(){}));var n=function(){},r=[]}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components-diy/diy-form-create-component',
|
||||
{
|
||||
'components-diy/diy-form-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('s2')['createComponent'](__webpack_require__("62ae"))
|
||||
})
|
||||
},
|
||||
[['components-diy/diy-form-create-component']]
|
||||
]);
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"ns-newform": "/pages_tool/_components/ns-newform/ns-newform"
|
||||
}
|
||||
}
|
||||
@@ -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(25% - 20rpx)!important;height:124rpx;margin:10rpx;background-color:#fff}.brand-wrap .style-1 .ul-wrap .li-item .brand-pic{width:100%;height:100%}
|
||||
@@ -0,0 +1 @@
|
||||
<x-skeleton vue-id="0a5e1d62-1" data-component-name="diy-goods-brand" type="waterfall" loading="{{loading}}" configs="{{skeletonConfig}}" 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 has:for="{{$root.l0}}" has:for-item="item" has:for-index="index" has:key="index"><view class="li-item"><image class="brand-pic" style="{{(itemCss)}}" src="{{item.g0}}" mode="aspectFit" show-menu-by-longpress="{{true}}" data-event-opts="{{[['tap',[['handlerClick',['$0'],[[['list','',index]]]]]],['error',[['imgError',[index]]]]]}}" catchtap="__e" binderror="__e"></image></view></block></view></view></view></x-skeleton>
|
||||
@@ -0,0 +1,10 @@
|
||||
(global.webpackJsonp=global.webpackJsonp||[]).push([["components-diy/diy-goods-brand"],{"3bb3":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,"73c5"))}},r=function(){var t=this,e=t.__map(t.list,(function(e){return{$orig:t.__get_orig(e),g0:t.$util.img(e.image_url)}}));t.$mp.data=Object.assign({},{$root:{l0:e}})},i=[]},"58f2":function(t,e,n){"use strict";n.r(e);var o=n("8bcf"),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},"785f":function(){},"8bcf":function(t,e,n){"use strict";var o=n("s4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n("s7")),i=o(n("s8")),a=o(n("/components-diy/minx.js"));e.default={name:"diy-goods-brand",props:{value:{type:Object}},data:function(){return{list:[],loading:!0,skeletonConfig:{gridRows:2,gridColumns:4,gridRowsGap:"20rpx",headWidth:"120rpx",headHeight:"120rpx",textShow:!1}}},created:function(){this.getBrandList()},mixins:[a.default],watch:{componentRefresh:function(){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){0==e.code&&e.data&&(t.list=e.data.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)},handlerClick:function(t){var e=this;return(0,i.default)(r.default.mark((function n(){return r.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.__$emitEvent({eventName:"goods-brand-tap",data:t,promiseCallback:function(n,o,r){r&&e.toDetail(t)}});case 2:case"end":return n.stop()}}),n)})))()}}}},b69d:function(t,e,n){"use strict";n("785f")},e675:function(t,e,n){"use strict";n.r(e);var o=n("3bb3"),r=n("58f2");for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);n("b69d");var a=n("s3"),u=Object(a.a)(r.default,o.b,o.c,!1,null,null,null,!1,o.a,void 0);e.default=u.exports}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components-diy/diy-goods-brand-create-component',
|
||||
{
|
||||
'components-diy/diy-goods-brand-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('s2')['createComponent'](__webpack_require__("e675"))
|
||||
})
|
||||
},
|
||||
[['components-diy/diy-goods-brand-create-component']]
|
||||
]);
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"x-skeleton": "/uni_modules/x-skeleton/components/x-skeleton/x-skeleton"
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -2,7 +2,7 @@
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"x-skeleton": "/uni_modules/x-skeleton/components/x-skeleton/x-skeleton",
|
||||
"diy-icon": "/components/diy-components/diy-icon",
|
||||
"diy-icon": "/components-diy/diy-icon",
|
||||
"ns-goods-sku-index": "/components/ns-goods-sku/ns-goods-sku-index"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
.goods-list .goods-item.data-v-76f834f5{line-height:1}.goods-list .goods-item .sale.data-v-76f834f5{line-height:1;color:#909399;font-size:20rpx}.goods-list .goods-item .info-wrap .goods-name.data-v-76f834f5{margin-bottom:10rpx;line-height:1.3}.goods-list .goods-item .sell-out.data-v-76f834f5{position:absolute;z-index:1;width:100%;height:100%;top:0;left:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.5)}.goods-list .goods-item .sell-out text.data-v-76f834f5{color:#fff;font-size:180rpx}.goods-list.style-1.data-v-76f834f5{width:100%;white-space:nowrap;background-repeat:round}.goods-list.style-1 .top-wrap.data-v-76f834f5{display:flex;align-items:center;padding:20rpx 0}.goods-list.style-1 .top-wrap .js-icon.data-v-76f834f5{border-radius:50%;font-size:40rpx;margin-right:10rpx;width:70rpx;height:70rpx;text-align:center;line-height:70rpx}.goods-list.style-1 .top-wrap .line.data-v-76f834f5{height:28rpx;margin:0 10rpx;border:2rpx solid}.goods-list.style-1 .top-wrap .title.data-v-76f834f5{font-weight:700;font-size:32rpx}.goods-list.style-1 .top-wrap .sub.data-v-76f834f5{font-size:24rpx}.goods-list.style-1 .flex-between.data-v-76f834f5{justify-content:space-between}.goods-list.style-1 .swiper.data-v-76f834f5{display:flex;flex-wrap:wrap;margin:0 20rpx}.goods-list.style-1 .swiper .swiper-item.data-v-76f834f5{display:flex;align-items:center}.goods-list.style-1 .goods-item.data-v-76f834f5{overflow:hidden;width:200rpx;display:inline-block;box-sizing:border-box}.goods-list.style-1 .goods-item.data-v-76f834f5:nth-child(3n+3){width:198rpx}.goods-list.style-1 .goods-item.shadow.data-v-76f834f5{margin-top:8rpx}.goods-list.style-1 .goods-item .goods-img.data-v-76f834f5,
|
||||
.goods-list.style-1 .goods-item .goods-img-wrap.data-v-76f834f5{position:relative;width:100%;height:196rpx}.goods-list.style-1 .goods-item .info-wrap.data-v-76f834f5{display:flex;flex-direction:column;padding:10rpx}.goods-list.style-1 .goods-item .info-wrap.multi-content.data-v-76f834f5{height:130rpx;box-sizing:border-box}.goods-list.style-1 .goods-item .info-wrap .goods-name.data-v-76f834f5{font-size:26rpx}.goods-list.style-1 .goods-item .info-wrap .goods-name.multi-hidden.data-v-76f834f5{white-space:break-spaces}.goods-list.style-1 .goods-item .info-wrap .pro-info.data-v-76f834f5{margin-top:auto;display:flex;flex-direction:column;justify-content:space-between}.goods-list.style-1 .goods-item .info-wrap .pro-info .discount-price.data-v-76f834f5{display:flex;justify-content:space-between;align-items:center}.goods-list.style-1 .goods-item .info-wrap .pro-info .discount-price .price-wrap.data-v-76f834f5{line-height:1;white-space:nowrap}.goods-list.style-1 .goods-item .info-wrap .pro-info .discount-price .price-wrap .unit.data-v-76f834f5{font-size:24rpx;color:var(--base-color)}.goods-list.style-1 .goods-item .info-wrap .pro-info .discount-price .price-wrap .price.data-v-76f834f5{font-size:32rpx}.goods-list.style-1 .goods-item .info-wrap .pro-info .discount-price .price-wrap text.data-v-76f834f5{font-weight:700;color:var(--base-color)}.goods-list.style-1 .goods-item .info-wrap .pro-info .delete-price.data-v-76f834f5{margin-left:10rpx;text-decoration:line-through;flex:1;line-height:28rpx;color:#909399;font-size:20rpx}.goods-list.style-2.data-v-76f834f5{width:100%;white-space:nowrap;background-repeat:round;padding-bottom:20rpx}.goods-list.style-2 .top-wrap.data-v-76f834f5{display:flex;align-items:center;padding:20rpx}.goods-list.style-2 .top-wrap .js-icon.data-v-76f834f5{border-radius:50%;font-size:40rpx;margin-right:20rpx;width:70rpx;height:70rpx;text-align:center;line-height:70rpx}.goods-list.style-2 .top-wrap .line.data-v-76f834f5{height:28rpx;margin:0 10rpx;border:2rpx solid}.goods-list.style-2 .top-wrap .title.data-v-76f834f5{font-weight:700;font-size:32rpx}.goods-list.style-2 .top-wrap .sub.data-v-76f834f5{font-size:24rpx}.goods-list.style-2 .swiper.data-v-76f834f5{display:flex;flex-wrap:wrap;margin:0 20rpx;padding:20rpx;border-radius:20rpx;background-color:#fff}.goods-list.style-2 .goods-item.data-v-76f834f5{overflow:hidden;width:200rpx;display:inline-block;box-sizing:border-box}.goods-list.style-2 .goods-item.shadow.data-v-76f834f5{margin-top:8rpx;width:200rpx}.goods-list.style-2 .goods-item .goods-img.data-v-76f834f5,
|
||||
.goods-list.style-2 .goods-item .goods-img-wrap.data-v-76f834f5{position:relative;width:100%;height:200rpx}.goods-list.style-2 .goods-item .info-wrap.data-v-76f834f5{padding:10rpx}.goods-list.style-2 .goods-item .info-wrap .goods-name.data-v-76f834f5{line-height:1}.goods-list.style-2 .goods-item .info-wrap .goods-name.multi-hidden.data-v-76f834f5{line-height:1.3;height:68rpx;white-space:break-spaces}.goods-list.style-2 .goods-item .info-wrap .pro-info.data-v-76f834f5{display:flex;flex-direction:column;justify-content:space-between}.goods-list.style-2 .goods-item .info-wrap .pro-info .discount-price.data-v-76f834f5{display:flex;justify-content:space-between;align-items:center}.goods-list.style-2 .goods-item .info-wrap .pro-info .discount-price .price-wrap.data-v-76f834f5{line-height:1.3}.goods-list.style-2 .goods-item .info-wrap .pro-info .discount-price .price-wrap .unit.data-v-76f834f5{font-size:24rpx;color:var(--base-color)}.goods-list.style-2 .goods-item .info-wrap .pro-info .discount-price .price-wrap text.data-v-76f834f5{font-weight:700;color:var(--base-color)}.goods-list.style-2 .goods-item .info-wrap .pro-info .discount-price .price-wrap text.data-v-76f834f5:last-of-type{font-size:32rpx}.goods-list.style-2 .goods-item .info-wrap .pro-info .delete-price.data-v-76f834f5{margin-left:10rpx;text-decoration:line-through;flex:1;line-height:28rpx;color:#909399;font-size:20rpx}.goods-list.style-3.data-v-76f834f5{background-position:bottom}.goods-list.style-3 .swiper.data-v-76f834f5{display:flex;flex-wrap:wrap;margin:0 20rpx;padding:10rpx 0}.goods-list.style-3 .swiper .swiper-item.data-v-76f834f5{display:flex;align-items:center}.goods-list.style-3 .goods-item.data-v-76f834f5{overflow:hidden;width:200rpx;display:inline-block;box-sizing:border-box}.goods-list.style-3 .goods-item .goods-img.data-v-76f834f5,
|
||||
.goods-list.style-3 .goods-item .goods-img-wrap.data-v-76f834f5{position:relative;width:100%;height:200rpx}.goods-list.style-3 .goods-item .info-wrap.data-v-76f834f5{display:flex;flex-direction:column;padding:10rpx}.goods-list.style-3 .goods-item .info-wrap .pro-info.data-v-76f834f5{text-align:center}.goods-list.style-3 .goods-item .info-wrap .pro-info .label-wrap.data-v-76f834f5{border-radius:40rpx;display:inline-block;margin:10rpx 0;position:relative;padding-left:52rpx;padding-right:16rpx;line-height:1.7}.goods-list.style-3 .goods-item .info-wrap .pro-info .label-wrap image.data-v-76f834f5{position:absolute;top:-2rpx;left:-2rpx;width:46rpx;height:46rpx}.goods-list.style-3 .goods-item .info-wrap .pro-info .label-wrap text.data-v-76f834f5{font-size:24rpx}.goods-list.style-3 .goods-item .info-wrap .pro-info .discount-price .price-wrap.data-v-76f834f5{line-height:1;white-space:nowrap}.goods-list.style-3 .goods-item .info-wrap .pro-info .discount-price .price-wrap .unit.data-v-76f834f5{font-size:24rpx;color:var(--base-color)}.goods-list.style-3 .goods-item .info-wrap .pro-info .discount-price .price-wrap .price.data-v-76f834f5{font-size:32rpx}.goods-list.style-3 .goods-item .info-wrap .pro-info .discount-price .price-wrap text.data-v-76f834f5{font-weight:700;color:var(--base-color)}
|
||||
@@ -0,0 +1 @@
|
||||
<x-skeleton vue-id="b1bfc966-1" data-component-name="diy-goods-recommend" type="waterfall" loading="{{loading}}" configs="{{skeletonConfig}}" class="data-v-76f834f5" vue-slots="{{['default']}}"><block has:if="{{list.length}}"><view class="{{['data-v-76f834f5','goods-list',goodsValue.style]}}" style="{{(goodsListWarpCss)}}"><block has:if="{{goodsValue.topStyle.support}}"><view class="top-wrap data-v-76f834f5"><text class="{{['data-v-76f834f5','js-icon',goodsValue.topStyle.icon.value]}}" style="{{'background-color:'+(goodsValue.topStyle.icon.bgColor)+';'+('color:'+(goodsValue.topStyle.icon.color)+';')}}"></text><text class="title data-v-76f834f5" style="{{'color:'+(goodsValue.topStyle.color)+';'}}">{{goodsValue.topStyle.title}}</text><text class="line data-v-76f834f5" style="{{'color:'+(goodsValue.topStyle.subColor)+';'}}"></text><text class="sub data-v-76f834f5" style="{{'color:'+(goodsValue.topStyle.subColor)+';'}}">{{goodsValue.topStyle.subTitle}}</text></view></block><swiper class="swiper data-v-76f834f5" style="{{'height:'+(swiperHeight)+';'}}" autoplay="{{false}}"><block has:for="{{$root.l1}}" has:for-item="item" has:for-index="index" has:key="index"><swiper-item class="{{['data-v-76f834f5','swiper-item',[list[index].length/3]>=1&&'flex-between']}}"><block has:for="{{item.l0}}" has:for-item="dataItem" has:for-index="dataIndex" has:key="dataIndex"><view data-event-opts="{{[['tap',[['toDetail',['$0'],[[['list.'+index+'','',dataIndex]]]]]]]}}" class="{{['goods-item','data-v-76f834f5',goodsValue.ornament.type]}}" style="{{(goodsItemCss)}}" catchtap="__e"><view class="goods-img-wrap _div data-v-76f834f5"><image class="goods-img data-v-76f834f5" style="{{'border-radius:'+(value.imgAroundRadius*2+'rpx')+';'}}" src="{{dataItem.g0}}" mode="widthFix" lazy-load="{{true}}" show-menu-by-longpress="{{true}}" data-event-opts="{{[['error',[['imgError',[index,dataIndex]]]]]}}" binderror="__e"></image><block has:if="{{dataItem.$orig.stock<=0}}"><view class="sell-out data-v-76f834f5"><text class="iconfont icon-shuqing data-v-76f834f5"></text></view></block></view><block has:if="{{goodsValue.goodsNameStyle.control||goodsValue.priceStyle.mainControl||goodsValue.priceStyle.lineControl||goodsValue.labelStyle.support}}"><view class="{{['data-v-76f834f5','info-wrap',[(value.nameLineMode=='multiple')?'multi-content':'']]}}"><block has:if="{{goodsValue.goodsNameStyle.control}}"><view class="{{['goods-name','data-v-76f834f5',[(goodsValue.nameLineMode=='single')?'using-hidden':''],[(goodsValue.nameLineMode=='multiple')?'multi-hidden':'']]}}" style="{{'color:'+(goodsValue.theme=='diy'?goodsValue.goodsNameStyle.color:'')+';'+('font-weight:'+(goodsValue.goodsNameStyle.fontWeight?'bold':'')+';')}}">{{''+(isEnEnv?dataItem.$orig.en_goods_name:dataItem.$orig.goods_name)+''}}</view></block><view class="pro-info data-v-76f834f5"><block has:if="{{goodsValue.labelStyle.support}}"><view class="label-wrap data-v-76f834f5" style="{{'background:'+(goodsValue.labelStyle.bgColor)+';'+('color:'+(goodsValue.labelStyle.color)+';')}}"><image src="{{item.g1}}" mode="widthFix" show-menu-by-longpress="{{true}}" class="data-v-76f834f5"></image><text class="data-v-76f834f5">{{goodsValue.labelStyle.title}}</text></view></block><view class="discount-price data-v-76f834f5"><block has:if="{{goodsValue.priceStyle.mainControl}}"><view class="price-wrap data-v-76f834f5"><text class="unit price-style small data-v-76f834f5" style="{{'color:'+(goodsValue.theme=='diy'?goodsValue.priceStyle.mainColor+'!important':'')+';'}}">¥</text><text class="price price-style large data-v-76f834f5" style="{{'color:'+(goodsValue.theme=='diy'?goodsValue.priceStyle.mainColor+'!important':'')+';'}}">{{dataItem.g2[0]}}</text><text class="unit price-style small data-v-76f834f5" style="{{'color:'+(goodsValue.theme=='diy'?goodsValue.priceStyle.mainColor+'!important':'')+';'}}">{{'.'+dataItem.g3[1]}}</text></view></block><block has:if="{{dataItem.m0}}"><view class="delete-price price-font data-v-76f834f5" style="{{'color:'+(goodsValue.theme=='diy'?goodsValue.priceStyle.lineColor:'')+';'}}">{{'¥'+dataItem.m1}}</view></block><block has:if="{{goodsValue.saleStyle.control}}"><view class="sale data-v-76f834f5" 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>
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"x-skeleton": "/uni_modules/x-skeleton/components/x-skeleton/x-skeleton"
|
||||
}
|
||||
}
|
||||
@@ -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}.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}
|
||||
@@ -0,0 +1 @@
|
||||
<view style="{{(componentStyle)}}" data-component-name="diy-graphic-nav"><block has: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 has:for="{{$root.l1}}" has:for-item="numItem" has:for-index="numIndex"><swiper-item class="graphic-nav-wrap"><block has:for="{{numItem.l0}}" has:for-item="item" has:for-index="index" has:key="index"><block has: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+'%')+';'}}" catchtap="__e"><block has: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 has: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 has: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="{{'303873b4-1-'+numIndex+'-'+index}}" icon="{{item.$orig.icon}}" value="{{item.$orig.style?item.$orig.style:null}}"></diy-icon></block><block has: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 has: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 has:if="{{isIndicatorDots}}"><view class="{{['swiper-dot-box',value.carousel.type]}}"><block has:for="{{$root.l2}}" has:for-item="numItem" has:for-index="numIndex" has:key="numIndex"><view><view class="{{['swiper-dot',(numIndex==swiperCurrent)?'active':'']}}"></view></view></block></view></block></block></block><block has: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 has:for="{{$root.l3}}" has:for-item="item" has:for-index="index" has:key="index"><view data-event-opts="{{[['tap',[['redirectTo',['$0'],[[['value.list','',index,'link']]]]]]]}}" class="{{['graphic-nav-item',value.mode]}}" style="{{'width:'+(100/value.rowCount+'%')+';'}}" catchtap="__e"><block has: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 has: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 has: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="{{'303873b4-2-'+index}}" icon="{{item.$orig.icon}}" value="{{item.$orig.style?item.$orig.style:null}}"></diy-icon></block><block has: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 has: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></view></scroll-view></block><ns-login class="vue-ref" vue-id="303873b4-3" data-ref="login"></ns-login></view>
|
||||
@@ -0,0 +1,10 @@
|
||||
(global.webpackJsonp=global.webpackJsonp||[]).push([["components-diy/diy-graphic-nav"],{"1bd5":function(t,e,n){"use strict";var i=n("s4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n("/components-diy/minx.js"));e.default={name:"diy-graphic-nav",props:{value:{type:Object}},mixins:[o.default],data:function(){return{pageWidth:"",indicatorDots:!1,swiperCurrent:0}},created:function(){},watch:{componentRefresh:function(){}},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:"")+";")+"border:"+("stroke"==this.value.ornament.type?"2rpx solid "+this.value.ornament.color:"")+";"},swiperHeight:function(){var 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),"height:"+2*t+"rpx"},isIndicatorDots:function(){return"hide"!=this.value.carousel.type&&1!=Math.ceil(this.value.list.length/(this.value.pageCount*this.value.rowCount))}},methods:{redirectTo:function(t){!t.wap_url||this.$util.getCurrRoute()!=this.$util.MEMBER_PAGE_URL||this.storeToken?this.$util.diyRedirectTo(t):this.$refs.login.open(t.wap_url)},swiperChange:function(t){this.swiperCurrent=t.detail.current}}}},4604:function(){},"66a9":function(){},"7b07":function(t,e,n){"use strict";n("4604")},8063: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={diyIcon:function(){return Promise.all([n.e("common/vendor"),n.e("components-diy/diy-icon")]).then(n.bind(null,"aed4"))},nsLogin:function(){return Promise.all([n.e("common/vendor"),n.e("components/ns-login/ns-login")]).then(n.bind(null,"35ce"))}},o=function(){var t=this,e="pageSlide"==t.value.showStyle?t.__map(Math.ceil(t.value.list.length/(t.value.pageCount*t.value.rowCount)),(function(e){return{$orig:t.__get_orig(e),l0:t.__map(t.value.list,(function(n,i){return{$orig:t.__get_orig(n),g0:i>=[e*t.value.pageCount*t.value.rowCount]&&i<[(e+1)*t.value.pageCount*t.value.rowCount]&&"text"!=t.value.mode&&"img"==n.iconType?t.$util.img(n.imageUrl)||t.$util.img("public/uniapp/default_img/goods.png"):null}}))}})):null,n="pageSlide"==t.value.showStyle&&t.isIndicatorDots?Math.ceil(t.value.list.length/(t.value.pageCount*t.value.rowCount)):null,i="pageSlide"!=t.value.showStyle?t.__map(t.value.list,(function(e){return{$orig:t.__get_orig(e),g1:"text"!=t.value.mode&&"img"==e.iconType?t.$util.img(e.imageUrl)||t.$util.img("public/uniapp/default_img/goods.png"):null}})):null;t._isMounted||(t.e0=function(e,n){var i;return n=((i=arguments[arguments.length-1].currentTarget.dataset).eventParams||i["event-params"]).item,e.stopPropagation(),t.redirectTo(n.link)}),t.$mp.data=Object.assign({},{$root:{l1:e,l2:n,l3:i}})},u=[]},bcc8:function(t,e,n){"use strict";n("66a9")},c08b:function(t,e,n){"use strict";n.r(e);var i=n("8063"),o=n("cf16");for(var u in o)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(u);n("bcc8"),n("7b07");var r=n("s3"),a=Object(r.a)(o.default,i.b,i.c,!1,null,null,null,!1,i.a,void 0);e.default=a.exports},cf16:function(t,e,n){"use strict";n.r(e);var i=n("1bd5"),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}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components-diy/diy-graphic-nav-create-component',
|
||||
{
|
||||
'components-diy/diy-graphic-nav-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('s2')['createComponent'](__webpack_require__("c08b"))
|
||||
})
|
||||
},
|
||||
[['components-diy/diy-graphic-nav-create-component']]
|
||||
]);
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"diy-icon": "/components/diy-components/diy-icon",
|
||||
"diy-icon": "/components-diy/diy-icon",
|
||||
"ns-login": "/components/ns-login/ns-login"
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"diy-store": "/components-diy/diy-store",
|
||||
"diy-kefu": "/components-diy/diy-kefu",
|
||||
"diy-form": "/components-diy/diy-form",
|
||||
"diy-store-label": "/components-diy/diy-store-label",
|
||||
"diy-picture": "/components-diy/diy-picture",
|
||||
"diy-listmenu": "/components-diy/diy-listmenu",
|
||||
"diy-text": "/components-diy/diy-text",
|
||||
"diy-notice": "/components-diy/diy-notice",
|
||||
"diy-graphic-nav": "/components-diy/diy-graphic-nav",
|
||||
"diy-img-ads": "/components-diy/diy-img-ads",
|
||||
"diy-search": "/components-diy/diy-search",
|
||||
"diy-rich-text": "/components-diy/diy-rich-text",
|
||||
"diy-horz-line": "/components-diy/diy-horz-line",
|
||||
"diy-horz-blank": "/components-diy/diy-horz-blank",
|
||||
"diy-coupon": "/components-diy/diy-coupon",
|
||||
"diy-goods-list": "/components-diy/diy-goods-list",
|
||||
"diy-many-goods-list": "/components-diy/diy-many-goods-list",
|
||||
"diy-rubik-cube": "/components-diy/diy-rubik-cube",
|
||||
"diy-video": "/components-diy/diy-video",
|
||||
"diy-seckill": "/components-diy/diy-seckill",
|
||||
"diy-pintuan": "/components-diy/diy-pintuan",
|
||||
"diy-groupbuy": "/components-diy/diy-groupbuy",
|
||||
"diy-pinfan": "/components-diy/diy-pinfan",
|
||||
"diy-bargain": "/components-diy/diy-bargain",
|
||||
"diy-presale": "/components-diy/diy-presale",
|
||||
"diy-notes": "/components-diy/diy-notes",
|
||||
"diy-float-btn": "/components-diy/diy-float-btn",
|
||||
"diy-fenxiao-goods-list": "/components-diy/diy-fenxiao-goods-list",
|
||||
"diy-goods-recommend": "/components-diy/diy-goods-recommend",
|
||||
"diy-goods-brand": "/components-diy/diy-goods-brand",
|
||||
"diy-article": "/components-diy/diy-article",
|
||||
"diy-merch-list": "/components-diy/diy-merch-list",
|
||||
"diy-member-info": "/components-diy/diy-member-info",
|
||||
"diy-member-my-order": "/components-diy/diy-member-my-order",
|
||||
"diy-quick-nav": "/components-diy/diy-quick-nav",
|
||||
"diy-payment-qrcode": "/components-diy/diy-payment-qrcode",
|
||||
"diy-hot-area": "/components-diy/diy-hot-area",
|
||||
"diy-follow-official-account": "/components-diy/diy-follow-official-account",
|
||||
"diy-map": "/components-diy/diy-map",
|
||||
"diy-audio": "/components-diy/diy-audio",
|
||||
"diy-image-nav": "/components-diy/diy-image-nav",
|
||||
"diy-digit": "/components-diy/diy-digit",
|
||||
"diy-video-list": "/components-diy/diy-video-list",
|
||||
"diy-bottom-nav": "/components-diy/diy-bottom-nav",
|
||||
"diy-category-item": "/components-diy/diy-category-item",
|
||||
"diy-category": "/components-diy/diy-category",
|
||||
"diy-icon": "/components-diy/diy-icon",
|
||||
"diy-tab": "/components-diy/diy-tab",
|
||||
"diy-channel-list": "/components-diy/diy-channel-list",
|
||||
"diy-comp-extend": "/components-diy/diy-comp-extend"
|
||||
}
|
||||
}
|
||||
@@ -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}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"x-skeleton": "/uni_modules/x-skeleton/components/x-skeleton/x-skeleton"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view style="{{(horzBlankGaugeWrap)}}" data-component-name="diy-horz-blank"></view>
|
||||
@@ -0,0 +1,10 @@
|
||||
(global.webpackJsonp=global.webpackJsonp||[]).push([["components-diy/diy-horz-blank"],{9572:function(t,n,o){"use strict";o.d(n,"b",(function(){return e})),o.d(n,"c",(function(){return r})),o.d(n,"a",(function(){}));var e=function(){},r=[]},a990:function(t,n,o){"use strict";o.r(n);var e=o("ede0"),r=o.n(e);for(var u in e)["default"].indexOf(u)<0&&function(t){o.d(n,t,(function(){return e[t]}))}(u);n.default=r.a},b3b6:function(t,n,o){"use strict";o.r(n);var e=o("9572"),r=o("a990");for(var u in r)["default"].indexOf(u)<0&&function(t){o.d(n,t,(function(){return r[t]}))}(u);var a=o("s3"),i=Object(a.a)(r.default,e.b,e.c,!1,null,null,null,!1,e.a,void 0);n.default=i.exports},ede0:function(t,n,o){"use strict";var e=o("s4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=e(o("/components-diy/minx.js"));n.default={name:"diy-horz-blank",props:{value:{type:Object}},mixins:[r.default],data:function(){return{}},watch:{componentRefresh:function(){}},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"}},created:function(){},methods:{}}}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components-diy/diy-horz-blank-create-component',
|
||||
{
|
||||
'components-diy/diy-horz-blank-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('s2')['createComponent'](__webpack_require__("b3b6"))
|
||||
})
|
||||
},
|
||||
[['components-diy/diy-horz-blank-create-component']]
|
||||
]);
|
||||
@@ -1 +1 @@
|
||||
<view style="{{'border-top:'+('2rpx '+value.borderStyle+' '+value.color)+';'}}"></view>
|
||||
<view style="{{'border-top:'+('2rpx '+value.borderStyle+' '+value.color)+';'}}" data-component-name="diy-horz-line"></view>
|
||||
@@ -0,0 +1,10 @@
|
||||
(global.webpackJsonp=global.webpackJsonp||[]).push([["components-diy/diy-horz-line"],{1381:function(n,t,e){"use strict";e.d(t,"b",(function(){return u})),e.d(t,"c",(function(){return o})),e.d(t,"a",(function(){}));var u=function(){},o=[]},"3cfb":function(n,t,e){"use strict";e.r(t);var u=e("7d72"),o=e.n(u);for(var i in u)["default"].indexOf(i)<0&&function(n){e.d(t,n,(function(){return u[n]}))}(i);t.default=o.a},"7d72":function(n,t,e){"use strict";var u=e("s4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=u(e("/components-diy/minx.js"));t.default={name:"diy-horz-line",props:{value:{type:Object}},mixins:[o.default],data:function(){return{}},watch:{componentRefresh:function(){}},methods:{}}},ed7c:function(n,t,e){"use strict";e.r(t);var u=e("1381"),o=e("3cfb");for(var i in o)["default"].indexOf(i)<0&&function(n){e.d(t,n,(function(){return o[n]}))}(i);var r=e("s3"),c=Object(r.a)(o.default,u.b,u.c,!1,null,null,null,!1,u.a,void 0);t.default=c.exports}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components-diy/diy-horz-line-create-component',
|
||||
{
|
||||
'components-diy/diy-horz-line-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('s2')['createComponent'](__webpack_require__("ed7c"))
|
||||
})
|
||||
},
|
||||
[['components-diy/diy-horz-line-create-component']]
|
||||
]);
|
||||
@@ -0,0 +1 @@
|
||||
.hot-area-box.data-v-4a2ee217{position:relative;width:100%;overflow:hidden;box-sizing:border-box}.simple-graph-wrap.data-v-4a2ee217{line-height:0;overflow:hidden;position:relative}.simple-graph-wrap image.data-v-4a2ee217{width:100%}.simple-graph-wrap .heat-map.data-v-4a2ee217{position:absolute}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="hot-area-box data-v-4a2ee217" style="{{(hotAreaWarp)}}" data-component-name="diy-hot-area"><view class="simple-graph-wrap data-v-4a2ee217"><image style="{{'height:'+(value.imgHeight)+';'}}" src="{{$root.g0}}" mode="widthFix" show-menu-by-longpress="{{true}}" class="data-v-4a2ee217"></image><block has:for="{{value.heatMapData}}" has:for-item="mapItem" has:for-index="mapIndex" has:key="mapIndex"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" data-event-params="{{({mapItem})}}" class="heat-map data-v-4a2ee217" style="{{'width:'+(mapItem.width+'%')+';'+('height:'+(mapItem.height+'%')+';')+('left:'+(mapItem.left+'%')+';')+('top:'+(mapItem.top+'%')+';')}}" catchtap="__e"></view></block></view></view>
|
||||
@@ -0,0 +1,10 @@
|
||||
(global.webpackJsonp=global.webpackJsonp||[]).push([["components-diy/diy-hot-area"],{4379:function(t,e,n){"use strict";n.r(e);var r=n("8bbd"),o=n("588d");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("a525");var u=n("s3"),i=Object(u.a)(o.default,r.b,r.c,!1,null,"4a2ee217",null,!1,r.a,void 0);e.default=i.exports},"588d":function(t,e,n){"use strict";n.r(e);var r=n("b0ec"),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},"8bbd":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.$util.img(t.value.imageUrl);t._isMounted||(t.e0=function(e,n){var r;return n=((r=arguments[arguments.length-1].currentTarget.dataset).eventParams||r["event-params"]).mapItem,e.stopPropagation(),t.$util.diyRedirectTo(n.link)}),t.$mp.data=Object.assign({},{$root:{g0:e}})},o=[]},a525:function(t,e,n){"use strict";n("da8d")},b0ec:function(t,e,n){"use strict";var r=n("s4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n("/components-diy/minx.js"));e.default={name:"diy-hot-area",props:{value:{type:Object,default:function(){return{}}}},mixins:[o.default],data:function(){return{}},created:function(){},watch:{componentRefresh:function(){}},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:{}}},da8d:function(){}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components-diy/diy-hot-area-create-component',
|
||||
{
|
||||
'components-diy/diy-hot-area-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('s2')['createComponent'](__webpack_require__("4379"))
|
||||
})
|
||||
},
|
||||
[['components-diy/diy-hot-area-create-component']]
|
||||
]);
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user