feat: 更新充值相关文案为购买洗车金额并优化客服功能

将应用中所有"充值"相关文案统一修改为"购买洗车金额",提升用户理解
重构客服电话功能为微信客服聊天窗口,优化用户体验
移除不必要的电话拨打代码,使用微信原生客服功能
This commit is contained in:
2025-12-14 11:04:03 +08:00
parent e92b864bec
commit 5ddd0b177b
10 changed files with 39 additions and 30 deletions

View File

@@ -183,6 +183,7 @@
font-size: 26rpx;
justify-content: center;
line-height: 40rpx;
border:none;
}
.index-href-box,.service-tel {

View File

@@ -1,13 +1,16 @@
<template name="pageList">
<view class="index-href-box">
<view bindtap="toPage" class="item" data-needlogin="{{item.needlogin}}" data-refresh="{{item.refresh}}" data-showimg="{{item.showimg}}" data-url="{{item.url}}" data-phone="{{item.phone}}" wx:for="{{urlList}}" wx:key="index">
<view class="item_b" style="background-image:url({{item.img}}) ;">
<!-- <view class="btn">
<image class="video" src="../../img/video.png" wx:if="{{item.img=='video'}}"></image>
<text class="iconfont icon-{{item.img}}" wx:else></text>
</view> -->
<view class="name">{{item.name}}</view>
<block wx:for="{{urlList}}" wx:key="index">
<button wx:if="{{item.phone}}" class="item" open-type="contact" show-message-card="true">
<view class="item_b" style="background-image:url('{{item.img}}')">
<view class="name">{{item.name}}</view>
</view>
</button>
<view wx:else bindtap="toPage" class="item" data-needlogin="{{item.needlogin}}" data-refresh="{{item.refresh}}" data-showimg="{{item.showimg}}" data-url="{{item.url}}" data-phone="{{item.phone}}">
<view class="item_b" style="background-image:url('{{item.img}}')">
<view class="name">{{item.name}}</view>
</view>
</view>
</view>
</block>
</view>
</template>

View File

@@ -125,10 +125,14 @@ Page({
}), (this.getData(), this.isneedUpload = !1);
},
toPage: function (t) {
console.info(t);
// 增加打电话
if (t.currentTarget.dataset.phone) {
// 打开客服聊天窗口
return wx.openCustomerServiceChat();
// 增加打电话
wx.makePhoneCall({
phoneNumber: "" + t.currentTarget.dataset.phone
});
@@ -185,8 +189,8 @@ Page({
if (this.isshowModal) return t.startup(), !1;
this.isshowModal = !0, wx.showModal({
title: "提示",
content: "账户余额小于10元是否立即充值",
confirmText: "去充值",
content: "账户余额小于10元是否立即购买洗车金额",
confirmText: "去购买",
cancelText: "立即启动",
success: function (e) {
e.confirm ? (wx.navigateTo({

View File

@@ -15,7 +15,7 @@ Page({
this.setData({
type: a.type
}), wx.setNavigationBarTitle({
title: "invest" == a.type ? "充值记录" : "消费明细"
title: "invest" == a.type ? "购买记录" : "消费明细"
}), e.pageStart(t).then(function(t) {
n.getContent();
});

View File

@@ -17,5 +17,5 @@
<view>暂无相关数据</view>
</view>
<service-tel></service-tel>
<view bindtap="toPage" class="scan-btn" wx:if="{{type=='invest'}}"> 立即充值 </view>
<view bindtap="toPage" class="scan-btn" wx:if="{{type=='invest'}}"> 立即购买洗车金额 </view>
</view>

View File

@@ -34,7 +34,7 @@
<view>本金:<text class="r">{{userInfo.recharge.money || ''}}</text></view>
<view>赠送:{{userInfo.recharge.bonusamount || ''}}</view>
<view class="mt">订单号:{{userInfo.recharge.orderid || ''}}</view>
<view>充值时间:<text class="r">{{userInfo.recharge.date || ''}}</text></view>
<view>购买时间:<text class="r">{{userInfo.recharge.date || ''}}</text></view>
<view>网点:<text class="r">{{userInfo.recharge.agent || ''}}</text></view>
</view>
<button class="button" form-type="submit" type="primary">线上退款</button>
@@ -45,7 +45,7 @@
<view>本金:<text class="r">{{userInfo.recharge.money || ''}}</text></view>
<view>赠送:{{userInfo.recharge.bonusamount || ''}}</view>
<view class="mt">订单号:{{userInfo.recharge.orderid || ''}}</view>
<view>充值时间:<text class="r">{{userInfo.recharge.date || ''}}</text></view>
<view>购买时间:<text class="r">{{userInfo.recharge.date || ''}}</text></view>
<view>网点:<text class="r">{{userInfo.recharge.agent || ''}}</text></view>
</view>
<button class="button" form-type="submit" type="warn">线下退款</button>

View File

@@ -18,7 +18,7 @@
<view class="my-capital shadow">
<view class="title">
<view class="text">我的资产</view>
<view bindtap="toPage" class="btn" data-refresh="1" data-url="voucher/voucher">立即充值 ></view>
<view bindtap="toPage" class="btn" data-refresh="1" data-url="voucher/voucher">立即购买 ></view>
</view>
<view class="money-box">
<view class="item">
@@ -62,14 +62,14 @@
<text class="iconfont icon-{{item.img}}"></text>
<view class="name">{{item.name}}</view>
</view>
<view bindtap="callUs" class="item" openType="contact">
<!-- <view bindtap="callUs" class="item" openType="contact">
<text class="iconfont icon-10"></text>
<view class="name">联系客服</view>
</view>
</view> -->
</view>
<view class="footer-btn">
<navigator class="btn" hoverClass="hover" url="/pages/index/index">首页</navigator>
<view class="btn">扫一扫</view>
<navigator class="btn" hoverClass="hover" url="/pages/voucher/voucher">充值</navigator>
<navigator class="btn" hoverClass="hover" url="/pages/voucher/voucher">购买洗车金额</navigator>
</view>
</view>

View File

@@ -118,7 +118,7 @@ Page({
icon: "none"
}), !1;
if (!this.data.selectItemID || this.isSubmit) return wx.showToast({
title: "请选择充值金额~",
title: "请选择购买洗车金额~",
icon: "none"
}), !1;
this.isSubmit = !0, wx.showLoading({

View File

@@ -15,8 +15,7 @@
</view>
</view>
<view bindtap="tobuy" class="buy-btn" data-id="{{item.id}}">
<text decode="true">优惠
购买</text>
<text decode="true">优惠购买</text>
</view>
</view>
</view>
@@ -25,7 +24,7 @@
</block>
<block wx:if="{{edition==1}}">
<view class="edition1-money">
<view class="l">选择充值金额</view>
<view class="l">选择购买洗车金额</view>
<view class="r">余额:{{user.money}}</view>
</view>
<view class="edition1-list">
@@ -41,10 +40,10 @@
<image src="/img/nocontent.png"></image>
<view>暂无相关数据</view>
</view>
<view bindtap="tobuyNow" class="tobuy-btn {{approve?'':'disabled'}}" wx:if="{{list.length>0}}">立即充值</view>
<view bindtap="tobuyNow" class="tobuy-btn {{approve?'':'disabled'}}" wx:if="{{list.length>0}}">立即购买</view>
<checkbox-group bindchange="change">
<label class="provision">
<checkbox checked value="{{approve}}"></checkbox> 充值即表示同意 <navigator class="text" url="/pages/webview/webview?url={{protocol.url}}">《{{protocol.name}}》</navigator>
<checkbox checked value="{{approve}}"></checkbox> 购买即表示同意 <navigator class="text" url="/pages/webview/webview?url={{protocol.url}}">《{{protocol.name}}》</navigator>
</label>
</checkbox-group>
<view catchtap="showprovision" class="provision-box" wx:if="{{showTips}}">

View File

@@ -1,4 +1,6 @@
<view bindtap="callUs" class="service-tel">
<view>=客服电话=</view>
<view>{{tel}}</view>
<view class="service-tel">
<!-- <view>=客服电话=</view>
<view bindtap="callUs">{{tel}}</view> -->
<button class="service-tel" open-type="contact" show-message-card="true">联系客服</button>
</view>