diff --git a/App.vue b/App.vue index fbfac59..1dc525f 100644 --- a/App.vue +++ b/App.vue @@ -10,7 +10,6 @@ let jyappEvents = uni.requireNativePlugin("JY-FaceBookAppEvents"); if (typeof jyappEvents != "undefined") { } // #endif - export default { data() { return { @@ -37,6 +36,7 @@ export default { } let that = this; + uni.getSystemInfo({ success: function (e) { //console.log(e); //获取到的res的值 @@ -2105,8 +2105,8 @@ form button { position: relative; width: 40rpx; height: 40rpx; - background: url(https://static.lancerdt.com/xcxfile/appicon/pc1.png) center - no-repeat; + background: url(https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/pc1.png) + center no-repeat; background-size: cover; } @@ -2114,8 +2114,8 @@ form button { position: relative; width: 50rpx; height: 50rpx; - background: url(https://static.lancerdt.com/xcxfile/appicon/pc2.png) center - no-repeat; + background: url(https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/pc2.png) + center no-repeat; background-size: cover; } @@ -2129,8 +2129,8 @@ form button { color: #fff; font-size: 24rpx; line-height: 50rpx; - background: url(https://static.lancerdt.com/xcxfile/appicon/pc3.png) center - no-repeat; + background: url(https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/pc3.png) + center no-repeat; background-size: cover; } @@ -2526,7 +2526,7 @@ form button { .m-coupon-box-top { width: 600rpx; height: 200rpx; - background: url(https://static.lancerdt.com/xcxfile/appicon/Coupon_box.png) top no-repeat; + background: url(https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/Coupon_box.png) top no-repeat; background-size: cover; margin-bottom: -80rpx; } @@ -2534,7 +2534,7 @@ form button { .m-coupon-box-bottom { width: 600rpx; height: 280rpx; - background: url(https://static.lancerdt.com/xcxfile/appicon/Coupon_box.png) bottom no-repeat; + background: url(https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/Coupon_box.png) bottom no-repeat; background-size: cover; margin-top: -70rpx; } @@ -2612,7 +2612,7 @@ form button { .m-coupon-box-top { width: 600rpx; height: 220rpx; - background: url(https://static.lancerdt.com/xcxfile/appicon/coupon/redbag_double.png) + background: url(https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/coupon/redbag_double.png) top no-repeat; background-size: cover; } @@ -2620,7 +2620,7 @@ form button { .m-coupon-box-top2 { width: 600rpx; height: 220rpx; - background: url(https://static.lancerdt.com/xcxfile/appicon/coupon/redbag_double2.png) + background: url(https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/coupon/redbag_double2.png) top no-repeat; background-size: cover; } @@ -2628,7 +2628,7 @@ form button { .m-coupon-box-bottom { width: 600rpx; height: 120rpx; - background: url(https://static.lancerdt.com/xcxfile/appicon/coupon/redbag_double.png) + background: url(https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/coupon/redbag_double.png) bottom no-repeat; background-size: cover; } @@ -2636,7 +2636,7 @@ form button { .m-coupon-box-content { width: 600rpx; max-height: 400rpx; - background: url(https://static.lancerdt.com/xcxfile/appicon/coupon/redbag_double.png) + background: url(https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/coupon/redbag_double.png) center no-repeat; background-size: cover; } @@ -2650,7 +2650,7 @@ form button { .m-coupon-box-item { width: 460rpx; height: 170rpx; - background: url(https://static.lancerdt.com/xcxfile/appicon/coupon/coupon_muti.png) + background: url(https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/coupon/coupon_muti.png) no-repeat; margin: 10rpx auto; background-size: contain; diff --git a/activity/coupon/detail.vue b/activity/coupon/detail.vue index aaaf53a..77add38 100644 --- a/activity/coupon/detail.vue +++ b/activity/coupon/detail.vue @@ -1,331 +1,587 @@ \ No newline at end of file diff --git a/chain/chain/favorabledetail.vue b/chain/chain/favorabledetail.vue index 8f75648..5b436c9 100644 --- a/chain/chain/favorabledetail.vue +++ b/chain/chain/favorabledetail.vue @@ -1,367 +1,454 @@ \ No newline at end of file diff --git a/chain/chain/index.vue b/chain/chain/index.vue index a88843c..75d4db0 100644 --- a/chain/chain/index.vue +++ b/chain/chain/index.vue @@ -1,1507 +1,1836 @@ \ No newline at end of file diff --git a/chain/chain/list.vue b/chain/chain/list.vue index f1ff28f..179f9d3 100644 --- a/chain/chain/list.vue +++ b/chain/chain/list.vue @@ -1,485 +1,574 @@ \ No newline at end of file diff --git a/community/community/category.vue b/community/community/category.vue index 3cc72e6..21a27bc 100644 --- a/community/community/category.vue +++ b/community/community/category.vue @@ -1,1763 +1,1944 @@ \ No newline at end of file diff --git a/community/community/detail.vue b/community/community/detail.vue index 6b2ce1d..8092c4e 100644 --- a/community/community/detail.vue +++ b/community/community/detail.vue @@ -1,2494 +1,3067 @@ diff --git a/pagesub/login/login.vue b/pagesub/login/login.vue index 89c5cb4..5d68c4b 100644 --- a/pagesub/login/login.vue +++ b/pagesub/login/login.vue @@ -1,86 +1,112 @@ diff --git a/pagesub/login/reg.vue b/pagesub/login/reg.vue index bcf0f89..5597d2c 100644 --- a/pagesub/login/reg.vue +++ b/pagesub/login/reg.vue @@ -1,305 +1,406 @@ diff --git a/pagesub/login/register.vue b/pagesub/login/register.vue index 06ab95f..b9c65bf 100644 --- a/pagesub/login/register.vue +++ b/pagesub/login/register.vue @@ -1,285 +1,315 @@ diff --git a/pagesub/login/sms.vue b/pagesub/login/sms.vue index 6a444e6..4fa2122 100644 --- a/pagesub/login/sms.vue +++ b/pagesub/login/sms.vue @@ -1,287 +1,293 @@ diff --git a/pagesub/search/search1.vue b/pagesub/search/search1.vue index 964f955..2ef823f 100644 --- a/pagesub/search/search1.vue +++ b/pagesub/search/search1.vue @@ -1,235 +1,392 @@ diff --git a/plant/plant/common/server.js b/plant/plant/common/server.js index 4b10829..e26c4b0 100644 --- a/plant/plant/common/server.js +++ b/plant/plant/common/server.js @@ -1,6 +1,6 @@ var HOST="http://127.0.0.1/project/xyx/"; var API_HOST=HOST+"/api/"; -var CDN_HOST="https://static.lancerdt.com/plant/"; +var CDN_HOST="https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/plant/"; var session_id; diff --git a/plant/plant/common/utils.js b/plant/plant/common/utils.js index eccc7d9..e1cad21 100644 --- a/plant/plant/common/utils.js +++ b/plant/plant/common/utils.js @@ -189,7 +189,7 @@ function play_mp3(url){ } function play_sfx(sfx_name,delay=0){ function do_sfx(){ - var sfx=play_mp3("https://static.lancerdt.com/plant/static/sounds/"+sfx_name+".mp3"); + var sfx=play_mp3("https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/plant/static/sounds/"+sfx_name+".mp3"); sfx.volume=.5; } diff --git a/plant/plant/components/ezguide.vue b/plant/plant/components/ezguide.vue index c41def0..e1c9b8c 100644 --- a/plant/plant/components/ezguide.vue +++ b/plant/plant/components/ezguide.vue @@ -1,134 +1,238 @@ diff --git a/plant/plant/index.vue b/plant/plant/index.vue index 7e42c35..3564ef1 100644 --- a/plant/plant/index.vue +++ b/plant/plant/index.vue @@ -1,53 +1,211 @@ diff --git a/seller/index/index.vue b/seller/index/index.vue index 488372c..baa650f 100644 --- a/seller/index/index.vue +++ b/seller/index/index.vue @@ -1,209 +1,349 @@ @@ -474,122 +647,122 @@ export default { diff --git a/seller/product/sale.vue b/seller/product/sale.vue index 8dc28c1..6f44e5f 100644 --- a/seller/product/sale.vue +++ b/seller/product/sale.vue @@ -1,1332 +1,1360 @@ diff --git a/seller/user/cart.vue b/seller/user/cart.vue index 369dc48..c101e6d 100644 --- a/seller/user/cart.vue +++ b/seller/user/cart.vue @@ -673,7 +673,7 @@ - + {{user.user_account}} diff --git a/static/emoji/emojiData.js b/static/emoji/emojiData.js index 9d1a664..ce540a1 100644 --- a/static/emoji/emojiData.js +++ b/static/emoji/emojiData.js @@ -51,7 +51,7 @@ var emojiData = { { url: '18.gif', alt: '[抓狂]' }, { url: '19.gif', alt: '[吐]' }, - { url: 'https://static.lancerdt.com/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } + { url: 'https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } ], [ @@ -76,7 +76,7 @@ var emojiData = { { url: '38.gif', alt: '[敲打]' }, { url: '39.gif', alt: '[再见]' }, - { url: 'https://static.lancerdt.com/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } + { url: 'https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } ], [ { url: '40.gif', alt: '[擦汗]' }, @@ -100,7 +100,7 @@ var emojiData = { { url: '58.gif', alt: '[篮球]' }, { url: '59.gif', alt: '[乒乓]' }, - { url: 'https://static.lancerdt.com/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } + { url: 'https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } ], [ { url: '60.gif', alt: '[咖啡]' }, @@ -124,7 +124,7 @@ var emojiData = { { url: '78.gif', alt: '[拥抱]' }, { url: '79.gif', alt: '[强]' }, - { url: 'https://static.lancerdt.com/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } + { url: 'https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } ], [ { url: '80.gif', alt: '[弱]' }, @@ -148,7 +148,7 @@ var emojiData = { { url: '98.gif', alt: '[跳绳]' }, { url: '99.gif', alt: '[投降]' }, - { url: 'https://static.lancerdt.com/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } + { url: 'https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } ], [ { url: '100.gif', alt: '[激动]' }, @@ -157,7 +157,7 @@ var emojiData = { { url: '103.gif', alt: '[左太极]' }, { url: '104.gif', alt: '[右太极]' }, - { url: 'https://static.lancerdt.com/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } + { url: 'https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } ] ] }, @@ -166,7 +166,7 @@ var emojiData = { emojiName:"huoxinList", emojiSort:2, minEmoji:true, - emojiPath:"https://static.lancerdt.com/xcxfile/appicon/im/img/huoxin/", + emojiPath:"https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/im/img/huoxin/", emojiList: [ [ { url: 'q_000.png', alt: '[测试1]' }, @@ -190,7 +190,7 @@ var emojiData = { { url: 'q_018.png', alt: '[]' }, { url: 'q_019.png', alt: '[]' }, - { url: 'https://static.lancerdt.com/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } + { url: 'https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } ], [ { url: 'q_020.png', alt: '[]' }, @@ -214,7 +214,7 @@ var emojiData = { { url: 'q_038.png', alt: '[]' }, { url: 'q_039.png', alt: '[]' }, - { url: 'https://static.lancerdt.com/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } + { url: 'https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } ], [ { url: 'q_040.png', alt: '[]' }, @@ -238,7 +238,7 @@ var emojiData = { { url: 'q_058.png', alt: '[]' }, { url: 'q_059.png', alt: '[]' }, - { url: 'https://static.lancerdt.com/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } + { url: 'https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } ], [ { url: 'q_060.png', alt: '[]' }, @@ -262,7 +262,7 @@ var emojiData = { { url: 'q_078.png', alt: '[]' }, { url: 'q_079.png', alt: '[]' }, - { url: 'https://static.lancerdt.com/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } + { url: 'https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } ], [ { url: 'q_080.png', alt: '[]' }, @@ -285,7 +285,7 @@ var emojiData = { { url: 'q_097.png', alt: '[]' }, { url: 'q_098.png', alt: '[]' }, { url: 'q_099.png', alt: '[]' }, - { url: 'https://static.lancerdt.com/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } + { url: 'https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } ], [ { url: 'q_101.png', alt: '[]' }, @@ -308,7 +308,7 @@ var emojiData = { { url: 'q_118.png', alt: '[]' }, { url: 'q_119.png', alt: '[]' }, { url: 'q_120.png', alt: '[]' }, - { url: 'https://static.lancerdt.com/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } + { url: 'https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } ], [ { url: 'q_121.png', alt: '[]' }, @@ -331,7 +331,7 @@ var emojiData = { { url: 'q_138.png', alt: '[]' }, { url: 'q_139.png', alt: '[]' }, { url: 'q_140.png', alt: '[]' }, - { url: 'https://static.lancerdt.com/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } + { url: 'https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } ], [ { url: 'q_141.png', alt: '[]' }, @@ -354,7 +354,7 @@ var emojiData = { { url: 'q_158.png', alt: '[]' }, { url: 'q_159.png', alt: '[]' }, { url: 'q_160.png', alt: '[]' }, - { url: 'https://static.lancerdt.com/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } + { url: 'https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } ], [ { url: 'q_161.png', alt: '[]' }, @@ -367,7 +367,7 @@ var emojiData = { { url: 'q_168.png', alt: '[]' }, { url: 'q_169.png', alt: '[]' }, { url: 'q_170.png', alt: '[]' }, - { url: 'https://static.lancerdt.com/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } + { url: 'https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } ] ] }, @@ -376,7 +376,7 @@ var emojiData = { emojiName:"dingdingList", emojiSort:2, minEmoji:true, - emojiPath:"https://static.lancerdt.com/xcxfile/appicon/im/img/dingding/", + emojiPath:"https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/im/img/dingding/", emojiList: [ [ { url: 'emotion_001.png', alt: '[微笑]' }, @@ -399,7 +399,7 @@ var emojiData = { { url: 'emotion_018.png', alt: '[抱拳]' }, { url: 'emotion_019.png', alt: '[握手]' }, { url: 'emotion_020.png', alt: '[OK]' }, - { url: 'https://static.lancerdt.com/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } + { url: 'https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } ], [ { url: 'emotion_021.png', alt: '[]' }, @@ -422,7 +422,7 @@ var emojiData = { { url: 'emotion_038.png', alt: '[]' }, { url: 'emotion_039.png', alt: '[]' }, { url: 'emotion_040.png', alt: '[]' }, - { url: 'https://static.lancerdt.com/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } + { url: 'https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } ], [ { url: 'emotion_041.png', alt: '[]' }, @@ -445,7 +445,7 @@ var emojiData = { { url: 'emotion_058.png', alt: '[]' }, { url: 'emotion_059.png', alt: '[]' }, { url: 'emotion_060.png', alt: '[]' }, - { url: 'https://static.lancerdt.com/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } + { url: 'https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } ], [ { url: 'emotion_061.png', alt: '[]' }, @@ -468,7 +468,7 @@ var emojiData = { { url: 'emotion_078.png', alt: '[]' }, { url: 'emotion_079.png', alt: '[]' }, { url: 'emotion_080.png', alt: '[]' }, - { url: 'https://static.lancerdt.com/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } + { url: 'https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } ], [ { url: 'emotion_081.png', alt: '[]' }, @@ -491,7 +491,7 @@ var emojiData = { { url: 'emotion_098.png', alt: '[]' }, { url: 'emotion_099.png', alt: '[]' }, { url: 'emotion_100.png', alt: '[]' }, - { url: 'https://static.lancerdt.com/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } + { url: 'https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } ], [ { url: 'emotion_101.png', alt: '[]' }, @@ -514,7 +514,7 @@ var emojiData = { { url: 'emotion_118.png', alt: '[]' }, { url: 'emotion_119.png', alt: '[]' }, { url: 'emotion_120.png', alt: '[]' }, - { url: 'https://static.lancerdt.com/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } + { url: 'https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } ], [ { url: 'emotion_121.png', alt: '[]' }, @@ -537,7 +537,7 @@ var emojiData = { { url: 'emotion_138.png', alt: '[]' }, { url: 'emotion_139.png', alt: '[]' }, { url: 'emotion_140.png', alt: '[]' }, - { url: 'https://static.lancerdt.com/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } + { url: 'https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } ] ] }, @@ -546,7 +546,7 @@ var emojiData = { emojiName:"douyinList", emojiSort:3, minEmoji:true, - emojiPath:"https://static.lancerdt.com/xcxfile/appicon/im/img/douyin/", + emojiPath:"https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/im/img/douyin/", emojiList: [ [ { url: '0.png', alt: '[抖音1]' }, @@ -570,7 +570,7 @@ var emojiData = { { url: '18.png', alt: '[]' }, { url: '19.png', alt: '[]' }, - { url: 'https://static.lancerdt.com/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } + { url: 'https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } ], [ { url: '20.png', alt: '[]' }, @@ -594,7 +594,7 @@ var emojiData = { { url: '38.png', alt: '[]' }, { url: '39.png', alt: '[]' }, - { url: 'https://static.lancerdt.com/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } + { url: 'https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } ], [ { url: '40.png', alt: '[]' }, @@ -618,7 +618,7 @@ var emojiData = { { url: '58.png', alt: '[]' }, { url: '59.png', alt: '[]' }, - { url: 'https://static.lancerdt.com/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } + { url: 'https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } ], [ { url: '60.png', alt: '[]' }, @@ -641,7 +641,7 @@ var emojiData = { { url: '77.png', alt: '[]' }, { url: '78.png', alt: '[]' }, { url: '79.png', alt: '[]' }, - { url: 'https://static.lancerdt.com/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } + { url: 'https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } ], [ { url: '80.png', alt: '[]' }, @@ -665,7 +665,7 @@ var emojiData = { { url: '98.png', alt: '[]' }, { url: '99.png', alt: '[]' }, - { url: 'https://static.lancerdt.com/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } + { url: 'https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } ], [ { url: '100.png', alt: '[]' }, @@ -689,7 +689,7 @@ var emojiData = { { url: '118.png', alt: '[]' }, { url: '119.png', alt: '[]' }, - { url: 'https://static.lancerdt.com/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } + { url: 'https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } ], [ { url: '120.png', alt: '[]' }, @@ -713,12 +713,12 @@ var emojiData = { { url: '138.png', alt: '[]' }, { url: '139.png', alt: '[]' }, - { url: 'https://static.lancerdt.com/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } + { url: 'https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } ], [ { url: '140.png', alt: '[]' }, { url: '141.png', alt: '[]' }, - { url: 'https://static.lancerdt.com/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } + { url: 'https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/im/img/tab/delete2.png', alt: '[删除]' } ] ] }, @@ -726,7 +726,7 @@ var emojiData = { emojiName:"ajmdList", emojiSort:4, minEmoji:false, - emojiPath:"https://static.lancerdt.com/xcxfile/appicon/im/img/ajmd/", + emojiPath:"https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/im/img/ajmd/", emojiList: [ [ { url: '0.png', alt: '[ajmd1]' }, @@ -794,7 +794,7 @@ var emojiData = { emojiName:"gongfuhuList", emojiSort:5, minEmoji:false, - emojiPath:"https://static.lancerdt.com/xcxfile/appicon/im/img/gongfuhu/", + emojiPath:"https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/im/img/gongfuhu/", emojiList: [ [ { url: '0.gif', alt: '[]' }, @@ -841,7 +841,7 @@ var emojiData = { emojiName:"xxyList", emojiSort:6, minEmoji: false, - emojiPath:"https://static.lancerdt.com/xcxfile/appicon/im/img/xxy/", + emojiPath:"https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/im/img/xxy/", emojiList: [ [ { url: '0.png', alt: '[]' }, @@ -899,7 +899,7 @@ var emojiData = { emojiName:"feineneList", emojiSort:7, minEmoji: false, - emojiPath:"https://static.lancerdt.com/xcxfile/appicon/im/img/feinene/", + emojiPath:"https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/im/img/feinene/", emojiList: [ [ { url: '0.gif', alt: '[]' }, diff --git a/static/iconfont.ttf b/static/iconfont.ttf index 0203fcb..6d894cb 100644 Binary files a/static/iconfont.ttf and b/static/iconfont.ttf differ diff --git a/static/images/login-bg.png b/static/images/login-bg.png new file mode 100644 index 0000000..3481111 Binary files /dev/null and b/static/images/login-bg.png differ diff --git a/static/images/pay_type/offline.png b/static/images/pay_type/offline.png deleted file mode 100644 index 7943745..0000000 Binary files a/static/images/pay_type/offline.png and /dev/null differ diff --git a/static/images/qishou.png b/static/images/qishou.png new file mode 100644 index 0000000..b69dbb5 Binary files /dev/null and b/static/images/qishou.png differ diff --git a/store/index.js b/store/index.js index 4cdbdec..f073c90 100644 --- a/store/index.js +++ b/store/index.js @@ -12,6 +12,7 @@ import $cookies from '../helpers/vue-cookies'; import Config from '../config/config' import StateCode from '../config/statecode' import Lang from '../config/lang' +import { $loginPopup } from '../helpers/loginPopup.js' import notice from '../helpers/notice' @@ -31,7 +32,7 @@ const STATE_KEY = 'STATE_KEY'; var ret = uni.getStorageSync(USERS_KEY); let default_user_info = { user_nickname: Lang.__("未注册用户"), - user_avatar: "https://static.lancerdt.com/demodata/assets/data/avatar.png", + user_avatar: "https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/demodata/assets/data/avatar.png", user_is_new: 1 }; @@ -55,7 +56,7 @@ const store = new Vuex.Store({ cartList: [], cartMap: {}, newMsgNum: 0, - + showLoginPopup:false, plantformInfo: { return_state_list: [ { @@ -203,12 +204,13 @@ const store = new Vuex.Store({ Lang: Lang }, mutations: { + setShowLoginPopup(state,showLoginPopup){ + state.showLoginPopup = Object.assign(state.showLoginPopup,showLoginPopup); + }, login(state, userInfo) { - if ('user_avatar' in userInfo) - { - if (userInfo.user_avatar) - { + if ('user_avatar' in userInfo){ + if (userInfo.user_avatar){ if(state.Config.HTTPS && userInfo.user_avatar.indexOf("https") == 0) { } @@ -233,44 +235,43 @@ const store = new Vuex.Store({ } else { - userInfo.user_avatar = "https://static.lancerdt.com/demodata/assets/data/avatar.png"; + userInfo.user_avatar = "https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/demodata/assets/data/avatar.png"; } } - userInfo = Object.assign(state.userInfo, userInfo); + userInfo = Object.assign(state.userInfo, userInfo); state.userInfo = userInfo; state.userName = userInfo.user_nickname || Lang.__('未注册用户'); state.hasLogin = true; - //保存基本信息 - uni.setStorageSync(USERS_KEY, JSON.stringify(userInfo)); + //保存基本信息 + uni.setStorageSync(USERS_KEY, JSON.stringify(userInfo)); - //强制授权读取小程序或者公众号手机号 - if ('as' in userInfo) - { - if (userInfo.as) - { - } - else - { - if (Config.FORCE_BIND_MOBILE) - { - setTimeout(()=>{ - $.confirm(Lang.__('绑定手机号码'), - function(data) { - if (data.confirm) { - //绑定手机操作 - $.gopage("/member/member/bindphone"); - } - },true); - }, 2000) - } - } + //强制授权读取小程序或者公众号手机号 + if ('as' in userInfo){ + if (userInfo.as) + { + } + else + { + if (Config.FORCE_BIND_MOBILE) + { + // setTimeout(()=>{ + // $.confirm(Lang.__('绑定手机号码'), + // function(data) { + // if (data.confirm) { + // //绑定手机操作 + // $.gopage("/member/member/bindphone"); + // } + // },true); + // }, 2000) + } + } - } + } }, logout(state, payload) { if ($.source_data.source_type == StateCode.SOURCE_TYPE_APP) @@ -306,65 +307,69 @@ const store = new Vuex.Store({ state.chatTolist={};///当前聊天对话的里面是聊天的对象和 state.currentChatPuid=''; - try { - uni.closeSocket(); - } catch (s) {} - - if (payload) - { - $.toLogin(state.forcedLoginState); - } + try { + uni.closeSocket(); + } catch (s) {} + + if (payload) + { + $.toLogin(state.forcedLoginState); + } }, forceUserInfo(state, callback) { - var that = this; + var that = this; + //记录来源页面 + var pages = getCurrentPages(); + var page = pages[pages.length - 1]; - //记录来源页面 - var pages = getCurrentPages(); - var page = pages[pages.length - 1]; + //page.route != 'pagesub/login/login' && page.route != 'pages/index/member' - //page.route != 'pagesub/login/login' && page.route != 'pages/index/member' - - if (page.route.indexOf("/login/") != -1) { - uni.setStorageSync('pre_route', page.route); - if (page.options) { - uni.setStorageSync('pre_options', page.options); - } - } - - if (!state.hasLogin) { - if (state.forcedLoginState) - { - $.toLogin(true); - } - else - { - $.showModal({ - title: Lang.__('未登录'), - content: Lang.__('您未登录,需要登录后才能继续'), - /** - * 如果需要强制登录,不显示取消按钮 - */ - showCancel: !state.forcedLoginState, - success: (res) => { - if (res.confirm) { - /** - * 如果需要强制登录,使用reLaunch方式 - */ - $.toLogin(state.forcedLoginState); - } - else - { - uni.navigateBack(); - } - } - }); - } + if (page.route.indexOf("/login/") != -1) { + uni.setStorageSync('pre_route', page.route); + if (page.options) { + uni.setStorageSync('pre_options', page.options); } - else - { - //判断当前用户是否存在,不存在读取? - callback && callback($.isEmptyObject(state.userInfo) ? null : state.userInfo); + } + + if (!state.hasLogin) { + + if (state.forcedLoginState){ + $.toLogin(true); } + else{ + + // #ifdef MP-WEIXIN + + // #endif + + // $loginPopup({show:true}) + // this.commit("setShowLoginPopup",true); + + // $.showModal({ + // title: Lang.__('未登录'), + // content: Lang.__('您未登录,需要登录后才能继续'), + // /** + // * 如果需要强制登录,不显示取消按钮 + // */ + // showCancel: !state.forcedLoginState, + // success: (res) => { + // if (res.confirm) { + // /** + // * 如果需要强制登录,使用reLaunch方式 + // */ + // $.toLogin(state.forcedLoginState); + // } + // else{ + // uni.navigateBack(); + // } + // } + // }); + } + } + else{ + //判断当前用户是否存在,不存在读取? + callback && callback($.isEmptyObject(state.userInfo) ? null : state.userInfo); + } }, setUserInfo: function (state, payload) { state.userInfo = Object.assign(state.userInfo, payload); @@ -427,7 +432,7 @@ const store = new Vuex.Store({ "RuleEnabled": false, "VendorFeatureSet": '', "ShopConfig": { - "AppIconPath": "https://static.lancerdt.com/xcxfile/appicon/" + "AppIconPath": "https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/" }, "store_star_num": data.analytics.store_evaluation_num ? (data.analytics.store_deliverycredit + data.analytics.store_deliverycredit + data.analytics.store_deliverycredit) / 3 / data.analytics.store_evaluation_num : 5, "analytics": data.analytics, @@ -968,9 +973,16 @@ const store = new Vuex.Store({ method: "GET", data: param, loading: false, - success: function (data) { + success: function (data,status,msg) { let cartMap = {}; - + if(status == 250){ + uni.showToast({ + title: "shop/userCart/lists" + msg, + icon: "error", + duration: 1000, + }); + return; + } //循环所有店铺 if (!$.isNull(data.items) && data.items.length > 0) { let total = 0; @@ -1014,13 +1026,14 @@ const store = new Vuex.Store({ async addCart({ state, commit }, provider) { let that = this - + await $.request({ url: Config.URL.cart.add, method:'POST', data: provider.params, loading: false, success: (data, status, msg, code) => { + console.log(status) if (status == 200) { commit("setCartNum", { type: provider.params.cart_quantity >0 ? 'add' : 'sub', @@ -1029,7 +1042,8 @@ const store = new Vuex.Store({ provider.callback && provider.callback(data, status, msg, code) } else { - $.alert(msg); + // $.alert(msg); + $.alert("点击太快了") } }, fail: (err) => { diff --git a/styles/_variables.scss b/styles/_variables.scss index 67c09d6..40a01f8 100644 --- a/styles/_variables.scss +++ b/styles/_variables.scss @@ -63,7 +63,7 @@ $brand-danger: #d9534f !default; //## Settings for some of the most global styles. // -$body-bg: #f5f5f5 !default; +$body-bg: #f4f4f4 !default; // Global text color on ``. $text-color: $gray-dark !default; diff --git a/styles/iconfontAili.css b/styles/iconfontAili.css index 92ed0c1..8a0312d 100644 --- a/styles/iconfontAili.css +++ b/styles/iconfontAili.css @@ -11,6 +11,26 @@ -moz-osx-font-smoothing: grayscale; } +.icon-weixin:before { + content: "\e600"; +} + +.icon-dianpu2:before { + content: "\e623"; +} + +.icon-wancheng:before { + content: "\e606"; +} + +.icon-yundianxiaochengxu2_tongchengpeisong:before { + content: "\e640"; +} + +.icon-money-cny-circle-fill:before { + content: "\e7cd"; +} + .icon-zengjiatianjiajiahao:before { content: "\e62a"; } @@ -42,4 +62,3 @@ .icon-dingwei:before { content: "\e65f"; } - diff --git a/styles/layout.scss b/styles/layout.scss index acaecf8..82c9dab 100644 --- a/styles/layout.scss +++ b/styles/layout.scss @@ -298,15 +298,15 @@ position: relative; width: 40rpx; height: 40rpx; - background: url(https://static.lancerdt.com/xcxfile/appicon/pc1.png) center no-repeat; + background: url(https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/pc1.png) center no-repeat; background-size: cover; } .c2 { position: relative; - width: 50rpx; - height: 50rpx; - background: url(https://static.lancerdt.com/xcxfile/appicon/pc2.png) center no-repeat; + width: 56rpx; + height: 56rpx; + background: url(https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/pc2.png) center no-repeat; background-size: cover; } @@ -320,7 +320,7 @@ color: #fff; font-size: 24rpx; line-height: 50rpx; - background: url(https://static.lancerdt.com/xcxfile/appicon/pc3.png) center no-repeat; + background: url(https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/pc3.png) center no-repeat; background-size: cover; } @@ -1167,7 +1167,7 @@ .coupon_item { width: 110px; height: 81px; - background: url(https://static.lancerdt.com/xcxfile/appicon/coupon/coupon_bg.png) no-repeat center; + background: url(https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/coupon/coupon_bg.png) no-repeat center; background-size: cover; color: #fff; display: flex; @@ -1225,7 +1225,7 @@ height: 208rpx; margin: 8rpx 8rpx 0 0; flex-shrink: 0; - background: url(https://static.lancerdt.com/xcxfile/appicon/img/uploadimage.png) center no-repeat #bfbfbf; + background: url(https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/img/uploadimage.png) center no-repeat #bfbfbf; background-size: 150rpx; }