feat: 新增心理论坛功能并优化订单相关文案;更新音视频播放组件版本;
- 新增心理论坛页面及文章详情页 - 更新订单状态文案:"待发货"改为"待发出","待收货"改为"待收到" - 统一修改"收货地址"相关文案为"收件地址" - 添加安卓应用包下载地址配置 - 更新依赖edu-core至v1.0.6版本 - 优化首页课程列表布局和样式 - 新增分享功能到我的页面
This commit is contained in:
@@ -130,6 +130,11 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 分享弹窗 -->
|
||||
<uni-popup ref="share" type="share" safeArea backgroundColor="#fff">
|
||||
<uni-popup-share @select="haveSelected"></uni-popup-share>
|
||||
</uni-popup>
|
||||
|
||||
<u-popup :show="infoShow" mode="center" round="6" backgroundColor="#fff">
|
||||
<view class="popup_box">
|
||||
<view class="title">温馨提示</view>
|
||||
@@ -195,7 +200,11 @@ export default {
|
||||
url: "/pages/component/commonComponents/address/index",
|
||||
type: "pageJump",
|
||||
},
|
||||
|
||||
{
|
||||
name: "分享App",
|
||||
url: "newOnShare",
|
||||
type: "function",
|
||||
},
|
||||
{
|
||||
name: "关于我们",
|
||||
url: "/pages/my/aboutUs",
|
||||
@@ -252,8 +261,49 @@ export default {
|
||||
case "switchTab":
|
||||
this.switchTab(v.url);
|
||||
break;
|
||||
case "function":
|
||||
this[v.url]();
|
||||
break;
|
||||
}
|
||||
},
|
||||
//分享app
|
||||
newOnShare(){
|
||||
this.$refs.share.open();
|
||||
},
|
||||
haveSelected(data) {
|
||||
console.log("选择的是", data);
|
||||
|
||||
let scene = "WXSceneSession";
|
||||
switch (data.index) {
|
||||
case 0:
|
||||
// WXSceneSession: 分享到好友
|
||||
scene = "WXSceneSession";
|
||||
break;
|
||||
case 1:
|
||||
// WXSceneTimeline: 分享到朋友圈
|
||||
scene = "WXSceneTimeline";
|
||||
break;
|
||||
}
|
||||
uni.share({
|
||||
provider: "weixin",
|
||||
scene: scene,
|
||||
type: 0,
|
||||
href: this.$apkUrl,
|
||||
title: "心灵空间",
|
||||
summary: "我正在使用心灵空间提升自己,赶紧跟我一起来体验吧!",
|
||||
imageUrl: "static/fengziIcon.jpg",
|
||||
success: function (res) {
|
||||
console.log("success:" + JSON.stringify(res));
|
||||
},
|
||||
fail: function (err) {
|
||||
uni.showToast({
|
||||
title: "分享失败,请检查您的微信客户端",
|
||||
icon: "none",
|
||||
});
|
||||
console.log("fail:" + JSON.stringify(err));
|
||||
},
|
||||
});
|
||||
},
|
||||
//判断过期的vip
|
||||
isExpired(dateString){
|
||||
const dataTime = new Date(dateString.replace(' ', 'T'));
|
||||
|
||||
Reference in New Issue
Block a user