feat: 更新充值相关文案为购买洗车金额并优化客服功能
将应用中所有"充值"相关文案统一修改为"购买洗车金额",提升用户理解 重构客服电话功能为微信客服聊天窗口,优化用户体验 移除不必要的电话拨打代码,使用微信原生客服功能
This commit is contained in:
1
app.wxss
1
app.wxss
@@ -183,6 +183,7 @@
|
|||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
line-height: 40rpx;
|
line-height: 40rpx;
|
||||||
|
border:none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.index-href-box,.service-tel {
|
.index-href-box,.service-tel {
|
||||||
|
|||||||
@@ -1,13 +1,16 @@
|
|||||||
<template name="pageList">
|
<template name="pageList">
|
||||||
<view class="index-href-box">
|
<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">
|
<block wx:for="{{urlList}}" wx:key="index">
|
||||||
<view class="item_b" style="background-image:url({{item.img}}) ;">
|
<button wx:if="{{item.phone}}" class="item" open-type="contact" show-message-card="true">
|
||||||
<!-- <view class="btn">
|
<view class="item_b" style="background-image:url('{{item.img}}')">
|
||||||
<image class="video" src="../../img/video.png" wx:if="{{item.img=='video'}}"></image>
|
<view class="name">{{item.name}}</view>
|
||||||
<text class="iconfont icon-{{item.img}}" wx:else></text>
|
</view>
|
||||||
</view> -->
|
</button>
|
||||||
<view class="name">{{item.name}}</view>
|
<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>
|
||||||
</view>
|
</block>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -125,10 +125,14 @@ Page({
|
|||||||
}), (this.getData(), this.isneedUpload = !1);
|
}), (this.getData(), this.isneedUpload = !1);
|
||||||
},
|
},
|
||||||
toPage: function (t) {
|
toPage: function (t) {
|
||||||
console.info(t);
|
|
||||||
|
|
||||||
// 增加打电话
|
|
||||||
if (t.currentTarget.dataset.phone) {
|
if (t.currentTarget.dataset.phone) {
|
||||||
|
|
||||||
|
// 打开客服聊天窗口
|
||||||
|
return wx.openCustomerServiceChat();
|
||||||
|
|
||||||
|
|
||||||
|
// 增加打电话
|
||||||
wx.makePhoneCall({
|
wx.makePhoneCall({
|
||||||
phoneNumber: "" + t.currentTarget.dataset.phone
|
phoneNumber: "" + t.currentTarget.dataset.phone
|
||||||
});
|
});
|
||||||
@@ -185,8 +189,8 @@ Page({
|
|||||||
if (this.isshowModal) return t.startup(), !1;
|
if (this.isshowModal) return t.startup(), !1;
|
||||||
this.isshowModal = !0, wx.showModal({
|
this.isshowModal = !0, wx.showModal({
|
||||||
title: "提示",
|
title: "提示",
|
||||||
content: "账户余额小于10元,是否立即充值?",
|
content: "账户余额小于10元,是否立即购买洗车金额?",
|
||||||
confirmText: "去充值",
|
confirmText: "去购买",
|
||||||
cancelText: "立即启动",
|
cancelText: "立即启动",
|
||||||
success: function (e) {
|
success: function (e) {
|
||||||
e.confirm ? (wx.navigateTo({
|
e.confirm ? (wx.navigateTo({
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ Page({
|
|||||||
this.setData({
|
this.setData({
|
||||||
type: a.type
|
type: a.type
|
||||||
}), wx.setNavigationBarTitle({
|
}), wx.setNavigationBarTitle({
|
||||||
title: "invest" == a.type ? "充值记录" : "消费明细"
|
title: "invest" == a.type ? "购买记录" : "消费明细"
|
||||||
}), e.pageStart(t).then(function(t) {
|
}), e.pageStart(t).then(function(t) {
|
||||||
n.getContent();
|
n.getContent();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -17,5 +17,5 @@
|
|||||||
<view>暂无相关数据</view>
|
<view>暂无相关数据</view>
|
||||||
</view>
|
</view>
|
||||||
<service-tel></service-tel>
|
<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>
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
<view>本金:<text class="r">{{userInfo.recharge.money || ''}}</text></view>
|
<view>本金:<text class="r">{{userInfo.recharge.money || ''}}</text></view>
|
||||||
<view>赠送:{{userInfo.recharge.bonusamount || ''}}</view>
|
<view>赠送:{{userInfo.recharge.bonusamount || ''}}</view>
|
||||||
<view class="mt">订单号:{{userInfo.recharge.orderid || ''}}</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>网点:<text class="r">{{userInfo.recharge.agent || ''}}</text></view>
|
||||||
</view>
|
</view>
|
||||||
<button class="button" form-type="submit" type="primary">线上退款</button>
|
<button class="button" form-type="submit" type="primary">线上退款</button>
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
<view>本金:<text class="r">{{userInfo.recharge.money || ''}}</text></view>
|
<view>本金:<text class="r">{{userInfo.recharge.money || ''}}</text></view>
|
||||||
<view>赠送:{{userInfo.recharge.bonusamount || ''}}</view>
|
<view>赠送:{{userInfo.recharge.bonusamount || ''}}</view>
|
||||||
<view class="mt">订单号:{{userInfo.recharge.orderid || ''}}</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>网点:<text class="r">{{userInfo.recharge.agent || ''}}</text></view>
|
||||||
</view>
|
</view>
|
||||||
<button class="button" form-type="submit" type="warn">线下退款</button>
|
<button class="button" form-type="submit" type="warn">线下退款</button>
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
<view class="my-capital shadow">
|
<view class="my-capital shadow">
|
||||||
<view class="title">
|
<view class="title">
|
||||||
<view class="text">我的资产</view>
|
<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>
|
||||||
<view class="money-box">
|
<view class="money-box">
|
||||||
<view class="item">
|
<view class="item">
|
||||||
@@ -62,14 +62,14 @@
|
|||||||
<text class="iconfont icon-{{item.img}}"></text>
|
<text class="iconfont icon-{{item.img}}"></text>
|
||||||
<view class="name">{{item.name}}</view>
|
<view class="name">{{item.name}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view bindtap="callUs" class="item" openType="contact">
|
<!-- <view bindtap="callUs" class="item" openType="contact">
|
||||||
<text class="iconfont icon-10"></text>
|
<text class="iconfont icon-10"></text>
|
||||||
<view class="name">联系客服</view>
|
<view class="name">联系客服</view>
|
||||||
</view>
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
<view class="footer-btn">
|
<view class="footer-btn">
|
||||||
<navigator class="btn" hoverClass="hover" url="/pages/index/index">首页</navigator>
|
<navigator class="btn" hoverClass="hover" url="/pages/index/index">首页</navigator>
|
||||||
<view class="btn">扫一扫</view>
|
<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>
|
</view>
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ Page({
|
|||||||
icon: "none"
|
icon: "none"
|
||||||
}), !1;
|
}), !1;
|
||||||
if (!this.data.selectItemID || this.isSubmit) return wx.showToast({
|
if (!this.data.selectItemID || this.isSubmit) return wx.showToast({
|
||||||
title: "请选择充值金额~",
|
title: "请选择购买洗车金额~",
|
||||||
icon: "none"
|
icon: "none"
|
||||||
}), !1;
|
}), !1;
|
||||||
this.isSubmit = !0, wx.showLoading({
|
this.isSubmit = !0, wx.showLoading({
|
||||||
|
|||||||
@@ -15,8 +15,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view bindtap="tobuy" class="buy-btn" data-id="{{item.id}}">
|
<view bindtap="tobuy" class="buy-btn" data-id="{{item.id}}">
|
||||||
<text decode="true">优惠
|
<text decode="true">优惠购买</text>
|
||||||
购买</text>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -25,7 +24,7 @@
|
|||||||
</block>
|
</block>
|
||||||
<block wx:if="{{edition==1}}">
|
<block wx:if="{{edition==1}}">
|
||||||
<view class="edition1-money">
|
<view class="edition1-money">
|
||||||
<view class="l">选择充值金额</view>
|
<view class="l">选择购买洗车金额</view>
|
||||||
<view class="r">余额:{{user.money}}</view>
|
<view class="r">余额:{{user.money}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="edition1-list">
|
<view class="edition1-list">
|
||||||
@@ -41,10 +40,10 @@
|
|||||||
<image src="/img/nocontent.png"></image>
|
<image src="/img/nocontent.png"></image>
|
||||||
<view>暂无相关数据</view>
|
<view>暂无相关数据</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">
|
<checkbox-group bindchange="change">
|
||||||
<label class="provision">
|
<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>
|
</label>
|
||||||
</checkbox-group>
|
</checkbox-group>
|
||||||
<view catchtap="showprovision" class="provision-box" wx:if="{{showTips}}">
|
<view catchtap="showprovision" class="provision-box" wx:if="{{showTips}}">
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
<view bindtap="callUs" class="service-tel">
|
<view class="service-tel">
|
||||||
<view>=客服电话=</view>
|
<!-- <view>=客服电话=</view>
|
||||||
<view>{{tel}}</view>
|
<view bindtap="callUs">{{tel}}</view> -->
|
||||||
|
|
||||||
|
<button class="service-tel" open-type="contact" show-message-card="true">联系客服</button>
|
||||||
</view>
|
</view>
|
||||||
Reference in New Issue
Block a user