diff --git a/CoreCms.Net.Uni-App/CoreShop/common/request/http.interceptor.js b/CoreCms.Net.Uni-App/CoreShop/common/request/http.interceptor.js
index 8aee044d2f74ca8eb7b32d3539fa63f5ba6530bc..0d1f9db4ba8bcaf074c7ccf5854f7b5a4e06775d 100644
--- a/CoreCms.Net.Uni-App/CoreShop/common/request/http.interceptor.js
+++ b/CoreCms.Net.Uni-App/CoreShop/common/request/http.interceptor.js
@@ -51,31 +51,10 @@ const install = (Vue, vm) => {
//console.log(page.route);
// 登录信息过期或者未登录
if (result.data === 14007 || result.data === 14006) {
- // #ifdef H5 || APP-PLUS || APP-PLUS-NVUE
- if (page.route.indexOf('pages/login/loginBySMS/loginBySMS') < 0) {
- db.del("userToken");
- uni.showToast({
- title: result.msg,
- icon: 'none',
- duration: 1000,
- complete: function () {
- setTimeout(function () {
- uni.hideToast();
- uni.navigateTo({
- url: '/pages/login/loginBySMS/loginBySMS'
- });
- },
- 1000);
- }
- });
- }
- // #endif
- // #ifdef MP-WEIXIN || MP-ALIPAY || MP-TOUTIAO
db.del("userToken");
console.log("开启登录弹窗");
//Vue.prototype.$store.commit('showLoginTip', true);
Vue.prototype.$store.commit('hasLogin', false);
- // #endif
}
}
@@ -83,8 +62,6 @@ const install = (Vue, vm) => {
// res为服务端返回值,可能有code,result等字段
// 这里对res.result进行返回,将会在this.$u.post(url).then(res => {})的then回调中的res的到
// 如果配置了originalData为true,请留意这里的返回值
-
-
}
}
diff --git a/CoreCms.Net.Uni-App/CoreShop/common/setting/constVarsHelper.js b/CoreCms.Net.Uni-App/CoreShop/common/setting/constVarsHelper.js
index 9ee458bf7c2e32a3ac45ef2994fa9a58d79b23fd..9b978782bd3eb25f678397a94d7673a6deaf7115 100644
--- a/CoreCms.Net.Uni-App/CoreShop/common/setting/constVarsHelper.js
+++ b/CoreCms.Net.Uni-App/CoreShop/common/setting/constVarsHelper.js
@@ -7,7 +7,6 @@
export const apiBaseUrl = 'https://api.demo.coreshop.cn';
//项目静态资源请求地址,如果使用官方的静态文件地址可以直接替换为:https://files.cdn.coreshop.cn
export const apiFilesUrl = 'https://files.cdn.coreshop.cn';
-export const h5Url = apiBaseUrl + "/wap/"; //H5端网站地址,
// #ifdef H5
export const baseUrl = process.env.NODE_ENV === 'development' ? window.location.origin + '/' : apiBaseUrl
@@ -22,11 +21,6 @@ export const paymentType = {
serviceOrder: 5, //服务订单
};
-// #ifdef MP-TOUTIAO
-export const ttPlatform = 'toutiao'; //toutiao=今日头条小程序, douyin=抖音小程序, pipixia=皮皮虾小程序, huoshan=火山小视频小程序
-// #endif
-
-
//nav页面导航类型
export const navLinkType = {
urlLink: 1, //"URL链接"
diff --git a/CoreCms.Net.Uni-App/CoreShop/components/coreshop-login-modal/coreshop-login-modal.vue b/CoreCms.Net.Uni-App/CoreShop/components/coreshop-login-modal/coreshop-login-modal.vue
index bcfa999558f2eb6c2ff566f8160f47a4e8b90c91..c2a71efd77b0dc78cf08f71dce243fbd8b32add0 100644
--- a/CoreCms.Net.Uni-App/CoreShop/components/coreshop-login-modal/coreshop-login-modal.vue
+++ b/CoreCms.Net.Uni-App/CoreShop/components/coreshop-login-modal/coreshop-login-modal.vue
@@ -1,44 +1,6 @@
-
-
-
-
-
@@ -193,11 +154,6 @@
hideModal() {
this.showLogin = false;
},
- // 去登录
- toAccountLogin() {
- this.showLogin = false;
- this.$u.route('/pages/login/loginByAccount/loginByAccount');
- },
// 小程序,取消登录
closeAuth() {
this.showLogin = false;
@@ -236,12 +192,7 @@
_this.$refs.uToast.show({ title: '登录成功', type: 'success', })
return false
} else {
- // #ifdef MP-WEIXIN
_this.sessionAuthIdTool = res.data.sessionAuthId;
- // #endif
- // #ifndef MP-WEIXIN
- _this.$u.route({ type: 'navigateTo', url: '/pages/login/loginBySMS/loginBySMS?sessionAuthId=' + res.data.sessionAuthId });
- // #endif
}
} else {
_this.$refs.uToast.show({ title: '登录失败,请重试', type: 'error', })
@@ -290,122 +241,7 @@
_this.$u.toast('登录失败,请重试')
}
})
- },
- // #ifdef MP-ALIPAY
- getALICode() {
- let that = this
- uni.login({
- scopes: 'auth_user',
- success: (res) => {
- if (res.authCode) {
- uni.getUserInfo({
- provider: 'alipay',
- success: function (infoRes) {
- if (infoRes.errMsg == "getUserInfo:ok") {
- let userInfo = {
- 'nickname': infoRes.nickName,
- 'avatar': infoRes.avatar
- }
- that.aLiLoginStep1(res.authCode, userInfo);
- }
- },
- fail: function (errorRes) {
- this.$u.toast('未取得用户昵称头像信息');
- }
- });
- } else {
- this.$u.toast('未取得code');
- }
- },
- fail: function (res) {
- this.$u.toast('用户授权失败my.login');
- }
- });
- },
- aLiLoginStep1(code, userInfo) {
- let data = {
- 'code': code,
- 'userInfo': userInfo
- }
- this.$u.api.alilogin1(data).then(res => {
- this.alipayNoLogin = false;
- if (res.status) {
- this.sessionAuthIdTool = res.data.sessionAuthId
- //判断是否返回了token,如果没有,就说明没有绑定账号,跳转到绑定页面
- if (!res.data.hasOwnProperty('token')) {
- this.$u.route({ type: 'redirectTo', url: '/pages/login/loginBySMS/loginBySMS?sessionAuthId=' + res.data.sessionAuthId });
- } else {
- this.$db.set('userToken', res.data.token)
- uni.navigateBack({
- delta: 1
- });
- }
- } else {
- this.$u.toast(res.msg)
- }
- })
- },
- // #endif
- // #ifdef MP-TOUTIAO
- ttLogin() {
- let that = this
- uni.login({
- provider: 'toutiao',
- success: (res) => {
- //console.log(res);
- if (res.errMsg == "login:ok") {
- uni.getUserInfo({
- provider: 'toutiao',
- success: function (infoRes) {
- //console.log(infoRes);
- if (infoRes.errMsg == "getUserInfo:ok") {
- let code = res.code;
- let userInfo = {
- 'nickname': infoRes.userInfo.nickName,
- 'avatar': infoRes.userInfo.avatarUrl,
- 'gender': infoRes.userInfo.gender,
- 'language': infoRes.userInfo.language,
- 'country': infoRes.userInfo.country,
- 'city': infoRes.userInfo.city,
- 'province': infoRes.userInfo.province
- }
- that.ttLoginStep(code, userInfo);
- }
- },
- fail: function (errorRes) {
- this.$u.toast('未取得用户昵称头像信息');
- }
- });
- } else {
- this.$u.toast('未取得code');
- }
- },
- fail: function (res) {
- this.$u.toast('用户授权失败my.login');
- }
- });
- },
- ttLoginStep(code, userInfo) {
- let data = {
- 'code': code,
- 'userInfo': userInfo
- }
- this.$u.api.ttlogin(data).then(res => {
- if (res.status) {
- if (!res.data.hasOwnProperty('token')) {
- this.$u.route({ type: 'redirectTo', url: '/pages/login/loginBySMS/loginBySMS?sessionAuthId=' + res.data.userId });
- } else {
- this.$db.set('userToken', res.data.token)
- uni.navigateBack({
- delta: 1
- });
- }
- } else {
- this.$u.toast(res.msg)
- }
- })
}
- // #endif
}
};
diff --git a/CoreCms.Net.Uni-App/CoreShop/components/coreshop-page/coreshop-video.vue b/CoreCms.Net.Uni-App/CoreShop/components/coreshop-page/coreshop-video.vue
index e050c3a2566a750de4477904a512c856c30df0db..dc35fbeef4d8aba93b4c49c078a7c07113c40544 100644
--- a/CoreCms.Net.Uni-App/CoreShop/components/coreshop-page/coreshop-video.vue
+++ b/CoreCms.Net.Uni-App/CoreShop/components/coreshop-page/coreshop-video.vue
@@ -25,9 +25,7 @@
},
onReady: function (res) {
- // #ifndef MP-ALIPAY
- this.videoContext = uni.createVideoContext('myVideo')
- // #endif
+
},
methods: {
diff --git a/CoreCms.Net.Uni-App/CoreShop/components/coreshop-payments/coreshop-paymentsByAli.vue b/CoreCms.Net.Uni-App/CoreShop/components/coreshop-payments/coreshop-paymentsByAli.vue
deleted file mode 100644
index 1a07e0b1075e0055fea8bb010f905aedd2b16f3f..0000000000000000000000000000000000000000
--- a/CoreCms.Net.Uni-App/CoreShop/components/coreshop-payments/coreshop-paymentsByAli.vue
+++ /dev/null
@@ -1,182 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- {{ item.name }}
-
-
- {{ item.memo }}
-
-
-
-
-
-
-
-
-
-
-
-
-
- 支付中,请稍后...
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreCms.Net.Uni-App/CoreShop/components/coreshop-payments/coreshop-paymentsByApp.vue b/CoreCms.Net.Uni-App/CoreShop/components/coreshop-payments/coreshop-paymentsByApp.vue
deleted file mode 100644
index f1b4a36c0702b2ba115feaa395d4c47c5aad484f..0000000000000000000000000000000000000000
--- a/CoreCms.Net.Uni-App/CoreShop/components/coreshop-payments/coreshop-paymentsByApp.vue
+++ /dev/null
@@ -1,237 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- {{ item.name }}
-
-
- {{ item.memo }}
-
-
-
-
-
-
-
-
-
-
-
-
-
- 支付中,请稍后...
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreCms.Net.Uni-App/CoreShop/components/coreshop-payments/coreshop-paymentsByH5.vue b/CoreCms.Net.Uni-App/CoreShop/components/coreshop-payments/coreshop-paymentsByH5.vue
deleted file mode 100644
index 91b2fd09c8da4d3371337b9e87a14e038ae8bcd3..0000000000000000000000000000000000000000
--- a/CoreCms.Net.Uni-App/CoreShop/components/coreshop-payments/coreshop-paymentsByH5.vue
+++ /dev/null
@@ -1,334 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- {{ item.name }}
-
-
- {{ item.memo }}
-
-
-
-
-
-
-
-
-
-
-
-
-
- 支付中,请稍后...
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreCms.Net.Uni-App/CoreShop/components/coreshop-payments/coreshop-paymentsByTt.vue b/CoreCms.Net.Uni-App/CoreShop/components/coreshop-payments/coreshop-paymentsByTt.vue
deleted file mode 100644
index 27a6d7161ae65222bf93041d7670afd62c7696fd..0000000000000000000000000000000000000000
--- a/CoreCms.Net.Uni-App/CoreShop/components/coreshop-payments/coreshop-paymentsByTt.vue
+++ /dev/null
@@ -1,232 +0,0 @@
-
-
-
-
-
-
-
-
- 支付中,请稍后...
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreCms.Net.Uni-App/CoreShop/components/coreshop-share/shareByAli.vue b/CoreCms.Net.Uni-App/CoreShop/components/coreshop-share/shareByAli.vue
deleted file mode 100644
index ed2459608876c3892aaca7efd037a2d35e6b3224..0000000000000000000000000000000000000000
--- a/CoreCms.Net.Uni-App/CoreShop/components/coreshop-share/shareByAli.vue
+++ /dev/null
@@ -1,130 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreCms.Net.Uni-App/CoreShop/components/coreshop-share/shareByApp.vue b/CoreCms.Net.Uni-App/CoreShop/components/coreshop-share/shareByApp.vue
deleted file mode 100644
index 9224587b94f7617be42beb5e020350e9cf8a7bfc..0000000000000000000000000000000000000000
--- a/CoreCms.Net.Uni-App/CoreShop/components/coreshop-share/shareByApp.vue
+++ /dev/null
@@ -1,265 +0,0 @@
-
-
-
-
-
-
- {{ item.name }}
-
-
-
-
-
-
-
-
-
diff --git a/CoreCms.Net.Uni-App/CoreShop/components/coreshop-share/shareByTt.vue b/CoreCms.Net.Uni-App/CoreShop/components/coreshop-share/shareByTt.vue
deleted file mode 100644
index 7776108f57337c5d532edd882a29d81610ea7022..0000000000000000000000000000000000000000
--- a/CoreCms.Net.Uni-App/CoreShop/components/coreshop-share/shareByTt.vue
+++ /dev/null
@@ -1,124 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreCms.Net.Uni-App/CoreShop/components/coreshop-share/shareByh5.vue b/CoreCms.Net.Uni-App/CoreShop/components/coreshop-share/shareByh5.vue
deleted file mode 100644
index 3b68043e3bd9402ed2fedff18b4c629f65e8323c..0000000000000000000000000000000000000000
--- a/CoreCms.Net.Uni-App/CoreShop/components/coreshop-share/shareByh5.vue
+++ /dev/null
@@ -1,185 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CoreCms.Net.Uni-App/CoreShop/main.js b/CoreCms.Net.Uni-App/CoreShop/main.js
index 7bef6ec8931e71f0391b1d32acfef0398b760ccd..0c4cb4aabfbada5f26b99bd073b7ae68bc64e277 100644
--- a/CoreCms.Net.Uni-App/CoreShop/main.js
+++ b/CoreCms.Net.Uni-App/CoreShop/main.js
@@ -23,6 +23,15 @@ Vue.use(uView);
let mpShare = require('@/uview-ui/libs/mixin/mpShare.js');
Vue.mixin(mpShare)
+//全局引用常量配置文件,用于template内代码使用
+Vue.mixin({
+ data() {
+ return {
+ $globalConstVars: GlobalConstVars
+ }
+ }
+})
+
Vue.config.productionTip = false
Vue.prototype.$upload = Upload;
Vue.prototype.$common = Common;
diff --git a/CoreCms.Net.Uni-App/CoreShop/manifest.json b/CoreCms.Net.Uni-App/CoreShop/manifest.json
index d3a60f7730714147efcc15c3e71fe1a6aa33cc2b..4fe48522ef5942a41c26acf3895846db50f819e4 100644
--- a/CoreCms.Net.Uni-App/CoreShop/manifest.json
+++ b/CoreCms.Net.Uni-App/CoreShop/manifest.json
@@ -102,7 +102,7 @@
"quickapp" : {},
/* 快应用特有相关 */
"mp-weixin" : {
- "appid" : "wx11d95cdaee6058f6",
+ "appid" : "wx6fc139d4de0b470f",
"setting" : {
"urlCheck" : true,
"postcss" : true,
diff --git a/CoreCms.Net.Uni-App/CoreShop/pages.json b/CoreCms.Net.Uni-App/CoreShop/pages.json
index ed355c426107248b73070f0a06009357d3f33f2b..9c95269cc3c9bdb88070a64d814b9000367c28e5 100644
--- a/CoreCms.Net.Uni-App/CoreShop/pages.json
+++ b/CoreCms.Net.Uni-App/CoreShop/pages.json
@@ -47,13 +47,6 @@
"navigationBarTitleText": "会员中心"
}
},
- {
- "path": "pages/search/search",
- "style": {
- "navigationBarTextStyle": "black",
- "navigationBarTitleText": "搜索"
- }
- },
{
"path": "pages/category/index/index",
"style": {
@@ -67,201 +60,270 @@
"navigationBarTextStyle": "black",
"navigationBarTitleText": "商品列表"
}
- },
- {
- "path": "pages/goods/goodDetails/goodDetails",
- "style": {
- "navigationBarTextStyle": "black",
- // #ifdef H5
- "titleNView": false,
- // #endif
- "navigationBarTitleText": "商品详情",
- "navigationStyle": "custom"
- }
- },
- {
- "path": "pages/placeOrder/index/index",
- "style": {
- "navigationBarTextStyle": "black",
- "navigationBarTitleText": "提交订单"
- }
- },
- {
- "path": "pages/placeOrder/invoice/invoice",
- "style": {
- "navigationBarTextStyle": "black",
- "navigationBarTitleText": "发票"
- }
- },
- {
- "path": "pages/placeOrder/storeList/storeList",
- "style": {
- "navigationBarTextStyle": "black",
- "navigationBarTitleText": "门店列表"
- }
- },
- {
- "path": "pages/payment/pay/pay",
- "style": {
- "navigationBarTextStyle": "black",
- "navigationBarTitleText": "支付"
- }
- },
- {
- "path": "pages/payment/waiting/waiting",
- "style": {
- "navigationBarTextStyle": "black",
- "navigationBarTitleText": "等待支付"
- }
- },
- {
- "path": "pages/payment/result/result",
- "style": {
- "navigationBarTextStyle": "black",
- "navigationBarTitleText": "支付结果"
- }
- },
-
- {
- "path": "pages/article/details/details",
- "style": {
- "navigationBarTextStyle": "black",
- "navigationBarTitleText": "文章详情"
- }
- },
- {
- "path": "pages/article/list/list",
- "style": {
- "navigationBarTextStyle": "black",
- "navigationBarTitleText": "文章列表"
- }
- },
- {
- "path": "pages/login/loginBySMS/loginBySMS",
- "style": {
- "navigationBarTextStyle": "black",
- "navigationBarTitleText": "授权登录"
- }
- },
- {
- "path": "pages/share/sharePoster/sharePoster",
- "style": {
- "navigationBarTextStyle": "black",
- "navigationBarTitleText": "分享"
- }
- },
- {
- "path": "pages/activity/pinTuan/list/list",
- "style": {
- "navigationBarTextStyle": "black",
- "navigationBarTitleText": "拼团列表"
- }
- },
+ }
+ ],
+ "subpackages": [
{
- "path": "pages/activity/pinTuan/details/details",
- "style": {
- "navigationBarTextStyle": "black",
- "navigationBarTitleText": "拼团详情"
- }
+ "root": "pages/share",
+ "name": "share",
+ "pages": [
+ {
+ "path": "sharePoster/sharePoster",
+ "style": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "分享"
+ }
+ },
+ {
+ "path": "jump/jump",
+ "style": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "加载中..."
+ }
+ }
+ ]
},
{
- "path": "pages/activity/seckill/list/list",
- "style": {
- "navigationBarTextStyle": "black",
- "navigationBarTitleText": "秒杀列表"
- }
+ "root": "pages/serviceGoods",
+ "name": "serviceGoods",
+ "pages": [
+ {
+ "path": "index/index",
+ "style": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "服务商品列表"
+ }
+ },
+ {
+ "path": "details/details",
+ "style": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "服务商品详情"
+ }
+ }
+ ]
},
{
- "path": "pages/activity/seckill/details/details",
- "style": {
- "navigationBarTextStyle": "black",
- "navigationBarTitleText": "秒杀详情"
- }
+ "root": "pages/map",
+ "name": "map",
+ "pages": [
+ {
+ "path": "map",
+ "style": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "地图展示"
+ }
+ }
+ ]
},
{
- "path": "pages/activity/groupBuying/list/list",
- "style": {
- "navigationBarTextStyle": "black",
- "navigationBarTitleText": "团购列表"
- }
+ "root": "pages/reward",
+ "name": "reward",
+ "pages": [
+ {
+ "path": "reward",
+ "style": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "打赏"
+ }
+ }
+ ]
},
{
- "path": "pages/activity/groupBuying/details/details",
- "style": {
- "navigationBarTextStyle": "black",
- "navigationBarTitleText": "团购详情"
- }
+ "root": "pages/search",
+ "name": "search",
+ "pages": [
+ {
+ "path": "search",
+ "style": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "搜索"
+ }
+ }
+ ]
},
{
- "path": "pages/form/details/details",
- "style": {
- "navigationBarTextStyle": "black",
- "navigationBarTitleText": "万能表单"
- }
+ "root": "pages/placeOrder",
+ "name": "placeOrder",
+ "pages": [
+ {
+ "path": "index/index",
+ "style": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "提交订单"
+ }
+ },
+ {
+ "path": "invoice/invoice",
+ "style": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "发票"
+ }
+ },
+ {
+ "path": "storeList/storeList",
+ "style": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "门店列表"
+ }
+ }
+ ]
},
-
{
- "path": "pages/share/jump/jump",
- "style": {
- "navigationBarTextStyle": "black",
- // #ifdef H5
- "titleNView": false,
- // #endif
- "navigationBarTitleText": "加载中..."
- }
+ "root": "pages/payment",
+ "name": "payment",
+ "pages": [
+ {
+ "path": "pay/pay",
+ "style": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "支付"
+ }
+ },
+ {
+ "path": "waiting/waiting",
+ "style": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "等待支付"
+ }
+ },
+ {
+ "path": "result/result",
+ "style": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "支付结果"
+ }
+ }
+ ]
},
{
- "path": "pages/storeMap/storeMap",
- "style": {
- "navigationBarTextStyle": "black",
- "navigationBarTitleText": "门店列表"
- }
+ "root": "pages/storeMap",
+ "name": "storeMap",
+ "pages": [
+ {
+ "path": "storeMap",
+ "style": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "门店列表"
+ }
+ }
+ ]
},
-
{
- "path": "pages/serviceGoods/index/index",
- "style": {
- "navigationBarTextStyle": "black",
- "navigationBarTitleText": "服务商品列表"
- }
+ "root": "pages/goods",
+ "name": "goods",
+ "pages": [
+ {
+ "path": "goodDetails/goodDetails",
+ "style": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "商品详情",
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "goodComments/goodComments",
+ "style": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "商品评论"
+ }
+ }
+ ]
},
{
- "path": "pages/serviceGoods/details/details",
- "style": {
- "navigationBarTextStyle": "black",
- "navigationBarTitleText": "服务商品详情"
- }
+ "root": "pages/form",
+ "name": "form",
+ "pages": [
+ {
+ "path": "details/details",
+ "style": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "万能表单"
+ }
+ }
+ ]
},
{
- "path": "pages/coupon/coupon",
- "style": {
- "navigationBarTextStyle": "black",
- "navigationBarTitleText": "优惠券列表"
- }
+ "root": "pages/coupon",
+ "name": "coupon",
+ "pages": [
+ {
+ "path": "coupon",
+ "style": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "优惠券列表"
+ }
+ }
+ ]
},
{
- "path": "pages/map/map",
- "style": {
- "navigationBarTextStyle": "black",
- "navigationBarTitleText": "地图展示"
- }
+ "root": "pages/article",
+ "name": "article",
+ "pages": [
+ {
+ "path": "details/details",
+ "style": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "文章详情"
+ }
+ },
+ {
+ "path": "list/list",
+ "style": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "文章列表"
+ }
+ }
+ ]
},
{
- "path": "pages/goods/goodComments/goodComments",
- "style": {
- "navigationBarTextStyle": "black",
- "navigationBarTitleText": "商品评论"
- }
+ "root": "pages/activity",
+ "name": "template",
+ "pages": [
+ {
+ "path": "pinTuan/list/list",
+ "style": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "拼团列表"
+ }
+ },
+ {
+ "path": "pinTuan/details/details",
+ "style": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "拼团详情"
+ }
+ },
+ {
+ "path": "seckill/list/list",
+ "style": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "秒杀列表"
+ }
+ },
+ {
+ "path": "seckill/details/details",
+ "style": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "秒杀详情"
+ }
+ },
+ {
+ "path": "groupBuying/list/list",
+ "style": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "团购列表"
+ }
+ },
+ {
+ "path": "groupBuying/details/details",
+ "style": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "团购详情"
+ }
+ }
+ ]
},
- {
- "path": "pages/reward/reward",
- "style": {
- "navigationBarTextStyle": "black",
- "navigationBarTitleText": "打赏"
- }
- }
- ],
- "subpackages": [
{
"root": "pages/member",
"name": "member",
@@ -741,7 +803,6 @@
},
{
"pagePath": "pages/index/member/member",
- //"pagePath": "pages/login/loginByAccount/loginByAccount",
"text": "我的",
"iconPath": "static/images/indexMenus/index04.png",
"selectedIconPath": "static/images/indexMenus/index04_1.png"
diff --git a/CoreCms.Net.Uni-App/CoreShop/pages/activity/groupBuying/details/details.vue b/CoreCms.Net.Uni-App/CoreShop/pages/activity/groupBuying/details/details.vue
index 07740be2b5e1de21ebcda6319c995dad6d7f69ab..c4f88a9c268730a89cec1aa8ddc23d0ebfacf965 100644
--- a/CoreCms.Net.Uni-App/CoreShop/pages/activity/groupBuying/details/details.vue
+++ b/CoreCms.Net.Uni-App/CoreShop/pages/activity/groupBuying/details/details.vue
@@ -148,21 +148,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -342,18 +328,11 @@
@@ -44,15 +27,7 @@
-
-
-
-
- 请将此页面添加浏览器书签
- 方便下次浏览
-
-
@@ -148,18 +123,8 @@
this.getGoods();
},
mounted() {
- // #ifdef H5 || APP-PLUS || APP-PLUS-NVUE
- window.addEventListener('scroll', this.handleScroll)
- // #endif
},
updated() {
- // #ifndef MP-WEIXIN || MP-TOUTIAO || MP-ALIPAY
- // 获取上半部分的整体高度
- this.$nextTick(() => {
- let h = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; //浏览器高度
- this.top_height = this.$refs.myStore.$el.clientHeight;
- })
- // #endif
},
methods: {
// 显示modal弹出框
@@ -174,7 +139,6 @@
goSearch() {
let pages = getCurrentPages();
let prevPage = pages[pages.length - 2];
- // #ifdef H5 || MP-WEIXIN || APP-PLUS || APP-PLUS-NVUE || MP-TOUTIAO
if (prevPage && prevPage.route) {
let search_flag = prevPage.route;
if (search_flag == 'pages/search/search') {
@@ -187,21 +151,6 @@
} else {
this.$u.route('/pages/search/search');
}
- // #endif
- // #ifdef MP-ALIPAY
- if (prevPage && prevPage.__proto__.route) {
- let search_flag = prevPage.__proto__.route;
- if (search_flag == 'pages/search/search') {
- uni.navigateBack({
- delta: 1
- });
- } else {
- this.$u.route('/pages/search/search');
- }
- } else {
- this.$u.route('/pages/search/search');
- }
- // #endif
},
//取得商品数据
@@ -265,25 +214,7 @@
page: 11,
}
let pageUrl = 'pages/share/jump/jump';
- // #ifdef H5
- data.client = 1;
- data.url = this.$globalConstVars.apiBaseUrl + 'wap/' + pageUrl;
- // #endif
- // #ifdef MP-WEIXIN
data.client = 2;
- data.url = pageUrl;
- // #endif
- // #ifdef MP-ALIPAY
- data.client = 3;
- data.url = pageUrl;
- // #endif
- // #ifdef APP-PLUS || APP-PLUS-NVUE
- data.client = 5;
- data.url = this.$globalConstVars.apiBaseUrl + 'wap/' + pageUrl;
- // #endif
- // #ifdef MP-TOUTIAO
- data.client = 6;
- // #endif
let userToken = this.$db.get('userToken')
if (userToken && userToken != '') {
data.token = userToken
diff --git a/CoreCms.Net.Uni-App/CoreShop/pages/member/agent/panel/panel.vue b/CoreCms.Net.Uni-App/CoreShop/pages/member/agent/panel/panel.vue
index 80affeff83dc10d6dfd0f98877d91f5f83acd6f0..1485399d3cdb0494456782b1c6f5fe47ecdd0d25 100644
--- a/CoreCms.Net.Uni-App/CoreShop/pages/member/agent/panel/panel.vue
+++ b/CoreCms.Net.Uni-App/CoreShop/pages/member/agent/panel/panel.vue
@@ -184,25 +184,8 @@
page: 11,
}
let pageUrl = 'pages/share/jump/jump';
- // #ifdef H5
- data.client = 1;
- data.url = this.$globalConstVars.apiBaseUrl + 'wap/' + pageUrl;
- // #endif
- // #ifdef MP-WEIXIN
data.client = 2;
- data.url = pageUrl;
- // #endif
- // #ifdef MP-ALIPAY
- data.client = 3;
- data.url = pageUrl;
- // #endif
- // #ifdef APP-PLUS || APP-PLUS-NVUE
- data.client = 5;
- data.url = this.$globalConstVars.apiBaseUrl + 'wap/' + pageUrl;
- // #endif
- // #ifdef MP-TOUTIAO
- data.client = 6;
- // #endif
+
let userToken = this.$db.get('userToken')
if (userToken && userToken != '') {
data.token = userToken
diff --git a/CoreCms.Net.Uni-App/CoreShop/pages/member/balance/bankcard/bankcard.vue b/CoreCms.Net.Uni-App/CoreShop/pages/member/balance/bankcard/bankcard.vue
index 556741df65f0ef2191b35a8e0d1899bcc9983958..49722058a9b7aa8efefef6e4d2a16376c5420ad5 100644
--- a/CoreCms.Net.Uni-App/CoreShop/pages/member/balance/bankcard/bankcard.vue
+++ b/CoreCms.Net.Uni-App/CoreShop/pages/member/balance/bankcard/bankcard.vue
@@ -121,17 +121,7 @@
let pages = getCurrentPages();//当前页
let beforePage = pages[pages.length - 2];//上个页面
- // #ifdef H5 || APP-PLUS || APP-PLUS-NVUE
- beforePage.cardInfo = this.cards[index]
- // #endif
-
- // #ifdef MP-WEIXIN
beforePage.$vm.cardInfo = this.cards[index]
- // #endif
-
- // #ifdef MP-ALIPAY || MP-TOUTIAO
- this.$db.set('userCardInfo', this.cards[index], true);
- // #endif
uni.navigateBack({
delta: 1
diff --git a/CoreCms.Net.Uni-App/CoreShop/pages/member/balance/withdrawCash/withdrawCash.scss b/CoreCms.Net.Uni-App/CoreShop/pages/member/balance/withdrawCash/withdrawCash.scss
index ebbafd29824f06967de42a3c050b4bd01a46f518..95b8b371eb211fdff1bdfbaf87a8b8ef37d2f449 100644
--- a/CoreCms.Net.Uni-App/CoreShop/pages/member/balance/withdrawCash/withdrawCash.scss
+++ b/CoreCms.Net.Uni-App/CoreShop/pages/member/balance/withdrawCash/withdrawCash.scss
@@ -4,8 +4,4 @@
.withdrawcash-input { display: flex; align-items: center; font-size: 50upx; border-bottom: 2upx solid #e8e8e8; padding-bottom: 20upx; width: 95%; max-width: 95%;
text { font-size: 40upx; }
input { display: inline-block; min-width: 500upx; padding-left: 20upx; }
-}
-
-/* #ifdef MP-ALIPAY */
-.coreshop-cell-hd-title input { font-size: 24px; height: 18px; }
-/* #endif */
+}
\ No newline at end of file
diff --git a/CoreCms.Net.Uni-App/CoreShop/pages/member/balance/withdrawCash/withdrawCash.vue b/CoreCms.Net.Uni-App/CoreShop/pages/member/balance/withdrawCash/withdrawCash.vue
index 0a2640d7200b1b82acc9d66b61ca55c0571c0113..4e2b5aa0c0219d09e594c72d77e395d911c78a06 100644
--- a/CoreCms.Net.Uni-App/CoreShop/pages/member/balance/withdrawCash/withdrawCash.vue
+++ b/CoreCms.Net.Uni-App/CoreShop/pages/member/balance/withdrawCash/withdrawCash.vue
@@ -75,13 +75,6 @@
this.userInfo()
},
onShow() {
- // #ifdef MP-ALIPAY || MP-TOUTIAO
- let userCardInfo = this.$db.get('userCardInfo', true);
- if (userCardInfo) {
- this.cardInfo = userCardInfo;
- this.$db.del('userCardInfo', true);
- }
- // #endif
},
computed: {
userbankCard() {
diff --git a/CoreCms.Net.Uni-App/CoreShop/pages/member/distribution/myStore/myStore.vue b/CoreCms.Net.Uni-App/CoreShop/pages/member/distribution/myStore/myStore.vue
index 07dc3621eccc35ba48695edb7b79aea3aa102762..90470ffcd19055371ab68eb7e3d9c60e4db500ef 100644
--- a/CoreCms.Net.Uni-App/CoreShop/pages/member/distribution/myStore/myStore.vue
+++ b/CoreCms.Net.Uni-App/CoreShop/pages/member/distribution/myStore/myStore.vue
@@ -15,26 +15,9 @@
{{totalGoods}}
全部宝贝
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -45,15 +28,7 @@
-
-
-
-
- 请将此页面添加浏览器书签
- 方便下次浏览
-
-
@@ -148,18 +123,8 @@
this.getGoods();
},
mounted() {
- // #ifdef H5 || APP-PLUS || APP-PLUS-NVUE
- window.addEventListener('scroll', this.handleScroll)
- // #endif
},
updated() {
- // #ifndef MP-WEIXIN || MP-TOUTIAO || MP-ALIPAY
- // 获取上半部分的整体高度
- this.$nextTick(() => {
- let h = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; //浏览器高度
- this.top_height = this.$refs.myStore.$el.clientHeight;
- })
- // #endif
},
methods: {
// 显示modal弹出框
@@ -174,7 +139,6 @@
goSearch() {
let pages = getCurrentPages();
let prevPage = pages[pages.length - 2];
- // #ifdef H5 || MP-WEIXIN || APP-PLUS || APP-PLUS-NVUE || MP-TOUTIAO
if (prevPage && prevPage.route) {
let search_flag = prevPage.route;
if (search_flag == 'pages/search/search') {
@@ -187,21 +151,6 @@
} else {
this.$u.route('/pages/search/search');
}
- // #endif
- // #ifdef MP-ALIPAY
- if (prevPage && prevPage.__proto__.route) {
- let search_flag = prevPage.__proto__.route;
- if (search_flag == 'pages/search/search') {
- uni.navigateBack({
- delta: 1
- });
- } else {
- this.$u.route('/pages/search/search');
- }
- } else {
- this.$u.route('/pages/search/search');
- }
- // #endif
},
//取得商品数据
@@ -266,25 +215,8 @@
let pages = getCurrentPages()
let page = pages[pages.length - 1]
let pageUrl = 'pages/share/jump/jump';
- // #ifdef H5
- data.client = 1;
- data.url = this.$globalConstVars.apiBaseUrl + 'wap/' + pageUrl;
- // #endif
- // #ifdef MP-WEIXIN
data.client = 2;
- data.url = pageUrl;
- // #endif
- // #ifdef MP-ALIPAY
- data.client = 3;
- data.url = pageUrl;
- // #endif
- // #ifdef APP-PLUS || APP-PLUS-NVUE
- data.client = 5;
- data.url = this.$globalConstVars.apiBaseUrl + 'wap/' + pageUrl;
- // #endif
- // #ifdef MP-TOUTIAO
- data.client = 6;
- // #endif
+
let userToken = this.$db.get('userToken')
if (userToken && userToken != '') {
data.token = userToken
diff --git a/CoreCms.Net.Uni-App/CoreShop/pages/member/distribution/panel/panel.vue b/CoreCms.Net.Uni-App/CoreShop/pages/member/distribution/panel/panel.vue
index 455e1e573ee3cabc24536f99487ec6c2c6c714ce..68f1c8b188c21927208ba13e838d00fca3166822 100644
--- a/CoreCms.Net.Uni-App/CoreShop/pages/member/distribution/panel/panel.vue
+++ b/CoreCms.Net.Uni-App/CoreShop/pages/member/distribution/panel/panel.vue
@@ -183,25 +183,8 @@
page: 4,
}
let pageUrl = 'pages/share/jump/jump';
- // #ifdef H5
- data.client = 1;
- data.url = this.$globalConstVars.apiBaseUrl + 'wap/' + pageUrl;
- // #endif
- // #ifdef MP-WEIXIN
data.client = 2;
- data.url = pageUrl;
- // #endif
- // #ifdef MP-ALIPAY
- data.client = 3;
- data.url = pageUrl;
- // #endif
- // #ifdef APP-PLUS || APP-PLUS-NVUE
- data.client = 5;
- data.url = this.$globalConstVars.apiBaseUrl + 'wap/' + pageUrl;
- // #endif
- // #ifdef MP-TOUTIAO
- data.client = 6;
- // #endif
+
let userToken = this.$db.get('userToken')
if (userToken && userToken != '') {
data.token = userToken
diff --git a/CoreCms.Net.Uni-App/CoreShop/pages/member/invite/index.vue b/CoreCms.Net.Uni-App/CoreShop/pages/member/invite/index.vue
index 6e8d75cad8e67e45430d0232e9c5dbad012d1376..ccde8d717d8ba8783702e920cc0087c1f361d803 100644
--- a/CoreCms.Net.Uni-App/CoreShop/pages/member/invite/index.vue
+++ b/CoreCms.Net.Uni-App/CoreShop/pages/member/invite/index.vue
@@ -27,16 +27,9 @@
提交
-
-
-
-
-
@@ -46,10 +39,7 @@
diff --git a/CoreCms.Net.Uni-App/CoreShop/pages/payment/pay/pay.vue b/CoreCms.Net.Uni-App/CoreShop/pages/payment/pay/pay.vue
index 26151b9f78eac9442b1b14b220961615f44ebed1..c89c530a7aee4cba3e7c8cb89eaca51e32af244b 100644
--- a/CoreCms.Net.Uni-App/CoreShop/pages/payment/pay/pay.vue
+++ b/CoreCms.Net.Uni-App/CoreShop/pages/payment/pay/pay.vue
@@ -84,21 +84,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -110,25 +96,7 @@