|
@@ -10,7 +10,8 @@
|
|
|
<view class="userHead-img">
|
|
|
<u-avatar class="userHead-head" :src="src" size="144"></u-avatar>
|
|
|
</view>
|
|
|
- <view class="userHead-btn">
|
|
|
+ <view class="userHead-btn"
|
|
|
+ @click="gotoUrl('pages/user/recharge')" >
|
|
|
<u-icon name="jiagebaohu" custom-prefix="custom-icon" color="#1677ff" size="32"></u-icon>
|
|
|
<span>充值</span>
|
|
|
</view>
|
|
@@ -26,26 +27,31 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="user-cell">
|
|
|
- <view class="user-cell-item">
|
|
|
+ <view
|
|
|
+ @click="gotoUrl('pages/user/rechargeList')"
|
|
|
+
|
|
|
+ class="user-cell-item">
|
|
|
<view class="user-cell-title">
|
|
|
<u-icon name="jiagebaohu" custom-prefix="custom-icon" color="#1677ff" size="32"></u-icon>
|
|
|
<span>充值记录</span>
|
|
|
</view>
|
|
|
<view class="user-cell-value"></view>
|
|
|
</view>
|
|
|
- <view class="user-cell-item">
|
|
|
+ <view
|
|
|
+ @click="gotoUrl('pages/charge/chargeList')"
|
|
|
+ class="user-cell-item">
|
|
|
<view class="user-cell-title">
|
|
|
<u-icon name="shoujichongdian" custom-prefix="custom-icon" color="#1677ff" size="32"></u-icon>
|
|
|
<span>充电记录</span>
|
|
|
</view>
|
|
|
<view class="user-cell-value"></view>
|
|
|
</view>
|
|
|
- <view class="user-cell-item">
|
|
|
+ <view class="user-cell-item" @click="phone()">
|
|
|
<view class="user-cell-title">
|
|
|
<u-icon name="kefu" custom-prefix="custom-icon" color="#1677ff" size="32"></u-icon>
|
|
|
<span>我的客服</span>
|
|
|
</view>
|
|
|
- <view class="user-cell-value">400-8899-619</view>
|
|
|
+ <view class="user-cell-value">{{tel}}</view>
|
|
|
</view>
|
|
|
<view class="user-cell-item">
|
|
|
<view class="user-cell-title">
|
|
@@ -56,47 +62,35 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <u-tabbar v-model="current" :list="tabbarList" :mid-button="true" active-color="#1677ff"></u-tabbar>
|
|
|
- </view>
|
|
|
+ <Tabbar :current="2" ></Tabbar>
|
|
|
+ </view>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+ import Tabbar from '@/components/Tabbar.vue'
|
|
|
+
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ src:'',
|
|
|
+ tel:'400-8899-619',
|
|
|
background: {
|
|
|
backgroundColor: '#1677ff',
|
|
|
},
|
|
|
- tabbarList: [{
|
|
|
- iconPath: "motuoche-diandongche",
|
|
|
- selectedIconPath: "motuoche-diandongche",
|
|
|
- text: '充电',
|
|
|
- count: 0,
|
|
|
- isDot: true,
|
|
|
- customIcon: true,
|
|
|
- },
|
|
|
- {
|
|
|
- iconPath: "/static/img/min_button_select.png",
|
|
|
- selectedIconPath: "/static/img/min_button_select.png",
|
|
|
- text: '充电中',
|
|
|
- midButton: true,
|
|
|
- customIcon: true,
|
|
|
- },
|
|
|
- {
|
|
|
- iconPath: "31wode",
|
|
|
- selectedIconPath: "31wode",
|
|
|
- text: '我的',
|
|
|
- count: 0,
|
|
|
- isDot: false,
|
|
|
- customIcon: true,
|
|
|
- },
|
|
|
- ],
|
|
|
- current: 0
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
-
|
|
|
- }
|
|
|
+ phone( ){
|
|
|
+ uni.makePhoneCall({
|
|
|
+ phoneNumber:this.tel //仅为示例
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ components: {
|
|
|
+ Tabbar
|
|
|
+
|
|
|
+ },
|
|
|
}
|
|
|
</script>
|
|
|
|