diff --git a/App.vue b/App.vue
index 9ba8a00..cc5c84b 100644
--- a/App.vue
+++ b/App.vue
@@ -3,9 +3,15 @@
onLaunch: function() {
this.$store.commit('initConfig')
this.$store.commit('getCategoryList')
+ // 注释掉token检查,允许未登录用户访问所有页面
+ /*
if(uni.getStorageSync('token')){
this.$store.commit('getQrCode')
}
+ */
+
+ // 无需token,直接获取二维码
+ this.$store.commit('getQrCode')
},
onShow: function() {
},
diff --git a/api/api.js b/api/api.js
index d566315..d852c8f 100644
--- a/api/api.js
+++ b/api/api.js
@@ -45,7 +45,8 @@ export function api(key, data, callback, loadingTitle) {
limit[storageKey] = new Date().getTime()
}
- //必须登录
+ //必须登录 - 注释掉登录检查
+ /*
if (req.auth) {
if (!uni.getStorageSync('token')) {
utils.toLogin()
@@ -53,6 +54,7 @@ export function api(key, data, callback, loadingTitle) {
return Promise.reject()
}
}
+ */
// 接口防抖
if(req.debounce){
diff --git a/api/http.js b/api/http.js
index 6c3da63..b02666d 100644
--- a/api/http.js
+++ b/api/http.js
@@ -1,4 +1,3 @@
-
import Vue from 'vue'
import utils from '../utils/utils.js'
import store from '../store/store.js'
@@ -32,6 +31,8 @@ function http(uri, data, callback, method = 'GET', showLoading, title) {
uni.hideLoading();
}
+ // 注释掉登录状态检查
+ /*
if(res.statusCode == 401 ||
res.data.message == '操作失败,token非法无效!' ||
res.data.message == '操作失败,用户不存在!'){
@@ -39,6 +40,7 @@ function http(uri, data, callback, method = 'GET', showLoading, title) {
console.error('登录过期');
utils.toLogin()
}
+ */
if(res.statusCode == 200 && res.data.code != 200
&& res.data.code != 902){
diff --git a/api/model/login.js b/api/model/login.js
index 4503642..b8f46d1 100644
--- a/api/model/login.js
+++ b/api/model/login.js
@@ -1,33 +1,31 @@
-
-
// 登录相关接口
const api = {
// 微信登录接口
wxLogin: {
url: '/login_common/appletLogin',
- method: 'GET',
- limit : 500,
+ method: 'GET',
+ limit: 500,
},
// 获取绑定手机号码
bindPhone: {
url: '/login_common/bindPhone',
method: 'GET',
- auth: true,
+ // auth: true,
},
// 修改个人信息接口
updateInfo: {
url: '/info_common/updateInfo',
method: 'POST',
- auth: true,
- limit : 500,
- showLoading : true,
+ limit: 500,
+ showLoading: true,
+ // auth: true,
},
// 获取个人信息
getInfo: {
url: '/info_common/getInfo',
method: 'GET',
- auth: true,
+ // auth: true,
},
}
diff --git a/components/base/tabbar.vue b/components/base/tabbar.vue
index 9c70362..7ee54a7 100644
--- a/components/base/tabbar.vue
+++ b/components/base/tabbar.vue
@@ -28,13 +28,7 @@
},
data() {
return {
- list: [{
- "selectedIconPath": "/static/image/tabbar/home-active.png",
- "iconPath": "/static/image/tabbar/home.png",
- "pagePath": "/pages/index/index",
- "title": "首页",
- key: 'home',
- },
+ list: [
{
"selectedIconPath": "/static/image/tabbar/product-list-active.png",
"iconPath": "/static/image/tabbar/product-list.png",
diff --git a/components/config/configPopup.vue b/components/config/configPopup.vue
index 6555496..b725e44 100644
--- a/components/config/configPopup.vue
+++ b/components/config/configPopup.vue
@@ -1,6 +1,6 @@
\ No newline at end of file
diff --git a/manifest.json b/manifest.json
index 3352ade..6c3b6b1 100644
--- a/manifest.json
+++ b/manifest.json
@@ -52,7 +52,7 @@
"quickapp" : {},
/* 小程序特有相关 */
"mp-weixin" : {
- "appid" : "wx28679cb649907e7e",
+ "appid" : "wxe7ae8cbe1673834c",
"setting" : {
"urlCheck" : false
},
@@ -99,5 +99,5 @@
}
},
// i卡不用配置 a卡才要
- "sassImplementationName": "node-sass"
+ "sassImplementationName" : "node-sass"
}
diff --git a/pages.json b/pages.json
index c285778..841cd5a 100644
--- a/pages.json
+++ b/pages.json
@@ -1,20 +1,14 @@
{
- "pages": [{
- "path": "pages/index/index",
- "style": {
- "navigationBarTitleText": "",
- "enablePullDownRefresh": true
- }
- },
+ "pages": [
{
- "path": "pages/index/order",
+ "path": "pages/index/category",
"style": {
- "navigationBarTitleText": "",
+ "navigationBarTitleText": "首页",
"enablePullDownRefresh": true
}
},
{
- "path": "pages/index/category",
+ "path": "pages/index/order",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": true
@@ -41,7 +35,7 @@
}
],
"preloadRule": {
- "pages/index/index": {
+ "pages/index/order": {
"network": "all",
"packages": ["pages_order"]
}
diff --git a/pages/index/category.vue b/pages/index/category.vue
index 3beb301..1f0d01e 100644
--- a/pages/index/category.vue
+++ b/pages/index/category.vue
@@ -1,75 +1,83 @@
-
+
-
+
+
+
+ 搜索
+
-
+
-
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
-
-
-
+
+ -->
+
+
+
+
+
+
+
+ {{ item2.name }}
+
+
+ {{ item2.desc }}
+
+
+
+
+
+
+
+
+
+
+
@@ -78,6 +86,46 @@
+
\ No newline at end of file
diff --git a/pages_order/auth/loginAndRegisterAndForgetPassword.vue b/pages_order/auth/loginAndRegisterAndForgetPassword.vue
index 1680203..5424344 100644
--- a/pages_order/auth/loginAndRegisterAndForgetPassword.vue
+++ b/pages_order/auth/loginAndRegisterAndForgetPassword.vue
@@ -4,9 +4,9 @@
-
+
- {{titleList[titleIndex]}}
+ {{ titleList[titleIndex] }}
@@ -18,12 +18,12 @@
-
+
+ clearable :customStyle="{ backgroundColor: '#f6f6f6' }">
@@ -31,7 +31,7 @@
请你阅读并同意我们的《隐私条款》和《隐私条款》和《服务协议》
@@ -44,20 +44,20 @@
-
+
- {{titleList[titleIndex]}}
+ {{ titleList[titleIndex] }}
+ clearable :customStyle="{ backgroundColor: '#f6f6f6' }">
+ clearable :customStyle="{ backgroundColor: '#f6f6f6' }">
@@ -65,29 +65,28 @@
{{tips}}
+ shape='circle'>{{ tips }}
+ border="surround" shape='circle' :customStyle="{ backgroundColor: '#f6f6f6' }">
+ shape='circle' :customStyle="{ backgroundColor: '#f6f6f6' }">
-
-
+
+
-
-
+
+
-
+
-
+
@@ -109,239 +108,240 @@
\ No newline at end of file
diff --git a/pages_order/auth/wxLogin.vue b/pages_order/auth/wxLogin.vue
index 0cc5df2..17ce7fc 100644
--- a/pages_order/auth/wxLogin.vue
+++ b/pages_order/auth/wxLogin.vue
@@ -4,10 +4,17 @@
-
+
+
+
+ 敢为人鲜
+
+
+
+
@@ -61,10 +71,10 @@
},
onLoad(query) {
if (query.shareId) {
- uni.setStorageSync('shareId', query.shareId)
+ uni.setStorageSync('shareId', query.shareId) // 存储分享Id
}
if(query.path){
- this.config = query
+ this.config = query // 从路由拿取配置?
}
},
methods: {
@@ -132,13 +142,11 @@
all: unset;
width: 80%;
height: 100rpx;
- background-color: $uni-color;
- color: #fff;
display: flex;
justify-content: center;
align-items: center;
margin: 20rpx 0;
- border-radius: 20rpx;
+ border-radius: 50rpx;
border: none;
&::after{
@@ -152,22 +160,32 @@
}
}
.b2{
- background-color: rgba($uni-color, 0.2);
- color: $uni-color;
+ // background-color: rgba($uni-color, 0.2);
+ color: #999;
+ border: 2rpx solid;
+ position: relative;
+ .config{
+ position: absolute;
+ bottom: -110%;
+ font-size: 24rpx;
+ text-align: center;
+ line-height: 40rpx;
+ width: 100%;
+ .text-privacy{
+ color: inherit;
+ text-align: left;
+ }
+ text{
+ color: $uni-color;
+ }
+ }
}
.mt{
+ color: #fff;
+ background-color: $uni-color;
margin-top: 200rpx;
}
- .config{
- position: absolute;
- bottom: 0;
- font-size: 24rpx;
- text-align: center;
- line-height: 40rpx;
- text{
- color: $uni-color;
- }
- }
+
}
diff --git a/static/image/中森明菜.webp b/static/image/中森明菜.webp
new file mode 100644
index 0000000..2a200c2
Binary files /dev/null and b/static/image/中森明菜.webp differ
diff --git a/store/store.js b/store/store.js
index 0151305..e7e45a0 100644
--- a/store/store.js
+++ b/store/store.js
@@ -153,16 +153,19 @@ const store = new Vuex.Store({
if(reLaunch){
uni.reLaunch({
- url: '/pages/index/index'
+ url: '/pages/index/category'
})
}
},
getQrCode(state) {
let that = this;
+ // 注释掉登录检查
+ /*
if(!uni.getStorageSync('token')){
return
}
+ */
uni.getImageInfo({
src: `${Vue.prototype.$config.baseUrl}/info_common/getInviteCode?token=${uni.getStorageSync('token')}`,
success : res => {
diff --git a/uni.scss b/uni.scss
index 323ba6f..6b6a8aa 100644
--- a/uni.scss
+++ b/uni.scss
@@ -12,7 +12,7 @@
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
-$uni-color: #eb3300;
+$uni-color: #019245;
/* 行为相关颜色 */
$uni-color-primary: #007aff;
@@ -75,6 +75,9 @@ $uni-font-size-subtitle:26px;
$uni-color-paragraph: #3F536E; // 文章段落颜色
$uni-font-size-paragraph:15px;
+// 更改uv插件的主要颜色位主题颜色
+$uv-primary: $uni-color;
+
.uni-color-btn{
border-radius: 40rpx;
diff --git a/uni_modules/uv-ui-tools/libs/util/route.js b/uni_modules/uv-ui-tools/libs/util/route.js
index 80c0afd..cf6689c 100644
--- a/uni_modules/uv-ui-tools/libs/util/route.js
+++ b/uni_modules/uv-ui-tools/libs/util/route.js
@@ -30,7 +30,7 @@ class Router {
mixinParam(url, params) {
url = url && this.addRootPath(url)
- // 使用正则匹配,主要依据是判断是否有"/","?","="等,如“/page/index/index?name=mary"
+ // 使用正则匹配,主要依据是判断是否有"/","?","="等,如"page/index/index?name=mary"
// 如果有url中有get参数,转换后无需带上"?"
let query = ''
if (/.*\/.*\?.*=.*/.test(url)) {
@@ -61,13 +61,13 @@ class Router {
// 如果本次跳转的路径和本页面路径一致,不执行跳转,防止用户快速点击跳转按钮,造成多次跳转同一个页面的问题
if (mergeConfig.url === page()) return
- if (params.intercept) {
- mergeConfig.intercept = params.intercept
- }
// params参数也带给拦截器
mergeConfig.params = params
// 合并内外部参数
mergeConfig = deepMerge(this.config, mergeConfig)
+
+ // 注释掉拦截器逻辑,直接执行跳转
+ /*
// 判断用户是否定义了拦截器
if (typeof mergeConfig.intercept === 'function') {
// 定一个promise,根据用户执行resolve(true)或者resolve(false)来决定是否进行路由跳转
@@ -79,6 +79,10 @@ class Router {
} else {
this.openPage(mergeConfig)
}
+ */
+
+ // 直接执行页面跳转,不进行拦截
+ this.openPage(mergeConfig)
}
// 执行路由跳转
diff --git a/utils/utils.js b/utils/utils.js
index b418508..9a2017d 100644
--- a/utils/utils.js
+++ b/utils/utils.js
@@ -200,7 +200,7 @@ export function navigateTo(...args){
export function navigateBack(num = -1){
if(getCurrentPages().length == 1){
uni.reLaunch({
- url: '/pages/index/index'
+ url: '/pages/index/category'
})
return
}