diff --git a/.env.development b/.env.development index 7b5c813..1fd5cb5 100644 --- a/.env.development +++ b/.env.development @@ -1,2 +1,3 @@ -VUE_APP_HOST=http://test-temple.wdx-tc.com/ -NODE_ENV = development \ No newline at end of file +VUE_APP_HOST=http://temple.free.idcfengye.com +NODE_ENV = development +VUE_APP_TMAP_KEY=ZFGBZ-76ICF-BG5JY-NH4HX-MQOOJ-VJB4E \ No newline at end of file diff --git a/.env.production b/.env.production index 550e777..7364e0f 100644 --- a/.env.production +++ b/.env.production @@ -1,2 +1,3 @@ -VUE_APP_HOST=http://prod-temple.wdx-tc.com/ +VUE_APP_HOST=https://prod-temple.wdx-tc.com/ +VUE_APP_TMAP_KEY=ZFGBZ-76ICF-BG5JY-NH4HX-MQOOJ-VJB4E NODE_ENV = production \ No newline at end of file diff --git a/.env.test b/.env.test index 4f0cb2c..98b2a0b 100644 --- a/.env.test +++ b/.env.test @@ -1,2 +1,3 @@ -VUE_APP_HOST=http://test-temple.wdx-tc.com/ +VUE_APP_HOST=http://https-temple.wdx-tc.com/ +VUE_APP_TMAP_KEY=ZFGBZ-76ICF-BG5JY-NH4HX-MQOOJ-VJB4E NODE_ENV = test \ No newline at end of file diff --git a/https/6500549_test-temple.wdx-tc.com.key b/https/6500549_test-temple.wdx-tc.com.key new file mode 100644 index 0000000..06bc179 --- /dev/null +++ b/https/6500549_test-temple.wdx-tc.com.key @@ -0,0 +1,27 @@ +-----BEGIN RSA PRIVATE KEY----- +MIIEowIBAAKCAQEAjOzQOMFq0ofA8HGWq+SI2UGLfl4Wrm6QpWZS9JggjFRxpWCR +pwnbSeO76sOxPMXx2fzd++1X2gOLDguoNVIyk8zWfA2aIQ7iUfCvOdJg45kMv0Rv +139LAVQwfrC50TuKbvwTPKfEgtrfiBDEs0K/C5TKJ++77oYyxsiIwZ8zsorbpNEA +JZgGXthHgTddnetmnYiH9dqs3eJIEricMhGpKx9psq8B3J9YksoD5CFHfz0QLIC4 +DhyfAa72b2nj0wJcX2XMP4QkEgD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Lqdp3l +NMMtXhSyPs1fIJrlxSsyJyYusYi/1PhIlr27nrrT3ryOsya5NqQlJKfVxVt2/tb6 +rKBNAoGBALBwk93oGAvRSzQTfHiO8b0JNxNjX2HyLQ0vKciNKvcaGXxaOFO0yj0S +spsoXWsx2uA8RBs4mxkp14mhOQ/KJbtzxn05eX8rkpwuZUwRZU4CwiIBdEBEPEAC +Sh/hzYWNMsB1Enle/+35wohfdlV5LbHiZC/dUa7LR17MRBSloXjX +-----END RSA PRIVATE KEY----- diff --git a/https/6500549_test-temple.wdx-tc.com.pem b/https/6500549_test-temple.wdx-tc.com.pem new file mode 100644 index 0000000..ab2cfd4 --- /dev/null +++ b/https/6500549_test-temple.wdx-tc.com.pem @@ -0,0 +1,62 @@ +-----BEGIN CERTIFICATE----- +MIIGATCCBOmgAwIBAgIQC/WwdIdUJZZP8hOOr/tdhTANBgkqhkiG9w0BAQsFADBu +MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3 +d3cuZGlnaWNlcnQuY29tMS0wKwYDVQQDEyRFbmNyeXB0aW9uIEV2ZXJ5d2hlcmUg +RFYgVExTIENBIC0gRzEwHhcNMjExMDI3MDAwMDAwWhcNMjIxMDI3MjM1OTU5WjAh +MR8wHQYDVQQDExZ0ZXN0LXRlbXBsZS53ZHgtdGMuY29tMIIBIjANBgkqhkiG9w0B +AQEFAAOCAQ8AMIIBCgKCAQEAjOzQOMFq0ofA8HGWq+SI2UGLfl4Wrm6QpWZS9Jgg +jFRxpWCRpwnbSeO76sOxPMXx2fzd++1X2gOLDguoNVIyk8zWfA2aIQ7iUfCvOdJg +45kMv0Rv139LAVQwfrC50TuKbvwTPKfEgtrfiBDEs0K/C5TKJ++77oYyxsiIwZ8z +sorbpNEAJZgGXthHgTddnetmnYiH9dqs3eJIEricMhGpKx9psq8B3J9YksoD5CFH +fz0QLIC4DhyfAa72b2nj0wJcX2XMP4QkEgDM+nf2Iq0QOkgKH6KT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iWUOUkjdpMbyxX+XNle5uEIiyBsi4IvbcTCh8ruifCIi5mDXkZrnMT8n +wfYCV6v6kDdXkbgGRLKsR4pucbJtbKqIkUGxuZI2t7pfewKRc5nWecvDBZf3+p1M +pA8CAwEAAaOCAU8wggFLMB0GA1UdDgQWBBRVdE+yck/1YLpQ0dfmUVyaAYca1zAf +BgNVHSMEGDAWgBQD3lA1VtFMu2bwo+IbG8OXsj3RVTAOBgNVHQ8BAf8EBAMCAYYw +HQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBIGA1UdEwEB/wQIMAYBAf8C +AQAwNAYIKwYBBQUHAQEEKDAmMCQGCCsGAQUFBzABhhhodHRwOi8vb2NzcC5kaWdp +Y2VydC5jb20wQgYDVR0fBDswOTA3oDWgM4YxaHR0cDovL2NybDMuZGlnaWNlcnQu +Y29tL0RpZ2lDZXJ0R2xvYmFsUm9vdENBLmNybDBMBgNVHSAERTBDMDcGCWCGSAGG +/WwBAjAqMCgGCCsGAQUFBwIBFhxodHRwczovL3d3dy5kaWdpY2VydC5jb20vQ1BT +MAgGBmeBDAECATANBgkqhkiG9w0BAQsFAAOCAQEAK3Gp6/aGq7aBZsxf/oQ+TD/B +SwW3AU4ETK+GQf2kFzYZkby5SFrHdPomunx2HBzViUchGoofGgg7gHW0W3MlQAXW +M0r5LUvStcr82QDWYNPaUy4taCQmyaJ+VB+6wxHstSigOlSNF2a6vg4rgexixeiV +4YSB03Yqp2t3TeZHM9ESfkus74nQyW7pRGezj+TC44xCagCQQOzzNmzEAP2SnCrJ +sNE2DpRVMnL8J6xBRdjmOsC3N6cQuKuRXbzByVBjCqAA8t1L0I+9wXJerLPyErjy +rMKWaBFLmfK/AHNF4ZihwPGOc7w6UHczBZXH5RFzJNnww+WnKuTPI0HfnVH8lg== +-----END CERTIFICATE----- diff --git a/jsconfig.json b/jsconfig.json new file mode 100644 index 0000000..5099355 --- /dev/null +++ b/jsconfig.json @@ -0,0 +1,10 @@ +{ + "compilerOptions": { + "baseUrl": ".", + "paths": { + "@/*": ["src/*"], + } + }, + "include": ["./src/**/*.vue", "./src/**/*.js"], + "exclude": ["node_modules"] +} \ No newline at end of file diff --git a/package.json b/package.json index b0e67a6..b58e820 100644 --- a/package.json +++ b/package.json @@ -10,14 +10,16 @@ }, "dependencies": { "axios": "^0.24.0", + "better-scroll": "^2.4.2", "core-js": "^3.6.5", "dayjs": "^1.10.7", + "swiper": "5", "vant": "^2.12.30", "vue": "^2.6.11", + "vue-awesome-swiper": "2.6.7", "vue-router": "^3.5.3" }, "devDependencies": { - "@nbfe/postcss-px2rem": "^0.1.2", "@vue/cli-plugin-babel": "~4.5.0", "@vue/cli-plugin-eslint": "~4.5.0", "@vue/cli-service": "~4.5.0", @@ -25,13 +27,16 @@ "babel-plugin-import": "^1.13.3", "eslint": "^6.7.2", "eslint-plugin-vue": "^6.2.2", - "postcss-short": "^5.0.0", "sass": "^1.43.4", "sass-loader": "^7.1.0", + "sass-resources-loader": "^2.2.4", "vue-template-compiler": "^2.6.11" }, "eslintConfig": { "root": true, + "globals": { + "wx": true + }, "env": { "node": true }, diff --git a/public/index.html b/public/index.html index 3e5a139..f9e6cfe 100644 --- a/public/index.html +++ b/public/index.html @@ -3,7 +3,8 @@ - + + <%= htmlWebpackPlugin.options.title %> diff --git a/src/App.vue b/src/App.vue index 16dd1e3..17768aa 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,23 +1,70 @@ diff --git a/src/api/index.js b/src/api/index.js new file mode 100644 index 0000000..4009329 --- /dev/null +++ b/src/api/index.js @@ -0,0 +1,74 @@ +import service from './service'; + +function formatRegion(data){ + const result = []; + for(let i = 0; i < data.length; i++){ + const obj = { + value: data[i].id, + text: data[i].name, + } + if(data[i].children){ + obj.children = formatRegion(data[i].children) + } + result.push(obj) + } + return result; +} + +// 获取法师称谓 +const getMonkAppellation = () => service.get('/api/master/get-rank'); + +// 获取省市区数据 +const getRegion = async () => { + const region = localStorage.getItem('region'); + let data = []; + if(region === null){ + const _data = await service.get('/api/region/get-region'); + data = [].concat(formatRegion(_data)); + localStorage.setItem('region', JSON.stringify(data)) + } else { + data = JSON.parse(region) + } + return data +} + +// 寺院进驻 +const postTemple = data => service.post('/api/temple/settled', data); + +// 上传 +const uploadFile = data => service.post('/api/upload', data); + +// 认证法师提交 +const certifyMonk = data => service.post('/api/master/certify', data); + +// 用户数据 +const getUserData = () => service.get('/api/get-user-data'); + +// 添砖加瓦日行一善商品 +const getGoodsDetail = (goods_type, goods_id, temple_id) => service.get(`/api/${goods_type}/get-info?id=${goods_id}&temple_id=${temple_id}`); + +// 创建日行一善商品订单 +const createFriendlyDayOrder = data => service.post('/api/order/create-friendly', data); + +// 创建添砖加瓦订单 +const createBrickDayOrder = data => service.post('/api/order/create-tile', data); + +// 获取功德芳名 +const getMeritName = () => service.get(`/api/order/get-merit-list`) + +// 添加功德芳名 +const postMeritName = name => service.post(`/api/order/create-merit-name?name=${name}`) + +export { + getMonkAppellation, + getRegion, + postTemple, + uploadFile, + certifyMonk, + getUserData, + getGoodsDetail, + getMeritName, + createFriendlyDayOrder, + createBrickDayOrder, + postMeritName +} \ No newline at end of file diff --git a/src/api/service.js b/src/api/service.js new file mode 100644 index 0000000..9818013 --- /dev/null +++ b/src/api/service.js @@ -0,0 +1,30 @@ +import axios from 'axios'; +import { Toast } from 'vant'; + +const baseURL = process.env.NODE_ENV === 'development' ? '/' : process.env.VUE_APP_HOST + +const instance = axios.create({ + baseURL, + timeout: 15000, +}) + +instance.interceptors.request.use(request => { + return request; +}) + +instance.interceptors.response.use(response => { + if(response.status === 200){ + if(response.data.code === 0){ + return response.data.data; + } + if(response.data.code !== 0){ + Toast.fail(response.data.message) + } + } + if(response.status !== 200){ + Toast.fail('服务器错误') + } + return Promise.reject(response); +}) + +export default instance; \ No newline at end of file diff --git a/src/assets/img/bg.png b/src/assets/img/bg.png new file mode 100644 index 0000000..ae26e02 Binary files /dev/null and b/src/assets/img/bg.png differ diff --git a/src/assets/img/customer_background.jpg b/src/assets/img/customer_background.jpg new file mode 100644 index 0000000..38c25b9 Binary files /dev/null and b/src/assets/img/customer_background.jpg differ diff --git a/src/assets/img/heshang.jpg b/src/assets/img/heshang.jpg new file mode 100644 index 0000000..0ed5977 Binary files /dev/null and b/src/assets/img/heshang.jpg differ diff --git a/src/assets/img/user-popup/功德箱.png b/src/assets/img/user-popup/功德箱.png new file mode 100644 index 0000000..0ad6a86 Binary files /dev/null and b/src/assets/img/user-popup/功德箱.png differ diff --git a/src/assets/img/user-popup/我的善缘.png b/src/assets/img/user-popup/我的善缘.png new file mode 100644 index 0000000..bb15ccb Binary files /dev/null and b/src/assets/img/user-popup/我的善缘.png differ diff --git a/src/assets/img/user-popup/查看更多寺院.png b/src/assets/img/user-popup/查看更多寺院.png new file mode 100644 index 0000000..9640c70 Binary files /dev/null and b/src/assets/img/user-popup/查看更多寺院.png differ diff --git a/src/assets/img/user-popup/联系客服.png b/src/assets/img/user-popup/联系客服.png new file mode 100644 index 0000000..e8587cf Binary files /dev/null and b/src/assets/img/user-popup/联系客服.png differ diff --git a/src/assets/img/wechat.jpg b/src/assets/img/wechat.jpg new file mode 100644 index 0000000..87c9d63 Binary files /dev/null and b/src/assets/img/wechat.jpg differ diff --git a/src/assets/scss/common.scss b/src/assets/scss/common.scss new file mode 100644 index 0000000..94a6294 --- /dev/null +++ b/src/assets/scss/common.scss @@ -0,0 +1,98 @@ +@import './variable.scss'; + +.divider { + height: .24rem; + background: #F9F9FC; +} + +.panel { + .panel-head { + padding: .53rem .4rem; + display: flex; + justify-content: space-between; + + .title { + font-size: .43rem; + color: #222222; + font-weight: bold; + } + + .external { + font-size: .37rem; + color: #666666; + } + } + + .panel-body { + overflow-x: scroll; + + .merit-group { + display: flex; + width: 11.36rem; + margin-bottom: .91rem; + } + } +} +.process-more{ + line-height: 1.17rem; + text-align: center; + font-size: .37rem; + .iconfont{ + vertical-align: middle; + } +} + +.border-bottom{ + position: relative; + &::after{ + content: ''; + height: 1px; + width: 200%; + background: #ededed; + transform: scale(0.5, 0.5); + transform-origin: left top; + display: block; + position: absolute; + bottom: 0; + left: 0; + } +} +.border-top{ + position: relative; + &::before{ + content: ''; + height: 1px; + width: 200%; + background: #ededed; + transform: scale(0.5, 0.5); + transform-origin: left top; + display: block; + position: absolute; + top: 0; + left: 0; + } +} +.border-circle{ + position: relative; + &::before{ + content: ''; + height: 199%; + width: 200%; + border: 1px solid #ededed; + transform: scale(0.5, 0.5); + transform-origin: left top; + display: block; + position: absolute; + pointer-events: none; + border-radius: .22rem; + top: 0; + left: 0; + } +} + +.active{ + &::before{ + border-color: $primary-color; + } + color: $primary-color; +} \ No newline at end of file diff --git a/src/assets/scss/variable.scss b/src/assets/scss/variable.scss new file mode 100644 index 0000000..735e1c5 --- /dev/null +++ b/src/assets/scss/variable.scss @@ -0,0 +1,2 @@ +$primary-color: #CF9E3B; +$btn-border-radius: .07rem; diff --git a/src/common/tmap.js b/src/common/tmap.js new file mode 100644 index 0000000..a12f21a --- /dev/null +++ b/src/common/tmap.js @@ -0,0 +1,29 @@ +let TMAP; +const defaultConfig = { + version: '1.exp', + key: '' +} +module.exports = { + load(config){ + config = { + ...defaultConfig, + ...config + } + return new Promise((resolve) => { + if(TMAP){ + resolve(TMAP) + return + } + const script = document.createElement('script'); + script.src = `https://map.qq.com/api/gljs?v=${config.version}&key=${config.key}`; + document.head.appendChild(script) + console.log(script) + script.setAttribute('async', true) + script.setAttribute('charset', 'utf-8') + script.onload = () => { + TMAP = window.TMap; + resolve(TMAP) + } + }) + } +} \ No newline at end of file diff --git a/src/common/vant.js b/src/common/vant.js index f637b26..89c7952 100644 --- a/src/common/vant.js +++ b/src/common/vant.js @@ -1,11 +1,60 @@ -import Vue from 'vue' -import 'vant/lib/index.css'; -import { Button, NavBar, Search, Swipe, SwipeItem, Grid, GridItem } from 'vant'; +import Vue from "vue"; +import "vant/lib/index.css"; +import { + Button, + NavBar, + Search, + Swipe, + SwipeItem, + Grid, + GridItem, + NoticeBar, + Tabbar, + TabbarItem, + Cell, + CellGroup, + Tab, Tabs, + Progress, + Form, + Field, + Uploader, + Step, Steps, + Checkbox, CheckboxGroup, + Popup, + Stepper, + Radio, + RadioGroup, + Switch, + Cascader, + ActionSheet +} from "vant"; -Vue.use(Button) -Vue.use(NavBar) -Vue.use(Search) -Vue.use(Swipe) -Vue.use(SwipeItem) -Vue.use(Grid) -Vue.use(GridItem) \ No newline at end of file +Vue.use(Button); +Vue.use(NavBar); +Vue.use(Search); +Vue.use(Swipe); +Vue.use(SwipeItem); +Vue.use(Grid); +Vue.use(GridItem); +Vue.use(NoticeBar); +Vue.use(Tabbar); +Vue.use(TabbarItem); +Vue.use(Cell); +Vue.use(CellGroup); +Vue.use(Tab); +Vue.use(Tabs); +Vue.use(Progress); +Vue.use(Form); +Vue.use(Field); +Vue.use(Uploader); +Vue.use(Step); +Vue.use(Steps); +Vue.use(Checkbox); +Vue.use(CheckboxGroup); +Vue.use(Popup); +Vue.use(Stepper); +Vue.use(Radio) +Vue.use(RadioGroup) +Vue.use(Switch) +Vue.use(ActionSheet) +Vue.use(Cascader) \ No newline at end of file diff --git a/src/common/wechat-web.js b/src/common/wechat-web.js new file mode 100644 index 0000000..8298661 --- /dev/null +++ b/src/common/wechat-web.js @@ -0,0 +1,15 @@ +export default { + install(Vue){ + wx.config({ + debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。 + appId: '', // 必填,公众号的唯一标识 + timestamp: 123, // 必填,生成签名的时间戳 + nonceStr: '', // 必填,生成签名的随机串 + signature: '',// 必填,签名 + jsApiList: [] // 必填,需要使用的JS接口列表 + }); + wx.ready(function(){ + Vue.prototype.$wx = wx; + }) + } +} \ No newline at end of file diff --git a/src/components/buddha-process/index.vue b/src/components/buddha-process/index.vue new file mode 100644 index 0000000..4558527 --- /dev/null +++ b/src/components/buddha-process/index.vue @@ -0,0 +1,132 @@ + + + + + \ No newline at end of file diff --git a/src/components/index.js b/src/components/index.js new file mode 100644 index 0000000..43aa0cb --- /dev/null +++ b/src/components/index.js @@ -0,0 +1,15 @@ +import Vue from 'vue'; + +import UserMerit from './user-merit'; +import Temple from './temple' +import BuddhaProcess from './buddha-process'; +import MeritGoods from './merit-goods'; +import Order from './order'; +import ScrollView from './scroll-view' + +Vue.component(UserMerit.name, UserMerit) +Vue.component(Temple.name, Temple) +Vue.component(BuddhaProcess.name, BuddhaProcess) +Vue.component(MeritGoods.name, MeritGoods) +Vue.component(Order.name, Order) +Vue.component(ScrollView.name, ScrollView) diff --git a/src/components/merit-goods/index.vue b/src/components/merit-goods/index.vue new file mode 100644 index 0000000..647e98b --- /dev/null +++ b/src/components/merit-goods/index.vue @@ -0,0 +1,62 @@ + + + + + \ No newline at end of file diff --git a/src/components/order/index.vue b/src/components/order/index.vue new file mode 100644 index 0000000..2438d4e --- /dev/null +++ b/src/components/order/index.vue @@ -0,0 +1,88 @@ + + + + + \ No newline at end of file diff --git a/src/components/scroll-view/index.vue b/src/components/scroll-view/index.vue new file mode 100644 index 0000000..7220adc --- /dev/null +++ b/src/components/scroll-view/index.vue @@ -0,0 +1,184 @@ + + + + + diff --git a/src/components/temple/index.vue b/src/components/temple/index.vue new file mode 100644 index 0000000..6239a44 --- /dev/null +++ b/src/components/temple/index.vue @@ -0,0 +1,69 @@ + + + + + \ No newline at end of file diff --git a/src/components/user-merit/index.vue b/src/components/user-merit/index.vue new file mode 100644 index 0000000..2ce181c --- /dev/null +++ b/src/components/user-merit/index.vue @@ -0,0 +1,80 @@ + + + + + diff --git a/src/main.js b/src/main.js index 8ee3c62..62e122c 100644 --- a/src/main.js +++ b/src/main.js @@ -1,10 +1,16 @@ import Vue from 'vue' +import VueAwesomeSwiper from 'vue-awesome-swiper'; import App from './App.vue' import router from './router'; import '@/assets/js/flexable.js'; import './common/vant'; +import './components/index' +import 'swiper/css/swiper.css' +import WechatWeb from './common/wechat-web'; Vue.config.productionTip = false +Vue.use(VueAwesomeSwiper) +Vue.use(WechatWeb) new Vue({ render: h => h(App), diff --git a/src/pages/buddha-activity/index.vue b/src/pages/buddha-activity/index.vue new file mode 100644 index 0000000..e13bd56 --- /dev/null +++ b/src/pages/buddha-activity/index.vue @@ -0,0 +1,20 @@ + + + + + \ No newline at end of file diff --git a/src/pages/everyday-donation/index.vue b/src/pages/everyday-donation/index.vue new file mode 100644 index 0000000..ab94c46 --- /dev/null +++ b/src/pages/everyday-donation/index.vue @@ -0,0 +1,478 @@ + + + + + \ No newline at end of file diff --git a/src/pages/goods-detail/components/fill-information.vue b/src/pages/goods-detail/components/fill-information.vue new file mode 100644 index 0000000..414615d --- /dev/null +++ b/src/pages/goods-detail/components/fill-information.vue @@ -0,0 +1,193 @@ +