android添加银行插件
diff --git a/pages/sub_index/activateCard/index.vue b/pages/sub_index/activateCard.vue
similarity index 88%
rename from pages/sub_index/activateCard/index.vue
rename to pages/sub_index/activateCard.vue
index 8fc7bfe..5bb6dac 100644
--- a/pages/sub_index/activateCard/index.vue
+++ b/pages/sub_index/activateCard.vue
@@ -10,12 +10,12 @@
<view class="activateCard-getId-photo">
<u-upload ref="uUpload" @on-uploaded="onUploaded" :action="action" :auto-upload="false" max-count="1" :custom-btn="true">
<view slot="addBtn" class="slot-btn">
- <u-image src="/static/images/activateCard/photo.png" width="100%" height="100%" mode="aspectFit"></u-image>
+ <u-image src="/images/activateCard/photo.png" width="100%" height="100%" mode="aspectFit"></u-image>
</view>
</u-upload>
<u-upload ref="uUpload" @on-uploaded="onUploaded" :action="action" :auto-upload="false" max-count="1" :custom-btn="true">
<view slot="addBtn" class="slot-btn">
- <u-image src="/static/images/activateCard/photo1.png" width="100%" height="100%" mode="aspectFit"></u-image>
+ <u-image src="/images/activateCard/photo1.png" width="100%" height="100%" mode="aspectFit"></u-image>
</view>
</u-upload>
</view>
@@ -25,12 +25,12 @@
<view class="activateCard-getId-photo">
<u-upload ref="uUpload" @on-uploaded="onUploaded" :action="action" :auto-upload="false" max-count="1" :custom-btn="true">
<view slot="addBtn" class="slot-btn">
- <u-image src="/static/images/activateCard/photo2.png" width="100%" height="100%" mode="aspectFit"></u-image>
+ <u-image src="/images/activateCard/photo2.png" width="100%" height="100%" mode="aspectFit"></u-image>
</view>
</u-upload>
<u-upload ref="uUpload" @on-uploaded="onUploaded" :action="action" :auto-upload="false" max-count="1" :custom-btn="true">
<view slot="addBtn" class="slot-btn">
- <u-image src="/static/images/activateCard/photo2.png" width="100%" height="100%" mode="aspectFit"></u-image>
+ <u-image src="/images/activateCard/photo2.png" width="100%" height="100%" mode="aspectFit"></u-image>
</view>
</u-upload>
</view>
diff --git a/pages/sub_index/activeDetails/index.vue b/pages/sub_index/activeDetails.vue
similarity index 97%
rename from pages/sub_index/activeDetails/index.vue
rename to pages/sub_index/activeDetails.vue
index 13fed63..e75322c 100644
--- a/pages/sub_index/activeDetails/index.vue
+++ b/pages/sub_index/activeDetails.vue
@@ -19,7 +19,7 @@
<view class="richText">
<u-parse :html="article.content" :lazy-load="true"></u-parse>
</view>
- <u-button :custom-style="activeDetailsBtn" @click="join" v-if="isShowBtn">报名</u-button>
+ <!-- <u-button :custom-style="activeDetailsBtn" @click="join" v-if="isShowBtn">报名</u-button> -->
</view>
<u-empty text="活动不存在" mode="page" font-size="40" :show="show" margin-top="300"></u-empty>
</view>
diff --git a/pages/sub_index/busRecords/index.vue b/pages/sub_index/busRecords.vue
similarity index 100%
rename from pages/sub_index/busRecords/index.vue
rename to pages/sub_index/busRecords.vue
diff --git a/pages/sub_index/cardApply/index.vue b/pages/sub_index/cardApply.vue
similarity index 98%
rename from pages/sub_index/cardApply/index.vue
rename to pages/sub_index/cardApply.vue
index 217ab3e..2665275 100644
--- a/pages/sub_index/cardApply/index.vue
+++ b/pages/sub_index/cardApply.vue
@@ -27,8 +27,7 @@
<!-- <u-button :custom-style="cardApplyBtn" @click="apply">申请其他卡</u-button> -->
<view class="cardApply-footer">
<text>我的权益:</text>
- <text>公交乘车:普通卡9折、爱心卡、学生卡原价5折;阳光卡、老年卡每年享1500次免费乘坐。</text>
- <text>市民卡日(每月第一周的周六周日):到指定商户消费享受最低5折优惠。 </text>
+ <u-parse :html="text" :lazy-load="true" style="white-space: pre-line;"></u-parse>
</view>
</view>
</template>
@@ -37,7 +36,7 @@
export default {
data() {
return {
- cardApplyBtn:{
+ cardApplyBtn: {
width: '600rpx',
backgroundColor: '#2FA8E1',
color: '#FFFFFF',
@@ -46,44 +45,57 @@
marginTop: '50rpx',
padding: '50rpx 0'
},
- name:'',
- bankcardno:'',
- cardno:''
+ name: '',
+ bankcardno: '',
+ cardno: '',
+ text:''
}
},
methods: {
- apply(){
+ apply() {
uni.showToast({
- title:"暂无其他卡可申请",
- icon:"none",
- duration:1500
+ title: "暂无其他卡可申请",
+ icon: "none",
+ duration: 1500
})
}
},
- onLoad(){
+ onLoad() {
let that = this
- that.name = uni.getStorageSync('name')?uni.getStorageSync('name'):'佚名'
- that.bankcardno = uni.getStorageSync('bankcardno')?uni.getStorageSync('bankcardno').substr(uni.getStorageSync('bankcardno').length-4):'****'
- that.cardno = uni.getStorageSync('cardno')?uni.getStorageSync('cardno'):'暂无市民卡信息'
+ that.name = uni.getStorageSync('name') ? uni.getStorageSync('name') : '佚名'
+ that.bankcardno = uni.getStorageSync('bankcardno') ? uni.getStorageSync('bankcardno').substr(uni.getStorageSync(
+ 'bankcardno').length - 4) : '****'
+ that.cardno = uni.getStorageSync('cardno') ? uni.getStorageSync('cardno') : '暂无市民卡信息'
+ that.get_rule()
+ },
+ methods: {
+ get_rule() {
+ let that = this
+ that.$u.get('/i/prompt/get/rights',).then(res => {
+ let content = res.prompt
+ that.text = content.replace(/\n/g,"<br/>")
+ })
+ }
}
}
</script>
<style scoped lang="scss">
-
.cardApply {
height: 100vh;
background-color: #FFFFFF;
overflow: hidden;
- &-footer{
+
+ &-footer {
display: flex;
flex-direction: column;
margin-top: 50rpx;
padding: 30rpx;
font-family: "PingFang-SC-Medium";
color: #666666;
- text{
- &:nth-child(1){
+
+ text {
+ &:nth-child(1) {
color: #333333;
font-size: 28rpx;
}
@@ -154,11 +166,13 @@
padding: 50rpx 0;
}
}
+
/* #ifdef APP-PLUS */
- .cardApply{
- &-card{
- background-image: url(/static/images/cardApply/banner.png);
+ .cardApply {
+ &-card {
+ background-image: url(./images/cardApply/banner.png);
}
}
+
/* #endif */
</style>
diff --git a/pages/sub_index/chat/index.vue b/pages/sub_index/chat.vue
similarity index 95%
rename from pages/sub_index/chat/index.vue
rename to pages/sub_index/chat.vue
index 20c9f37..26c04c4 100644
--- a/pages/sub_index/chat/index.vue
+++ b/pages/sub_index/chat.vue
@@ -11,10 +11,10 @@
<u-cell-item title="资讯库" @click="toPath('')">
<u-icon slot="icon" size="32" name="zx" custom-prefix="custom-icon"></u-icon>
</u-cell-item>
- <u-cell-item title="网点查询" @click="toPath('/pages/sub_index/offlineHelp/index')">
+ <u-cell-item title="网点查询" @click="toPath('/pages/sub_index/offlineHelp')">
<u-icon slot="icon" size="32" name="offlineHelp" custom-prefix="custom-icon"></u-icon>
</u-cell-item>
- <u-cell-item title="常见问题" @click="toPath('/pages/sub_index/question/index')">
+ <u-cell-item title="常见问题" @click="toPath('/pages/sub_index/question')">
<u-icon slot="icon" size="32" name="question" custom-prefix="custom-icon"></u-icon>
</u-cell-item>
</u-cell-group>
diff --git a/pages/sub_index/chatDetails/index.vue b/pages/sub_index/chatDetails.vue
similarity index 100%
rename from pages/sub_index/chatDetails/index.vue
rename to pages/sub_index/chatDetails.vue
diff --git a/pages/sub_index/chatIssue/index.vue b/pages/sub_index/chatIssue.vue
similarity index 97%
rename from pages/sub_index/chatIssue/index.vue
rename to pages/sub_index/chatIssue.vue
index fa3f256..bf86ec1 100644
--- a/pages/sub_index/chatIssue/index.vue
+++ b/pages/sub_index/chatIssue.vue
@@ -11,7 +11,7 @@
<view class="chatIssue-con-search">
<u-search placeholder="搜索关键词" v-model="val" action-text="+ 发布" :show-action="false" @search="search"></u-search>
</view>
- <view class="chatIssue-con-add" @click="toPath('/pages/sub_index/issueQuestion/index')">
+ <view class="chatIssue-con-add" @click="toPath('/pages/sub_index/issueQuestion')">
<u-icon name="plus" color="#333333" size="32"></u-icon>
<text class="chatIssue-con-add-text">发布</text>
</view>
@@ -23,7 +23,7 @@
<u-avatar :src="avatar" size="110"></u-avatar>
</view>
<view class="chatIssue-item-con">
- <view class="chatIssue-item-con-title" @click="toPath('/pages/sub_index/chatDetails/index')">哇,好大的雪啊,你们那里雪大吗?</view>
+ <view class="chatIssue-item-con-title" @click="toPath('/pages/sub_index/chatDetails')">哇,好大的雪啊,你们那里雪大吗?</view>
<view class="chatIssue-item-con-author">
<view class="chatIssue-item-con-author-left">
<text>张嚣</text>
diff --git a/pages/sub_index/getCityCard/index.vue b/pages/sub_index/getCityCard.vue
similarity index 95%
rename from pages/sub_index/getCityCard/index.vue
rename to pages/sub_index/getCityCard.vue
index ed67fab..7430f4b 100644
--- a/pages/sub_index/getCityCard/index.vue
+++ b/pages/sub_index/getCityCard.vue
@@ -2,7 +2,7 @@
<view class="getCityCard">
<view class="getCityCard-list">
<u-cell-group>
- <u-cell-item title="挂失" @click="toPath('/pages/sub_mine/reportheLoss/index')">
+ <u-cell-item title="挂失" @click="toPath('/pages/sub_mine/reportheLoss')">
<u-icon slot="icon" size="32" name="gs" custom-prefix="custom-icon"></u-icon>
</u-cell-item>
<u-cell-item title="开卡" @click="toPath('')">
@@ -11,7 +11,7 @@
<u-cell-item title="年检" @click="toPath()">
<u-icon slot="icon" size="32" name="jc" custom-prefix="custom-icon"></u-icon>
</u-cell-item>
- <u-cell-item title="卡应用" @click="toPath('/pages/sub_index/cardApply/index')">
+ <u-cell-item title="卡应用" @click="toPath('/pages/sub_index/cardApply')">
<u-icon slot="icon" size="32" name="card" custom-prefix="custom-icon"></u-icon>
</u-cell-item>
</u-cell-group>
diff --git a/pages/sub_index/images/activateCard/photo.png b/pages/sub_index/images/activateCard/photo.png
new file mode 100644
index 0000000..a8cd705
--- /dev/null
+++ b/pages/sub_index/images/activateCard/photo.png
Binary files differ
diff --git a/pages/sub_index/images/activateCard/photo1.png b/pages/sub_index/images/activateCard/photo1.png
new file mode 100644
index 0000000..4b3809d
--- /dev/null
+++ b/pages/sub_index/images/activateCard/photo1.png
Binary files differ
diff --git a/pages/sub_index/images/activateCard/photo2.png b/pages/sub_index/images/activateCard/photo2.png
new file mode 100644
index 0000000..e3a7b50
--- /dev/null
+++ b/pages/sub_index/images/activateCard/photo2.png
Binary files differ
diff --git a/pages/sub_index/images/cardApply/banner.png b/pages/sub_index/images/cardApply/banner.png
new file mode 100644
index 0000000..b84c2f8
--- /dev/null
+++ b/pages/sub_index/images/cardApply/banner.png
Binary files differ
diff --git a/pages/sub_index/images/introduce/bannar1.png b/pages/sub_index/images/introduce/bannar1.png
new file mode 100644
index 0000000..c31d7cf
--- /dev/null
+++ b/pages/sub_index/images/introduce/bannar1.png
Binary files differ
diff --git a/pages/sub_index/images/map/mark.png b/pages/sub_index/images/map/mark.png
new file mode 100644
index 0000000..e166ab7
--- /dev/null
+++ b/pages/sub_index/images/map/mark.png
Binary files differ
diff --git a/pages/sub_index/images/map/my.png b/pages/sub_index/images/map/my.png
new file mode 100644
index 0000000..9815685
--- /dev/null
+++ b/pages/sub_index/images/map/my.png
Binary files differ
diff --git a/pages/sub_index/introduce/index.vue b/pages/sub_index/introduce.vue
similarity index 99%
rename from pages/sub_index/introduce/index.vue
rename to pages/sub_index/introduce.vue
index 657bb24..375e7a7 100644
--- a/pages/sub_index/introduce/index.vue
+++ b/pages/sub_index/introduce.vue
@@ -73,7 +73,7 @@
display: flex;
flex-direction: column;
align-items: center;
- background-image: url(/static/images/introduce/bannar1.png);
+ background-image: url(./images/introduce/bannar1.png);
background-position: top;
border-radius: 30rpx;
background-size: cover;
diff --git a/pages/sub_index/issueQuestion/index.vue b/pages/sub_index/issueQuestion.vue
similarity index 100%
rename from pages/sub_index/issueQuestion/index.vue
rename to pages/sub_index/issueQuestion.vue
diff --git a/pages/sub_index/offlineHelp/index.nvue b/pages/sub_index/offlineHelp.nvue
similarity index 97%
rename from pages/sub_index/offlineHelp/index.nvue
rename to pages/sub_index/offlineHelp.nvue
index 89e3fe0..315f56e 100644
--- a/pages/sub_index/offlineHelp/index.nvue
+++ b/pages/sub_index/offlineHelp.nvue
@@ -49,16 +49,16 @@
circles: [{
longitude: 0,
latitude: 0,
- fillColor: 'rgba(219, 244, 255, .6)',
+ fillColor: '#DBF4FF99',
radius: 1500,
- color: 'rgba(219, 244, 255, .6)'
+ color: '#DBF4FF99'
}],
markList: [{
id: 0,
longitude: 0,
latitude: 0,
title: '我所在位置',
- iconPath: '/static/images/map/my.png',
+ iconPath: './images/map/my.png',
width: 20,
height: 20,
index: 0
@@ -152,7 +152,7 @@
that.markList.push({
longitude: value.location.substr(0, value.location.indexOf(",")),
latitude: value.location.substr(value.location.indexOf(",") + 1),
- iconPath: '/static/images/map/mark.png',
+ iconPath: './images/map/mark.png',
width: 20,
height: 35,
title: value.name,
diff --git a/pages/sub_index/scanView/pay.vue b/pages/sub_index/pay.vue
similarity index 100%
rename from pages/sub_index/scanView/pay.vue
rename to pages/sub_index/pay.vue
diff --git a/pages/sub_index/qrcode/index.vue b/pages/sub_index/qrcode.vue
similarity index 98%
rename from pages/sub_index/qrcode/index.vue
rename to pages/sub_index/qrcode.vue
index d2a5ce4..ef5f0b2 100644
--- a/pages/sub_index/qrcode/index.vue
+++ b/pages/sub_index/qrcode.vue
@@ -78,7 +78,7 @@
success(res) {
if (res.confirm) {
uni.navigateTo({
- url: "/pages/sub_mine/bindBankCard/index"
+ url: "/pages/sub_mine/bindBankCard"
})
}
}
diff --git a/pages/sub_index/question/index.vue b/pages/sub_index/question.vue
similarity index 100%
rename from pages/sub_index/question/index.vue
rename to pages/sub_index/question.vue
diff --git a/pages/sub_index/scanView/index.vue b/pages/sub_index/scanView.vue
similarity index 100%
rename from pages/sub_index/scanView/index.vue
rename to pages/sub_index/scanView.vue