Browse Source

分包

master
前端-胡立永 10 months ago
parent
commit
73b44ffa1e
32 changed files with 162 additions and 339 deletions
  1. +0
    -77
      components/base/changeLanguage.vue
  2. +1
    -1
      config.js
  3. +0
    -23
      locale/en.json
  4. +0
    -25
      locale/index.js
  5. +0
    -26
      locale/zh-Hans.json
  6. +0
    -4
      main.js
  7. +134
    -163
      pages.json
  8. +11
    -9
      pages/index/center.vue
  9. +1
    -0
      pages/publish/publishPost.vue
  10. +1
    -1
      pages_mine/mine/addBankCard.vue
  11. +0
    -0
      pages_mine/mine/authFirm.vue
  12. +0
    -0
      pages_mine/mine/authOption.vue
  13. +2
    -2
      pages_mine/mine/authPerson.vue
  14. +3
    -3
      pages_mine/mine/certifiedIndividual.vue
  15. +0
    -0
      pages_mine/mine/enterpriseCertification.vue
  16. +1
    -1
      pages_mine/mine/incomeRecord.vue
  17. +1
    -1
      pages_mine/mine/promotionRecord.vue
  18. +6
    -2
      pages_mine/mine/purse.vue
  19. +1
    -1
      pages_mine/mine/releaseRecord.vue
  20. +0
    -0
      pages_mine/mine/sonPage/promotion/promotionDetail.vue
  21. +0
    -0
      pages_mine/mine/sonPage/promotion/promotionRecordList.vue
  22. +0
    -0
      pages_mine/mine/sonPage/release/releaseList.vue
  23. +0
    -0
      pages_mine/mine/withdraw.vue
  24. +0
    -0
      pages_mine/mine/withdrawalRecord.vue
  25. +0
    -0
      pages_mine/static/addBankCard/1.svg
  26. +0
    -0
      pages_mine/static/auth/1.svg
  27. +0
    -0
      pages_mine/static/auth/2.png
  28. +0
    -0
      pages_mine/static/incomeRecord/1.png
  29. +0
    -0
      pages_mine/static/promotionRecord/1.png
  30. +0
    -0
      pages_mine/static/promotionRecord/2.svg
  31. +0
    -0
      pages_mine/static/promotionRecord/3.png
  32. +0
    -0
      pages_mine/static/purse/1.svg

+ 0
- 77
components/base/changeLanguage.vue View File

@ -1,77 +0,0 @@
<template>
<view class="change-language">
<uv-picker ref="picker"
:columns="languageList"
keyName="name"
:itemHeight="70"
@confirm="confirm"></uv-picker>
</view>
</template>
<script>
export default {
props : {
url : {
default : '/pages/index/index',
type : String,
}
},
data(){
return {
languageList: [
[
{
name:'简体中文',
key : "zh-Hans"
},
{
name:'English',
key : "en"
},
]
],
}
},
methods : {
open() {
this.$refs.picker.open();
},
confirm(e) {
this.changeLanguage(e.value.pop())
},
//
changeLanguage(res){
//#ifdef H5
this.$router.go(0); //validate.js
//#endif
//#ifdef APP-PLUS
uni.navigateTo({
url: this.url //
});
//#endif
if(!res.key){
return
}
uni.setStorage({
key: 'language',
data: res.key
})
this.$i18n.locale = res.key
uni.setLocale(res.key) //this.$i18n.localeappbug
uni.$responseMessage = this.$t('responseMessage')
}
}
}
</script>
<style lang="scss" scoped>
.change-language{
}
</style>

+ 1
- 1
config.js View File

@ -5,7 +5,7 @@ import utils from './utils/utils.js'
// 当前环境
const type = 'dev'
const type = 'prod'
// 环境配置


+ 0
- 23
locale/en.json View File

@ -1,23 +0,0 @@
{
"tabbar.title.1" : "消息",
"tabbar.title.2" : "通讯录",
"tabbar.title.3" : "发现",
"tabbar.title.4" : "我",
"navbar.relation.newFriend" : "新的朋友",
"navbar.mine.service" : "服务",
"navbar.relation.searchFriend" : "添加朋友",
"pages" : {
"index" : {
"index" : {
"agreement" : "Agreement content"
}
}
},
"components" : {
"config" : {
"configPopup" : {
}
}
}
}

+ 0
- 25
locale/index.js View File

@ -1,25 +0,0 @@
import Vue from 'vue'
import VueI18n from 'vue-i18n'
import zhHans from './zh-Hans.json' // 中文简体
Vue.use(VueI18n)
// 所需要用的语言包
let messages = {
'zh-Hans' : zhHans
}
if(!uni.getStorageSync('language') || !messages[uni.getStorageSync('language')]){
uni.setStorageSync('language', 'zh-Hans')
}
const lang = uni.getStorageSync('language');//获取缓存中的语言
// const lang = 'en';
// VueI18n构造函数所需要的配置
const i18nConfig = {
locale: lang,//当前语言
messages
}
const i18n = new VueI18n(i18nConfig)
export default i18n

+ 0
- 26
locale/zh-Hans.json View File

@ -1,26 +0,0 @@
{
"tabbar.title.1" : "消息",
"tabbar.title.2" : "通讯录",
"tabbar.title.3" : "发现",
"tabbar.title.4" : "我",
"navbar.relation.newFriend" : "新的朋友",
"navbar.mine.service" : "服务",
"navbar.relation.searchFriend" : "添加朋友",
"responseMessage" : {
},
"pages" : {
"index" : {
"index" : {
"agreement" : "协议内容"
}
}
},
"components" : {
"config" : {
"configPopup" : {
"noData" : "内容未找到:404"
}
}
}
}

+ 0
- 4
main.js View File

@ -10,7 +10,6 @@ Vue.config.productionTip = false
App.mpType = 'app'
import store from '@/store/store'
import i18n from './locale/index.js'
import './config'
import './utils/index.js'
@ -31,17 +30,14 @@ uni.$uv.setConfig({
//组件注册
import configPopup from '@/components/config/configPopup.vue'
import changeLanguage from '@/components/base/changeLanguage.vue'
import navbar from '@/components/base/navbar.vue'
Vue.component('configPopup', configPopup)
Vue.component('changeLanguage', changeLanguage)
Vue.component('navbar', navbar)
const app = new Vue({
...App,
store,
i18n
})
app.$mount()
// #endif


+ 134
- 163
pages.json View File

@ -1,207 +1,178 @@
{
"pages": [
{
"pages": [{
"path": "pages/index/index",
"style": {
"navigationBarTitleText": ""
}
},
{
"path" : "pages/publish/competition",
"style" :
{
"navigationBarTitleText" : ""
}
},
{
"path" : "pages/auth/login",
"style" :
{
"navigationBarTitleText" : ""
}
},
{
"path" : "pages/publish/actorDetail",
"style" :
{
"navigationBarTitleText" : ""
}
},
{
"path" : "pages/order/payOrder",
"style" :
{
"navigationBarTitleText" : ""
}
},
{
"path" : "pages/auth/wxUserInfo",
"style" :
{
"navigationBarTitleText" : ""
}
},
{
"path" : "pages/publish/actorRelease",
"style" :
{
"navigationBarTitleText" : ""
}
},
{
"path" : "pages/publish/publishPost",
"style" :
{
"navigationBarTitleText" : ""
}
},
{
"path" : "pages/index/publish",
"style" :
{
"navigationBarTitleText" : ""
}
},
{
"path" : "pages/index/center",
"style" :
{
"navigationBarTitleText" : ""
}
},
{
"path" : "pages/mine/releaseRecord",
"style" :
{
"navigationBarTitleText" : ""
}
},
{
"path" : "pages/mine/promotionRecord",
"style" :
{
"navigationBarTitleText" : ""
}
},
{
"path" : "pages/mine/addBankCard",
"style" :
{
"navigationBarTitleText" : ""
}
},
{
"path" : "pages/mine/purse",
"style" :
{
"navigationBarTitleText" : ""
"path": "pages/publish/competition",
"style": {
"navigationBarTitleText": ""
}
},
{
"path" : "pages/mine/incomeRecord",
"style" :
{
"navigationBarTitleText" : ""
"path": "pages/auth/login",
"style": {
"navigationBarTitleText": ""
}
},
{
"path" : "pages/mine/certifiedIndividual",
"style" :
{
"navigationBarTitleText" : ""
"path": "pages/publish/actorDetail",
"style": {
"navigationBarTitleText": ""
}
},
{
"path" : "pages/mine/withdraw",
"style" :
{
"navigationBarTitleText" : ""
"path": "pages/order/payOrder",
"style": {
"navigationBarTitleText": ""
}
},
{
"path" : "pages/mine/withdrawalRecord",
"style" :
{
"navigationBarTitleText" : ""
"path": "pages/auth/wxUserInfo",
"style": {
"navigationBarTitleText": ""
}
},
{
"path" : "pages/mine/enterpriseCertification",
"style" :
{
"navigationBarTitleText" : ""
"path": "pages/publish/actorRelease",
"style": {
"navigationBarTitleText": ""
}
},
{
"path" : "pages/publish/postList",
"style" :
{
"navigationBarTitleText" : ""
"path": "pages/publish/publishPost",
"style": {
"navigationBarTitleText": ""
}
},
{
"path" : "pages/publish/postDetail",
"style" :
{
"navigationBarTitleText" : ""
"path": "pages/index/publish",
"style": {
"navigationBarTitleText": ""
}
},
{
"path" : "pages/publish/actorList",
"style" :
{
"navigationBarTitleText" : ""
"path": "pages/index/center",
"style": {
"navigationBarTitleText": ""
}
},
{
"path" : "pages/mine/sonPage/promotion/promotionDetail",
"style" :
{
"navigationBarTitleText" : ""
"path": "pages/publish/postList",
"style": {
"navigationBarTitleText": ""
}
},
{
"path" : "pages/mine/sonPage/promotion/promotionRecordList",
"style" :
{
"navigationBarTitleText" : ""
"path": "pages/publish/postDetail",
"style": {
"navigationBarTitleText": ""
}
},
{
"path" : "pages/mine/sonPage/release/releaseList",
"style" :
{
"navigationBarTitleText" : ""
"path": "pages/publish/actorList",
"style": {
"navigationBarTitleText": ""
}
}
,{
"path" : "pages/mine/authOption",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}
,{
"path" : "pages/mine/authPerson",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}
,
{
"path" : "pages/mine/authFirm",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}
],
],
"subPackages": [{
"root": "pages_mine",
"pages": [{
"path": "mine/addBankCard"
},
{
"path": "mine/incomeRecord",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "mine/certifiedIndividual",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "mine/sonPage/promotion/promotionDetail",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "mine/sonPage/promotion/promotionRecordList",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "mine/sonPage/release/releaseList",
"style": {
"navigationBarTitleText": ""
}
}, {
"path": "mine/authOption",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}, {
"path": "mine/authPerson",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
},
{
"path": "mine/authFirm",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
},
{
"path": "mine/releaseRecord",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "mine/promotionRecord",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "mine/purse",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "mine/withdraw",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "mine/withdrawalRecord",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "mine/enterpriseCertification",
"style": {
"navigationBarTitleText": ""
}
}
]
}],
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "unapp模板",
@ -210,4 +181,4 @@
"navigationStyle": "custom"
},
"uniIdRouter": {}
}
}

+ 11
- 9
pages/index/center.vue View File

@ -3,7 +3,7 @@
<tabber :select="2"/>
<!-- 顶部 -->
<view style="width: 100%;height: 30%;">
<image src="/static/image/center/1.png" style="width: 100%;height: 100%;"></image>
<image src="https://tennis-oss.xzaiyp.top/2024-09-07/05cbb032-8177-478e-8fbe-0a3797096890.png" style="width: 100%;height: 100%;"></image>
</view>
<!--中部 用户信息-->
@ -119,25 +119,25 @@ export default {
//
baseList: [{
name: 'photo',
imageUrl: '/static/image/center/1.png',
imageUrl: 'https://tennis-oss.xzaiyp.top/2024-09-07/05cbb032-8177-478e-8fbe-0a3797096890.png',
title: '我的发布',
gotoPageUrl: '/mine/releaseRecord'
},
{
name: 'lock',
imageUrl: '/static/image/center/1.png',
imageUrl: 'https://tennis-oss.xzaiyp.top/2024-09-07/05cbb032-8177-478e-8fbe-0a3797096890.png',
title: '我的推广',
gotoPageUrl: '/mine/promotionRecord'
},
{
name: 'star',
imageUrl: '/static/image/center/1.png',
imageUrl: 'https://tennis-oss.xzaiyp.top/2024-09-07/05cbb032-8177-478e-8fbe-0a3797096890.png',
title: '我的银行卡',
gotoPageUrl: '/mine/addBankCard'
},
{
name: 'star',
imageUrl: '/static/image/center/1.png',
imageUrl: 'https://tennis-oss.xzaiyp.top/2024-09-07/05cbb032-8177-478e-8fbe-0a3797096890.png',
title: '我的钱包',
gotoPageUrl: '/mine/purse'
},
@ -146,18 +146,18 @@ export default {
otherList: [
{
name: 'photo',
imageUrl: '/static/image/center/1.png',
imageUrl: 'https://tennis-oss.xzaiyp.top/2024-09-07/05cbb032-8177-478e-8fbe-0a3797096890.png',
title: '实名信息',
gotoPageUrl: '/mine/certifiedIndividual'
},
{
name: 'lock',
imageUrl: '/static/image/center/1.png',
imageUrl: 'https://tennis-oss.xzaiyp.top/2024-09-07/05cbb032-8177-478e-8fbe-0a3797096890.png',
title: '帮助反馈'
},
{
name: 'outLogin',
imageUrl: '/static/image/center/1.png',
imageUrl: 'https://tennis-oss.xzaiyp.top/2024-09-07/05cbb032-8177-478e-8fbe-0a3797096890.png',
title: '退出登录',
gotoPageUrl: '/mine/promotionRecord'
},
@ -177,7 +177,9 @@ export default {
this.$refs.confirmationPopup.open()
return
}
this.$utils.navigateTo(item.gotoPageUrl)
uni.navigateTo({
url: '/pages_mine' + item.gotoPageUrl
})
},
handleConfirm() {


+ 1
- 0
pages/publish/publishPost.vue View File

@ -150,6 +150,7 @@
let self = this
e.file.forEach(file => {
self.$Oss.ossUpload(file.url).then(url => {
console.log(url);
self.fileList.push({
url
})


pages/mine/addBankCard.vue → pages_mine/mine/addBankCard.vue View File

@ -19,7 +19,7 @@
</label>
</radio-group>
<view class="camera-icon" @click="onCameraClick">
<image src="/static/image/addBankCard/1.svg"></image>
<image src="../static/addBankCard/1.svg"></image>
</view>
</view>
</view>

pages/mine/authFirm.vue → pages_mine/mine/authFirm.vue View File


pages/mine/authOption.vue → pages_mine/mine/authOption.vue View File


pages/mine/authPerson.vue → pages_mine/mine/authPerson.vue View File

@ -10,14 +10,14 @@
<view class="input">{{ name }}</view>
</view>
<uv-divider :hairline="false" lineColor="#c0c0c0" dot></uv-divider>
<!-- <uv-divider :hairline="false" lineColor="#c0c0c0" dot></uv-divider> -->
<view class="form-item">
<view class="label">身份证号</view>
<view class="input">{{ idCard }}</view>
</view>
<uv-divider :hairline="false" lineColor="#c0c0c0" dot></uv-divider>
<!-- <uv-divider :hairline="false" lineColor="#c0c0c0" dot></uv-divider> -->
</view>
<!--下一步按钮-->

pages/mine/certifiedIndividual.vue → pages_mine/mine/certifiedIndividual.vue View File

@ -8,16 +8,16 @@
<view class="content">
<view class="title">
<view class="image">
<image src="/static/image/auth/1.svg" style="width: 100%;height: 100%"></image>
<image src="../static/auth/1.svg" style="width: 100%;height: 100%"></image>
</view>
请确保二代身份证有效,并且头像文字清晰四角对齐,无反光无遮挡
</view>
<view class="center">
<view class="avatarFace">
<image src="/static/image/auth/2.png" style="width: 100%;height: 100%"></image>
<image src="../static/auth/2.png" style="width: 100%;height: 100%"></image>
</view>
<view class="reverseSide">
<image src="/static/image/auth/2.png" style="width: 100%;height: 100%"></image>
<image src="../static/auth/2.png" style="width: 100%;height: 100%"></image>
</view>
</view>
</view>

pages/mine/enterpriseCertification.vue → pages_mine/mine/enterpriseCertification.vue View File


pages/mine/incomeRecord.vue → pages_mine/mine/incomeRecord.vue View File

@ -11,7 +11,7 @@
<view class="list">
<view class="item" v-for="(item,index) in list" :key="index">
<view class="left">
<image src="/static/image/incomeRecord/1.png" style="width: 70%;height: 70%;"></image>
<image src="../static/incomeRecord/1.png" style="width: 70%;height: 70%;"></image>
</view>
<view class="center">
<view>{{ item.userId }}</view>

pages/mine/promotionRecord.vue → pages_mine/mine/promotionRecord.vue View File

@ -52,7 +52,7 @@
</template>
<script>
import PromotionRecordList from "@/pages/mine/sonPage/promotion/promotionRecordList.vue";
import PromotionRecordList from "./sonPage/promotion/promotionRecordList.vue";
import moment from "moment";
export default {
components: {

pages/mine/purse.vue → pages_mine/mine/purse.vue View File

@ -96,11 +96,15 @@ export default {
methods: {
//
gotoIncomeRecordPage() {
this.$utils.navigateTo('/mine/incomeRecord');
uni.navigateTo({
url: '/pages_mine/mine/incomeRecord'
});
},
//
gotoWithdrawPage() {
this.$utils.navigateTo('/mine/withdraw');
uni.navigateTo({
url:'/pages_mine/mine/withdraw'
})
},
getData(){
this.$api('infoGetBankCardPage', this.queryParams, res => {

pages/mine/releaseRecord.vue → pages_mine/mine/releaseRecord.vue View File

@ -33,7 +33,7 @@
</template>
<script>
import ReleaseList from "@/pages/mine/sonPage/release/releaseList.vue";
import ReleaseList from "./sonPage/release/releaseList.vue";
import {
mapState
} from 'vuex'

pages/mine/sonPage/promotion/promotionDetail.vue → pages_mine/mine/sonPage/promotion/promotionDetail.vue View File


pages/mine/sonPage/promotion/promotionRecordList.vue → pages_mine/mine/sonPage/promotion/promotionRecordList.vue View File


pages/mine/sonPage/release/releaseList.vue → pages_mine/mine/sonPage/release/releaseList.vue View File


pages/mine/withdraw.vue → pages_mine/mine/withdraw.vue View File


pages/mine/withdrawalRecord.vue → pages_mine/mine/withdrawalRecord.vue View File


static/image/addBankCard/1.svg → pages_mine/static/addBankCard/1.svg View File


static/image/auth/1.svg → pages_mine/static/auth/1.svg View File


static/image/auth/2.png → pages_mine/static/auth/2.png View File


static/image/incomeRecord/1.png → pages_mine/static/incomeRecord/1.png View File


static/image/promotionRecord/1.png → pages_mine/static/promotionRecord/1.png View File


static/image/promotionRecord/2.svg → pages_mine/static/promotionRecord/2.svg View File


static/image/promotionRecord/3.png → pages_mine/static/promotionRecord/3.png View File


static/image/purse/1.svg → pages_mine/static/purse/1.svg View File


Loading…
Cancel
Save