diff --git a/App.vue b/App.vue index 4e1d136..d744daa 100644 --- a/App.vue +++ b/App.vue @@ -5,15 +5,15 @@ // brestUrl: 'http://192.168.3.4:9302/brest', // imgUrl: 'https://192.168.3.4:9301/filesystem/', //正式 - // url: 'https://hsg.dctpay.com/crest', - // imgUrl: 'https://hsg.dctpay.com/filesystem/', - // brestUrl : 'https://hsg.dctpay.com/brest', - // imageWxImg:'https://hsg.dctpay.com/filesystem/wxApplets/', + url: 'https://hsg.dctpay.com/crest', + imgUrl: 'https://hsg.dctpay.com/filesystem/', + brestUrl : 'https://hsg.dctpay.com/brest', + imageWxImg:'https://hsg.dctpay.com/filesystem/wxApplets/', //测试 - url: 'https://hsgcs.dctpay.com/crest', - brestUrl : 'https://hsgcs.dctpay.com/brest', - imgUrl: 'https://hsgcs.dctpay.com/filesystem/', - imageWxImg:'https://hsgcs.dctpay.com/filesystem/wxApplets/', + // url: 'https://hsgcs.dctpay.com/crest', + // brestUrl : 'https://hsgcs.dctpay.com/brest', + // imgUrl: 'https://hsgcs.dctpay.com/filesystem/', + // imageWxImg:'https://hsgcs.dctpay.com/filesystem/wxApplets/', userInfo: "", brestUserInfo : '', openId: '', diff --git a/Utils/Api.js b/Utils/Api.js index 0103d6e..e978b97 100644 --- a/Utils/Api.js +++ b/Utils/Api.js @@ -170,7 +170,7 @@ export const getUserCardList = params => { } // 根据手机号获取汇联通工会卡列表 export const getHuiLianTongCardByPhone = params => { - return POST('POST', `${base}/highUserCard/getHuiLianTongCardByPhone`, params).then(res => res.data); + return POST('GET', `${base}/highUserCard/getHuiLianTongCardByPhone`, params).then(res => res.data); } // 删除用户卡号 export const delUserCard = params => { diff --git a/components/yy-video-player/yy-video-player.nvue b/components/yy-video-player/yy-video-player.nvue new file mode 100644 index 0000000..e39a22a --- /dev/null +++ b/components/yy-video-player/yy-video-player.nvue @@ -0,0 +1,182 @@ + + + diff --git a/package.json b/package.json new file mode 100644 index 0000000..21759a9 --- /dev/null +++ b/package.json @@ -0,0 +1,13 @@ +{ + "id": "xiao-video-component", + "name": "视频播放器组件", + "version": "1.0.0", + "description": "基于uniapp小程序视频播放器组件", + "keywords": [ + "视频", + "播放器", + "video", + "player", + "uniapp" + ] +} \ No newline at end of file diff --git a/pages copy.json b/pages copy.json index e63ff10..200bb38 100644 --- a/pages copy.json +++ b/pages copy.json @@ -37,22 +37,6 @@ } } }, - { - "path": "pages/tabBar/cart/cart", - "style": { - "enablePullDownRefresh": true, - "navigationBarTextStyle": "black", - "app-plus": { - "titleNView": false, //禁用原生导航栏 - "softinputNavBar": "none", - "subNVues": [{ - "id": "cartTitleNvue", // 唯一标识 - "path": "pages/tabBar/cart/subNvue/cartTitleNvue", // 页面路径 - "type": "navigationBar" - }] - } - } - }, { "path": "pages/tabBar/user/user", "style": { @@ -154,15 +138,7 @@ "backgroundColorTop": "#f3f3f3", "backgroundColorBottom": "#ffffff" } - }, { - "path": "pages/user/setting/setting", - "style": { - "navigationBarBackgroundColor": "#f8f8f8", - "navigationBarTitleText": "我的设置", - "backgroundColorTop": "#ffffff", - "backgroundColorBottom": "#f3f3f3" - } - }, { + }, { "path": "pages/user/coupon/coupon", "style": { "navigationBarTitleText": "优惠券", @@ -172,33 +148,7 @@ "bounce": "none" } } - }, { - "path": "pages/user/keep/keep", - "style": { - "navigationBarTitleText": "我的收藏", - "navigationBarBackgroundColor": "#0083f5", - "navigationBarTextStyle": "white", - "app-plus": { - "bounce": "none" - } - } - }, { - "path": "pages/user/address/address", - "style": { - "navigationBarBackgroundColor": "#ffffff", - "navigationBarTitleText": "地址管理", - "backgroundColorTop": "#ffffff", - "backgroundColorBottom": "#ffffff" - } - }, { - "path": "pages/user/address/edit/edit", - "style": { - "navigationBarBackgroundColor": "#ffffff", - "navigationBarTitleText": "编辑收件人地址", - "backgroundColorTop": "#ffffff", - "backgroundColorBottom": "#ffffff" - } - }, { + }, { "path": "pages/user/deposit/deposit", "style": { "navigationBarBackgroundColor": "#ffffff", @@ -266,12 +216,6 @@ "selectedIconPath": "static/img/tabBar/category-on.png", "text": "分类" }, - { - "pagePath": "pages/tabBar/cart/cart", - "iconPath": "static/img/tabBar/cart.png", - "selectedIconPath": "static/img/tabBar/cart-on.png", - "text": "购物车" - }, { "pagePath": "pages/tabBar/user/user", "iconPath": "static/img/tabBar/user.png", diff --git a/pages.json b/pages.json index 6fcdf7e..3fe53c3 100644 --- a/pages.json +++ b/pages.json @@ -129,25 +129,7 @@ } } }, - { - "path": "pages/tabBar/cart/cart", - "style": { - "enablePullDownRefresh": true, - "navigationBarTextStyle": "black", - "navigationBarBackgroundColor": "#0083f5", - "backgroundColorTop": "#0083f5", - "navigationBarTextStyle": "white", - "app-plus": { - "titleNView": false, //禁用原生导航栏 - "softinputNavBar": "none", - "subNVues": [{ - "id": "cartTitleNvue", // 唯一标识 - "path": "pages/tabBar/cart/subNvue/cartTitleNvue", // 页面路径 - "type": "navigationBar" - }] - } - } - }, + { "path": "pages/tabBar/user/user", "style": { @@ -232,23 +214,6 @@ "navigationBarTextStyle": "white", "softinputNavBar": "none" } - }, { - "path": "pages/user/setting/setting", - "style": { - "navigationBarTitleText": "我的设置", - "navigationBarBackgroundColor": "#0083f5", - "backgroundColorTop": "#0083f5", - "navigationBarTextStyle": "white", - "backgroundColorBottom": "#f3f3f3" - } - }, { - "path": "pages/msg/msg", - "style": { - "enablePullDownRefresh": true, - "navigationBarTitleText": "消息列表", - "navigationBarBackgroundColor": "#0083f5", - "navigationBarTextStyle": "white" - } }, { "path": "pages/user/coupon/coupon", "style": { @@ -260,32 +225,6 @@ "bounce": "none" } } - }, { - "path": "pages/user/keep/keep", - "style": { - "navigationBarTitleText": "我的收藏", - "navigationBarBackgroundColor": "#0083f5", - "backgroundColorTop": "#0083f5", - "app-plus": { - "bounce": "none" - } - } - }, { - "path": "pages/user/address/address", - "style": { - "navigationBarBackgroundColor": "#ffffff", - "navigationBarTitleText": "地址管理", - "backgroundColorTop": "#ffffff", - "backgroundColorBottom": "#ffffff" - } - }, { - "path": "pages/user/address/edit/edit", - "style": { - "navigationBarBackgroundColor": "#ffffff", - "navigationBarTitleText": "编辑收件人地址", - "backgroundColorTop": "#ffffff", - "backgroundColorBottom": "#ffffff" - } }, { "path": "pages/user/deposit/deposit", "style": { @@ -566,12 +505,7 @@ "selectedIconPath": "static/img/tabBar/category-on.png", "text": "导航" }, - // { - // "pagePath": "pages/tabBar/cart/cart", - // "iconPath": "static/img/tabBar/cart.png", - // "selectedIconPath": "static/img/tabBar/cart-on.png", - // "text": "购物车" - // }, + { "pagePath": "pages/tabBar/user/user", "iconPath": "static/img/tabBar/user.png", diff --git a/pages/goods/coupon-details/coupon-details.vue b/pages/goods/coupon-details/coupon-details.vue index ade476e..08e9a7a 100644 --- a/pages/goods/coupon-details/coupon-details.vue +++ b/pages/goods/coupon-details/coupon-details.vue @@ -19,11 +19,19 @@ - - + + 视频教程 + + + + @@ -78,14 +86,20 @@ getStoreListByCoupon, againReceiveCoupon } from "../../../Utils/Api.js" + import xiaoVideoElement from '../../../components/yy-video-player/yy-video-player.nvue' let app = getApp() export default { + components: { + xiaoVideoElement + }, data() { return { couDesId: '', imageUrl: app.globalData.imgUrl, imagewxUrl: app.globalData.imageWxImg, imgadres1: 'dhl.png', + imgadres2: 'video.jpg', + imgadres3: 'playVideo.mp4', imgadres: 'noorder.png', couponDesInfo: [], storeList: [], diff --git a/pages/goods/goods.vue b/pages/goods/goods.vue index 9e15ecf..bb5efca 100644 --- a/pages/goods/goods.vue +++ b/pages/goods/goods.vue @@ -244,17 +244,6 @@ swiperChange(event) { this.currentSwiper = event.detail.current; }, - //消息列表 - toMsg() { - uni.navigateTo({ - url: '../msg/msg' - }) - }, - - // 分享 - // share() { - // this.shareClass = 'show'; - // }, hideShare() { this.shareClass = 'hide'; setTimeout(() => { diff --git a/pages/msg/msg.vue b/pages/msg/msg.vue deleted file mode 100644 index 09211ae..0000000 --- a/pages/msg/msg.vue +++ /dev/null @@ -1,241 +0,0 @@ - - - - - diff --git a/pages/pay/success/success.vue b/pages/pay/success/success.vue index abceaba..1988d39 100644 --- a/pages/pay/success/success.vue +++ b/pages/pay/success/success.vue @@ -24,8 +24,16 @@ - - + + 视频教程 + + + @@ -83,14 +91,20 @@ import { getUserNewCouponDetail, getStoreListByCoupon - } from "../../../Utils/Api.js" + } from "../../../Utils/Api.js"; + import xiaoVideoElement from '../../../components/yy-video-player/yy-video-player.nvue'; let app = getApp() export default { + components: { + xiaoVideoElement + }, data() { return { couDesId: '', imageUrl: app.globalData.imgUrl, imagewxUrl: app.globalData.imageWxImg, + imgadres2: 'video.jpg', + imgadres3: 'playVideo.mp4', imgadres1: 'dhl.png', couponDesInfo: [], storeList: [], diff --git a/pages/tabBar/cart/cart.vue b/pages/tabBar/cart/cart.vue deleted file mode 100644 index e324fb9..0000000 --- a/pages/tabBar/cart/cart.vue +++ /dev/null @@ -1,582 +0,0 @@ - - - - diff --git a/pages/tabBar/user/user.vue b/pages/tabBar/user/user.vue index bace2bc..ebec1ba 100644 --- a/pages/tabBar/user/user.vue +++ b/pages/tabBar/user/user.vue @@ -337,9 +337,6 @@ }, //消息列表 toMsg() { - // uni.navigateTo({ - // url:'../../msg/msg' - // }) uni.showToast({ title: '暂未开通', icon: 'none' @@ -350,11 +347,6 @@ url: '../../user/order_list/order_list?tbIndex=' + index }) }, - // toSetting() { - // uni.navigateTo({ - // url: '../../user/setting/setting' - // }) - // }, toLogin() { uni.showToast({ title: '请登录', diff --git a/pages/user/address/address.vue b/pages/user/address/address.vue deleted file mode 100644 index 4004de2..0000000 --- a/pages/user/address/address.vue +++ /dev/null @@ -1,239 +0,0 @@ - - - - diff --git a/pages/user/address/edit/edit.vue b/pages/user/address/edit/edit.vue deleted file mode 100644 index 9ae3685..0000000 --- a/pages/user/address/edit/edit.vue +++ /dev/null @@ -1,261 +0,0 @@ - - - - diff --git a/pages/user/bindingCard/bindingCard.vue b/pages/user/bindingCard/bindingCard.vue index 186af9b..fee700e 100644 --- a/pages/user/bindingCard/bindingCard.vue +++ b/pages/user/bindingCard/bindingCard.vue @@ -1,14 +1,15 @@