فهرست منبع

添加花王阿姨认证显示二维码

暖心小太阳 1 ماه پیش
والد
کامیت
b6117f13c9

+ 2 - 1
api/api.js

@@ -174,5 +174,6 @@ arrivedByMerchantNew: WxApiRoot + 'arrivedByMerchantNew', //我已上门
 hasReadServiceRemark:WxApiRoot + 'hasReadServiceRemark',
 serviceOrderAcceptanceCheck:WxApiRoot + 'serviceOrderAcceptanceCheck',
 smsEvaluate:WxApiRoot + 'smsEvaluate',
-finishServiceOrder:WxApiRoot + 'finishServiceOrder'
+finishServiceOrder:WxApiRoot + 'finishServiceOrder',
+getServantQr:WxApiRoot+'getRzQrUrl'
  };

+ 2 - 1
app.json

@@ -77,7 +77,8 @@
 		"pages/new/customerCheck/customerCheck",
 		"pages/new/ticketDetail/ticketDetail",
 		"pages/new/changeSchedue/changeSchedue",
-		"pages/new/onDoorClock/onDoorClock"
+		"pages/new/onDoorClock/onDoorClock",
+		"pages/new/servantDetail/servantDetail"
 	],
 	"subPackages": [
 		{

+ 77 - 0
pages/new/servantDetail/servantDetail.js

@@ -0,0 +1,77 @@
+// pages/new/servantDetail/servantDetail.js
+
+const util = require("../../../utils/util");
+const api = require('../../../api/api.js');
+Page({
+
+	/**
+	 * 页面的初始数据
+	 */
+	data: {
+    servantId:'',
+    qrCode:''
+  },
+
+	/**
+	 * 生命周期函数--监听页面加载
+	 */
+	onLoad(options) {
+    console.log("options",options);
+    if(options){
+      wx.showLoading({
+        title: '加载中',
+      })
+      util.request(api.getServantQr, {
+        servantId:options.servantId
+      }, 'GET').then(res => {
+        if (res.errno === 0) {
+          wx.hideLoading()
+          console.log(res);
+          this.setData({
+          	qrCode: res.data
+          });
+  
+        }
+      }).catch(err => {
+  
+      });
+    }
+  
+	},
+
+	/**
+	 * 生命周期函数--监听页面初次渲染完成
+	 */
+	onReady() {
+
+	},
+
+	/**
+	 * 生命周期函数--监听页面显示
+	 */
+	onShow() {
+
+	},
+
+	/**
+	 * 生命周期函数--监听页面隐藏
+	 */
+	onHide() {
+
+	},
+
+	/**
+	 * 生命周期函数--监听页面卸载
+	 */
+	onUnload() {
+
+	},
+
+	/**
+	 * 用户点击右上角分享
+	 */
+	onShareAppMessage() {
+
+  },
+
+})

+ 3 - 0
pages/new/servantDetail/servantDetail.json

@@ -0,0 +1,3 @@
+{
+	"usingComponents": {}
+}

+ 5 - 0
pages/new/servantDetail/servantDetail.wxml

@@ -0,0 +1,5 @@
+<view class="qr-container">
+<view class="qr-show">
+<image :src="{{qrCode}}" mode=""/>
+</view>
+</view>

+ 17 - 0
pages/new/servantDetail/servantDetail.wxss

@@ -0,0 +1,17 @@
+.qr-container{
+  width: 100vw;
+  height: 100vh;
+display: flex;
+/* align-items: center; */
+justify-content: center;
+}
+.qr-show{
+  width: 500rpx;
+  height: 500rpx;
+  /* background-color: aqua; */
+  margin-top: 300rpx;
+}
+.qr-show image{
+  width: 100%;
+  height: 100%;
+}

+ 9 - 1
pages/new/ticketDetail/ticketDetail.js

@@ -602,7 +602,15 @@ tapCusRemark(){
 		this.setData({
 			'comments.comment': e.detail.value
 		})
-	},
+  },
+  
+  getServantDetail(e){
+console.log("我的打印", e.currentTarget.dataset);
+let servantId=e.currentTarget.dataset.id
+wx.navigateTo({
+  url: '/pages/new/servantDetail/servantDetail?servantId='+servantId,
+})
+  },
 	goSaveCommnet() {//保存评论
 		let that = this;
 		if (that.data.comments.selected == 0) {

+ 8 - 1
pages/new/ticketDetail/ticketDetail.wxml

@@ -153,7 +153,14 @@
 		</view>
 	</view>
 
-
+	<view class="new-operate" wx:if="{{orderInfo.channel==112&orderInfo.isHwAuth}}">
+		<view class="operate-left">
+			<view>认证</view>
+		</view>
+		<view class="operate-right" data-channel="{{orderInfo.channel}}"  data-id="{{orderInfo.servantId}}" bindtap="getServantDetail" >
+			<view class="operate-text1" >点击亮码</view>
+		</view>
+	</view>
 	<view class="bottom-wrapper">
 		<view class="bottom-operate">
 			<image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/wx-servant/new/contact-cus.png"  data-mobile="{{orderInfo.userPhone}}" bindtap="makeCall" wx:if="{{orderInfo.canOperateMap.canContract}}">

+ 5 - 1
pages/new/ticketDetail/ticketDetail.wxss

@@ -894,7 +894,11 @@ page {
 	color: #333333;
 	line-height: 36rpx;
 }
-
+.operate-right .operate-text1 {
+	font-size: 40rpx;
+	color: #d77958;
+	line-height: 36rpx;
+}
 .bottom-wrapper {
 	position: fixed;
 	bottom: 0;