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 @@
-
-
-
-
-
-
-
-
-
-
- {{chat.username}}
- {{chat.time}}
-
-
- {{chat.msg}}
- {{chat.tisNum}}
-
-
-
-
-
-
-
-
-
-
-
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 @@
-
-
-
-
-
-
-
-
- 购物车是空的哦~
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{row.name}}
- {{row.spec}}
-
- ¥{{row.price}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
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 @@
-
-
-
-
-
-
-
- {{row.head}}
-
-
-
-
- {{row.name}}
- {{row.tel}}
-
- 默认
-
-
-
- {{row.address.region.label}} {{row.address.detailed}}
-
-
-
-
-
-
-
-
-
-
-
-
- 新增地址
-
-
-
-
-
-
-
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 @@
-
-
-
-
-
- 收件人
-
-
-
-
-
-
-
- 电话号码
-
-
-
-
-
-
-
- 所在地区
-
-
- {{region.label}}
-
-
-
-
-
- 详细地址
-
-
-
-
-
-
-
- 设置默认地址
-
-
-
-
-
-
-
- 删除收货地址
-
-
-
-
-
- 保存地址
-
-
-
-
-
-
-
-
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 @@
-
-
+
- {{carNo}}
+ {{cardNoNumber}}
+
-
-
+
@@ -34,7 +35,8 @@
sendSmsCode,
getHuiLianTongCardByCardNo,
bindHuiLianTongCard,
- getUserCardList
+ getUserCardList,
+ getHuiLianTongCardByPhone
} from '../../../Utils/Api.js';
let app = getApp();
export default {
@@ -47,24 +49,27 @@
getCodeBtnColor: "#0083f5",
getCodeisWaiting: false,
disStute: false,
- UserCard:'',
- carNo:''
+ UserCard:''
}
},
onLoad(options) {
- this.getUserCardList();
+ this.user = app.globalData.userInfo;
+ this.getHuiLianTongCardByPhone();
},
+
methods: {
Timer() {},
-
//查询我的卡号列表
- getUserCardList() {
+ getHuiLianTongCardByPhone() {
+ let params = {
+ phone : this.user.phone
+ }
uni.showLoading();
- getUserCardList().then(res => {
+ getHuiLianTongCardByPhone(params).then(res => {
uni.hideLoading();
- if (res.return_code == '000000') {
+ if (res.return_code == '000000' && res.return_data !='') {
this.UserCard = res.return_data;
- this.carNo = res.return_data[0].cardNo;
+ this.cardNoNumber = res.return_data[0].cardNo;
return;
}
this.UserCard = '';
@@ -72,7 +77,7 @@
},
//选择卡号
bindUserCard(e) {
- this.carNo = this.UserCard[e.target.value].cardNo;
+ this.cardNoNumber = this.UserCard[e.target.value].cardNo;
},
getCode() {
uni.hideKeyboard()
diff --git a/pages/user/cardDes/cardDes.vue b/pages/user/cardDes/cardDes.vue
index ee5c9d9..355963b 100644
--- a/pages/user/cardDes/cardDes.vue
+++ b/pages/user/cardDes/cardDes.vue
@@ -1,7 +1,7 @@
-
-
+
+
卡号 : {{user.hltCardNo.cardNo}}
余额 : {{tongCardPrice}}¥
@@ -20,7 +20,9 @@
data() {
return {
user: '',
- tongCardPrice:0
+ tongCardPrice:0,
+ imagewxUrl: app.globalData.imageWxImg,
+ imgadres: 'cards.jpg',
}
},
onShow() {
@@ -114,6 +116,6 @@
.cardlabel {
position: absolute;
- left: 40px;
+ left: 13%;
}
diff --git a/pages/user/keep/keep.vue b/pages/user/keep/keep.vue
deleted file mode 100644
index b4dfe47..0000000
--- a/pages/user/keep/keep.vue
+++ /dev/null
@@ -1,396 +0,0 @@
-
-
-
- 商品({{goodsList.length}})
- 店铺({{shopList.length}})
-
-
-
-
-
-
- 没有数据~
-
-
-
-
-
-
-
-
-
-
- {{row.name}}
-
-
- 905人收藏
-
- ¥{{row.price}}
-
-
-
-
-
-
-
-
- 没有数据~
-
-
-
-
-
-
-
-
-
-
- {{row.name}}
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pages/user/order_details/order_details.vue b/pages/user/order_details/order_details.vue
index d2cbc80..d5e4784 100644
--- a/pages/user/order_details/order_details.vue
+++ b/pages/user/order_details/order_details.vue
@@ -353,12 +353,6 @@
.highChildOrderList[0].goodsId + '&typeaout='+ this.recinfo.highChildOrderList[0].ext1
})
},
- //选择收货地址
- selectAddress() {
- uni.navigateTo({
- url: '../user/address/address?type=select'
- })
- }
}
}
diff --git a/pages/user/setting/setting.vue b/pages/user/setting/setting.vue
deleted file mode 100644
index 4b23598..0000000
--- a/pages/user/setting/setting.vue
+++ /dev/null
@@ -1,135 +0,0 @@
-
-
-
-
-
- 头像
-
-
-
-
-
- 昵称
- 大黑哥
-
-
- 个性签名
- 这人太懒了,什么都不写
-
-
- 收货地址
-
-
-
- 账户安全
-
-
-
-
-
- 通知提醒
-
-
-
- 支付设置
-
-
-
- 通用
-
-
-
-
-
- 版本升级
- v1.0.0
-
-
- 清除缓存
-
-
-
- 问题反馈
-
-
-
- 关于商城
-
-
-
-
-
-
-
-
-
-
diff --git a/static/img/cards.jpg b/static/img/cards.jpg
deleted file mode 100644
index 8a0a71b..0000000
Binary files a/static/img/cards.jpg and /dev/null differ
diff --git a/static/img/downj.png b/static/img/downj.png
new file mode 100644
index 0000000..dbff846
Binary files /dev/null and b/static/img/downj.png differ
diff --git a/static/img/login.png b/static/img/login.png
deleted file mode 100644
index 8d528cc..0000000
Binary files a/static/img/login.png and /dev/null differ
diff --git a/static/yy-video-player/back-white.png b/static/yy-video-player/back-white.png
new file mode 100644
index 0000000..068097a
Binary files /dev/null and b/static/yy-video-player/back-white.png differ
diff --git a/static/yy-video-player/download.png b/static/yy-video-player/download.png
new file mode 100644
index 0000000..05792d5
Binary files /dev/null and b/static/yy-video-player/download.png differ