parent
f5cab812f0
commit
a3f10adea3
@ -1,62 +1,61 @@
|
|||||||
{
|
{
|
||||||
"pages": [
|
"pages": [
|
||||||
|
"pages/index/index",
|
||||||
"pages/index/index",
|
"pages/logs/logs",
|
||||||
"pages/logs/logs",
|
"pages/user/user",
|
||||||
"pages/user/user",
|
"pages/basket/basket",
|
||||||
"pages/basket/basket",
|
"pages/category/category",
|
||||||
"pages/category/category",
|
"pages/search-page/search-page",
|
||||||
"pages/search-page/search-page",
|
"pages/delivery-address/delivery-address",
|
||||||
"pages/delivery-address/delivery-address",
|
"pages/editAddress/editAddress",
|
||||||
"pages/editAddress/editAddress",
|
"pages/orderList/orderList",
|
||||||
"pages/orderList/orderList",
|
"pages/order-detail/order-detail",
|
||||||
"pages/order-detail/order-detail",
|
"pages/submit-order/submit-order",
|
||||||
"pages/submit-order/submit-order",
|
"pages/binding-phone/binding-phone",
|
||||||
"pages/binding-phone/binding-phone",
|
"pages/express-delivery/express-delivery",
|
||||||
"pages/express-delivery/express-delivery",
|
"pages/pay-result/pay-result",
|
||||||
"pages/pay-result/pay-result",
|
"pages/search-prod-show/search-prod-show",
|
||||||
"pages/search-prod-show/search-prod-show",
|
"pages/prod/prod",
|
||||||
"pages/prod/prod",
|
"pages/login/login",
|
||||||
"pages/login/login",
|
"pages/prod-classify/prod-classify",
|
||||||
"pages/prod-classify/prod-classify",
|
"pages/recent-news/recent-news",
|
||||||
"pages/recent-news/recent-news",
|
"pages/news-detail/news-detail"
|
||||||
"pages/news-detail/news-detail"
|
],
|
||||||
],
|
"window": {
|
||||||
"window": {
|
"backgroundTextStyle": "light",
|
||||||
"backgroundTextStyle": "light",
|
"navigationBarBackgroundColor": "#fff",
|
||||||
"navigationBarBackgroundColor": "#fff",
|
"navigationBarTitleText": "WeChat",
|
||||||
"navigationBarTitleText": "WeChat",
|
"navigationBarTextStyle": "black"
|
||||||
"navigationBarTextStyle": "black"
|
},
|
||||||
},
|
"tabBar": {
|
||||||
"tabBar": {
|
"selectedColor": "#3a86b9",
|
||||||
"selectedColor": "#3a86b9",
|
"color": "#b8b8b8",
|
||||||
"color": "#b8b8b8",
|
"list": [
|
||||||
"list": [
|
{
|
||||||
{
|
"pagePath": "pages/index/index",
|
||||||
"pagePath": "pages/index/index",
|
"text": "首页",
|
||||||
"text": "首页",
|
"iconPath": "images/tabbar/homepage.png",
|
||||||
"iconPath": "images/tabbar/homepage.png",
|
"selectedIconPath": "images/tabbar/homepage-sel.png"
|
||||||
"selectedIconPath": "images/tabbar/homepage-sel.png"
|
},
|
||||||
},
|
{
|
||||||
{
|
"pagePath": "pages/category/category",
|
||||||
"pagePath": "pages/category/category",
|
"text": "分类",
|
||||||
"text": "分类",
|
"iconPath": "images/tabbar/category.png",
|
||||||
"iconPath": "images/tabbar/category.png",
|
"selectedIconPath": "images/tabbar/category-sel.png"
|
||||||
"selectedIconPath": "images/tabbar/category-sel.png"
|
},
|
||||||
},
|
{
|
||||||
{
|
"pagePath": "pages/basket/basket",
|
||||||
"pagePath": "pages/basket/basket",
|
"text": "购物车",
|
||||||
"text": "购物车",
|
"iconPath": "images/tabbar/basket.png",
|
||||||
"iconPath": "images/tabbar/basket.png",
|
"selectedIconPath": "images/tabbar/basket-sel.png"
|
||||||
"selectedIconPath": "images/tabbar/basket-sel.png"
|
},
|
||||||
},
|
{
|
||||||
{
|
"pagePath": "pages/user/user",
|
||||||
"pagePath": "pages/user/user",
|
"text": "我的",
|
||||||
"text": "我的",
|
"iconPath": "images/tabbar/user.png",
|
||||||
"iconPath": "images/tabbar/user.png",
|
"selectedIconPath": "images/tabbar/user-sel.png"
|
||||||
"selectedIconPath": "images/tabbar/user-sel.png"
|
}
|
||||||
}
|
]
|
||||||
]
|
},
|
||||||
},
|
"sitemapLocation": "sitemap.json"
|
||||||
"sitemapLocation": "sitemap.json"
|
|
||||||
}
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@ -0,0 +1,28 @@
|
|||||||
|
{
|
||||||
|
"name": "mall4m",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"lockfileVersion": 2,
|
||||||
|
"requires": true,
|
||||||
|
"packages": {
|
||||||
|
"": {
|
||||||
|
"name": "mall4m",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"license": "ISC",
|
||||||
|
"dependencies": {
|
||||||
|
"crypto-js": "^4.1.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/crypto-js": {
|
||||||
|
"version": "4.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.1.1.tgz",
|
||||||
|
"integrity": "sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw=="
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"crypto-js": {
|
||||||
|
"version": "4.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.1.1.tgz",
|
||||||
|
"integrity": "sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw=="
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"name": "mall4m",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "一个基于vue、element ui 的轻量级、前后端分离、拥有完整sku和下单流程的完全开源商城 小程序端",
|
||||||
|
"main": "app.js",
|
||||||
|
"scripts": {
|
||||||
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://gitee.com/gz-yami/mall4m.git"
|
||||||
|
},
|
||||||
|
"author": "",
|
||||||
|
"license": "ISC",
|
||||||
|
"dependencies": {
|
||||||
|
"crypto-js": "^4.1.1"
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,5 +1,26 @@
|
|||||||
<!--pages/login/login.wxml-->
|
<!--pages/login/login.wxml-->
|
||||||
<image src='http://img-test.gz-yami.com/mini/logo.jpg' class='c-logo'></image>
|
<image src='http://img-test.gz-yami.com/mini/logo.jpg' class='c-logo'></image>
|
||||||
<view class="title">mall4j</view>
|
<view class="title">mall4j</view>
|
||||||
<view class="msg">申请获得你的公开信息(昵称、头像等)</view>
|
<view class="login-form">
|
||||||
<button color="#eb2444" open-type="getUserInfo" lang = "zh_CN" bindgetuserinfo = "onGotUserInfo" class=''>微信授权</button>
|
<view class="item">
|
||||||
|
<view class="account">
|
||||||
|
<text class="input-item">用户名</text>
|
||||||
|
<input type="text" data-type="account" placeholder-class="inp-palcehoder" placeholder="请输入用户名" bindinput="getInputVal"></input>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="item">
|
||||||
|
<view class="account">
|
||||||
|
<text class="input-item">密码</text>
|
||||||
|
<input type="password" data-type="password" placeholder-class="inp-palcehoder" placeholder="请输入密码" bindinput="getInputVal"></input>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view>
|
||||||
|
<button class="authorized-btn" bindtap="handleLoginOrRegister">{{isRegister ? '注册': '登录'}}</button>
|
||||||
|
<button class="to-idx-btn" bindtap="goBack">回到首页</button>
|
||||||
|
</view>
|
||||||
|
<view class="operate">
|
||||||
|
<view class="to-register" bindtap="handleChangeShowType">
|
||||||
|
{{isRegister?'已有账号?去登录>' : '没有账号?去注册>'}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
@ -1,48 +1,62 @@
|
|||||||
{
|
{
|
||||||
"description": "项目配置文件",
|
"description": "项目配置文件",
|
||||||
"packOptions": {
|
"packOptions": {
|
||||||
"ignore": []
|
"ignore": []
|
||||||
},
|
|
||||||
"setting": {
|
|
||||||
"urlCheck": false,
|
|
||||||
"es6": true,
|
|
||||||
"postcss": true,
|
|
||||||
"minified": true,
|
|
||||||
"newFeature": true,
|
|
||||||
"nodeModules": false,
|
|
||||||
"autoAudits": false,
|
|
||||||
"checkInvalidKey": true
|
|
||||||
},
|
|
||||||
"compileType": "miniprogram",
|
|
||||||
"libVersion": "2.6.4",
|
|
||||||
"appid": "wx6fa71e69231a4fa4",
|
|
||||||
"projectname": "mall4j",
|
|
||||||
"debugOptions": {
|
|
||||||
"hidedInDevtools": []
|
|
||||||
},
|
|
||||||
"isGameTourist": false,
|
|
||||||
"simulatorType": "wechat",
|
|
||||||
"simulatorPluginLibVersion": {},
|
|
||||||
"condition": {
|
|
||||||
"search": {
|
|
||||||
"current": -1,
|
|
||||||
"list": []
|
|
||||||
},
|
},
|
||||||
"conversation": {
|
"setting": {
|
||||||
"current": -1,
|
"urlCheck": true,
|
||||||
"list": []
|
"scopeDataCheck": false,
|
||||||
|
"coverView": true,
|
||||||
|
"es6": false,
|
||||||
|
"postcss": true,
|
||||||
|
"compileHotReLoad": false,
|
||||||
|
"lazyloadPlaceholderEnable": false,
|
||||||
|
"preloadBackgroundData": false,
|
||||||
|
"minified": true,
|
||||||
|
"autoAudits": false,
|
||||||
|
"newFeature": false,
|
||||||
|
"uglifyFileName": false,
|
||||||
|
"uploadWithSourceMap": true,
|
||||||
|
"useIsolateContext": false,
|
||||||
|
"nodeModules": false,
|
||||||
|
"enhance": true,
|
||||||
|
"useMultiFrameRuntime": true,
|
||||||
|
"useApiHook": true,
|
||||||
|
"useApiHostProcess": true,
|
||||||
|
"showShadowRootInWxmlPanel": true,
|
||||||
|
"packNpmManually": false,
|
||||||
|
"packNpmRelationList": [],
|
||||||
|
"minifyWXSS": true,
|
||||||
|
"disableUseStrict": false,
|
||||||
|
"ignoreUploadUnusedFiles": true,
|
||||||
|
"minifyWXML": true
|
||||||
},
|
},
|
||||||
"plugin": {
|
"compileType": "miniprogram",
|
||||||
"current": -1,
|
"libVersion": "2.23.2",
|
||||||
"list": []
|
"appid": "wx6fa71e69231a4fa4",
|
||||||
|
"projectname": "mall4m",
|
||||||
|
"debugOptions": {
|
||||||
|
"hidedInDevtools": []
|
||||||
},
|
},
|
||||||
"game": {
|
"isGameTourist": false,
|
||||||
"currentL": -1,
|
"simulatorType": "wechat",
|
||||||
"list": []
|
"simulatorPluginLibVersion": {},
|
||||||
},
|
"condition": {
|
||||||
"miniprogram": {
|
"search": {
|
||||||
"current": 23,
|
"list": []
|
||||||
"list": []
|
},
|
||||||
|
"conversation": {
|
||||||
|
"list": []
|
||||||
|
},
|
||||||
|
"plugin": {
|
||||||
|
"list": []
|
||||||
|
},
|
||||||
|
"game": {
|
||||||
|
"currentL": -1,
|
||||||
|
"list": []
|
||||||
|
},
|
||||||
|
"miniprogram": {
|
||||||
|
"list": []
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@ -0,0 +1,25 @@
|
|||||||
|
{
|
||||||
|
"setting": {},
|
||||||
|
"condition": {
|
||||||
|
"plugin": {
|
||||||
|
"list": []
|
||||||
|
},
|
||||||
|
"game": {
|
||||||
|
"list": []
|
||||||
|
},
|
||||||
|
"gamePlugin": {
|
||||||
|
"list": []
|
||||||
|
},
|
||||||
|
"miniprogram": {
|
||||||
|
"list": [
|
||||||
|
{
|
||||||
|
"name": "登录",
|
||||||
|
"pathName": "pages/login/login",
|
||||||
|
"query": "",
|
||||||
|
"launchMode": "default",
|
||||||
|
"scene": null
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,3 +1,6 @@
|
|||||||
var domain = "http://127.0.0.1:8086"; //统一接口域名,测试环境
|
//可改动页面
|
||||||
|
|
||||||
|
var domain = "http://192.168.1.17:8386"; //统一接口域名,测试环境
|
||||||
|
|
||||||
exports.domain = domain;
|
exports.domain = domain;
|
||||||
|
|
||||||
|
|||||||
@ -0,0 +1,11 @@
|
|||||||
|
import CryptoJS from 'crypto-js'
|
||||||
|
// 加密
|
||||||
|
const keyStr = '-mall4j-password' // 解密用的key
|
||||||
|
export function encrypt(word) {
|
||||||
|
const time = Date.now()
|
||||||
|
|
||||||
|
const key = CryptoJS.enc.Utf8.parse(keyStr)
|
||||||
|
const srcs = CryptoJS.enc.Utf8.parse(time + word) // 加密方式: 时间戳 + 密文
|
||||||
|
const encrypted = CryptoJS.AES.encrypt(srcs, key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 })
|
||||||
|
return encrypted.toString()
|
||||||
|
}
|
||||||
Loading…
Reference in new issue