mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-29 14:01:07 +00:00
更新前端文件,修复砍价拼团绑定关系
This commit is contained in:
parent
0087b63fd5
commit
a1fa788dd2
@ -1,2 +1,2 @@
|
||||
<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>加载中</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
|
||||
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/static/index.5e7e3b56.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/static/js/chunk-vendors.c83b5289.js></script><script src=/static/js/index.2960b81b.js></script></body></html>
|
||||
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/static/index.5e7e3b56.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/static/js/chunk-vendors.2196fee3.js></script><script src=/static/js/index.c9bdce5d.js></script></body></html>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
crmeb/public/static/js/index.c9bdce5d.js
Normal file
1
crmeb/public/static/js/index.c9bdce5d.js
Normal file
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
File diff suppressed because one or more lines are too long
1
crmeb/public/static/js/pages-guide-index.bc09e329.js
Normal file
1
crmeb/public/static/js/pages-guide-index.bc09e329.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
crmeb/public/static/js/pages-index-index.d60b6e6f.js
Normal file
1
crmeb/public/static/js/pages-index-index.d60b6e6f.js
Normal file
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
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 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/guide/index"],{3235:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e={data:function(){return{autoplay:!1,duration:500,jumpover:"跳过",experience:"立即体验",time:5,timecount:void 0}},props:{advList:{type:Array,default:function(){}}},mounted:function(){this.timer()},methods:{timer:function(){var t=this,n=5;this.timecount=setInterval((function(){n--,t.time=n,n<=0&&(clearInterval(t.timecount),t.launchFlag())}),1e3)},launchFlag:function(){clearInterval(this.timecount),t.switchTab({url:"/pages/index/index"})}}};n.default=e}).call(this,e("543d")["default"])},"3fcc":function(t,n,e){},7382:function(t,n,e){"use strict";e.r(n);var u=e("c41f"),c=e("9e06");for(var i in c)"default"!==i&&function(t){e.d(n,t,(function(){return c[t]}))}(i);e("dc71");var a,r=e("f0c5"),o=Object(r["a"])(c["default"],u["b"],u["c"],!1,null,null,null,!1,u["a"],a);n["default"]=o.exports},"9e06":function(t,n,e){"use strict";e.r(n);var u=e("3235"),c=e.n(u);for(var i in u)"default"!==i&&function(t){e.d(n,t,(function(){return u[t]}))}(i);n["default"]=c.a},c41f:function(t,n,e){"use strict";var u;e.d(n,"b",(function(){return c})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){return u}));var c=function(){var t=this,n=t.$createElement;t._self._c},i=[]},dc71:function(t,n,e){"use strict";var u=e("3fcc"),c=e.n(u);c.a}}]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/guide/index"],{"0d21":function(t,n,e){"use strict";var u;e.d(n,"b",(function(){return c})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){return u}));var c=function(){var t=this,n=t.$createElement;t._self._c},i=[]},3235:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e={data:function(){return{autoplay:!1,duration:500,jumpover:"跳过",experience:"立即体验",time:5,timecount:void 0}},props:{advList:{type:Array,default:function(){}}},mounted:function(){this.timer()},methods:{timer:function(){var t=this,n=5;this.timecount=setInterval((function(){n--,t.time=n,n<=0&&(clearInterval(t.timecount),t.launchFlag())}),1e3)},launchFlag:function(){clearInterval(this.timecount),t.switchTab({url:"/pages/index/index"})}}};n.default=e}).call(this,e("543d")["default"])},"3fcc":function(t,n,e){},7382:function(t,n,e){"use strict";e.r(n);var u=e("0d21"),c=e("9e06");for(var i in c)"default"!==i&&function(t){e.d(n,t,(function(){return c[t]}))}(i);e("dc71");var a,r=e("f0c5"),o=Object(r["a"])(c["default"],u["b"],u["c"],!1,null,null,null,!1,u["a"],a);n["default"]=o.exports},"9e06":function(t,n,e){"use strict";e.r(n);var u=e("3235"),c=e.n(u);for(var i in u)"default"!==i&&function(t){e.d(n,t,(function(){return u[t]}))}(i);n["default"]=c.a},dc71:function(t,n,e){"use strict";var u=e("3fcc"),c=e.n(u);c.a}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/guide/index-create-component',
|
||||
{
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/guide/index"],{"0a86":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n("7fe6"),u=function(){n.e("components/guide/index").then(function(){return resolve(n("7382"))}.bind(null,n)).catch(n.oe)},c={components:{guide:u},data:function(){return{guidePages:!1,advList:[]}},onLoad:function(){this.loadExecution()},methods:{loadExecution:function(){var e=this,n=t.getStorageSync("guideDate")||"",u=(new Date).toLocaleDateString();n!==u?(0,a.getOpenAdv)().then((function(n){n.data.length?(e.advList=n.data,t.setStorageSync("guideDate",(new Date).toLocaleDateString()),e.guidePages=!0):t.switchTab({url:"/pages/index/index"})})).catch((function(t){})):t.switchTab({url:"/pages/index/index"})}}};e.default=c}).call(this,n("543d")["default"])},"136b":function(t,e,n){"use strict";n.r(e);var a=n("49dd"),u=n("cdfe");for(var c in u)"default"!==c&&function(t){n.d(e,t,(function(){return u[t]}))}(c);n("5cb3");var i,o=n("f0c5"),d=Object(o["a"])(u["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],i);e["default"]=d.exports},1433:function(t,e,n){"use strict";(function(t){n("6e38");a(n("66fd"));var e=a(n("136b"));function a(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},"49dd":function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return a}));var u=function(){var t=this,e=t.$createElement;t._self._c},c=[]},"5cb3":function(t,e,n){"use strict";var a=n("66e2"),u=n.n(a);u.a},"66e2":function(t,e,n){},cdfe:function(t,e,n){"use strict";n.r(e);var a=n("0a86"),u=n.n(a);for(var c in a)"default"!==c&&function(t){n.d(e,t,(function(){return a[t]}))}(c);e["default"]=u.a}},[["1433","common/runtime","common/vendor"]]]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/guide/index"],{"0a86":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n("7fe6"),u=function(){n.e("components/guide/index").then(function(){return resolve(n("7382"))}.bind(null,n)).catch(n.oe)},c={components:{guide:u},data:function(){return{guidePages:!1,advList:[]}},onLoad:function(){this.loadExecution()},methods:{loadExecution:function(){var t=this,n=e.getStorageSync("guideDate")||"",u=(new Date).toLocaleDateString();n!==u?(0,a.getOpenAdv)().then((function(n){n.data.length?(t.advList=n.data,e.setStorageSync("guideDate",(new Date).toLocaleDateString()),t.guidePages=!0):e.switchTab({url:"/pages/index/index"})})).catch((function(e){})):e.switchTab({url:"/pages/index/index"})}}};t.default=c}).call(this,n("543d")["default"])},"136b":function(e,t,n){"use strict";n.r(t);var a=n("56e4"),u=n("cdfe");for(var c in u)"default"!==c&&function(e){n.d(t,e,(function(){return u[e]}))}(c);n("5cb3");var i,o=n("f0c5"),r=Object(o["a"])(u["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],i);t["default"]=r.exports},1433:function(e,t,n){"use strict";(function(e){n("6e38");a(n("66fd"));var t=a(n("136b"));function a(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])},"56e4":function(e,t,n){"use strict";var a;n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return a}));var u=function(){var e=this,t=e.$createElement;e._self._c},c=[]},"5cb3":function(e,t,n){"use strict";var a=n("66e2"),u=n.n(a);u.a},"66e2":function(e,t,n){},cdfe:function(e,t,n){"use strict";n.r(t);var a=n("0a86"),u=n.n(a);for(var c in a)"default"!==c&&function(e){n.d(t,e,(function(){return a[e]}))}(c);t["default"]=u.a}},[["1433","common/runtime","common/vendor"]]]);
|
||||
@ -1,4 +1,4 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@ -2,6 +2,7 @@
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom",
|
||||
"navigationBarTextStyle": "white",
|
||||
"enablePullDownRefresh": true,
|
||||
"usingComponents": {
|
||||
"goods-waterfall": "/components/goodsWaterfall/goodsWaterfall",
|
||||
"coupon-window": "/components/couponWindow/index",
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -1,3 +1,3 @@
|
||||
.bac-col.data-v-ad171f54{width:100%;height:300rpx;position:absolute;background-image:linear-gradient(135deg,#f97794 10%,#623aa2);top:0;background:linear-gradient(90deg,#f62c2c,#f96e29)}.swiperCon.data-v-ad171f54{margin:20rpx 0!important}.swiperCon.data-v-ad171f54 .swiperBg{margin:20rpx 0!important}.swiperCon.data-v-ad171f54 .swiper swiper,
|
||||
.swiperCon.data-v-ad171f54 .swiper .swiper-item,
|
||||
.swiperCon.data-v-ad171f54 .swiper image{height:190rpx!important}.site-config.data-v-ad171f54{margin:40rpx 0;font-size:24rpx;text-align:center;color:#666}.site-config.fixed.data-v-ad171f54{position:fixed;bottom:69px;left:0;width:100%}.indexTip.data-v-ad171f54{position:fixed;right:42rpx;z-index:10000}.indexTip .tip.data-v-ad171f54{width:400rpx;border-radius:6rpx;background-color:#fff;padding:15rpx 22rpx;position:relative}.indexTip .tip.data-v-ad171f54::before{content:"";width:0;height:0;border-left:15rpx solid transparent;border-right:15rpx solid transparent;border-bottom:17rpx solid #fff;position:absolute;top:-14rpx;right:95rpx}.indexTip .text.data-v-ad171f54{font-size:22rpx;color:#333;width:320rpx}.indexTip .text image.data-v-ad171f54{width:30rpx;height:16rpx;display:inline-block}.indexTip .iconfont.data-v-ad171f54{color:#cdcdcd;font-size:32rpx}.privacy-wrapper.data-v-ad171f54{z-index:999;position:fixed;left:0;top:0;width:100%;height:100%;background:#7f7f7f}.privacy-wrapper .privacy-box.data-v-ad171f54{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:560rpx;padding:50rpx 45rpx 0;background:#fff;border-radius:20rpx}.privacy-wrapper .privacy-box .title.data-v-ad171f54{text-align:center;font-size:32rpx;text-align:center;color:#333;font-weight:700}.privacy-wrapper .privacy-box .content.data-v-ad171f54{margin-top:20rpx;line-height:1.5;font-size:26rpx;color:#666}.privacy-wrapper .privacy-box .content navigator.data-v-ad171f54{display:inline-block;color:#e93323}.privacy-wrapper .privacy-box .btn-box.data-v-ad171f54{margin-top:40rpx;text-align:center;font-size:30rpx}.privacy-wrapper .privacy-box .btn-box .btn-item.data-v-ad171f54{height:82rpx;line-height:82rpx;background:linear-gradient(90deg,#f67a38,#f11b09);color:#fff;border-radius:41rpx}.privacy-wrapper .privacy-box .btn-box .btn.data-v-ad171f54{padding:30rpx 0}.sort-product.data-v-ad171f54{margin:20rpx}.empty-box.data-v-ad171f54{text-align:center;padding:150rpx 0}.empty-box image.data-v-ad171f54{width:410rpx;height:336rpx}.nothing.data-v-ad171f54{min-height:800rpx}.product-list.data-v-ad171f54{display:flex;flex-wrap:wrap;justify-content:space-between;margin-top:0rpx;padding:0 20rpx}.product-list .product-item.data-v-ad171f54{position:relative;width:324rpx;background:#fff;border-radius:10rpx;margin-bottom:20rpx}.product-list .product-item image.data-v-ad171f54{width:100%;height:344rpx;border-radius:10rpx 10rpx 0 0}.product-list .product-item .info.data-v-ad171f54{padding:14rpx 16rpx}.product-list .product-item .info .title.data-v-ad171f54{font-size:28rpx}.product-list .product-item .info .price-box.data-v-ad171f54{font-size:34rpx;font-weight:700;margin-top:8px;color:#fc4141}.product-list .product-item .info .price-box text.data-v-ad171f54{font-size:26rpx}.sticky-box.data-v-ad171f54{display:flex;position:-webkit-sticky;overflow-x:scroll;position:sticky;z-index:998;flex-direction:row;margin:0;background:#f5f5f5;padding:15rpx 0 10rpx 0}
|
||||
.bac-col.data-v-23edb7d9{width:100%;height:300rpx;position:absolute;background-image:linear-gradient(135deg,#f97794 10%,#623aa2);top:0;background:linear-gradient(90deg,#f62c2c,#f96e29)}.swiperCon.data-v-23edb7d9{margin:20rpx 0!important}.swiperCon.data-v-23edb7d9 .swiperBg{margin:20rpx 0!important}.swiperCon.data-v-23edb7d9 .swiper swiper,
|
||||
.swiperCon.data-v-23edb7d9 .swiper .swiper-item,
|
||||
.swiperCon.data-v-23edb7d9 .swiper image{height:190rpx!important}.site-config.data-v-23edb7d9{margin:40rpx 0;font-size:24rpx;text-align:center;color:#666}.site-config.fixed.data-v-23edb7d9{position:fixed;bottom:69px;left:0;width:100%}.indexTip.data-v-23edb7d9{position:fixed;right:42rpx;z-index:10000}.indexTip .tip.data-v-23edb7d9{width:400rpx;border-radius:6rpx;background-color:#fff;padding:15rpx 22rpx;position:relative}.indexTip .tip.data-v-23edb7d9::before{content:"";width:0;height:0;border-left:15rpx solid transparent;border-right:15rpx solid transparent;border-bottom:17rpx solid #fff;position:absolute;top:-14rpx;right:95rpx}.indexTip .text.data-v-23edb7d9{font-size:22rpx;color:#333;width:320rpx}.indexTip .text image.data-v-23edb7d9{width:30rpx;height:16rpx;display:inline-block}.indexTip .iconfont.data-v-23edb7d9{color:#cdcdcd;font-size:32rpx}.privacy-wrapper.data-v-23edb7d9{z-index:999;position:fixed;left:0;top:0;width:100%;height:100%;background:#7f7f7f}.privacy-wrapper .privacy-box.data-v-23edb7d9{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:560rpx;padding:50rpx 45rpx 0;background:#fff;border-radius:20rpx}.privacy-wrapper .privacy-box .title.data-v-23edb7d9{text-align:center;font-size:32rpx;text-align:center;color:#333;font-weight:700}.privacy-wrapper .privacy-box .content.data-v-23edb7d9{margin-top:20rpx;line-height:1.5;font-size:26rpx;color:#666}.privacy-wrapper .privacy-box .content navigator.data-v-23edb7d9{display:inline-block;color:#e93323}.privacy-wrapper .privacy-box .btn-box.data-v-23edb7d9{margin-top:40rpx;text-align:center;font-size:30rpx}.privacy-wrapper .privacy-box .btn-box .btn-item.data-v-23edb7d9{height:82rpx;line-height:82rpx;background:linear-gradient(90deg,#f67a38,#f11b09);color:#fff;border-radius:41rpx}.privacy-wrapper .privacy-box .btn-box .btn.data-v-23edb7d9{padding:30rpx 0}.sort-product.data-v-23edb7d9{margin:20rpx}.empty-box.data-v-23edb7d9{text-align:center;padding:150rpx 0}.empty-box image.data-v-23edb7d9{width:410rpx;height:336rpx}.nothing.data-v-23edb7d9{min-height:800rpx}.product-list.data-v-23edb7d9{display:flex;flex-wrap:wrap;justify-content:space-between;margin-top:0rpx;padding:0 20rpx}.product-list .product-item.data-v-23edb7d9{position:relative;width:324rpx;background:#fff;border-radius:10rpx;margin-bottom:20rpx}.product-list .product-item image.data-v-23edb7d9{width:100%;height:344rpx;border-radius:10rpx 10rpx 0 0}.product-list .product-item .info.data-v-23edb7d9{padding:14rpx 16rpx}.product-list .product-item .info .title.data-v-23edb7d9{font-size:28rpx}.product-list .product-item .info .price-box.data-v-23edb7d9{font-size:34rpx;font-weight:700;margin-top:8px;color:#fc4141}.product-list .product-item .info .price-box text.data-v-23edb7d9{font-size:26rpx}.sticky-box.data-v-23edb7d9{display:flex;position:-webkit-sticky;overflow-x:scroll;position:sticky;z-index:998;flex-direction:row;margin:0;background:#f5f5f5;padding:15rpx 0 10rpx 0}
|
||||
@ -1 +1 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/user_cash/index"],{"07e9":function(t,e,n){"use strict";n.r(e);var i=n("d7ae"),r=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=r.a},"0da3":function(t,e,n){},"212e":function(t,e,n){"use strict";var i=n("0da3"),r=n.n(i);r.a},"40eb":function(t,e,n){"use strict";n.r(e);var i=n("efbb"),r=n("07e9");for(var a in r)"default"!==a&&function(t){n.d(e,t,(function(){return r[t]}))}(a);n("212e");var u,c=n("f0c5"),o=Object(c["a"])(r["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],u);e["default"]=o.exports},d7ae:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("3474"),r=n("c6cd"),a=n("26cb"),u=c(n("c83f"));function c(t){return t&&t.__esModule?t:{default:t}}var o=function(){n.e("components/Authorize").then(function(){return resolve(n("420f"))}.bind(null,n)).catch(n.oe)},s={components:{authorize:o},mixins:[u.default],data:function(){return{navList:[{name:"银行卡",icon:"icon-yinhangqia"},{name:"微信",icon:"icon-weixin2"},{name:"支付宝",icon:"icon-icon34"}],currentTab:0,index:0,array:[],minPrice:0,userInfo:[],isClone:!1,isAuto:!1,isShowAuth:!1,qrcodeUrlW:"",qrcodeUrlZ:"",prevent:!1}},computed:(0,a.mapGetters)(["isLogin"]),watch:{isLogin:{handler:function(t,e){t&&(this.getUserInfo(),this.getUserExtractBank())},deep:!0}},onLoad:function(){this.isLogin?(this.getUserInfo(),this.getUserExtractBank()):(0,r.toLogin)()},methods:{uploadpic:function(t){var e=this;e.$util.uploadImageOne("upload/image",(function(n){"W"===t?e.qrcodeUrlW=n.data.url:e.qrcodeUrlZ=n.data.url}))},DelPicW:function(){this.qrcodeUrlW=""},DelPicZ:function(){this.qrcodeUrlZ=""},onLoadFun:function(){this.getUserInfo(),this.getUserExtractBank()},authColse:function(t){this.isShowAuth=t},getUserExtractBank:function(){var t=this;(0,i.extractBank)().then((function(e){var n=e.data.extractBank;n.unshift("请选择银行"),t.$set(t,"array",n),t.minPrice=e.data.minPrice}))},getUserInfo:function(){var t=this;(0,i.getUserInfo)().then((function(e){t.userInfo=e.data}))},swichNav:function(t){this.currentTab=t},bindPickerChange:function(t){this.index=t.detail.value},subCash:function(t){var e=this,n=this,r=t.detail.value;if(0==n.currentTab){if(0==r.name.length)return this.$util.Tips({title:"请填写持卡人姓名"});if(0==r.cardnum.length)return this.$util.Tips({title:"请填写卡号"});if(0==n.index)return this.$util.Tips({title:"请选择银行"});r.extract_type="bank",r.bankname=n.array[n.index]}else if(1==n.currentTab){if(r.extract_type="weixin",0==r.name.length)return this.$util.Tips({title:"请填写微信号"});r.weixin=r.name,r.qrcode_url=n.qrcodeUrlW}else if(2==n.currentTab){if(r.extract_type="alipay",0==r.name.length)return this.$util.Tips({title:"请填写账号"});r.alipay_code=r.name,r.qrcode_url=n.qrcodeUrlZ}return 0==r.money.length?this.$util.Tips({title:"请填写提现金额"}):Number(r.money)<Number(n.minPrice)?this.$util.Tips({title:"提现金额不能低于"+n.minPrice}):void(0,i.extractCash)(r).then((function(t){return n.getUserInfo(),e.$util.Tips({title:t.msg,icon:"success"},{url:"/pages/users/user_spread_user/index",tab:2})})).catch((function(t){return setTimeout((function(t){e.prevent=!1}),1e3),e.$util.Tips({title:t})}))}}};e.default=s},efbb:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement;t._self._c},a=[]},fac5:function(t,e,n){"use strict";(function(t){n("6e38");i(n("66fd"));var e=i(n("40eb"));function i(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])}},[["fac5","common/runtime","common/vendor"]]]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/user_cash/index"],{"07e9":function(t,e,n){"use strict";n.r(e);var i=n("d7ae"),r=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=r.a},"0da3":function(t,e,n){},"212e":function(t,e,n){"use strict";var i=n("0da3"),r=n.n(i);r.a},"40eb":function(t,e,n){"use strict";n.r(e);var i=n("ac7d"),r=n("07e9");for(var a in r)"default"!==a&&function(t){n.d(e,t,(function(){return r[t]}))}(a);n("212e");var u,c=n("f0c5"),o=Object(c["a"])(r["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],u);e["default"]=o.exports},ac7d:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement;t._self._c},a=[]},d7ae:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("3474"),r=n("c6cd"),a=n("26cb"),u=c(n("c83f"));function c(t){return t&&t.__esModule?t:{default:t}}var o=function(){n.e("components/Authorize").then(function(){return resolve(n("420f"))}.bind(null,n)).catch(n.oe)},s={components:{authorize:o},mixins:[u.default],data:function(){return{navList:[{name:"银行卡",icon:"icon-yinhangqia"},{name:"微信",icon:"icon-weixin2"},{name:"支付宝",icon:"icon-icon34"}],currentTab:0,index:0,array:[],minPrice:0,userInfo:[],isClone:!1,isAuto:!1,isShowAuth:!1,qrcodeUrlW:"",qrcodeUrlZ:"",prevent:!1}},computed:(0,a.mapGetters)(["isLogin"]),watch:{isLogin:{handler:function(t,e){t&&(this.getUserInfo(),this.getUserExtractBank())},deep:!0}},onLoad:function(){this.isLogin?(this.getUserInfo(),this.getUserExtractBank()):(0,r.toLogin)()},methods:{uploadpic:function(t){var e=this;e.$util.uploadImageOne("upload/image",(function(n){"W"===t?e.qrcodeUrlW=n.data.url:e.qrcodeUrlZ=n.data.url}))},DelPicW:function(){this.qrcodeUrlW=""},DelPicZ:function(){this.qrcodeUrlZ=""},onLoadFun:function(){this.getUserInfo(),this.getUserExtractBank()},authColse:function(t){this.isShowAuth=t},getUserExtractBank:function(){var t=this;(0,i.extractBank)().then((function(e){var n=e.data.extractBank;n.unshift("请选择银行"),t.$set(t,"array",n),t.minPrice=e.data.minPrice}))},getUserInfo:function(){var t=this;(0,i.getUserInfo)().then((function(e){t.userInfo=e.data}))},swichNav:function(t){this.currentTab=t},bindPickerChange:function(t){this.index=t.detail.value},subCash:function(t){var e=this,n=this,r=t.detail.value;if(0==n.currentTab){if(!r.name.trim())return this.$util.Tips({title:"请填写持卡人姓名"});if(!r.cardnum.trim())return this.$util.Tips({title:"请填写卡号"});if(0==n.index)return this.$util.Tips({title:"请选择银行"});r.extract_type="bank",r.bankname=n.array[n.index]}else if(1==n.currentTab){if(r.extract_type="weixin",!r.name.trim())return this.$util.Tips({title:"请填写微信号"});r.weixin=r.name,r.qrcode_url=n.qrcodeUrlW}else if(2==n.currentTab){if(r.extract_type="alipay",0==r.name.length)return this.$util.Tips({title:"请填写账号"});r.alipay_code=r.name,r.qrcode_url=n.qrcodeUrlZ}return r.money.trim()?Number(r.money)<Number(n.minPrice)?this.$util.Tips({title:"提现金额不能低于"+n.minPrice}):void(0,i.extractCash)(r).then((function(t){return n.getUserInfo(),e.$util.Tips({title:t.msg,icon:"success"},{url:"/pages/users/user_spread_user/index",tab:2})})).catch((function(t){return setTimeout((function(t){e.prevent=!1}),1e3),e.$util.Tips({title:t})})):this.$util.Tips({title:"请填写提现金额"})}}};e.default=s},fac5:function(t,e,n){"use strict";(function(t){n("6e38");i(n("66fd"));var e=i(n("40eb"));function i(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])}},[["fac5","common/runtime","common/vendor"]]]);
|
||||
@ -1 +1 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/user_info/index"],{"073c":function(t,n,e){"use strict";e.r(n);var i=e("7851"),o=e("a348");for(var s in o)"default"!==s&&function(t){e.d(n,t,(function(){return o[t]}))}(s);e("10a4");var u,a=e("f0c5"),c=Object(a["a"])(o["default"],i["b"],i["c"],!1,null,"bbfb0de6",null,!1,i["a"],u);n["default"]=c.exports},"10a4":function(t,n,e){"use strict";var i=e("b96c"),o=e.n(i);o.a},7851:function(t,n,e){"use strict";var i;e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return s})),e.d(n,"a",(function(){return i}));var o=function(){var t=this,n=t.$createElement;t._self._c},s=[]},"949b":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=e("3474"),o=e("7fe6"),s=e("c6cd"),u=e("26cb"),a=(c(e("52ec")),c(e("c83f")));function c(t){return t&&t.__esModule?t:{default:t}}var r=function(){e.e("components/Authorize").then(function(){return resolve(e("420f"))}.bind(null,e)).catch(e.oe)},f={components:{authorize:r},mixins:[a.default],data:function(){return{userInfo:{},loginType:"h5",userIndex:0,switchUserInfo:[],isAuto:!1,isShowAuth:!1,canvasWidth:"",canvasHeight:"",canvasStatus:!1}},computed:(0,u.mapGetters)(["isLogin"]),watch:{isLogin:{handler:function(t,n){t&&this.getUserInfo()},deep:!0}},onLoad:function(){this.isLogin?this.getUserInfo():(0,s.toLogin)()},methods:{onLoadFun:function(){this.getUserInfo()},authColse:function(t){this.isShowAuth=t},Setting:function(){t.openSetting({success:function(t){}})},switchAccounts:function(n){var e=this,i=this.switchUserInfo[n],u=this;return u.userIndex=n,u.switchUserInfo.length<=1||(void 0===i?u.$util.Tips({title:"切换的账号不存在"}):void("h5"===i.user_type?(t.showLoading({title:"正在切换中"}),(0,o.switchH5Login)().then((function(n){t.hideLoading(),u.$store.commit("LOGIN",{token:n.data.token,time:e.$Cache.strTotime(n.data.expires_time)-e.$Cache.time()}),u.getUserInfo()})).catch((function(n){return t.hideLoading(),u.$util.Tips({title:n})}))):(u.$store.commit("LOGOUT"),t.showLoading({title:"正在切换中"}),(0,s.toLogin)())))},outLogin:function(){var n=this;"h5"==n.loginType&&t.showModal({title:"提示",content:"确认退出登录?",success:function(e){e.confirm?(0,i.getLogout)().then((function(e){n.$store.commit("LOGOUT"),t.reLaunch({url:"/pages/index/index"})})).catch((function(t){})):e.cancel}})},getUserInfo:function(){var t=this;(0,i.getUserInfo)().then((function(n){t.$set(t,"userInfo",n.data);for(var e=n.data.switchUserInfo||[],i=0;i<e.length;i++)e[i].uid==t.userInfo.uid&&(t.userIndex=i);t.$set(t,"switchUserInfo",e)}))},uploadpic:function(){var t=this,n=this;this.canvasStatus=!0,n.$util.uploadImageChange("upload/image",(function(e){var i=n.switchUserInfo[n.userIndex];void 0!==i&&(n.userInfo.avatar=e.data.url),n.switchUserInfo[n.userIndex]=i,n.$set(n,"switchUserInfo",n.switchUserInfo),t.canvasStatus=!1}),(function(n){t.canvasStatus=!1}),(function(n){t.canvasWidth=n.w,t.canvasHeight=n.h}))},formSubmit:function(t){var n=this,e=t.detail.value;n.switchUserInfo[n.userIndex];if(!e.nickname.trim())return n.$util.Tips({title:"用户姓名不能为空"});e.avatar=this.userInfo.avatar,(0,i.userEdit)(e).then((function(t){return n.$util.Tips({title:t.msg,icon:"success"},{tab:3,url:1})})).catch((function(t){return n.$util.Tips({title:t||"保存失败,您并没有修改"},{tab:3,url:1})}))}}};n.default=f}).call(this,e("543d")["default"])},a037:function(t,n,e){"use strict";(function(t){e("6e38");i(e("66fd"));var n=i(e("073c"));function i(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("543d")["createPage"])},a348:function(t,n,e){"use strict";e.r(n);var i=e("949b"),o=e.n(i);for(var s in i)"default"!==s&&function(t){e.d(n,t,(function(){return i[t]}))}(s);n["default"]=o.a},b96c:function(t,n,e){}},[["a037","common/runtime","common/vendor"]]]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/user_info/index"],{"073c":function(t,n,e){"use strict";e.r(n);var i=e("1705"),o=e("a348");for(var s in o)"default"!==s&&function(t){e.d(n,t,(function(){return o[t]}))}(s);e("9b91");var a,u=e("f0c5"),c=Object(u["a"])(o["default"],i["b"],i["c"],!1,null,"1c08f607",null,!1,i["a"],a);n["default"]=c.exports},1705:function(t,n,e){"use strict";var i;e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return s})),e.d(n,"a",(function(){return i}));var o=function(){var t=this,n=t.$createElement;t._self._c},s=[]},"949b":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=e("3474"),o=e("7fe6"),s=e("c6cd"),a=e("26cb"),u=(c(e("52ec")),c(e("c83f")));function c(t){return t&&t.__esModule?t:{default:t}}var r=function(){e.e("components/Authorize").then(function(){return resolve(e("420f"))}.bind(null,e)).catch(e.oe)},f={components:{authorize:r},mixins:[u.default],data:function(){return{userInfo:{},loginType:"h5",userIndex:0,switchUserInfo:[],isAuto:!1,isShowAuth:!1,canvasWidth:"",canvasHeight:"",canvasStatus:!1,fileSizeString:""}},computed:(0,a.mapGetters)(["isLogin"]),watch:{isLogin:{handler:function(t,n){t&&this.getUserInfo()},deep:!0}},onLoad:function(){this.isLogin?(this.getUserInfo(),this.formatSize()):(0,s.toLogin)()},methods:{formatSize:function(){var t=this;plus.cache.calculate((function(n){var e=parseInt(n);t.fileSizeString=0==e?"0B":e<1024?e+"B":e<1048576?(e/1024).toFixed(2)+"KB":e<1073741824?(e/1048576).toFixed(2)+"MB":(e/1073741824).toFixed(2)+"GB"}))},initData:function(){var n=this;t.showModal({title:"清楚缓存",content:"确定清楚本地缓存数据吗?",success:function(t){if(t.confirm)n.clearCache(),n.formatSize();else if(t.cancel)return that.$util.Tips({title:"已取消"})}})},clearCache:function(){var n=this,e=plus.os.name;if("Android"==e)for(var i=plus.android.runtimeMainActivity(),o=i.getCacheDir(),s=plus.android.invoke(o,"listFiles"),a=s.length,u=0;u<a;u++){var c=""+s[u];plus.io.resolveLocalFileSystemURL(c,(function(e){e.isDirectory?e.removeRecursively((function(e){t.showToast({title:"缓存清理完成",duration:2e3}),n.formatSize()}),(function(t){})):e.remove()}),(function(t){}))}else plus.cache.clear((function(){t.showToast({title:"缓存清理完成",duration:2e3}),n.formatSize()}))},onLoadFun:function(){this.getUserInfo()},authColse:function(t){this.isShowAuth=t},Setting:function(){t.openSetting({success:function(t){}})},switchAccounts:function(n){var e=this,i=this.switchUserInfo[n],a=this;return a.userIndex=n,a.switchUserInfo.length<=1||(void 0===i?a.$util.Tips({title:"切换的账号不存在"}):void("h5"===i.user_type?(t.showLoading({title:"正在切换中"}),(0,o.switchH5Login)().then((function(n){t.hideLoading(),a.$store.commit("LOGIN",{token:n.data.token,time:e.$Cache.strTotime(n.data.expires_time)-e.$Cache.time()}),a.getUserInfo()})).catch((function(n){return t.hideLoading(),a.$util.Tips({title:n})}))):(a.$store.commit("LOGOUT"),t.showLoading({title:"正在切换中"}),(0,s.toLogin)())))},outLogin:function(){var n=this;"h5"==n.loginType&&t.showModal({title:"提示",content:"确认退出登录?",success:function(e){e.confirm?(0,i.getLogout)().then((function(e){n.$store.commit("LOGOUT"),t.reLaunch({url:"/pages/index/index"})})).catch((function(t){})):e.cancel}})},getUserInfo:function(){var t=this;(0,i.getUserInfo)().then((function(n){t.$set(t,"userInfo",n.data);for(var e=n.data.switchUserInfo||[],i=0;i<e.length;i++)e[i].uid==t.userInfo.uid&&(t.userIndex=i);t.$set(t,"switchUserInfo",e)}))},uploadpic:function(){var t=this,n=this;this.canvasStatus=!0,n.$util.uploadImageChange("upload/image",(function(e){var i=n.switchUserInfo[n.userIndex];void 0!==i&&(n.userInfo.avatar=e.data.url),n.switchUserInfo[n.userIndex]=i,n.$set(n,"switchUserInfo",n.switchUserInfo),t.canvasStatus=!1}),(function(n){t.canvasStatus=!1}),(function(n){t.canvasWidth=n.w,t.canvasHeight=n.h}))},formSubmit:function(t){var n=this,e=t.detail.value;n.switchUserInfo[n.userIndex];if(!e.nickname.trim())return n.$util.Tips({title:"用户姓名不能为空"});e.avatar=this.userInfo.avatar,(0,i.userEdit)(e).then((function(t){return n.$util.Tips({title:t.msg,icon:"success"},{tab:3,url:1})})).catch((function(t){return n.$util.Tips({title:t||"保存失败,您并没有修改"},{tab:3,url:1})}))}}};n.default=f}).call(this,e("543d")["default"])},"9b08":function(t,n,e){},"9b91":function(t,n,e){"use strict";var i=e("9b08"),o=e.n(i);o.a},a037:function(t,n,e){"use strict";(function(t){e("6e38");i(e("66fd"));var n=i(e("073c"));function i(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("543d")["createPage"])},a348:function(t,n,e){"use strict";e.r(n);var i=e("949b"),o=e.n(i);for(var s in i)"default"!==s&&function(t){e.d(n,t,(function(){return i[t]}))}(s);n["default"]=o.a}},[["a037","common/runtime","common/vendor"]]]);
|
||||
@ -1 +1 @@
|
||||
<view class="data-v-bbfb0de6"><form data-event-opts="{{[['submit',[['formSubmit',['$event']]]]]}}" bindsubmit="__e" class="data-v-bbfb0de6"><view class="personal-data data-v-bbfb0de6" style="{{(colorStyle)}}"><view class="list data-v-bbfb0de6"><view class="item acea-row row-between-wrapper data-v-bbfb0de6"><view class="data-v-bbfb0de6">头像</view><view data-event-opts="{{[['tap',[['uploadpic',['$event']]]]]}}" class="avatar-box data-v-bbfb0de6" catchtap="__e"><image src="{{userInfo.avatar}}" class="data-v-bbfb0de6"></image></view></view><view class="item acea-row row-between-wrapper data-v-bbfb0de6"><view class="data-v-bbfb0de6">昵称</view><view class="input data-v-bbfb0de6"><input type="text" name="nickname" value="{{userInfo.nickname}}" class="data-v-bbfb0de6"/></view></view><view class="item acea-row row-between-wrapper data-v-bbfb0de6"><view class="data-v-bbfb0de6">手机号码</view><block wx:if="{{!userInfo.phone}}"><navigator class="input data-v-bbfb0de6" url="/pages/users/user_phone/index" hover-class="none">点击绑定手机号<text class="iconfont icon-xiangyou data-v-bbfb0de6"></text></navigator></block><block wx:else><view class="input acea-row row-between-wrapper data-v-bbfb0de6"><input class="id data-v-bbfb0de6" type="text" disabled="true" name="phone" value="{{userInfo.phone}}"/><text class="iconfont icon-suozi data-v-bbfb0de6"></text></view></block></view><view class="item acea-row row-between-wrapper data-v-bbfb0de6"><view class="data-v-bbfb0de6">ID号</view><view class="input acea-row row-between-wrapper data-v-bbfb0de6"><input class="id data-v-bbfb0de6" type="text" disabled="true" value="{{userInfo.uid}}"/><text class="iconfont icon-suozi data-v-bbfb0de6"></text></view></view><view class="item acea-row row-between-wrapper data-v-bbfb0de6"><view class="data-v-bbfb0de6">权限设置</view><view data-event-opts="{{[['tap',[['Setting',['$event']]]]]}}" class="input data-v-bbfb0de6" bindtap="__e">点击管理<text class="iconfont icon-xiangyou data-v-bbfb0de6"></text></view></view><block wx:if="{{userInfo.phone}}"><view class="item acea-row row-between-wrapper data-v-bbfb0de6"><view class="data-v-bbfb0de6">更换手机号码</view><navigator class="input data-v-bbfb0de6" url="/pages/users/user_phone/index?type=1" hover-class="none">点击更换手机号码<text class="iconfont icon-xiangyou data-v-bbfb0de6"></text></navigator></view></block></view><button class="modifyBnt bg-color data-v-bbfb0de6" formType="submit">保存修改</button></view></form><block wx:if="{{canvasStatus}}"><canvas style="{{'width:'+(canvasWidth+'px')+';'+('height:'+(canvasHeight+'px')+';')+('position:'+('absolute')+';')+('left:'+('-100000px')+';')+('top:'+('-100000px')+';')}}" canvas-id="canvas" class="data-v-bbfb0de6"></canvas></block></view>
|
||||
<view class="data-v-1c08f607"><form data-event-opts="{{[['submit',[['formSubmit',['$event']]]]]}}" bindsubmit="__e" class="data-v-1c08f607"><view class="personal-data data-v-1c08f607" style="{{(colorStyle)}}"><view class="list data-v-1c08f607"><view class="item acea-row row-between-wrapper data-v-1c08f607"><view class="data-v-1c08f607">头像</view><view data-event-opts="{{[['tap',[['uploadpic',['$event']]]]]}}" class="avatar-box data-v-1c08f607" catchtap="__e"><image src="{{userInfo.avatar}}" class="data-v-1c08f607"></image></view></view><view class="item acea-row row-between-wrapper data-v-1c08f607"><view class="data-v-1c08f607">昵称</view><view class="input data-v-1c08f607"><input type="text" name="nickname" value="{{userInfo.nickname}}" class="data-v-1c08f607"/></view></view><view class="item acea-row row-between-wrapper data-v-1c08f607"><view class="data-v-1c08f607">手机号码</view><block wx:if="{{!userInfo.phone}}"><navigator class="input data-v-1c08f607" url="/pages/users/user_phone/index" hover-class="none">点击绑定手机号<text class="iconfont icon-xiangyou data-v-1c08f607"></text></navigator></block><block wx:else><view class="input acea-row row-between-wrapper data-v-1c08f607"><input class="id data-v-1c08f607" type="text" disabled="true" name="phone" value="{{userInfo.phone}}"/><text class="iconfont icon-suozi data-v-1c08f607"></text></view></block></view><view class="item acea-row row-between-wrapper data-v-1c08f607"><view class="data-v-1c08f607">ID号</view><view class="input acea-row row-between-wrapper data-v-1c08f607"><input class="id data-v-1c08f607" type="text" disabled="true" value="{{userInfo.uid}}"/><text class="iconfont icon-suozi data-v-1c08f607"></text></view></view><view class="item acea-row row-between-wrapper data-v-1c08f607"><view class="data-v-1c08f607">权限设置</view><view data-event-opts="{{[['tap',[['Setting',['$event']]]]]}}" class="input data-v-1c08f607" bindtap="__e">点击管理<text class="iconfont icon-xiangyou data-v-1c08f607"></text></view></view><block wx:if="{{userInfo.phone}}"><view class="item acea-row row-between-wrapper data-v-1c08f607"><view class="data-v-1c08f607">更换手机号码</view><navigator class="input data-v-1c08f607" url="/pages/users/user_phone/index?type=1" hover-class="none">点击更换手机号码<text class="iconfont icon-xiangyou data-v-1c08f607"></text></navigator></view></block></view><button class="modifyBnt bg-color data-v-1c08f607" formType="submit">保存修改</button></view></form><block wx:if="{{canvasStatus}}"><canvas style="{{'width:'+(canvasWidth+'px')+';'+('height:'+(canvasHeight+'px')+';')+('position:'+('absolute')+';')+('left:'+('-100000px')+';')+('top:'+('-100000px')+';')}}" canvas-id="canvas" class="data-v-1c08f607"></canvas></block></view>
|
||||
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/user_integral/index"],{"11fc":function(t,n,e){"use strict";var i;e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){return i}));var a=function(){var t=this,n=t.$createElement,e=(t._self._c,t.isTime?t._f("dateFormat")(t.userInfo.clear_time):null);t.$mp.data=Object.assign({},{$root:{f0:e}})},o=[]},"322d":function(t,n,e){"use strict";(function(t){e("6e38");i(e("66fd"));var n=i(e("56e4"));function i(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("543d")["createPage"])},"56e4":function(t,n,e){"use strict";e.r(n);var i=e("11fc"),a=e("a917");for(var o in a)"default"!==o&&function(t){e.d(n,t,(function(){return a[t]}))}(o);e("a781");var r,u=e("f0c5"),s=Object(u["a"])(a["default"],i["b"],i["c"],!1,null,"1408f929",null,!1,i["a"],r);n["default"]=s.exports},5935:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=e("3474"),a=s(e("52ec")),o=e("c6cd"),r=e("26cb"),u=s(e("c83f"));function s(t){return t&&t.__esModule?t:{default:t}}var c=function(){e.e("components/Authorize").then(function(){return resolve(e("420f"))}.bind(null,e)).catch(e.oe)},l=function(){e.e("components/emptyPage").then(function(){return resolve(e("e972"))}.bind(null,e)).catch(e.oe)},f={components:{authorize:c,emptyPage:l},filters:{dateFormat:function(t){return(0,a.default)(1e3*t).format("YYYY-MM-DD")}},mixins:[u.default],data:function(){return{navList:[{name:"分值明细",icon:"icon-mingxi"},{name:"分值提升",icon:"icon-tishengfenzhi"}],current:0,page:1,limit:10,integralList:[],userInfo:{},loadend:!1,loading:!1,loadTitle:"加载更多",isAuto:!1,isShowAuth:!1,isTime:0}},computed:(0,r.mapGetters)(["isLogin"]),watch:{isLogin:{handler:function(t,n){t&&(this.getUserInfo(),this.getIntegralList())},deep:!0}},onLoad:function(){this.isLogin?(this.getUserInfo(),this.getIntegralList()):(0,o.toLogin)()},onReachBottom:function(){this.getIntegralList()},methods:{onLoadFun:function(){this.getUserInfo(),this.getIntegralList()},authColse:function(t){this.isShowAuth=t},getUserInfo:function(){var t=this;(0,i.postSignUser)({sign:1,integral:1,all:1}).then((function(n){t.$set(t,"userInfo",n.data);var e=n.data.clear_time,i=e-1209600,a=Date.parse(new Date)/1e3;t.isTime=i<a?1:0}))},getIntegralList:function(){var t=this;t.loading||t.loadend||(t.loading=!0,t.loadTitle="",(0,i.getIntegralList)({page:t.page,limit:t.limit}).then((function(n){var e=n.data,i=e.length<t.limit;t.integralList=t.$util.SplitArray(e,t.integralList),t.$set(t,"integralList",t.integralList),t.page=t.page+1,t.loading=!1,t.loadend=i,t.loadTitle=i?"哼~😕我也是有底线的~":"加载更多"}),(function(n){this.loading=!1,t.loadTitle="加载更多"})))},nav:function(t){this.current=t}}};n.default=f},a781:function(t,n,e){"use strict";var i=e("ab29"),a=e.n(i);a.a},a917:function(t,n,e){"use strict";e.r(n);var i=e("5935"),a=e.n(i);for(var o in i)"default"!==o&&function(t){e.d(n,t,(function(){return i[t]}))}(o);n["default"]=a.a},ab29:function(t,n,e){}},[["322d","common/runtime","common/vendor"]]]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/user_integral/index"],{"11fc":function(t,n,e){"use strict";var i;e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){return i}));var a=function(){var t=this,n=t.$createElement,e=(t._self._c,t.isTime?t._f("dateFormat")(t.userInfo.clear_time):null);t.$mp.data=Object.assign({},{$root:{f0:e}})},o=[]},"322d":function(t,n,e){"use strict";(function(t){e("6e38");i(e("66fd"));var n=i(e("56e4a"));function i(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("543d")["createPage"])},"56e4a":function(t,n,e){"use strict";e.r(n);var i=e("11fc"),a=e("a917");for(var o in a)"default"!==o&&function(t){e.d(n,t,(function(){return a[t]}))}(o);e("a781");var r,u=e("f0c5"),s=Object(u["a"])(a["default"],i["b"],i["c"],!1,null,"1408f929",null,!1,i["a"],r);n["default"]=s.exports},5935:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=e("3474"),a=s(e("52ec")),o=e("c6cd"),r=e("26cb"),u=s(e("c83f"));function s(t){return t&&t.__esModule?t:{default:t}}var c=function(){e.e("components/Authorize").then(function(){return resolve(e("420f"))}.bind(null,e)).catch(e.oe)},l=function(){e.e("components/emptyPage").then(function(){return resolve(e("e972"))}.bind(null,e)).catch(e.oe)},f={components:{authorize:c,emptyPage:l},filters:{dateFormat:function(t){return(0,a.default)(1e3*t).format("YYYY-MM-DD")}},mixins:[u.default],data:function(){return{navList:[{name:"分值明细",icon:"icon-mingxi"},{name:"分值提升",icon:"icon-tishengfenzhi"}],current:0,page:1,limit:10,integralList:[],userInfo:{},loadend:!1,loading:!1,loadTitle:"加载更多",isAuto:!1,isShowAuth:!1,isTime:0}},computed:(0,r.mapGetters)(["isLogin"]),watch:{isLogin:{handler:function(t,n){t&&(this.getUserInfo(),this.getIntegralList())},deep:!0}},onLoad:function(){this.isLogin?(this.getUserInfo(),this.getIntegralList()):(0,o.toLogin)()},onReachBottom:function(){this.getIntegralList()},methods:{onLoadFun:function(){this.getUserInfo(),this.getIntegralList()},authColse:function(t){this.isShowAuth=t},getUserInfo:function(){var t=this;(0,i.postSignUser)({sign:1,integral:1,all:1}).then((function(n){t.$set(t,"userInfo",n.data);var e=n.data.clear_time,i=e-1209600,a=Date.parse(new Date)/1e3;t.isTime=i<a?1:0}))},getIntegralList:function(){var t=this;t.loading||t.loadend||(t.loading=!0,t.loadTitle="",(0,i.getIntegralList)({page:t.page,limit:t.limit}).then((function(n){var e=n.data,i=e.length<t.limit;t.integralList=t.$util.SplitArray(e,t.integralList),t.$set(t,"integralList",t.integralList),t.page=t.page+1,t.loading=!1,t.loadend=i,t.loadTitle=i?"哼~😕我也是有底线的~":"加载更多"}),(function(n){this.loading=!1,t.loadTitle="加载更多"})))},nav:function(t){this.current=t}}};n.default=f},a781:function(t,n,e){"use strict";var i=e("ab29"),a=e.n(i);a.a},a917:function(t,n,e){"use strict";e.r(n);var i=e("5935"),a=e.n(i);for(var o in i)"default"!==o&&function(t){e.d(n,t,(function(){return i[t]}))}(o);n["default"]=a.a},ab29:function(t,n,e){}},[["322d","common/runtime","common/vendor"]]]);
|
||||
@ -11,3 +11,14 @@
|
||||
|
||||
import request from "@/utils/request.js";
|
||||
|
||||
/**
|
||||
* 订单核销
|
||||
* @returns {*}
|
||||
*/
|
||||
export function orderVerific(verify_code, is_confirm) {
|
||||
return request.post("order/order_verific", {
|
||||
verify_code,
|
||||
is_confirm
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@ -298,7 +298,7 @@ export function getCity() {
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取小程序直播列表
|
||||
* 获取小程序列表
|
||||
*/
|
||||
export function getLiveList(page, limit) {
|
||||
return request.get('wechat/live', {
|
||||
|
||||
@ -66,6 +66,7 @@
|
||||
},
|
||||
shareFriend(){
|
||||
this.$emit('shareFriend')
|
||||
this.showBox = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -6,12 +6,10 @@
|
||||
<view class="swiper-item-img">
|
||||
<image :src="item" mode="aspectFit"></image>
|
||||
</view>
|
||||
<!-- <view class="swiper-item-img"><image src="../../static/guide/icon_01.png" mode="aspectFit"></image></view> -->
|
||||
</view>
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
<view class="jump-over" @tap="launchFlag()">跳过 {{time}}</view>
|
||||
<!-- <view class="uniapp-img"><image src="../../static/guide/uniapp4@2x.png" mode="aspectFit"></image></view> -->
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@ -74,6 +72,7 @@
|
||||
height: 100%;
|
||||
background-size: 100% auto;
|
||||
padding: 0;
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
.swiper {
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
"usingComponents" : true,
|
||||
"nvueCompiler" : "uni-app",
|
||||
"splashscreen" : {
|
||||
"alwaysShowBeforeRender" : true,
|
||||
"alwaysShowBeforeRender" : false,
|
||||
"waiting" : false,
|
||||
"autoclose" : true,
|
||||
"delay" : 0
|
||||
|
||||
@ -13,7 +13,8 @@
|
||||
"style": {
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom",
|
||||
"navigationBarTextStyle": "white"
|
||||
"navigationBarTextStyle": "white",
|
||||
"enablePullDownRefresh": true
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -174,7 +175,7 @@
|
||||
{
|
||||
"path": "pages/live_list/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "直播列表"
|
||||
"navigationBarTitleText": "精彩内容"
|
||||
}
|
||||
}
|
||||
],
|
||||
@ -866,6 +867,24 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"root": "pages/admin",
|
||||
"name": "adminOrder",
|
||||
"pages": [{
|
||||
"path": "order_cancellation/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "订单核销",
|
||||
"app-plus": {
|
||||
// #ifdef APP-PLUS
|
||||
"titleNView": {
|
||||
"type": "default"
|
||||
}
|
||||
// #endif
|
||||
}
|
||||
}
|
||||
}]
|
||||
},
|
||||
|
||||
{
|
||||
"root": "pages/goods_details",
|
||||
"name": "goods_details",
|
||||
|
||||
@ -16,7 +16,6 @@
|
||||
<!-- #ifndef APP-PLUS -->
|
||||
<menuIcon :showMenuIcon="showMenuIcon" @open="open"></menuIcon>
|
||||
<!-- #endif -->
|
||||
|
||||
<view class='product-con'>
|
||||
<scroll-view :scroll-top="scrollTop" scroll-y='true' scroll-with-animation="true"
|
||||
:style="'height:'+height+'px;'" @scroll="scroll">
|
||||
@ -413,7 +412,6 @@
|
||||
|
||||
if (options.id) {
|
||||
this.id = options.id
|
||||
this.status = options.status
|
||||
//记录推广人uid
|
||||
if (options.pid) app.globalData.spid = options.pid;
|
||||
// if (options.time) this.datatime = Number(options.time);
|
||||
@ -490,11 +488,9 @@
|
||||
},
|
||||
getSeckillDetail: function() {
|
||||
let that = this;
|
||||
getSeckillDetail(that.id, {
|
||||
// time: that.datatime,
|
||||
status: that.status
|
||||
}).then(res => {
|
||||
getSeckillDetail(that.id, {}).then(res => {
|
||||
this.dataShow = 1;
|
||||
this.status = res.data.storeInfo.status
|
||||
let title = res.data.storeInfo.title;
|
||||
this.storeInfo = res.data.storeInfo;
|
||||
this.datatime = Number(res.data.storeInfo.last_time);
|
||||
|
||||
340
template/uni-app/pages/admin/order_cancellation/index.vue
Normal file
340
template/uni-app/pages/admin/order_cancellation/index.vue
Normal file
File diff suppressed because one or more lines are too long
BIN
template/uni-app/pages/admin/static/scan.gif
Normal file
BIN
template/uni-app/pages/admin/static/scan.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 191 KiB |
@ -21,13 +21,11 @@
|
||||
},
|
||||
onLoad() {
|
||||
this.loadExecution()
|
||||
|
||||
},
|
||||
methods: {
|
||||
loadExecution: function() {
|
||||
loadExecution() {
|
||||
const tagDate = uni.getStorageSync('guideDate') || '',
|
||||
nowDate = new Date().toLocaleDateString();
|
||||
console.log(nowDate)
|
||||
if (tagDate === nowDate) {
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index'
|
||||
@ -35,7 +33,7 @@
|
||||
return
|
||||
}
|
||||
getOpenAdv().then(res => {
|
||||
console.log(nowDate)
|
||||
console.log(res)
|
||||
if (!res.data.length) {
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index'
|
||||
|
||||
@ -8,7 +8,6 @@
|
||||
<text class="title">{{titleInfo[0].val}}</text>
|
||||
<navigator class="more">查看更多<text class="iconfont icon-jiantou"></text></navigator>
|
||||
</view>
|
||||
<!-- 直播 -->
|
||||
<view class="live-wrapper-a">
|
||||
<navigator class="live-item-a" v-for="(item,index) in liveList" :key="index"
|
||||
:url="'plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=' + item.room_id"
|
||||
@ -24,7 +23,7 @@
|
||||
</view>
|
||||
<view class="label bgred" v-if="item.live_status==101">
|
||||
<text class="iconfont icon-zhibozhong"></text>
|
||||
<text>直播中</text>
|
||||
<text>进行中</text>
|
||||
</view>
|
||||
<image :src="item.share_img"></image>
|
||||
</view>
|
||||
@ -65,9 +64,8 @@
|
||||
<text class="title">{{titleInfo[0].val}}</text>
|
||||
<navigator class="more">查看更多<text class="iconfont icon-jiantou"></text></navigator>
|
||||
</view>
|
||||
<!-- 直播 -->
|
||||
<view class="live-wrapper-a">
|
||||
<view class="empty-img">直播间,暂无数据</view>
|
||||
<view class="empty-img">暂无数据</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -80,12 +78,11 @@
|
||||
<view class='title line1'>
|
||||
{{titleInfo[0].val}}
|
||||
</view>
|
||||
<view class='line1 txt-btn'>精彩直播</view>
|
||||
<view class='line1 txt-btn'>精彩内容</view>
|
||||
</view>
|
||||
<navigator hover-class="none" url="/pages/live_list/index" class="more">更多<text
|
||||
class="iconfont icon-jiantou"></text></navigator>
|
||||
</view>
|
||||
<!-- 直播 -->
|
||||
<view class="live-wrapper-a">
|
||||
<navigator class="live-item-a" v-for="(item,index) in liveList" :key="index"
|
||||
:url="'plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=' + item.room_id"
|
||||
@ -101,7 +98,7 @@
|
||||
</view>
|
||||
<view class="label bgred" v-if="item.live_status==101">
|
||||
<text class="iconfont icon-zhibozhong"></text>
|
||||
<text>直播中</text>
|
||||
<text>进行中</text>
|
||||
</view>
|
||||
<image :src="item.share_img"></image>
|
||||
</view>
|
||||
@ -185,7 +182,6 @@
|
||||
},
|
||||
mounted() {},
|
||||
methods: {
|
||||
// 直播
|
||||
getLiveList: function() {
|
||||
getLiveList(1, this.numConfig <= this.limit ? this.numConfig : this.limit)
|
||||
.then(res => {
|
||||
|
||||
@ -259,7 +259,7 @@
|
||||
menus: {}, //导航
|
||||
news: {}, //消息公告
|
||||
activity: {}, //活动魔方
|
||||
alive: {}, //直播
|
||||
alive: {},
|
||||
scrollBox: {}, //快速选择分类
|
||||
titles: {}, //标题
|
||||
goodList: {}, //商品列表(商品列表、首发新品、热门榜单、促销单品、精品推荐)
|
||||
@ -364,9 +364,11 @@
|
||||
// #ifdef H5
|
||||
this.isTop = 0
|
||||
// #endif
|
||||
|
||||
},
|
||||
|
||||
onPullDownRefresh() {
|
||||
this.diyData();
|
||||
this.getIndexData();
|
||||
},
|
||||
// #ifdef MP
|
||||
//发送给朋友
|
||||
onShareAppMessage: function() {
|
||||
@ -561,14 +563,12 @@
|
||||
that.seckill = data.seckill;
|
||||
that.coupon = data.coupon;
|
||||
this.$Cache.set('TAB_BAR', data.tabBar.default.tabBarList)
|
||||
setTimeout(() => {
|
||||
// this.isNodes++;
|
||||
}, 0);
|
||||
setTimeout(() => {
|
||||
this.showSkeleton = false
|
||||
}, 2000)
|
||||
|
||||
|
||||
}, 1500)
|
||||
uni.stopPullDownRefresh({
|
||||
success: (e) => {}
|
||||
});
|
||||
});
|
||||
},
|
||||
getIndexData() {
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
<template>
|
||||
<!-- #ifdef MP -->
|
||||
<view v-if="liveList.length > 0">
|
||||
<!-- 直播 -->
|
||||
<view class="live-wrapper-b">
|
||||
<navigator class="live-item-b" v-for="(item,index) in liveList" :key="index" :url="'plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=' + item.room_id" hover-class="none" :style="[{'background':bg},{'box-shadow':`0px 1px 20px ${boxShadow}`}]">
|
||||
<view class="img-box">
|
||||
@ -15,7 +14,7 @@
|
||||
</view>
|
||||
<view class="label bgred" v-if="item.live_status==101">
|
||||
<image src="/static/images/live-01.png" mode="" style="width: 21rpx; height: 22rpx;"></image>
|
||||
<text>直播中</text>
|
||||
<text>进行中</text>
|
||||
</view>
|
||||
<image :src="item.share_img"></image>
|
||||
</view>
|
||||
@ -59,7 +58,6 @@
|
||||
this.getLiveList();
|
||||
},
|
||||
methods: {
|
||||
// 直播
|
||||
getLiveList: function() {
|
||||
let limit = this.$config.LIMIT;
|
||||
if(!this.isScroll) return
|
||||
|
||||
@ -265,10 +265,10 @@
|
||||
// if (this.prevent) return
|
||||
// this.prevent = true
|
||||
if (that.currentTab == 0) { //银行卡
|
||||
if (value.name.length == 0) return this.$util.Tips({
|
||||
if (!value.name.trim()) return this.$util.Tips({
|
||||
title: '请填写持卡人姓名'
|
||||
});
|
||||
if (value.cardnum.length == 0) return this.$util.Tips({
|
||||
if (!value.cardnum.trim()) return this.$util.Tips({
|
||||
title: '请填写卡号'
|
||||
});
|
||||
if (that.index == 0) return this.$util.Tips({
|
||||
@ -278,7 +278,7 @@
|
||||
value.bankname = that.array[that.index];
|
||||
} else if (that.currentTab == 1) { //微信
|
||||
value.extract_type = 'weixin';
|
||||
if (value.name.length == 0) return this.$util.Tips({
|
||||
if (!value.name.trim()) return this.$util.Tips({
|
||||
title: '请填写微信号'
|
||||
});
|
||||
value.weixin = value.name;
|
||||
@ -291,7 +291,7 @@
|
||||
value.alipay_code = value.name;
|
||||
value.qrcode_url = that.qrcodeUrlZ;
|
||||
}
|
||||
if (value.money.length == 0) return this.$util.Tips({
|
||||
if (!value.money.trim()) return this.$util.Tips({
|
||||
title: '请填写提现金额'
|
||||
});
|
||||
if (Number(value.money) < Number(that.minPrice)) return this.$util.Tips({
|
||||
|
||||
@ -40,11 +40,13 @@
|
||||
</view>
|
||||
<view class='item acea-row row-between-wrapper'>
|
||||
<view>昵称</view>
|
||||
<view class='input'><input type='text' name='nickname' :value='userInfo.nickname'></input></view>
|
||||
<view class='input'><input type='text' name='nickname' :value='userInfo.nickname'></input>
|
||||
</view>
|
||||
</view>
|
||||
<view class='item acea-row row-between-wrapper'>
|
||||
<view>手机号码</view>
|
||||
<navigator url="/pages/users/user_phone/index" hover-class="none" class="input" v-if="!userInfo.phone">
|
||||
<navigator url="/pages/users/user_phone/index" hover-class="none" class="input"
|
||||
v-if="!userInfo.phone">
|
||||
点击绑定手机号<text class="iconfont icon-xiangyou"></text>
|
||||
</navigator>
|
||||
<view class='input acea-row row-between-wrapper' v-else>
|
||||
@ -75,7 +77,12 @@
|
||||
</navigator>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
|
||||
<view class="item acea-row row-between-wrapper" v-if="userInfo.phone">
|
||||
<view>更换手机号码</view>
|
||||
<navigator url="/pages/users/user_phone/index?type=1" hover-class="none" class="input">
|
||||
点击更换手机号码<text class="iconfont icon-xiangyou"></text>
|
||||
</navigator>
|
||||
</view>
|
||||
<!-- #ifdef APP-PLUS -->
|
||||
<view class="item acea-row row-between-wrapper" v-if="userInfo.phone">
|
||||
<view>密码</view>
|
||||
@ -83,18 +90,21 @@
|
||||
点击修改密码<text class="iconfont icon-xiangyou"></text>
|
||||
</navigator>
|
||||
</view>
|
||||
<view class="item acea-row row-between-wrapper" @click="initData">
|
||||
<view>缓存大小</view>
|
||||
<view class="input">
|
||||
{{fileSizeString}}<text class="iconfont icon-xiangyou"></text>
|
||||
</view>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
|
||||
<view class="item acea-row row-between-wrapper" v-if="userInfo.phone">
|
||||
<view>更换手机号码</view>
|
||||
<navigator url="/pages/users/user_phone/index?type=1" hover-class="none" class="input">
|
||||
点击更换手机号码<text class="iconfont icon-xiangyou"></text>
|
||||
</navigator>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
<button class='modifyBnt bg-color' formType="submit">保存修改</button>
|
||||
<!-- #ifdef H5 -->
|
||||
<view class="logOut cartcolor acea-row row-center-wrapper" @click="outLogin" v-if="!this.$wechat.isWeixin()">退出登录</view>
|
||||
<view class="logOut cartcolor acea-row row-center-wrapper" @click="outLogin"
|
||||
v-if="!this.$wechat.isWeixin()">退出登录</view>
|
||||
<!-- #endif -->
|
||||
<!-- #ifdef APP-PLUS -->
|
||||
<view class="logOut cartcolor acea-row row-center-wrapper" @click="outLogin">退出登录</view>
|
||||
@ -104,7 +114,8 @@
|
||||
<!-- #ifdef MP -->
|
||||
<!-- <authorize @onLoadFun="onLoadFun" :isAuto="isAuto" :isShowAuth="isShowAuth" @authColse="authColse"></authorize> -->
|
||||
<!-- #endif -->
|
||||
<canvas canvas-id="canvas" v-if="canvasStatus" :style="{width: canvasWidth + 'px', height: canvasHeight + 'px',position: 'absolute',left:'-100000px',top:'-100000px'}"></canvas>
|
||||
<canvas canvas-id="canvas" v-if="canvasStatus"
|
||||
:style="{width: canvasWidth + 'px', height: canvasHeight + 'px',position: 'absolute',left:'-100000px',top:'-100000px'}"></canvas>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@ -134,7 +145,7 @@
|
||||
authorize
|
||||
// #endif
|
||||
},
|
||||
mixins:[colors],
|
||||
mixins: [colors],
|
||||
data() {
|
||||
return {
|
||||
userInfo: {},
|
||||
@ -145,7 +156,8 @@
|
||||
isShowAuth: false, //是否隐藏授权
|
||||
canvasWidth: "",
|
||||
canvasHeight: "",
|
||||
canvasStatus: false
|
||||
canvasStatus: false,
|
||||
fileSizeString: ''
|
||||
};
|
||||
},
|
||||
computed: mapGetters(['isLogin']),
|
||||
@ -162,11 +174,84 @@
|
||||
onLoad() {
|
||||
if (this.isLogin) {
|
||||
this.getUserInfo();
|
||||
this.formatSize()
|
||||
} else {
|
||||
toLogin();
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
formatSize() {
|
||||
let that = this;
|
||||
plus.cache.calculate(function(size) {
|
||||
let sizeCache = parseInt(size);
|
||||
if (sizeCache == 0) {
|
||||
that.fileSizeString = "0B";
|
||||
} else if (sizeCache < 1024) {
|
||||
that.fileSizeString = sizeCache + "B";
|
||||
} else if (sizeCache < 1048576) {
|
||||
that.fileSizeString = (sizeCache / 1024).toFixed(2) + "KB";
|
||||
} else if (sizeCache < 1073741824) {
|
||||
that.fileSizeString = (sizeCache / 1048576).toFixed(2) + "MB";
|
||||
} else {
|
||||
that.fileSizeString = (sizeCache / 1073741824).toFixed(2) + "GB";
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
initData() {
|
||||
uni.showModal({
|
||||
title: '清楚缓存',
|
||||
content: '确定清楚本地缓存数据吗?',
|
||||
success: (res)=> {
|
||||
if (res.confirm) {
|
||||
this.clearCache()
|
||||
this.formatSize()
|
||||
} else if (res.cancel) {
|
||||
return that.$util.Tips({
|
||||
title: '已取消'
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
clearCache() {
|
||||
let that = this;
|
||||
let os = plus.os.name;
|
||||
if (os == 'Android') {
|
||||
let main = plus.android.runtimeMainActivity();
|
||||
let sdRoot = main.getCacheDir();
|
||||
let files = plus.android.invoke(sdRoot, "listFiles");
|
||||
let len = files.length;
|
||||
for (let i = 0; i < len; i++) {
|
||||
let filePath = '' + files[i]; // 没有找到合适的方法获取路径,这样写可以转成文件路径
|
||||
plus.io.resolveLocalFileSystemURL(filePath, function(entry) {
|
||||
if (entry.isDirectory) {
|
||||
entry.removeRecursively(function(entry) { //递归删除其下的所有文件及子目录
|
||||
uni.showToast({
|
||||
title: '缓存清理完成',
|
||||
duration: 2000
|
||||
});
|
||||
that.formatSize(); // 重新计算缓存
|
||||
}, function(e) {
|
||||
console.log(e.message)
|
||||
});
|
||||
} else {
|
||||
entry.remove();
|
||||
}
|
||||
}, function(e) {
|
||||
console.log('文件路径读取失败')
|
||||
});
|
||||
}
|
||||
} else { // ios暂时未找到清理缓存的方法,以下是官方提供的方法,但是无效,会报错
|
||||
plus.cache.clear(function() {
|
||||
uni.showToast({
|
||||
title: '缓存清理完成',
|
||||
duration: 2000
|
||||
});
|
||||
that.formatSize();
|
||||
});
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 授权回调
|
||||
*/
|
||||
@ -182,8 +267,7 @@
|
||||
*/
|
||||
Setting: function() {
|
||||
uni.openSetting({
|
||||
success: function(res) {
|
||||
}
|
||||
success: function(res) {}
|
||||
});
|
||||
},
|
||||
switchAccounts: function(index) {
|
||||
@ -239,8 +323,7 @@
|
||||
url: '/pages/index/index'
|
||||
})
|
||||
})
|
||||
.catch(err => {
|
||||
});
|
||||
.catch(err => {});
|
||||
} else if (res.cancel) {
|
||||
console.log('用户点击取消');
|
||||
}
|
||||
@ -301,7 +384,7 @@
|
||||
let that = this,
|
||||
value = e.detail.value,
|
||||
userInfo = that.switchUserInfo[that.userIndex];
|
||||
if (!value.nickname) return that.$util.Tips({
|
||||
if (!value.nickname.trim()) return that.$util.Tips({
|
||||
title: '用户姓名不能为空'
|
||||
});
|
||||
value.avatar = this.userInfo.avatar;
|
||||
@ -327,10 +410,11 @@
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.cartcolor{
|
||||
.cartcolor {
|
||||
color: var(--view-theme);
|
||||
border: 1px solid var(--view-theme) ;
|
||||
border: 1px solid var(--view-theme);
|
||||
}
|
||||
|
||||
.personal-data .wrapper {
|
||||
margin: 10rpx 0;
|
||||
background-color: #fff;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user